Skip to content

Conversation

@heevasti
Copy link
Collaborator

@heevasti heevasti commented Jan 5, 2026

Pololu Maestro QMI driver was updated so that it can be used also with Pololu instruments that are in the default UART mode, by using a special "uart:..." transport string. For this we need board and busio modules from adafruit-blinka package, which are imported as "lazy imports". The latter is imported through new qmi_uart module, which has an extension of the busio.UART class so that it is compatible with QMI_Transport classes to use with the special transport string, and to use the same read-write calls.

During the course of this refactoring and extension, also the psutil package was updated such that it would not work anymore in qmi_proc.py. This is due to moving the _snicaddr internal variable in the package. The qmi_proc.py was adapted such that it checks the version number of psutil and selects followingly the correct location of the _snicaddr.

Henri Ervasti added 11 commits December 19, 2025 18:04
…ting UART creates issues. This is due to the import structure of the adafruit-blinka
…ts. Now setting more patching for imports in `test_maestro.py``but this means we need to separately test `qmi_uart.py` as we mock most of it.
…ts. Now setting more patching for imports in `test_maestro.py``but this means we need to separately test `qmi_uart.py` as we mock most of it.
…ue to high level of mocking, a hardware testing should be also done before review.
…y` since changes in `psutil` version 7.2.0.
…y` since changes in `psutil` version 7.2.0.
…y` since changes in `psutil` version 7.2.0.
…y` since changes in `psutil` version 7.2.0.
@heevasti heevasti linked an issue Jan 5, 2026 that may be closed by this pull request
@heevasti heevasti requested a review from pieterjbotma January 5, 2026 08:12
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.

Make Pololu Maestro driver be possible to use in UART mode as well.

2 participants