Hi Peng,

> Question1: Is this the message type eventually download to the RF chip
> buffer and send to the air?

Only the message_header, message_data and message_footer is downloaded
and sent over the air. The metadata is neither downloaded not
transmitted.

> Question2: As I want to keep the probabilities of 1s and 0s are as equal as
> possible, my idea is to find the field which has been fixed eg, src fcf dsn
> etc. and the difference between the number of 1s and 0s of these field and
> compensate in the payload field. I try to find which file to set them, but I
> haven't found, someone can give me a clue?

These are set in the RF230PacketP file. I would recommend you to read
the RF230 datasheet from Atmel and figure out the packet layout.

> Question3: Is these there filed plus TOSH_DATA_LENGTH equals to the final
> packet length? Or we have something else.

The final packet length has nothing to do with TOSH_DATA_LENGTH. Just
add together the length of message_header and message_footer
structures plus the length of the payload as you specified in
AMSend.send.

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

Reply via email to