Fork of RNode_Firmware with integration of the microReticulum Network Stack to implement a completeley self-contained standalone Reticulum node.
Custom Board Support: For build, flash, and provisioning instructions for the Seeed XIAO nRF52840 + Wio-SX1262, Seeed XIAO ESP32-S3 + Wio-SX1262, Heltec Wireless Stick Lite V1, and TTGO LoRa32 V1 boards, see CUSTOM_BOARDS.md.
This firmware can be easily installed on devices in the same way as RNode using the new fw-url switch to rnodeconf which allows firmware images to be pulled from an alternate repository. RNS may need to be updated to the latest version to use this new switch.
The latest version of this firmware can be installed in the usual RNode way with the following command:
rnodeconf --autoinstall --fw-url https://github.com/attermann/microReticulum_Firmware/releases/
By default this firmware will operate just like any other RNode firmware allowing it to be used as just a radio by RNS installed on an attached machine.
To enable Transport Mode using the RNS embedded on the device, the device must be switched to TNC mode using a command like the following:
rnodeconf --tnc --freq 915000000 --bw 125000 --sf 8 --cr 5 --txp 17 /dev/ttyACM0
When in Transport Mode, the device will display a row of "TTTTTTTTTTT" across the top of the AirTime panel of the display to indicate that the embedded RNS is active and routing packets.
Note that at the present time, when in TNC mode this firmware does not operate like a regular RNode does when in TNC mode due to logging from the embedded RNS that is output on the serial port. This can clobber KISS communication from the attached machine so do not attempt to attach another RNS to the device while in this mode. On the plus side, there is extensive logging available on the serial port to observe the embedded RNS in action and to aid in troubleshooting.
Build environment is configured for use in VSCode and PlatformIO.
Building and uploading to hardware is simple through the VSCode PlatformIO IDE
- Install VSCode and PlatformIO
- Clone this repo
- Lanch PlatformIO and load repo
- In PlatformIO, select the environment for intended board
- Build, Upload, and Monitor to observe application logging
Uploading to devices requires access to the rnodeconf utility included in the official Reticulum distribution to update the device firmware hash. Without this step the device will report invalid firmware and will fail to fully initialize.
Instructions for command line builds and packaging for firmware distribution.
Brownout during a flash write can corrupt the on-chip LittleFS at a level deeper
than Adafruit_LittleFS::begin()'s auto-format can recover from, which on a
naive build manifests as a permanent reboot loop (~3s cycle, EEPROM initialisation failed. on each boot, LFS assertion at lfs.c:1144).
The firmware now self-heals from this on the next boot:
-DLFS_NO_ASSERTmakes LittleFS returnLFS_ERR_CORRUPTinstead ofabort()-ing on an internal sanity check.eeprom_begin()runs an explicitInternalFS.format()+ retry whenever either the mount or the subsequent file-open step fails.FileSystem::init()(RNS side) does the same on its mount path.- RNS startup and the identity-restore block are gated on
fs_ready, so a still-unmountable FS can't crash the boot. - Identity keys are preserved across formatting via the raw-flash backup at
0xEC000(outside the LittleFS region) — the node keeps its RNS address.
Recovery messages, if they fire, are prefixed [EEPROM] … and [FS] … on the
serial monitor. [IDENTITY] Backup is current on a healthy boot confirms the
raw-flash backup matches the live identity files.
- Extend KISS interface to support config/control of the integrated stack
- Add interface for easy customization of firmware
- Add power management and sleep states to extend battery runtime
- Add build targets for NRF52 boards
- Auto-recover from brownout-induced LittleFS corruption on XIAO nRF52840
Please open an Issue if you have trouble building ior using the API, and feel free to start a new Discussion for anything else.