实现方案导入导出,根据选项自动生成文件名
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user