github liquidraver/ZephCore 1.18.3-zephcore
Firmware 1.18.3-zephcore

one hour ago

ZephCore 1.18.3-zephcore

A failed-login limit that really limits, faster and less colliding transmits on a busy channel, repeaters that
stop re-flooding damaged packets, a fix for nodes
that fell silent after 25 days, clocks that can be set back when they run fast, and a working charger on the
LilyGo T-Impulse Plus.

Note

A normal upgrade keeps your identity, settings, contacts and phone pairing.

Important

Scripts that read gps output, or set backoff.multiplier, need updating. See Command changes.


Password guessing is stopped

Repeaters and room servers counted wrong passwords but still accepted the right one at any rate. Now, after
four wrong passwords in three minutes, no password is checked
(admin or guest, right or wrong) until the three
minutes are over. Clients already on the access list still log in, as does the USB console; use either if
someone in range keeps password logins closed this way.

Guessing a message's check code is limited the same way, on every node: after four packets that claim to come
from one of your contacts or clients but fail their check within five minutes
, packets from contacts or clients
whose ID starts with the same byte are not read until the five minutes are over.

Busy channels: fewer collisions, shorter waits

  • Retries spread wider. A node that finds the channel busy now waits one of 10 short steps (about 12 ms each
    on default settings) instead of one of three long ones, counted from the end of the packet it heard. Neighbours
    that waited out the same packet no longer transmit on top of each other.
  • Repeaters forward sooner. The random hold of up to 2 s before a forward is replaced by the same short step;
    repeaters with many neighbours use up to 64 steps. On a busy roof repeater the delay per hop fell from 2.6 to
    2.1 s with no more collisions.
  • SX1262 boards check the channel for the right length. Since 1.16.5 they listened 16 symbols instead of 4
    before transmitting, which was slow and could miss a packet at SF9 and above.
  • Adaptive CAD and the noise floor are steadier. Packets the node hears but cannot decode no longer count as
    false alarms, and brief false dips no longer pull the noise floor down by 3 dB.
  • SX126x nodes with rxduty on receive and forward more on a busy channel. A transmit no longer waits for the
    radio to wake from its listening sleep, which made it start just as the radio began catching the next packet.
  • A long burst of traffic no longer restarts the radio. The stuck-radio restart now waits for 10 s without
    a completed packet.
  • A packet held back by a busy channel keeps its place in line. It used to go behind packets queued after it,
    so the one that had waited longest went out last.
  • No more endless waits on a busy channel. A packet that listen-before-talk has held back for 15 s is sent
    anyway, while the app on the other end still waits for it (set cad.ceiling, 5-59 s). A packet the node is
    receiving at that moment still goes first.

New get lbt.stats shows how listen-before-talk is doing;
the lbt_logging.conf build option logs every transmit attempt, with how full the send queue is.

Repeaters stop re-flooding damaged copies

LoRa's checksum lets some errors in the last two bytes of a packet through. A repeater cannot tell such a copy is
damaged, and because its bytes changed it looks like a new packet, so the whole mesh used to flood it again: on a
busy repeater about one forward in ten was a copy nobody could read. Now a repeater does not forward a copy that
is a few bits off a packet it has just forwarded
and has heard at least twice. Every packet is still forwarded
once. get twin.guard shows how many copies were held back; set twin.guard off turns it off.

LilyGo T-Impulse Plus

The battery now charges on USB without LilyGo's firmware first, the wristband no longer restarts every few
minutes on USB (which dropped Bluetooth), and the GPS is switched on rather than off.

A clock that runs fast can be set back

Node clocks run a little fast: a second or two a day on most boards, and up to about 40 s a day on an ESP32 with
powersaving on. Until now the app and the CLI could only move the clock forward, so a fast node stayed ahead
and the app kept asking to fix the clock. Now an earlier time is accepted from the app's time sync, time
and clock sync: the clock runs at 11/12 speed until it matches instead of jumping back, so adverts, logins and
replay checks keep working on the way. A minute ahead is gone in 12 minutes, an hour in 12 hours. GPS and mesh
time sync correct a fast clock the same way; before, they set it back in one jump, which made the node's
adverts and logins look like replays to the nodes that had heard it. A time before the firmware's build date is
still refused, and clkreboot still resets the clock at once. The app may keep showing its clock hint until the
clock has caught up.

New role: forwarder (two radios, one node)

A board with two LoRa radios can join two MeshCore networks on different radio settings, such as two neighbouring
countries, replacing a Linux host running meshcore-forwarder with two radio boards. It forwards, never repeats:
a packet heard on one radio may go out on the other, never back on its own. Both sides share the identity, logins,
regions and neighbour list; each radio has its own settings (set freq.a, set freq.b, or freq.peer over remote
admin). fwd rules choose what crosses by route, type, region, channel and hops; a new forwarder carries nothing
until you add them. A repeater reflashed as a forwarder keeps its identity, logins and regions. Build with
boards/common/forwarder.conf plus the second radio's conf (RAK4631 + RAK13300:
boards/nrf52840/rak4631/rak13300.conf); not in the release downloads yet. See FORWARDER.md.

