adafruit / adafruit/Adafruit_CircuitPython_RFM9x

Non-default Spreading Factor not working

Open
#70 27 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
76
Forks
53
PR merge metrics
No merged PRs in 30d

Description

I have two other devices in the same room that are able to communicate while my LoRa Radio Bonnet on my Pi Zero cannot. The other devices can receive (FFFF0000345733E11203B22B47187E) what is sent but my Pi doesn't get anything that is sent.
One device is a Wio Terminal using the LoRa-E5 with these setting:
```
AT+TEST=RFCFG,915,SF12,125,12,15,14,ON,OFF,OFF
//AT+TEST=RFCFG,[F],[SF],[BW],[TXPR],[RXPR],[POW],[CRC],[IQ],[NET]
```

The other is a Feather nRF52840 with the FeatherWing RFM95W, which I assumed would be the easiest to communicate with being the same LoRa module. I am using this library https://github.com/sandeepmistry/arduino-LoRa since the RadioHead lib doesn't compile for the nRF52. It's settings:
```
long loraFreq=915E6;
if (!LoRa.begin( loraFreq)) { // initialize ratio at 915 MHz
while (true); // if failed, do nothing
}
LoRa.setTxPower(12);
LoRa.setSpreadingFactor(12);
LoRa.enableCrc();

```
And finally the settings from the Pi:
```
rfm9x = adafruit_rfm9x.RFM9x(spi, CS, RESET, 915.0)
rfm9x.signal_bandwidth = 125000
rfm9x.coding_rate = 6
rfm9x.tx_power = 12
rfm9x.spreading_factor = 12
rfm9x.enable_crc = False
#True didn't work either
```

Any help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the `adafruit_rfm9x.RFM9x` configuration shown in the issue and compare its bandwidth, coding rate, power, spreading factor, and CRC settings with the two working devices. Reproduce the interoperability failure, then establish which configuration change makes the Pi receive packets from the other radios.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.