can 14585 scan and adv both at the same time

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
moiify
Offline
Last seen:4 weeks 2 hours ago
加入:2020-03-12 07:26
can 14585 scan and adv both at the same time

i am using the ROLE_BOTH, and it can work in master-slave mode, but the chip stop adv when it start scan, can it scan and adv both at the same time?thank you~!

Device:
moiify
Offline
Last seen:4 weeks 2 hours ago
加入:2020-03-12 07:26
the sdk version is 6.150.2

the sdk version is 6.150.2

moiify
Offline
Last seen:4 weeks 2 hours ago
加入:2020-03-12 07:26
ROLE_ALL

ROLE_ALL

PM_Dialog
Offline
Last seen:15 min 10 sec ago
工作人员
加入:2018-02-08 11:03
Hi moiify,

Hi moiify,

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.

Can you please indicate again the SDK version? For the DA14585/586 product family the SDk6.0.14 is the recommended one. What is the 6.150.2? Do you mean the DSPS application?

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