Micronic rack reader v1b1#1009
Open
alexjamesgodfrey wants to merge 18 commits intoPyLabRobot:v1b1from
Open
Conversation
- Replace abstract trigger_rack_id_scan() with composite scan_rack_id(timeout, poll_interval) -> str - Capability layer delegates directly; backend chooses one-shot vs trigger+poll - Micronic backend now uses GET /rackid (one-shot) instead of POST /scantube (which is the single-tube scanner, not the rack-barcode reader) - Update chatterbox, tests, and docs to match
- ruff format on rack_reader.py, driver.py, micronic_tests.py - annotate response.read() result so mypy --check-untyped-defs is clean
rickwierenga
reviewed
May 6, 2026
Member
rickwierenga
left a comment
There was a problem hiding this comment.
direct machine support is awesome
Member
There was a problem hiding this comment.
can we use PLR io.Serial (thin wrapper around pyserial) rather than windows specific postscript?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Micronic provides liquid storage solutions in the form of barcoded (normal and "Data Matrix") vials, racks for the vials, and "rack readers" that read all vials and the rack barcode. This PR adds two new capabilities (
rack_reading,barcode_scanning) and a Micronic IO Monitor driver/backend that implements them.While Micronic manufactures many physical readers, they all share the same IO Monitor HTTP server — see this PDF.
What's in this PR
RackReadercapability (rack_reading) withscan_rack,scan_rack_id, layout management, state pollingBarcodeScannercapability (barcode_scanning) for single-tube readsMicronicIOMonitorDriver— async HTTP transport with retry/backoffMicronicIOMonitorRackReadingBackendandMicronicIOMonitorBarcodeScannerBackendMicronicCodeReaderdevice exposing both capabilitiesdocs/user_guide/capabilities/rack-reading.md,docs/user_guide/micronic/index.mdIO Monitor REST coverage
/statedriver.get_iomonitor_state/layoutlistrack_reading.get_layouts/currentlayoutrack_reading.get_current_layout/set_current_layout/scanboxrack_reading.trigger_rack_scan/scan_rack/scanresultrack_reading.get_scan_result/rackidrack_reading.get_rack_id/scan_rack_id/scantubebarcode_scanning.scan/scanresultcsv/scanresult)/retry/rescan/retryThis video shows a scan of the rack barcode, and also a whole rack + rack barcode scan with an 8x12 vial layout through plr, with this code:
rack.mp4