Hi,
I want to implement a such system that there are about 10 BLE devices running with zephyr os on nrf52832,and some of them act as Central role, and some of them act as Peripheral role, and some provideboth Central and Peripheral roles simultaneously. By this I can build a network to transfer data withBLE connection and low latency than BLE mesh network.
I have found that the Nordic softdevice support concurrent link with multiple roles at the same time.and I'm a new user of zephyr and not sure that the zephyr os support such multiple roles, is there anyexample code for this application for nrf52 ? Thanks in advance!
Jeremy.jiang said:and not sure that the zephyr os support such multiple roles,
Zephyr also support concurrent links and roles.
Jeremy.jiang said:is there anyexample code for this application for nrf52…
Jeremy.jiang said:is there anyexample code for this application for nrf52 ? Thanks in advance!
There does not seem to be any examples for this, but you could try to merge peripheral and central samples in Zephyr. Make sure that you configure the prj.conf to support this configuration, i.e. something like this:
CONFIG_BT_PERIPHERAL=y CONFIG_BT_CENTRAL=y CONFIG_BT_MAX_CONN=2
Hi Sigurd,
Thank you very much for your reply, it's a good news for me.
Hello,
Checkout zephyr rtos ble central and peripheral sample here for reference.
Thanks. It's a good sample.