Hi guys,

I am working with the latest CVS version of Tinyos-1.x. In TOSSIM I have
several nodes, and each of them broadcasts one packet per second. In my code
I use GenericComm for sending and receiving data.

I notice that the packets are sent using "MicaHighSpeedRadioM$Send$send",
and there "ChannelMonC$ChannelMon$macDelay" is used to generate random
delay.

In /tinyos-1.x/tos/platform/pc/ there is also Nido.nc, which supplies
"RadioSendMsg$send".  Inside this command "packet_sim_transmit" of the file
"packet_sim.c" will be called, and hence "initialBackoff".

My questions:
1. is "macDelay" from "ChannelMonC.nc" representing the mac backoff?

2. I want to test the backoff implementation in "packet_sim.c", but don't
know how to make it work. It is written in this file

* To use this code, all you need to do is add the line
*   PFLAGS = -I/path/to/tinyos/broken/experimental/mdw/tossim
* to your application Makefile, then rebuild your application with 'make
pc'.

After modifying my make file and recompilation there is no change, i.e.
"MicaHighSpeedRadioM$Send$send" is still used.

Any help will be appreciated!

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

Reply via email to