Repository navigation
Add soundcore K20i (read-only A3949 alias) and honor the read-only, TWS-gated equalizer - #6
Open
alfiyansys wants to merge 8 commits into
Open
alfiyansys wants to merge 8 commits into
alfiyansys wants to merge 8 commits into
Conversation
Look the profile up by display name so adding or reordering catalog entries does not break the matching tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Models aliased onto a similar openscq30-lib model can have a state packet that only partly matches, so their daily and button settings would be misparsed. The flag (default false) marks such profiles. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
For profiles with read_only_controls, clear daily/button controls from the snapshot and drop SetToggle/SetSelect commands in the event loop. Battery, ambient and equalizer stay available. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
K20i is not in openscq30-lib. Its state packet matches A3949 (P20i) except the button section (one byte per button), so daily and button controls are hidden. The entry must precede profiles that could match by MAC alone when SOUNDCORE_CONTROL_MAC is set. Profiles without a dedicated icon use the generic placeholder, so the icon test skips read-only aliases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
openscq30-lib marks VolumeAdjustments read-only for models without custom presets (e.g. A3949/K20i): only preset selection is accepted. Carry the flag in EqualizerState so the UI can honor it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lable Disable the band sliders when the device only accepts presets, with a short hint, and replace the misleading 'will appear after connection' text with a message that some earbuds need both buds connected. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3 of 5 tasks
Switches one preset on a given device model, prints the device state before and after, and restores the original preset. Refuses to write when the device reports no current preset. Uses a throwaway database. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
alfiyansys
force-pushed
the
feat/k20i-support
branch
from
November 24, 2026 14:59
63d4778 to
4de9cf5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the soundcore K20i, which
openscq30-libdoes not support, as a conservative alias of the A3949 (P20i) model.read_only_controlsprofile flag hides daily/button controls and drops their writes. The entry sits first inassets/devices.tomlso aSOUNDCORE_CONTROL_MACoverride cannot match an earlier profile by MAC alone.VolumeAdjustmentsis read-only for models without custom presets, so the UI now honors that (sliders disabled, hint shown). The equalizer is also TWS-gated in the lib (hidden and silently ignored unless both buds are connected), so the empty-state text now says so.examples/eq_probe.rsswitches one preset on real hardware and restores it; documented inCLAUDE.md.Test plan
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,cargo test --all-targetseq_probe: presetSoundcoreSignaturetoBassBoosteris ACKed ([2,131]) and restored cleanlyfalse; not re-tested on hardwareNeeds
libsqlite3-devand a Rust toolchain recent enough for the pinnedopenscq30-lib.