Dear Dialog support team,
We are working on the DA14585/DA14586-DA14531 Multiperipheral Example project and we need to configure the DA14585 in beacon mode (because we need to inform the nearby mobile phones of BLE device proximity) and we also need to configure it in peripheral mode (for central devices can connect to DA14585). So would it be possible for DA14585 to act simultaneously as beacon and peripheral or alternate between beacon mode and peripheral mode with software control?
regards,
Device:
Hi koukou,
So, what you would like to do is to change the advertising between connectable and non-connectable. Did I understand correctly what is your requirement? Please correct me if I am mistaken. If yes, you can stop advertising and change the advertising mode accordingly.
Thanks, PM_Dialog
thank you for reply, what is the order of the steps to stop the advertising and change the advertising mode every 0.5 seconds and what functions are used?
Hi Koukou,
One way to implement interlaced connectable and non-connectable advertising would be to use the advertising scheme DEF_ADV_WITH_TIMEOUT and set the timeout to 500ms. When advertising times out, you will get different callbacks:
These callbacks are currently set to NULL (meaning nothing happens). Simply implement your own functions where you start the opposite type of advertising of what recently timed out. The two types of advertising can be set by changing the mode to GAP_GEN_DISCOVERABLE or GAP_BROADCASTER_MODE.
您可以了解更多关于implementing callbacks and changing the advertising in the "Getting Started with SDK6 Tutorial":http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/index.html
/MHv