Testing for whole function
This document outlines the testing and debugging process for a UART communication system that encountered issues related to race conditions, resulting in double transmissions during the same slot. An 18-minute experiment revealed a clock drift of less than 80 µs at the critical time data was sent. The current data collection method for UART requires revision, specifically in combining received data from parent nodes with sent data to children nodes. Future tasks include confirming UART data accuracy and exploring the effects of the CSMA mechanism on communication outcomes.
Testing for whole function
E N D
Presentation Transcript
Previous To-Do • Add randomWait, UART into multiple rcvQprogram • Debug for sometimes sending twice in the same slot • Caused by race condition of TBR, when checking valid time to send
Results • In 18-minute experiment , the clock drift is smaller than the biggest value 80 us (@13 min) for last data slot in every minute
UART • Had dumped the UART information, but not correctly calculate now, need to revise • RX is receiving from parent while TX is send to children, need to combine two hop info. to get correct value
To-Do • Get correct UART info to make sure whether crossing-slot problem occurs or not • Open CCA mechanism for CSMA to see the result
Appendix -2 Mins • 53 us
3 Mins • 47 us
4 Mins • 69 us
5 Mins • 69 us
6 Mins • 64 us
7 Mins • 45 us
8 Mins • 51 us
9 Mins • 58 us
10 Mins • 49 us
11 Mins • 62 us
12 Mins • 76 us
13 Mins • 80 us
14Mins • 47 us
15Mins • 44 us
16Mins • 73 us
17Mins • 26 us
18 Mins • 43 us