CAN-Communication using Raspberry Pi and Simulink
조회 수: 12 (최근 30일)
im trying to send a CAN-Message from a raspi 4 to an other raspi 4. The receiving raspi have to send the data from the can message to an arduino via SPI.For this im using two mcp2515 can-controller Boards and a level converter for the arduino. SPI communication between the arduino and the raspi is working very well. The only thing i don't get is how i can implementate the can communication in Simulink.
I made two pictures of my implementation.
Very thankful for every answer!
Reeno Joseph 2021년 6월 17일
The CAN blocks in Raspberry Pi supportpackage communicate with MCP2515 via SPI interface. So you cannot use SPI blocks and CAN blocks together.
If you need the CAN data at Arduino, please use the MKRCAN shield support that we have.