v2.1.0: 产品-硬件入库测试工具 — 多产品 profile + MAC 双源 + SN 自动分配(PASS 占用)+ FAIL 不占 SN + 统计汇总 xlsx 三 sheet 导出
This commit is contained in:
commit
2deb201844
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
build/
|
||||||
|
dist/
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.spec
|
||||||
|
debug.log
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
76
profiles/ESP32-S3-Airhub.json
Normal file
76
profiles/ESP32-S3-Airhub.json
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"product_name": "ESP32-S3-Airhub",
|
||||||
|
"mac_pattern": "Wi-Fi MAC Address:\\s+([0-9a-fA-F:]+)",
|
||||||
|
"sn": {
|
||||||
|
"prefix": "SN",
|
||||||
|
"next_number": 1,
|
||||||
|
"digits": 6,
|
||||||
|
"step": 1
|
||||||
|
},
|
||||||
|
"tests": [
|
||||||
|
{
|
||||||
|
"id": "test_mode",
|
||||||
|
"name": "进入测试模式",
|
||||||
|
"type": "auto",
|
||||||
|
"pattern": "生产测试模式已启用"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "story_btn",
|
||||||
|
"name": "故事按键",
|
||||||
|
"type": "auto",
|
||||||
|
"pattern": "故事按键.*?被按下"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "boot_btn",
|
||||||
|
"name": "BOOT/打断按键",
|
||||||
|
"type": "auto",
|
||||||
|
"pattern": "BOOT按键.*?被按下"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "audio_done",
|
||||||
|
"name": "音频播放完成(自动)",
|
||||||
|
"type": "auto",
|
||||||
|
"pattern": "音频播放完成"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "speaker",
|
||||||
|
"name": "喇叭音质",
|
||||||
|
"type": "manual",
|
||||||
|
"hint": "听播报是否清晰、无杂音"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "mic_wakeup",
|
||||||
|
"name": "麦克风唤醒",
|
||||||
|
"type": "manual",
|
||||||
|
"hint": "喊唤醒词,板载 LED 应闪烁"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "touch",
|
||||||
|
"name": "触摸",
|
||||||
|
"type": "manual",
|
||||||
|
"hint": "摸触摸板,听喇叭播报「触摸被按下」"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "battery",
|
||||||
|
"name": "电量",
|
||||||
|
"type": "manual_text",
|
||||||
|
"hint": "听喇叭播报「电量:xx%」,填写听到的百分比"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gyro",
|
||||||
|
"name": "陀螺仪",
|
||||||
|
"type": "manual",
|
||||||
|
"hint": "晃动设备,听喇叭播报「陀螺仪正常」"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "charge",
|
||||||
|
"name": "充电灯",
|
||||||
|
"type": "manual_choice",
|
||||||
|
"choices": [
|
||||||
|
"红-充电中",
|
||||||
|
"绿-已充满",
|
||||||
|
"无-异常"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
8
settings.json
Normal file
8
settings.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"current_profile": "ESP32-S3-Airhub",
|
||||||
|
"serial": {
|
||||||
|
"port": "",
|
||||||
|
"baudrate": 115200
|
||||||
|
},
|
||||||
|
"operator": ""
|
||||||
|
}
|
||||||
5
start.bat
Normal file
5
start.bat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
chcp 65001 >nul
|
||||||
|
cd /d "%~dp0"
|
||||||
|
"C:\Users\Administrator\anaconda3\python.exe" test_jig.py
|
||||||
|
pause
|
||||||
1989
test_jig.py
Normal file
1989
test_jig.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user