PCM Diagnostics & Tuning HP Tuners | Holley | Diablo

Starting an open-source project... suggestions for an OBD2 interface box?

Thread Tools
 
Search this Thread
 
Old Mar 25, 2007 | 10:01 AM
  #1  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Question Starting an open-source project... suggestions for an OBD2 interface box?

I have over a hundred pages of SAE spec documents (J1979, J2180) that I want to use to create an open-source scanning and datalogging program. There are several free programs that I've looked at, but I'm interested in creating something that's designed from the ground-up to cater to the performance crowd.

The next question is, what interface should I use? I know that Scantool.net sells the ElmScan 5, and B&B Electronics (makers of AutoTap) sell the LDV6U-3505. Are there any others that I should look at?

The thing that REALLY interests me about the LDV6U is that it supports the 41.6 Kbps high speed VPW mode -- the mode that's used to write data to the PCM. So in theory, that box could be used for tuning.

Any other suggestions? Thanks!
Reply
Old Apr 17, 2007 | 10:53 PM
  #2  
MrCoffee's Avatar
Teching In
iTrader: (5)
 
Joined: Mar 2007
Posts: 43
Likes: 0
Default

Reply
Old May 10, 2007 | 06:26 AM
  #3  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Stay tuned folks... updates coming soon.
Reply
Old May 10, 2007 | 07:16 AM
  #4  
slow's Avatar
TECH Senior Member
20 Year Member
iTrader: (7)
 
Joined: Dec 2001
Posts: 6,150
Likes: 7
From: Orlando
Default

if your going to do it allow the user to use any J2534 complaint hardware

Ryan
Reply
Old May 10, 2007 | 07:50 AM
  #5  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

That's in the hopper as well.

I want to build it from the ground-up with an abstraction layer (a bit like Linux or NetBSD) so you can write a driver for the interface of your choice and then use the diagnostic software right over it with no modifications. Something like a run-time interface plugin system would be awesome, but I'll have to do some research about how to best implement that.
Reply
Old May 10, 2007 | 07:52 AM
  #6  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

ALSO

All of the SAE's specifications (particularly J1979 and J2190) are copyrighted. Are there legal considerations for making an open-source project that implements them?
Reply
Old May 10, 2007 | 07:44 PM
  #7  
Blades's Avatar
Staging Lane
 
Joined: Apr 2004
Posts: 79
Likes: 0
Default

You are the man. I wish I could help. Some guy was telling me that there was open source software for his evo.. I think that this is true with hondas as well. This is just another reason to force myself to write code (shitty newb code). Good luck.
Reply
Old May 11, 2007 | 08:08 AM
  #8  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Thumbs up

The B&B Electronics LDV6U should arrive sometime this afternoon

As I mentioned earlier, I'm hoping to create an open source scanning program that caters specifically to the LT1 / LS1 performance crowd. The LDV6U does support the high-speed VPW protocol, which suggests that it could be used for tuning. But that's for much later down the road.

Here's the list of features that I'm hoping to implement, in order of priority:
  1. Diagnostic trouble codes and definitions
  2. Emissions readiness monitors
  3. Ignition parameters
  4. Fuel parameters
  5. Airfow / MAP / MAF data
  6. Datalogging and playback
  7. Chevy/Pontiac LT1/LS1 style virtual dashboard
  8. Obligatory DANGER TO MANIFOLD screen

While I do want to make a useful and robust scanning program, it's NOT meant to compete with professional-grade software like AutoTap, EFILive, or HPTuners. Think of it as MySQL versus DB2 / Microsoft SQL Server. Similar software, vastly different scale.

Also, here are some general design notes that I'm thinking of at the moment:
  • Front end (GUI) will be done with MFC (possibly .NET)
  • Abstraction layer and drivers for specific OBD2 interfaces will be standard C++
  • Strong emphasis on portability
  • Support for XML log output

Maybe this evening I'll put up a SourceForge project page. For now, I have some questions:
  1. What should I name this project? My first choices, LS1Scan and OpenScan, are already taken. So are FreeScan and FreeDiag. Suggestions welcome!
  2. Can anyone give me some input on the legal considerations of the project? There are several open-source OBD2 scan programs out there, but most of them just read codes. Is it copyright infringement if I make a more complete implementation of J1979?
  3. Does anyone have other scan interfaces such as the ScanTool.net unit that they would be willing to write drivers for? (More on this as I get the code together)

That's it for now. Watch this thread for updates!
Reply
Old May 13, 2007 | 06:31 PM
  #9  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Day 1 of development has proven to be... challenging. I'm still trying to learn my way around Win32 overlapped I/O functions . It'll probably be a couple days before I figure out how to properly communicate with the unit let alone get OBD2 data from it.

Once I figure out the basics I'll post up code for the functions so other owners don't have quite as steep a learning curve.
Reply
Old May 14, 2007 | 10:35 PM
  #10  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Made some HUGE progress tonight! I should have a working LDV6u Windows library by the end of the week.

Out of the box, you have to send a string of bytes with a checksum to the LDV in order for it to do stuff. For example, this is how you ask the device for the OBD2 interfaces that it supports:

Code:
char msg = {0x1, 0x1, 0x13, 0x00, 0x15};
// Appropriate I/O calls to WriteFile() and ReadFile()
My library should take the gruntwork out of interfacing with the LDV box. You can interact with it through methods like this:

Code:
unsigned char result = LDV6u.issueCommand(GetSupportedInterfaces);
I'm sure that there are plenty of enthusiasts out there who can program very well but just don't want to deal with the hassle of writing their own library to get stuff done with this thing. Hopefully my library will be a nice spin-off of the larger scantool project.

SourceForge project page coming soon!
Reply
Old May 15, 2007 | 10:32 PM
  #11  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Below is a screenshot of a short command-line program that I wrote to test my LDV library:


By tomorrow I'll have about 90% of the LDV6U protocol implemented. Once I finish it later in the week I can start implementing a J1979 library, which is where the REAL fun starts.

I'm still a few weeks away from a point-and-click scan tool, but things are definitely off to a good start.
Reply
Old May 15, 2007 | 11:10 PM
  #12  
2xLS1's Avatar
TECH Senior Member
20 Year Member
Photogenic
Photoriffic
Shutterbug
iTrader: (25)
 
Joined: Nov 2001
Posts: 5,649
Likes: 9
From: Warr Acres, OK
Default

Ever get the feeling you are sitting in a large room all by your self. Good luck with your project.
Reply
Old May 16, 2007 | 12:51 AM
  #13  
98redorangeta's Avatar
12 Second Club
iTrader: (10)
 
Joined: Sep 2005
Posts: 948
Likes: 0
From: From Ohio now in that state up north
Default

Damn dude thats awsome I will definatly be staying tuned to see where you get with this.
Reply
Old May 16, 2007 | 09:17 AM
  #14  
AzzHauler's Avatar
TECH Resident
iTrader: (3)
 
Joined: Nov 2001
Posts: 979
Likes: 0
From: Richmond, VA Where fast cars, well......are hard to come by.
Default

I See Ur Codez!

All in all, he's putting more into trying something new than most everyone else. Sure products exist that do the functions, but it doesn't cost him a thing once he's finished, aside from hardware, and the only limit he has is how many platforms he wants to cover. There's something to be said for pride in your work. I say grats on your progress and hope it works out for you.
Reply
Old May 16, 2007 | 02:05 PM
  #15  
Steel Chicken's Avatar
TECH Enthusiast
iTrader: (3)
 
Joined: Aug 2005
Posts: 597
Likes: 0
From: Castle Rock, CO
Default

Subscribed for great justice.

Awesome!
Reply
Old May 16, 2007 | 03:51 PM
  #16  
Blades's Avatar
Staging Lane
 
Joined: Apr 2004
Posts: 79
Likes: 0
Default

Wow this is moving along quick.. Whats next.. porting to Windows Mobile/CE? .. Oh scanning with my phone!! I should paypal you the $$ for the samsung i730. jk.. my trailblazer stole my wallet.
Reply
Old May 16, 2007 | 08:52 PM
  #17  
AzzHauler's Avatar
TECH Resident
iTrader: (3)
 
Joined: Nov 2001
Posts: 979
Likes: 0
From: Richmond, VA Where fast cars, well......are hard to come by.
Default

Originally Posted by Blades
Wow this is moving along quick.. Whats next.. porting to Windows Mobile/CE? .. Oh scanning with my phone!! I should paypal you the $$ for the samsung i730. jk.. my trailblazer stole my wallet.
A scanner for WM5 would be teh awesome! Maybe a bluetooth transmitter...
Reply
Old May 16, 2007 | 09:34 PM
  #18  
oange ss's Avatar
TECH Junkie
20 Year Member
iTrader: (50)
 
Joined: Jan 2005
Posts: 3,241
Likes: 6
From: Texas
Default

Reply
Old May 16, 2007 | 10:01 PM
  #19  
OKcruising's Avatar
TECH Enthusiast
 
Joined: Mar 2005
Posts: 566
Likes: 0
From: Dallas
Default

lurky lurky, and i can't wait to see the finished project (and the sourceforge page as well).
Reply
Old May 28, 2007 | 01:13 AM
  #20  
Brief Encounter's Avatar
On The Tree
iTrader: (6)
 
Joined: Mar 2007
Posts: 152
Likes: 0
From: Northwest Indiana (Highland)
Default

Bump?
Reply



All times are GMT -5. The time now is 05:36 PM.