Skip to content

Drive Kiralux through PyHardwareLibrary's USBPort (option B) - #1

Merged
dccote merged 3 commits into
masterfrom
use-usbport
Oct 21, 2026
Merged

dccote merged 3 commits into
masterfrom
use-usbport

Conversation

@dccote

@dccote dccote commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Transport-only variant: macos/kiralux.py is rebuilt on PyHardwareLibrary's USBPort instead of the private usb1 transport. The high-level API is unchanged — snap() still returns a PolarFrame with .s0/.dolp/.aolp, and all the properties (exposure_us, roi, binning, …) work as before.

Verified on hardware (Kiralux CS505MUP1): full 2448×2048 frame, vmed 3 (clean), ~61 MB/s.

Requires hardwarelibrary (master + PR #120 for readStream):

pip install "git+https://github.com/DCC-Lab/PyHardwareLibrary@improve-usbport-streaming"

master keeps the dependency-free usb1 driver; this branch is the ecosystem-aligned alternative. Depends on #120 being merged first.

🤖 Generated with Claude Code

dccote and others added 3 commits October 21, 2026 11:09
…usb1

Transport-only change — the API (snap() -> PolarFrame, properties) is identical.
Command dialog uses USBPort.writeData/readData on EP 0x02/0x82; the image uses
USBPort.readStream on EP 0x83 (the high-throughput bulk read added in
DCC-Lab/PyHardwareLibrary#120). Verified on hardware: full 2448x2048 frame,
vmed 3 (clean), ~61 MB/s. Requires hardwarelibrary (master + PR #120).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cwn4LmnBsBpXbQKRh6ByZr
@dccote
dccote merged commit 7e4d508 into master Oct 21, 2026
@dccote
dccote deleted the use-usbport branch October 21, 2026 15:23
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.

1 participant