calculating Round Trip Time (latency) for Bluetooth mesh network

11 views (last 30 days)
Hello, I'm using the bluetooth helper functions
1) https://www.mathworks.com/help/comm/examples/bluetooth-mesh-flooding-in-wireless-sensor-networks.html?searchHighlight=data%20averaging&s_tid=doc_srchtitle
to simulate the Working of Bluetooth mesh network.i wanted to calculate the Round trip time between nodes. Can anyone help me with this?
  1 Comment
Vamsi Manthini
Vamsi Manthini on 25 Aug 2023
Hi Durgaprasad,
As of now, the example does not provide the "round-trip time" as a metric, but you can calculate a similar metric using these examples, the "average end-to-end latency" of application packets from the source to the destination nodes. Take a look at it to see if this is helpful.
For example, by setting the sourceDestinationPairs to [4 5] in BLEMeshEnergyProfilingExample, you'll be able to get the value of "end-to-end application packet latency" at node 5, for packets originating from node 4. This value can be accessed at node 5 as node5stats.App.AveragePacketLatency, where node5stats is statistics(meshNodes(5)).
Best,
Vamsi M

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!