⚠️
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
Lyadnov
Offline
Last seen:12个月1天ago
加入:2019-07-31 13:57
需求方主机连接

Dear Support team! For DSPS example if device disconecting from host, host again make connect to this device. Please, explain me, how make to host not connect again with device.

Device:
PM_Dialog
Offline
Last seen:1 day 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi Lyadnov,

Hi Lyadnov,

The DSPS on the central device automatically starts scanning and connects to the first discovered peripheral device supporting the serial port service. The Central device also handles situations of connection loss by stopping the flow of data and automatically trying to re-establish a connection. Not sure if it is possible to handle the connection, however, I’ll check it and let you know.

Thanks, PM_Dialog

Lyadnov
Offline
Last seen:12个月1天ago
加入:2019-07-31 13:57
Hi, do you have any

Hi, do you have any information for me?

PM_Dialog
Offline
Last seen:1 day 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi Lyadnov,

Hi Lyadnov,

What is your host? Is it another DA14585 which is running the sps_host firmware, or is it the DSPS mobile application? It’s not straight-forward, because as mentioned before the central device automatically starts scanning and connects to the first discovered peripheral device supporting the serial port service.

Thanks, PM_Dialog

Lyadnov
Offline
Last seen:12个月1天ago
加入:2019-07-31 13:57
Dear, i have DA14585 which is

Dear, i have DA14585 which is running the sps_host firmware. I know, what the central device automatically starts scanning and connects to the first discovered peripheral device supporting the serial port service. I also know, what the central device also handles situations of connection loss by stopping the flow of data and automatically trying to re-establish a connection. I need know, what i must change for central device after connect with peripheral device, send data and disconnect (i make this), not connect again with this peripheral device, while i don't wish this.

PM_Dialog
Offline
Last seen:1 day 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi Lyadnov,

Hi Lyadnov,

Apologies for my late response. Since you are using another DA14585 acting as a Central, a possible solution might be to modify the sps_host project. The user_scan_start() is function which initiates the scanning procedure. This function is called upon device configuration is completed (user_on_set_dev_config_complete()). The scanning procedure has a timeout which is around 10 seconds. When the scanning is completed, the user_on_scanning_completed() callback is triggered which restarts scanning. To do so, you should modify it and execute the user_scan_start() according to your application. Do you want to call it periodically with setting up a timer?

Thanks, PM_Dialog