⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
BenjaminDu
Offline
Last seen:1 month 5 days ago
Joined:2016-03-14 02:38
dsps send info to peer

Hi dialog,

I am testing dsps dma example, if I want to send info to peer, eg , from peripheral to Central, how to do?I Tested sps_server_send_data but not sucessful, is it the right function? if yes how to send info with it? or other function to use?

Thanks

Benjamin

Device:
PM_Dialog
Online
Last seen:3 min 2 sec ago
Staff
Joined:2018-02-08 11:03
Hi BenjaminDu,

Hi BenjaminDu,

Could you please let me know if this forum thread is related with your past forum thread below?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/dsps-data

It would be very useful to clarify what you would like to implement. What kind of information would you like to send to the central? Do you want to connect your DPSP peripheral with a serial monitor and then send the data you have received from uart to a mobile application over BLE?

Thanks, PM_Dialog

BenjaminDu
Offline
Last seen:1 month 5 days ago
Joined:2016-03-14 02:38
Hi Dialog,

Hi Dialog,

Yes and No.

I want two Da1458x to exchange info over BLE,

so I need:

1)获得对等的信息,用力推的相关论坛ead is for this purpose.

2) To send info to peer,this is what I need here.

For the first point, I've asked several times, hope if possible, you can help to answer the above together:
Namely, how to get info from peer and how to send info to peer?

PM_Dialog
Online
Last seen:3 min 2 sec ago
Staff
Joined:2018-02-08 11:03
Hi BenjaminDu,

Hi BenjaminDu,

Apologies but I am not able to understand what you mean with the “send info to peer”. The DSPS reference application code, send over the air the data that the DA14580 is getting from UARR. So, in case you have 2 DA14580 connected with DSPS (one should be the central and the other the peripheral), you send data from the serial monitor, for example from the Teraterm windows application. The same could be accomplished if you have a mobile phone running the DSPS application as a central device. So, if I can understand correct your question, that you would like to accomplish is to not send data from the serial monitor, but you would like to send the data from the source code of DSPS? Please, try to explain what you are trying to accomplish, and I will show you which modifications in DSPS source code you should do

Thanks, PM_Dialog

BenjaminDu
Offline
Last seen:1 month 5 days ago
Joined:2016-03-14 02:38
Dear Dialog,

Dear Dialog,
Thanks a lot for your reply.
I want to exchange data over the air with two Da14585,as an example I tested DSPS example.
Yse, I want to send the data from the source code of DSPS,hope you can help to tell me where(and how if possible) to modify the DSPS source code.
And also where to modify to receive the data in the source code.

In one word,where to modify to send and receive data in the peripheral code and central code?

Hope I've made my question clear.

Thanks again.
Benjamin

PM_Dialog
Online
Last seen:3 min 2 sec ago
Staff
Joined:2018-02-08 11:03
Hi BenjaminDu,

Hi BenjaminDu,

You can either push the data that you need to the buffer that the application allocates in order to store and send the data (please check theUM-B-088 : User Manual for Dialog Serial Port Profile (DA14585)) or you can directly write the data that you would like to the notifiable characteristic that the application has in order to send data to the host. For example, you could use the sps_server_data_tx_req_handler().

Thanks, PM_Dialog