适配 Jieli 替换遥控器并按厂商、型号和固件选择语音兼容策略 - #2
Merged
Merged
Conversation
Merged
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.
更换遥控器后,即使蓝牙名称和 VID/PID 相同,按键报告格式与语音松键时序也可能不同。此次适配已验证的
zhuhai_jieli / hid_mouse / 0.0.1:恢复普通按键、长按说话,以及短按开始持续收音、再次短按停止。改动与适用范围
RemoteDeviceInformation/RemoteCompatibilityProfile,读取 BLE 设备信息中的厂商、型号和固件。三项全部匹配上述设备才启用语音延迟补偿;其他设备、未知固件和缺失信息继续使用原有手势计时。连接设备时清空旧身份,不通过蓝牙显示名称或地址前缀推断厂商。consumer16格式,转换已核对的 14 个 Consumer Usage 为现有按键编号,保留用户映射。安装器支持传入格式与 ATT 句柄;旧配置默认仍为indexed。这部分不依赖自动语音配置,仍严格按配置地址、句柄、长度和已知用法过滤。lipo验证。验证
git diff --check通过。swift test。完整 XCTest、Python 测试、源码审查和双架构构建已在 PR 的 macOS CI 全部通过,push 检查也通过。与 #1 均涉及停止回执处理;本 PR 的新增兼容范围是 Jieli 0.0.1 的按键格式及延迟松键,审阅和合并时需协调共同修改的语音控制代码。