Time for an update. v0.0.1.0 now up.
Whole bunch of changes have been applied from the last update. Should hopefully work a bit smoother for auto detecting the elm. See front change log for updates.
Gandalv wrote:Hi guys!
I am a beginner programmer in the car.
I'm trying to write my own program - on-board computer for Opel Antara 2.2 diesel with elm327.
I ran into a problem: reading pids 0104, 010C, 010D is slow and error is high.
How can I catch this information using commands ATСRA ATMA?
Or does anyone know how to calculate consumption for the diesel engine?
I'm trying to read via the engine load and engine speed by multiplying by a certain factor.
Here some logs:time=93,384#load=59,6#rpm=747,5#speed=0,0#cool=48,0
time=93,675#load=58,4#rpm=749,0#speed=0,0#cool=48,0
time=93,964#load=57,3#rpm=764,0#speed=3,0#cool=49,0
time=94,216#load=57,6#rpm=757,3#speed=3,0#cool=49,0
time=94,489#load=61,6#rpm=728,5#speed=3,0#cool=49,0
time=94,756#load=62,7#rpm=730,3#speed=3,0#cool=49,0
time=95,035#load=62,7#rpm=752,5#speed=4,0#cool=49,0
time=95,310#load=63,1#rpm=751,0#speed=4,0#cool=49,0
time=95,635#load=63,1#rpm=753,5#speed=4,0#cool=49,0
time=95,924#load=62,0#rpm=766,0#speed=4,0#cool=49,0
time=96,211#load=60,4#rpm=770,8#speed=4,0#cool=49,0
time=96,488#load=61,6#rpm=749,0#speed=4,0#cool=49,0
time=96,750#load=62,0#rpm=741,8#speed=4,0#cool=49,0
time=97,066#load=62,4#rpm=716,0#speed=4,0#cool=49,0
time=97,378#load=57,3#rpm=793,3#speed=4,0#cool=49,0
time=97,628#load=62,7#rpm=752,3#speed=4,0#cool=49,0
time=97,885#load=61,6#rpm=750,3#speed=4,0#cool=49,0
time=98,160#load=62,0#rpm=747,0#speed=3,0#cool=49,0
time=98,436#load=61,2#rpm=757,8#speed=3,0#cool=49,0
time=98,721#load=60,8#rpm=760,8#speed=3,0#cool=49,0
time=99,025#load=62,4#rpm=764,8#speed=0,0#cool=49,0
time=99,280#load=60,8#rpm=768,0#speed=0,0#cool=49,0
Gandalv wrote:Ok.
I setup ELM327 with commands
ATWS
ATZ
ATE0
ATL0
ATH1
ATI
AT@1
AT@2
ATRV
ATSP0
0100
ATDP
Gandalv wrote:After that I read PIDs
case "0104": return x * 100 / 255; break;//load
case "010C": return x / 4; break;//rpm
case "010D": return x; break;//speed
case "0105": return x - 40; break;//water temp
I have time to read 3-4 times per second, these PIDs.
After one cycle readed i use this formula fuel = load*rmp*k*timediff
where k = some coefficient, timediff = time difference between the two measurements
Gandalv wrote:After these attempts, I began to read about the team ATCRA. But here, nothing happens.
I initialized elm327. Then sent a team ATCRA7E8
elm327 said ok.
I sent ATMA
and more get nothing in return.
If i send something elm327 says stopped.
I tried different headings 7e0 5e8 5e0 but nothing caught.
Gandalv wrote:Thank you for the response.
ATDP says that I have AUTO, ISO 15765-4 (CAN 11/500)
Gandalv wrote:On any forum I've read that there are PIDs
1105=TRANSMISSION GEAR
199A=ACTUAL GEAR
I have not tested them yet
If so, is there still some PIDs (eg just spent liters for the entire life of the machine)?
Or considered as tire pressure (just wondering)
Gandalv wrote:Like all difficult with this protocol ...
How can I check if I have different PIDs from the manufacturer Holden?
I mean, what do I need to send elm327 to try to read DPID?