SocketCAN as an option in Automotive Toolbox (for target hardware - Raspberry Pi)?

5 次查看(过去 30 天)
I'm using simulink (2023b) on my windows machine to make code for the Raspberry Pi4 (buster image from Mathworks). I have the Pi equiped with a CAN bus hat and have confimed the presense of SocketCAN channels can0 and can1. I have confirmed that I can send a simulnk project to the Pi and can send CAN packets out the PI via the raspberry Pi CAN block, but it seems to lack CAN FD capabiliy (longer payloads, speed shift).
What I'm stuck on is how can I add SocketCAN as a drop down in the Vehcicle Network Tool box drop down?
I added this question to an old thread. Not sure if a new thread was the correct move?:
  1 个评论
Umar
Umar 2024-9-9

Hi @William Duley,

You were right about, Not sure if a new thread was the correct move? Since you already answered this question in the link below.

https://www.mathworks.com/matlabcentral/answers/1945129-does-matlab-supports-socket-can-communication?s_tid=mlc_ans_email_ques

Also, after reviewing the Mathworks documentation listed below,

https://www.mathworks.com/help/vnt/ug/get-started-with-socketcan-devices.html?searchHighlight=SocketCAN&s_tid=srchtitle_support_results_1_SocketCAN

It seems integrating SocketCAN into Simulink on a Windows machine will be complex due to the Linux-centric nature of SocketCAN, however, leveraging WSL or a virtual machine might help facilitating this process.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by