mesh network setup in Zephyr nrf52840 #28985
-
I have one query. I want to set up a small mesh network using three nrf52840 boards say B1,B2 and B3 . I wish to track proximity of B2 and B3 on my main board B1. So should I be programming B2 and B3 as beacons ? And how do I setup mesh network do I need BLE pairing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@trond-snekvik FYI |
Beta Was this translation helpful? Give feedback.
-
Response from slack: Having B2 and B3 send beacons should work. You'll get the RSSI through the scan callback on B1. RSSI is pretty inaccurate though. It's heavily affected by obstacles, and will fluctuate a lot from packet to packet. In an open environment, you'll be able to tell distance with an accuracy of a couple of meters if you calibrate properly. |
Beta Was this translation helpful? Give feedback.
Response from slack:
Having B2 and B3 send beacons should work. You'll get the RSSI through the scan callback on B1. RSSI is pretty inaccurate though. It's heavily affected by obstacles, and will fluctuate a lot from packet to packet. In an open environment, you'll be able to tell distance with an accuracy of a couple of meters if you calibrate properly.
Beacon sending and receiving is enough to track proximity, but if you want more advanced communication between the boards, you should set up a mesh network. The right way to set up the network is through provisioning, but it's possible to assign addresses and keys directly to the devices through the local apis. This is considered an insec…