Repository navigation
Hardware
Generated page — do not edit here. The source of truth is
docs/HARDWARE.mdin the repo, at commit4193bfc. Edits made in the wiki are overwritten by the next publish, and a wiki page cannot be reviewed in the same diff as the code it describes.
🚧 NOT YET BUILT. Bench/field status: none.
Authoritative behavior: FIRMWARE_SPEC.md. Libraries: LIBRARIES.md.
Class A LoRaWAN US915 end node: poll RK900-09 + RAK9154, uplink on downlink-settable interval, woods-hardened.
| Role | Part | SKU |
|---|---|---|
| Core | RAK4631 US915 | 116000 |
| Base | RAK19007 | 110082 |
| RS-485 | RAK5802 | 100003 |
| Antenna | Blade 915 RP-SMA (if needed) | 926019 |
| Enclosure | Unify solar variant — the no-solar 910406 was out of stock | 910421 (confirm) |
| Buck | 12 V → 5 V | (separate) |
| Power source | RAK9154 Solar Battery Lite, large-panel variant | — |
Not used: RAK13002 (conflicts with 5802 IO slot), GNSS, RTC, AS923 kit 119012.
Planning assumed the no-solar 910406. Only the solar variant was available, so the shell in hand has panel mounting and, unlike 910406, is roomy enough for the buck converter with space to spare. Both of those are fine. The panel is the problem, and it is a decision rather than a detail:
The RAK9154 must remain the power source, and the enclosure's panel should be left
unconnected. Half the firmware exists to read that pack — voltage, current, state of
charge, and temperature come over the one-wire link on its 5-pin socket
(ADR-0004), the low-voltage gate in
src/power.h decides whether to transmit based on what it reports, and four of the nine
uplink fields come from it. Powering the node from the enclosure panel instead would mean
no pack to interrogate: BatteryReading would be permanently absent, the brownout gate
would have nothing to act on, and the node would lose the ability to tell anyone it was
running out of energy.
Wiring both panels into the pack's charge input is also not the answer — the RAK9154 has its own 18 V charge controller expecting one array, and a second uncontrolled source on the same input is a good way to damage it.
So the enclosure's panel is dead weight here. That is acceptable; it was a stock substitution, not a design change. Do not "make use of it" without revisiting this.
The RAK9154 is solar-recharged in its own right: 56.16 Wh pack, integrated 18 V charge
controller, BMS, and heater, with a 10 W panel in the regular variant [CIT-RAK9154-SOLAR].
This deployment uses the large panel. The system was always solar; only the shell was not.
This was previously stated wrong in POWER_BUDGET.md and matters a great
deal to the design — see that page.
To confirm on the bench: the exact SKU, how many cable entries the shell actually has, and whether the lid panel terminates in a bare lead or a connector. Cable entry planning is issue #20 and the premise changed with the shell.
Select the buck on its no-load quiescent current. It is a 24/7 load in parallel with everything the firmware does, and a part drawing several milliamps at idle would exceed the node's entire average draw on its own.
The pack has two load sockets. Connector reference:
forest-weather-machines/rak-4-5-wire/docs/01-connector-reference.md [CIT-RAK45WIRE] —
the sibling repo is cloned at ~/Documents/GitHub/forest-weather-machines, not beside this
repo, so it is cited rather than linked. See CITATIONS.md.
Superseded by ADR-0004: the battery uses the one-wire path on socket B. This socket stays unused and available if one-wire proves unreliable on the bench.
| Pin | Signal |
|---|---|
| 1 | P+ (~12 V) → buck only |
| 2 | P− → GND |
| 3 | RS-485 A |
| 4 | RS-485 B |
Modbus slave 0x6E, 9600 8N1. Register map: FIRMWARE_SPEC §2.2 / RAK2560 settings §5d.
Mating part: SP1110/P5-N plug (SP11 series, IP67, screw-locking circular, 2 A, 0.75 mm
contacts × 5). The socket on the pack is SP1110/P5; the cable-end plug that mates with it is
the -N variant [CIT-RAK9154]. Buying the plug is preferable to cutting the supplied cable,
which keeps the assembly weatherproof and reversible.
The connector visible inside a Sensor Hub shell is the board-side end of that bulkhead and is a different, unpublished part — RAK does not document it, so it cannot be ordered by part number. Measure the pin pitch before assuming a JST family (1.0 mm SH, 1.25 mm GH, 1.5 mm ZH, and 2.0 mm PH all look alike in a photograph). Mating it saves a gland but ties the build to an undocumented part.
| Pin | Signal | Notes |
|---|---|---|
| 1 | P+ (~12 V) | Splits two ways: buck VIN+, and the RK900's 12 V supply |
| 2 | P− | GND — shared return for the buck, the RK900, and the RS-485 reference |
| 3 | TXD | Half-duplex data (bridge to pin 5 for one-wire) |
| 4 | 3V3_In | Level ref / probe rail — tie carefully to 3V3, never 5 V |
| 5 | RXD | Bridge to TXD for one-wire |
Not full-duplex UART to RX1/TX1 as two independent lines without bridging — Hub protocol is half-duplex one-wire @ 9600. See Meshtastic / RAK-OneWireSerial / rak-4-5-wire.
Two 4-way spring terminals, silkscreened BAT GND A/RX B/TX and SCL SDA 3V3 AIN. Eight clips
total. Six of the node's seven external connections land in them, which is why the build below
uses this module as the wiring hub rather than the base-board header.
| Block | Clip | What it is | What this node puts in it |
|---|---|---|---|
| 1 | BAT |
battery rail output, 2.6–4.2 V, for powering a sensor [CIT-RAK5802] | empty |
| 1 | GND |
common ground — same net as the base-board GND pad |
pack pin 2 (P−) |
| 1 | A/RX |
RS-485 A, non-inverting | RK900 A
|
| 1 | B/TX |
RS-485 B, inverting | RK900 B
|
| 2 | SCL |
I²C clock, an otherwise unused GPIO | empty |
| 2 | SDA |
nRF P0.13 — the one-wire pin, direct passthrough, no buffer | pack pins 3+5 joined |
| 2 | 3V3 |
switched output on 3V3_S — dies mid-cycle |
empty. never use |
| 2 | AIN |
one analog input | empty |
Each clip takes one conductor. P− has to fan out to the buck negative and the RK900 negative
as well, so that junction is made at the pack connector and a single wire runs from it to GND.
BAT and 3V3 are outputs to power a sensor, not supply inputs. Neither can run the RK900,
which needs 12 V — that comes from the pack, through the buck, and never through this module.
Do not take the pack's 3V3_In (pin 4) from the RAK5802's 3V3 terminal. That terminal sits
on 3V3_S, which WB_IO2 switches, and src/sensors/rk900.cpp deliberately drops WB_IO2 LOW
when it finishes reading the weather station in order to power the transceiver down. The battery
is read after the weather station, so the pack's reference would be dead exactly when it is
needed, and the symptom would be a battery that never replies — easy to misread as a wiring or
protocol fault. Take pin 4 from the always-on VDD pad on the base-board header instead.
4-wire: V+, GND, A, B → RAK5802 @ 9600, slave 0x01. Probe IO optional as junction box
only. The datasheet and the one field-deployed twin both say 4800; this physical unit
answers only at 9600 and gives zero bytes at 4800 across four consecutive sweeps
(ADR-0006, 2026-08-03, 998dc26).
Wiring from 4800 costs a bench session debugging a bus that is silent by configuration.
Per ADR-0004. The two sensors are on separate buses, so neither can interfere with or block the other.
12 V positive (
P+) goes to BOTH the buck VIN+ AND the RK900's 12 V input.12 V negative (
P−) goes to ALL THREE: the buck negative, the RK900's negative, and theGNDpad on the base-board header.
The base-board GND pad is the one that matters and it used to be missing from this rule, which
is how a review on 2026-08-30 talked itself into a ground-float failure mechanism that does not
exist. It is bonded twice over: directly by this wire, and again through the buck, which is
non-isolated and therefore shares input and output ground whether or not it is converting.
GND on the RAK5802 is not in the path as built.
Both rails split. Nothing is daisy-chained through the RAK5802, and nothing is exclusive.
Pack pins 3 and 5 (TXD and RXD) are joined together, and that single joined wire goes to the
SDApad on the base board — through the protection network below, never straight to the pad.Pack pin 4 (
3V3_In) goes to theVDDpad on the base board. Not to the RAK5802's3V3terminal, and never to 5 V.
Both pads are on the 2.54 mm header along the edge of the RAK19007, silkscreened
BAT IO2 IO1 A1 IN1 and SDA SCL TX1 RX1 GND VDD BOOT0. Neither signal appears on any screw
terminal, so both are solder joints.
Answered 2026-08-30 — the pack is not the overvoltage source. For the whole life of this
project the data-line level was an assumption: 3.3 V, because pin 4 is labelled 3V3_In. It is
now a measurement (EVIDENCE.md, capture 13, 2,347,642 samples over 60.1 s, no
Core in the loop):
| Property | Measured | Against |
|---|---|---|
| Idle / HIGH | +3.3118 V | pad max VDD + 0.3 V = 3.600 V [CIT-NRF-GPIO] |
| Driven LOW | +0.0867 V | pad min −0.300 V |
| Absolute peak | +3.318 V | 282 mV of headroom |
| Absolute floor | +0.014 V | no negative excursion across 9,520 edges |
And it cannot become the overvoltage source. Its driver sits on pin 4 — data HIGH at +3.3118 V
against pin 4's +3.291 V, 21 mV apart, one rail within the analyzer's 4.88 mV LSB — and the build
feeds pin 4 from the node's own VDD. The pack runs on the same rail the nRF52840's I/O does.
Two things the same numbers do not clear:
- The pack is an active low-side driver (+0.0867 V, not a passive pull-down), so a transmit overlap is two live drivers in opposition, and our end idles push-pull HIGH (#99).
- The line idles at +3.31 V while an unpowered pad's maximum is 0.3 V [CIT-NRF-BACKPOWER] — 11× over whenever the harness is mated to a dark core. That is the connector-sequencing rule below, and it is now measured rather than assumed (#101).
Seven pads remain unexplained (#102). What follows is how the above was measured, and how to re-qualify any replacement harness or pack. It risks no silicon.
Why the analyzer and not a core: the failure being tested for is overvoltage, and the two instruments have wildly different tolerance for it.
| Instrument | Absolute maximum input | Loads the line with |
|---|---|---|
| nRF52840 GPIO pad, powered |
VDD + 0.3 V ≈ 3.6 V [CIT-NRF-GPIO] |
an ESD clamp diode |
| nRF52840 GPIO pad, unpowered | 0.3 V [CIT-NRF-BACKPOWER] | an ESD clamp diode |
| Saleae Logic Pro 8 | −25 V to +25 V [CIT-SALEAE-LOGICPRO8] | 2 MΩ ∥ 10 pF |
The analyzer tolerates roughly seven times what the pad tolerates and presents 2 MΩ, so it cannot meaningfully load the pack's measured 15 kΩ pull-down. It reads the answer without spending a core. Its analog range saturates at +10 V, so a reading pinned at 10 V still convicts — it means "at least 10 V", which is already three times the pad's limit.
The obvious version of this test does not work, and it was measured failing. Probing the data
wire with the harness fully unplugged from the node returns 0.000 V, dead flat — measured
2026-08-30, 786,429 samples over 20.1 s, 0.74 mV of noise, 98.6 % of samples on one ADC code
(EVIDENCE.md). That is not a floating clip; it is 105× quieter than this
analyzer's open-probe baseline, so it is a genuine low-impedance tie to ground.
It reads 0 V for a structural reason: the pack's data-line reference is its own pin 4
(3V3_In), and pin 4 is fed from the node. Unplug the node and the pack's driver has no
rail, so the line rests at 0 V through the pack's measured 15 kΩ pull-down — whether the harness
is lethal or benign. So the measurement named in
#102
cannot convict or clear anything, and a 0 V result must never be recorded as a cleared harness.
Setup that does work — energise pin 4, expose no pad. The RAK19007's 3.3 V regulator is on
the base board, not the Core — RAK diagnosed the identical symptom set with the Core
physically removed and VDD still dead, which a Core-generated rail cannot do
[CIT-RAK19007]. So a powered base board with no Core fitted presents 3.3 V on VDD and puts
no nRF52840 pad anywhere near the line.
| Item | State |
|---|---|
| RAK4631 Core | removed from the base board — this is what makes the test free |
| Base board | powered (USB-C, or the Green Power connector) |
Pack pin 4 (3V3_In) |
on the base-board VDD pad, as built |
| Joined data wire (pins 3+5) | to the analyzer only — not to SDA |
| Analyzer channel 0 | the joined data wire |
Analyzer GND
|
pack pin 2 (P−) |
| Pack | powered |
Ground on the pack's own return, not the node's, because the question is what the pack presents relative to its own reference. The only powered silicon in the loop is the base board's 3.3 V regulator sourcing a reference current, and the analyzer, which takes ±25 V.
Reading the result. scripts/owprobe.py <analog.csv> applies the table below to a Saleae
analog export and exits 0 (within a powered pad's rating), 2 (out of spec — do not connect a
core), or 1 (the capture is not evidence, e.g. a floating clip). It refuses to clear a harness
from a capture that never leaves the open-probe noise band, because a disconnected probe and a
healthy line at 0 V are indistinguishable, and reading one as the other is how a core dies.
Idle level, data wire to pack P−
|
Verdict |
|---|---|
| 0 V, flat, under 20 mV of noise | Not an answer. The pack's reference is not energised — pin 4 has no supply. Fix the setup above and re-run. Never record this as cleared. |
| 0 V, but over 20 mV of noise | The probe is not on the wire, or the ground lead is not on the pack's return. |
| ≤ 3.3 V | Harness cleared as an overvoltage source. #102 stays open; move to the next candidate. |
| 3.6 V – 5 V | Out of spec. Every connection has been overstressing the pad. Needs a level translator, not a resistor. |
| > 5 V, or saturated at +10 V | This is the pin killer. Do not connect another core to this harness. |
| swinging below 0 V | Ground-offset or undershoot path — the direction that matches the measured short-to-ground signature. Capture the transient before concluding. |
The last row is the one only an analyzer can answer. A meter averages a transient undershoot away; a 781.25 kS/s analog capture shows it. That matters because every dead pad here reads short to ground, which is the lower clamp's failure direction, and no mechanism proposed so far predicts that.
Record the number, the date, and the raw capture path in EVIDENCE.md. A verdict
with no number attached is how this got to seven pads.
CAUSE NOT ESTABLISHED. This section previously claimed it was, and that claim was wrong.
Seven dead pads across two cores as of 2026-08-30, and in every case the dead pad was the one carrying the pack's data line. That correlation is solid. The mechanism is not (#102).
Three things refute the explanation that used to stand here:
- The pads fail shorted to ground. Back-powering conducts through the pad's upper ESD diode, which would leave a pin shorted to VDD. Nordic's own thread raises this objection and leaves it open [CIT-NRF-PINSHORT]. Every pad measured here reads short to ground.
-
A 1 kΩ series resistor was inline when
SDA/P0.13 died. The current-limiting argument below predicted that would be survivable. It was not. -
Node 002's harness has been replaced three times, so the harness is not the constant, and
src/sensors/battery.cppis unchanged since the image running without incident on node 001 — so no firmware difference explains it either.
The sequencing rule below is still worth following, and the reasoning that produced it is recorded here because it is sound physics even though it has not been shown to be this failure. What it is not is a proven fix.
Nordic states the limit and the consequence [CIT-NRF-BACKPOWER]:
"Max voltage on any GPIO is VDD + 0.3 V. Meaning that for an unpowered device, max GPIO voltage is 0.3 V. Any voltage above this level will make the ESD protection diode conduct and you will backpower the device via the GPIO."
The pack idles its data line at a level referenced to 3V3_In and has no idea whether the core is
powered. So an unpowered core with the harness mated sees ~3.3 V on a 0.3 V maximum, and the
current goes in through the pad's ESD diode. Nordic's word for the result is "the high current flow
can permanently damage the pin" [CIT-NRF-PINSHORT]. The measured signature here is ~3.9 Ω to
ground — note again that this is the wrong direction for that mechanism, which is the single
strongest reason not to treat it as settled.
The one difference between the two nodes that survives scrutiny: the buck powers the core through the USB-C connector, so the buck and a host cable are mutually exclusive. Every swap between bench and pack power therefore contains a window with the core dark and the harness mated. Node 002 went through that window a dozen times in one day of bring-up. Node 001 was wired once and deployed, and has never been through it.
That makes the bench procedure the best-supported remaining suspect — the pack itself being the other, since 002's pack has never been swapped. Both are untested. Neither is a conclusion.
This is the mechanism that fits the measured signature, and it is sourced rather than reasoned.
Every dead pad reads short to ground. Nordic's own engineers hit this exact signature on this exact chip and state that it requires one of only two conditions — and note that back-powering gives the opposite result:
"If diode current would be exceeded it could short SWDIO to VCC and not to GND which happens in our cases... We were unable to figure out how a negative voltage could be applied to the SWDIO pin (or ground lifted above SWDIO)"
And there is a documented cause with precisely that shape, for UART pins between two boards on this same part:
"Poor connections between the PCBs and the cable, especially the GND pin. If the GND pin becomes disconnected, then the entire current consumed by the nRF52840 has no other way but the TX/RX pins. Again, the connectors may be good enough to pass your test, but will fail in the environment due to vibration."
If the ground return is interrupted for even an instant, the core's whole supply current comes
home through the data pin. That is tens of milliamps through a pad rated for a few, and it is
indifferent to which pad you chose — which is why moving IO1 → A1 → SDA changed nothing,
why identical firmware is fine on node 001, and why three harness replacements did not help: each
new harness rebuilt the same single hand-made ground junction.
The same source names the fix, and it is not a resistor:
"running the GND via both pin 1 and pin 8 of the cable will help. This configuration would ensure that GND is the first line to make contact (or the last line to lose contact) even if the connector becomes tilted sideways."
So: two independent ground conductors, and ground that mates first and breaks last.
flowchart TB
subgraph PACK["RAK9154 pack — SP11 connector"]
P1["pin 1 — P+ 12 V"]
P2["pin 2 — P−"]
P35["pins 3+5 — data"]
P4["pin 4 — 3V3_In"]
end
J["ground junction at the connector<br/>SOLDERED, then heat-shrunk<br/>never a twist or a clip"]
subgraph NODE["node"]
GND1["base-board GND pad<br/>GROUND A"]
GND2["RAK5802 GND clip<br/>GROUND B — redundant"]
SDA["RAK5802 SDA clip<br/>= nRF P0.13"]
VDD["base-board VDD pad"]
end
BUCK["12 V→5 V buck"]
RK["RK900"]
P1 --> BUCK
P1 --> RK
P2 --> J
J --> GND1
J --> GND2
J --> BUCK
J --> RK
P35 -->|"1 kΩ inline"| SDA
P4 --> VDD
style J fill:#ffd6d6,stroke:#b22222,stroke-width:3px
style GND1 fill:#d7f8d7,stroke:#2e7d32,stroke-width:3px
style GND2 fill:#d7f8d7,stroke:#2e7d32,stroke-width:3px
style SDA fill:#fff3cd,stroke:#b8860b,stroke-width:2px
Two green paths, not one. GROUND A and GROUND B are separate wires from the junction to two
separate points on the node. Losing either one leaves the other carrying the return, so the data
pin never becomes the backup.
The red junction is the part that has failed seven times. It must be soldered and heat-shrunk, never a twist, never a spring clip alone. A clip holding one conductor of a four-way junction is the exact "connector good enough to pass your test" the source warns about.
Ground first, ground last. No exceptions, no shortcuts, and never two power sources at once.
Building a node from parts:
- Make the pack-side ground junction: pack pin 2, buck negative, RK900 negative, and two
separate wires for
GROUND AandGROUND B. Solder it. Heat-shrink it. - Land
GROUND Aon the base-boardGNDpad. - Land
GROUND Bin the RAK5802'sGNDspring clip. -
Verify both grounds before anything else: meter continuity from pack pin 2 to the base-board
GNDpad, then to the RAK5802GNDclip. Both must read a dead short. If either is open or intermittent, stop — this is the failure that costs pads. - Pack pin 4 → base-board
VDDpad. - Pack pin 1 → buck input positive, and → RK900 12 V.
- RK900
AandB→ RAK5802A/RXandB/TX. - Pack data (pins 3+5 joined) → 1 kΩ inline → RAK5802
SDAclip. This wire goes on last. - Census the pad before trusting it: flash
env:owscan_sdaand confirm idle HIGH. A pad that reads LOW here is already gone; do not proceed. - Only now apply power.
Switching a built node from pack power to bench USB:
- Unmate the pack connector. First. Always.
- Remove buck power.
- Plug in host USB.
Switching from bench USB back to pack power:
- Unplug host USB.
- Connect the buck.
- Confirm the boot banner.
- Mate the pack connector last.
Never do these:
- Never have the host USB cable connected while the pack is mated. The buck feeds the core through the USB-C connector, so the two supplies are mutually exclusive by design — and every node that has lost a pad was repeatedly put in this state, while node 001, which never has been, is intact.
- Never hot-plug the pack connector on a live node. On a mating connector the pins touch in an unpredictable order, and wire inductance during the plug can break down the clamp diode by itself [CIT-NRF-UNPOWERED-PIN].
- Never move the data wire to a fresh pad without running the census in step 9 first.
This section used to be titled "REQUIRED — the one-wire protection network" and claimed the
series resistor "actually saves the pin". A 1 kΩ resistor was inline when SDA/P0.13 died, so
that claim is refuted by measurement and has been removed
(#102).
The reasoning was: Nordic's damage mode is current through the ESD diode rather than voltage across it [CIT-NRF-BACKPOWER], a bare wire limits that current only by the diode's own resistance, and 1 kΩ bounds it to roughly 3 mA. That arithmetic is still correct. What it evidently does not cover is whatever actually killed these pads — which is consistent with the failures being short to ground rather than the back-powering the arithmetic was aimed at.
Still fit it. It costs one part, it cannot hurt, and it does bound the failure modes it was
designed for. Put a 1 kΩ resistor inline in the pack's data wire and land it in the RAK5802's
SDA spring clip; nothing is soldered to the board for this.
Do not treat a fitted resistor as permission to skip the sequencing rule, and do not record a node as protected because it has one. Seven pads say otherwise.
| Ref | What | Value | Suggested part |
|---|---|---|---|
| R1 | resistor | 1 kΩ, ¼ W | any through-hole 1 kΩ |
R1 alone is the deal. The two parts below sharpen it and are worth adding on a node you are about to leave in the woods for a year, but they are not the difference between working and not, and a node built with R1 only is a node this project considers correctly built.
| Ref | What | Value | Suggested part | What it adds |
|---|---|---|---|---|
| R2 | resistor | 2.2 kΩ, ¼ W | any through-hole 2.2 kΩ | pulls the idle level clear of the 1.7 V grey zone the pack's 15 kΩ pull-down creates. Must reference the board's own VDD pad, never an external rail — a pull-up to an external supply back-powers the nRF through the pin when the board is off [CIT-PARTICLE-BACKPOWER] |
| D1 | 3.3 V bidirectional TVS / ESD diode | 3.3 V working voltage | Nexperia PESD3V3L1BA, Littelfuse PESD3V3S1UB, any 3.3 V TVS |
clamps a spike faster than R1 alone can bleed it |
A bidirectional TVS has no polarity, so it cannot be fitted backwards — that is why it beats a
BAT54S here. Check the part's own datasheet for its working voltage, not its breakdown
voltage, before fitting.
WB_I2C1_SDA is P0.13, and variant.h marks it SENSOR_SLOT IO_SLOT — so it appears both on
the base-board edge header and on the RAK5802's second spring terminal block, silkscreened
SCL SDA 3V3 AIN. RAKwireless documents that block as a "reserved I2C expansion interface", a
direct passthrough with no buffer or isolation; the module's 18 kV ESD protection is on the RS485
side only [CIT-RAK5802].
Land the pack's data wire in the RAK5802's SDA spring terminal. It is the same net as the
pad, and it is better in three ways: no soldering, trivial rework, and it keeps you entirely off
the 2.54 mm header row where all seven dead pads have been.
Trap — do not use the RAK5802's
3V3terminal for anything. That terminal sits on the switched3V3_Srail, andsrc/sensors/rk900.cppdeliberately dropsWB_IO2LOW after each weather read. A pull-up or a reference taken from there vanishes partway through every cycle, and the symptom is a battery that reads intermittently — very easy to misread as a protocol fault. R2 and pack pin 4 both come from the always-onVDDpad on the edge header.
GND on the same terminal block is common ground and is fine for D1 and for the harness ground
wire.
flowchart LR
subgraph PACK["RAK9154 pack — SP11 connector"]
P35["pins 3 + 5 joined<br/>TXD + RXD"]
P2["pin 2<br/>P-minus"]
P4["pin 4<br/>3V3_In"]
end
R1["R1 — 1 kohm<br/>inline in the wire<br/>heat-shrunk"]
subgraph T["RAK5802 spring terminals<br/>SCL SDA 3V3 AIN"]
TSDA["SDA clip<br/>= nRF P0.13"]
TGND["GND clip"]
T3V3["3V3 clip<br/>SWITCHED — DO NOT USE"]
end
subgraph H["RAK19007 edge header — always on"]
HVDD["VDD pad<br/>3.3 V always on"]
end
D1["D1 — 3.3 V TVS<br/>clamp"]
R2["R2 — 2.2 kohm<br/>pull-up"]
P35 --> R1
R1 --> TSDA
TSDA --- D1
D1 --- TGND
TSDA --- R2
R2 --- HVDD
P2 --> TGND
P4 --> HVDD
style R1 fill:#ffe9b3,stroke:#b8860b,stroke-width:2px
style D1 fill:#ffd6d6,stroke:#b22222,stroke-width:2px
style R2 fill:#d9ecff,stroke:#1f6feb,stroke-width:2px
style TSDA fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
style T3V3 fill:#eeeeee,stroke:#999999,stroke-dasharray: 4 3
The same thing as a plain schematic, because the boxes above hide the topology:
pack pin 3 ─┐
├─ (joined) ── R1 1 kohm ──┬────────── RAK5802 "SDA" spring clip (nRF P0.13)
pack pin 5 ─┘ │
├── R2 2.2 kohm ──── VDD pad (edge header, always on)
│
└── D1 TVS ───────── RAK5802 "GND" spring clip
pack pin 2 (P-minus) ───────────────────────────────────── RAK5802 "GND" spring clip
pack pin 4 (3V3_In) ───────────────────────────────────── VDD pad (edge header)
RAK5802 "3V3" clip ── UNUSED. Switched rail, dies mid-cycle.
R1 is the only thing between the pack and everything else. D1 and R2 both attach on the board side of R1. That ordering is the design: R1 limits the current, then D1 and R2 protect and bias a node R1 has already made safe.
Solid lines are spring clips. The single dashed line is the one solder joint.
flowchart LR
subgraph PACK["RAK9154 pack — SP11 connector"]
direction TB
P1["pin 1<br/><b>P+</b> 12 V"]
P2["pin 2<br/><b>P−</b> ground"]
P35["pins 3 + 5<br/><b>joined</b> = data"]
P4["pin 4<br/><b>3V3_In</b> reference"]
end
R1(["R1 1 kΩ<br/><i>optional</i>"])
subgraph B5802["RAK5802 — the wiring hub"]
direction TB
CBAT["BAT — empty"]
CGND["<b>GND</b>"]
CA["<b>A/RX</b>"]
CB["<b>B/TX</b>"]
CSCL["SCL — empty"]
CSDA["<b>SDA</b> = nRF P0.13"]
C3V3["3V3 — NEVER USE<br/><i>switches off mid-cycle</i>"]
CAIN["AIN — empty"]
end
subgraph RK["RK900-09 weather"]
direction TB
RKV["12 V"]
RKG["GND"]
RKA["A"]
RKB["B"]
end
subgraph BUCK["Buck 12 V → 5 V"]
direction TB
BVI["VIN+"]
BVG["VIN−"]
BUSB["USB-C out → core"]
end
VDD["<b>VDD</b> pad<br/>base-board header<br/>always on"]
P1 --> BVI
P1 --> RKV
P2 --> BVG
P2 --> RKG
P2 --> CGND
P35 --> R1
R1 --> CSDA
P4 -.->|<b>SOLDER</b>| VDD
RKA --> CA
RKB --> CB
BUSB --> CORE["RAK4631 core<br/>USB-C"]
style P35 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
style CSDA fill:#e8f5e9,stroke:#2e7d32,stroke-width:3px
style R1 fill:#ffe9b3,stroke:#b8860b,stroke-width:2px
style VDD fill:#d9ecff,stroke:#1f6feb,stroke-width:3px
style P4 fill:#d9ecff,stroke:#1f6feb,stroke-width:2px
style C3V3 fill:#ffd6d6,stroke:#b22222,stroke-dasharray: 4 3
style P1 fill:#fff3cd,stroke:#856404,stroke-width:2px
style CBAT fill:#eeeeee,stroke:#bbbbbb
style CSCL fill:#eeeeee,stroke:#bbbbbb
style CAIN fill:#eeeeee,stroke:#bbbbbb
Read it as five wires out of the pack:
| Pack pin | Goes to | How |
|---|---|---|
1 P+ 12 V |
buck VIN+ and RK900 12 V |
never touches the RAK5802 |
2 P−
|
buck VIN−, RK900 GND, and the GND clip |
junction at the connector, one wire to the clip |
| 3 + 5 joined |
SDA clip, through R1 if fitted |
the one-wire link |
4 3V3_In
|
VDD pad |
the only solder joint |
Plus the RK900's own two data wires, A → A/RX and B → B/TX.
There is exactly one solder joint on the whole node: pack pin 4 to the VDD pad. Everything
else is a spring clip. Pin 4 cannot use a clip because the module's 3V3 clip switches off
mid-cycle and its BAT clip is the wrong voltage and an output.
- Power everything down. USB unplugged, pack connector unmated. Nothing energised while a wire is being moved — see the hot-plug rule below. It fits the correlation across all seven, but it predicts a short to VDD and every measured pad reads short to ground, so it is a candidate and not the answer (#102) dead pads.
- At the pack connector, join pins 3 and 5. One wire leaves that junction. That is the data line.
-
At the pack connector, join pin 2 (
P−) to the buck negative and the RK900 negative. One wire leaves that junction too. -
Pack pin 1 (
P+, 12 V) to the buckVIN+and the RK900 12 V input. This never touches the RAK5802. -
Into the clips: data wire →
SDA. Ground wire →GND. RK900A→A/RX. RK900B→B/TX. -
Solder pack pin 4 to the
VDDpad on the base-board header. The only joint. -
Meter
SDAtoGNDbefore applying power. It must not read near 0 Ω. Then mate the pack, then USB.
R1, without soldering: put one leg of the 1 kΩ in the SDA clip and join its other leg to the
data wire with a lever-nut or Wago. If you build with no R1 at all, the node still works — node 002
is running that way — you have simply not bought the insurance.
If you are also fitting the optional parts: R2 from SDA to the VDD pad (meter SDA to
VDD first; under 10 kΩ means the board already has a pull-up and R2 is redundant), and D1 from
SDA to GND. Both go on the board side of R1 so R1 protects them too.
| Measure between | Expect | If wrong |
|---|---|---|
SDA clip and VDD pad |
~2.2 kΩ, or ≤10 kΩ if the board's own pull-up is doing the job | R2 missing, wrong value, or a bad clip |
SDA clip and GND clip |
high, hundreds of kΩ or more | a short — wrong D1, or a strand across the clips. Do not power up |
SDA clip and pack pin 3 |
~1 kΩ | R1 missing, or shorted across by solder |
pack pin 2 and GND clip |
near 0 Ω | ground wire not seated in the clip |
BAT pad and SDA clip |
open | a bridge on the header row. Do not power up |
Then power up and confirm the pad electrically before trusting it:
scripts/flash.sh --yes --env owscan_sda # expect: INPUT_PULLUP idle HIGH, 0 samples LOW
scripts/flash.sh --yes --env battdiag_sda # expect: 12.xx V within ~15 cyclesWith R2 fitted, owscan_sda should report idle HIGH and 0 falling edges while the pack is
idle — the same signature as an unconnected clean pad, because R2 now holds the line high properly
instead of leaving it at 1.7 V.
| Part | Job |
|---|---|
| R1, 1 kΩ | Caps fault current near 3 mA. The nRF52840's per-pin absolute maximum is 15 mA, and absolute maximum is a damage threshold, not an operating point [CIT-NRF-GPIO]. Covers a short, a driver collision, and a stray touch of the 12 V rail |
| D1, TVS | Clamps the pad to within a diode drop of GND and 3V3, shunting overvoltage to the rail instead of into the pin. This is the part that makes a 12 V contact survivable rather than fatal |
| R2, 2.2 kΩ | Fixes the idle level. Measured 2026-08-30: the pack presents 15 kΩ to its own ground, which against the nRF52840's ~13 kΩ internal pull-up leaves the line near 1.7 V — inside the undefined band between V_IL and V_IH. With R2 the line idles near 2.9 V and reads as a solid HIGH |
Neither resistor costs anything at 9600 baud: the RC time constant against any realistic harness capacitance is far shorter than one bit period.
- Never mate or unmate the pack connector with the board powered. SP11 pins do not mate simultaneously, so a powered hot-plug can leave the data line referenced to nothing for a moment. Order: unplug USB, unmate pack, work, mate pack, plug in USB.
-
Meter every new core before it goes into a baseboard —
IO1toGNDon the core connector, expect megohms. A few ohms means it arrived shorted, so send it back. No core'sIO1has ever been measured before installation, which is exactly why "arrived shorted" cannot be told apart from "shorted here."
The harness is then exonerated by construction and the fault is inside the core module — a warranty conversation with RAKwireless rather than another debugging session. It would also be the first time this project had evidence strong enough to make that claim stick.
| From (pack, 5-pin SP11) | To | Why |
|---|---|---|
Pin 1 P+ (~12 V) |
buck VIN+ and RK900 12 V | both, in parallel |
Pin 2 P−
|
buck negative and RK900 negative and the base board GND pad |
all three |
| Pins 3 + 5 joined |
R1 1 kΩ inline, then SDA pad (WB_I2C1_SDA, nRF P0.13), with D1 + R2 at that end |
one-wire half-duplex to the pack — see the protection network above, required |
Pin 4 3V3_In
|
VDD pad |
always-on 3.3 V reference |
IO1 was the original one-wire pad and A1 replaced it. SDA/P0.13 is now the wiring this
project builds, and it is proven: node 002 read 12.43 V, -0.01 A, 100 %, 24.0 C over SDA on
2026-08-30 across nine cycles in two sessions, and the field image's uplink landed at TTN
(f_cnt 832) (EVIDENCE.md). Build such a node from env:rak4631_sda, with
env:battdiag_sda for fast pack questions and env:owscan_sda to qualify the pad.
Qualify the pad before you solder to it. scripts-side that means env:owscan_*: SDA was
selected only after its census returned idle HIGH, 0 of 1,848,823 samples low. A1 was chosen by
decision rather than measurement and that is part of what made 2026-08-30 expensive.
Why the moves happened, and what is still unknown: three cores have shown IO1 shorted to ground
(~3.86 ohm, 2026-08-29), and on 2026-08-30 node 002's core also lost A1 — held 100 % low against
the internal pull-up with two different harnesses and with the harness removed entirely, and with
the RAK5802 pulled. On the same core A0 and SDA read idle HIGH, so the instrument is sound and
the dead pads are real.
No mechanism has been established. Six hypotheses were tested and refuted or weakened on
2026-08-30 — driver contention, ground float, a 5 V VDD, a miswired harness, a slot module
holding IO1, and ESD. The pack is cleared as an overvoltage source by measurement: its data line
reads 20 mV and 15 kohm to pack minus with the wire off the board. Node 001, from the same
parts order, reads its pack on IO1 in the field. See
reviews/2026-08-30_onewire_pin_failures.md,
#96 and
#99.
Two rules that follow, both cheap:
-
Incoming test every core before it goes in a baseboard —
IO1toGNDon the core connector, expect megohms. No core's IO1 has ever been measured before installation, which is exactly why "arrived shorted" cannot be told from "shorted here." - Never mate or unmate the pack connector with the board powered. Pins on the SP11 do not mate simultaneously.
That 15 kohm pack pull-down also means the idle line sits near 1.7 V against the nRF52840's ~13 kohm internal pull-up, inside the undefined band between V_IL and V_IH. An external 2.2-4.7 kohm pull-up to 3V3 puts idle near 2.9 V and is worth fitting.
Do not substitute IO2: it controls the RAK19007 3V3_S switch that powers the RAK5802.
Driving one-wire traffic there would switch the RS-485 transceiver rail at 9600 baud.
| From (RK900) | To |
|---|---|
| RS-485 A | RAK5802 A/RX
|
| RS-485 B | RAK5802 B/TX
|
| 12 V + | pack P+
|
| Negative | pack P−
|
-
P+feeds two loads, not one: the buck's VIN+ (→ WisBlock 5 V, entering the board through its USB-C port — the battery JST is not used, perFIRMWARE_SPEC.md§2) and the RK900's 12 V directly. The RK900 is a 12 V device and the RAK5802 cannot supply it — that module'sBATand3V3terminals are sensor outputs at 4.2 V and 3.3 V. Size the buck for the WisBlock alone and select it on no-load quiescent draw; the RK900 does not pass through it. - RAK5802 → RK900 data only (A/RX, B/TX, and GND for the reference), fixed 9600 8N1,
slave
0x01. No baud switching. Power comes from step 1, not from this module. This physical unit is set to 9600, not the 4800 this line claimed until 2026-08-12: abusscanread the full register frame at 9600 and nothing at 4800 CITE(bench): docs/EVIDENCE.md, 2026-08-03998dc26busscan, accepted in ADR-0006. The baud is field-settable per sensor and the one fleet precedent for this sensor+battery pairing runs 4800, so confirm the rate on any replacement unit rather than assuming either value.src/sensors/rk900.cpp:16is the authority in code. - RAK9154 → one-wire half-duplex on the 5-pin socket, TXD/RXD bridged, via the SP11
adapter cable. Watch pin 4 (
3V3_In): tie to 3V3, never 5 V. - Leave the 4-pin Gateway Load socket unused — it is the documented fallback.
The earlier shared-bus option with a 4800/9600 baud switch is rejected; the rationale is in the ADR.
Unify solar variant (the no-solar 910406 was out of stock — see the BOM note above). Its lid panel stays unconnected.
The Unify shells use a removable mounting plate rather than bosses in the shell itself, and the plate that ships with the enclosure is not drilled for the RAK19007. Three ways out, best first:
-
Buy RAK's mounting plate. Sized
137 × 87 × 6.8 mmfor the 150×100×45 shell, ABS UL94V-0, and it comes with the self-tapping screws. It holds a RAK19001 and a RAK19007 simultaneously, and builds in the required 3 mm standoff between the plate surface and the PCB underside — store.rakwireless.com. Confirm the size against the shell in hand first; the solar variant was not the planned one. -
Print RAK's blank plate and add your own bosses.
Medium-Blank.step/.stlin Awesome-WisBlock. This is likely the better route here, because the buck converter and the pack's field wiring also need somewhere to live, and the bought plate only accounts for WisBlock boards. The same folder has drill guides for the USB-C cutout and for gland/antenna holes, which is directly useful for the second cable entry (issue #20). - Ready-made prints. A finished RAK19007 plate by pdxlocs on Printables (drawn for the smaller shell — check before printing), and a dimensionally accurate RAK19007 board model by Radish on Printables for laying out hole positions in your own design.
Board facts for any custom plate: the RAK19007 is 30 × 60 mm, mounting-hole locations are in
Figures 12–13 of its datasheet, and the board ships with M2.5 × 4 screws for exactly this
[CIT-RAK19007]. Keep the 3 mm standoff — the underside carries the sensor-slot connectors and
the pad header being soldered to.
Written down because it was re-derived from scratch during a bench session and the answer is short, authoritative, and belongs somewhere findable. Two independently-failing parts sit between the USB-C connector and the Core, and one meter reading tells you which one died.
The path is: USB-C or the solar connector → the TP4054 charger → the charger output
node, which is VBAT → the base board's 3.3 V step-down → 3V3 / VDD → the 40-pin edge
connector → the Core. Both input connectors enter through the same charger, so neither one
bypasses a failed charger.
| Measure | Reading | Conclusion |
|---|---|---|
VBAT |
3.2–4.2 V | charger is fine |
VBAT |
anything else | charger is damaged |
VDD |
3.3 V | regulator is fine |
VDD |
0 V | 3.3 V regulator is damaged — base board replacement |
Two things make this decisive rather than suggestive. The 3.3 V regulator is on the base
board, not on the Core — RAK diagnosed the identical symptom set with the Core physically
removed and VDD still at 0 V, which a Core-generated rail cannot do. And the Core usually
survives it: RAK's advice in every such thread is to test the Core in a different base board,
which is also why a good SWD DPIDR from a "dead" node means the chip is fine and the board is
not.
The RAK4631 needs both VBAT and 3.3 V; it does not regulate its own 3.3 V. A switch that
cuts one rail and leaves the other live is the configuration RAK warns against — put any battery
disconnect on the battery side of the JST so both rails drop together.
- CITE(prior-art): RAK forum — "USB-C Charger Broke RAK4631 or RAK19007?", the two-point test and the Core-removed measurement
- CITE(prior-art): RAK forum — RAK19007 charging circuit, both supply rails and the battery-side switch recommendation
- CITE(datasheet): RAK19007 user guide — charger output feeds a step-down generating 3.3 V, 750 mA ceiling
Powering the board when the USB path itself is dead: the solar / "Green Power" connector (JST ZHR-2, 1.5 mm pitch) takes a regulated 4.5–5.5 V and is RAK staff's own recommended way to run a WisBlock independent of USB — a 4.98 V buck is already the right supply, just on a different connector. Below about 4.5 V the regulator is documented to enter an undefined state and draw more current, so this is not a place to economise.
- CITE(prior-art): RAK forum — "better to use the Green Power connector to supply a regulated voltage with up to 5.5 V… independent of the USB connector"
- CITE(prior-art): RAK forum — the 4.5 V floor, and why 3 V over the solar input misbehaves
Polarity is not documented in text for either JST connector — only in datasheet figures. Go
by the + silkscreen on the PCB. Reversing the battery connector has burned boards, and in the
recorded case left USB working while the battery input never worked again.
The power decision — 12 V from the pack into a buck, buck out to the RAK4631's USB-C port — occupies the only connector the node is currently flashed through. This section records what firmware update paths survive that, so the enclosure is not closed on a node that can never be changed.
Verdict: yes, firmware can be pushed to a sealed node — over Bluetooth, from a phone standing next to the box. It is not free, and it has to be designed in before the lid goes on. The decision to make before sealing is in §5 below.
The RAK4631 ships the Adafruit nRF52 UF2/CDC/OTA bootloader, and RAK builds and
publishes it themselves at V0.4.4 with SoftDevice S140 6.1.1. RAK's own bootloader
manual documents "Update over BLE" as a first-class path alongside USB, J-Link and RAKDAP1,
using nRF Connect for Mobile and a .zip DFU package
[CITE(datasheet): RAK4630 Bootloader Update Manual V0.4.4 — CIT-RAK-BOOTLOADER].
The V0.4.4 release note reads as though it were written for this deployment:
BLE OTA resiliency: if a BLE OTA firmware update fails or is interrupted, the device stays in BLE OTA / DFU mode so another attempt can be made (instead of getting stuck in USB DFU/UF2 boot mode). Recommended for Meshtastic / MeshCore users who update firmware over BLE when the device is hard to access. [CIT-RAK-BOOTLOADER]
That is the property that makes this safe to rely on. A half-finished OTA leaves the node advertising for another attempt rather than waiting for a USB cable that is on the other side of a sealed gasket.
Confirm the bootloader version on the actual board before sealing. Double-tap RESET and
read INFO_UF2.TXT from the RAK4631 drive; it prints UF2 Bootloader 0.4.4 and
SoftDevice: S140 6.1.1 [CIT-RAK-BOOTLOADER]. This was not verified on our unit — the
build host was offline when this was written — and the resiliency behavior above is a
V0.4.4 feature, so an older bootloader is a materially worse position. That check is a
prerequisite of the decision in §5.
This is the part that decides whether a sealed box is workable, and the answer is in the
bootloader source. The application writes a magic value to the GPREGRET retained register
and performs a soft reset; the bootloader reads it in check_dfu_mode() and comes up in the
requested mode:
// CITE(prior-art): Adafruit_nRF52_Bootloader src/main.c, DFU_MAGIC_OTA_RESET [CIT-ADA-BOOTLOADER-MAIN]
NRF_POWER->GPREGRET = 0xA8; // DFU_MAGIC_OTA_RESET -> bootloader comes up in BLE OTA DFU
NVIC_SystemReset();0xA8 is DFU_MAGIC_OTA_RESET; 0x57 is UF2, 0x4e is serial-only, 0xB1 is the
OTA-from-application jump used by the BLEDfu service
[CITE(prior-art): src/main.c GPREGRET magics — CIT-ADA-BOOTLOADER-MAIN]. No double-tap
RESET, no button, no cable. The trigger can therefore be a LoRaWAN downlink — which the
node already has to handle for the interval command — so the update path costs nothing until
the day it is used.
Two properties of that path have to be respected:
-
The bootloader's OTA mode has no timeout. On the OTA branch the call is
bootloader_dfu_start(_ota_dfu, 0, false), and0is an infinite window; the UF2 and serial branches get 3000 ms and a fall-back-to-application flag, the OTA branch does not [CIT-ADA-BOOTLOADER-MAIN]. A node commanded into BLE DFU that nobody connects to stays there, advertising, until the pack dies. That directly contradicts the standing rule inAGENTS.md— never let the pack reach a state it cannot recover from by itself. The trigger must therefore be a deliberate, confirmed downlink sent while somebody is standing at the node, never an automatic or scheduled entry. -
RAK's documented application-side route is not the cheap one. RAK's
ble_ota_dfuexample gets there withBLEDfu bledfu; bledfu.begin();andBluefruit.Advertising.start(0)— "Don't stop advertising after n seconds", i.e. advertise forever atsetTxPower(4)[CITE(prior-art):ble_ota_dfu.ino— CIT-RAK-BLE-OTA]. That permanent advertising load is exactly what issue #19 rejected. TheGPREGRETroute above reaches the same bootloader without it.
This is not what issue #19 decided. #19 closed as "no BLE on the field node" on power and usability grounds, and that reasoning is about the application advertising continuously. Bootloader OTA DFU is a different thing: the radio is only on after a deliberate reset into the bootloader, so there is no standing power cost while the application is running. #19 does not settle this, and should not be cited as if it did.
No new tooling and no manual adafruit-nrfutil dfu genpkg step is needed. The vendored board
definition sets "protocol": "nrfutil" and "sd_fwid": "0x00B6" (S140 6.1.1) in
rakwireless/boards/rak4630.json, and for that protocol PlatformIO's nRF52 builder makes the
default build target a PackageDfu builder with suffix=".zip", whose action is
adafruit-nrfutil.py dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application firmware.hex firmware.zip
[CITE(prior-art): platform-nordicnrf52 builder/main.py, PackageDfu — CIT-PIO-NRF52-BUILDER].
So pio run already writes .pio/build/<env>/firmware.zip, and that is the file nRF
Connect for Mobile expects [CIT-RAK-BOOTLOADER]. The --sd-req 0x00B6 in the package matches
the S140 6.1.1 the RAK bootloader ships [CIT-RAK-BOOTLOADER], which is what makes the
generated package acceptable to it. adafruit-nrfutil comes from PlatformIO's bundled
tool-adafruit-nrfutil package, not a separate install [CIT-PIO-NRF52-BUILDER].
Getting the .zip onto the phone is the only new logistics: build on Heliotrope Ridge, then
move firmware.zip to the handset.
| Path | Needs the box opened? | Verdict |
|---|---|---|
| BLE OTA DFU from a phone | No | Recommended. Bootloader capability, zero standing cost, package already built |
| USB-C cable swap (buck out, host in) | Yes, unless a pigtail is brought out | Viable only as the pigtail variant below |
| Powered hub / USB-C splitter so buck and host coexist | — | Impossible. See below |
| SWD via base-board test points | Yes | Not available on the RAK19007 |
| LoRaWAN FUOTA | No | Not viable. Airtime budget is short by orders of magnitude |
A hub or splitter cannot make power and data coexist on that port. The RAK4631's USB-C is
a device port: the connector wires straight through to the nRF52840's USBD peripheral,
which is a device-only peripheral with no host or dual-role mode
[CITE(datasheet): nRF52840 Product Specification, USBD — CIT-NRF-USBD]. On the base board,
USB+/USB– are pins 7 and 8 of the WisBlock connector and VBUS is pin 9, and the
datasheet states the Type-C interface "directly communicates with the connected WisBlock Core
module" and doubles as the charging input
[CITE(datasheet): RAK19007 datasheet, Type-C USB port — CIT-RAK19007-RAW]. There is one D+/D−
pair and one VBUS, and only one thing can be on the other end of them. A host cable plugged
in instead of the buck both powers and flashes the board — that is the whole story. There
is no arrangement in which the buck supplies VBUS and a laptop supplies data.
SWD is not on the base board. SWD, SWDIO, SWCLK and JTAG appear nowhere in the
RAK19007 datasheet; its feature list names the Type-C port as the programming and debugging
interface, and BOOT0 on pin 23 is documented as an ST-MCU input, not an nRF52 one
[CITE(datasheet): RAK19007 datasheet — CIT-RAK19007-RAW]. RAK's own SWD instructions attach
the J-Link or RAKDAP1 to the RAK4631 module, not to the carrier
[CITE(datasheet): RAK4630 Bootloader Update Manual, "Update over JLINK" — CIT-RAK-BOOTLOADER].
Reaching those pads means opening the enclosure and getting at the module, so SWD is a
bench-recovery tool, not a field one.
LoRaWAN FUOTA does not fit in the airtime budget. TTN's Fair Use Policy allows 30 s of uplink airtime per node per 24 h and 10 downlinks per node per 24 h [CITE(policy): TTN Fair Use Policy — CIT-TTN-FUP], with the 10-downlink cap including ACKs for confirmed uplinks [CITE(policy): Fair Use Policy explained — CIT-TTN-FUP-EXPLAINED]. Ten downlink messages a day is the binding number and it is not close: a firmware image is hundreds of kilobytes, and the daily downlink allowance carries at most a few hundred bytes. Even reading the budget as generously as possible — SF7, the largest US915 payload, the entire allowance spent on nothing but firmware — the throughput is on the order of kilobytes per day against an image two orders of magnitude larger, and the node is Class A, so it has only the two short RX windows after each of its own uplinks and no multicast session to receive a fragmented image in [CITE(spec): LoRaWAN L2 1.0.4 §3.3 Receive Windows — CIT-LW-LINK]. FUOTA is off the table on this network.
Do both, in this order.
-
Design the BLE DFU trigger in now. A downlink command that writes
GPREGRET = 0xA8and soft-resets. It is a handful of lines, it costs nothing while unused, and it is the only path that does not involve a hike with a screwdriver. Verify it end to end on the bench — trigger, connect with nRF Connect, pushfirmware.zip, confirm the application comes back — before the enclosure is closed. An untested recovery path is not one. - Bring a short USB-C pigtail out through a gland to a weatherproof panel-mount connector. The buck plugs into that from outside, so swapping in a host cable is a 30-second job at the node with the box still sealed. This is the belt to BLE's braces, and it is the thing that recovers a node whose application is so broken it cannot receive the downlink that triggers DFU. The enclosure already needs gland planning (issue #20) and the solar shell has room, so the marginal cost is one gland and one connector.
Option 2 is what makes option 1 safe to depend on. With both, there is no realistic firmware failure that requires opening the enclosure; with neither, the first bug that needs a reflash costs a hike and a gasket.