Hi Sean,

The receiver must know in advance the radio frequency over which radio 
transmissions will take place. Otherwise, you can implement a channel 
scanning routine at the receiver, or leave the receiver's frequency 
fixed, and have the transmitter send 'hello' packets sequentially on 
each channel until an ACK is received. It all can be done at runtime, as in:

         ...
         call CC2420Config.setAutoAck(TRUE, TRUE);    // Make sure ACKs 
are enabled
         ...
         call CC2420Config.setChannel(channel);            // Sets radio 
channel to the value in "channel"
         call CC2420Config.sync();                                    // 
Commit to hardware
         ...

You may want to put some code into the call back routine to continue 
with whatever you were doing:

event void CC2420Config.syncDone(error_t error)
{
     ...
}

Sergio


>> Dear All
>>
>>
>>
>> Hi fellows,
>>
>> I'm doing some tests using tinyos 2.1.0 on telosb mote which uses CC2420
>> chip.
>> We can set the radio frequency (on 16 channels) before a mote transmitting
>> packets by adding in the Makefile:
>>
>> CFLAGS += -DCC2420_DEF_CHANNEL=11
>>
>> So is there any way that we can get the transmitting radio frequency at the
>> receiver mote? Similar to Received Signal Strength Indicator (RSSI), is
>> there anything like Received Radio Frequency Indicator? Or something else
>> that enables us to get this information feasibly?
>>
>>
>> Thank you,
>> Sean
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to