- Engine-independent backup files (zip with calls, events and metadata as JSON) written from a single read
transaction on a background thread; restorable into any supported database type.
- Automatic backup interval and number of backups to keep in the database preferences; the oldest backups
are deleted after each backup.
- Backup list with Back Up Now, Restore and Delete. A restore runs in one transaction on the database thread
after making a pre-restore backup; missing recordings are marked deleted and in-progress calls interrupted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- EventManager collects decode events from all channels (tracked by identity, re-checked for in-place updates)
and saves/broadcasts EventRecord snapshots for the Events tab and future API subscribers.
- Schema version 3: events and event_patched_talkgroups tables; IEventRepository/EventRepository for H2,
MariaDB and PostgreSQL.
- Events tab after Calls: paging, page size, talkgroup/radio alias search, category, event type, protocol,
system, details and date filters, live updates, talkgroup hold context menu.
- Aliases resolved at display time from the stored alias list name (shared IdentifierRecord base with calls,
SqlSupport filter helpers).
- Database switch transfers events; event age-off rule (default 30 days) in the database preferences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tab page size preference (50, 100, 250, 500; default 500) next to the paging controls.
Calls tab call type search filter.
- Type filter (group, patch, private, telephone, other) in the Calls search bar, applied when selected.
- CallType provides the SQL condition on the stored identifier forms, using the same rules as the Type column.
#2742 Calls tab default column order puts protocol, system, site and channel at the end.
#2742 Call type test.
#2742 Calls tab shows the call type: group, patch, private or telephone.
- CallType is derived from the stored TO and FROM identifier forms, so existing calls have a type without a schema
change. Telephone interconnect calls (telephone number TO or FROM) show as Telephone.
- Calls tab: Type column.
#2742 Patch group calls store their patched talkgroups so a talkgroup search finds the calls it was patched into.
- Schema version 2 adds the patched_talkgroups table (call id, talkgroup, fully qualified address), deleted with
the call. Existing version 1 databases are upgraded automatically at startup.
- The call manager captures the patched talkgroups (they can change during the call); transfers copy them.
- TO searches by talkgroup value or talkgroup alias match the patch group and its patched talkgroups, in the
database and for live calls.
- Calls tab: Patched column lists the patched talkgroups with their current aliases.
#2742 Calls tab replays recordings through the audio channels.
- Replay uses the sdrtrunk audio output and channels instead of a separate JavaFX media player: an idle channel
(left first), otherwise the left (or mono) channel, which drops the live call it is playing. Live calls aren't
assigned to a replaying channel and queued calls play after the replay.
- RecordingReader decodes MP3 (LAME decoder; MPEG-2/2.5 frame size fix) and WAVE recordings to 8 kHz audio.
- ReplaySource supports pause, seek and stop; the Calls player keeps its controls and auto-play next.
- Playback events and the Calls tab Playing column show replays (history icon); the audio panel shows REPLAY.
- Playing row channel edge is drawn as a background layer so the row's cells stay aligned with other rows.
- HikariCP and MariaDB driver logging limited to INFO.
- javafx.media removed from the runtime image modules.
#2742 Calls tab shows which calls are playing on each audio channel.
- Audio segments have a unique id, which the call manager uses as the call key.
- Audio channels report the call they start and stop playing; the audio playback manager publishes these as
ChannelPlayback events (re-wired when the output device changes) with a snapshot for late listeners.
- Calls tab: Playing column with a LEFT/RIGHT/MONO chip and a channel-colored row tint and edge for calls that are
playing. Calls reloaded from the database keep their call key so a call that ended but is still playing stays
marked.
- Audio panel channel tags use the same colors (left/mono blue, right orange).
#2742 Replace AudioRecordingManager with CallManager and CallRecorder.
- CallManager (new call package) is the single audio segment listener for calls. It manages each call's
life-cycle: creates and updates the call record, saves it to the call database and broadcasts it to call
listeners (Calls tab, future external subscribers).
- CallRecorder (record package) holds the streaming recording logic and file naming. The call manager creates one
CallRecorder.Recording per call, which fills in the recording details of the call record.
- DatabaseManager remains storage only. No behavior change.
#2742 Record all calls by default; delete duplicate and Do Not Monitor calls after a retention period.
- Record preferences: 'Record all calls' (default on). When off, only calls with an alias record option are
recorded, as before.
- Duplicate calls are no longer discarded immediately. Duplicate calls, and Do Not Monitor calls that no alias marked
for recording, are deleted with their recordings after a configurable retention period (30 minutes to 7 days, or
never; default 1 hour) set in the Call Database preferences. Calls store whether an alias requested recording.
- The duplicate call 'Recording' suppression switch is replaced by a note pointing to the retention setting.
- Age-off runs every 5 minutes.
#2742 Calls store the alias list name and look up TO/FROM aliases from the current alias list.
- The calls table no longer stores TO/FROM alias names. It stores the alias list name, the TO/FROM identifier
forms and the fully qualified (roaming) addresses, and the Calls tab looks up the aliases in the current alias
list when it displays a call, so historical calls show the latest alias values.
- AliasList lookups by protocol, value and fully qualified address, sharing the identifier matching rules.
- TO and FROM search fields drop down a filtering list of talkgroup or radio aliases. Selecting an alias filters by
the alias's alias list and its talkgroup/radio values, ranges and fully qualified identifiers. Typed text still
matches the identifier. The alias search field is replaced by a talker alias search.
#2742 Call database, Calls tab, call audio age-off and talkgroup hold.
- Call database: built-in H2 (application 'db' folder) by default, with optional MariaDB or PostgreSQL. The
sdrtrunk schema and tables are installed and versioned automatically. Engine differences are isolated in
IDatabaseDialect implementations and call storage behind ICallRepository.
- Switching databases asks whether to transfer the existing calls and, when the target schema already has
sdrtrunk calls, whether to append, clear, or create a separately named schema.
- Every call gets a database row when it starts, updated as identifiers change and when the call completes.
- Call recordings are written while the call is in progress (streaming MP3/WAVE), so the recording file and its
name are stored with the call from the start. MP3 ID3 metadata is rewritten in reserved space at the end.
- Calls tab after Now Playing: search by talkgroup, radio, alias, protocol, system and date range, live
duration of calls in progress, built-in recording player with auto-play, context menu to hold a talkgroup.
- Call Database preferences: database selection, test connection, and age-off rules (age and total size),
each deleting the call and recording or only the recording. The status bar recordings meter uses the size
rule limit when enabled.
- Talkgroup hold: Hold button on each audio channel steers the held talkgroup (and patch groups that include
it) to that channel, keeps other calls off it, plays it even when do-not-monitor, with an optional idle
auto-release in Playback preferences.
- JmbeAudioModule synthesizes from host corrected frames (jmbe-api CorrectedIMBEFrame/CorrectedAMBEFrame) when the
codec is IAudioCodecV3, and falls back to the raw frame bytes for JMBE version 1 and 2 libraries
- LDUMessage, P25P2 AbstractVoiceTimeslot, DMR VoiceMessage and NXDN Audio cache their corrected voice frames
- P25P1, P25P2, DMR, NXDN audio modules and MBECallSequenceConverter only correct frames when the codec supports it
- DMR queued voice frames carry the optional corrected frame
- Error correct MBE voice frames in sdrtrunk and synthesize with JMBE V3 codecs
Co-authored-by: denny <dennis.sheirer@gmail.com>
Decoder activity summaries used tab characters in a proportional-font text area, so talker alias and other
listings misaligned when values were shorter or longer. Adds a shared ActivitySummary builder (title, sections,
aligned label/value fields and auto-sized tables) used by every decoder, and shows the details in a monospace font.
Co-authored-by: denny <dennis.sheirer@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
On sparse channels, noise false syncs accumulated across long idle periods
and permanently locked the sync mode monitor to the wrong mode (ie
DIRECT_ONLY), so the repeater's base station syncs were never detected
again until the channel was restarted.
- Only sync detections that follow a previous sync within the max sync
interval are counted toward the sync mode.
- Restore AUTOMATIC sync mode after 5 seconds without a sync detection,
unless the mode is locked (ie BASE_ONLY for traffic channels).
Co-authored-by: denny <dennis.sheirer@gmail.com>
* Removes the FlatLaf, JIDE, MigLayout and jiconfont-swing dependencies; the runtime image no longer includes javafx.swing.
* Removes the Swing channelizer developer viewers and the Swing spectrum panel; the symbol, sync and filter debug viewers are plain JavaFX windows.
* ChannelMapModel is no longer a Swing list model; removes unused Swing color menu items and models.
* Removes the Swing image methods from the icon classes; icons load as JavaFX images.
* Themes no longer use FlatLaf: each theme stores its palette and ThemeManager styles JavaFX only.
* The channel auto-start countdown, the event and message filter editor and the alias and deadlock alerts are now JavaFX. The main window only stores split pane divider positions after the user drags a divider.
* Main window converted to JavaFX, with a spectrum and waterfall display that can be hidden.
* A hidden spectrum and waterfall is disposed so that it uses no processing or memory. Show or hide it from the View menu, Ctrl+Shift+S, the display settings panel or the bar shown while it is hidden.
* Streaming status panel converted to JavaFX with status chips, a summary, configurable columns and a shortcut to the streaming editor.
* BroadcastModel is no longer a Swing table model.
* Audio panel converted to JavaFX and redesigned as a prominent playback display at the top of the main window.
* Mono and stereo outputs show one display per channel with the TO alias, icon and color, the FROM radio, system/site/channel, elapsed time, a level meter and per-channel mute. The master section has mute all, volume and audio device settings.
* Renames JavaFxWindowManager to WindowManager and removes its standalone launcher and the remaining Swing-era comments.
Co-authored-by: denny <dennis.sheirer@gmail.com>
- New FrequencyControl replaces JFrequencyControl: MHz to 1 Hz, hover a digit and scroll or click its upper/lower half to step it (with carry, clamped to the tuner's range), or type a frequency (e.g. 851.0125) and press Enter. Arrow keys move between digits and step them. Copy/paste supported.
- Tuners tab redesigned: tuner list with status pills and configurable columns, Add Tuner menu, and a sectioned editor (header with status, enable switch, spectrum/record/restart; Tuning; Gain; Options; Frequency Correction; collapsible Frequency Limits).
- All tuner editors converted to JavaFX with their full set of controls. RSP editors share option bindings in RspTunerEditor.
- Add recording and network tuner dialogs converted to JavaFX dialogs.
- DiscoveredTunerModel is no longer a Swing table model.
- Fixes: FCD Pro gain/phase correction loaded swapped; RSPdx saved the FM notch as the DAB notch and never applied the HDR bandwidth; RSP2 external reference output and network tuner PPM weren't saved; Airspy/HydraSDR gain mode changes now apply the mode's gains.
Co-authored-by: denny <dennis.sheirer@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Calling jvmArgs on the run task replaced the applicationDefaultJvmArgs convention, dropping
--add-modules=jdk.incubator.vector, --enable-preview and the other defaults. The splash argument is now
added through a jvmArgumentProvider.
Co-authored-by: denny <dennis.sheirer@gmail.com>
The waterfall mapped 256 palette indexes over the absolute dBFS level of the
mean bin value, about 2.5 steps per dB at a -100 dBFS floor, so weak signals
were only a few steps above the noise. WaterfallScaler now tracks the noise
floor as a smoothed 25th percentile of the bins (robust to occupied spans) and
maps a fixed 45 dB span above it, so contrast no longer depends on sample size,
DFT size or tuner gain. The classic palette's flat blue blocks are replaced
with a blue ramp over the bottom quarter, where the noise floor now sits.
Co-authored-by: denny <dennis.sheirer@gmail.com>
The copy handler matches KeyCombination.SHORTCUT_DOWN, which is Meta on
macOS, but the test always fired Ctrl-C, so nothing was copied on the Mac
CI runner.
Co-authored-by: denny <dennis.sheirer@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ComplexMixerFactory logged an unrecognized implementation warning when calibration had not been run (e.g. CI) before falling back to the scalar mixer. All SIMD component factories now map UNCALIBRATED to the scalar implementation explicitly.
Co-authored-by: denny <dennis.sheirer@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The JavaFX Now Playing tables lost the Swing JTable copy action, so Ctrl-C
in the Events and Messages tabs did nothing. The history table now allows
selecting several rows and copies them to the clipboard, one line per row
with the visible column values separated by tabs, as the Swing table did.
Fixes#2687
Limit automatic renaming to the existing managed group. Keep exact-match user aliases outside that group unchanged without creating duplicates, while retaining confirmation and multi-identifier protections for managed aliases. Explain moving aliases out of the group in the tooltip and cover custom, ungrouped, managed and moved aliases in regression tests.
#2672 Bounds the polyphase buffer queue by sample duration instead of buffer count
The polyphase buffer processor queue was capped at 500 native buffers, which is only about 85 ms of samples for an RSP at 6 MSPS (about 1,000 samples per buffer) versus about 6.8 s for an RTL-SDR (32,768 samples per buffer). Short processing stalls overflowed the queue and dropped buffers on RSP tuners.
- Dispatcher: adds a weight-bounded queue option (element weigher plus an adjustable maximum queued weight). Elements count toward the weight until the listener has processed them.
- PolyphaseChannelManager: bounds the buffer queue at 1 second of samples and updates the bound when the tuner sample rate changes.
- RspNativeBuffer: sampleCount() returned twice the complex sample count. This also corrects the tuner sample drop monitor and the spectral display buffer manager for RSP tuners.
Co-authored-by: denny <dennis.sheirer@gmail.com>
#2681 Map tab as a JavaFX component
Replaces the Swing JXMapViewer map with a pure JavaFX canvas tile map in gui/map:
OpenStreetMap tiles with a memory and disk cache, track, Radio Reference site and
user location layers, the site hover card and context menu, and the map controls.
Removes the bundled SwingX map viewer copy and moves GeoPosition to the map package.
Co-authored-by: denny <dennis.sheirer@gmail.com>
* #2660 Now Playing panel with events and messages are all recreated as JavaFX panels
* #2660 Talker alias cleanup across the decoders
* #2660 Talker alias cleanup across the decoders
---------
Co-authored-by: denny <dennis.sheirer@gmail.com>
All 64 entries with bit 15 set differed by an XOR of 0x0060 from the
codewords derived from the generator matrix in TS 102 361-1 table B.12, so
error-free EMBs for colour codes 8-15 were flagged invalid by the hard
decoder and "corrected" by the soft decoder. Single bit errors in those
codewords, though within the correction capability, were reported as
uncorrectable for 13 of the 15 bit positions (87 %).
Co-authored-by: modificaz <jpmetal@freemail.gr>
* Add network tuner dialog
* wip: network tuner configs
* wip stash
* working tcp solution
* fix copyright headers
* fix: resolve rebase conflicts from jRTL library changeover
- Drop redundant JFrequencyControl digit-sizing fix now that upstream
fixes the same issue via setColumns(1)
- Mark SUPPORTED_NETWORK_TUNERS final to match the new EnumSet style
- Replace removed SampleRate.getClosest() with a local nearest-match
helper in NetworkTunerEditor
* Add mise config
Same /api/call-upload flow as Rdio Scanner, with its own configuration and
playlist editor. Reuses RdioScannerBroadcaster.
Co-authored-by: Michael Chambers <michaelchambers@Michaels-Mac-mini.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
Some radios set the encryption flag in the service options of the LDU1 Group
Voice Channel User link control while transmitting clear voice; the HDU and
LDU2 encryption sync parameters report ALGID 0x80 (unencrypted) for the same
call. Example (CoMIRS Boston, TG 2217, valid LCs from several radios):
HDU TALKGROUP:2217 UNENCRYPTED
LDU1 GROUP VOICE CHANNEL USER FM:64008 TO:2217 SERVICE OPTIONS:PRI4 ENCRYPTED CIRCUIT
LDU2 UNENCRYPTED
P25P1DecoderState broadcast State.ENCRYPTED for each such LDU1 and State.CALL
for each LDU2, so the channel state flapped between CALL and ENCRYPTED (and on
upstream, where ENCRYPTED cannot change back to CALL, the call stays muted).
Track the per-call encryption state from the HDU header and LDU2 algorithm ID
(reset at TDU/TDULC). When it is known to be unencrypted, clear the encryption
flag on the LC service options before using them for the channel state and
traffic channel call event. Genuinely encrypted calls are unaffected, and when
the algorithm ID is not yet known (late entry before the first LDU2) the LC
service options are used as before.
Adds VoiceServiceOptions.createUnencrypted(ServiceOptions) to copy service
options with only the encryption flag cleared.
Verified by driving P25P1DecoderState with HDU/LDU1/LDU2/TDU sequences
reproducing the field logs: state events go from C C C E C E C to all CALL;
encrypted calls (ALGID 0x84) still report ENCRYPTED throughout.
Claude-Session: https://claude.ai/code/session_01FRdfTvgcdBvwkipdfP8qxy
(cherry picked from commit 2ef3c9d02176871577d38f8afd0fa3c32fb92a58)
Co-authored-by: Claude <noreply@anthropic.com>