Repository navigation
What's Changed
@manio's work:
- Hardware H.264 Codec for the Video Overlay
- Added a Sophgo CVI hardware codec backend (
overlay_hw_accel = "cvi", also probed byautoafter V4L2) for the Milk-V Duo S (SG2000/SG2002), built on the vendorcvi_mpilibraries. - Made it work with a strict car head unit that only advertises
MEDIA_CODEC_VIDEO_H264_BP: CAVLC entropy plus a patched SPS/PPS (zero-latency VUI, constrained-baseline flags), a tolerant decoder (no hard error while no picture is ready, display queue 0, longer first-frame wait), and fixed-QP rate control by default (h264_encoder_qp, else 26) instead of 4 Mbit/s CBR.AA_PROXY_CVI_RC=cbrandAA_PROXY_CVI_QPoverride this. - The official Raspberry Pi 3, 4 and Zero 2 W images now ship the
bcm2835-codecmodule, so hardware acceleration there only needs a highergpu_mem(README updated).
- Added a Sophgo CVI hardware codec backend (
- Video Overlay
- Added anchor-based positioning (9 positions:
anchor_horizontal,anchor_vertical,offset_x_px,offset_y_px).box_margin_right_px/box_margin_bottom_pxstill work and the default stays bottom-right. - Cluster and auxiliary displays can now have their own overlay file (
overlay_<id>.json, with its own text, style and TTF font, re-read live). The file must exist when the phone connects; displays without one behave as before. /overlaytakes an optional?display=<id>, supports DELETE, and has a newGET /overlay/displays; the Overlay Editor got a display selector.
- Added anchor-based positioning (9 positions:
- Bluetooth Call Audio (
bt_sco)- Fixed the mic uplink: the HU microphone is now low-passed and properly resampled to 8 kHz (plain decimation caused hiss, and 44.1 kHz sources got a wrong rate and pitch shift), and the uplink latency is kept bounded when the mic and SCO clocks drift (drops back from >60 ms to 15 ms).
- Fixed the media bridge: SCO audio is converted to the sample rate of the sink (a 16 kHz GUIDANCE sink played the voice 3x slower), the latency creep with fixed cadence is gone (
cadence_ms = 0is the new default and paces each packet by its own duration), and HU ACKs for the bridge's own DATA are no longer forwarded to the phone. - SCO links that don't carry linear PCM (transparent, mSBC/LC3) are no longer bridged. Repeated error logs are rate-limited, the HSP responder answers only AT commands, and subnormal biquad state in the enhanced resampler is flushed (slow on some ARM cores).
- USB Gadget (FunctionFS)
- Unbind of the MTP-stage gadget moved off the async worker, and FFS endpoints are no longer touched when the host never enabled the gadget. That ioctl blocked a tokio worker (
wchan=ffs_epfile_ioctl) and stopped the runtime heartbeat. An error is returned instead, so the gadget is torn down and retried.
- Unbind of the MTP-stage gadget moved off the async worker, and FFS endpoints are no longer touched when the host never enabled the gadget. That ioctl blocked a tokio worker (
- Bluetooth
bt_connect_attempt_timeout_secsis clamped to 5–20 s (0 keeps the built-in 20 s), because longer values let bluer's own timeout fire first and bring backbr-connection-busy.
- Fixes
- Fixed
aa-proxy-rsaborting on startup on low-RAM boards (e.g. aaw2b, no Wi-Fi AP and no Bluetooth since v1.2.0):rusty_h264was installingrusty_allocas the global allocator and reserving a 1 GiB arena. Now built without default features (global-alloc). Reported by @denisfrench, refs #141. - Fixed closing the SDR geometry dialog by its backdrop, and the duplicated
/sdr-ui/currentfetch. - Config field descriptions are now HTML-escaped (the
overlay_font_pathtags used to make the rest of the page bold/italic, and<subnet>/<iface>placeholders were hidden). Reported by @Deadknight.
- Fixed
- Media Tap
- Added opt-in
media_tap_keyframe_toggle(experimental): toggles video focus native→projected on tap connect for real video channels, so a client no longer waits ~65 s for the next IDR (injected displays already did this). Based on @freezed23's work, closes #142.
- Added opt-in
- Build System
- Docker binary builds no longer use io-uring (which refuses to start the real FunctionFS path) and now match the Buildroot feature flags via
CARGO_FEATURE_FLAGS; the cross-build containers use a vendored OpenSSL, applied only inside the container.
- Docker binary builds no longer use io-uring (which refuses to start the real FunctionFS path) and now match the Buildroot feature flags via
- Housekeeping
- README: overlays on cluster/auxiliary displays,
dashboard-previewexample, CVI/hardware acceleration docs. Bump version to 1.3.0.
- README: overlays on cluster/auxiliary displays,
@Deadknight's work:
- Web Interface
- Split the dashboard into pages with a left page-navigation rail (
#/<page>routes) and a separate right-hand tools rail. - Added an Overlay Editor page: visual editor for the overlay text, 9 anchor positions, colors, padding, border and spacing, with a canvas preview. It ships with Telemetry, Temperature and DTC alert templates.
- Added a Dynamic Overlay Builder: overlay text from a list of fields (dynamic REST/WS values, existing websocket topics or static text) with label, unit, decimals, fallback and color, plus LIVE/SAMPLE/WAITING/STALE badges and curl/WebSocket examples. Closes #149.
- Replaced the WASM hooks panel with a WASM Store page: Installed (upload/delete) and Discover (catalog from
aa-proxy/wasm-catalog-registry, size and SHA-256 verified before upload). - Turned the Display Margins drawer into an SDR UI Editor page with connection/profile status chips, stored vehicle profiles and a per-vehicle/per-phone profile editor with a geometry dialog.
- Added an SDR Info page (read-only viewer of the
ServiceDiscoveryResponsewith raw JSON copy/download) and a Display Injection page (web version of the companion app screen).
- Split the dashboard into pages with a left page-navigation rail (
- Overlay Data API
- Added dynamic overlay sources with per-field TTL (
{{ws.overlay.<source>.<field>}}), partial merging updates, and an authenticated API:POST/GET /overlay/dataand/ws/overlay. It is disabled (503) unlessOVERLAY_DATA_TOKEN(16–256 chars) is set. - Added the
/overlayAPI (GET/PUT, atomic write) for the companion app.
- Added dynamic overlay sources with per-field TTL (
- SDR Snapshot
- Every observed
ServiceDiscoveryResponseis now persisted to/data/aa-proxy-rs/last-service-discovery-response.json(mode 0600), andGET /service-discovery-responsefalls back to it after a restart. Thex-sdr-sourceheader says whether the answer came from memory or disk.
- Every observed
- WASM Hooks
- The hook list reports the
sha256of each hook, so the companion app can tell which version is installed. Closes #148.
- The hook list reports the
@romariofilho's work:
- Navigation Status Injection
- Added a synthetic
navigation_status_service(inject_navigation_status) for head units that don't advertise it (e.g. GAC Aion, Desay SV IC2254/49), soVehicleEnergyForecast(0x8008) from Maps is published on thevehicle_energy_forecastwebsocket topic and WASM hooks seectx.nav_channel. - Send
INSTRUMENT_CLUSTER_STARTafter the injected channel opens, like a real cluster HU, because navigation apps only start sending status after receiving it. Closes #146.
- Added a synthetic
- Bluetooth
- Added
bt_connect_attempt_timeout_secs(shorter per-attempt limit, and success only counts if the device is really connected) andbt_connect_max_delay_secs(backoff cap, 1–60 s, default 15). Closes #147.
- Added
- Bluetooth Call Audio (
bt_sco)- Added the "enhanced" SCO downlink resampler (polyphase sinc 6x upsampler with a low shelf and a soft exciter, for less metallic call voice).
- Added
bt_sco_media_bridge_start_on_timeout(do not cut into the music with silence when a voice note opens SCO) andbt_sco_hsp_responder(answer the phone's HSP control channel, so Android routes call audio to the SCO listener).
@korhojoa's work:
- WASM Hooks
- Added WASM hook uploads over raw PUT bodies, a
batterytopic input (documented as reserved), and a private WASI folder per hook, so hooks can save state.
- Added WASM hook uploads over raw PUT bodies, a
Full Changelog: v1.2.0...v1.3.0
Buildroot:
- Milk-V Duo S: added hardware H.264/H.265 codec support via the new
cvi-osdrv(out-of-treecv181x_*andcvi_vc_driverkernel modules, VPU firmwarecoda980.bin/monet.bin) andcvi-mpi(libsys/libvenc/libvdec, linked withlibatomic) packages, plus anS01cvi-vcinit script.aa-proxy-rsis built with thecvifeature whenevercvi-mpiis selected — @manio - Raspberry Pi 3, 4 and Zero 2 W:
bcm2835-codecis built as a module (V4L2 hardware H.264 for the overlay) and loaded fromS00modulesonly if present.gpu_memis intentionally unchanged — @manio - aaw1: reverted disabling
wasm-scripting— the ~1 GiB allocation refused by the kernel came fromrusty_alloc(global allocator ofrusty_h264), not from wasmtime, and is fixed in aa-proxy-rs itself — @manio - CI: allow overriding the aa-proxy-rs ref via
workflow_dispatch(aa_proxy_rs_ref) — @manio - milkv-duos: download the riscv toolchain to a fixed filename, so a leftover file in
/tmpno longer breaks thetar/rmsteps — @manio
Full BR Changelog: aa-proxy/buildroot@740b7f4...17b6ffb