-
Notifications
You must be signed in to change notification settings - Fork 418
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
Odd problem when works with other LoRa library. #347
Comments
From the description it looks like some configuration inconsistency between RadioLib and uPython. What happens if the direction of the transmission is reversed, i.e. uPython -> RadioLib? |
I just prepared four systems: Two ESP32 with RadioLib and Two Raspberry Pi Pico with MicroPython.
|
To answer your questions:
RadioLib/src/modules/SX127x/SX127x.cpp Lines 509 to 515 in 2ccebd1
What does it mean exactly? Does it not receive the transmission at all? Does it return some error code? Does it return mangled data ...? |
When I enable RxPayloadCrcOn Tx side, RadioLib always throws out ERR_CRC_MISMATCH. When I disable it, RadioLIb sometime does print the message. Msg again begins with four and only four correct characters. And other time, I still get ERR_CRC_MISMATCH. |
I was taking a look at the Python code, I noticed this:
You don't seem to be enabling low data optimization. As per SX1276 datasheet recommendation, RadioLib enables this automatically for LoRa settings that produce symbols longer than 16 ms. Your configuration SF12/BW 125 kHz will produce 32.77 ms symbols, so you should enable that on the uPython side. Alternatively, you can disable it on RadioLib side by calling |
[Thumbs up] Thanks for you magical tip :) It works after I enable LowDataRateOptimize!
To awesome
|
Glad it's working now! |
I am using a MicroPython LoRa library (Raspberry Pi Pico + Adafruit RFM95W (SX1276) ) to receive message from RadioLib (ESP32 with on-board SX1276).
The problem is I can only get 4 characters ("WWII" or "1945" or "look") reliably and more characters sent from RadioLib are either random characters or garbage.
If two tested LoRa systems both run RadioLib or both run the MicroPython library, everything works perfectly.
To Reproduce
MicroPython
Expected behavior
I expect 1956abc but get 1956\x16pI
Additional info:
Arduino core: [ESP32 1.0.6]
Arduino IDE version [1.8.15]
RadioLib version [4.5.0]
MicroPython: rp2-pico-20210618-v1.16.uf2
The text was updated successfully, but these errors were encountered: