New channel Tx plugin modchirpmodem, built on libchirpmodem (format v1),
modelled on modpacket: plugin, settings, baseband, source, GUI, web API
adapter, readme.
- A transmission is the message's frames, separated by a gap, then a CW ID
with the source callsign. It is generated in full on a one-thread
generator pool, never on the DSP thread, and posted back to the baseband;
the source plays it out at the channel rate. A result made for an old
channel rate or offset is generated again; one on air when the rate or
offset changes is cut off and reported.
- Policy is libchirpmodem's: a licensed frame without a source callsign is
refused (EPOLICY) and CW ID above 20 WPM is rejected; no encryption
option. CW ID can be turned off in the licensed profile, with a warning in
the GUI and the report. The unlicensed profile is shown in red.
- Settings: SF, BW, payload mode, profile, src, dst, message, repeat, gap,
amplitude, CW ID and its speed. The GUI shows airtime per frame and the
largest body that fits (chirpmodem_frame_seconds, chirpmodem_max_body).
- Web API / MCP: ChirpModemMod.yaml (settings, report, actions), SWG
classes, ChannelSettings/Report/Actions and model factory entries cloned
from PacketMod (plain setters, safe in the request mapper's reset lists),
webapiutils, webapirequestmapper, webapi.qrc. Action {"tx": 1} with
optional src, dst and message for one transmission.
- Channelizer asked for 4 x BW, as chirpmodem_tx_new needs fs >= 2.2 x
(BW/2 + |IF|) and the channelizer leaves a residual offset.
Verified: FileOutput -> cm_rx 3/3 frames, +17.4 dB, 0.0 Hz; FileOutput ->
FileInput -> demodchirpmodem 3/3 in get_packets; over the air (Pluto at
-30 dB through 40 dB to an RTL-SDR, 223.58 MHz) 15/15 frames received by
demodchirpmodem, matching cm_rx on SDRangel's recording of the same signal
(+17.0 dB, -2713 Hz).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New channel Rx plugin demodchirpmodem, built on libchirpmodem (format v1),
modelled on demodselcal: plugin, settings, baseband, sink, GUI, web API
adapter, readme. Rx only.
- The channel is decimated to at least 2 x BW; the library is given the
delivered rate and the signal's residual offset in it (if_offset).
- The chirpmodem_rx handle lives in the sink and is used only on the
baseband thread under the baseband mutex. Settings changes mark it stale;
it is rebuilt once per message, never during chirpmodem_rx_push().
- Frames are copied in the callback and posted to the channel, which
forwards them to the GUI and publishes OK frames (whole MAC frame) on the
"packets" pipe.
- GUI: SF, BW, effort, auto effort, report failures, max bytes; frames table
(UTC, status, profile, src, dst, SNR, offset Hz/ppm, mode, length, text,
hex) with licensed-profile policy flag; channel spectrum.
- libchirpmodem found with find_package(chirpmodem 0.1 REQUIRED), hint
CHIRPMODEM_DIR or ~/.local; linked statically. Builds in SERVER_MODE.
Web API / MCP support:
- ChirpModemDemod.yaml (settings and report), SWG model classes, entries
in SWGChannelSettings/SWGChannelReport/SWGModelFactory, webapiutils,
webapirequestmapper and webapi.qrc.
- MCP data feed: listen to sdrangel.channel.chirpmodemdemod and decode the
MAC frame (flags, base-40 callsigns, body) for get_packets.
Verified on the 2026-10-23 OTA capture (ota.cu8 -> .sdriq, FileInput):
49/49 frames, identical to cm_rx in order, source and body; last-frame SNR
and offset match (-10.1 dB, -2651.5 Hz, -11.86 ppm).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix TX scaling bug that was costing 10dB of output power at max gain.
Improve performance on Windows to reduce overruns at high sample rates.
Add underrun stats.
Display temperature.
Improve error handling.
Move setting device settings off GUI thread. For #1522
Add a terminating LF to tracked text files that were missing a
newline at end of file. This avoids Codacy whitespace failures and
ensures text files conform to the repository line-ending policy.
Affected files were identified and fixed with the following script.
It checks all tracked files against .gitattributes, skips files marked
as binary or -text, and reports the final 32 bytes of any non-empty text
file that does not end with LF before adding the missing newline.
git ls-files -z |
while IFS= read -r -d '' f; do
attr=$(git check-attr text -- "$f")
case "$attr" in
"$f: text: unset"|"$f: text: unspecified")
continue
;;
esac
[ -f "$f" ] || continue
[ -s "$f" ] || continue
[ "$(tail -c 1 -- "$f" | od -An -t x1 | tr -d ' \n')" = "0a" ] || {
printf '%s\n' "$f"
tail -c 32 -- "$f" | hexdump -C
printf '\n' >> "$f"
}
done
Signed-off-by: Robin Getz <rgetz503@gmail.com>
POST /sdrangel/workspace/{workspaceIndex}/actions with a WorkspaceActions body whose action
is one of cascade, tile, stackVertical, stack, autostack or tab, doing what the workspace
toolbar buttons do. The one-shot arrangements switch tabbed windows off first; autostack and
tab set the corresponding option. The SWG class is written by hand to match the yaml, as the
code generator was not run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Selecting an averaging mode does nothing with averagingValue left at 1, and
its description said only "Averaging value". Say what the value is, that 1
is no averaging whatever the mode, that only the 1, 2, 5 series is
available, and what 10 and 50 are good for.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Update the legacy randomize_colors.py Swagger example to use Python 3
print syntax. The Python 2 print statements prevented Bandit from
parsing the file during Codacy analysis and caused the analysis step
to fail.
Verified that all Python files in the repository compile successfully
with Python 3.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
The MeshCore mod plugin references SWGMeshcoreModActions in
meshcoremod.cpp, but MeshcoreMod.yaml had no MeshcoreModActions
section. When swagger files are regenerated, the auto-generated
SWGChannelActions.h/cpp lose the meshcore_mod_actions member and
accessors, which would break compilation of meshcoremod.cpp.
Changes across five files:
- MeshcoreMod.yaml: add MeshcoreModActions definition (sendNow
field, matching existing hand-authored SWGMeshcoreModActions)
- ChannelActions.yaml: add MeshcoreModActions pointing to
the new section
- SWGModelFactory.h: add #include and create() registration
block for SWGMeshcoreModActions (was missing despite
SWGMeshcoreModSettings/MeshcoreDemod* being registered)
- webapirequestmapper.cpp: add channelActionsKey routing branch
for MeshcoreModActions (was completely absent)
- webapiutils.cpp: add m_channelURIToSettingsKey and
m_channelTypeToSettingsKey entries for both MeshcoreDemod and
MeshcoreMod (were missing, unlike ChirpChat and Meshtastic
which have entries for their channel types)