I apologize for the first message, actually the code, at least in
1.0.7version for micaz, send the effective payload of your mesage. In
CC2420RadioM there's something like (in Send.send)

     pMsg->length = pMsg->length + MSG_HEADER_SIZE + MSG_FOOTER_SIZE;

hence, pMsg->length is the effective size of your payload, excluding headers
and footers. Then,

     // FCS bytes generated by CC2420
     txlength = pMsg->length - MSG_FOOTER_SIZE;

and

 task void startSend() {
   if (!(call HPLChipcon.cmd(CC2420_SFLUSHTX))) {
     sendFailed();
     return;
   }
   if (!(call HPLChipconFIFO.writeTXFIFO(txlength+1,(uint8_t*)txbufptr))) {
     sendFailed();
     return;
   }
 }

which means that just the first txlength+1 bytes of the tOS_Msg are sent
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to