Virtual CAN Bus Simulator

Moeman69 picture Moeman69 · Feb 24, 2016 · Viewed 18.6k times · Source

I apologize ahead of time if this seems to similar to another question or if it seems like it has already been answered. I felt it was uniquely detailed enough to warrant its own question.

I am trying to find a virtual CAN bus simulator (or some way to easily make one) that will simply generate CAN bus messages. I want to be able to just send the raw CAN messages bit by bit to another device (using GPIO) for independent analysis by another program.

Additionally if anyone knows of something that would generate authentic vehicle CAN bus messages (or even just a database of real CAN messages) that would help.

Currently I am looking at SocketCAN but I am not sure it would work. I appreciate any thoughts or advice.

Answer

wdickerson picture wdickerson · Feb 24, 2016

You could look into the free software BUSMASTER by ETAS.
http://www.etas.com/en/products/applications_busmaster.php

It will let you send raw CAN data. If you have a database, it well let you send "real world" data, too. If you want to send real vehicle data, you could log the CAN bus of a vehicle and use BUSMATER to replay it.

It supports many CAN hardware devices, included those by Kvaser.
https://www.kvaser.com/products/kvaser-leaf-light-hs-v2/