Hie,
I'm working on a lab project where I need a mobile node to ping 3 different anchor nodes at given time intervals. I'm not sure on how to measure the ping time using the protocol.Any ideas?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hie,
I'm working on a lab project where I need a mobile node to ping 3 different anchor nodes at given time intervals. I'm not sure on how to measure the ping time using the protocol.Any ideas?
Wouldn't you create a variable that is a ping time, get the current time value just before you send your ping packet and then read the new current time when the response is received?
I realize that is a very generic statement, but I'm not sure what additional information you need.
Hie, thanks for the reply. Basically, I need a mobile node to ping a stationary node and obtain its ping time(the round trip time).The method is similar when we ping a computer on the network and obtain the time for the data packets to return back to the source. Any sugesstions on how i can do this wiith the Ez430-rf2500.
I would suggest using one of the Timers in the MSP430F2274 to use as a relative timebase for your ping time assessment. In addition to enabling the timer, you would want to create some additional code to take the timer interrupts and keep a running time in your application. At that point, your application can call into this "time function" to get a snapshot of time when you send the ping packet. When you get the response back, call into the "time function" again and perform a comparison.