Closed sergio303 closed 3 years ago
Watching with interest. Update this too? - https://github.com/sandeepmistry/arduino-LoRa/blob/master/API.md
Yeah, please add the new rssi method to the API otherwise this looks good to me. @torntrousers or anyone else have thoughts? I'll read through the datasheet again the merge this if there are no concerns.
LGTM
API updated. New rssi method can be used to watch channel activity. I'm also looking at packet rssi calculation in Semtech datasheet and code, it looks like some adjustment is needed when packets are received below the noise floor (snr <0), will submit a separate PR when I sort things out...
@morganrallen @sandeepmistry I realized I reinvented the wheel today by doing the same code for rssi() Could you help to review and to push this to your repository?
Yes, the threshhold for LF and HF should be 525Mhz instead of 868Mhz.
@IoTThinks thanks for nudging this PR :)
Later, I will test on the merged code.
Thanks a lot for your effort.
Mid band threshold used for RSSI calculation is wrong, causing incorrect RSSI values for frequencies on the HF band but below 868 MHz . Semtech reference code uses 525 MHz as threshold for RSSI calculation: