contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.72k stars 2.58k forks source link

cc2650 set TX power #1340

Closed schuschu closed 8 years ago

schuschu commented 9 years ago

There seems to be an issue with the set_tx_power function. By default, the transmission power in IEEE mode is output_power[0], which corresponds to +5 dBm. At a distance of 10cm, a CC2531 USB dongle receives packets with an RSSI of -39 dBm, which seems reasonable.

However, whenever the NETSTACK_RADIO.set_value(RADIO_PARAM_TXPOWER, ...) function is called (including when the transmission power is set again to +5 dBm), all packets seem to be sent with the lowest transmission power. I indeed receive an RSSI of -76 dBm with the same settings.

Interestingly, the transmission power seems only to change correctly when I change the default value of output_config_t *tx_power_current = &output_power[X].

g-oikonomou commented 9 years ago

@schuschu Thanks for this report. Should be fixed with #1350