net.tinyos.message.Message has a command dataGet() that returns a byte array of the complete message.
I've attached an Excel spreadsheet that decribes a SurgeTelos data report packet at the byte level. Hopefully it can give you a better idea on how a message is organized. Cory On 2/21/06, Rick <[EMAIL PROTECTED]> wrote: > > > Sorry, but my requirement is to generate the data at the byte level > so I need to know what's actually going on. > > Is there no documentation for message format at the packet level other > than in code? > > Thanks for the reply - > > Rick > > > Joe Polastre wrote: > > >Are you using the mig/java tools? If not, I recommend that approach > >as it automatically generates most of the things you need. For an > >example, see tinyos-1.x/contrib/ucb/apps/Pong > > > >-Joe > > > >On 2/20/06, Rick <[EMAIL PROTECTED]> wrote: > > > > > >>Hello! > >> > >>I'm trying to generate TOS packets and send them to a TelosB. I *think* > >>I've got the Telos programmed to accept messages - I'm sending them from > >>the Telos OK. > >> > >>Now, what goes in the packet that's sent? I've got the "type" field to match > >>the declaration on the Telos, but I'm not sure what the address field should > >>be. I've tried TOS_UART_ADDR (0x007e, 0x7d 0x5e 0x00 in byte stream) > >>and I've tried TOS_BCAST_ADDR (0xffff) and neither of them work. > >> > >>Any suggestions? > >> > >>Thanks, > >> > >>Rick > >>_______________________________________________ > >>Tinyos-help mailing list > >>[email protected] > >>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > >> > >> > >> > > > > > > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
tmote-message-format.xls
Description: MS-Excel spreadsheet
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
