Does Matlab supports socket can communication?

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 日

0 投票

4 件のコメント

William Duley
William Duley 2024 年 9 月 6 日
If I upgrade my 2022b to 2023b, will my existing vehicle network toolbox suddenly get this SocketCAN dropdown? (I'm on a windows computer, using embedded coder with Raspberry Pi as a target.)
William Duley
William Duley 2024 年 9 月 6 日
I guess the answer is no. I upgraded to matlab 2023b. I removed the CANFD block from the project, re-added it from the library with the same result:
Note the matlab version in the top left of the image.
Andrei
Andrei 2024 年 11 月 5 日
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 日
編集済み: Prasanth Sunkara 2024 年 11 月 8 日
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 件)

カテゴリ

製品

リリース

R2021b

質問済み:

2023 年 4 月 11 日

編集済み:

2024 年 11 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by