Dual mode configuration peripheral and central

⚠️
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.
6 posts / 0 new
Last post
Rajapurerohit
Offline
Last seen:6 months 4 weeks ago
加入:2017-04-20 09:17
Dual mode configuration peripheral and central

Hello Dialog_Support,

I want to configure my DA14583 device in dual mode[Central and Peripheral].
My scenario is i have two DA14583 device Device_A and Device_B.
1.Device_A always be in peripheral mode so that i can communicate with it using App as well as Device_B.
2.Device_B also should communicate with App and Device_A. Means my device_B should work in dual mode config. Device_B should in Central mode whenever it is talking with Device_A. Same way Device_B should also work in peripheral mode whenever App wants to talk with it.

My question is :
1. is it possible to configure DA15483 work in dual mode central as well as peripheral as per my requirement
2. if yes, then in which all files and functions are responsible for dual mode configuration?
3. which steps do i follow to make my Device_B work in central as well as in peripheral mode?

As i have a short deadline for my project so can you please reply me in details if this kind of dual mode configuration is possible?

Thanks and Regards
Rohit

Device:
MT_dialog
Offline
Last seen:2 weeks 20 hours ago
Staff
加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

1,2,3. Its not possible to configure the 580/581/583 in dual mode, you can only have a role switch, switching between central and peripheral by issuing a GAPM_RESET_CMD (no connections are maintained between the switching), please check the following post for more info:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

The 585 is capable of operating in dual mode.

Thanks MT_dialog

Rajapurerohit
Offline
Last seen:6 months 4 weeks ago
加入:2017-04-20 09:17
Hi MT_dialog,

Hi MT_dialog,
Thank you for the response .

Yes, i want to switch the Device_B role between central and peripheral.
My device_B should work in central mode and do communication with device_A . same way it should switch (device_B) it's role from central to peripheral role and App should able to communicate with device_B.

It would be very helpful if you explain the steps in detail.

Thanks and Regards
Rohit

MT_dialog
Offline
Last seen:2 weeks 20 hours ago
Staff
加入:2015-06-08 11:34
Hi Rajapurerohit,

Hi Rajapurerohit,

Whenever you would like to the switch to occur (counting via a timer or via an extenral event or anything that can trigger the role switching) you will just have to issue a GAPM_RESET_CMD there is a ready function that does that which is the app_gapm_reset_msg_create(). After doing that the device will get a GAPM_CMP_EVT (the gapm_cmp_evt_handler() function), with the operation parameter set to the GAPM_RESET. So as soon as you get this the stack is reset and you should invoke a GAPM_SET_DEV_CONFIG_CMD which will configure the device as a central or as a peripheral. The app_easy_gap_dev_configure() function uses the default parameters from the user_config.h file, so you will have to make a custom implementation in order to select which configuration your device would apply to the stack.

Thanks MT_dialog

luoguangqi
Offline
Last seen:1 month 4 days ago
加入:2020-12-30 08:25
嗨MT_dialog,

嗨MT_dialog,

Recently, there is a case that needs to be scan and adv. It is mentioned that da14585 supports dual-mode mode,

My question is :
1. is it possible to configure DA15483 work in dual mode central as well as peripheral as per my requirement
2. if yes, then in which all files and functions are responsible for dual mode configuration?
3. which steps do i follow to make my Device_B work in central as well as in peripheral mode?

As i have a short deadline for my project so can you please reply me in details if this kind of dual mode configuration is possible?

TKS!

PM_Dialog
Offline
Last seen:14 hours 14 min ago
Staff
加入:2018-02-08 11:03
Hi luoguangqi,

Hi luoguangqi,

Thanks for your comment. According to Bluetooth LE specification, it is not possible to scan ( GAP Central role) and advertise ( GAP Peripheral role) at the same time. You can perform role switching from Peripheral to Central GAP configuration and vice versa. Since you are using the DA14585, this can be done by setting the role to GAP_ROLE_ALL, so that you can either advertise or scan. It’s not possible to do both simultaneously. Please take a look atDA14531-DA14585-586 BLE Multirole ExampleSW Example.

If you have any follow-up question, please raise a new forum post as this one is old and closed.

Thanks, PM_Dialog