-
Notifications
You must be signed in to change notification settings - Fork 48
spreading_factor = 6 does not work on Ra-02 (SX1278) #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ugh! I think this relates to an old issue #70 that has unfortunately not been resolved. I'll look into it in the CircuitPython_RFM library https://github.com/adafruit/Adafruit_CircuitPython_RFM. and see if I can reproduce and hopefully understand this. If a fix is found, it can also be "back ported" to this library. |
I notice in @spreading_factor.setter (line 632 of adafruit_rfm9x.py) that there is a difference when sf is set to 6. I've tried to set it so detection_optimize stays to 0x3 and detection threshold stays set to 0x0A, but it still doesn't work.
|
As noted in the Adafruit_CIrcuitPython_RFM library issue adafruit/Adafruit_CircuitPython_RFM#8, According to the SX126 data sheet "Note With SF = 6 selected, implicit header mode is the only mode of operation possible." This library assumes the header is in "explicit" mode. Several changes would be needed to implement "implicit" mode. So I think that SF 7-12 are actually working OK, but for the higher SF especially 12, more experimentation on the timing parameters is needed due to the increase in the packet transmission and receive times. I'll be looking into that more. |
Some progress on SF= 6...see adafruit/Adafruit_CircuitPython_RFM#8 (comment) |
see adafruit/Adafruit_CircuitPython_RFM#10 |
Thanks! |
Just to be clear, the PR is to the Adafruit_CircuitPython_RFM library. |
Oh, right, so, it doesn't change anything for me and my Ra-02. Thanks again! |
If the Adafruit_CircuitPython_RFM9x library works on your Ra-O2, then the RFM library should work as well. Please let me know if it does not! |
I can transmit and receive data if I set the spreading factor anywhere between 7 (default) and 12 on both transmitter and receiver, but setting it to 6 fails to transmit/receive anything.
I'm using Adafruit CircuitPython 9.2.0 on 2024-10-28 on a Waveshare ESP32-S3-Zero with ESP32S3, with a Ra-02 LoRa module (https://www.aliexpress.com/item/32965792976.html)
The text was updated successfully, but these errors were encountered: