[Tinyos-help] about message_t

jiwen zhang zhangjiwen029 at gmail.com
Wed Mar 12 07:57:45 PDT 2008


Hello all :
  as we know , there is a metadata field in the message_t . i want to know
if there is a interface providing some ways to access them like the
interface Packet or the metadata can be accessed directly ?
  for example,cc2420 metadat:
typedef nx_struct cc2420_metadata_t {
  nx_uint8_t tx_power;
  nx_uint8_t rssi;
  nx_uint8_t lqi;
  nx_bool crc;
  nx_bool ack;
  nx_uint16_t time;
  nx_uint16_t rxInterval;

  /** Packet Link Metadata */
#ifdef PACKET_LINK
  nx_uint16_t maxRetries;
  nx_uint16_t retryDelay;
#endif

} cc2420_metadata_t;

   Because i want to get the value of the metadata , and put them in the
payload of a packet and send them out.i want to know do they really be given
a right value in the implementation before sending such as tx_power,rssi,ack
and so on ?  and in which file does it implement  these ?
thank you !!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080312/9420350e/attachment.html


More information about the Tinyos-help mailing list