Repository navigation
Releases
Releases · LocoPanel/loconet-gateway-releases
v2.2.0-beta.1
Changes since v2.1.0
- Releases: tags with a hyphen are prereleases that testers can install
A tag such as v2.2.0-beta.1 is published as a GitHub prerelease, so it is
not "latest" and the public one-line installer keeps installing the last
stable release. build-bundle.sh points the get.sh published with a
prerelease at its own bundle, and get.sh accepts LOCONET_VERSION for any
specific release. The notes of a stable release run from the previous
stable release, betas included. - Installer: ask whether LocoNet is reached over USB serial or TCP
From a terminal, install.sh now asks which transport to use (defaulting to
what is configured), then either lists the serial devices as before or asks
for the LocoNet server address (host or host:port, validated). Choosing a
serial port, by prompt or --serial-port, comments out an active LOCONET_TCP
line so the TCP setting can't silently override it. --serial-port and
--loconet-tcp still skip the questions. - LocoNet over TCP: share the DCS52 with JMRI instead of fighting over the port
LOCONET_TCP=host[:port] makes the gateway read and write LocoNet through a
network server instead of the serial port, so JMRI keeps the DCS52 and both
run at once. LOCONET_TCP_PROTOCOL is "lbserver" (JMRI's LocoNet Server /
LbServer: RECEIVE and SEND lines of hex bytes, the default) or "raw" (a plain
byte stream, as a serial-to-network bridge gives).
The diagnostics cover it: connection refused (server not started), host not
found, unreachable, a server that does not greet like JMRI's, and a
connected but silent one; the JSON reports the transport and the server's
VERSION line. install.sh gets --loconet-tcp. - Diagnostics: say in plain words why the gateway can't reach LocoNet
Publishes retained JSON on track/gateway/diagnostics: version, a status
(ok, connecting, no-device, permission, busy, open-failed, no-answer, lost)
and a message naming the likely cause. The serial port is now opened
exclusively so a program already holding it (JMRI) is reported as busy
instead of both reading half the data; a command station that never answers
slot 0 is reported with what was heard (nothing, garbled data, other
traffic) and any JMRI process found. DIAG on the command topic republishes
with fresh counts. The version comes from a VERSION file written by the
bundle build and deploy.sh.
v2.1.0
Changes since v2.0.1
- Locomotive control: read every slot, take, drive and release locos over MQTT
SLOTS reads the command station's locomotive slots; LOCO takes a loco and
LOCO S/D/F/ESTOP/REL drive it (F0-F28; F9-F28 are DCC packets whose
state the gateway keeps).
Every loco in a slot is published retained on track/loco/status/ and kept
current from every throttle on the track.
The gateway keeps held slots alive and stops held locos on EPO or when no LOCO
command arrives for LOCONET_LOCO_TIMEOUT seconds.
v2.0.1
Changes since v2.0.0
- Remember the block detector list across restarts
- The detector list an app sends ("BLOCKS 100-114") is saved in /var/lib/loconet-gateway/blocks
and restored at startup in preference to LOCONET_BLOCKS, so after a restart a power cycle
still knows which silent blocks to publish as occupied, without an app having to reconnect
first. Delete the file to go back to LOCONET_BLOCKS. - The service unit gets a StateDirectory so this works under ProtectSystem=strict.
- The power-cycle summary logs which blocks reported and which were taken as occupied.
- The detector list an app sends ("BLOCKS 100-114") is saved in /var/lib/loconet-gateway/blocks
v2.0.0
Changes since v1.2.1
- Gateway 2.0: one command topic, retained blocks, emergency stop, BDL716 reads
- One command topic, track/cmd, for everything (was track/turnout/cmd and track/sensor/cmd).
Breaking: apps and scripts must publish there. Turnouts are still "42:T", "42:C", "42:Q";
bare "Q" refreshes detectors and bare "P" power-cycles the track. - Block occupancy is also kept per block, retained, on track/block/status/, so a client
that connects (or an app coming back from the background) gets every block's last state. - "BLOCKS 100-114" tells the gateway which sensors are block detectors, so apps configure
it; LOCONET_BLOCKS is only the starting value. The power cycle logs what it published and
warns when it has no detector list. - Emergency stop: "EPO" cuts track power at once and latches it off, refusing power cycles,
until "RESTORE". Track power is published retained on track/power/status as on, off, epo
or unknown, from LocoNet's own power messages and the command station's slot 0 at startup. - "BDL 100" reads (never writes) a BDL716's options, as JMRI does, and publishes them as JSON
on track/bdl/100/settings. "RAW BB 00 00 44" sends one read-type frame and logs what comes
back, for diagnostics. - Removed: track/sensor/status, LOCONET_SENSOR_TOPIC, LOCONET_SENSOR_CMD_TOPIC and
LOCONET_IGNORE_SENSORS (turnout-decoder feedback is simply not published).
- One command topic, track/cmd, for everything (was track/turnout/cmd and track/sensor/cmd).