[Tinyos-help] IBM JDK segfaults on libtoscomm.so

David Gay dgay42 at gmail.com
Wed Jun 6 14:12:53 PDT 2007


On 6/6/07, Ákos Maróy <darkeye at tyrell.hu> wrote:
> maroy at tomodachi $ 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



More information about the Tinyos-help mailing list