AI_UIAutomation/scripts
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
..
clean-disk.sh feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
dump-cats.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
dump-home-cams.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
dump-ios-cats.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
dump-product-catalog.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
dump-relay-cat.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
explore_bot_settings.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
explore_settings_page.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
gen-combined.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
gen-must-test-manifest.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
gen-p0-report.py 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
gen-writeback-params.ts feat: 必测项自动化锚点 + 动态设备锚点 + 双协议网络切换 + ONES mutation 回写 2026-06-01 16:10:57 +08:00
overnight-noadd.sh feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
overnight-soak-ios.sh feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
overnight-soak.sh feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
press-doorbell.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
press-hub3.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
press-raw.ts feat(relay): 串口层切 MODBUS-RTU,支持双开发板(板1/板2)寻址 2026-06-27 11:20:00 +08:00
read-home.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
relay-press-report.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
relay.ts feat(relay): 串口层切 MODBUS-RTU,支持双开发板(板1/板2)寻址 2026-06-27 11:20:00 +08:00
reset-devices.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
reset-except.ts iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
reset-off.ts feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
run-aihub-android.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
run-aihub-tests.sh feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
run-ios-adds.sh 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
run-ios-controls.sh 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
run-lights-control.sh iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
run-overnight-all.sh iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
run-overnight-android-then-ios.sh iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
run-p0-all.sh 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
run-p0-supplement.sh iOS P0 适配与稳定性修复 + 报告计数/重试增强 2026-06-25 11:57:34 +08:00
soak-report.ts feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具 2026-06-09 14:14:37 +08:00
start-wda.sh feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感 2026-06-17 18:47:11 +08:00
switch-ble.ts 控制稳定性与报告增强 + 多项用例修复 2026-06-26 16:17:48 +08:00
sync-ones-results.ts feat: 必测项自动化锚点 + 动态设备锚点 + 双协议网络切换 + ONES mutation 回写 2026-06-01 16:10:57 +08:00
wda_find_bot.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00
wda_full_flow.ts feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00