mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-30 08:41:44 +08:00
refactor: 重构部分事件检查逻辑,修复 ch9329 hid 状态显示异常
This commit is contained in:
@@ -363,14 +363,21 @@ export default {
|
||||
recoveredDesc: '{backend} HID device reconnected successfully',
|
||||
errorHints: {
|
||||
udcNotConfigured: 'Target host has not finished USB enumeration yet',
|
||||
disabled: 'HID backend is disabled',
|
||||
hidDeviceMissing: 'HID gadget device node is missing, try restarting HID service',
|
||||
notOpened: 'HID device is not open, try restarting HID service',
|
||||
portNotFound: 'Serial port not found, check CH9329 wiring and device path',
|
||||
noResponse: 'No response from CH9329, check baud rate and power',
|
||||
noResponseWithCmd: 'No response from CH9329, check baud rate and power (cmd {cmd})',
|
||||
invalidConfig: 'Serial port parameters are invalid, check device path and baud rate',
|
||||
protocolError: 'CH9329 replied with invalid protocol data',
|
||||
healthCheckFailed: 'Background health check failed',
|
||||
deviceDisconnected: 'HID device disconnected, check cable and host port',
|
||||
ioError: 'I/O communication error detected',
|
||||
otgIoError: 'OTG link is unstable, check USB cable and host port',
|
||||
ch9329IoError: 'CH9329 serial link is unstable, check wiring and power',
|
||||
serialError: 'Serial communication error, check CH9329 wiring and config',
|
||||
initFailed: 'CH9329 initialization failed, check serial settings and power',
|
||||
shutdown: 'HID backend has stopped',
|
||||
},
|
||||
},
|
||||
audio: {
|
||||
|
||||
@@ -363,14 +363,21 @@ export default {
|
||||
recoveredDesc: '{backend} HID 设备已成功重连',
|
||||
errorHints: {
|
||||
udcNotConfigured: '被控机尚未完成 USB 枚举',
|
||||
disabled: 'HID 后端已禁用',
|
||||
hidDeviceMissing: '未找到 HID 设备节点,可尝试重启 HID 服务',
|
||||
notOpened: 'HID 设备尚未打开,可尝试重启 HID 服务',
|
||||
portNotFound: '找不到串口设备,请检查 CH9329 接线与设备路径',
|
||||
noResponse: 'CH9329 无响应,请检查波特率与供电',
|
||||
noResponseWithCmd: 'CH9329 无响应,请检查波特率与供电(命令 {cmd})',
|
||||
invalidConfig: '串口参数无效,请检查设备路径与波特率配置',
|
||||
protocolError: 'CH9329 返回了无效协议数据',
|
||||
healthCheckFailed: '后台健康检查失败',
|
||||
deviceDisconnected: 'HID 设备已断开,请检查线缆与接口',
|
||||
ioError: '检测到 I/O 通信异常',
|
||||
otgIoError: 'OTG 链路不稳定,请检查 USB 线和被控机接口',
|
||||
ch9329IoError: 'CH9329 串口链路不稳定,请检查接线与供电',
|
||||
serialError: '串口通信异常,请检查 CH9329 接线与配置',
|
||||
initFailed: 'CH9329 初始化失败,请检查串口参数与供电',
|
||||
shutdown: 'HID 后端已停止',
|
||||
},
|
||||
},
|
||||
audio: {
|
||||
|
||||
Reference in New Issue
Block a user