feat(hid): 支持 CH9329 + OTG 组合模式

CH9329 负责键鼠,OTG 提供虚拟媒体、USB 网络和音频;分别配置设备、报告运行状态,并在 OTG 配置变更和回滚时保留未变化的 CH9329 实例。

补齐双设备校验、串口冲突检查、初始化引导和功能入口,修复组合模式下鼠标兼容选项缺失。

验证:独立功能版本的 591 项 Rust 库测试、前端生产构建、3 项引导逻辑测试及 2 组浏览器回归通过。未进行目标 KVM 硬件验证。
This commit is contained in:
mofeng-git
2026-10-26 14:33:38 +08:00
parent b4161f3534
commit f303a8cb2f
30 changed files with 718 additions and 225 deletions

View File

@@ -1,5 +1,17 @@
export default {
hidGuide: {
driver_ch9329_otg: 'CH9329 + OTG composite mode',
compositeHelp: 'CH9329 handles keyboard and mouse. OTG provides virtual media, USB networking and USB audio. Enable advanced functions in their settings.',
wiring_ch9329_otg: 'Connect CH9329 to the dedicated keyboard/mouse port and OTG to a general USB port. Use an operation that switches video, keyboard/mouse and USB together.',
keyboardChannel: 'CH9329 input',
otgChannel: 'OTG functions',
kvmSwitch: 'KVM switch',
dedicatedHidPort: 'Keyboard/mouse port',
generalUsbPort: 'General USB port',
advancedFunctions: 'OTG advanced USB functions',
otgInactive: 'Not enabled',
otgConfigured: 'USB configured by host',
otgWaiting: 'Bound, waiting for host',
missingDevice: 'The previous device {device} is unavailable. Check the current selection.',
connectionTimeout: 'Connection timed out. Check the data cable and the controlled computer’s USB port. You can connect later or reconfigure.',
"deviceTitle": "Driver and device",
@@ -50,7 +62,7 @@ export default {
"pairTimeout": "The pairing window ended. You can open it again.",
"reopenPairing": "Reopen pairing",
"resetWarning": "Previous One-KVM HID bonds will be cleared. Remove the old device on the controlled computer before adding it again.",
"disableUsb": "Leaving USB OTG will disable: {functions}.",
"disableUsb": "Switching drivers will disable: {functions}.",
"msd": "Virtual disk",
"network": "USB network",
"audio": "USB audio",