实现方案导入导出,根据选项自动生成文件名

This commit is contained in:
ranchuan
2024-01-15 18:07:02 +08:00
parent 5b3786dd36
commit 89ef0a6514
20 changed files with 2141 additions and 252 deletions

View File

@@ -492,12 +492,12 @@ if __name__ == "__main__":
# # 直接测量
# u.cmd=0x44
# data=bytearray([5])
# # 赋码仪新检测命令
# u.cmd=0x10
# data=bytearray([0xff,0x03,0,0,0,0])
# 赋码仪新检测命令
u.cmd=0x10
data=bytearray([0xff,0x03,0,0,0,0])
# 批检仪新检测命令,写入流水号
u.cmd=0x48
data=bytearray([2,1,2,3,0, 3,5,6,7,0, 9,8,9,10,0])
# u.cmd=0x48
# data=bytearray([2,1,2,3,0, 3,5,6,7,0, 9,8,9,10,0])
print(u.encode(data).hex(' '))
# with open("file/EX_Coder_Test_2023-07-6.json","rb") as f: