Hi all,
I am simulating a application where i need to find the transmission delay in TOSSIM. So I used time stamps to find the delay for a packet. The delay was varying from 20ms to 40 ms. This was due to the fact of Backoff delay. Since this is a randomly chosen delay, I made that to a constant number of 2. When i resimulated that, the delay was constant throughout the execution(10ms between a pair of node)
My question is, the transmission delay or the time to transmit is a function of BAUD RATE. As the BAUD RATE is decreased, the time to transmit should also increase. In my application, the PREAMBLE length is 28 bytes, SYNC is 2 bytes, Message size is 15 bytes inclusive of payload and header and CRC is 2 Bytes.
If we consider 19200 kbps (38.4kbaud), then
Time to transmit = (PREAMBLE + SYNC+Message size + CRC) * 8 / 19200
= ((28+2+15+2)*8/19200)*1024
= 20.0533 ms
But the simulation results were showing 10 ms. When the BAUD rate was changed, i.e., to 0.6 Baud, the time to transmit must increase to 300ms. But the result remained 10ms only.
The file that i used to set the Baud rate is cc1000const.h and cc1000controlM.nc. Any changes in the BAUD rate were not effecting the simulation results(delay).
Is my approach for setting the Baud rate is correct???
Do we have anyother file to set the BAUD rate for TOSSIM??
Thanking you in advance,
--
with regards
venkatesh
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
