Support for SX1301
Is it possilble t add support for SX1301?
I have a lot of RisingHF HNT miners with that chipset.
I'm in a similiar situation here with the nebra nebhnt hhrk4-868 Hardware seems to be very capable, but unfortunately I have to hope for SX1301 support
ROCK Pi 4 RK3399 Linux eMMC Gigabit Ethernet WLAN
SX1301 Gateway Card (GL5712) EU868
Same here - got some Nebra HNT Miners running on a Rock4B+ with 2GB RAM and the MAXIIOT GL5712 After some research I found the meshpoint project. According to the docs the MAXIIOT GL5712 hat sports the SX1301 chipset paired with two SX1257 RF front-ends
https://github.com/MAXIIOT-Dev/GL5712/ has vanished
The only reference left is that the GL5712 is a CE&FCC certificated LoRa concentrator card with industrial standard mini PCI express form factor based on SX1301 chipset for 863Mhz~928Mhz ISM band.
Would be great to repurpose the Miner
I guess the SX1301 must become adressed differently while not having the same HAL
I guess the SX1301 must become adressed differently while not having the same HAL
Correct, uses different HAL. Not impossible but have to architect it so it all fits together and has parity across devices. It's on the list, unless someone wants to get hacking on their own branch.
@KMX415
I'd like to donate a MAXIIOT GL5712 HAT for your Meshpoint project if you are open to it. Which country are you located in, so I can check the shipping costs?
@gh4chris That's very kind of you, thanks for offering to do that. Can you DM me on discord? Appreciate it again.
@KMX415 how do I find you on discord?
@gh4chris Meshpoint discord: https://discord.gg/4n7yPRZwCv
I have a focused, opt-in SX1301 backend ready for architectural review. It uses a separate Semtech HAL 5.0.1 C shim and the existing Meshpoint capture/transmit interfaces, with SX1302 kept as the default. The work includes a build helper, receive-only example, tests and a hardware guide.
Validation is on an original Helium OG carrier with a RAK2247 SPI US915 (SX1301/SX1257), Raspberry Pi 3 B+, Debian 13 aarch64. This does not establish support for the RisingHF/Nebra/GL5712/EU868 boards discussed here. It operates one single-SF channel at a time; hardware CAD and automatic relay are excluded.
A confirmed receiver-preamble mismatch is corrected with verified register readback: a TX16/RX10 control received 0/2, while TX16/RX18 received 4/4 over two initializations, with another native sender subsequently received 2/2. Stock HAL startup was unreliable on this carrier; the successful hardware runs used a separately maintained four-line Semtech timing patch. That dependency is disclosed and is not bundled into Meshpoint source.
The hardware contribution has 1,233 passing tests plus 88 subtests with the existing upstream crypto/decoder exclusions and a macOS terminal-test exclusion. Lint and native C syntax checks pass. Generic wire-header/traceroute fixes are submitted separately in PR #162, with no dependency on this backend. Experimental relay, GNSS and test-dashboard code are excluded.
Would this separate-HAL adapter approach fit the intended architecture for #91? The focused branch is available here: SX1301 contribution. The hardware guide records the setup, preamble controls, timing dependency and validation limits. AI assistance was used in implementation, tests and documentation.
Let's view the SX1301 as a very capable piece of hardware. It provides sufficient performance for the intended MeshPoint use case, and robust SX1301 support would make platforms such as the now affordable Nebra miners (based on the Radxa Rock Pi 4 with the Max IoT HAT) valuable MeshPoint targets.
Despite the 1 GB RAM limitation, lightweight distributions such as DietPi (Trixie) provide sufficient resources, making these devices excellent candidates for upcycling.
@flynnr2 Thanks for putting this together and keeping the hardware adapter separate from the wire-format changes. A separate HAL library behind the existing capture/transmit interfaces looks like a sensible direction, with SX1302 remaining the default.
This would be work for the next development cycle, outside the frozen RC. I'd keep the initial support claim limited to the tested RAK2247/Helium OG setup. The submitted adapter currently accepts only the US region and 902-928 MHz settings, so the EU868 Nebra/MAXIIOT variants discussed here would need additional configuration support and their own validation.
I found two things to resolve during review: RX follows the configured preamble, but TX is fixed at 16; and a send can fail after emission was observed, while the existing TX service only records airtime on success.
Please also link the exact companion HAL timing patch and document how to reproduce the tested build, including any uncommitted HAL changes. Keeping automatic relay disabled until channel-access behavior is established makes sense.
I have hardware available to test when it's ready. Once those points are addressed and there's a reproducible candidate, I can help validate it on my setup.
The architecture is worth pursuing. Those points would give us a clearer basis for a focused experimental-backend PR.
Thanks for the detailed review and the offer to test. I've addressed the two code issues and prepared a cleaner build handoff in 24d1d4b, on the existing SX1301 branch:
- The configured preamble now drives RX, native TX and HAL airtime calculation. RX retains the SX1301-specific plus-two sync-symbol adjustment. The native configure ABI is now version 2; older ABI-1 libraries are rejected and require a rebuild.
- All SX1301 send paths reserve the full calculated airtime before native dispatch, once. A reported failure after emission, unknown status, rejected native attempt, exception or cancellation retains that charge. Service duty-budget rejection does not dispatch or charge. A HAL airtime-calculation error aborts before sending instead of using a fixed-preamble estimate. This conservative charge does not claim that every attempt emitted or delivered a frame. SX1302 retains success-based accounting.
- Added regression coverage for those cases, plus a check compiling the actual C shim against Semtech 5.0.1 headers and a fake HAL to exercise preamble/airtime, emission followed by status failure, timeout, rejection and stale emission-state clearing.
The companion timing patch is now directly reviewable in a separate driver fork: exact commit 7987128, complete diff against v5.0.1. It is not vendored into Meshpoint. The updated hardware guide provides a pinned clean-build recipe. The builder rejects dirty tracked HAL files and extra untracked source/header inputs, then records source, generated-header, archive and library hashes, compiler versions/flags, ABI and application revision/status.
One provenance limit remains explicit: the archived main HAL source hash matches that companion commit, but the earlier records do not prove that every historical HAL file was clean. A read-only re-audit was blocked by SSH authentication, so I cannot honestly rule out all uncommitted changes in the historical installed tree. The new recipe requires no additional HAL source patches.
Validation of this revision: 1,263 tests plus 88 subtests passed, including the compiled fake-HAL check; Ruff and shell syntax passed. Combined with the protocol changes, 1,266 tests plus 88 subtests passed. The same upstream crypto/decoder and macOS terminal exclusions apply. These are software checks: no fresh Linux HAL link, Pi installation or RF test has been performed for ABI 2, and the prior hardware results do not validate this new binary. No running Pi services were changed.
The initial support scope remains US915 RAK2247/Helium OG, with automatic relay disabled. I'll keep this outside the frozen RC; the updated branch and recipe are available for the next development-cycle review and hardware validation. AI assistance was used for the follow-up implementation, tests and documentation.
Hardware follow-up, 26 October: the revised ABI-2 library has now been built, installed and exercised on HNTOG.
Build and provenance
- Tested hardware remains Helium OG / Pi 3 B+ / RAK2247 SPI US915 (SX1301/SX1257). The independent peer was HNTRAK / Pi 4 / RAK2287 (SX1302/SX1250).
- The hardware fixes are 24d1d4b. The installed application was the separate experiment integration at
760ccf9e5eeeaca761a2b2bd5a730e22e5e64e95, including the protocol fixes and existing diagnostic controls—not an installation of the isolated contribution branch. - Source was committed/merged and fetched through Git. The Pi performed a fresh Linux HAL build and native link against the pinned companion HAL 7987128. Its tracked HAL files were clean, with no extra untracked source inputs or additional source patches required for this build. This resolves the access/provenance blocker for the new build; it does not retroactively prove every older working tree was clean.
- The running process's cwd and mapped native path were checked separately. Native ABI was 2; library SHA-256:
b75d4c4387b8bf16163640ac3ddb42c6441c297dd026169414bb4903ba6fe9a9. The generated manifest records source, compiler and build hashes.
Controlled RF checks
All checks used 906.875 MHz, BW250, CR4/5, sync 0x2B, explicit header/CRC, addressed zero-hop local test frames, and bounded attempts without retries. HNTOG used the nominal 0 dBm gain entry; HNTRAK used 12 dBm. These are programmed settings, not measured output powers.
- SF7, TX preamble 8, SX1301 RX10 / SX1302 RX8: 2/2 exact frames each way.
- SF7, TX preamble 16, SX1301 RX18 / SX1302 RX16: 2/2 exact frames each way.
- SF11, TX preamble 16, SX1301 RX18 / SX1302 RX16: HNTRAK→HNTOG 2/2; HNTOG→HNTRAK 0/2. The previously observed reverse-link limitation remains; these fixes do not establish a general SX1302 interoperability fix.
All six controlled HNTOG sends observed emission, and each bounded trial completed without a radio/test fault. Small counts are functional checks, not reliability or sensitivity estimates.
Software and separate experimental relay observation
The Pi passed 71 focused checks, then 1,377 tests plus 97 subtests with the three upstream crypto/decoder exclusions. Linux terminal tests ran; no macOS terminal exclusion was needed. The broad suite unexpectedly altered two private channel settings; these were detected and restored from backup. Future broad runs should use an isolated test profile. Failure-after-emission accounting remains covered by software/fake-HAL tests; no physical bus/status fault was deliberately induced.
A separate ten-minute best-effort relay trial at programmed 16 dBm recorded three durable reservations, three observed emissions and successful RX reinitialization after each, with no faults. Four RF receptions occurred after at least one forward, including an exact match to a delayed local peer frame. No frame arrived after the final forward inside the trial itself; two later decoded concentrator receptions were confirmed in the restored normal receiver. Independent delivery of those forwards was not established.
HNTOG subsequently resumed the separately maintained experimental relay, with receive-only fallback and existing attempt/airtime caps. This relay is outside the hardware contribution: automatic relay remains rejected there, hardware CAD is unvalidated, and ordinary broadcasts remain disabled on HNTOG. HNTRAK's survey was restored. No reboot/cold-boot or calibrated RF-power test is claimed. Scope remains the tested US915 RAK2247/Helium OG setup, outside the frozen RC. AI assistance was used for the tooling, analysis and report.
@flynnr2 Thanks for addressing those points. I've independently run software checks against SX1301 revision 24d1d4b9828a45a0aeaeed95f6821e990260e0cd with the companion HAL pinned to 79871283e08c45e89d1196a5469e1aa68f544e71:
- 128 targeted Python tests passed, including the SX1301 backend/build-provenance tests and adjacent SX1302, TX and relay regressions. Lint passed.
- The native test was skipped on Windows because no C compiler was available there. I separately compiled and ran the actual fake-HAL fixture on Linux; its preamble/airtime, emission-failure, timeout and stale-state checks passed.
- A fresh Linux x86_64 build of the HAL and ABI-2 shared library succeeded. The library loaded, reported ABI 2, and matched the generated manifest hash. The build did produce upstream HAL format and byte-array initializer warnings, so it wasn't warning-free.
- Separately, 75 targeted protocol/relay tests and lint passed on PR #162 at
01bf4c2eebbcaa2a187fb150d721a21007b25e93, including the new complete-frame regression.
These were targeted independent checks, not a rerun of your full-suite counts or a combined integration test. No hardware was accessed, and the x86 build does not establish Pi/ARM or RF compatibility.
I have an OG hotspot and a Nebra available and will test on both when I have them ready. I'll confirm the exact hardware and region first, then use pinned revisions for the Pi build, startup/reset checks, RX and controlled TX checks with a separate receiving node, and rollback verification. That testing is still pending.
This remains outside the frozen RC for the next development cycle. RC is unchanged by these checks, and the initial support claim remains limited to the US915 RAK2247/Helium OG setup pending further hardware validation.