Does Matlab supports socket can communication?

조회 수: 6 (최근 30일)
Prajwal Sangam
Prajwal Sangam 2023년 4월 11일
편집: Prasanth Sunkara 2024년 11월 8일
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일
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개)

카테고리

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