Skip to content

anir0y/simulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake

CANBus Simulator

By: Team AutoHackOS

Credits

one liner bash

# run with sudo / root
curl https://raw.githubusercontent.com/anir0y/simulator/main/automate.sh | bash

Compiling

You will need

  • can-utils
  • cmake
  • Common build utilities like make, g++ etc.

You can get can-utils from github or on Ubuntu you may run the follwoing

  sudo apt install can-utils  

To compile, you can clone the repository, and build using cmake

git clone https://github.com/autohackos/simulator
cd simulator
mkdir build
cd build
cmake ..
make

Testing on a virtual CAN interface

You can run the following commands to setup a virtual can interface

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

Execution Demo

sim

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 93.1%
  • Shell 4.2%
  • CMake 2.7%