Seeed Studio USB-CAN Analyzer

SKU: 114991193

Links:

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,
         can_filters=None)
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

CAN_FILTERS

A list of can filter dictionaries. Defaults to None (i.e. no filtering). Each filter dictionary should have the following keys: - can_id: The CAN ID to filter on. - can_mask: The mask to apply to the ID.

Example: [{"can_id": 0x11, "can_mask": 0x21},]

If one filter is provided, it will be used by the high-performance hardware filter. If zero or more than one filter is provided, software-based filtering will be used.