Skip to content

pestadieu/OBDSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OBDSimulator

A simple OBD-II simulator software

Install

OBDSimulator only works with versions of python >= 3.3

  1. Load the driver for the virtual CAN interface
[sudo] modprobe vcan
  1. 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

  1. Clone this repository
git clone https://github.com/pestadieu/OBDSimulator.git
  1. Run OBDSimulator
python3 src/main.py

Supported OBD PIDS

Currently the simulator only supports these PIDS:

0D - Vehicle Speed

0C - Engine RPM

Run the tests

  1. In a terminal start the server:
python3 src/main.py
  1. In another terminal run the tests:
python3 test/main.py

Ressources

About

A simple OBD-II simulator software

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages