Is there a way to use Arduino Hardware with Vehicle Network Toolbox?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm trying to implement a low cost In-Vehicle Data Recorder (IVDR) using an Arduino Due and MCP2515 CAN-BUS Shield. I know that Simulink Hardware Support Package for Arduino Hardware has CAN-transmit and CAN-receive blocks available, but the problem is that my vehicle's OBD2 PID's are vehicle-specific and are not provided by the manufacturer (Nissan), so I must first implement a "CAN-sniffer" in order to monitor the CAN messages being transmitted to reverse engineer the PID's. Vehicle Network Toolbox provides a Vehicle CAN Bus Monitor App that does just this, as well as several other capabilities through MATLAB and Simulink that allow OBD2 and CAN communication, but the toolbox only supports hardware from specific vendors such as National Instruments, Vector and Kvaser. Is there a way to access this capabilities using Arduino Hardware? or are there other ways to implement said CAN monitoring app using Arduino support packages for MATLAB and Simulink?
댓글 수: 0
답변 (1개)
Arun Kumar
2019년 10월 24일
Hi Daniel,
You can implement CAN sniffer by using the existing CAN Receive block in Simulink Support Package for Arduino Hardware. To do so, configure the CAN Receive block receive data in "CAN Msg" mode and use a "Bus Selector" to extract all the IDs and data from the bus. After extracting, you can either view the messages in Simulink or export the data to MATLAB using "To Workspace" block to further analyze the data. Make sure to to disable all filters by selecting "Allow All Messages" in "CAN properties" section of config set.
Other than sniffing, can you share the other capabilities of VNT which you wanted to access using Arduino.
Also, MATLAB support for MCP2515 using Arduino is under consideration, and might be added in future releases.
Hope this helps.
Cheers!
참고 항목
카테고리
Help Center 및 File Exchange에서 Sensors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!