Skip to content

Commit 63d8aab

Browse files
committed
adding serial number for fw update
1 parent 97c95ec commit 63d8aab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unit-tests/test-fw-update.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
173173
product_line = device.get_info( rs.camera_info.product_line )
174174
product_name = device.get_info( rs.camera_info.name )
175175
log.d( 'product line:', product_line )
176+
sn = device.get_info( rs.camera_info.serial_number )
177+
print("Device serial number = " + repr(sn))
176178
###############################################################################
177179
#
178180

@@ -184,7 +186,7 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
184186
log.d( "recovering device ..." )
185187
try:
186188
image_file = find_image_or_exit(product_name) if not custom_fw_d400_path else custom_fw_d400_path
187-
cmd = [fw_updater_exe, '-r', '-f', image_file]
189+
cmd = [fw_updater_exe, '-r', '-f', image_file, '-s', sn]
188190
if custom_fw_d400_path:
189191
# unsiged fw
190192
cmd.insert(1, '-u')
@@ -230,7 +232,7 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ):
230232
image_file = find_image_or_exit(product_name, fw_version_regex) if not custom_fw_d400_path else custom_fw_d400_path
231233
# finding file containing image for FW update
232234

233-
cmd = [fw_updater_exe, '-f', image_file]
235+
cmd = [fw_updater_exe, '-f', image_file, '-s', sn]
234236
if custom_fw_d400_path:
235237
# unsigned fw
236238
cmd.insert(1, '-u')

0 commit comments

Comments
 (0)