Hi Dialog,
我一直在使用DSPS_DEVICE项目的项目,该项目需要使用UART通信和Android应用程序(具有Curse的BLE通信)之间的通信。
The dsps_device project works perfectly but there is a one major problam, my module requires a 2 wire UART communication while the dsps_device project is built for 4 wire UART communication.
1) Is there any project like the dsps_device that requires only 2 wire for the UART?
2) If not, how difficult is it going to be to change the project so it will fit my requirements?
Thanks in advance,
Dvir
设备:
Hi Dvir,
您可以使用无附图标的应用程序设计来使用DSP而不是使用DSP。
//www.wsdof.com/products/smartbond-codeless-commands
You could use the “Binary Mode” – please find more details in the user manual:
http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/binarymode.html
Binary mode is used for the purpose of data pumps wherein the Bluetooth CodeLess device transfers data without examining it contents, which is the prefered method for end to end raw data transfer. By default, the HW Flow control is disabled, so the RTS/CTS are not required.
You can do a quick test to check this : you can send the AT+FLOWCONTROL in the “CodeLess Host” application and you will see that the value (0 , 0 , 0) is returned which means that the flow control is disabled.
Thanks, PM_Dialog
嗨pm_dialog,
谢谢你的快速回复!
我试图使用Dodeless_531_DATapump Wich有二进制模式,但是当我使用DSPS应用程序并尝试连接到设备弹出错误并显示“远程设备”不支持DSPS配置文件“。
On the other hand when I download the sw_codeless_531_2.bin file to the DK with smartsnippets and try to connect with the DSPS app it works just fine.
All I did with the program was to change the default baudrate and undefine some AT commands that I didnt need for the project.
我该如何解决它?
Thanks in advance,
Dvir
P.S.在我得到的终端+AWAKE
+连接
+AWAKE
+DISCONNECTED
Hi Dvir,
The DSPS mobile application is working with DSPS firmware. In case of CodeLess, please try to use the SmartConsole application.
http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/smartconsole.html
Additionally, keep in mind that in case of the HW flow control is disabled, the device should operate in Active node.
Could you please indicate what is the issue? Did you follow the tutorial? And what are the modification ttah you have done?
Thanks, PM_Dialog
嗨pm_dialog,
Sorry for explaining my self so poorly so I will try my best to explain my self clearly.
What I did:
1) Download the binaries found in ..\DA14585_DA14531_CODELESS\v_6.380.9.10\projects\target_apps\codeless\SUOTA\SUOTA_531\two\sw_codeless_531_2.bin to the DK using the smartsnippets tool.
2)连接到DK的IOS应用程序
3)终端显示DK进入二进制模式
4)发送+ binreqack到终端
5)可以通过DSPS应用程序发送和收到数据,它完美地运行
Now to modify the program:
6)打开codeless_585与Keil Uvision项目一起选择Dodeless_531_datapump.
7) Go touser_periph_setup.h并改变baudrate_config4to5所以它将是115200而不是57600
#define baudrate_config 5.
#define BAUDRATE_115K2 (BAUDRATE_CONFIG==5)
#define BAUDRATE_57K6 (BAUDRATE_CONFIG==4)
8)然后转到user_at_commands.h并未确定某些AT命令:
#f定义了(__ da14531__)
#define use_at_bdaddr.
#define使用_at_io.
#define使用_at_gapstatus.
#define USE_AT_ADVDATA
#define USE_AT_ADVRESP
#define使用_At_Advstop.
#define使用_at_advstart.
#undef.use_at_central.
#define使用_at_gapscan.
#define使用_at_gapconnect.
#define USE_AT_SLEEP
#undef.USE_AT_PIN
#define USE_AT_FLOWCONTROL
#undefUSE_AT_CONPAR
#undefUSE_AT_BND
#define USE_AT_SEC
9) Compile the program and download the binary to the DK (just like I did with the binary I talked about earlier)
10) Connect to DSPS application with IOS device
And here is the problam:
11) Try to connect to the Codeless device and then a message pops up and says "远程设备不支持DSP配置文件。"
About the SmartConsole application, For some reason I can not change the command mode to binary mode and this is why I am using the DSPS application wich works fine with the codeless_531_datapump pre-compiled binary.
Thank you for your time,
Dvir
Hi Dvir,
Unfortunately, I am not able to replicate it. Can you please make sure that you haven’t done any other modifications? If you don’t modify the project and use it as provide, are you able to reproduce it?
Regarding the SmartCosole application, please take a look at section 8.3.2. Binary Mode.
Thanks, PM_Dialog
嗨PM_DIALOG.
I probably did change something that caused a problam.
I reinstalled the codeless project and modified it like I did before and it works perfectly with the DSPS app now.
Sorry for the trouble and thank you very much for everything!
此致,
Dvir
Hi Dvir,
很高兴你识上你的问题。如果您有任何其他问题,请创建一个新的论坛丛林。
Thanks, PM_Dialog