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

how to measure RSSI for temperature reading in contiki for CC2420 #2459

Open kayani009 opened 6 years ago

kayani009 commented 6 years ago

hi, i am new to contiki OS. I am using two transceivers to send and receive the temperature reading. how can i measure the RSSI of the received temperature reading.

alexrayne commented 6 years ago

RSSI puts in packetbuf attributes, so int rssi = (int16_t)packetbuf_attr(PACKETBUF_ATTR_RSSI); also you can access to NETSTACK_RADIO and take param RADIO_PARAM_LAST_RSSI radio_value_t radio_rssi; NETSTACK_RADIO.get_value(RADIO_PARAM_LAST_RSS, &radio_rssi);

lamnd09 commented 6 years ago

There is one example about howto measure RSSI in example folder, you might try it.