Controller Area Network
Communicate with Raspberry Pi® hardware using Controller Area Network (CAN) protocol
Leverage the capabilities of Controller Area Network (CAN) to efficiently design and implement robust and reliable CAN-based communication systems.
Blocks
| CAN Transmit | Transmit message to CAN network |
| CAN Receive | Receive message from CAN network |
Objects
canChannel | Connection to CAN channel through specified device (Since R2021b) |
Functions
enableCAN | Enable CAN interface (Since R2021b) |
disableCAN | Disable CAN interface (Since R2021b) |
read | Read messages from CAN channel (Since R2021b) |
write | Write messages to CAN channel (Since R2021b) |
Model Settings
Topics
- Model Configuration Raspberry Pi Blockset
This section describes about the model configuration parameters.
- Set Up Raspberry Pi CAN Shield on Your Host Computer
Connect Raspberry Pi CAN shield to your computer using the hardware setup screen.
- Enable and Configure Raspberry Pi for SPI and CAN Communication Using MCP2515 CAN Controller
This section provides a comprehensive workflow to enable and configure the MCP2515 CAN interface on a Raspberry Pi board.
- Setup Virtual CAN Interface
Setup virtual CAN interface before configuring CAN Transmit and CAN Receive blocks.


