2023-06-28 06:09 PM
Hi
We are using the
the ST library calculates LoRa SNR and RSSI by capturing the readings in register "REG_LR_PKTRSSIVALUE" although there is another register called "REG_LR_RSSIVALUE".
I failed to figure out the difference in contents of those 2 registers.
Any clue ?
thanks
Solved! Go to Solution.
2023-07-07 09:04 AM
Hello @sgabran and welcome to ST Community.
The difference between the two registers is that "REG_LR_PKTRSSIVALUE" captures the RSSI value of the last received packet, while "REG_LR_RSSIVALUE" captures the current RSSI value of the receiver.
"REG_LR_PKTRSSIVALUE" is updated only when a packet is received, and it holds the RSSI value of that packet. On the other hand, "REG_LR_RSSIVALUE" is continuously updated with the current RSSI value, regardless of whether a packet is being received or not.
So, if you want to get the RSSI value of the last received packet, you should use "REG_LR_PKTRSSIVALUE". If you want to get the current RSSI value of the receiver, you should use "REG_LR_RSSIVALUE".
I hope this is helpful for you.
Issam
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-07-07 09:04 AM
Hello @sgabran and welcome to ST Community.
The difference between the two registers is that "REG_LR_PKTRSSIVALUE" captures the RSSI value of the last received packet, while "REG_LR_RSSIVALUE" captures the current RSSI value of the receiver.
"REG_LR_PKTRSSIVALUE" is updated only when a packet is received, and it holds the RSSI value of that packet. On the other hand, "REG_LR_RSSIVALUE" is continuously updated with the current RSSI value, regardless of whether a packet is being received or not.
So, if you want to get the RSSI value of the last received packet, you should use "REG_LR_PKTRSSIVALUE". If you want to get the current RSSI value of the receiver, you should use "REG_LR_RSSIVALUE".
I hope this is helpful for you.
Issam
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.