On Jul 19, 2007, at 1:03 AM, Tal Rusak wrote:

Hi,
     The signature of the function putOnAirTo in the GainRadioModel
interface of /tinyos-2.x/tos/lib/tossim has the following signature:

  command void putOnAirTo(int dest,
                          message_t* msg,
                          bool ack,
                          sim_time_t endTime,
                          double gain,
                          double reverseGain);

I have not found any documentation about what the parameters gain and
reverseGain mean specifically. This function appears only to be
called in the file TossimPacketModelC.nc in the same directory with
the following command:

    call GainRadioModel.putOnAirTo(destNode, sending, metadata->ack,
evt->time, 0.0, 0.0);

Does anyone know precisely what the last two parameters (both 0.0s)
stand for?

They are so TOSSIM can support radio power control (in the future). That is, if the software configures the radio to transmit at -10dBm instead of 0dBm, then you can pass -10.0.

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

Reply via email to