[Tinyos-help] Precise contents and length of the 802.15.4 frames
(and most especially with the TestNetwork App)
roberto pagliari
bobtinyos07 at gmail.com
Thu Jul 5 08:38:24 PDT 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070705/0244ba74/attachment.html
More information about the Tinyos-help
mailing list