On Tuesday 26 June 2007 04:59:26 pm James Kebinger wrote:
> Using BlinkToRadio, I'm finding that packets I send out from the
> BaseStation via python have an extra couple of bytes in the header that the
> packets from the motes don't have. See below for sample output. Is this
> unusual? (the extra 00 is after 44)
>
> Send: 7e 44 00 00 ff ff 00 00 04 01 06 00 80 00 7b 50 bf 7e | 126 68 0 0
> 255 255 0 0 4 1 6 0 128 0 123 80 191 126
>
> Recv: 7e 45 00 ff ff 80 04 04 9f 06 00 80 07 78 78 24 7e | 126 69 0 255 255
> 128 4 4 159 6 0 128 7 120 120 36 126

David Moss helped clear this up earlier on this list; TEP113 discusses the 
serial active message protocol in detail.

The size of the serial AM packet is variable.  The first byte after the hdlc 
framing byte (0x7e) is the serial protocol byte.  If it's 0x44, 
SERIAL_PROTO_PACKET_ACK, then the next byte is a sequence number.  If it's 
0x45, SERIAL_PROTO_PACKET_NOACK, there is no sequence number in the data 
stream.  More info on this in the code in the $TOSDIR/lib/serial directory.

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

Reply via email to