Skip to content

Add support for Meshnology W12 and LR2021 Wrapper - #3115

Merged
ripplebiz merged 4 commits into
meshcore-dev:devfrom
oltaco:meshnology_w12
Aug 5, 2026
Merged

Add support for Meshnology W12 and LR2021 Wrapper#3115
ripplebiz merged 4 commits into
meshcore-dev:devfrom
oltaco:meshnology_w12

Conversation

@oltaco

@oltaco oltaco commented Aug 5, 2026

Copy link
Copy Markdown
Member

Add support for the Meshnology W12 board and a RadioLib wrapper for LR2021 with side-detector (multi-SF) support. Currently side detector config is not persisted to preferences.

The side detectors can be configured on repeater with set extra.sf x,y,z where x y and z are the extra spreading factors. Note that there are restrictions on what extra spreading factors are allowed.
From the LR2021 datasheet:

 Up to 4 Spreading Factors (SF) can be detected in parallel (main SF + 3 side detectors).
 The main SF (configured with SetLoraModulationParams) must be the smallest SF in normal Rx operation and the largest SF for CAD
operation.
 The header type is fixed by the main SF.
 If the BW is greater than 500kHz, only a maximum of two side detectors are allowed.
 If the main SF is 10, 11, or 12, only one side detector is allowed (maximum two SFs can be detected simultaneously).
 All SFs must be different; it is not possible to have two of the same SF in parallel.
 The difference between the Max SF and Min SF must be less than or equal to 4.

Note the #ifdef (USE_LR2021) lines in RadioLibWrappers.cpp, these are necessary because if you call startReceive on LR2021 when it is already in receive mode then the radio throws -706 repeatedly in loop until the next TX happens. This is due to differences in what RadioLib does in when setting the radio to StageMode(RX).

@ripplebiz
ripplebiz merged commit 84e3a67 into meshcore-dev:dev Aug 5, 2026
15 checks passed
hermes-gadget added a commit to gadgethd/MeshCore-MQTT that referenced this pull request Aug 5, 2026
Upstream dev: 8b9bee3..84e3a67 (5 commits)
- Merge pull request meshcore-dev#3115 from oltaco/meshnology_w12
- LR2021: auto-LDRO for side detectors
- LR2021: fix for hardware cad and side detectors
- LR2021 multi-SF support (side detectors)
- add Meshnology W12 support and LR2021 wrapper

Conflicts resolved: src/helpers/CommonCLI.cpp (upstream restructured
static helpers and handleCommand; took upstream version)

MQTT guard patterns preserved in MyMesh.cpp/h. MQTT additions intact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants