I think you have interpreted things correctly, although if you are using a telos mote I thought it maintained the CC2420 radio header throughout -- but that looks like the old familiar types/AM.h header. The last two bytes should be the CRC.
You will have to go look at the program you are using and see what the message structure is. The "0F Cn" or "Cn 0F" fields look like they may be a set of samples, if true then I place a bet of Cn 0F since ints are little endian. I don't know what the other values are but the 58, 59 look like a sequence number counter. You are confusing bits and bytes in the question about Read<unitd_16> int16 is 16 bits in two bytes. For interpreting messages OctaveTech used to have a nice document but it disappeared, so I dredged it out of the archive: http://web.archive.org/web/20060627154751/http://www.octavetech.com/pubs/TB5-01+Deciphering+TinyOS+Serial+Packets.pdf Zé Pedro Espogeira wrote: > Hi to all > im reading the Sensing tutorial and im using the HamamatsuS1087ParC > interface to read from the light sensor in telosb. > with a BaseStation node i can see the packets content being delivered, > and they look like this: > > 00 FF FF 00 01 1C 00 93 00 00 01 00 00 01 00 58 0F C6 0F C8 0F C8 0F C8 > 0F CA 0F C8 0F C9 0F C9 0F C9 0F CA > 00 FF FF 00 01 1C 00 93 00 00 01 00 00 01 00 59 0F C5 0F C5 0F C4 0F C4 > 0F C3 0F C2 0F C4 0F C3 0F C8 0F C3 > > i read before the Mote-to-Pc communication tutorial how to interperter a > packet, so plz correct me if im wrong. > -Since the radio message is in broadcast the destination bytes are FF FF > -the source add is 00 00 > -1C is the length (28 bytes) > -the next 28 bytes contains the measurement message > -remains 2 bytes (OF C3) and what is this? the "source addr" field or > "counter" field?? > > by the way, because the HamamatsuS1087ParC interface uses Read<unitd_16> > shouldnt the message have 16 bytes? > im sry if these are basic questions but im not electronic area. > > Ze > > ------------------------------------------------------------------------ > A vida na frente do computador ficou mais simples: Chegou Windows 7! > Clique e Conheça > <http://www.microsoft.com/brasil/windows7/default.html?WT.mc_id=1539> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
