添加备份程序升级包生成测试;
This commit is contained in:
@@ -242,7 +242,7 @@ if __name__=='__main__':
|
||||
'time_out': 3, 'time_gap': 0.1, 'retry': 3, 'retry_sub': 10},
|
||||
}
|
||||
|
||||
dev_lamina = LaminaAdapter(type_dev="SLCP001", **mode_config['Debug'])
|
||||
dev_lamina = LaminaAdapter(type_dev="SLCP101", **mode_config['Debug'])
|
||||
|
||||
dev_lamina.frame_read(0x0100, 0x30)
|
||||
|
||||
@@ -251,6 +251,7 @@ if __name__=='__main__':
|
||||
file_hex = Path(r"D:\WorkingProject\LightStackAdapter\software\lamina_adapter\release\device_V1\lamina_adapter\Debug\lamina_adapter.hex")
|
||||
elif dev_lamina.device == 'SLCP101':
|
||||
file_hex = Path(r"D:\WorkingProject\LightStackAdapter\software\lamina_adapter\release\device_V2.03\lamina_adapter\Debug\lamina_adapter.hex")
|
||||
file_dat_back = Path(r"D:\WorkingProject\LightStackAdapter\software\tools\hex_history_SLCP101\生产镜像\SLCP101_V2.03\SLCP101_250111_0800_B2.03.dat")
|
||||
elif dev_lamina.device == 'SLCP102':
|
||||
file_hex = Path(r"D:\WorkingProject\LightStackAdapter\software\lamina_adapter\release\device_V3.01\lamina_adapter\Debug\lamina_adapter.hex")
|
||||
elif dev_lamina.device == 'DLSY001':
|
||||
@@ -264,6 +265,12 @@ if __name__=='__main__':
|
||||
print(dev_lamina.device)
|
||||
print(file_hex)
|
||||
|
||||
if not hasattr(__builtins__,"__IPYTHON__") and 0:
|
||||
""" 测试备份程序升级 """
|
||||
dev_lamina.frame_update(file_dat_back)
|
||||
time.sleep(3)
|
||||
ret = dev_lamina.frame_read(0x0100, 0x20)
|
||||
|
||||
if not hasattr(__builtins__,"__IPYTHON__"):
|
||||
version = "SLCP101_241030_2000_V2.03"
|
||||
addr = [0x24, 0x09, 0x12, 0x00, 0x00, 0x00]
|
||||
|
||||
Reference in New Issue
Block a user