Hello.  On lines 45 through 59 of
.../tinyos-2.x/tos/chips/cc2420/CC2420.h the CC2420 header is specified:

 

typedef nx_struct cc2420_header_t {

  nxle_uint8_t length;

  nxle_uint16_t fcf;      // Frame Control (Field)

  nxle_uint8_t dsn;

  nxle_uint16_t destpan;  // Destination PAN ID

  nxle_uint16_t dest;     // Destination address

  nxle_uint16_t src;      // Source address

  

  /** I-Frame 6LowPAN interoperability byte */

#ifdef CC2420_IFRAME_TYPE

  nxle_uint8_t network;   // I-frame (interoperability frame)  byte

#endif

 

  nxle_uint8_t type;      // Packet type

} cc2420_header_t;

 

Can someone please clarify for me what the length and dsn fields are?
Is dsn Device Sequence Number?  How is length used?

 

Can the type field be anything?  For example, if I wanted to add
additional RF commands to the stack, could I make my own definitions
using this type field to specify each, or is it a static field?

 

Where is the maximum payload size specified?  Is it TOSH_DATA_LENGTH
(line 96 of CC2420.h)?

 

Thanks,

 

-Jim

 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to