On 6/6/07, Ákos Maróy <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] $ java TestSerial
serial@/dev/ttyUSB0:115200: resynchronising
   ...  read: 03 03 03
Sending packet 0
   ... wrote: 7e 44 0e 00 00 00 00 00 02 00 09 00 00 fc 59 7e
   ...  read: 00
Sending packet 1
   ... wrote: 7e 44 0f 00 00 00 00 00 02 00 09 00 01 94 91 7e
Sending packet 2
   ... wrote: 7e 44 10 00 00 00 00 00 02 00 09 00 02 f9 7f 7e



the output itself differs, here are other stuff I get:

$ java TestSerial
Sending packet 0
   ... wrote: 7e 44 0e 00 00 00 00 00 02 00 09 00 00 fc 59 7e
serial@/dev/ttyUSB0:115200: resynchronising
   ...  read: 0b 0b
   ...  read: 00
Sending packet 1
   ... wrote: 7e 44 0f 00 00 00 00 00 02 00 09 00 01 94 91 7e
Sending packet 2
   ... wrote: 7e 44 10 00 00 00 00 00 02 00 09 00 02 f9 7f 7e


$ java TestSerial
serial@/dev/ttyUSB0:115200: resynchronising
   ...  read: 0b
Sending packet 0
   ... wrote: 7e 44 0e 00 00 00 00 00 02 00 09 00 00 fc 59 7e
   ...  read: 00
Sending packet 1
   ... wrote: 7e 44 0f 00 00 00 00 00 02 00 09 00 01 94 91 7e


maybe the serial port is not reset properly, and some trash remains
there from previous rounds?

anyway, the above bytes read - are they valid TinyOS serial protocol bytes?

No. They should look very similar to the written bytes (packets are
delimited by 0x7e bytes).

David Gay

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to