2023-12-27 10:58 PM - last edited on 2023-12-28 12:12 AM by STTwo-32
Hello
I have two STM Nucleo-WL55JC2 boards. I have tried running the SubGHz_Phy_PingPong example and it works flawlessly.
When observed using TeraTerm, I am only able to see the RSSI and the SNR values.
I also need to observe the latency of this communication (The time taken for the transmitted message to be received).
Kindly guide me through on how I could modify the SubGHz_Phy_PingPong example in order to observe this.
I am using STM32CubeIDE.
Thank You
Solved! Go to Solution.
2023-12-28 05:33 AM - edited 2023-12-28 05:39 AM
Hello @thelankanguy and welcome to the ST Community :smiling_face_with_smiling_eyes:.
The time taken for the transmitted message to be received depends on different characteristics (distance, TX power, ...). So, it is no easy to calculate or even estimate this Value. if you want to do such think, I suggest you use one of the on-air time calculators on the internet or try to implement a local algorithm such as Time of flight.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-28 05:33 AM - edited 2023-12-28 05:39 AM
Hello @thelankanguy and welcome to the ST Community :smiling_face_with_smiling_eyes:.
The time taken for the transmitted message to be received depends on different characteristics (distance, TX power, ...). So, it is no easy to calculate or even estimate this Value. if you want to do such think, I suggest you use one of the on-air time calculators on the internet or try to implement a local algorithm such as Time of flight.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-28 09:26 PM
Hello @STTwo-32
Thank you for your reply.
Was wondering if it is possible to measure the time on one just one board.
As an example, if I could measure the time for one round trip.
Transmitter sends a msg to the receiver and the receiver sends one back to the transmitter - Measuring this time on the transmitter.
Thank You
2023-12-29 02:18 AM - edited 2023-12-29 02:20 AM
You can do this but is going to be hard. You have to calculate the Time between the Poll and the replay as described here:
You may can use timer to calculate the Tloop and another one to calculate Treplay (and send it on the response message to the initiator). Then calculate the time of flight (TOF).
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.