Skip to content

Conversation

@remibettan
Copy link
Contributor

Tracked by: RSDSO-20159

sn_list = devices.all()
sn_list_size = len(sn_list)
if sn_list_size == 0:
retries = 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

30 seconds timeout is too long IMO.
Maybe we can do 5x2 sec?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is 3 seconds at each iteration, and it usually succeeds at the third iteration.
30 seconds is only the worst case - I agree it should not occur...
So you mean 5 iterations of 2 seconds each - OK.

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

LGTM

time.sleep(3) # MIPI devices do not re-enumerate so we need to give them some time to restart
devices.query( monitor_changes = False )
sn_list = devices.all()
sn_list_size = len(sn_list)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we want to do it in the rs-fw-update tool like we do on usb?
And print the new device version ?

@remibettan remibettan force-pushed the fixing-custom-d400-fw-python-test branch 3 times, most recently from b14b767 to c0a5a26 Compare April 28, 2025 13:24
@remibettan remibettan force-pushed the fixing-custom-d400-fw-python-test branch from 1386509 to da6881b Compare April 29, 2025 07:37

using rsutils::json;

std::condition_variable cv;
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the reason to move from main to global?
access from any place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes - especially from the code that I have moved from main to private methods

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

LGTM

@remibettan remibettan merged commit 684cf10 into realsenseai:development Apr 29, 2025
25 of 26 checks passed
@remibettan remibettan deleted the fixing-custom-d400-fw-python-test branch July 29, 2025 14:08
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