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

4 visualizaciones (últimos 30 días)
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 comentario
Umar
Umar el 9 de Sept. de 2024

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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by