A simple OBD-II simulator software
OBDSimulator only works with versions of python >= 3.3
- Load the driver for the virtual CAN interface
[sudo] modprobe vcan
- Create a new virtual CAN interface and activate it
[sudo] ip link add dev vcan0 type vcan
[sudo] ip link set up vcan0
You can verify that the interface has been created by running the ip link show
command
More informations on how to setup CAN interfaces can be found here
- Clone this repository
git clone https://github.com/pestadieu/OBDSimulator.git
- Run OBDSimulator
python3 src/main.py
Currently the simulator only supports these PIDS:
0D - Vehicle Speed
0C - Engine RPM
- In a terminal start the server:
python3 src/main.py
- In another terminal run the tests:
python3 test/main.py