Measuring the reliability of mesh network
- February 11, 2019
- 5 replies
- 1955 views
I want to measure the reliability of bluetooth mesh network. I am using two STEVAL-IDB008V2 boards , one STEVAL-IDB007V1 board and an android smartphone to construct a bluetooth mesh network and using the lighting demo project of STSW-BNRG-Mesh v 1.05 as firmware for mesh nodes.
To measure reliability, I want to send 3000 or 4000 (rough idea) packets from one mesh node and receive them on other node and print the received packet count on serial terminal. For this purpose, on Tx node, I inserted Vendor_Publish() function inside while(1) loop in main.c file (see attachment "main.jpg") and changed the arguments of BlunrgMesh_SetRemoteData() to APPLI_TEST_CMD and stored 0x04 (value for APPLI_TEST_COUNTER) in the fist byte of AppliBuffer[] in vendor.c file. On Rx node, I incremented the counter inside case: APPLI_TEST_COUNTER in appli_vendor.c file.
When I transmitted 100 packets on broadcast address from tx node, I observed that serial terminal connected to Rx node showed only 22 packets as received. However, the serial terminal connected to tx node showed all 100 packets as received.
Can you please let me know how to do this because receiving 22 packets out of 100 packets shows a high packet loss. Please reply soon as the deadline of my project is in 2 days.
