添加小板程序版本读取

This commit is contained in:
ranchuan
2024-03-12 17:04:07 +08:00
parent 5aa013e168
commit 5bd29dd25d
11 changed files with 164 additions and 26 deletions

View File

@@ -95,12 +95,13 @@ def _detail_lua(name:str):
ret=[" |文件类型:批检仪/赋码仪检测结果判定脚本"]
return ret
def _detail_pkt(name:str):
ret=[" |文件类型:MCU程序在线升级文件"]
ret=[" |文件类型:批检仪/赋码仪小板程序在线升级文件"]
with open(name,"rb") as f:
data=f.read()
ret.append(" |打包时间:{d}".format(d=_bytes_to_str(data[4:4+20])))
ret.append(" |主机接口:{d}".format(d=_bytes_to_str(data[40:40+8])))
ret.append(" |设备类型:{d}".format(d=_bytes_to_str(data[48:48+12])))
ret.append(" |软件版本:{d}".format(d=_bytes_to_str(data[60:60+12])))
return ret
def _detail_py(name:str):