添加执行任务命令生成和解析
This commit is contained in:
@@ -489,9 +489,15 @@ if __name__ == "__main__":
|
||||
# data=bytearray([0x01,100,0])
|
||||
# data=bytearray([0x02]) # 上升
|
||||
# data=bytearray([0x03]) # 下降
|
||||
# 直接测量
|
||||
u.cmd=0x44
|
||||
data=bytearray([5])
|
||||
# # 直接测量
|
||||
# u.cmd=0x44
|
||||
# data=bytearray([5])
|
||||
# # 赋码仪新检测命令
|
||||
# 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])
|
||||
|
||||
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