All of your **** fields (except group) are part of the 802 header I think,
go poking into the specs and search back on this list for insights.
"group" is a TOS invention to allow multiple sets of motes to share a
radio channel and ignore each other's messages. It should be set to
the value of the DEFAULT_LOCAL_GROUP compile time define so everyone
agrees to whom they belong.
And yes, "addr" is the mote ID of the destination device.
MS
Madhu Mudigonda wrote:
Little insight into the TOS_Msg attributes:
1) length – The length of the payload in bytes.
2) fcfhi – The HI byte of the FCF
3) fcflo - The LO byte of the FCF
4) dsn – The sequence number
5) destpan – The destination PAN ID
6) addr – The destination Address
7) type – The type field
8) group – The group field
9) data[28] – The data payload (28 bytes)
On 9/13/06, * Sumit Gupta* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I also need some insight in this. Please tell me what significance
the following six (marked with ****) attributes have in struct TOS_Msg.
typedef struct TOS_Msg {
// The following fields are transmitted/received on the radio.
uint8_t length;
uint8_t fcfhi; ****
uint8_t fcflo; ****
uint8_t dsn; ****
uint16_t destpan; ****
uint16_t addr; // Is it a source address or Origin Address ****
uint8_t type;
uint8_t group; ****
int8_t data[TOSH_DATA_LENGTH];
uint8_t strength;
uint8_t lqi; ****
bool crc;
uint8_t ack;
uint16_t time;
} TOS_Msg;
Thanks in advance.
Regards,
Sumit
On 9/13/06, *Madhu Mudigonda* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
In CC2420 based radio packet TOS_Msg has a attribute by name
destpan. What does that indicate?
Thanks--
Madhu Mudigonda
Graduate Student
Ph.# 216-856-0127
Fax.#: 360-233-0127
_______________________________________________
Tinyos-help mailing list
[email protected]
<mailto:[email protected]>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
<https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>
--
Madhu Mudigonda
Graduate Student
Ph.# 216-856-0127
Fax.#: 360-233-0127
------------------------------------------------------------------------
_______________________________________________
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