Software On ELM Street - OBD2 Software Development

Programs / Tools / Scripts
User avatar
Tazzi
Posts: 3456
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: ELM327 Software Development

Post by Tazzi »

VX L67 Getrag wrote:NO I would have got no data as it was just PCM on a bench I think, but not sure?
Yeah, well the elm device sent back saying "No Data", meaning that the pcm didnt spit out any data.. or the elm device missed it? either one.
I would have thought the pcm would spit out info regardless of being connected up to the car or not, but might not be the case!

And the request vin should have worked even if the pcm is on bench since the vin is stored directly in the pcm, although that got a "NO DATA" as well. So makes me think the elm is missing the message or is timing out before the response is sent back.

Was good to see that it happily connected to the elm cable and sorted out all the settings. Just no damn data back!

Iv just added a new setting to manually set the elms "timeout". If it doesnt pick it up now.. then the pcm isnt sending any info back to the elm for whatever reason!
Last edited by Tazzi on Tue Jul 21, 2015 9:37 am, edited 1 time in total.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
VX L67 Getrag
Posts: 2906
Joined: Sun Aug 02, 2009 9:16 pm
Location: Bayside, Melbourne, Victoria
Contact:

Re: ELM327 Software Development

Post by VX L67 Getrag »

oh yeah I just thought the VIN part wasn't coded properly as you'd mentioned before to Jayme, but I'll test this out when I get a chance & let you know!
User avatar
Tazzi
Posts: 3456
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: ELM327 Software Development

Post by Tazzi »

I gave the vin part another go and redid it last version, and it should work.. assuming that the pcm actually sends it back some info.

Working on a gauge design at the moment.. any preferences?
This is what Im currently fiddling with.
Image
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
antus
Site Admin
Posts: 8272
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: ELM327 Software Development

Post by antus »

Looks good to me. Always wanted a guage of awesomeness :)
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Holden202T
Posts: 10328
Joined: Sat Feb 28, 2009 9:05 pm
Location: Tenambit, NSW
Contact:

Re: ELM327 Software Development

Post by Holden202T »

lol!

agree the gauge selection looks good!
User avatar
delcowizzid
Posts: 5493
Joined: Sat Feb 28, 2009 8:38 pm
Location: Wellington NZ
Contact:

Re: ELM327 Software Development

Post by delcowizzid »

real nice gauges man
If Its Got Gas Or Ass Count Me In.if it cant be fixed with a hammer you have an electrical problem
User avatar
Tazzi
Posts: 3456
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: ELM327 Software Development

Post by Tazzi »

Cheers guys,
Gauges fully work, needle moves and digit display shows current value. Just need to actually implement it with the data obtained from the elm...

I did a test run using some test data, but just wondering on how quick data can be grabbed from the car.. otherwise itll look like the needles will bounce around if its not quick enough.
Iv seen a few talk about "Hz", which is Bits/s (Same as bytes/s yeah?). How quick would it need to be for a nice "smooth" needle move?
Guess the next question would be how would I calculate it and what should I be aiming for?

Assuming I send a rpm request (010C), and I get back 41 0C XX XX (something like that), would that mean I received 4 bytes of data.. or 8 including checksum and headers. If that takes roughly 200ms, that means I can potentially do 5 requests a second, so thats either 20 bytes per second (10Hz) or 40 bytes per second(40Hz)? Someone let me know if Im well off track here! haha.

Best way I can think of for optimizing speed of application for reading is to simply have one thread continuously requesting data and receiving it (no processing), and a separate thread that will process the new data to the gauges. Too many events raised,paint events and invokes required to do the gauges on the same thread.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
antus
Site Admin
Posts: 8272
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: ELM327 Software Development

Post by antus »

the hz is tuner pro hz, being frames per second, rather than raw data rate. In tunerpro we see ~40hz, but each frame is only one pid, so it depends how many your logging at once. Most apps break it down in to priorities, so you can grab eg 4 rpm readings then something less critical and only one in 50 update coolant temp. You shouldnt have to do too much with manual timing, so long as the receive doesnt time out just keep requesting data as quick as the responses come back.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Tazzi
Posts: 3456
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: ELM327 Software Development

Post by Tazzi »

Cheers Ant, So that would be 40 requests per second!.. But that does make sense.. do majority on rpm and speed, and less on other thins such as temp ect. May have to put an option in for what gets priority/most requests.

Easy enough to keep the app from timing out, just need to get some reliable reads from in car on the commodores before I can progress further.
Still dont have the damn elm cable... how can aus post lose it three times in a row!
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Holden202T
Posts: 10328
Joined: Sat Feb 28, 2009 9:05 pm
Location: Tenambit, NSW
Contact:

Re: ELM327 Software Development

Post by Holden202T »

yeah when you think about it the high priority stuff gets more and more, like maf or map, tps, knock, spark etc they all move very rapidly

on a side note, i got elm back from a mate so i should be able to do some testing for you ?

i have a vz alloytec and a holden cruze i can try it on.
Post Reply