-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Failed to receive LoRa packets with SF 12 #10
Comments
Thanks for bringing this issue to my attention. I apologize for the confusion caused by the missing Low Data Optimization (LDO) setting in my LoRa library. I understand that this feature is important for reliable data transmission when using a Spreading Factor (SF) of 12. I've now added the necessary code to set the LDO in the LoRa library. You can find the updated code in the following commit: The changes include the addition of two new functions: Unfortunately I couldn't test the updated library with SF12. Please check these new functions and tell me the result. Thanks again for bringing this to my attention, and I apologize for any inconvenience caused. If you have any further questions or concerns, please don't hesitate to reach out 🌹 |
I have attempted to creat a fix. But not successful yet. Let me test your patch tomorrow morning. |
Thanks. Would you mind sending your code please? |
My code is not working yet. Let me debug and try to fix for sf11 based on your fix yesterday. Hope to complete by this Friday. Will update you and creat pull request if success. |
I think there is still missing code here and there comparing to RadioLib and ArduinoLoRa. So Arduino-LoRa uses "long" so after debugging, I guess it would trim down to 16. So my suggested fix is to change this line Line 180 in 0bf5cb7
To the below.
My STM32L0 with this fix is able to receive SF7-12 packets from Arduino-LoRa now. |
Hi again, Thanks for your suggestion to fix the issue. I agree that changing the line to use Would you be willing to make this change in your forked repository and send a pull request? This way, we can keep the changes in your repository and I can merge them into the main repository. If you're not comfortable making the changes yourself, I can certainly do it myself. However, I'd like to give you the opportunity to make the changes and get credit for your contribution. Let me know either way, and we can move forward with the fix. Thanks again! |
Ok, let me create a pull request tomorrow. |
I created a Pull Request. |
Hi all,
I have tested to send packet from Sandeep's Arduino LoRa (ESP32) to SMotlag's LoRa (STM32).
When SF = 7, STM32 can receive packets from ESP32.
However, when SF=12, then STM32 does not receive packets from ESP32.
Compare the set Spreading Factor function, I guess this library misses the part to set LDO (Low data optimization).
This library
https://github.com/SMotlaq/LoRa/blob/master/LoRa/LoRa.c#L184
Sandeep's library
https://github.com/sandeepmistry/arduino-LoRa/blob/master/src/LoRa.cpp#L573
RadioLib's library
https://github.com/jgromes/RadioLib/blob/master/src/modules/SX127x/SX1278.cpp#L188
Have you tested the receiving with SF12?
Thanks a lot.
The text was updated successfully, but these errors were encountered: