Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(modules): request reset reason on module connection #17052

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

caila-marashaj
Copy link
Contributor

@caila-marashaj caila-marashaj commented Dec 5, 2024

Overview

Python counterpart to Opentrons/opentrons-modules#485 . Now that modules are able to report the reason for their last reset using the HAL's RCC flags, we should request it every time we find a new module connection.

Changelog

For thermocycler, heater shaker, and temp deck drivers:

  • add the GET_RESET REASON gcode message
  • inside get_device_info, also send a request for the reset reason
  • update tests

@caila-marashaj caila-marashaj requested a review from a team as a code owner December 5, 2024 22:33
Copy link
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

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

Looks good to me once tests pass. Just a naming nitpick!

api/src/opentrons/drivers/heater_shaker/driver.py Outdated Show resolved Hide resolved
@caila-marashaj caila-marashaj merged commit 0644df1 into edge Dec 6, 2024
21 checks passed
sfoster1 added a commit that referenced this pull request Dec 10, 2024
These errors should not cause the system to fail in that way;.

#17052 introduced using M114
to poll modules for their reset reason when they connect. But if the
module doesn't know about that gcode because it hasn't been updated, it
will fail, and if it fails while the server is starting (because the
module is plugged in at boot), the server won't start.

## todo
- [x] fix lint
- [x] test on hw 

Closes RQA-3787
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