Hello there,
I'm trying to modify the provided code for DSPS in order to use this project as a connection module in my own project.
I need to elaborate on the state machine for BLE and UART and create the functionality of sending automatic responses, However, I can't figure where should I begin with DSPS code. It has so many nested functions that I can't possibly follow without proper instructions.
PS: An example of what I would like to is to figure the process of receiving data by UART in order to analyze the sent data and publish a proper command on the same line.
Regards,
Hamid
Device:
Hi hamiddhosseini,
Thanks for you question. I am not completely sure if I understood correctly what you mean with “automatic responses” but the DSPS is supported as it is. The main functionality is to receive data over UART and transmit them as it is over BLE, and bice versa. Probably you might check the user_send_ble_data() fuction – but again I would not recommend modifying the DSPS because it is supported as it is. You can also take a look at the CodeLess project.
//www.wsdof.com/products/smartbond-codeless-commands
Thanks, PM_Dialog
Sorry for being a bit vague. I intend to use DSPS as a part of my project in which a chip sends the data over UART to DA14531 and depending on the situation, the board would issue a new command about measurements.
芯片——> DA14531 (UART);
DA14531 --> Command (UART and), DA14531 -->User (BLE)
Hi hamiddhosseini,
Why don’t you use the CodeLess? You can implement your own AT Command and it support binary mode as well.
//www.wsdof.com/products/smartbond-codeless-commands
Thanks, PM_Dialog