Knowledge Base
HOME » KNOWLEDGE BASE » FORUM

GetRssiInst() always returns -127

Greetings,

I am trying to use LR1110 to detect rssi level of specified frequency. I'm using function that is mentioned in datasheet GetRssiInst(). Function is always returning -127 dbm and returned status is always 0 (Stat1), which according to data sheet is indicating that last command could not be executed.

What is correct setup to get rssi value of certain frequency?
My setup is currently this one, but is not working:

lr1110_system_set_standby( &radio;, LR1110_SYSTEM_STDBY_CONFIG_RC );
lr1110_radio_set_rf_frequency( &radio;, frequency );

lr1110_system_set_standby( &radio;, LR1110_SYSTEM_STDBY_CONFIG_RC );

uint8_t status = 0;
int8_t rssi_in_dbm = 0;
lr1110_radio_get_rssi_inst( &radio;, &rssi;_in_dbm, &status;);

I have changed lr1110_radio_get_rssi_inst to include Stat1 message in status variable, otherwise everything is as in LR1110 driver github repository.

Thanks,
Marko
Which version of LR1110_DRIVER APIs you are using??

Latest version of lr1110_driver functions have below function() to get the RSSI value.

lr1110_status_t status;
int8_t rssi_in_dbm;
status = lr1110_radio_get_rssi_inst( &radio;,&rssi;_in_dbm );
print("RSSI in dbm - %d ", rssi_in_dbm);

Hope it helps.

Best,
Bhavani.