๐Ÿ”ŒVirtual CAN

Lab Setup

Install Required Tools

sudo apt install can-utils

sudo apt install libsdl2-dev libsdl2-image-dev

sudo apt update --fix-missing

Testing On a Virtual CAN Interface

  sudo modprobe can
  sudo modprobe vcan
  sudo ip link add dev vcan0 type vcan
  sudo ip link set up vcan0

Clone the GitHub Repo and Build the Project

git clone https://github.com/zombieCraig/ICSim.git

cd ICSim

meson setup builddir && cd builddir
meson compile

Usage

Start the Instrument Cluster (IC) simulator:

./icsim vcan0

# Generate Random Traffics
./icsim -r vcan0

Then startup the controls

./controls vcan0

# Seed
./controls -s <seed value from -r option> vcan0

REFERENCES

Last updated