lora/lora-sx127x-pycom: Add unified SX1272/SX1276 LoRa driver#1102
lora/lora-sx127x-pycom: Add unified SX1272/SX1276 LoRa driver#1102ddtdanilo wants to merge 1 commit intomicropython:masterfrom
Conversation
Add a LoRa radio driver that handles both SX1272 and SX1276 transceivers. The existing lora-sx127x package only supports SX1276 (version register 0x12); this driver also handles SX1272 (version 0x22) with its different register layouts for bandwidth, coding rate, CRC, and RSSI calculation. Used by Pycom LoPy (SX1272) and LoPy4 (SX1276) boards as defined in micropython/micropython#19026. Signed-off-by: Danilo D <danilodt@gmail.com>
projectgus
left a comment
There was a problem hiding this comment.
This looks really exciting, thanks @ddtdanilo! Had always hoped the LoRa micropython-lib support would be enough for someone to build a LoRaWAN driver.
Do you mind moving the lorawan support into its own PR, please? There's a lot of new code here, and it will be easier to review and merge these independently.
|
Hi @projectgus — thanks for the review! I've split the LoRaWAN MAC layer into its own PR as you suggested: ➡️ #1111 ( This PR (#1102) now contains only the Let me know if you'd like any further changes to either one. |
Summary
Add
lora-sx127x-pycom: a unified SX1272/SX1276 LoRa radio driver formicropython-lib.The existing
lora-sx127xpackage only supports SX1276 (version register0x12); this driver also handles SX1272 (0x22), which has a different register layout for bandwidth encoding, coding rate bits, CRC location, and RSSI calculation offsets.This package is consumed by the Pycom LoPy (SX1272) and LoPy4 (SX1276) board definitions in micropython/micropython#19026.
Testing
ruff checkandruff formatRelated