如何完成角色转换?

⚠️
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.
2 posts / 0 new
Last post
alan.a
Offline
Last seen:2 years 5 months ago
Joined:2018-10-31 07:50
如何完成角色转换?

Hii...
I try to implement Switch role in barebone example. Indvidually its work fine. First i started advertising and issuing a GAPM_RESET_CMD in a timer. I think its works because its enter GAPM_SET_DEV_CONFIG in gapm_cmp_evt_handler() but nothing will change its act as same advertiser. can you help me what are the changes i done before i change to role switching? where i change?

Device:
PM_Dialog
Offline
Last seen:22 hours 45 min ago
Staff
Joined:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

In order to implement a role switching you can do it as you have already mentioned by issuing a GAPM_RESET_CMD command and reconfiguring the device. Please check some posts below:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/switch-role-between-observer-and

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

Thanks, PM_Dialog