8 posts / 0 new
Last post
MrWeng
Offline
Last seen: 1 year 4 months ago
Joined: 2020-02-13 08:56
About DA14531 CodeLess and DSPS project with 2 wire UART

Hi Dialog:

Through the forum posts, I know that I can refer to the CodeLess application, and I can implement the SPS function by using 2 serial ports, just like DSPS, but I have encountered the operation according to the user guide and manual To the following question:
1. The file "codeless_531_standalone.hex" was not found in the folder "DA14585_DA14531_CODELESS_v_6.380.9.10". This file was obtained after Keil compilation. Is this operation correct?
2. There is very little information about CodeLess, especially about DA14531, can you provide more information to help us develop?
3. Can you provide more information about the application of CodeLess on SPS and SUOTA?
4. In the forum, you can see that there is a lot of demand for using a 2-wire serial port for SPS. Will there be plans to launch a 2-wire DSPS code in the future? If so, can you provide an approximate time?
Thank you very much for your support, it will let me learn more!

Device: 
CYibin
Offline
Last seen: 2 years 1 month ago
Staff
Joined: 2017-12-14 02:48
Hi,

Hi,

Pls find my comments below:

1. Pls open the Keil project in the path: codeless_v_6.380.9.10\projects\target_apps\codeless\codeless_5xx\Keil_5\codeless_585.uvprojx. Then you can find the datapump/standalone options beside the"Download" button. Select one and build

2. So far we have a online document  http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/index.html to guide on user's development. What kind of information are you expecting to.

3. Sorry, I'm not quite sure what you want? Could you tell more info on what are you going to do?

4. The flow-control of DSPS is neccessary to ensure data throughput and stability. Users can consider using the binary mode of the codeless project to implement the two-wire serial port transmission function

Br

Yibin

 

MrWeng
Offline
Last seen: 1 year 4 months ago
Joined: 2020-02-13 08:56
Thank you for your answer. I

Thank you for your answer. I have referenced the tutorial and have successfully implemented 2 wires to realize the serial data transmission function, but this does not meet my needs. To achieve 2 wires in the tutorial, the serial data is converted by sending AT commands through the mobile app, but I want to be The DA14531 chip can be switched to sps when it starts to work, instead of sending AT commands through the mobile phone APP. How should I solve this problem? Thank you

CYibin
Offline
Last seen: 2 years 1 month ago
Staff
Joined: 2017-12-14 02:48
Hi MrWeng,

Hi MrWeng,

 

You can try to switch to binary mode by sending a virtual AT. That is, for example, when the device got connected, you can call the api below to enter the binary mode:

user_on_connection()

{

user_cmd_interpreter("AT+BINREQACK\r\n",sizeof("AT+BINREQACK\r\n"), CMD_SRC_REMOTE);

}

Hope this will solve your problem.

MrWeng
Offline
Last seen: 1 year 4 months ago
Joined: 2020-02-13 08:56
This solves my big problem. I

This solves my big problem. I would like to ask if I can use UART2. I need to use two UARTs. UART1 is used to receive the data sent by the MCU. UART2 is used to receive and send AT commands to the GSM module. What should I do? ? What should I pay attention to?Thank you very much

CYibin
Offline
Last seen: 2 years 1 month ago
Staff
Joined: 2017-12-14 02:48
Sure you can.

Sure you can.

You can use UART2 the same way as UART1.

Pls share more information for me if you met some issues on this, thus I can give a hand.

MrWeng
Offline
Last seen: 1 year 4 months ago
Joined: 2020-02-13 08:56
I want to know which function

About CodeLess, I also want to know the following information:
1. How to modify the device name, in the user_config.h file, I found #define USER_DEVICE_NAME, but after I modified it, it did not take effect, and I did not see any information on the UM-B-140: DA14531-DA14585 CodeLess page How to modify the device name, please tell me how to modify the name.
2. I want to know which function is mainly used to send the data received from the serial port to the mobile phone APP via Bluetooth. Please tell me the name of this function.
3. I want to use the SOUTHA function, what information should I refer to? Or how should it be done?
Thank you very much!

CYibin
Offline
Last seen: 2 years 1 month ago
Staff
Joined: 2017-12-14 02:48
I saw another thread about