I'm testing Tossim MAC Layer and found that some of functions are not
working.
When the tossim calculates duration of sending a packet, we are using values
put from Python.
I found that the duration calculation returns wrong values.
Have anybody found this problem before?
Your help or any opinion will be appreciated.
---------------------------------
*Duration calculation function (send_transmit() in TossimPacketModelC.nc )*
dbg("TossimPacketModelC", "Duration(%lu),
SendingLength(%lu)\n",duration,sendingLength);
duration = 8 * (sendingLength + sim_packet_header_length());
dbg("TossimPacketModelC", "Duration(%lu), SendingLength(%lu),
sim_packet_header_length(%lu)\n",duration,sendingLength,sim_packet_header_length());
duration /= sim_csma_bits_per_symbol();
dbg("TossimPacketModelC", "Duration(%lu), sim_csma_bits_per_symbol(%lu),
\n",duration,sim_csma_bits_per_symbol());
duration += sim_csma_preamble_length();
dbg("TossimPacketModelC", "Duration(%lu),
sim_csma_preamble_length(%lu)\n",duration,sim_csma_preamble_length());
*Output*
DEBUG (4): Duration(0), SendingLength(0)
DEBUG (4): Duration(312), SendingLength(0), sim_packet_header_length(32)
DEBUG (4): Duration(78), sim_csma_bits_per_symbol(0),
DEBUG (4): Duration(90), sim_csma_preamble_length(0)
In this case, my packet size is 25byte. I guess Sending Length should be 25
sim_csma_bits_per_symbol(0) sould be 65536
sim_csma_bits_per_symbol(0) should be 4
Because I set up the mac layer in python script as:
mac.setSymbolsPerSec(65536)
mac.setBitsBerSymbol(4)
Please let me know what is wrong or bug.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help