CAN simulation model for OMNeT++

Archive of the `omnetpp_canmodel` project page, including screenshots and installation instructions from the original release.

What this model is

This is a CAN bus simulation model built for OMNeT++. It was prepared to support research and education on in-vehicle networks, timing behavior, and mixed CAN/Ethernet communication.

The model was used as a practical research tool when studying automotive communication systems and simulation environments based on OMNeT++. The source code is available on GitHub, and the experimental CAN-Ethernet gateway model is published separately on GitHub.

Main features

Tested environment (at original release)

Useful external references: OMNeT++ · INET Framework

Installation instructions (archived)

The original project page included concrete setup steps, preserved here for reference. These steps describe the initial release structure and specific OMNeT++/INET versions, so treat them as historical instructions.

  1. Download and install OMNeT++ and the INET Framework, typically under a directory such as `~/program/`.
  2. Extract the downloaded archive and copy the distributed files into the INET tree.
0.1.0/src/* -> ~/program/omnetpp-4.4.1/inet/src/
0.1.0/example/* -> ~/program/omnetpp-4.4.1/inet/example/

$ cp -r 0.1.0/src/* ~/program/omnetpp-4.4.1/inet/src
$ cp -r 0.1.0/example/* ~/program/omnetpp-4.4.1/inet/example/
  1. Move to the OMNeT++ root directory and set the environment.
$ cd ~/program/omnetpp-4.4.1
$ . setenv
$ ./configure
  1. Build inside the `inet` directory.
$ cd inet
$ make clean
$ make makefiles
$ make

Example configurations

The following example directories were provided under `omnetpp-4.4.1/inet/examples/can/`. Each example can be run with `./run` (you may need `chmod +x run` first).

Screenshots

Archived screenshot of the bus1 example from the old OMNeT++ CAN model page
`bus1`

Simple CAN bus example with one sender and one receiver.

Archived screenshot of the bus2 example from the old OMNeT++ CAN model page
`bus2`

CAN bus example with two senders and one receiver.

Archived screenshot of the messagerouter1 example from the old OMNeT++ CAN model page
`messagerouter1`

CAN message router example for gateway-style communication.

Archived screenshot of the messagerouter2 example from the old OMNeT++ CAN model page
`messagerouter2`

Larger CAN message router configuration used in the original examples.

Distribution notes

The distributed source code was released as a beta version and may contain bugs. An experimental CAN-Ethernet gateway model is available separately on GitHub: can-for-omnet and can-ethernet-gw-for-omnet.

Related work

Contact

Feedback on the simulation model is welcome. If you have questions, please contact the author by email.

Back to the research page