{ "api": { "base_url": "http://127.0.0.1:5000", "description": "后端API服务地址,例如:http://localhost:5000 或 http://192.168.1.100:5000" }, "wrench": { "host": "192.168.110.122", "port": 7888, "timeout": 30, "address": 1, "auto_reconnect": true, "max_reconnect_attempts": 3, "description": "扳手连接配置,auto_reconnect=自动重连,max_reconnect_attempts=最大重连次数" }, "delays": { "wrench_init": 1.5, "param_set": 2.0, "retry": 1.0, "bolt_complete": 0.5, "status_check_interval": 10, "description": "延时配置(秒):wrench_init=扳手初始化延时, param_set=参数设置延时, retry=重试延时, bolt_complete=螺栓完成延时, status_check_interval=状态检测间隔" }, "test_mode": { "enabled": false, "description": "测试模式:失败也算成功,用于无钉子测试" }, "bolt_default_config": { "mode": 1, "torque_tolerance": 0.10, "angle_min": 0, "angle_max": 0, "description": "螺栓默认配置:mode=1(M1扭矩模式), torque_tolerance=10%, angle_min=1度, angle_max=360度" }, "default_parameters": { "product_id": "0000000000", "station_name": "11111111111111111111", "employee_id": "2222222222", "tool_sn": "0000000000", "controller_sn": "3333333333" } }