Skip to content

mups18-5 (v1.18.0.mups5)

Latest

Choose a tag to compare

@m0urs m0urs released this 05 Dec 14:31

Use at your own risk. This firmware may contain bugs, and I accept no liability for its use.
Before flashing, make a backup if at all possible. Back up the device's private key first and keep it safe –
without it a device gets a new identity after a full erase or a change of firmware.

mups18-5 – MeshCore v1.18.0.mups5

Custom MeshCore firmware based on IoTThinks PowerSaving-v18 (MeshCore main v1.18.0, PowerSaving-v18 commit 3f3df500).
Documentation: MUPS18.md · additional commands · packet filter · diagnostics

What is new compared to mups18-4

  • Base: PowerSaving-v18 3f3df500 (was 3957b6f4): battery-controlled forwarding (battery), LNA bypass radio.fem.rxps (Heltec V4.3), RX power saving changes, charge LED on the T1000-E, BME280 detection, Heltec Tracker V2 and ThinkNode M3 fixes. The packet filter that PowerSaving-v18 now ships is switched off, mups keeps the Dutch-MeshCore filter.
  • Repeated sending (PR #2670) updated:
    • max.resend defaults to 2, as in the PR (was 3).
    • A queued resend is only cancelled by a copy heard further down the path.
    • A resend is never forced onto a busy channel; after 4 s it is sent if the channel is clear, otherwise dropped.
    • A next hop that is not overheard several times in a row only gets one resend until it is heard again.
    • The extra resend on the final hop is also cancelled by an ACK sent as flood.
    • New repeater commands get resend.hops and get resend.late show what happens per next hop.
  • Packet filter updated to Dutch-MeshCore dmc-dev e10bd6e3: advert limiter for 2048 origins, private watch channels, allow exceptions, minimum SNR, extended rule patterns, filter channel add hash <#name>, and several fixes. A stored sender or text rule containing [ { | \ $ now has a different meaning.
  • New hop filter filter hop …: blocks floods by the repeaters in their path (taken over from marcelverdult/meshcore_filter). Not the same as filter hops.
  • Block a channel by its hash byte: filter channel add hash 0xNN. Only 256 values exist, so this can easily hit other channels as well. Remove such entries before going back to older firmware.
  • Mesh clock sync clock mesh (from Dutch-MeshCore, by ElektroVodka): a repeater with an unset clock can set it from signed adverts. Off by default.

The packet filter is still off by default, and dry-run is on: after filter on it only counts until filter dryrun off.

Changed defaults

These apply to new installs / after erasing the settings only (the filter values also after filter reset). Existing devices keep their stored settings.

  • max.resend: 2 (was 3).
  • Repeater flood.max: 12 (was 15).
  • Packet filter: advert window 120 h (was 24), message age 60 min (was 30).
  • Packet filter channel list: #bot, #bots, #test, #ping and #wetter, each forwarded only below 3 hops, and #wardriving, never forwarded.

To apply them on an existing device (the last two blocks are for repeaters):

set max.resend 2
set flood.max 12
filter advert 120
filter age 60
filter channel add #bot hops 3
filter channel add #bots hops 3
filter channel add #test hops 3
filter channel add #ping hops 3
filter channel add #wetter hops 3
filter channel add #wardriving

Included

Component Source Notes
RX duty-cycle power saving (radio.rxps), powersaving (companion), battery, powerlog, sensor, reboot.interval, repeater reply path (outpath) IoTThinks PowerSaving-v18 base
Release fixes MeshCore main pinned to v1.18.0
Allow setting the clock backwards, elapsed-time underflow fix PR #1349
Separate replay counters for login and messages PR #2834 repeater, room server, sensor
Flood ACK on DM retries PR #3260
Beeps for buzzer on/off, T1000-E button debounce 20 ms PR #3536 companion
Repeated sending of direct packets (max.resend, on by default, 2) PR #2670 with a guard for RX power saving; own diagnostics (repeater)
nRF52 clock / uptime jump every 48.5 days PR #3595 repeater, room server; hand port
Fixes also contained in MeshCore 1.19.0 (meshcore-dev#3950, meshcore-dev#3903, sec patch, meshcore-dev#3945, meshcore-dev#3835, meshcore-dev#3926, meshcore-dev#3807) MeshCore mups itself is still based on 1.18.0
Repeater packet filter (filter …) Dutch-MeshCore dmc-dev (e10bd6e3) repeater only, off by default; own defaults and extensions (hop limit per channel, filter path mode, hash byte)
Hop filter (filter hop …) marcelverdult/meshcore_filter (MIT) repeater only; ideas for filter path mode and the hop limit per channel also from there
Mesh clock sync (clock mesh) Dutch-MeshCore, ElektroVodka repeater only, off by default
Airtime reserve for scoped floods (fwd.scoped.reserve) own, idea from ACETyr/MeshCore repeater only, off by default

Own changes

Radio preset (all roles): 869.618 MHz, BW 62.5, SF 8, CR 8

Duty cycle (all roles): 10 % (af 9.0)

Companion: hardware CAD before TX (cad) on by default, as on the repeater (set cad on|off).

Repeater defaults:

Setting Value
rxdelay / txdelay / direct.txdelay 2 / 1.0 / 0.4
advert.interval / flood.advert.interval 238 min / 167 h
flood.max / flood.max.unscoped / flood.max.advert 12 / 3 / 3
multi.acks / path.hash.mode 1 / 2
loop.detect moderate
agc.reset.interval 0 (off)
cad on

WiFi companions: the firmware contains no WiFi credentials of mine. The Heltec V3 WiFi image has the placeholders myssid / mypwd compiled in. Set your own with the companion CLI or the rescue CLI (long press of the PRG button within 8 s after boot, serial console 115200 baud):

set wifi.ssid <your SSID>
set wifi.pwd <your password>

then reboot. get wifi.status shows the state, set wifi.clear removes the stored credentials. The Heltec V3 BLE companion, the Heltec V4 (OLED) BLE companion and the Heltec V4.3 (OLED) BLE companion also contain the WiFi interface, but keep WiFi off until an SSID is set. The Heltec V4.3 TFT BLE companion is built without the WiFi interface.

Defaults apply to new installs / after erasing the settings only – existing devices keep their stored settings.

Devices and files

Repeater: Heltec V3, Heltec V4 (OLED), Heltec V4.3 (R8, OLED and TFT), Heltec T096, Heltec T114 (without display), RAK4631, SenseCAP Solar, Xiao S3 WIO, Xiao nRF52, T1000-E, Wio Tracker L1 (standard variant, not 1W), ThinkNode M6, GAT562 30S Mesh Kit, LilyGo T-Beam 1W (SX1262), UnitEng Station G2.
Room server: Heltec V3.
Companion (BLE): Heltec V3, Heltec V4 (OLED), Heltec V4.3 (R8, OLED and TFT), RAK WisMesh Tag, GAT562 30S Mesh Kit, T1000-E, Wio Tracker L1, LilyGo T-Echo, LilyGo T-Deck, Xiao S3 WIO. Companion (WiFi): Heltec V3.

Device type File Use
ESP32 (Heltec V3, Heltec V4, Heltec V4.3, Xiao S3 WIO, LilyGo T-Deck, LilyGo T-Beam 1W, Station G2) *.bin Update (app image only) – web flasher (non-merged) or OTA; settings are kept
ESP32 (same) *-merged.bin New install / recovery (bootloader + partitions + app, written at 0x0). The web flasher erases the whole flash when a merged image is selected
nRF52 (RAK4631, RAK WisMesh Tag, GAT562 30S Mesh Kit, SenseCAP Solar, Heltec T096, Heltec T114, Xiao nRF52, ThinkNode M6, T1000-E, Wio Tracker L1, LilyGo T-Echo) *.zip Update via DFU – web flasher (serial) or nRF Connect app (BLE); settings are kept
nRF52 (same) *.uf2 Update via drag & drop – enter bootloader (usually double reset), copy file to the USB drive; settings are kept

.zip and .uf2 contain the same firmware – two ways to flash it. Neither erases settings.
For a clean install on nRF52, erase first (web flasher erase function, or rescue CLI erase on a companion), then flash.

Firmware version on the device: v1.18.0.mups5 (ver).

Default TX power (Heltec V4, Heltec V4.3 and Heltec T096; repeater and companion builds): the default is taken unchanged from the base (IoTThinks PowerSaving-v18) and is 17 dBm on these boards. The base's source comments say that 17 gives roughly 28 dBm at the antenna on these boards (the amplifier stage adds gain). I have not measured the real output. Please check what is permitted in your region and with your antenna, and set your own value with set tx <dBm> if needed. Like all defaults, this only applies to new installs / after erasing the settings.

Default TX power (LilyGo T-Beam 1W repeater): the default is taken unchanged from the base and is 22 dBm. The base's source comment says the board's amplifier module adds about 10 dB, i.e. roughly 32 dBm at the antenna. I have not measured the real output. This is well above what is usually permitted in the EU 868 MHz band. Set a suitable value with set tx <dBm> before putting the repeater into operation, taking your region and antenna into account. Like all defaults, this only applies to new installs / after erasing the settings.

Default TX power (UnitEng Station G2 repeater): the default is taken unchanged from the base and is 7 dBm. The base's source comment says this gives about 27 dBm (~0.5 W) at the output with the amplifier enabled; the base also limits the setting to a maximum of 19 ("max output without burning out the PA"). I have not measured the real output. Please check what is permitted in your region and with your antenna, and set your own value with set tx <dBm> if needed. Like all defaults, this only applies to new installs / after erasing the settings.

The Heltec V4 repeater and companion (BLE) builds are the OLED variant (same environments as the official heltec_v4_repeater and heltec_v4_companion_radio_ble); the Heltec T114 repeater build is the variant without display. For the Heltec V4.3 there is one OLED and one TFT build each (heltec_v4_r8_… and heltec_v4_r8_tft_…); the name "V4.3 = R8" is taken from the base's commit message, so please check that your board is an R8 before flashing.

The LilyGo T-Echo build covers only the LilyGo T-Echo companion (BLE), not the T-Echo Lite or T-Echo Card.