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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Last seen: 1 year 10 months ago
Joined: 2020-11-01 07:22
DA14531 dual role

Hi Dialog!

Can DA14531 act as dual role device:

a) central and peripheral?

b) central and observer?

Last seen: 6 months 3 weeks ago
Joined: 2018-02-08 11:03
Hi alechek,

Hi alechek,

Thanks for your question online and for your interest in our BLE solution.

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. 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.

If you check the any of the SDK BLE examples, the DA14531 is configured as GAP Peripheral role, so the application starts advertising (undirected). You could use an app_easy_timer() and upon its expiration, stop advertising. As soon as the advertisement is stopped, you can configure the device as a Central and start scanning. You can either wait for the scan to complete (if you are scanning in GAP_GEN_DISCOVERY) or set an additional timer and cancel the scanning procedure.  When the scanning is completed, maybe you can start advertising again.

Thanks, PM_Dialog