RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 5:13 pm

All times are UTC





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to : logging J2534 calls
PostPosted: Tue Aug 02, 2016 2:58 am 
Offline
Experienced
User avatar

Joined: Thu Jan 09, 2014 3:07 am
Posts: 652
WIP, I just pasted some notes here. Poorly formatted for the moment, I'll work on this later

I'll assume most of you already know what J2534 is or are smart enough to look it up. In any case, this sums it up:
(from http://www.drewtech.com/customers/diagaftmkt.html )
****
SAE J2534 is a standard for communications between a computer and a vehicle. Government regulations require all automakers provide a J2534 service to everyone in the U.S. for re-flashing emissions related controllers. If you own a SAE J2534 Pass-Thru device, you can re-flash and, in some cases, diagnose vehicles with factory functionality.
****
The standard itself is available from SAE ($$), or as a copy hosted on archive.org (copy of the adopted US law; same contents as the SAE doc)


**** what, and why ****
So, a typical setup will look like this
- PC runs proprietary / closed / mfg-provided software which does something interesting and undocumented (reflash, advanced parameter monitoring, work support, etc)
- PC connects to car through a J2534 device (probably over OBD connector, K line / CAN etc)
- the J2534 device comes with J2534 drivers, which provide a standardized, documented API that PC software can use
- the PC software should work with any J2534 device, or at least let the user choose which one to use.

What we want to do, is intercept and log the calls made to the J2534 dll by inserting a "shim" between the application and the normal J2534 dll.
"ptshim" is a J2534-compliant dll that looks just like a regular, physical device. So the PC software doesn't see the difference.
When loaded, the ptshim driver will ask which real, physical J2534 device to use.

Basically this is a "man in the middle" type of deal; all in software.


**** how ****
1) setup ptshim dll
ptshim project page on old google code:
https://code.google.com/archive/p/j2534-logger/

They have a prebuilt installer, and misc binairies
https://code.google.com/archive/p/j2534 ... /downloads
http://j2534-logger.googlecode.com/file ... logger.msi

I think I manually extracted the dll from one of those, and added the required registry entry myself. The msi probably takes care of that, I forget. The reg keys needed are described in the J2534 docs, and end up in
HKEY_LOCAL_MACHINE\SOFTWARE\PassThruSupport.04.04\

2) load PC software
easy, proceed as normal but select the ptshim device

3) ptshim should probably show a window like this:
http://j2534-logger.googlecode.com/file ... dialog.jpg
and that's where you select your j2534 device (openport, cardaq, whatever)

4) config : set some options in there, and you should be all set.

5) run PC software as usual

6) harvest sweet logs !

_________________
If you like nisprog + npkern, you can support me via https://liberapay.com/fenugrec/
For sending me encrypted/secure messages, use PGP key 0xBAC61AEB3A3E6531 available from pool.sks-keyservers.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl