Skip to content

Add Windows 8Devices USB2CAN Support - #100

Draft
AlexKlimaj wants to merge 4 commits into
dronecan:masterfrom
AlexKlimaj:pr-windows-usb2can
Draft

Add Windows 8Devices USB2CAN Support#100
AlexKlimaj wants to merge 4 commits into
dronecan:masterfrom
AlexKlimaj:pr-windows-usb2can

Conversation

@AlexKlimaj

Copy link
Copy Markdown

This adds support for the 8Devices USB2CAN adapter in Windows. Running from the venv it is working but I haven't figured out how to get it working in the windows installer.

python-can Bus.recv() uses seconds, but the bundled dronecan driver multiplied timeouts by 1000. node.spin(0.1) then held the Korlan adapter for 100 seconds, so a retry failed with CanalOpen error code 0.

Detect USB2CAN with a defensive WMI scan instead of probing every python-can backend, skip the Korlan COM port (not SLCAN), retry CanalOpen, and show a clearer in-use error.
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