bt_le_scan of node in Mesh network
Martin <ma@...>
Hi,
I am wondering if (and how) it is possible to fire off a bt_le_scan (scan for nearby devices) from a Zephyr OS device which is a node in a BLE mesh network at the same time. From my current research I have found out that timing possibly is important (and that Nordic provides a Timeslot API), but I did not find a timing API or suchlike in the Zephyr OS documentation.. Could someone point me into the right direction? Thanks! Martin |
|
Chettimada, Vinayak Kariappa
Hi Martin,
toggle quoted message
Show quoted text
Adding Johan. The controller does not support multiple scan state instances. This is something in the works. Mesh stack implementation utilizes standard BT 4.0+ controller features, and no proprietary implementations are present in Zephyr. That said, there are plans to add Mesh vendor specific extensions, some investigatory work was done before but postposed for later implementation: https://github.com/zephyrproject-rtos/zephyr/pull/5500 Regards, Vinayak -----Original Message-----
From: <devel@...> on behalf of Martin <ma@...> Date: Friday, 12 October 2018 at 2:44 PM To: "devel@..." <devel@...> Subject: [Zephyr-devel] bt_le_scan of node in Mesh network Hi, I am wondering if (and how) it is possible to fire off a bt_le_scan (scan for nearby devices) from a Zephyr OS device which is a node in a BLE mesh network at the same time. From my current research I have found out that timing possibly is important (and that Nordic provides a Timeslot API), but I did not find a timing API or suchlike in the Zephyr OS documentation.. Could someone point me into the right direction? Thanks! Martin |
|
Julian, LEDCity.ch
Hi Martin, After some analysis of the BT Mesh subsystem in the Zephryr, we came to the same conclusion as Vinayak. The Mesh system is using the BT 4 features to receive packages itself, i.e. the Mesh subsystem starts scanning with bt_le_scan on initialization and registeres its own callback (bt_mesh_scan_cb in Zephyr/subsys/bluetooth/host/mesh/adv.c). The system does not allow a second (concurrent) call of bt_le_scan. Hence, the only option is a small adaptation of the Zephyr source. |
|
Martin <ma@...>
Hi!
toggle quoted message
Show quoted text
Thanks, this looks exactly like what I was looking for. Even seems to be easier than the NRF52 SDK-approach with the timing API. Best Regards, Martin Am Mo., 15. Okt. 2018 um 08:25 Uhr schrieb <julian.schneider@...>:
|
|