Push Tracker
ria-toolkit-oss/tests/agent
J jrhughes003 b6b52bf3c9 feat(usrp): continuous-streaming rx() for gapless agent capture
The agent capture loop calls sdr.rx(buffer_size) per chunk. USRP inherited the
base rx() → record(), which issued start_cont/stop_cont and slept 0.1s EVERY
buffer. At 2.5 MSps that captured ~1.6 ms of IQ per ~100 ms — heavily gapped,
transient-laden, and zero-filled on timeout, which rendered as choppy/black
bands in the spectrogram.

USRP.rx() now keeps a single continuous stream running across calls:
- issues start_cont once (lazily, on first rx()),
- recv()s until the request is filled, carrying any over-read into a residual
  buffer so nothing is dropped between rx() boundaries (gapless),
- tolerates overflow (samples still valid), treats repeated timeouts as a
  disconnect, and stops the stream on close().

Hardware-free tests stub uhd and prove gaplessness, single start, overflow
handling, timeout->disconnect, and stop cleanup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 10:54:23 -04:00
..
__init__.py Add changes for screens agent connections. 2026-04-13 11:48:15 -04:00
test_cli_install_udev.py feat(agent): agent-owned device discovery, identifiers, and udev install 2026-06-05 10:03:14 -04:00
test_cli_register_errors.py feat(agent): default ria-agent register --hub to https://riahub.ai 2026-06-01 13:05:11 -04:00
test_cli_tx.py format fixes 2026-04-20 13:51:15 -04:00
test_config.py Pluto TX streaming functionality base 2026-04-16 11:13:43 -04:00
test_disconnect.py Pluto TX streaming functionality base 2026-04-16 11:13:43 -04:00
test_full_duplex.py tx_race_condtion_fix 2026-04-16 15:38:35 -04:00
test_hardware.py fix(agent): don't probe SDR hardware while a session is active 2026-06-05 10:41:02 -04:00
test_integration_tx.py format fixes 2026-04-20 13:51:15 -04:00
test_integration.py format fixes 2026-04-20 13:51:15 -04:00
test_legacy.py Add changes for screens agent connections. 2026-04-13 11:48:15 -04:00
test_param_lock_contention.py format fixes 2026-04-20 13:51:15 -04:00
test_streamer_tx.py tx_race_condtion_fix 2026-04-16 15:38:35 -04:00
test_streamer.py feat(agent): agent-owned device discovery, identifiers, and udev install 2026-06-05 10:03:14 -04:00
test_tx_safety.py format fixes 2026-04-20 13:51:15 -04:00
test_tx_underrun.py format fixes 2026-04-20 13:51:15 -04:00
test_usrp_rx.py feat(usrp): continuous-streaming rx() for gapless agent capture 2026-06-05 10:54:23 -04:00
test_ws_client_binary.py format fixes 2026-04-20 13:51:15 -04:00
test_ws_client.py format fixes 2026-04-20 13:51:15 -04:00