Hello all.

Inside TossimActiveMessageC.nc we can find the following line within the
command AMSend.send:

"err = call Model.send((int)addr, amsg, len + sizeof(tossim_header_t));"

But the documentation of this function says that: "Send a packet with a data
payload of len."
Therefore, I found it a little awkward that we're adding the size of the
header since the command only requests the length of the DATA PAYLOAD.

Anyway, inside TossimPacketModelC.nc, in the function
send_transmit(sim_event_t* evt), we can find this line:

"duration = 8 * (sendingLength + sim_packet_header_length());"

Is it me or we're adding the length of the header twice? What about the
footer? Why isn't it added?

Please reply to me as soon as possible, I really need to make this clear.

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

Reply via email to