AI_UIAutomation/utils/common
xiaoxiao 7c3d4a0a7e feat(relay): 串口层切 MODBUS-RTU,支持双开发板(板1/板2)寻址
参照 relay_control.py,SerialController 从无寻址的自定义 55C8 协议改为
MODBUS-RTU(设备ID+CRC16),组网总线上可按板号(1/2)单独控制。现有设备
默认板1,relay.helper/测试 API 不变,向后兼容。

- serial_controller.ts: crc16 + MODBUS 帧(功能05/0F/01)、deviceId 参数、ping 探测
- relay.config.ts: 新增 board 字段 + resolveRelayBoard,resolveRelayAction 返回 board
- relay.helper.ts: 各动作按 config 路由板号
- relay.ts / press-raw.ts: --board / BOARD env 支持

不含 package-lock.json 与本地 relay_control.py(机器相关,避免影响其他电脑)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 11:20:00 +08:00
..
account-code.helper.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
auth.helper.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
automation.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
curtain.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
device-add.helper.ts 修自动连接型设备误判 not found in BLE scan(彩灯等) 2026-06-25 14:59:20 +08:00
device-info.helper.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
device-registry.helper.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
device-settings.helper.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
element.helper.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
feedback.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
firmware.helper.ts feat: AI Hub 测试完善 + ONES 同步 + 必测项转换提示词 2026-05-29 11:04:12 +08:00
hub.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
index.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
message.helper.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
navigation.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
network.helper.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
ones-anchor.helper.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
plug-power.helper.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
preferences.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
qr.helper.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
relay.helper.ts feat(relay): 串口层切 MODBUS-RTU,支持双开发板(板1/板2)寻址 2026-06-27 11:20:00 +08:00
room.helper.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
scene.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
serial_controller.ts feat(relay): 串口层切 MODBUS-RTU,支持双开发板(板1/板2)寻址 2026-06-27 11:20:00 +08:00
test-resilience.helper.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
timer.helper.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
zendesk.helper.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00