NordicPlayground / nRF51-ble-bcast-mesh

Other
323 stars 121 forks source link

Packet loss in mesh network #187

Open Cooper-Weng opened 7 years ago

Cooper-Weng commented 7 years ago

My mesh network just has two mesh node, node A & B. I made A node as a broadcaster, B node as a receiver. "MESH_INTERVAL_MIN_MS" setting to 20. And I send a mesh packet every 200ms from A node. But in this low broadcast speed, it still has packet loss issue. About 10~20s loss one mesh packet. What is the problem?

Is it possible that the scan interval & scan window size doesn't match the advertising interval? If so. How to modify the scan interval & scan window size? And what is the default value on scan interval & scan window size?

trond-snekvik commented 7 years ago

That sounds very odd to me. Do you disable the incoming handle on node B? Otherwise, it will rebroadcast the new data every time, and you'll end up spending significant time in TX mode and transitioning.

Other common sources of packet loss are noisy environments and SoftDevice activity in the receiver.