|
I have a pair of these next to each other on my bench driven by ESP32s: https://www.soselectronic.com/en/products/hoperf/rfm95w-868-s2r-1-180936 The chips are marked SX1276 (seemingly not the HopeRF marked "RF96" chips as advertised) With this approximate code for TX: And this for RX: My packets are being received with an RSSI of -98dBm and a SNR of about 10, which seems extremely low? I'm using stub antenna which are supposedly 868MHz, but removing the antenna makes little difference. After getting nowhere I switched to https://github.com/sandeepmistry/arduino-LoRa and setting it up in the same way for TX and RX: I'm getting an RSSI of -18dBm and SNR of ~10 I've fiddled around with all of the settings above in RadioLib and I can't make any noticable difference. Is there some other setting I'm missing which Sandeep's library has on by default? Thanks |
Replies: 1 comment 12 replies
|
LoRa modem of the SX127x can report two different RSSIs - average RSSI of the last packet, and current instaneous RSSI. Which one are you measuring? As far as I can tell LoRa.h library calculates the RSSI similarly to RadioLib, with the notable differences that:
The SX127x datasheet also mentions that above -100 dBm and SNR >= 0, the RSSI measurement should be corrected by a factor of 16/15, but neither library does that and the effect should also be minimal. |
OK I'm a moron, im calling
begin()after setting all the settings, so theyre being defaulted back.Would be nice if the settings that are overridden in the default params of
begin()threw or at least warned if theyre called beforebegin()