[Tinyos-help] Surprising Timer Readings

Anton ageev at disi.unitn.it
Mon Jul 28 07:02:46 PDT 2008


The timer is all right.

I realized what was the problem.

Serial port communication played a trick on me. The program which I used 
to read the port gave out data bytes 0x7E and 0x7D as 0x7D 0x5E and 0x7D 
0x5D. This is because byte 0x7E is reserved as a frame delimiter, and 
0x7D is reserved as an escape byte, so if such bytes are in the data 
payload they are changed to the pair of 0x7D and (the reserved byte) XOR 
0x20.

Anton.





More information about the Tinyos-help mailing list