CAN simulation model for OMNeT++

This page migrates the content of the former `omnetpp_canmodel` page, including the archived screenshots that were shown on the original page.

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++. As on the previous site, the source code is available on GitHub, and the experimental CAN-Ethernet gateway model is published separately on GitHub.

Main features

Environment described on the previous site

Useful external references: OMNeT++ · INET Framework

Installation instructions migrated from the previous site

The original page included concrete setup steps. They are preserved here as an archive record. These steps describe the old release structure and old OMNeT++/INET versions, so users should 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 on the previous site

The old page listed the following example directories under `omnetpp-4.4.1/inet/examples/can/`. The page also noted that users could run each example with `./run`, and that they might need `chmod +x run` first.

Archived screenshots from the previous site

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 old page described the distributed source code as a beta version that might still contain bugs. It also mentioned an experimental CAN-Ethernet gateway model distributed separately on GitHub: can-for-omnet and can-ethernet-gw-for-omnet.

Related work

Contact note on the previous site

The previous page welcomed feedback from users of the simulation model and encouraged readers to contact the author by email if they had questions.

Back to the research page