As stored in memory, there is first header information, then space for the maximum size data field (set to 28, TOS_DATA_LENGTH), and then meta data. The data field is indeed variable but its space in memory isn't
eric On Mon, Sep 22, 2008 at 6:01 PM, Michael von Hauff < [EMAIL PROTECTED]> wrote: > hmmm, > > I thought the payload of the radio packet was variable. > > So what you are saying is that it is fixed at whatever the TOS_DATA_LENGTH > is set to? > > > > On Mon, Sep 22, 2008 at 4:48 PM, Greg Hackmann <[EMAIL PROTECTED]> wrote: > >> Michael von Hauff wrote: >> >>> I think that some of the metadata is missing (or I am expecting more than >>> what is there!) >>> >>> here is the output using Listen. >>> 00 00 60 00 00 1C 00 04 12 41 88 2D 22 00 FF FF 01 00 06 00 01 FF FF C9 >>> D2 06 EB 00 00 00 00 00 00 00 00 00 >>> 00 00 60 00 00 1C 00 04 12 41 88 2E 22 00 FF FF 01 00 06 00 01 FF FF C9 >>> D1 06 EB 00 00 00 00 00 00 00 00 00 >>> 00 00 60 00 00 1C 00 04 12 41 88 2F 22 00 FF FF 01 00 06 00 01 FF FF C9 >>> D0 06 EB 00 00 00 00 00 00 00 00 00 >>> 00 00 60 00 00 1C 00 04 12 41 88 30 22 00 FF FF 01 00 06 00 01 FF FF C9 >>> CF 06 EC 00 00 00 00 00 00 00 00 00 >>> >>> everything after the count down value (FF FF C9 D2 on first line) should >>> be the metadata i think (I expected some extra zeros because my serial >>> payload is bigger than the radio packet). >>> >> >> None of the metadata is being copied into the serial packet. You're >> dumping the first 28 bytes of the message_t structure, so what you're seeing >> is the 11-byte cc2420_header_t followed by the first 17 bytes of payload >> data (out of 28). >> >> Greg Hackmann >> > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher Autonomous Systems Lab Jack Baskin School of Engineering UCSC
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
