CAN
A library of blocks for configuring CAN interfaces, sending and receiving CAN messages.
To work with the CAN library blocks, you need to configure the CAN interface. In Linux, this involves connecting a physical bus (for example, a PCAN-USB adapter) and activating the interface. First, it runs sudo modprobe can The interface is then configured using the commands: sudo ip link set can0 type can bitrate 125000 and sudo ip link set can0 up.
In Windows, you need to install the appropriate drivers for the adapter you are using. After that, the interface can be configured through proprietary utilities such as Kvaser CanKing or PCAN-View.
Links to official websites with drivers:
- CAN Getstate
-
Getting information about the status of the CAN interface and the number of I/O errors.
- CAN Restart
-
It is used to restart the CAN port.
- CAN RX
-
It is used for receiving CAN messages.
- CAN Setup
-
Configuring the CAN port of the module.
- CAN TX
-
It is used for issuing CAN messages.