DSPS. Connect few peripheral to one central.

7 posts / 0 new
Last post
Vadym
Offline
Last seen:1 year 2 months ago
Joined:2015-08-13 08:28
DSPS. Connect few peripheral to one central.

Hi Dear Support.

是项目需求方的版本吗5.150.2 allow to connect two (or more) peripherals to the one Central?
In the same way like:
http://support.dialog-semiconductor.com/connecting-two-peripherals-same-...

If yes, how can I start new "scanning" when the central had been already in connect state?

Thanks.

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Vadym,

Hi Vadym,

The DSPS doesn't support this functionality, the 580 can support connection to multiple masters, you can have a look at the proximity monitor example and check how this is achieved.

Thanks MT_dialog

Vadym
Offline
Last seen:1 year 2 months ago
Joined:2015-08-13 08:28
Hi.

Hi.

In the project DSPS in the function "user_on_connection" I changed to execute function "user_scan_start" without any condition.
I see, that "Central" connects to the next (second) peripheral.
When I use 3 and more peripheral I get warning in "user_on_connect_failed".
It comes from: "gapm_cmp_evt_handler": case GAPM_CONNECTION_DIRECT with " param->status == GAP_ERR_CANCELED"

Why I receive GAP_ERR_CANCELED and how I can avoid it? (If i ignore the warnings, the "central" connects to the "third' device.)

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi Vadym,

Hi Vadym,

I dont think that by just changing the on_connection and keep on scanning would let you connect to a second peripheral, you have to change the value of the maximum connection alive (in the CFG_MAX_CONNECTIONS from 1 to maximum 6) after you do this you can comment out the ASSERT WARNING and you should get 3 connections (the maximum number i could try) to your central. Please check the attached file. Also i would like to remind you that the DSPS isn't tested or ment to support more than one connection, please check the proximity monitor (which is a simpler example) in order to get started with multiple connections.

Thanks MT_dialog

Attachment:
lewuyouc
Offline
Last seen:1 year 8 months ago
Joined:2016-07-18 01:38
Hi MT_dialog

Hi MT_dialog

Q1:You said:"the proximity monitor (which is a simpler example) in order to get started with multiple connections. ",is "DA1458x_SDK_5.0.3\DA1458x_SDK\5.0.3\projects\target_apps\ble_examples\prox_monitor_ext"?,I use SDK_5.0.3,only find "prox_monitor_ext".

Q2:In the project DSPS in the function "user_on_connection" I changed to execute function "user_scan_start" and CFG_MAX_CONNECTIONS
set 6, connect two peripherals to the one Central is ok,but a very short time two peripherals connect failed.

Please give me some suggestion,Thanks!

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi lewuyouc,

Hi lewuyouc,

Q1: Yes the fw that you have to load in your 580 is the one that you are indicating, since its an external implementation you also have to run the windows application where the application code is located.

Q2: As i ve indicated on the previous posts, the DSPS project doesn't support and its not tested to connect with multiple peripherals.

Thanks MT_dialog

MSun
Offline
Last seen:8 months 3 weeks ago
Joined:2015-11-30 22:40
Hi Lewuyouc,

Hi Lewuyouc,

There is also some more info athttp://support.dialog-semiconductor.com/comment/9857#comment-9857

Thanks, Martin