⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
hamiddhosseini
Offline
Last seen:6 months 1 week ago
加入:2020-05-12 12:04
Modifying DSPS for another project

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:
PM_Dialog
Offline
Last seen:1 day 20 hours ago
Staff
加入:2018-02-08 11:03
Hi hamiddhosseini,

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.xmece.com/products/smartbond-codeless-commands

Thanks, PM_Dialog

hamiddhosseini
Offline
Last seen:6 months 1 week ago
加入:2020-05-12 12:04
Sorry for being a bit vague.

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)

PM_Dialog
Offline
Last seen:1 day 20 hours ago
Staff
加入:2018-02-08 11:03
Hi hamiddhosseini,

Hi hamiddhosseini,

Why don’t you use the CodeLess? You can implement your own AT Command and it support binary mode as well.

//www.xmece.com/products/smartbond-codeless-commands

Thanks, PM_Dialog