Does Matlab supports socket can communication?

8 次查看(过去 30 天)
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.

采纳的回答

Andrei
Andrei 2023-11-21
编辑:Andrei 2023-11-21
  4 个评论
Andrei
Andrei 2024-11-5,14:33
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 2024-11-8,17:41
编辑:Prasanth Sunkara 2024-11-8,17:42
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Vehicle Network Toolbox 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by