I have released mups18-5 of my custom MeshCore firmware. It moves to a newer PowerSaving-v18 base, brings the packet filter and the repeated sending of direct packets up to date, and adds a few things for repeater operators.

Use at your own risk. The firmware may contain bugs and I accept no liability. Make a backup before flashing if you can, and back up the device’s private key first. Without it a device gets a new identity after a full erase or a change of firmware.

A newer base

mups18-5 is built on IoTThinks PowerSaving-v18, commit 3f3df500. Among other things it brings battery-controlled forwarding (battery), radio.fem.rxps for the Heltec V4.3, changes to RX power saving and a charge LED on the T1000-E. PowerSaving-v18 now ships a packet filter of its own. I have switched it off, because mups keeps the Dutch-MeshCore filter and both use the filter command.

Repeated sending (PR #2670)

The port follows the current state of the pull request. max.resend now defaults to 2. A waiting resend is only cancelled when a copy is heard further down the path, and it is never forced onto a busy channel. Two new repeater commands, get resend.hops and get resend.late, show what happens for each next hop.

Packet filter

The filter is updated to Dutch-MeshCore e10bd6e3. The advert limiter now handles 2048 nodes, and there are private watch channels, allow exceptions for senders, a minimum SNR and more flexible rule patterns.

New is a hop filter, taken over from marcelverdult/meshcore_filter. It blocks floods by the repeaters they came through:

filter hop add a1b2c3

This ignores floods heard from that neighbour, while the same message arriving over another path is still accepted. Please note that filter hop and filter hops are two different commands: the second one limits how far a packet type may travel.

You can also block a channel by its hash byte (filter channel add hash 0xNN) if you know neither its name nor its key. There are only 256 possible values, so this can easily hit other channels too.

The filter is still off by default, and dry-run is on. After filter on it only counts, until you enter filter dryrun off.

Mesh clock sync

A repeater without GPS or a battery-backed clock starts with a wrong date after a power loss. With clock mesh on it can set an unset clock from the signed adverts it hears. This comes from Dutch-MeshCore and was written by ElektroVodka. It is off by default.

Updating

Your settings are kept when you update, so the new defaults only apply to new installs. If you want them on an existing device:

set max.resend 2

and on a repeater:

set flood.max 12
filter advert 120
filter age 60

New installs also start with a short channel list in the filter (#bot, #bots, #test, #ping, #wetter below 3 hops, #wardriving blocked). The release notes have the commands to add it to an existing repeater. If you have sender or text rules containing one of the characters [ { | \ $, check them, as their meaning has changed.

What about MeshCore 1.19?

mups18-5 is still based on MeshCore 1.18.0. Some fixes that are part of 1.19.0 have been included since mups18-4. I plan to move to 1.19 once there is a PowerSaving release based on it.

Documentation

The documentation has been reorganised. MUPS18.md is now a much shorter overview, with separate documents for the additional commands, the packet filter including path filter examples, and diagnosing receive errors and resends.

Download: mups18-5 on GitHub

As always, most of this is the work of others: the MeshCore team, IoTThinks, Dutch-MeshCore, ElektroVodka, marcelverdult, usrflo, AkkerKid, ACETyr and everyone who reported problems. Thank you.

MeshCore V1.18.0.mups5 is out: A New Hop Filter, Mesh Clock Sync and an Updated Base
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *