Main Content

CAN interface name

R2026b

SocketCAN interface name on the target for XCP on CAN communication

Since R2026b

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / Groups / External mode

Description

Specify the SocketCAN interface name on Raspberry Pi® used for XCP on CAN external mode communication. This is the target-side CAN interface that receives XCP commands from the host computer and sends XCP responses back.

The interface name must match a CAN interface configured on the target hardware. This is the same SocketCAN interface name that you configure in the CAN pane of the target hardware resources.

Note

  • This parameter specifies the target-side (Raspberry Pi) CAN interface, not the host-side CAN hardware. The host-side interface is configured using the CAN Vendor, CAN Device, and CAN Channel parameters.

  • The specified CAN interface must not conflict with CAN message IDs used by CAN blocks in the model. If the same interface is used, ensure that the XCP command and response message IDs do not overlap with IDs used by CAN Transmit or CAN Receive blocks.

Dependencies

To enable this parameter, set Communication interface to XCP on CAN.

Settings

can0 (default) | CAN interface name

Enter the CAN interface name on Raspberry Pi.

can0 (default)

The first CAN interface on Raspberry Pi.

Custom name

Custom interface name if your CAN device uses a non-standard name. The name must match the interface name as shown by the ip link show command on Raspberry Pi and must correspond to one of the interfaces configured in the CAN pane.

Recommended Settings

No recommendation.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2026b