1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| """ IMS 量产车酒驾接口预留检查清单 """ checklist = { "硬件预留": [ {"item": "12针连接器", "位置": "方向盘柱下方", "cost": "$2"}, {"item": "CAN-FD 终端电阻", "位置": "连接器内", "cost": "$0.5"}, {"item": "线束(电源+CAN+诊断)", "长度": "1.5m", "cost": "$3"}, {"item": "安装支架", "位置": "仪表盘后方", "cost": "$1"}, ], "软件预留": [ {"item": "UDS 0x0100-0x0104 消息支持", "模块": "DMS控制器"}, {"item": "设备配对认证逻辑", "模块": "安全网关"}, {"item": "BAC 阈值配置", "模块": "VCU"}, {"item": "启动锁定逻辑", "模块": "发动机ECU"}, {"item": "行驶限速逻辑", "模块": "ADAS控制器"}, {"item": "数据日志存储", "模块": "T-Box"}, ], "合规测试": [ {"item": "EMC 测试", "标准": "ECE R10"}, {"item": "功能安全", "标准": "ISO 26262 ASIL-B"}, {"item": "网络安全", "标准": "ISO/SAE 21434"}, {"item": "数据隐私", "标准": "GDPR"}, ], }
total_cost = sum(item["cost"].replace("$","") if isinstance(item["cost"], str) else item["cost"] for section in checklist.values() for item in section if "cost" in item)
print("=== IMS 酒驾接口预留检查清单 ===\n") for section, items in checklist.items(): print(f"\n{section}:") for item in items: print(f" {'✅' if item.get('cost') else '☐'} {item['item']}", end="") if 'cost' in item: print(f" ({item['cost']})", end="") if 'module' in item: print(f" → {item['module']}", end="") print()
|