Skip to content

Files

Latest commit

498effa · Feb 19, 2019

History

History
This branch is 1 commit ahead of, 58 commits behind brendan-w/python-OBD:master.

obd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 2, 2018
Dec 2, 2018
Aug 2, 2016
Jul 26, 2016
Aug 2, 2016
Nov 2, 2018
Nov 5, 2018
Dec 29, 2018
Aug 2, 2016
Nov 5, 2018
Nov 17, 2018
Dec 29, 2018
Feb 19, 2019
Dec 16, 2018
           API
┌───────────────────────┐
│   obd.py / async.py   │
└───┰───────────────────┘
    ┃               ▲
    ┃               ┃
┌───╂───────────────╂───┐      ┌─────────────────┐         ┌────────────────────┐
│   ┃               ┗━━━┿━━━━━━┥                 │◀ ━━━━━━━┥                    │
│   ┃ OBDCommand.py     │      │   decoders.py   │ (maybe) │ UnitsAndScaling.py │
│   ┃               ┏━━━┿━━━━ ▶│                 ┝━━━━━━━ ▶│                    │
└───╂───────────────╂───┘      └─────────────────┘         └────────────────────┘
    ┃               ┃
    ┃               ┃
┌───╂───────────────╂───┐      ┌─────────────────┐
│   ┃               ┗━━━┿━━━━━━┥                 │
│   ┃   elm327.py       │      │    protocol/    │
│   ┃               ┏━━━┿━━━━ ▶│                 │
└───╂───────────────╂───┘      └─────────────────┘
    ┃               ┃
    ▼               ┃
┌───────────────────┸───┐
│        pyserial       │
└───────────────────────┘
       Serial Port

Not pictured:

  • commands.py : defines the various OBD commands, and which decoder they use
  • codes.py : stores tables of standardized values needed by decoders.py (mostly check-engine codes)
  • OBDResponse.py : defines structures/objects returned by the API in response to a query.