File: seeedstudio.rst

package info (click to toggle)
python-can 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,372 kB
  • sloc: python: 25,840; makefile: 38; sh: 20
file content (77 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.. _seeeddoc:


Seeed Studio USB-CAN Analyzer
=============================

SKU: 114991193

Links:

- https://www.seeedstudio.com/USB-CAN-Analyzer-p-2888.html
- https://github.com/SeeedDocument/USB-CAN_Analyzer
- https://copperhilltech.com/blog/usbcan-analyzer-usb-to-can-bus-serial-protocol-definition/


Installation
------------

This interface has additional dependencies which can be installed using pip and the optional extra ``seeedstudio``.  That will include the dependency ``pyserial``::

  pip install python-can[seeedstudio]



Interface
---------

::

    can.interfaces.seeedstudio.SeeedBus

A bus example::

    bus = can.interface.Bus(interface='seeedstudio', channel='/dev/ttyUSB0', bitrate=500000)



Configuration
-------------
::

 SeeedBus(channel,
          baudrate=2000000,
          timeout=0.1,
          frame_type='STD',
          operation_mode='normal',
          bitrate=500000)

CHANNEL
 The serial port created by the USB device when connected.

TIMEOUT
 Only used by the underling serial port, it probably should not be changed.  The serial port baudrate=2000000 and rtscts=false are also matched to the device so are not added here.

FRAMETYPE
 - "STD"
 - "EXT"

OPERATIONMODE
 - "normal"
 - "loopback"
 - "silent"
 - "loopback_and_silent"

BITRATE
 - 1000000
 - 800000
 - 500000
 - 400000
 - 250000
 - 200000
 - 125000
 - 100000
 - 50000
 - 20000
 - 10000
 - 5000