Does Matlab supports socket can communication?

5 visualizaciones (últimos 30 días)
Prajwal Sangam
Prajwal Sangam el 11 de Abr. de 2023
Editada: Prasanth Sunkara el 8 de Nov. de 2024
I am using CAN device from CANable vendor, I have installed vehicle network toolbox, but it seems it doesnt support CAN device from CANable vendor. I was using can module in python before, is there anything similar to socket can in MATLAB which works with any of the CAN device.

Respuesta aceptada

Andrei
Andrei el 21 de Nov. de 2023
Editada: Andrei el 21 de Nov. de 2023
  4 comentarios
Andrei
Andrei el 5 de Nov. de 2024
William, Vehicle Network Toolbox supports SocketCAN Devices only on a Linux host machine. It doesn't support code generation for targets (such as Raspberry Pi).
Prasanth Sunkara
Prasanth Sunkara el 8 de Nov. de 2024
Editada: Prasanth Sunkara el 8 de Nov. de 2024
Just to add more information here: You can use Simulink support package for Raspberry Pi to communicate with CAN devices using SocketCAN. You would need a MCP2515 based CAN shield on top of Raspberry Pi.
https://www.mathworks.com/help/simulink/supportpkg/raspberrypi_ref/transmit-receive-data-can-blocks.html

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Vehicle Network Toolbox en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by