-
Notifications
You must be signed in to change notification settings - Fork 1k
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
lora: Multiple small fixes (including syncword, sx126x minimum config) #804
Conversation
45478af
to
7a354cd
Compare
Build failure looks to be an unrelated regression from micropython/micropython#13620 |
7a354cd
to
a45c316
Compare
@oeysteinhansen If you have the opportunity, then it's possible to install the packages from this PR and verify the fix by running |
According to the docs, only freq_khz was needed for working output. However: - Without output_power setting, no output from SX1262 antenna (theory: output routed to the SX1261 antenna). - SF,BW,etc. settings were different from the SX127x power on defaults, so modems with an identical configuration were unable to communicate. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
If send completes before the first call to poll_send(), the driver could get stuck in _sync_wait(). This had much less impact before rp2 port went tickless, as _sync_wait(will_irq=True) calls machine.idle() which may not wake very frequently on a tickless port. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
Fixes issue micropython#796. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
Changes are cosmetic - and maybe very minor code size - but not functional. _reg_read() was calling struct.packinto() with an incorrect number of arguments but it seems like MicroPython didn't mind, as result is correct for both versions. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
a45c316
to
2242465
Compare
Thanks, merged with relevant |
@dpgeorge Oops, good catch - thanks! |
Collection of small LoRa fixes in individual commits. See commit messages for more details.
lora_cfg
didn't produce the documented results, some configuration keys always needed to be set.Test on SX1276, SX1262, STM32WL55.