Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does there exist an open source tool for simulating a CAN bus with programmable CAN nodes? [closed]

I am looking for a tool to make it easier to experiment with tweaks to the Controller Area network (CAN) protocol, as well as experiment with building protocols on top of it.

In particular, I am looking for a simulation of the CAN bus with programmable nodes such that each node is able to completely control the bits that it outputs on the bus in any given packet, but the usual CAN node behavior (such as inter-frame spacing) and CAN bus features (such as arbitration) are still available.

However, if anything close to such a tool exists and is open source, I can most likely modify it to satisfy my requirements.

I have looked at CANOpen Magic, and RTaW-Sim, but they do not provide the exact functionality that I am looking for, and I cannot modify them to do so because they are not open source.

If no such library exists, please mention this in the comments.

like image 831
merlin2011 Avatar asked Nov 03 '22 04:11

merlin2011


1 Answers

For pure simulation, you could use the OpenCores CAN controller. You'll have to learn Verilog and get up to speed on running Verilog simulations - you could use Icarus Verilog or CVer to run your simulations.

You would have full access to all aspects of the CAN controller through modifications to the Verilog source.

like image 100
Martin Thompson Avatar answered Nov 24 '22 14:11

Martin Thompson