Skip to content

v2.0.0-alpha.7

Pre-release
Pre-release

Choose a tag to compare

@remcom remcom released this 02 Nov 20:22
· 26 commits to develop since this release
9233a75

Summary

This release hardens SPI device control and DFU against malformed requests, tunes the DOA band, and adds an experimental aec4 firmware build. The release binaries are still the fixed_delay build, and its audio pipeline is unchanged apart from the DOA band.

SPI device control

  • Write status is now real. After a write, the status-only frame used to report only whether the resource exists, so the host saw success even when the servicer rejected the value or the payload was cut short. It now carries the command's actual result, e.g. SERVICER_WRONG_PAYLOAD (67) for an out-of-range gain or CONTROL_DATA_LENGTH_ERROR (3) for a truncated write.
  • Zero-length reads no longer halt the firmware. A read with payload_len 0 of a resource on the other tile (e.g. [230, 0x80, 0], the audio servicer) hit an assertion. Such reads are now rejected with CONTROL_DATA_LENGTH_ERROR, as are payload lengths above the documented 253 bytes.
  • Failed reads are predictable. A failed read never reports CONTROL_SUCCESS in its status byte, and its payload is zeroed instead of holding stale buffer or uninitialized heap contents.

DFU

  • DFU_CONTROLLER_SERVICER_RESID_DFU_DNLOAD rejects an embedded length above 128 bytes, or longer than the data sent, with SERVICER_WRONG_PAYLOAD. Before, it halted the firmware on an assertion.

DOA

  • The DOA band's upper edge moved from 3500 Hz to 3000 Hz. The opposite mics are 7.1 cm apart, so the highest bins alias, and in reverberant rooms they blurred the estimate more than they sharpened it.
  • In simulated rooms (RT60 up to 0.6 s), the 90th-percentile direction error in a live room dropped from 11–13° to 8–10°. Dry rooms are unchanged.
  • The DOA also uses 8 fewer frequency bins per estimate (44 instead of 52), so it costs slightly less CPU.

Experimental: aec4 build (not in the release assets)

  • A new local build target, satellite1_firmware_aec4, runs the AEC on all four mics against a mono (L+R)/2 speaker reference. That matches the TAS2780's default "Mono (Left + Right)" mode.
  • The mic front end (mic pairs, average, auto-pair, beam) runs after the AEC, so steering the beam or switching mics no longer makes the AEC re-converge.
  • It uses its own copies of lib_aec/lib_ic, built for 4 mics × 1 reference. The fwk_voice submodule is untouched.
  • Measured in xsim and from the build:
    • AEC time: 7.97 ms per 15 ms frame, vs 7.52 ms for fixed_delay.
    • Tile 1 RAM: 507,420 B used, vs 499,764 B.
  • Not yet tested on hardware.
  • With the speaker set to "Left only" or "Right only", or on the stereo line-out, the mono reference only partly matches stereo music. TTS and announcements are mono and are unaffected.

Build

  • tools/ci/build_firmware.sh now exits with an error when its input list is missing, instead of reporting success.

Compatibility

  • The protocol stays at 0x11. docs/device-control-spi-protocol.md documents the new status codes and length limits.
  • Hosts that send valid requests see no change. Satellite1-ESPHome never reads the write status and always sends read lengths of at least 1.