I'm working on a project to capture instantaneous fuel consumption and I'd like to use injector pulsewidth. I'm using pyserial to get the parameters connected to a bluetooth OBD reader.
For example, to get speed I type:
import serial
ser = serial.Serial('COM6',38400,timeout=1)
ser.write('01 0D \r')
speed_hex=ser.readline()
print speed_hex
To call any other standard OBD2 parameter, I'd just type it's 4 digit code followed by \r. This also worked for me with RPM, etc...
However I need fuel injector pulsewidth from a GMC vehicle which is code 125A, but typing '12 5A \r' doesn't give me any data. I suspect because it's part of the extended parameters and I'm not typing it correctly.
Can someone help me figure out how to get this parameter? I know it's available for my truck because I am comparing it with a windows GUI software which was able to obtain logical values for this parameter.
Thanks in advance.