I change the power during the run time - and it works fine. It's kind of difficult to see the problem, since this is only a snippet. I hope that *transmit_power* is not a local variable inside the Timer.fired, right?
Arik On Thu, Apr 15, 2010 at 14:31, <[email protected]> wrote: > Hi, > > I just tried out something. Every time, when a timer fires, I send a > packet. > After that, I increase the transmission power. > > It is basically like this: > > uint8_t transmit_power = 10; > > call CC2420Packet.setPower( &pkt , transmit_power ); > > if( call AMSend.send( AM_BROADCAST_ADDR, &pkt, sizeof(report_msg) ) == > SUCCESS ) > { > is_radio_busy = TRUE; > call Leds.led2Toggle(); > transmit_power++; > > if( transmit_power == 32 ) > { > transmit_power = 10; > } > } > > The current transmit_power value and RSSI value is also stored in the > packet. > > Now, I deployed the scenario with 4 base stations. The RSSI value should at > least change during the runtime of the program on the mote. But I always > get > the same RSSI value (it is different on each base station but every packet > on > the one base station should result in a slightly different RSSI value I > guess). > > So, I am not quite sure, if it is possible to set the transmission power > like > this? Anyone experience with that? > > Best, > Martin > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Best Regards, Arik Sapojnik
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
