CAN Name
R2026bSocketCAN interface name
Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / Groups / CAN
Description
Specify the SocketCAN interface name for the CAN channel. The name must match the Linux interface name configured on Raspberry Pi®.
Dependencies
To enable this parameter, set Interface configuration to
Specify via Simulink. To enable this parameter for additional
interfaces, set Number of interfaces to a value greater than or equal
to the interface number.
Settings
can0 (Interface 1), can1
(Interface 2), can2 (Interface 3), can3 (Interface 4),
can4 (Interface 5) (default) | textEnter the SocketCAN interface name.
can0,can1,can2,can3,can4Interface names following the standard Linux SocketCAN naming convention. For the Waveshare 2-CH CAN FD HAT, can0 corresponds to CAN channel 0 (SPI0) and can1 corresponds to CAN channel 1 (SPI1).
- 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 showcommand on Raspberry Pi.
Recommended Settings
No recommendation.
Programmatic Use
| No programmatic use is available. |
Version History
Introduced in R2019b