forked from Pbartek/pyobd-pi
-
Notifications
You must be signed in to change notification settings - Fork 378
OBD Commands
brendanwhitfield edited this page Nov 26, 2014
·
23 revisions
A Command
in python-OBD is an object used to query information from the vehicle. They contain all of the information neccessary to perform the query, and decode the cars response. Python-OBD has built in tables for the most common commands. They can be looked up by name, or by mode and PID (for a full list, see commands.py).
import obd
c = obd.commands.RPM
# OR
c = obd.commands['RPM']
# OR
c = obd.commands[1][12] # mode 1, PID 12 (decimal)