Repository navigation
lorawan: add sx128x support with the WW2G4 2.4 GHz region - #16
Open
deadprogram wants to merge 2 commits into
Open
deadprogram wants to merge 2 commits into
deadprogram wants to merge 2 commits into
Conversation
Add sx128x setup for the LilyGo T3-S3 behind the sx128x build tag, and the WW2G4 region option in basic-demo and atcmd.
deadprogram
force-pushed
the
lora-sx128x
branch
from
December 3, 2026 11:13
a56c06e to
21b4378
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds sx128x support for LoRaWAN at 2.4 GHz. It is stacked on #14.
Changes:
WW2G4worldwide 2.4 GHz region. It uses 2403 MHz, SF9 at 812 kHz (DR3), CR 4/8 and 10 dBm, fromregion_ww_2g4_defs.hin Semtech LoRa Basics Modemsx128xbuild tag, with pins for the LilyGo T3-S3WW2G4region option tobasic-demoandatcmdSetPublicNetwork(true)on the sx128x uses the LoRaWAN 2.4 GHz sync word 0x21Limits:
EU868lorapackage in drivers has no constant for it, so this uses CR 4/8. The explicit header carries the coding rate, so the receiver decodes either oneIt should not be merged yet since the drivers dependency points at an unmerged commit from tinygo-org/drivers#955.
Tested with
go test ./..., and TinyGo builds ofbasic-demofor esp32s3-generic andatcmdfor esp32s3-n16r8-devkit with-tags sx128x. The existing LoRaWAN example builds for pybadge with the FeatherWing, lorae5, nucleo-wl55jc, pico with sx126x and the simulator still pass. Not tested on sx128x hardware.