[Tinyos-help] Re: crc
David Gay
dgay42 at gmail.com
Wed May 3 09:02:59 PDT 2006
On 5/3/06, Roberto <pagliari at dibe.unige.it> wrote:
> I need to leave the crc because in .net 2.0 I have to set properly the
> number of bytes threshold and if one of the two bytes of the crc is
> equal tio 0x7E or 0x7D it will be changed into 7D5E or 7D5D
> respectively. I use UARTNoCRCPacket and it seems to works fine. In this
> way there are no problems, also using GenericComm. Later I will try to
> do as suggested, thank you
Any 0x7d or 0x7e byte will be escaped with 0x7d (lookup HDLC, the
encoding scheme we use over the serial port). See the code for reading
TinyOS packets from the serial port in one of:
- tools/java/net/tinyos/packet/Packetizer.java
- tools/src/sf/serialsource.c
and I'm sure someone has a C# version of the above floating around somewhere.
David Gay
More information about the Tinyos-help
mailing list