calculating Round Trip Time (latency) for Bluetooth mesh network

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

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)

Asked:

on 26 Aug 2020

Commented:

on 25 Aug 2023

Community Treasure Hunt

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

Start Hunting!