You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
canalystii: Switch from binary library to pure Python driver
- Project 'canalystii' hosted at https://github.com/projectgus/python-canalystii
Compared to previous implementation:
- No more binary library, can support MacOS as well as Windows and Linux
- Can receive on all enabled channels (previous implementation received on one channel only)
- Performance is slightly slower but still easily possible to receive at max
message rate on both channels
- send timeout is now based on CAN layer send not USB layer send
- User configurable software rx message queue size
- Adds tests (mocking at the layer of the underlying driver 'canalystii')
Copy file name to clipboardExpand all lines: doc/interfaces/canalystii.rst
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,32 @@
1
1
CANalyst-II
2
2
===========
3
3
4
-
CANalyst-II(+) is a USB to CAN Analyzer. The controlcan library is originally developed by
5
-
`ZLG ZHIYUAN Electronics`_.
4
+
CANalyst-II is a USB to CAN Analyzer device produced by Chuangxin Technology.
6
5
7
-
.. note::
6
+
Install: ``pip install "python-can[canalystii]"``
8
7
9
-
Use of this interface requires the ``ControlCAN.dll`` (Windows) or ``libcontrolcan.so`` vendor library to be placed in the Python working directory.
8
+
Supported platform
9
+
------------------
10
+
11
+
Windows, Linux and Mac.
12
+
13
+
Note: Since ``pyusb`` with ``libusb0`` as backend is used, ``libusb-win32`` USB driver is required to be installed in Windows.
14
+
15
+
Limitations
16
+
-----------
17
+
18
+
Multiple Channels
19
+
^^^^^^^^^^^^^^^^^
20
+
21
+
The USB protocol transfers messages grouped by channel. Messages received on channel 0 and channel 1 may be returned by software out of order between the two channels (although inside each channel, all messages are in order). The timestamp field of each message comes from the hardware and shows the exact time each message was received. To compare ordering of messages on channel 0 vs channel 1, sort the received messages by the timestamp field first.
22
+
23
+
Backend Driver
24
+
--------------
25
+
26
+
The backend driver module `canalystii <https://pypi.org/project/canalystii>` must be installed to use this interface. This open source driver is unofficial and based on reverse engineering. Earlier versions of python-can required a binary library from the vendor for this functionality.
0 commit comments