You are using T1 right?
In T1, the TOS_Msg struct does not use nx types.
So, all TOS_Msg header fields (e.g. addr) are
in host format, which will be little endian in Tmote sky.
Although I haven't seen CountUart demo, probably
their payload is using a nx struct with nx_uint16_t fields.
Then these will be transmitted in big endian.
If you want to avoid this, find the file that
defines the payload structure, and modify nx_uint16_t to nxle_uint16_t.
Hopefully, everything will show in little endian.
Thanks
- jpaek
Michael Schippling wrote:
I have apparently confused myself with new code...
I'm just starting to do useful work with Boomerang and Tmote sky.
I believe this means TOS1.1.15 plus now-defunct Moteiv addons.
Running the CountUart demo, I get this data stream from Listen:
04 00 00 00 00 00 7E 00 04 7D 00 1C 00 01
04 00 00 00 00 00 7E 00 04 7D 00 1D 00 01
04 00 00 00 00 00 7E 00 04 7D 00 1E 00 01 ...
^ ^ ! !
According to my reading of the telos/AM.h file, the bytes marked
with the hats ^ (bytes 6 & 7) are the destination address, which
for the UART is 0x007E. This value seems to be in little-endian
format. The bytes marked with bangs ! (bytes 10 & 11) are the
count value from the CountMsg payload, but this seems to be in
big-endian format, as does the next value (the mote source ID)
of 0x0001.
What am I looking at wrong here?
thx
MS
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Jeongyeup Paek
Ph.D. student
Embedded Networks Laboratory
Department of Computer Science
University of Southern California
http://enl.usc.edu/~jpaek
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help