Repository navigation
Releases
Releases · makrohard/LoRaHAM_Daemon
v1.7.2
- Fix: a
MANAGEDTX waiting for a free channel no longer cuts off a frame that is still arriving. Since
0.9.0 each CAD probe of the wait stopped the receiver before it looked and kept only a frame that had already
completed, so while a TX waited the station lost the frame that kept the channel busy (every client that sends
withMANAGEDTX, andGET CHANNEL). A frame in progress now answers BUSY with reception left running, and
the frame is received as usual; the TX waits as on any busy channel (CADWAITunchanged).- SX1262: a preamble or a valid header latched without RxDone. LoRa RX now also latches PREAMBLE_DETECTED in
the IRQ status (the RX interrupt still fires on RxDone only); FSK RX is unchanged. - SX127x: RegModemStat signal synchronized or header valid, unless RxDone is already latched. "RX on-going" is not
used: on sx1276 boards it reads set on an idle channel all the time the receiver runs. - Trusted for at most the airtime of a 4-byte frame until a valid header, and of a 255-byte frame after it,
from the first sighting; then the probe scans as before, at every probe, until the chip shows no frame once.
A status that stays set can therefore not keep the channel BUSY. - Not covered: a frame whose first symbols arrive before the chip reports the preamble (SX127x, measured at
SF8/BW125 with an 8-symbol preamble: a probe 24-47 ms after the frame's start still cut it in 8 of 19 early
probes; signal synchronized never set on an idle channel), or during the CAD scan itself. Where the 255-byte
airtime exceedsCADWAIT(SF12), a stale latched header ends the waiting TX asCHANNEL_BUSY, as a real frame
of that length does. On SX127x, signal synchronized or header valid that flapped on and off on an idle channel
would keep theMANAGEDTX from keying again: the hold-off covers only a status that stays set (neither bit
set on an idle channel in the measurement).
- SX1262: a preamble or a valid header latched without RxDone. LoRa RX now also latches PREAMBLE_DETECTED in
v1.7.1
- A failed per-pin lgpio operation (claim input/output, claim alert, alert function set or clear, write,
read, free) now names the lgpio call, the pin, and lgpio's error text and code, e.g.
[RADIO] FATAL: lgGpioClaimInput failed (pin 19: GPIO busy, -79) - aborting to prevent unsynchronised radio I/O
(1.7.0:lgGpioClaim* failed). The gpiochip-open and no-open-handle messages are unchanged. Exit codes, and
which failures are fatal, are unchanged.
v1.7.0
- Build change: RadioLib 8.0.0 (
72be77dafe64, was187ef24791c3). A source build needs that checkout
(docs/hardware.md); RadioLib 7 no longer builds. Protocol, settings and their values are unchanged. - SX1262 LoRa: the packet RSSI is RadioLib 8's average over the packet (RssiPkt, RadioLib #1913), not the
despread signal RSSI, so received frames report a different RSSI. - SX127x FSK: a frame with a bad CRC is now presented by the chip and dropped by the daemon (RX re-armed); it
counts inrx_dropsand the rate-limitedRX read errorline. 1.6.x: the chip discarded it unseen. - SX1262 FSK at 0.6 and 1.2 kbps: Semtech's GFSK register workaround is applied (RadioLib 7 never applied it).
- Frequency register 1 LSB lower at: SX127x 869.525 MHz (61 Hz); SX1262 439.9125, 869.4625 and 869.525 MHz
(0.95 Hz), from RadioLib 8's integer frequency math. Every other tested frequency is unchanged.
v1.6.2
- CONF:
SET CADSYM=<1|2|4|8|16|AUTO>,SET CADPEAK=<1..254|AUTO>,SET CADMIN=<1..254|AUTO>set the SX126x CAD
symbol count,detPeakanddetMinforGET CHANNELand theMANAGEDTX gate, through RadioLib's
scanChannel(const ChannelScanConfig_t &). SX127x answersERR INVALID. - Behaviour change: SX126x CAD at BW 125 kHz:
AUTO(the default) is a per-SF table, 4 symbols,detMin10,
detPeakSF8 23, SF9 27, SF10 27, SF11 28, SF12 31 (RadioLib: SF+13). RadioLib's value read the idle noise floor
as busy from SF8 up, soMANAGEDTX was refusedCHANNEL_BUSY. SF7 and every other bandwidth keep RadioLib's
default. At one SF,SET CADPEAK=<SF+13>gives the old scan. GET STATUS: three fields at the end,CADSYM=CADPEAK=CADMIN=(the values the next scan uses;AUTO=
RadioLib's own default;-on SX127x, in FSK and without a radio).
v1.6.1
- Log: a queued TX refused by the worker's CAD check (
TXQUEUE=1) prints[TX868F] DATA TX aborted: <result>
(433:TX433F), as the unqueued path does under the band tag; a framed-data frame error prints
[TX868F] DATA frame error: <msg>. Protocol unchanged.
v1.6.0
- CONF: a radio health change is sent to every CONF client as
RADIO=<state>(theSTATUS RADIO=names). A client
that reads only replies must skip it, asTX=/CAD=/RSSI=; MeshCom's bridge needs v0.3.1. - Chat: a
TX=/CAD=/RSSI=/RADIO=line before the daemon's reply is skipped, not read as the reply.
v1.5.0
- USB sticks: new option
--radio-error retry|exit. Behaviour change: the default on a USB stick preset is
retry: an I/O error with the stick still present, or a failed set-up after a replug, closes the stick and opens it
again on a backoff (1 s doubling to 1024 s, then every 30 min) instead of exit 5.--radio-error exitkeeps 1.4.x.
SPI boards are unchanged (exit 5);retrythere is refused. GET STATUS: two fields afterID=,RADIOERR=(the mode) andUSBFAULT=(the faults since start,-on SPI).- CONF:
QUIT/EXITanswerOKand stop the daemon as SIGTERM does (exit 0). - CONF:
GET RADIOreports the radio parameters in effect (the last SET, else the band's default), from memory. - CONF: a line that is not a
SETand no known command answersERR UNKNOWNat once, before the radio is locked
(it waited for a transmission in flight; while the radio was not ready it answeredERR RADIO_NOT_READY). - Behaviour change:
meshstick-1262: POWER 21 and 22 need--high-power(refused without it, as an SX127x 20
is). Upgrade: start a Meshstick daemon that is to send at 21 or 22 with--high-power. - Chat: one thread draws, so a line received while typing, sending or in the menu no longer garbles the screen; a
line that could not be sent shows "not sent: daemon gone".
v1.4.2
pinedio-usb-1262acceptsPOWER0–20, the SX1262 range; the placeholder limit of 14 is gone.- Chat: its SET line no longer sends
POWER=17; the power stays as configured. Behaviour change: a chat started
against a daemon that nobody configured, by hand or by a manager that applies no POWER, sends at the band's boot
default (10 dBm). - Chat: when the daemon goes away, chat shows "daemon gone: restart chat" instead of spinning a CPU core, and a send
to the closed socket no longer kills it (SIGPIPE). - USB sticks: a diagnostic line of the USB library (the fork's 745bd067) or of the stick's close never blocks the
daemon on a full stderr and never ends or stops it (a closed or redirected stderr, a log file at its size limit,
a background terminal); a line that cannot be written at once is dropped and counted. Closing a stick waits for
the library's poll thread only up to the library's deadline.
v1.4.1
1.4.1
- A USB stick that disconnects and comes back is waited for again (the daemon died: one poll thread per applied
setting, freed under at the disconnect). The USB library is the fork's aeed7554: one poll thread per stick. - The CH341 log lines name the stick's model ("ELECROW Meshstick", "PINE64 USB LoRa adapter", "CH341 + RFM98PW
433 build") instead of "Meshstick" for every USB preset; the library-name lines are unchanged.
v1.4.0
1.4.0
--hw pinedio-usb-1262(PINE64 USB adapter, SX1262, 868) and--hw ch341-rfm98pw-433(CH341A +
RFM98PW, SX127x, 433): USB stick presets on the Meshstick's library. See docs/hardware.md.- Behaviour change:
BOUND=inGET STATUSis<serial>@<port>(-no serial,?unreadable);
the 1.3.x formsserial:andport:are gone. --usb-port Popens the stick on USB port P, whatever its serial says; it needs the libch341
build with port selection, else exit 4.- The USB library is the makrohard fork of pine64's libch341-spi-userspace (98b656bf, its selection
fixes andpinedio_init_at_port):--usb-portworks in the bundle. See docs/hardware.md. --radio 915: a third band (902.0–928.0 MHz, own sockets and lock) forpinedio-usb-1262and
meshstick-1262; every other preset refuses it.