Skip to content

fix: backport SX1262 PHY optimisations for RAK4631 from Meshtastic - #91

Open
drupol wants to merge 1 commit into
attermann:masterfrom
drupol:push-vvtlmvrpruqp
Open

fix: backport SX1262 PHY optimisations for RAK4631 from Meshtastic#91
drupol wants to merge 1 commit into
attermann:masterfrom
drupol:push-vvtlmvrpruqp

Conversation

@drupol

@drupol drupol commented Jul 14, 2026

Copy link
Copy Markdown

This PR addresses several physical layer misconfigurations for the SX1262 transceiver on the RAK4631 (drawing upon proven optimisations from the Meshtastic project and RadioLib):

  • TCXO Voltage: Corrects the DIO3 TCXO voltage from 3.3V to 1.8V for the RAK4631, aligning with the hardware specification to prevent frequency drift and potential component degradation.
  • RTC Stop Errata (Semtech 15.3): Explicitly writes 0x00 to register 0x0902 during initialisation. This prevents the internal RTC from triggering spontaneous wakeups, avoiding silent hardware lockups.
  • OCP Tuning: Increases the Over-Current Protection (OCP) limit to 140mA (0x38) for both RAK4631 and RAK3401.

This ensures the 22dBm transmit power is not artificially clipped by the default 100mA limiter, maximising range and signal integrity.

@drupol
drupol force-pushed the push-vvtlmvrpruqp branch from 4546d25 to ec7355f Compare July 24, 2026 05:50
@drupol

drupol commented Jul 24, 2026

Copy link
Copy Markdown
Author

@attermann Can I ask a review for this PR too ? FYI - Using this on 2 RAK19003s, 2 RAK19007s and 2 Wismesh Tags successfully.

@attermann

Copy link
Copy Markdown
Owner

Apologies for not getting to this (and other) PRs yet. Life is a little demanding atm. This looks good, I just need to find the time to go over it in detail.
One question I have related to another report (link below) of LNA/PA issues on the 1W RAK13302 boards, any idea if this could be related to the OCP from your Meshtastic research?

6a485d5#commitcomment-194030534

@drupol

drupol commented Jul 28, 2026

Copy link
Copy Markdown
Author

I checked the current Meshtastic firmware and it applies the same 2 settings to both the RAK4631 and the RAK3401 with the RAK13302 module:

So yes, the increased current limit could plausibly be related to the reported transmission-side issue on the RAK13302. If the previous limit was too low, the radio output feeding the external power amplifier could have been reduced or unstable.

However, this would mainly explain transmission problems. It would be less likely to explain a genuine reception or low-noise amplifier issue for which I have no clue.

Now, take your time for reviewing, no worries, there's no emergency. I keep a local branch where I merged all my PRs, so, not an issue for me ;)

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