Skip to content

Conversation

@Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Aug 7, 2023

This PR change 2 behaviors:

  1. When starting LibCI it used to enable all ports and discover the cameras,
    If a device port was enabled on the previous run, it stays on.
    If it failed and even the FW crashed on last run, this device will not be discovered in the next run as it's port is already on and the FW crashed.
    Now we will always start from a fresh power cycle of the device

  2. When LibCI finish, disable all ports.
    No need to keep devices on between LibCI runs. D585S for example is projecting laser from the moment it get power.
    No need for the laser to be on all weekend.
    This should extend the HW life

@Nir-Az Nir-Az changed the title ibCI enhancement - recycle all ports at start & disable all ports when finish LibCI enhancement - recycle all ports at start & disable all ports when finish Aug 7, 2023
@Nir-Az
Copy link
Collaborator Author

Nir-Az commented Aug 7, 2023

Jetson had 2 failures,

  1. known - t2ff WIP
  2. profile-eq, not sure where this comes from.
    I will rerun

@Nir-Az
Copy link
Collaborator Author

Nir-Az commented Aug 7, 2023

Jetson had 2 failures,

  1. known - t2ff WIP
  2. profile-eq, not sure where this comes from.
    I will rerun

Now it looks better, I added a 3 sec sleep after HW reset before we start the next test (for mipi (port is None) only )

Please review

@Nir-Az Nir-Az requested a review from maloel August 9, 2023 08:08
:return: True if all devices have come back online before timeout
"""

usb_serial_numbers = {dev.serial_number for dev in _device_by_sn.values() if dev.port is not None and dev.serial_number in serial_numbers}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will work.
But seems kind of unneeded since _device_by_sn is already keyed to SNs:
usb_serial_numbers = {sn for sn in serial_numbers if _device_by_sn[sn].port is not None}
This will also throw if given a SN that's invalid. Good IMO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@maloel maloel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my one comment for improvement. Otherwise looks good.

@Nir-Az Nir-Az force-pushed the libci_updates branch 2 times, most recently from 69635eb to 00a44ee Compare August 10, 2023 13:06
@Nir-Az Nir-Az closed this Aug 13, 2023
@Nir-Az Nir-Az reopened this Aug 13, 2023
@Nir-Az Nir-Az merged commit 7df7006 into realsenseai:development Aug 13, 2023
@Nir-Az Nir-Az deleted the libci_updates branch September 30, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants