Skip to content

Fully initialize usb2can Bus interface object. #501

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

Merged
merged 3 commits into from
Feb 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions can/interfaces/usb2can/usb2canInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def __init__(self, channel, *args, **kwargs):

self.handle = self.can.open(connector.encode('utf-8'), enable_flags)

super(Usb2canBus, self).__init__(channel=channel, *args, **kwargs)

def send(self, msg, timeout=None):
tx = message_convert_tx(msg)
if timeout:
Expand Down
1 change: 1 addition & 0 deletions doc/interfaces/usb2can.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ WINDOWS INSTALL
1. To install on Windows download the USB2CAN Windows driver. It is compatible with XP, Vista, Win7, Win8/8.1. (Written against driver version v1.0.2.1)
2. Install the appropriate version of `pywin32 <https://sourceforge.net/projects/pywin32/>`_ (win32com)
3. Download the USB2CAN CANAL DLL from the USB2CAN website. Place this in either the same directory you are running usb2can.py from or your DLL folder in your python install.
Note that only a 32-bit version is currently available, so this only works in a 32-bit Python environment.
(Written against CANAL DLL version v1.0.6)

Interface Layout
Expand Down