Skip to content

mups18-4 (v1.18.0.mups4)

Latest

Choose a tag to compare

@m0urs m0urs released this 30 Nov 13:01
· 53 commits to mups18 since this release

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-4 – MeshCore v1.18.0.mups4

Custom MeshCore firmware based on IoTThinks PowerSaving-v18 (MeshCore main v1.18.0, PowerSaving-v18 commit 3957b6f4).
Full documentation: MUPS18.md

Fourth release of the mups18 line: mainly bug fixes, most of them taken from MeshCore dev ahead of an official release. Details of every point: MUPS18.md – Changed behaviour.

What is new compared to mups18-3

  • nRF52 clock jump fixed (repeater, room server; PR #3595): on nRF52 boards the clock jumped about 28 hours ahead every 48.5 days. The fix does not correct a clock that already jumped: set it once with clock sync from the app (mups allows setting the clock backwards, PR meshcore-dev#1349) or with time <epoch>. On the serial console use time <epoch>, because clock sync there has no sender time and sets 1970.
  • Fixes from MeshCore dev:
    • a login from a new identity no longer removes an admin from a full client list (meshcore-dev#3950)
    • flood ACKs: the return path is re-sent again to a node that is still flooding (meshcore-dev#3903; complements PR meshcore-dev#3260)
    • "sec patch": repeater, room server and sensor ignore echoes of their own CLI replies; CLI and text messages with invalid UTF-8 are ignored; requests get their own replay counter
    • contact names from the app are always terminated (companion, meshcore-dev#3945)
    • stack-buffer overflow in CLI reply buffers fixed (meshcore-dev#3807)
    • Heltec T096: register patch for better RX, as on the Heltec V4 / V4.3 (meshcore-dev#3835); ThinkNode M6: I2C bus freed before the RTC is probed (meshcore-dev#3926)
  • Noise floor (IoTThinks PR #36, taken ahead of PowerSaving-v18): with radio.rxps off the noise floor could drop to -120 dBm and stay there (#27).
  • Repeated sending (PR meshcore-dev#2670): port updated to the current PR state; get max.resend on the companion now also shows the resend ratio.
  • Packet filter (repeater):
    • filter channel add <#name> hops <N> forwards a listed channel only below N hops; without hops it is blocked as before (idea from marcelverdult/meshcore_filter).
    • The channel list now also covers group data (GRP_DATA). Behaviour change: a channel that is already blocked now blocks its group data too.
    • filter path mode last: only the last path entry (the neighbour the packet came from) is compared, before the packet is marked as seen, so the same message via another neighbour still gets through. Default any = as before (idea from marcelverdult/meshcore_filter).
    • These settings are stored in the new file /filter_mups; /filter_prefs is unchanged. Without the file the filter behaves as before.
    • The advert cache holds 1024 nodes instead of 256 (filter stats advert shows cache x/1024).
    • The filter is still off by default and in dry-run mode.
      Details: docs/packet_filter_reference.md.
  • outpath (repeater) now comes from PowerSaving-v18 itself (same code as PR meshcore-dev#2586 before). Nothing changes for the user.
  • Base: PowerSaving-v18 commit 3957b6f4, among others: BLE tuning and light sleep for ESP32 companions, companion CLI command buzzer, RX power saving timer fix for SX1262, board changes.

Defaults

No changed defaults compared to mups18-3. The packet filter is still off by default and in dry-run mode: after filter on the repeater only counts what it would drop and still forwards everything; check filter stats, then use filter dryrun off to really filter.

Included

Component Source Notes
RX duty-cycle power saving (radio.rxps), powersaving (companion), 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, 3) PR #2670 port of the current PR state, with a guard for the RX power saving sleep phase
nRF52 clock / uptime jump every 48.5 days PR #3595 repeater, room server; hand port
Fixes from MeshCore dev (meshcore-dev#3950, meshcore-dev#3903, sec patch, meshcore-dev#3945, meshcore-dev#3835, meshcore-dev#3926, meshcore-dev#3807) MeshCore dev taken ahead of an official release
Noise-floor settle time after every RX start IoTThinks PR #36 taken ahead of PowerSaving-v18
Repeater packet filter (filter …) Dutch-MeshCore dmc-dev (7df3767c) repeater only, off by default; own defaults (dry-run on, advert cache 1024); own fixes: channel block by key (MAC), limiter setup; own extensions: hop limit per channel, group data, filter path mode
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 15 / 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 (set dutycycle 10, set flood.max 15, … on the repeater; rescue CLI or companion CLI on the companion).

Devices and files

Added to this release afterwards: LilyGo T-Beam 1W repeater (LilyGo_TBeam_1W_repeater) and UnitEng Station G2 repeater (Station_G2_repeater), built from the same source as the other files of mups18-4. Please read the TX power notes for these boards below.

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 (Heltec V3, Heltec V4, Heltec V4.3, Xiao S3 WIO, LilyGo T-Deck, LilyGo T-Beam 1W, Station G2) *-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.mups4 (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.