Discussion:
[Shimmer-users] Serial output from shimmer device not quite right
scott coleman
2012-10-04 22:54:09 UTC
Permalink
I'm monitoring the printF output from the printf tutorial. Most of the
characters are right but there are extraneous characters

Here are my putty (windows 7) settings: Com 17 15,200 baud, 8 data bits, 1
stop bit no parity, XON/XOFF flow control.


Here's what I get:
~E ÿÿ  dHi I am writing to you from Î~~E ÿÿ  dmy TinyOS application!!
HereFŠ~~E ÿÿ  d is a uint8: 123
Here is a u­¹~~E ÿÿ  dint16: 12345
Here is a uint3†J~~E ÿÿ  d2: 1234567890
óÌ~

Am I missing something?
mike healy
2012-10-05 06:54:13 UTC
Permalink
Hi Scott,

It has been a while since I have used printf (in TinyOS), but I'm fairly
certain that your problem is that there is framing around the (active
message) packets coming from the serial port that is causing the
"extraneous" characters.

The printf instructions (
http://docs.tinyos.net/tinywiki/index.php/The_TinyOS_printf_Library)
mentions using a java app, PrintfClient (
http://code.google.com/p/tinyos-main/source/browse/trunk/support/sdk/java/net/tinyos/tools/PrintfClient.java),
which handles this framing.

Mike
Post by scott coleman
I'm monitoring the printF output from the printf tutorial. Most of the
characters are right but there are extraneous characters
Here are my putty (windows 7) settings: Com 17 15,200 baud, 8 data bits, 1
stop bit no parity, XON/XOFF flow control.
~E ÿÿ dHi I am writing to you from Î ~~E ÿÿ dmy TinyOS application!!
HereFŠ~~E ÿÿ d is a uint8: 123
Here is a u­¹~~E ÿÿ dint16: 12345
Here is a uint3†J~~E ÿÿ d2: 1234567890
óÌ~
Am I missing something?
_______________________________________________
Shimmer-users mailing list
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
Loading...