CAN Setup
Configuring the CAN port of the module.
blockType: EngeeFunction
|
Path in the library:
|
Description
| To work with the block, install/update the support package. equipment. |
Block CAN Setup It is used to configure the CAN port of the module.
Parameters
Main group
#
Интерфейс: —
implementation of drivers for working with the CAN bus
socketcan | pcan | kvaser | vector | systec | cantact | canalystii | ETAS | gs_usb | iscan | ixxat | neousys | neovi | nican | nixnet | robotell | seeedstudio | serial | slcan | socketcand | udp_multicast | usb2can | virtual
Details
Available interfaces:
Interface name |
Decoding |
|---|---|
|
CANalyst-II |
|
CANtact CAN Interface |
|
ETAS |
|
Geschwister Schneider and candleLight |
|
isCAN |
|
IXXAT Virtual Communication Interface |
|
Kvaser’s CANLIB |
|
Neousys CAN Interface |
|
Intrepid Control Systems neoVI |
|
National Instruments NI-CAN |
|
National Instruments NI-XNET |
|
PCAN Basic API |
|
Robotell CAN-USB interface |
|
Seeed Studio USB-CAN Analyzer |
|
CAN over Serial |
|
CAN over Serial / SLCAN |
|
SocketCAN |
|
socketcand Interface |
|
SYSTEC interface |
|
Multicast IP Interface |
|
USB2CAN Interface |
|
Vector |
|
Virtual |
| Values |
|
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Port: — the CAN port to be used for message transmission
Details
The list of available CAN ports depends on the operating system you are using.:
-
On Linux, you can get it using the command
ip a— the output will specify interfaces of the formcan0,can1etc. Before using it, it is necessary to activate the CAN interface, for example, for socketcan it is done like this:sudo modprobe can, thensudo ip link set can0 type can bitrate 125000andsudo ip link set can0 up. -
In Windows, the list of interfaces can be viewed through the programs included with the drivers. For Kvaser devices, this is Kvaser CanKing, for PEAK equipment, it is PCAN-View. The names of the ports can look like
PCAN_USBBUS1,PCAN_USBBUS2etc .
Before using the block CAN Setup It is necessary to make sure that the CAN interface is correctly configured and active in the system.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Скорость передачи: — network transfer rate
Details
Network transfer rate (from 10 Kbit/s to 1 Mbit/s). All nodes in the network must operate at the same speed.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Восстановление шины в состоянии Bus-off: — the time to restore the active state of the interface after entering the Bus-off state
Details
The number 0 means — do not recover after Bus-off.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
# Шаг расчёта, с: — the time interval with which data is processed and exchanged over the CAN bus
Details
Defines the sampling period of the block with which CAN messages are sent and received during the simulation.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
