Supported Hardwares

This section describes basic usage for each supported hardwares.

Kvaser

KvaserInterface supports Win64 platform.

To setup interface, do something like below,

using CANBus

kvaser0 = KvaserInterface(0, 500000)  # channel 0, 500kbps

For CAN FD,

kvaser0 = KvaserFDInterface(0, 500000, 2000000)  # channel 0, 500kbps, 2Mbps

send, recv, shutdown functions can be use.

Kvaser's api library is redistributed with CANBus.jl after its license, users does not need to install them separately.

SocketCAN

SocketCANInterface supports Linux platform.

To setup interface,

using CANBus

sockcan0 = SocketCANInterface("can0")  # channel "can0"

For CAN FD,

sockcan0 = SocketCANFDInterface("can0")  # channel "can0"

send, recv, shutdown functions can be use.

Bitrate can not be modified from socket api, use ip link command from terminal.

Vector

VectorInterface supports Win64 platform.

In this time, author does not get permission to distribute DLLs. So to use this interface, please install Vector XL-Driver-Library separately. Check vxlapi64.dll is in your path.

using CANBus

vector1 = VectorInterface(0, 500000, "NewApp") # channel 0, 500kbps, application name

"Application name" means corresponding name in Vector Hardware Manager.

For CAN FD,

vector1 = VectorFDInterface(0, 500000, 2000000, "NewApp")
# channel 0, 500kbps, 2Mbps, application name

send, recv, shutdown functions can be use.