I want to measure the computational speed of a telosB at different temperatures. To program the device I use contiki. My idea was to let it send messages in fixed intervals with the return of
clock_time (void)
as content. A second device reads that message and stores it in a file, together with its own clock_time (void) return value. With that I could say:
At temperature A, a device needed 500 clock ticks to send 100 messages and the second device needed 600 clock ticks to receive 100 messages.
At temperature B, a device needed 500 clock ticks to send 100 messages and the second device needed 800 clock ticks to receive 100 messages.
This would mean that the device truly is slower at temperature B, because the receiver had to wait longer.
I am stuck right now, because I get different results every time I perform my solution + the results get distorted at the moment the link quality is not perfect and some packages are getting lost. Is there a solution, maybe with a different setup, that helps me to prove the idea?