Fixes

  • A node no longer falls silent after 25 days. If every transmit had gone out at the first try for 25 days,
    it stopped transmitting (and later receiving) until a reboot. Quiet repeaters and long-running companions were
    at risk.
  • Idle nodes sleep longer: no more waking every 5 s after a burst of repeated packets.
  • Duty-cycle budget refills exactly; it could come back almost empty after days without a transmit.
  • Only real LoRa bandwidths are accepted (7.8 to 500 kHz, limited to what the radio supports). A value such
    as 42 or 100 used to be saved while the radio ran at 125 kHz; a node with such a value starts on defaults.
  • SF8 / 15.6 kHz now works between SX1262 or LR2021 boards and the rest of the mesh.
  • LR2021 boards send the right packet again. Each time the channel check found the channel busy, the radio
    kept the unsent packet, and every later transmit sent an older packet instead of the current one, until a
    restart. A repeater forwarded stale packets and a companion's messages went out late or not at all.
  • SNR in quarter-dB steps on SX1262, LR1110 and LR2021 boards (it read up to 0.75 dB low).
  • LR1110 and LR2021: never transmit when the channel check fails; receive duty cycle keeps its margin on
    fast presets.
  • LR1110 receive duty cycle: the radio holds its interrupt line low while it sleeps (firmware 0x0306 and
    later), so a floating line can no longer look like a packet and cut a listen window short.
  • LR2021 boards with a crystal (Meshnology W12, Seeed LR2021 EVK) now correct the crystal's warm-up drift
    while transmitting, which keeps long packets on frequency. Boards with a TCXO are unchanged.
  • Seeed LR2021 EVK runs the radio on its DC-DC converter instead of the LDO, as Semtech's reference
    configuration for the Wio-LR2021 module does.
  • LR2021 transmit power below 22 dBm follows the setting. The power table is Semtech's current one: with the
    old table, set tx 13 sent about as much as 12, and 14 to 16 dBm all came out alike. The LR2021 radio
    software and its firmware patch are Semtech's latest (driver v2.1.0, patch 0x16). 22 dBm is unchanged. The
    2.4 GHz table is Semtech's current one too.
  • Heltec receive workaround (0x08B5) now survives radio sleep.
  • Companion: the app's airtime factor is limited to 0–9, as set af is.
  • Companion: when a contact you already have a route to keeps answering by flood, the companion sends it
    the route again, as MeshCore always meant to. The check never fired before, here or in MeshCore.
  • tempradio takes at most 35000 minutes; longer times never reverted.
  • Lower power when off or idle: RAK4631 and RAK3401 1W switch off WisBlock slot power on poweroff (about
    30 mA to 1.3 mA with GPS, as measured by MeshCore); the unused radio on RAK3401 firmware on a RAK4631 core
    sleeps; e-paper controllers on T-Echo and ThinkNode M1 sleep while the screen is off.
  • INA219 power monitors draw about 4 µA between telemetry readings instead of about 0.6 mA: the chip is
    powered down after each reading (about 6% of a XIAO nRF52840 solar repeater's draw). Thanks to ha5la
    (@ha5la) for finding, measuring and fixing this.
  • Room server: a login no longer lowers a member's or admin's role. A mistyped password on a room with
    allow.read.only on used to turn an admin into a read-only guest; lowering a role is setperm's.
  • KISS modem: an EncryptData plaintext over 184 bytes is refused instead of overwriting memory.
  • ESP32-C6 repeaters and room servers keep their USB console after reboot. It stopped answering until the
    board was unplugged (LilyGo T-Lora C6, XIAO ESP32-C6).
  • Wi-Fi (observer, MQTT uplink, Wi-Fi companion): after the access point goes away, the node reconnects on its
    own with short, then growing pauses, instead of every 5 s.
  • Observer: reports its real noise floor and receive airtime to MQTT; it sent 0 for both. It also runs the
    radio's receiver watchdog and temperature recalibration, as repeaters do.
  • MQTT status (observer and repeater uplink) now carries packets_recv and packets_sent, so CoreScope
    shows the receive-error rate for ZephCore nodes.

New

  • KISS modem protocol 2: GetCapabilities, SetRxBoostedGain and SetFemState, as in MeshCore. The AGC
    interval commands answer Unsupported.
  • SenseCAP Solar: set leds.brightness <0-100> dims the heartbeat LED; new nodes start at 10 %.
  • GPS anti-spoofing guard as a build option (CONFIG_ZEPHCORE_GPS_GUARD, off in release builds): rejects
    implausible fixes, fences repeaters to gps fence metres of their location, and only lets trusted fixes set the
    clock. Commands: gps guard, gps fence, gps ref.

Command changes

Details in CLI_commands.md.

Command Change
gps Now as in MeshCore 1.18: > on, waiting, 7 sats 3m ago, periodic (300s); replies OK / Error, ...
gps fix, gps once, gps period <time>, gps fix_stats New (gps period is MeshCore's name for set gps duty)
get/set advert.loc New, MeshCore's name for gps advert (both work)
gps firstfix [<time>] New: how long the GPS searches after it was off before giving up (default 5 min, 0 = until a fix)
get/set ble.name New on companions: a Bluetooth name of your own instead of MeshCore-<name> (after a reboot)
get lbt.stats New; clear stats resets it
get/set cad.ceiling New: seconds before a packet held back by a busy channel is sent anyway (5-59, default 15)
get/set twin.guard New on repeaters: damaged copies of a packet already forwarded are not flooded again (default on); get shows how many were held back
get txdelay Shows the neighbour estimate and number of steps
time <epoch>, clock sync Accept an earlier time and slew the clock back to it (OK - clock slewing back <n> s); only a time before the firmware's build day is refused
get/set backoff.multiplier Removed; a saved value is ignored
Remote CLI on a companion Can run the gps commands, get/set adc.multiplier, get/set ble.name and get/set buzzer, as in MeshCore

Don't miss a new ZephCore release

NewReleases is sending notifications on new releases.