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

4 vues (au cours des 30 derniers jours)
William Duley
William Duley le 6 Sep 2024
Commenté : Umar le 9 Sep 2024
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 commentaire
Umar
Umar le 9 Sep 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Raspberry Pi Hardware dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by