Hi,

This is with reference to the query "Serial data communication in TelosB
motes - Windows"

I am assuming you're using printf statements in your tinyos program and
printf client to retrieve back the data on linux.

In that case, whenever printf in tinyos is used, it adds its own header
before sending the raw data to the serial port..which printf client that
comes with tinyos can decode and present the data extracting header
information.

In case of windows, you're receiving the raw data, initial dots and garbage
is the header part sent by telosb mote. I don't have much idea of how
header looks like. So I recommend you to use a good serial com reader which
allows you to view data in hex, and that will allow you to understand the
header part and then you can make the program in windows to remove the
header part to get back your exact information.

Hope it helps.

PS. you can use "cutecom" to view data in hex in Linux. (Minicom doesn't
allow viewing data in hex) There are plenty of free programs available on
windows platform as well. (I use "portmon" by microsoft)

regards,

Dhruv
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to