Is there a way to use Arduino Hardware with Vehicle Network Toolbox?
2 次查看(过去 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!