feature/analog_input #12

Merged
pstruebi merged 20 commits from feature/analog_input into main 2025-12-03 11:28:30 +00:00

20 Commits

Author SHA1 Message Date
pstruebi 251c5aaa88 add temperature logging script add dependencies 2025-11-24 15:34:24 +01:00
pstruebi 580d08c002 add system temperature measurement 2025-11-20 14:29:54 +01:00
pstruebi 7c0d5405fc feat: add secondary radio status reporting and startup initialization improvements
- Expose secondary multicaster status in /status endpoint with dedicated "secondary" block containing runtime and persisted settings
- Initialize Radio 2 checkbox state from backend streaming status to reflect active state on frontend load
- Add I2C register verification after write operations with i2cget to confirm configuration
- Set ADC mixer level to 60% on startup via amixer command
- Preserve backward compatibility by
2025-11-20 14:19:18 +01:00
pstruebi 9bfea25fd2 feat: add dual-radio analog input mode with independent channel configuration
- Added "Analog" mode to audio source options alongside Demo, USB, and Network
- Implemented dual-radio support for analog inputs (Radio 1 and Radio 2) with separate quality, timing, and metadata settings
- Filter analog devices (ch1/ch2) from USB device list to prevent conflicts between modes
- Added per-radio controls for stream quality, broadcast code, assistive listening flags, presentation delay, and RTN
- Introduce
2025-11-19 12:18:50 +01:00
pstruebi 690d31559b fix demo autostart 2025-11-19 09:34:56 +01:00
pstruebi 1b744d52d8 refractori to use one common radio_init for both primary and secondary radio 2025-11-17 18:12:28 +01:00
pstruebi 572eb4b600 Merge branch 'feature/analog_input' of ssh://ssh.pstruebi.xyz:222/auracaster/bumble-auracast into feature/analog_input 2025-11-17 15:06:36 +01:00
pstruebi 25fa781c80 implement random add;
implement setting of i2c cmds on startup
2025-11-17 15:04:19 +01:00
Paul Obernesser c6b67da3d3 Fixes asound conf to record 2 streams at a time, needs the same ipc_key. 2025-11-17 14:52:33 +01:00
Paul Obernesser bbdde02a0d Fixes asound conf to record 2 streams at a time, needs the same ipc_key. 2025-11-17 14:50:06 +01:00
pstruebi f356c13b98 refactor: consolidate dual-broadcaster state management
- Removed StreamerWorker thread wrapper in favor of direct async operations with module-level multicaster instances
- Split settings persistence into primary and secondary caches (SETTINGS_CACHE1/2) with dedicated load/save functions
- Removed unused imports and simplified initialization logic by inlining worker coroutines into API endpoints
2025-11-14 16:18:58 +01:00
pstruebi d932d07e7e tune consumption of samples 2025-11-14 15:53:55 +01:00
pstruebi 204e287075 cleaned up - implementing adaptive resampling - work in progress 2025-11-13 18:02:19 +01:00
pstruebi 178f75e735 feat: configure PCM1862 differential inputs and optimize audio buffer settings
- Added PCM1862 I2S interface setup with differential input configuration via I2C
- Reduced audio buffer latency by decreasing period_size from 240 to 120 samples (5ms to 2.5ms)
- Updated buffer_size to 360 samples for both channels to maintain stable audio capture
2025-11-12 18:01:12 +01:00
pstruebi e9e5a190f6 tweak the adaptive frame dropping a little further 2025-11-11 16:16:37 +01:00
pstruebi a6e4ff9df9 fix: correct static drop threshold for drift compensation
- Changed static_drop_ms from drift_threshold_ms to 2ms for more accurate frame dropping behavior
- Removed outdated cooldown comment that no longer matches the implementation
2025-11-07 12:42:11 +01:00
pstruebi 82cbe6c1b7 refactor: simplify ALSA audio configuration and improve device detection
- Replaced complex multi-PCM asound.conf with streamlined dsnoop-based ch1/ch2 devices using matched 5ms periods
- Updated sounddevice utilities to recognize dsnoop and hw:X,Y patterns for better device filtering
- Adjusted audio input latency parameters to align with new ALSA period configuration
2025-11-07 12:37:00 +01:00
pstruebi a83ca982cf add devicetree overlay for i2s and asound.conf 2025-11-05 18:06:53 +01:00
pstruebi c0ce8eeebe add devicetree overlay for the pcm1862 2025-11-05 14:56:07 +01:00
pstruebi 72587c20cc comment out radio reset for now 2025-11-05 14:55:48 +01:00