Repository navigation
Citations
Generated page — do not edit here. The source of truth is
docs/CITATIONS.mdin the repo, at commit33c0cdd. 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.
Canonical sources for this project. URLs live here and nowhere else — code and docs
cite the key ([CIT-TTN-FUP]) so a moved link is fixed in one place.
Governed by .cursor/rules/20-citation-discipline.mdc.
Validated by scripts/check_citations.py, which fails the
build on a reference to an undefined key and on any entry that is not verified.
Every entry in this registry is verified. An unverified source does not get committed — it gets verified or left out. A registry that ships warnings trains people to ignore warnings, which defeats the point of having a checker.
Verified means the URL was fetched and returned the expected document on the date shown. Two access quirks are recorded inline rather than treated as a lesser status:
- Some RAKwireless and Nordic pages are JavaScript-rendered, so an automated fetch returns only the page title. The URL is confirmed live; open it in a browser for the tables.
-
modbus.orgPDFs rejectHEADrequests and require a referer. They are confirmed asapplication/pdfvia a rangedGET.
When adding a source: fetch it, confirm it states the fact in the "Establishes" column, and record the date. Do not add a row from memory.
| Key | Title | Publisher | URL | Establishes | Status |
|---|---|---|---|---|---|
CIT-TTN-FUP |
Duty Cycle — Fair Use Policy | The Things Network | https://www.thethingsnetwork.org/docs/lorawan/duty-cycle/ | Sandbox limits are 30 s uplink airtime per node per 24 h and 10 downlink messages per node per 24 h. Sets the airtime budget in rule 40. | VERIFIED 2026-07-30 |
CIT-TTN-FUP-EXPLAINED |
Fair Use Policy explained | TTN community forum | https://www.thethingsnetwork.org/forum/t/fair-use-policy-explained/1300 | Derives the 30 s figure as (8 channels × 86400 s × 5% gateway RX duty) ÷ 1000 nodes. A 10-byte payload allows ~20 msg/day at SF12 vs ~500 at SF7. The downlink cap includes ACKs for confirmed uplinks. | VERIFIED 2026-07-30 |
CIT-TTN-FREQ |
Frequency Plans | The Things Network | https://www.thethingsnetwork.org/docs/lorawan/frequency-plans/ | TTN US902-928: uplink 903.9–905.3 MHz at SF7BW125 to SF10BW125 (plus 904.6 SF8BW500); RX1 downlink 923.3–927.5 SF7BW500–SF12BW500; RX2 = 923.3 MHz SF12BW500. The uplink floor is SF10, not SF12. | VERIFIED 2026-07-30 |
CIT-TTN-SECURITY |
LoRaWAN Security — Frame Counters | The Things Network | https://www.thethingsnetwork.org/docs/lorawan/security/ | The network replay behavior behind session issue #90: “If either the device or the network receives a message with a frame counter that is lower than the last one, the message is ignored.” TTN then states the operational consequence directly: after a reset, “The Things Network will block all messages from the device until the FCntUp becomes higher than the previous FCntUp.” This is why an abandoned stored ceiling cannot be allowed to drift behind the wire for the rest of a year; every post-ceiling frame lengthens a future silent outage one-for-one. Also establishes that OTAA creates new session keys on every activation. | VERIFIED 2026-08-28 |
CIT-LW-LINK |
LoRaWAN L2 1.0.4 Specification (TS001-1.0.4) | LoRa Alliance | https://lora-alliance.org/wp-content/uploads/2021/11/LoRaWAN-Link-Layer-Specification-v1.0.4.pdf | §3.3 Receive Windows and §3 Class A: a Class A end-device's uplink is followed by two short downlink receive windows and there is no other downlink opportunity. §4.3.1.5 requires FCntUp to increment and says the end device “SHALL NOT reuse the same FCntUp value with the same application and network session keys” except retransmission. §5.2 defines LinkADRReq/Ans. Free public PDF — no registration. | VERIFIED 2026-07-30; frame-counter section re-verified 2026-08-28 |
CIT-LORA-RP002 |
RP002-1.0.3 Regional Parameters | LoRa Alliance | https://lora-alliance.org/wp-content/uploads/2021/05/RP002-1.0.3-FINAL-1.pdf | US915 channel plan, data rates, per-DR maximum payload sizes, and RX2 defaults. Free public PDF. RP002-1.0.4 is available via the resource hub: https://resources.lora-alliance.org/technical-specifications/rp002-1-0-4-regional-parameters | VERIFIED 2026-07-30 |
CIT-FCC-15247 |
47 CFR § 15.247 | Cornell Law LII | https://www.law.cornell.edu/cfr/text/47/15.247 | Frequency-hopping and digital-modulation rules for 902–928 MHz, including per-channel dwell limits. LII mirror is used because eCFR blocks automated access. | VERIFIED 2026-07-30 |
| Key | Title | Publisher | URL | Establishes | Status |
|---|---|---|---|---|---|
CIT-RAK4631 |
RAK4631 WisBlock LoRaWAN Module Datasheet | RAKwireless | https://docs.rakwireless.com/product-categories/wisblock/rak4631/datasheet/ | MCU/radio (nRF52840 + SX1262), pinout, electrical characteristics. JS-rendered. | VERIFIED 2026-07-30 |
CIT-RAK4631-RAW |
RAK4631 WisBlock Core Module Datasheet (raw markdown) | RAKwireless | https://raw.githubusercontent.com/RAKWireless/rakwireless-docs/master/docs/Product-Categories/WisBlock/RAK4631/Datasheet/README.md | The machine-readable mirror of CIT-RAK4631, cited because it is the only fetchable source of the module's numeric current table (the rendered page is JS-rendered and returns only a title). "Power Consumption" gives Tx mode LoRa @20 dBm 125 mA (printed 12 5mA in the source — a spacing typo), Tx mode LoRa @17 dBm 92 mA, Rx mode LoRa @37.5 Kbps 17 mA, Tx mode BT@4 dBm 9 mA. The overview also states "ultra-low power consumption of 2.0 uA during sleep mode". Establishes both ends of the bench-meter question: a LoRa transmit burst is a tens-of-mA to >100 mA event, and the module's own sleep floor is ~5000× below a 10 mA meter LSB. |
VERIFIED 2026-08-13 |
CIT-RAK19007 |
RAK19007 WisBlock Base Board Datasheet | RAKwireless | https://docs.rakwireless.com/product-categories/wisblock/rak19007/datasheet/ | Base board slots, power input, IO slot assignment, battery connector. JS-rendered. | VERIFIED 2026-07-30 |
CIT-RAK19007-RAW |
RAK19007 WisBlock Base Board Datasheet (raw markdown) | RAKwireless | https://raw.githubusercontent.com/RAKWireless/rakwireless-docs/master/docs/Product-Categories/WisBlock/RAK19007/Datasheet/README.md | Machine-readable official datasheet. It states: (1) Type-C carries USB data directly to the Core and is also a charging input; (2) the base board documents no SWD breakout; and (3) Core-connector pins 17/18 VDD are “Generated by MCU module,” repeated for sensor-slot VDD as “Generated by CPU module.” That third statement conflicts with forum/third-party descriptions of a base-board-generated VDD; ADR-0010 therefore forbids using coreless VDD as a test source until the relevant board revision is established. |
VERIFIED 2026-08-31 |
CIT-RAK5802 |
RAK5802 WisBlock RS485 Interface Module Datasheet | RAKwireless | https://docs.rakwireless.com/product-categories/wisblock/rak5802/datasheet/ | RS-485 transceiver, IO-slot conflict with RAK13002, enable/direction control. Also establishes the second spring-terminal block SCL SDA 3V3 AIN as a reserved I2C expansion interface — a direct passthrough of the WisBlock I2C bus with no buffer or isolation, so the SDA clip is the same net as nRF P0.13 and the pack's one-wire link can land there instead of a soldered header pad. The module's 18 kV IEC61000-4-2 ESD protection covers the RS-485 side only, which is why the one-wire line needs its own clamp. Its 3V3 output is the switched rail controlled by WB_IO2, so it must not be used as a pull-up or reference source. JS-rendered. |
VERIFIED 2026-07-30 |
CIT-RAK9154 |
RAK9154 Solar Battery Datasheet | RAKwireless | https://docs.rakwireless.com/product-categories/accessories/rak9154/datasheet/ | Pack electrical spec (5.2 Ah / 56.16 Wh, 10.8 V nominal, 12 V output) and load-socket definitions. Note the path is accessories/, not wisnode/. Overview: https://docs.rakwireless.com/product-categories/accessories/rak9154/overview/
|
VERIFIED 2026-07-30 |
CIT-RAK9154-SOLAR |
Solar Battery Lite for Sensor Hub (RAK9154) product page | RAKwireless store | https://store.rakwireless.com/products/rak-battery-lite-solar-power-solution-rak9154 | The pack is solar-recharged: ships with a 10 W panel (34 x 27 cm), an integrated solar charge controller (18 V input), a BMS, and an integrated heater. Battery efficiency 0.9. A larger panel variant exists for low-sunlight regions. The heater is a cold-weather load the power budget must account for. RAK also warns of malfunction "arising from a cold start with an empty battery", which is why the low-voltage cutoff must stop the node well before the pack empties. | VERIFIED 2026-07-30 |
CIT-RAK2560 |
RAK2560 Sensor Hub Datasheet (Hub + Probe-IO) | RAKwireless | https://raw.githubusercontent.com/RAKWireless/rakwireless-docs/master/docs/Product-Categories/WisNode/RAK2560/Hub-Datasheet/README.md |
What a genuine one-wire master actually drives on the 5-pin socket, which is the counterpart to CIT-RAK9154's pack-side table. "Pin Definition" gives pin 3 Reserved | IO | Not defined | Reserved for future use, pin 4 Vcc_Probe | PO | Power supply for the probe | 3.3 V DC support mode; 3.4 V battery mode, and pin 5 One-wire UART | IO | Communication with probe. The Probe-IO datasheet repeats the identical table with pin 4 as PI rather than PO — i.e. the hub sources the probe rail and the probe sinks it. Establishes that a hub uses pin 5 only and leaves pin 3 unconnected, so this node's bench harness bridging pins 3+5 has no counterpart on any shipping master. Raw markdown is cited because the rendered docs site is JS-rendered and not machine-readable. Probe-IO: https://raw.githubusercontent.com/RAKWireless/rakwireless-docs/master/docs/Product-Categories/WisNode/RAK2560/IO-Datasheet/README.md
|
VERIFIED 2026-08-04 |
CIT-RK900 |
RAK Weather Station Solution Datasheet (RK900-09) | RAKwireless | https://docs.rakwireless.com/product-categories/wisnode/weather-station/datasheet/ | RK900-09 Modbus register map, 4800 8N1, slave 0x01. This is the URL cited by the live TTN decoder header. JS-rendered. | VERIFIED 2026-07-30 |
CIT-RK900-BAUD-2026-08-03 |
RK900-09 bus scan at multiple baud rates (2026-08-03 busscan image) | docs/EVIDENCE.md | docs/EVIDENCE.md entry 2026-08-03 | CRC-valid reply observed at 9600 only, not 4800. Establishes this physical unit's working line rate; it does not establish a factory default. Conflicts with the RAKwireless datasheet's 4800 claim, so the full five-register response is the next evidence gate. | VERIFIED 2026-08-12 (Wayback mirror; origin 403s to automation — see corrections log) |
CIT-FWM-RK900-BRINGUP |
RK900-09 Bringup and Fallbacks | local sibling |
forest-weather-machines/docs/RK900-09_BRINGUP_AND_FALLBACKS_2026-05-15.md at efc0e3c
|
A recorded bench procedure for the sibling's RK900-09: 9600 8N1, slave 0x01, FC 0x03, start 0x0000, quantity 5. Prior art only; the physical unit's own full-frame capture remains the deciding evidence. |
VERIFIED 2026-08-04 |
CIT-FWM-RK900-FIELD |
RAK2560 + RK900-09 Weather Station — Complete Field Reference | local sibling |
forest-weather-machines/LoRaWAN/docs/RAK2560_weather_station_settings.md at ddfebfb3
|
Reference for a currently field-deployed twin system (TTN device 9181010k6063240022, active since 2026-05-18): RK900-09 at 4800 8N1, RAK9154 BMS at 9600, same register map as this repo (wind speed 0x0000 ×0.01 m/s through pressure 0x0004 ×0.1 hPa). Explicitly states the two probes' baud rates are independent — this is the source ADR-0006 weighs against the 2026-08-03 bench observation. |
VERIFIED 2026-08-03 |
CIT-RK900-PROTO |
RK900-series Ultrasonic Weather Instrument communication protocol | Hunan Rika Electronic Tech (via distributor mirror) | https://web.archive.org/web/2024id_/https://img80003232.weyesimg.com/uploads/rikasensor.com/addon/15994591737356.pdf | Factory default 9600 8N1; ASCII settings-mode commands >*, >CUS <rate> 8-N-1, >ID <addr>, >RESET, >! to change baud/address in place, accepting 2400-115200. Sequence for changing serial config is documented as One -> Two -> Five -> Four (enter mode, set config, exit mode, reset). |
VERIFIED 2026-08-03 |
CIT-BEEGEE-RS485-WIND |
RUI3-RS485-Wind-Sensor (RAK3172 + RK900-09 example) | beegee-tokyo | https://raw.githubusercontent.com/beegee-tokyo/RUI3-RS485-Wind-Sensor/main/README.md | Independent open-source integration of this exact sensor. Confirms "works by default with 9600 Baud" and the same register map as this repo (wind speed 0x0000 through device address 0x0020). Corroborates both the Rika factory-default baud and the RAKwireless register layout from a third, unrelated source. |
VERIFIED 2026-08-03 |
CIT-POLOLU-5426 |
Isolated Solid State Relay/Switch, SPST, 100 V, 4.5 A | Pololu | https://www.pololu.com/product/5426 | The RK900 12 V duty-cycle switch on order for #113. Load: 100 V / 4.5 A abs max, 40 mΩ typical on, ≤1 ms switch. Control: VIN/GND 2.7–40 V, EN high 2.7–40 V turns the MOSFETs on; control side draws up to 10 mA from VIN while EN is high. Outputs are a back-to-back MOSFET pair — high-side or low-side; this station uses high-side only (in the P+ → RK900 12 V run). Operator ordered 2026-08-31. |
VERIFIED 2026-08-31 |
CIT-WISTOOLBOX-AT |
WisToolBox AT command specification catalogue (atVersion 1.5.10_SENSOR_HUB_C) |
RAKwireless (WisToolBox cloud API) | https://api.wistoolbox.kritto.net/at-specification-list-details |
RAK's own machine-readable spec for the Sensor Hub, served unauthenticated as 1,770,726 bytes of JSON. Establishes four things nothing else in this registry does. (1) The sensor interval is in seconds, valid range 60–86400 — the ATC+SNSR_INTV field at byte 368291 is titled "Sensor interval, s" with "validation":{"min":60,"max":86400}; ATC+PRB_INTV and ATC+SNSR_CONF repeat it verbatim. This settles a unit the RAK-OneWireSerial library never states. (2) The rule bitmask enum at byte 364506: Alert=0, Below=2, Above=4, Periodic=8, Between=16, Trigger=512, confirming 0x0008 = periodic. (3) A probe-config write is acknowledged: at byte 388175 "writeCommand":"ATC+SNSR_CONF={probeID}:8:{seconds}:0" with "config":{"retries":3,"success":"+EVT:UPD_CONF","timeout":3000} at byte 389344 — rule and interval written together, 3 s per attempt, 3 attempts. (4) IPSO 243 = "Bit Values (16bits)" at byte 347583 — a status bitfield, not a physical measurement, so a zero there is legitimate data. Caveat recorded deliberately: ATC+ is the hub's north-bound API over NFC/BLE from the mobile app, not the south-bound hub↔probe wire this firmware speaks. It is authoritative for units, ranges, enums and semantics; the binary SensorHub protocol remains the correct wire layer. |
VERIFIED 2026-08-04 |
CIT-NRF-POWER |
nRF52840 Product Specification — Power management | Nordic Semiconductor | https://docs.nordicsemi.com/bundle/ps_nrf52840/page/power.html | System ON vs System OFF sleep modes, RAM retention, and the fact that entering sleep does not automatically disable peripherals. JS-rendered. | VERIFIED 2026-07-30 |
CIT-NRF-PERIPH-SLEEP |
Can't reach low power mode on nRF52840 | TinyGo issue #4886 | https://github.com/tinygo-org/tinygo/issues/4886 | Measured evidence for the peripheral-shutdown requirement: 1.2 mA / 890 µA reduced to 10 µA by disabling UART and SPI and disabling USBD. Corroborating Nordic DevZone thread: https://devzone.nordicsemi.com/f/nordic-q-a/45355/how-optimize-high-current-consumption-in-sleep-mode-using-nrf52840 | VERIFIED 2026-07-30 |
CIT-NRF-WDT |
nRF52840 Product Specification — WDT, Watchdog timer | Nordic Semiconductor | https://docs.nordicsemi.com/bundle/ps_nrf52840/page/wdt.html |
The watchdog cannot be stopped once started — CRV, RREN, and CONFIG lock on TASKS_START and only a chip reset clears them. Timeout is (CRV + 1) / 32768 seconds. CONFIG.SLEEP selects whether it keeps counting while the CPU sleeps, which is what decides whether a long sleep interval can coexist with a short hang-detection timeout. Corroborated with register-level code by Memfault Interrupt, which quotes the same datasheet text: https://interrupt.memfault.com/blog/firmware-watchdog-best-practices
|
VERIFIED 2026-07-30 |
CIT-NRF-GPIO |
nRF52840 Product Specification — GPIO | Nordic Semiconductor | https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpio.html | The port-level registers behind a pin write: OUT, OUTSET, OUTCLR, and the per-pin PIN_CNF[n] with independent DIR, INPUT, and PULL fields. Establishes two things this firmware depends on — a pin can be driven with a single register write instead of an Arduino function call (which is what makes a software 9600 bit period accurate), and PULL is configured separately from DIR, so removing a pull-up requires re-running the pin config rather than merely releasing the pin. JS-rendered; redirects to the /r/ path. |
VERIFIED 2026-08-04 |
CIT-NRF-GPIOTE |
nRF52840 Product Specification — GPIOTE | Nordic Semiconductor | https://docs.nordicsemi.com/bundle/ps_nrf52840/page/gpiote.html | GPIO tasks and events: up to 8 channels, each configured through CONFIG[n] with MODE = Event and POLARITY = HiToLo, raising EVENTS_IN[n] and an interrupt via INTENSET/INTENCLR. Establishes that a UART start bit can be detected in hardware on a falling edge — the basis for interrupt-driven software RX, as opposed to a polling loop that can already be a bit late by the time it notices. JS-rendered; redirects to the /r/ path. |
VERIFIED 2026-08-04 |
CIT-NRF-USBD |
nRF52840 Product Specification — USBD | Nordic Semiconductor | https://docs.nordicsemi.com/bundle/ps_nrf52840/page/usbd.html | The USB device peripheral: bulk/interrupt IN endpoints transfer data only when the host issues an IN token, and EPDATASTATUS/EVENTS_ENDEPIN gate when the device may refill an endpoint buffer. Establishes that a device-side write to a USB CDC endpoint is host-paced, not constant-time — so Serial.print() can block for an unbounded interval and must never sit inside a protocol response window. JS-rendered; redirects to the /r/ path. |
VERIFIED 2026-08-04 |
CIT-SX1262 |
SX1262 Long Range Low Power LoRa Transceiver | Semtech | https://www.semtech.com/products/wireless-rf/lora-connect/sx1262 | TX power settings and current consumption for the power budget. | VERIFIED 2026-07-30 |
CIT-RAK-PIO-BSP |
WisBlock PlatformIO board support (RAK_PATCH_V2) | RAKwireless | https://github.com/RAKWireless/WisBlock/blob/master/PlatformIO/README.md | The in-project method for RAK4631 board support: copy rakwireless/ into the project and set boards_dir, build_src_filter, and build_flags = -I rakwireless/variants/rak4630. Board id is rak4630. Source of the vendored files in rakwireless/, pinned at ae4137b. |
VERIFIED 2026-07-30 |
CIT-RAK-BOARDS-TXT |
RAK-nRF52-Arduino boards.txt
|
RAKwireless | https://github.com/RAKWireless/RAK-nRF52-Arduino/blob/master/boards.txt | RAK's own board definition. WisCoreRAK4631Board.build.pid=0x8029 is the application USB product ID; vid/pid.0..3 list the four IDs the board can present — 0x8029, 0x0029, 0x002A, 0x802A — all under VID 0x239A. Also sets upload.protocol=nrfutil, use_1200bps_touch=true, and wait_for_upload_port=true, which is why the port changes partway through a flash. Plain text, fetched raw. |
VERIFIED 2026-08-03 |
CIT-RAK-BOOTLOADER |
RAK4630 Bootloader Update Manual (V0.4.4, S140 6.1.1) | RAKwireless | https://raw.githubusercontent.com/RAKWireless/WisBlock/master/bootloader/RAK4630/README.md |
RAK's own statement that the RAK4631 bootloader does BLE OTA DFU, and the primary source for the sealed-enclosure reflash question. Establishes: the shipped bootloader is the Adafruit nRF52 UF2/CDC/OTA bootloader at V0.4.4 with SoftDevice S140 6.1.1, dated Jun 17 2026, reporting Board-ID: WisBlock-RAK4631-Board in INFO_UF2.TXT. "Update over BLE" requires nRF Connect for Mobile (or nRF Device Firmware Update), a .zip DFU package, and "RAK4631 flashed with a firmware that supports OTA DFU, e.g. ble_ota_dfu". The V0.4.4 release note is decisive for a node that cannot be opened: "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." Also establishes that SWD recovery targets the RAK4631 module, not the base board ("Connect RAKDAP1 adapter to SWD of the module"). |
VERIFIED 2026-08-07 |
CIT-ADA-BOOTLOADER-MAIN |
Adafruit nRF52 Bootloader — src/main.c
|
Adafruit | https://raw.githubusercontent.com/adafruit/Adafruit_nRF52_Bootloader/master/src/main.c |
How BLE OTA DFU is entered without touching the board. Defines the NRF_POWER->GPREGRET magics the application writes before a soft reset: DFU_MAGIC_OTA_APPJUM 0xB1, DFU_MAGIC_OTA_RESET 0xA8, DFU_MAGIC_SERIAL_ONLY_RESET 0x4e, DFU_MAGIC_UF2_RESET 0x57, DFU_MAGIC_SKIP 0x6d. check_dfu_mode() sets _ota_dfu from either OTA magic, so NRF_POWER->GPREGRET = 0xA8; NVIC_SystemReset(); enters BLE OTA DFU with no button press and no double-tap RESET. Two consequences recorded deliberately: (1) on the OTA path the call is bootloader_dfu_start(_ota_dfu, 0, false) — timeout 0, i.e. it advertises indefinitely and does not fall back to the application on its own; (2) #ifdef DEFAULT_TO_OTA_DFU makes a board with no valid application default to OTA "making it IMPOSSIBLE to recover devices in the field if there are no user accessible USB ports" otherwise. The companion README documents the same GPREGRET trick and that DFU over serial/CDC needs adafruit-nrfutil: https://raw.githubusercontent.com/adafruit/Adafruit_nRF52_Bootloader/master/README.md
|
VERIFIED 2026-08-07 |
CIT-RAK-BLE-OTA |
ble_ota_dfu.ino — RAK4631 BLE OTA DFU example |
RAKwireless (Bernd Giesecke) | https://raw.githubusercontent.com/RAKWireless/WisBlock/master/examples/RAK4630/communications/BLE/ble_ota_dfu/ble_ota_dfu.ino | What the application side of BLE OTA costs. The whole mechanism is BLEDfu bledfu; bledfu.begin(); plus Bluefruit.setName("RAK4631_OTA") and Bluefruit.Advertising.start(0) — 0 documented in the file as "Don't stop advertising after n seconds", i.e. advertise forever, at setTxPower(4) and an interval of 32–244 units of 0.625 ms. Establishes that RAK's documented BLE-OTA route carries a permanent advertising load, which is the cost issue #19 rejected — and, by contrast, that the bootloader's own OTA mode (CIT-ADA-BOOTLOADER-MAIN) has no such standing cost because it only exists after a reset into the bootloader. |
VERIFIED 2026-08-07 |
CIT-PIO-NRF52-BUILDER |
platform-nordicnrf52 — builder/main.py
|
PlatformIO | https://raw.githubusercontent.com/platformio/platform-nordicnrf52/develop/builder/main.py |
The build already emits the BLE DFU package; no new tooling is required. For upload_protocol == "nrfutil" (which rakwireless/boards/rak4630.json sets) the default target is env.PackageDfu(...), a builder with suffix=".zip" whose action is adafruit-nrfutil.py dfu genpkg --dev-type 0x0052 --sd-req $(build.softdevice.sd_fwid) --application <firmware.hex> <firmware.zip>. So pio run produces .pio/build/<env>/firmware.zip alongside the .hex, using the bundled tool-adafruit-nrfutil package rather than a separately installed one. Also the source of the serial upload command (dfu serial -p $UPLOAD_PORT -b $UPLOAD_SPEED --singlebank) and of the use_1200bps_touch / wait_for_upload_port handling in BeforeUpload(). |
VERIFIED 2026-08-07 |
CIT-RAK-PIO-BSP-LEGACY |
Board Support Package Installation in PlatformIO | RAKwireless | https://docs.rakwireless.com/Knowledge-Hub/Learn/Board-Support-Package-Installation-in-PlatformIO/ | The older method: copy the board JSON and variant folder into ~/.platformio. Recorded because it is what most search results still describe, and because it is the approach this project deliberately rejected — it does not survive a toolchain reinstall and cannot run in CI. See rakwireless/README.md. |
VERIFIED 2026-07-30 |
CIT-PIO-SCRIPTING |
Advanced Scripting — extra_scripts
|
PlatformIO | https://docs.platformio.org/en/latest/scripting/index.html |
extra_scripts with a pre: prefix runs before the build and the script receives the SCons construction environment via Import("env"), so it can append to CPPDEFINES and have the define reach every translation unit. The mechanism behind scripts/pio_git_rev.py, which stamps the boot banner with the commit SHA. |
VERIFIED 2026-08-13 |
CIT-PIO-STRINGIFY |
PlatformIO Core — builder/tools/piobuild.py
|
PlatformIO | https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/builder/tools/piobuild.py |
StringifyMacro(env, value) at :275 returns '\\"%s\\"' % value.replace('"', '\\\\\\"') — the supported way to pass a C string literal through a CPPDEFINES tuple so the quotes survive the shell. Present in PlatformIO Core 6.1.19, the version on the build host. |
VERIFIED 2026-08-13 |
CIT-GIT-REV-PARSE |
git-rev-parse | Git | https://git-scm.com/docs/git-rev-parse |
--short[=n] yields the abbreviated object name, and a non-zero exit on a directory that is not a repository (or a repository with no commits) is what lets the stamp degrade to unknown instead of failing a build. |
VERIFIED 2026-08-13 |
CIT-GIT-STATUS |
git-status | Git | https://git-scm.com/docs/git-status |
--porcelain is the stable, script-readable short format, guaranteed not to change between versions; empty output means the working tree matches HEAD. This is the dirty test behind the -dirty suffix on the banner. |
VERIFIED 2026-08-13 |
CIT-GIT-OBJECTS |
Git Internals — Git Objects | Pro Git, 2nd ed. | https://git-scm.com/book/en/v2/Git-Internals-Git-Objects | A commit object's name is the hash of its content and ancestry, so altering any file in a commit renames that commit and every descendant. This is why a history purge cannot preserve commit SHAs, which is the whole basis of ADR-0009. | VERIFIED 2026-08-28 |
CIT-GH-SENSITIVE |
Removing sensitive data from a repository | GitHub Docs | https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository | A force-push does not make removed data unreachable: GitHub retains the old objects and serves them by SHA, and purging cached views and unreachable commits requires contacting GitHub Support. Establishes that a rewrite alone does not achieve secrecy — ADR-0009. | VERIFIED 2026-08-28 |
CIT-FILTER-REPO |
git-filter-repo | Elijah Newren | https://github.com/newren/git-filter-repo | The supported history-rewriting tool, and the source of the complete old→new commit-map that any SHA-translation layer would have to be built on. Recorded as the mechanism ADR-0009 considered and rejected. |
VERIFIED 2026-08-28 |
| Key | Title | Publisher | URL | Establishes | Status |
|---|---|---|---|---|---|
CIT-MODBUS-APP |
MODBUS Application Protocol Specification V1.1b3 | Modbus Organization | https://www.modbus.org/file/secure/modbusprotocolspecification.pdf | Function code 0x03 Read Holding Registers request/response framing and exception codes. Rejects HEAD; confirmed application/pdf by ranged GET. Index page: https://www.modbus.org/modbus-specifications
|
VERIFIED 2026-07-30 |
CIT-MODBUS-SERIAL |
MODBUS over Serial Line Specification and Implementation Guide | Modbus Organization | https://www.modbus.org/file/secure/modbusoverserial.pdf | RTU framing and the 3.5-character inter-frame silent interval that bounds poll timing and bus turnaround. Rejects HEAD; confirmed application/pdf by ranged GET. |
VERIFIED 2026-07-30 |
CIT-CAYENNE-LPP |
Cayenne Low Power Payload | myDevices | https://docs.mydevices.com/docs/lorawan/cayenne-lpp | Channel/type TLV encoding that the payload schema follows. | VERIFIED 2026-07-30 |
CIT-RFC1918 |
RFC 1918 — Address Allocation for Private Internets | IETF | https://datatracker.ietf.org/doc/html/rfc1918 | §3 reserves the 192.168 private range as non-globally-routable space. Establishes that the LAN literal in this repo's history identifies no reachable host, unlike the campus addresses — the distinction ADR-0009 turns on. |
VERIFIED 2026-08-28 |
CIT-POSIX-SH |
POSIX.1-2024 Shell Command Language | The Open Group / IEEE | https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html | §2.3 Token Recognition: "The shell shall read its input in terms of lines." The shell reads a script incrementally from the open file rather than loading it whole, which is why replacing a script on disk under a running shell makes it resume inside the new contents at the old offset and execute a fragment. This is the basis of the soak guard in scripts/push.sh and scripts/flash.sh: git merge --ff-only replaces a file rather than editing it in place, so fast-forwarding the build host mid-soak can corrupt the very script the soak is executing. Cited in place of the GNU Bash Reference Manual §3.8, which returns HTTP 403 to automated fetches and so cannot be verified per the policy above. |
VERIFIED 2026-08-14 |
Prior art shows something works in practice. It never establishes correctness on its own —
pair it with a datasheet or spec citation (rule 20).
| Key | Title | Publisher | URL | Establishes | Status |
|---|---|---|---|---|---|
CIT-LITTLEFS-DESIGN |
littlefs — README and DESIGN.md | littlefs-project | https://raw.githubusercontent.com/littlefs-project/littlefs/master/README.md | The filesystem underneath the Adafruit core's InternalFileSystem, cited for its power-loss guarantee: "All POSIX operations, such as remove and rename, are atomic, even in event of power-loss. Additionally, file updates are not actually committed to the filesystem until sync or close is called on the file" (README, "Usage"). DESIGN.md gives the mechanism — copy-on-write metadata pairs committed with a 32-bit CRC, designed to "recover from a power loss during any write operation" (:47-49, :351-354). This is what makes a session or config write taken on a sagging supply fail closed: the record either commits or stays as it was, and a torn write cannot be read back as a plausible-looking wrong one. DESIGN.md: https://raw.githubusercontent.com/littlefs-project/littlefs/master/DESIGN.md
|
VERIFIED 2026-08-12 |
CIT-WISBLOCK-API2 |
WisBlock-API-V2 | beegee-tokyo | https://github.com/beegee-tokyo/WisBlock-API-V2 | Event-driven Class A + power-save framework for RAK4631 handling LoRaWAN, BLE, and AT commands; the P0 stack recommendation in LIBRARIES.md. |
VERIFIED 2026-07-30 |
CIT-SX126X-ARDUINO |
SX126x-Arduino | beegee-tokyo | https://github.com/beegee-tokyo/SX126x-Arduino | LoRaWAN MAC implementation for Semtech SX126x underlying the RAK4631 Arduino path. 282 stars. | VERIFIED 2026-07-30 |
CIT-ONEWIRE-SERIAL |
RAK-OneWireSerial | beegee-tokyo (RAKwireless) | https://github.com/beegee-tokyo/RAK-OneWireSerial | One-wire half-duplex serial protocol as used by the RAK2560 SensorHub — the RAK9154 path. Two separate layers, both cited by this firmware. (1) src/onewire_master_protocol.c/.h: the RUI3 transport frame, the SensorHub API frame, cal_chksum()'s popcount checksum, and the provision-BOOT-before-SENDAT order. (2) src/SoftwareHalfSerial.cpp/.h: the timing-critical byte layer this project now links against instead of bit-banging — TX writes the cached nRF port output register directly (`*reg |
= mask) with only NRF_GPIOTE->INTEN*masked, and RX runs off a GPIOTE falling-edge interrupt withbit/2 - 2 µscentring,bit - 1 µsintrabit, and a 16-NOP trim.library.jsondeclaresframeworks: [arduino], platforms: ["*"], headers: RAK-OneWireSerial.h. Pinned in platformio.ini at **c58c0f0760c7fe6ac54852dee9024077fc076d06`** (v0.0.2, 2024-12-15). |
CIT-MESHTASTIC-9154 |
meshtastic/firmware | Meshtastic | https://github.com/meshtastic/firmware |
variants/rak2560/RAK9154Sensor.cpp at merge commit 02050a4775d6d8f70b59634bb68eba8b38dd6a8d (PR #4117) — a working RAK9154 reader on the same MCU as this node (nRF52840). Establishes how RAK-OneWireSerial is driven in practice: static SoftwareHalfSerial mySerial(HALF_UART_PIN); mySerial.begin(9600);, whole frames handed to write() on SNHUBAPI_EVT_QSEND, and receive as while (mySerial.available()) { buff[bufflen++] = mySerial.read(); delay(2); } — i.e. a per-byte grace period delimits the frame. Also the source for probe/master addressing, the little-endian (msg[2] << 8) + msg[1] decode on the SDATA_REQ path, and nRF52 brownout lessons. |
VERIFIED 2026-08-04 |
CIT-MODBUSMASTER |
ModbusMaster | 4-20ma | https://github.com/4-20ma/ModbusMaster | Arduino Modbus master with timeout handling. 646 stars. | VERIFIED 2026-07-30 |
CIT-ADA-LITTLEFS |
Adafruit_LittleFS — Adafruit_LittleFS.cpp, Adafruit_LittleFS_File.cpp, Adafruit_LittleFS.h
|
Adafruit | https://raw.githubusercontent.com/adafruit/Adafruit_nRF52_Arduino/master/libraries/Adafruit_LittleFS/src/Adafruit_LittleFS.cpp |
The filesystem API src/session.cpp and src/config.cpp actually call, cited because its boolean wrappers discard distinctions that are load-bearing for replay protection. (1) remove() is return LFS_ERR_OK == err, so it returns false for both LFS_ERR_NOENT and real I/O errors. (2) exists() is exactly 0 == lfs_stat(...), so it also returns false for both NOENT and I/O/corruption errors; it is not ground truth after a failed removal. (3) File::flush() and File::_close() call lfs_file_sync() / lfs_file_close() and discard their return values, even though littlefs commits file updates at sync/close. (4) FILE_O_WRITE maps to `LFS_O_RDWR |
LFS_O_CREATwith no truncation and seeks to end. (5)_getFS(), _lockFS()and_unlockFS()are public “INTERNAL USAGE ONLY” APIs, allowingsrc/storage.cppto retain raw error codes for open/write/sync/close/rename/remove.format()` unmounts, formats, and remounts, returning false if any step fails. File API: https://raw.githubusercontent.com/adafruit/Adafruit_nRF52_Arduino/master/libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp
|
CIT-INTERNAL-FS |
Adafruit nRF52 InternalFileSystem — InternalFileSystem.cpp
|
Adafruit | https://raw.githubusercontent.com/adafruit/Adafruit_nRF52_Arduino/master/libraries/InternalFileSytem/src/InternalFileSystem.cpp |
InternalFileSystem::begin() is destructive recovery, not a plain mount. If Adafruit_LittleFS::begin() fails once, it erases every page from LFS_FLASH_ADDR through the seven-page filesystem region, calls format(), then retries the mount. That is unsafe in Config::begin(), which runs before the first pack-voltage reading and before the brownout flash gate exists. storage::mount_without_format() deliberately calls the base Adafruit_LittleFS::begin() instead; gated recovery owns formatting later. Also establishes the nRF52840 filesystem size (7 × 4096-byte pages) and 128-byte LittleFS block size. |
VERIFIED 2026-08-28 |
CIT-RFC7042 |
RFC 7042 — IANA Considerations and IETF Protocol Usage for IEEE 802 Parameters | IETF | https://www.rfc-editor.org/rfc/rfc7042.txt | Cited for EUI-48/EUI-64 bit semantics when generating a DevEUI without a TTN-assigned block: §2.1 names "the Group bit (01) and the Local bit (02)" and states "The Local bit is zero for globally unique EUI-48 identifiers assigned by the owner of an OUI" (:308-320). So a self-generated DevEUI sets 0x02 in the first byte and clears 0x01, which is what scripts/register_device.sh gen does and what its selftest asserts. |
VERIFIED 2026-08-28 |
CIT-TINYUSB |
Adafruit TinyUSB Library for Arduino | Adafruit | https://github.com/adafruit/Adafruit_TinyUSB_Arduino | Supplies the USB CDC device class on the nRF52840. The RAK4631 has no separate USB-serial bridge, so this library is what produces the console port. | VERIFIED 2026-07-30 |
CIT-PIO-RAK4631-USB |
RAK4631 (nRF52): No serial port when compiled with PlatformIO | PlatformIO community | https://community.platformio.org/t/rak4631-nrf52-no-serial-port-when-compiled-with-platformio-same-code-fine-in-arduino-ide/35830 |
lib_archive = no is required or the USB CDC port never enumerates — the board flashes cleanly and then presents no serial device. One reporter lost their port entirely and had to recover via bootloader mode. Also the origin of maxgerhardt's upstream PR to add wiscore_rak4631 to platform-nordicnrf52, which is still unmerged — which is why the board is absent from the registry. |
VERIFIED 2026-07-30 |
CIT-ADA-BOOTLOADER |
Adafruit nRF52 Bootloader — feather_nrf52840_express/board.h
|
Adafruit | https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/src/boards/feather_nrf52840_express/board.h | The bootloader the RAK4631 ships: USB_DESC_VID 0x239A, USB_DESC_UF2_PID 0x0029 (UF2 / double-tap DFU) and USB_DESC_CDC_ONLY_PID 0x002A (serial-only DFU). Establishes what 0029 and 002A mean; RAK's boards.txt establishes that the RAK4631 uses them. The upstream repo has no wiscore_rak4631 board directory — RAK builds it out of tree, so the Feather board file is the primary definition of these two IDs. |
VERIFIED 2026-08-03 |
CIT-ADA-NRFUTIL |
Adafruit_nRF52_nrfutil — dfu_transport_serial.py
|
Adafruit | https://github.com/adafruit/Adafruit_nRF52_nrfutil/blob/master/nordicsemi/dfu/dfu_transport_serial.py | The DFU tool PlatformIO invokes. get_ack_nr() emits "Timed out waiting for acknowledgement from device." on ACK_PACKET_TIMEOUT (1.0 s) and then raises "No data received on serial port. Not able to proceed."; open() raises "Serial port could not be opened on {port}". These are the exact strings scripts/flash.sh scans for, taken from the source rather than from a log. |
VERIFIED 2026-08-03 |
CIT-NRF-APPROTECT |
Managing access port protection | Nordic Semiconductor (nRF Connect SDK) | https://docs.nordicsemi.com/bundle/ncs-3.3.0-rc1/page/nrf/security/ap_protect.html |
Why SWD access to an nRF52840 keeps disappearing after every reset, and what actually restores it. Access port protection has a hardware half and a software half. The hardware half follows UICR.APPROTECT: "If UICR is open (UICR.APPROTECT disabled), AP-Protect is disabled." The software half is re-armed by the CPU on every reset, so "if your device supports hardware and software AP-Protect and you want to keep the AP-Protect disabled after hard reset, you must flash firmware that writes SwDisable to APPROTECT.DISABLE during boot." Recovery is ERASEALL over CTRL-AP, which "erases the flash, RAM, and UICR (including UICR.APPROTECT), and hard resets the device" — note erasing UICR leaves APPROTECT disabled, not enabled. Establishes that a debug session must do all of its programming between the erase and the next reset. Corroborated register-level by Nordic's own blog, which adds that after ERASEALL "the device should be accessible to a debugger until it executes a pin, power, or brownout reset": https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/working-with-the-nrf52-series-improved-approtect
|
VERIFIED 2026-08-30 |
CIT-OPENOCD-NRF5 |
OpenOCD — src/flash/nor/nrf5.c
|
OpenOCD project | https://raw.githubusercontent.com/openocd-org/openocd/master/src/flash/nor/nrf5.c |
OpenOCD needs the target CPU alive to write nRF5 flash — unless you take its scratch RAM away. nrf5_ll_flash_write() calls target_alloc_working_area(target, sizeof(nrf5_flash_write_code), &write_algorithm) (:1143) and, only when that allocation fails, logs "no working area available, falling back to slow memory writes" (:1145) and writes the image one 32-bit word at a time straight through the debug port. The fast path downloads a loader into RAM and executes it on the core, which a mass-erased part cannot do: with no valid vector table the CPU double-faults into lockup at pc 0xfffffffe and the algorithm never completes. So <target> configure -work-area-size 0 is the documented-by-source way to program a bricked nRF52840 that cannot run code. Also the source for NRF5_NVMC_ERASEALL = 0x50C (:56) behind the nrf5 mass_erase command (:1457). |
VERIFIED 2026-08-30 |
CIT-RAK-LOWPOWER |
RAK4630 LoRaWAN Low Power Example | RAKwireless | https://github.com/RAKWireless/WisBlock/blob/master/examples/RAK4630/communications/LoRa/LoRaWAN/Low_Power_Example.md | RAK's own narrative on sleeping an nRF52 WisBlock node, and the source of two firmware decisions. (1) Line 45, on the console: "As we want to achieve maximum power savings, the Serial port MUST NOT be initialized. Because not only does the hardware of the Serial port consume energy, FreeRTOS is as well starting a task running in the background (and never sleeps), that prevents the MCU from sleeping." The companion sketch enforces this by wrapping every Serial call, Serial.begin() included, in #ifndef MAX_SAVE . ⚠ CLAIM (1) IS FALSE AND WAS ACTED ON IN ERROR — see the correction below before citing this row for anything about the console. (2) Line 13 rejects the mechanism this firmware used to sleep with: "while in the delay() function, the task cannot receive any information about external events… for most scenarios the delay is not a good solution", prescribing xSemaphoreTake(taskEvent, portMAX_DELAY) at :140-145 instead. Cited for the mechanism, not the timeout — portMAX_DELAY is unsafe against our WDT_CONFIG_SLEEP_Pause (CIT-NRF-WDT), so src/power.cpp keeps a bounded timeout and records why. Quoted and line-referenced in docs/reviews/2026-08-12_rak_reference_benchmark.md §1. |
VERIFIED 2026-08-12 |
CIT-ADA-NRF52-CORE |
Adafruit nRF52 Arduino core | Adafruit | https://github.com/adafruit/Adafruit_nRF52_Arduino | The Arduino core this firmware is built on, pinned for citation at 343ab5fe7fb3d5657d3176883dfb188d65b79f06 (2026-05-12). Three files carry load here. cores/nRF5/main.cpp:47-60 — the Arduino entry point is a FreeRTOS task (loop_task) that calls TinyUSB_Device_Init(0) under #ifdef USE_TINYUSB before setup(), which is why USB comes up regardless of what the sketch does. cores/nRF5/Arduino.h:63-66 — Serial only exists when USE_TINYUSB is defined, so the fact that our Serial/TinyUSBDevice calls compile proves the flag is set for this project. cores/nRF5/freertos/config/FreeRTOSConfig.h:52-97 — configUSE_TICKLESS_IDLE 1, configEXPECTED_IDLE_TIME_BEFORE_SLEEP 2, configTICK_RATE_HZ 1024, which is what makes a blocked task cheap rather than a sleep blocker. |
VERIFIED 2026-08-12 |
CIT-RAK-NRF52-CORE |
RAK-nRF52-Arduino (RAK's own BSP) | RAKwireless | https://github.com/RAKWireless/RAK-nRF52-Arduino | The board support package RAK's own examples build against, used here as the counter-citation to CIT-RAK-LOWPOWER. Two facts, both read from the tree: platform.txt:72 sets build.flags.usb= -DUSBCON -DUSE_TINYUSB ... unconditionally, and boards.txt contains zero usbstack menu entries, so unlike the Adafruit BSP there is no way to opt out of TinyUSB. And cores/nRF5/main.cpp is byte-identical to Adafruit's, including the #ifdef USE_TINYUSB / TinyUSB_Device_Init(0); block ahead of setup(). Together these establish that RAK's own MAX_SAVE builds create the background USB task their low-power document warns about, so the document does not describe its own reference implementation. |
VERIFIED 2026-08-12 |
CIT-TINYUSB-CORE |
TinyUSB (upstream stack) | hathach | https://github.com/hathach/tinyusb | The stack underneath CIT-TINYUSB, cited for mechanism the Arduino wrapper does not show. src/device/usbd.c:669-688 — tud_task() is tud_task_ext(UINT32_MAX, false) and its loop body is a blocking osal_queue_receive(); src/osal/osal_freertos.h:80-90 maps UINT32_MAX to portMAX_DELAY, so the task blocks rather than spinning. src/portable/nordic/nrf5x/dcd_nrf5x.c: :280 dcd_disconnect() clears NRF_USBD->USBPULLUP (what detach() reaches); :295-302 leaves the SOF interrupt disabled for non-isochronous devices, so a CDC-only device has no 1 ms wakeup; :927 tusb_hal_nrf_power_event() is the only place NRF_USBD->ENABLE is set, and it runs from the VBUS event — which is why USB current is a cable question, not a Serial.begin() question. |
VERIFIED 2026-08-12 |
CIT-RAK-SLEEP |
RAK4631 — deep sleep until reset | RAKwireless forum | https://forum.rakwireless.com/t/rak4631-deep-sleep-until-reset/7253 | Bernd Giesecke (WisBlock-API author): sd_power_mode_set() sleeps the nRF52 but not the SX1262 — Radio.sleep() is also required, and critically, "if you initialize LoRaWAN but cannot connect to a LoRaWAN server, the MCU will never sleep, because it is retrying to join." A reporter measured 6 mA in the failing configuration. Measurement method: Nordic PPK2 in source-meter mode on the base board battery connector. |
VERIFIED 2026-07-30 |
Local paths move and these repos advance independently, so cite a commit SHA.
| Key | Repo | Path | Establishes | Pinned |
|---|---|---|---|---|
CIT-FWM-DECODER |
forest-weather-machines | LoRaWAN/payload/rak-wx-station-default.js |
The live TTN uplink formatter — the other half of the payload contract. Channel/type map, WIND_DIR_OFFSET = 230, zero-wind null policy. |
efc0e3c (2026-07-30) |
CIT-FWM-RAK2560 |
forest-weather-machines | LoRaWAN/docs/RAK2560_weather_station_settings.md |
Field-proven RK900 and BMS Modbus settings from the deployed Sensor Hub. | efc0e3c |
CIT-RAK45WIRE |
forest-weather-machines | rak-4-5-wire/ |
RAK9154 connector reference and bench reverse-engineering, including the one-wire POC. | efc0e3c |
CIT-NRF-BACKPOWER |
nRF52840 GPIO default state — max GPIO voltage on an unpowered device is 0.3 V; above that the ESD protection diode conducts and back-powers the chip through the pin | Nordic DevZone (Nordic staff answer) | https://devzone.nordicsemi.com/f/nordic-q-a/65727/nrf52840-gpio-default-state |
A candidate mechanism for the nine dead one-wire pads, NOT the established one. Establishes that a peripheral idling its data line at 3.3 V into an unpowered nRF52840 is an order of magnitude outside absolute maximum, and that the current path is the pad's ESD diode into the core's decoupling capacitance. Direction mismatch: conduction through the upper diode shorts a pin to VDD, whereas the pads here measure short to ground — so this citation supports a hazard, not this failure. See CIT-NRF-GNDLOSS for the mechanism that matches the signature, and issue #102. |
CIT-NRF-GNDLOSS |
Losing the ground connection between two boards makes a data pin carry the whole chip's supply current — the documented cause whose signature matches a pin shorted to ground | electronics.stackexchange (nRF52840 ↔ ATmega1284P UART pins) | https://electronics.stackexchange.com/questions/661745/possible-esd-damage-on-uart-pins-between-nrf52840-and-atmega1284p | The mechanism that fits seven dead pads. "If the GND pin becomes disconnected, then the entire current consumed by the nRF52840 has no other way but the TX/RX pins" — and "the connectors may be good enough to pass your test, but will fail in the environment." Also gives the remedy this project adopted: run ground on two conductors positioned so ground "is the first line to make contact (or the last line to lose contact)", plus 1 kΩ series resistors that bound the current to <3.3 mA per pin regardless of how the software configures them. Explains indifference to which pad is used, survival of identical firmware on node 001, and why three harness replacements did not help — each rebuilt the same single hand-made ground junction. |
CIT-NRF-GNDLIFT |
Nordic staff and multiple users on nRF52840 pins failing short to ground, with the direction problem stated explicitly and left unresolved | Nordic DevZone | https://devzone.nordicsemi.com/f/nordic-q-a/73811/swdio-pin-shorted-to-ground | Establishes that this failure direction is not back-powering: "If diode current would be exceeded it could short SWDIO to VCC and not to GND which happens in our cases", and that the remaining possibilities are "a negative voltage applied to the pin (or ground lifted above" it). Nordic could not close it on their own boards. This is why CIT-NRF-BACKPOWER is a hazard citation rather than a cause citation for issue #102. |
CIT-NRF-PINSHORT |
"SWDIO pin shorted to ground" — a single GPIO reading a few ohms to ground while the chip keeps running its last firmware | Nordic DevZone (Nordic staff answer) | https://devzone.nordicsemi.com/f/nordic-q-a/73811/swdio-pin-shorted-to-ground | Matches our failure signature exactly: one dead pad, ~3.9 Ω to ground, neighbouring pins healthy. Nordic attributes it to high current flow through the pin. Note the thread's unresolved objection — back-powering through the diode should short the pin to VCC, not to GND — so the ground-short end state is not fully explained even by Nordic. |
CIT-NRF-UNPOWERED-PIN |
Risks of applying voltage to a GPIO when VDD = 0 V — full parasitic-path and hot-plug-inductance explanation | Nordic DevZone | https://devzone.nordicsemi.com/f/nordic-q-a/83945/potential-risks-if-voltage-is-applied-to-a-gpio-pin-when-the-chip-is-not-powered-vdd-0-0v | Explains why the damage is worse when the chip was not already powered, and that wire inductance on a hot-plug can break down the Schottky clamp despite an HBM ESD rating. Justifies the connector sequencing rule in HARDWARE.md. |
CIT-PARTICLE-BACKPOWER |
Identifying damaged hardware — pull-ups must reference the device's own 3V3, never an external rail, or they back-power the nRF | Particle | https://docs.particle.io/troubleshooting/guides/device-troubleshooting/identifying-damaged-hardware/ | Independent confirmation of the back-powering path on the same silicon family, and the reason R2 in HARDWARE.md is specified to the board's VDD pad rather than any external supply. prior-art, not authority — paired with CIT-NRF-BACKPOWER. |
CIT-RAK19007-DS |
RAK19007 WisBlock Base Board datasheet — absolute maximum ratings and power path | RAKwireless | https://www.framboise314.fr/wp-content/uploads/2024/08/RAK19007-Datasheet.pdf | USB-C VBUS absolute maximum −0.3 to 5.5 V; VBAT −0.3 to 4.3 V; WisBlock connector I/O −0.3 to VDD+0.3 V; ESD 2000 V. VDD on the edge header is generated by the core module, not the base board. No overvoltage clamp is documented on the USB-C input — the only series element shown is a diode ahead of the TP4054 charger. Mirror host; RAK's own copy is JS-rendered. |
CIT-RAK-GREENPOWER |
RAK staff: a regulated external supply belongs on the P2 "Green Power" connector, up to 5.5 V, not the USB-C port | RAKwireless forum (beegee, RAK staff) | https://forum.rakwireless.com/t/rak19007-rak4631-usb-and-j12-vdd-can-be-connected-at-the-same-time/9870 | This build feeds the buck's 5 V into USB-C, which is not the path RAK recommends. Same thread confirms external 5 V and USB-C may coexist. Relevant because the USB-C path has the TP4054 charger behind it and a 5.5 V ceiling. |
CIT-RAK-USBDEAD |
RAK4631 USB not detected — a missing SoftDevice kills USB and the application while leaving SWD/J-Link working | RAKwireless forum (beegee, RAK staff) | https://forum.rakwireless.com/t/rak4631-usb-not-detecting/14042 | The discriminator for a silent board: if SWD connects, it is software-bricked and recoverable; if SWD does not connect, the device is damaged. Prevents concluding "dead chip" from USB silence, which every documented forum case turned out not to be. |
CIT-MP1584-SCOPE |
Oscilloscope measurement of an MP1584 buck module across its input range | Roger Cheng, newscrewdriver.com | https://newscrewdriver.com/2022/03/04/putting-modified-mp1584-under-oscilloscope/ |
Measured bench-class third-party evidence that the dangerous regime is input sag, not turn-on. Startup is clean and soft-started; as input approaches the module's ~11.8 V enable threshold the output becomes a growing sawtooth — on a 3.3 V setpoint, "it dips just below 2 V before overshooting above 4 V. This would definitely destroy components designed for 3.3 V." >20 % above setpoint, repeating. Directly relevant: a discharging pack walks the buck input down into exactly this regime. Hobby measurement, not a vendor spec — paired with [CIT-TI-BUCK-OVERSHOOT]. |
CIT-TI-BUCK-OVERSHOOT |
LM2596 output overvoltage on fault recovery, with TI applications engineers responding | Texas Instruments E2E forum | https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1242330/lm2596-output-voltage-overshoot-after-removing-short-circuit-at-the-output | Vendor-side corroboration of the same failure class on the other common module controller: ~6 V measured on a 3.3 V output, which destroyed the customer's Ethernet IC. TI: "the device doesn't turn off in the short circuit condition which is why there's a huge overshoot… You may need a Zener diode clamp." Also confirms load does not remove it: "the overshoot settling time is reduced if 200 mA load is applied… but it is still there." |
CIT-MP1584-DS |
MP1584 datasheet — soft-start | Monolithic Power Systems | https://www.datasheetq.com/en/pdf-html/882210/MPS/8page/MP1584EN.html | "The soft-start is implemented to prevent the converter output voltage from overshooting during startup." Establishes that turn-on is the protected case, which is why the hazard in [CIT-MP1584-SCOPE] is input sag and light load rather than power-up. |
CIT-RAK-ONEWIRESERIAL |
beegee-tokyo/RAK-OneWireSerial — the only published code that names the RAK9154 |
Bernd Giesecke (RAK staff), maintained under RAKwireless in the Arduino library index | https://github.com/beegee-tokyo/RAK-OneWireSerial |
Establishes that RAK's reference path does not put the pack's data line on a bare core GPIO. Requires a RAK13002 WisBlock IO module: "the Sensor Probe is connected with 3.3 V, GND and RXD1 only from the RAK13002 module." Prefers RX1 / P0.15 — "It should work with other GPIO's as well, but it is not tested." Marked "prior-art — shows what works, does not establish correctness. |
CIT-RAK9154-DS |
RAK9154 Solar Battery Lite datasheet — SP11 connector pinout | RAKwireless (mirrored; RAK's own page renders empty to automation) | https://iot-shop.de/en/shop/rak-910274-rak-solar-battery-lite-for-sensor-hub-7352/document/5415 | Confirms the pinout this build uses: "Pin1: P+; Pin2: P-; Pin3: TXD; Pin4: 3V3_In; Pin5: RXD", SP11, IP67, 2 A rated. Silent on everything electrical — no logic level, no open-drain-versus-push-pull, no internal pull resistance, and no explanation of what 3V3_In is for. A RAK forum thread asking exactly this got zero replies. |
CIT-NRF-GPIO-TOTAL |
nRF52840 total GPIO current and I/O absolute maxima | Nordic DevZone (staff) + aconno ACN52840 module datasheet §5.1/§5.6, which states it reproduces the nRF52840 table | https://devzone.nordicsemi.com/f/nordic-q-a/67497/nrf52840-5v-tolerant-gpio | Total current summed across all GPIOs: 25 mA — Nordic: "the max current draw specified in the datasheet is the sum of all GPIO currents." I/O pin voltage −0.3 V to VDD+0.3 V (3.9 V in high-voltage mode); VBUS −0.3 to +5.8 V; standard drive sink/source 1/2/4 mA, high drive 6/10/15 mA; internal pull resistance 11/13/16 kΩ. Nordic's own docs site is behind Cloudflare and refused automated fetches, hence the module-datasheet mirror at https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/4325/ACN52840.pdf. No absolute-max current is published per individual pin. |
CIT-SALEAE-LOGICPRO8 |
Saleae Logic Pro 8 data sheet — input ratings | Saleae | https://downloads.saleae.com/specs/Logic+Pro+8+Data+Sheet.pdf |
Establishes that the analyzer can safely qualify a line that would destroy a GPIO pad. Absolute maximum input −25 V to +25 V continuous; analog operating range −10 V to +10 V (saturates outside, so a pinned reading still means "at least 10 V"); input impedance 2 MΩ ∥ 10 pF, which cannot meaningfully load the pack's measured 15 kΩ pull-down; 12-bit ADC at 4.88 mV per LSB; analog sample rates to 50 MSPS. Against the nRF52840's VDD + 0.3 V ([CIT-NRF-GPIO]) — 0.3 V unpowered ([CIT-NRF-BACKPOWER]) — this is roughly a 7× tolerance margin, which is why HARDWARE.md § "Qualifying the pack harness" puts the analyzer on an unmeasured line and never a core. Ratings corroborated by Saleae's own safety page: https://www.saleae.com/support/specifications-hardware/product-comparison-and-selection/safety-and-warranty — "Connecting one of the input channels to voltages outside this range, even for a very short time, can result in damage to the device." |
CIT-TI-POWERED-OFF-SWITCH |
Eliminate Power Sequencing With Powered-Off Protection Signal Switches, SCDA015C | Texas Instruments | https://www.ti.com/lit/ab/scda015c/scda015c.pdf | Defines the required feature for isolating an active peripheral from an unpowered processor: back-power protection plus powered-off isolation. TI says to verify a device-specific leakage specification with VDD = 0 V; ordinary switches can forward-bias their own ESD diode, back-power the supply, and unintentionally reconnect the signal path. |
CIT-SN74CBTLV1G125 |
SN74CBTLV1G125 low-voltage single FET bus switch datasheet, Rev. H | Texas Instruments | https://www.ti.com/lit/ds/symlink/sn74cbtlv1g125.pdf | Candidate one-wire powered-off isolation switch. One bidirectional 1:1 channel; 2.3–3.6 V supply; 5 Ω typical on-resistance; Ioff maximum 10 µA at VCC = 0 V with either data terminal from 0 V to 3.6 V; maximum supply current 10 µA at 3.6 V. OE is active-low, and TI requires it pulled up to VCC to maintain high impedance during power transitions. This isolates an unpowered Core; it does not limit contention while enabled. |
CIT-USB-BACKFEED |
Why a buck's output must never share a node with a host USB port | Electronics Stack Exchange | https://electronics.stackexchange.com/questions/730388/ | "Your buck regulator may damage the computer motherboard. There is 330 µF plus 22 µF worth of capacitors on 5 V/VBUS line. USB devices are required to have max 10 µF… USB doesn't support connecting multiple supplies together, so reverse current protection isn't guaranteed." Relevant because this build's buck and host cable share the USB-C connector: the mutual exclusivity is not merely inconvenient, it is required. |
Clone location on both machines: ~/Documents/GitHub/forest-weather-machines.
Override for tooling with FWM_REPO=/path/to/repo.
URLs that were wrong and are recorded so nobody re-derives them:
| Wrong URL | Problem | Correct |
|---|---|---|
modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf |
404 — widely cited elsewhere, including by Modbus's own security spec, but dead | www.modbus.org/file/secure/modbusprotocolspecification.pdf |
modbus.org/docs/Modbus_over_serial_line_V1_02.pdf |
404 | www.modbus.org/file/secure/modbusoverserial.pdf |
docs.rakwireless.com/product-categories/wisnode/rak9154/overview/ |
404 — RAK9154 is not under wisnode/
|
.../accessories/rak9154/datasheet/ |
lora-alliance.org/resource_hub/rp2-regional-parameters/ |
404 — wrong host and slug |
resources.lora-alliance.org/... or the direct PDF above |
lora-alliance.org/resource_hub/lorawan-specification-v1-0-4/ |
404 | direct PDF above |
| eCFR deep link for 15.247 | Blocks automated access with a CAPTCHA | Cornell LII mirror |
.../rakwireless-docs/.../Product-Categories/Solar-Battery/RAK9154/Datasheet/README.md |
404 — there is no Solar-Battery/ category in the docs repo. The RAK9154 lives under Accessories/, matching the rendered-site correction already logged above. |
.../Product-Categories/Accessories/RAK9154/Datasheet/README.md |
.../rakwireless-docs/.../Product-Categories/Sensor-Hub/RAK2560/Datasheet/README.md |
404 on two counts: the RAK2560 is under WisNode/, not a Sensor-Hub/ category, and it has no plain Datasheet/ — the hub, the Probe-IO, and the Sensor Probe each get their own. |
.../Product-Categories/WisNode/RAK2560/Hub-Datasheet/README.md (also IO-Datasheet/, Probe-Datasheet/) |
img80003232.weyesimg.com/.../15994591737356.pdf (CIT-RK900-PROTO, origin) |
403 to any non-browser client. Not dead — the origin gates on User-Agent: curl with no UA gets 403, the same request with a desktop-browser UA gets 200 application/pdf, 171229 bytes. Rule 20 forbids shipping a link that fails for the next reader, and a UA-conditional link fails for every checker. |
Wayback snapshot of the same file — reachable with no UA games, 200 application/pdf, 171229 bytes, md5 e1f6b1997d15ab7a41a2bb3a564bb8f9, byte-identical to the origin copy fetched the same day. The registry row now points at the mirror; the claim keeps its primary-source sourcing. |
The table above is about dead links. This one is worse, because the source is reachable, authoritative-looking, and wrong — and it was acted on.
CIT-RAK-LOWPOWER, line 45 — "the Serial port MUST NOT be initialized ... FreeRTOS is as well
starting a task running in the background (and never sleeps), that prevents the MCU from
sleeping."
Status: the stated mechanism is false, and false on RAK's own BSP. Established 2026-08-12 by
reading the core's source. Acted on in 094d5f5 (FEATURE_CONSOLE=0 in the field image) and
reverted the same day — see
ADR-0008, which is now the whole record;
the working review that preceded it has been deleted.
| Claim | What the primary source says | Counter-citation |
|---|---|---|
Not calling Serial.begin() avoids initializing the port |
Adafruit_USBD_Device::begin() calls SerialTinyUSB.begin(115200) itself at Adafruit_USBD_Device.cpp:262, commented "Serial is always added by default", from cores/nRF5/main.cpp:52 — before setup(). A sketch's own call hits if (isValid()) return; at Adafruit_USBD_CDC.cpp:95 and does nothing. |
CIT-TINYUSB, CIT-ADA-NRF52-CORE
|
| A background FreeRTOS task is created only if you initialize Serial | The usbd task is created at Adafruit_USBD_Device.cpp:265, unconditionally, in the same pre-setup() path. RAK's own BSP gets it too: -DUSE_TINYUSB is unconditional at platform.txt:72 with no usbstack menu in boards.txt, and RAK's cores/nRF5/main.cpp is byte-identical to Adafruit's. RAK's MAX_SAVE builds create the task the document warns about. |
CIT-RAK-NRF52-CORE |
| The task "never sleeps" and prevents the MCU sleeping |
tud_task() blocks on xQueueReceive(..., portMAX_DELAY) (usbd.c:686, osal_freertos.h:81), so it sits Blocked and off the ready list. SOF interrupts stay disabled for a CDC-only device (dcd_nrf5x.c:295-302), so there is no 1 ms wakeup either. |
CIT-TINYUSB-CORE |
| Residual claim that survives: "the hardware of the Serial port consume energy" | True, but it is a VBUS question, not a Serial.begin() question. NRF_USBD->ENABLE is set only from the VBUS power-event handler (dcd_nrf5x.c:927), so with no cable the peripheral is never enabled whatever you build. With a cable, detach() → USBPULLUP = 0 (dcd_nrf5x.c:280) is the available lever, and src/power.cpp:135 already uses it. |
CIT-TINYUSB-CORE, CIT-NRF-USBD
|
Per .cursor/rules/20-citation-discipline.mdc:
prior art is not authority, and when prior art and the primary source disagree the primary source
wins and the disagreement gets written down — which is what this section is. RAK's document
is narrative prior art about code we can read; the code is what runs.
Read charitably, RAK's advice reduces to do not print, which is a real duty-cycle-shaped saving and not the step change the wording implies. It is not authority for removing the console from a build, and the magnitude of any saving remains unmeasured (#47).
The lesson generalizes past this row: a vendor doc describing its own product is still
prior art, and CIT-RAK-LOWPOWER was strong enough to move a shipping build without anyone
opening the library it describes. Two of the three claims were checkable in minutes.