CAN-Communication using Raspberry Pi and Simulink
4 ビュー (過去 30 日間)
古いコメントを表示
Hey,
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!
2 件のコメント
Marius C
2021 年 8 月 18 日
Hi Henrik,
does the CAN-communiation between two raspi 4 work for you?
If yes, which CAN-controller boards are you using?
I'm looking forward hearing from you!
Marius
採用された回答
Reeno Joseph
2021 年 6 月 17 日
Hi Henrik,
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.
-Reeno
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Run on Target Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!