I thing that's in the octavetech page, but I believe it is all bytes
including header, before escapes are applied.
I'm not sure but I think the pre-amble 7E 4x is not included.
MS
jurin dan wrote:
thanks a lot for your reply.
just one more thing. within the raw data packet, which byte do i use to
compute the CRC.
is it all byte or only TOS_MSG byte.
------------------------------------------------------------------------
> Date: Sun, 8 Apr 2007 17:22:29 -0600
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: [Tinyos-help] CRC checking
>
> This site describes the message format and CRC calculation:
>
http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
>
> There's also code in TOS (well...duh) and the java tools which
> does the CRC. I know one is called crc.java
>
> MS
>
> jurin dan wrote:
> >
> > hi,
> >
> > i have the raw data packet below receive with xlisten app:
> >
> >
> > *$ xlisten -r -b=mica2 -s=COM4 -t*
> >
> > *xlisten Ver:$Id: xlisten.c,v 1.2 2005/06/21 01:36:06 pipeng Exp $*
> >
> > *Using params: [baud=0x1001] [raw] [timed]*
> >
> > *COM4 input stream opened*
> >
> > *[2007/04/04 10:40:35]*
> >
> >
*7e42ffff007d5d1d840101009101000000007100000031037d5d0230030000000000000000007964
> > [40]*
> >
> >
> > CRC = 0x6479 (last bytes)
> >
> > i woul like to know how i could use the CRC to check the integrity of
> > the transmitted packet.
> > and which byte of the packet are taking in acount to compute the CRC.
> >
> > thanx for your help
> >
> >
> >
------------------------------------------------------------------------
> > Invite your mail contacts to join your friends list with Windows Live
> > Spaces. It's easy! Try it!
> >
<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
> >
> >
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> >
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
------------------------------------------------------------------------
Get news, entertainment and everything you care about at Live.com. Check
it out! <http://www.live.com/getstarted.aspx >
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help