[Tinyos-devel] Problem with serial communication on Micaz

Rodrigo Fonseca rfonseca at cs.berkeley.edu
Mon Oct 16 23:10:04 PDT 2006


Hi,

I encountered serial communication problems on micaz's running over eprbs.
It is not related to my build system or to the programming, and
totally independent of the java tools. I am pretty sure that I have
narrowed the problem down to commits done on Oct 10 mostly by
johnatan, and it seems to be related to timing problems in the atm128
uart.

Below I show the nc output (directly reading the tcp stream of bytes
from the eprb) for the TestSerial app:

nc output from the TestNetwork app, cvs as of today, in the
tinyos-2_0_devel-BRANCH tag:
< 00000000 fd ed 6d                                        # ..m
< 00000003 f9 ed                                           # ..
< 00000005 f9 ed f9                                        # ...
< 00000008 fd ed                                           # ..
< 0000000a fd ed 7d                                        # ..}
< 0000000d f9 ed                                           # ..
... more of the same
===================================
nc output from the TestNetwork app, cvs as of *Oct 9th*, in the
tinyos-2_0_devel-BRANCH tag (correct output, notice how the counter
goes: 1d, 1e, 1f, 20, 21, 22, 23, always the 9th byte after 7e).

< 00000000 7e 45 00 ff ff 02 22 09 00 1d 73 1a 7e          # ~E...."...s.~
< 0000000d 7e 45 00                                        # ~E.
< 00000010 ff ff 02 22 09 00 1e 10 2a 7e                   # ..."....*~
< 0000001a 7e 45 00 ff ff 02 22 09 00 1f 31 3a 7e          # ~E...."...1:~
< 00000027 7e 45 00 ff ff 02 22 09                         # ~E....".
< 0000002f 00 20 8d fd 7e                                  # . ..~
< 00000034 7e 45 00 ff                                     # ~E..
< 00000038 ff 02 22 09 00 21 ac ed 7e                      # .."..!..~
< 00000041 7e 45 00 ff ff 02 22 09 00 22 cf dd 7e          # ~E....".."..~
< 0000004e 7e 45 00 ff ff 02 22 09 00 23 ee cd 7e          # ~E...."..#..~

Any ideas?

Thanks,
Rodrigo


More information about the Tinyos-devel mailing list