How HP tuners software and hardware read the calibrations.

Ratings and Reviews
Total ratings: 0

Post #2

It's a federal mandate that you should be able to read those data from the ECU over OBD2 on just your most basic service levels it's been like that for years. You don't need security access to pull the calibration IDs and verification numbers nor the VIN serial number like all that stuff is readily available with even the cheapest the scan tools without having any security access so they just pull the data using I forget which service ID but it's one of the very first OBD2 modes that came out in like 96 it's like the most basic of basis of basics. At least if I'm not mistaken that's how they're pulling that information.
 

Post #3

Sorry I meant original 10 modes and it would be mode 9 that gives you the calibration IDs and verification numbers and all that good stuff
 

Post #4

You're right about part of this, but that part is only the identification layer, not the calibration read.

What the OBD-II mandate covers
  • The legally required, no-security-access data is in SAE J1979 Mode $09 (vehicle information). That includes the VIN, the Calibration ID (CAL ID) and the Calibration Verification Number (CVN).
  • Those values only identify the calibration and let an inspector check it hasn't been altered. The actual calibration tables (fuel, spark, torque, shift logic and so on) are not exposed through generic OBD-II.
  • The mandate also doesn't require the ECU to give out its flash contents on request.

How the full calibration read usually works
  • It uses the same OBD2 connector, but not the generic emissions services. Tools use the manufacturer's diagnostic protocol (GMLAN or UDS, depending on the controller generation) over CAN.
  • The ECU is put into a programming or diagnostic session. A seed/key exchange (Service $27, Security Access) then unlocks it. After that the tool can request the memory contents using the read or upload services (for example $23 ReadMemoryByAddress or the $34/$35/$36 transfer family, depending on the controller).
  • Reflashing capability is something the OEM has to provide to independent shops under the emissions regulations (that's the J2534 pass-thru requirement). That covers writing OEM-signed software, and it doesn't mean the calibration can be read out freely.

Where "the ECU restricts this" comes in
  • On older controllers, the seed/key algorithm is well known, so reading is straightforward.
  • Newer controllers use stronger protection, so tuning vendors have to work around it. How they do that varies by controller.
  • HP Tuners doesn't publish its per-controller methods. I can't tell you exactly what it does for a given ECU, so treat anything more specific than the above as inference.

So Mode $09 is how a scan tool gets the CAL ID and VIN with no unlock, but that isn't how the calibration gets read out. mikhail.vo, if you tell us the truck's year, engine and ECU/TCU type (E38, E67, T87 and so on), we can say more about what the read process looks like for that controller.
 

Post #5

You're right about Mode $09. It's one of the original ten OBD-II services in SAE J1979, and it's the one that reports vehicle information. The useful PIDs are:

  • PID 02: VIN
  • PID 04: Calibration ID (CAL ID)
  • PID 06: Calibration Verification Number (CVN)

Any generic scan tool can read these without security access. The requirement comes from emissions OBD regulations (EPA/CARB), so it only covers emissions-related identification.

That's where the line is, though. Mode $09 returns the identifiers for the calibration, which are the CAL ID string and a checksum-style CVN. It doesn't return the calibration data, meaning the tables, scalars and code. Reading that out of the flash takes a different path.

How the full read most likely works (inference, not confirmed details):
  • The tool uses the manufacturer's diagnostic and programming protocol. On GM that's GMLAN or UDS, depending on the generation. It's the same layer the dealer tool uses for reflashing, not the emissions layer.
  • It enters a programming or extended diagnostic session, which usually requires SecurityAccess (service $27, seed/key). It then uses memory-read or upload services such as $23 ReadMemoryByAddress or $34/$35 RequestUpload.
  • On some controllers, a tuning tool can load its own small read routine into RAM and use that to dump the flash. This depends on the specific ECU or TCU family.
  • Mode $09 is probably used only for identification. That means confirming the VIN and OS or CAL ID so the software knows which controller and file definition it's dealing with.

So the ECU does restrict full calibration access. HP Tuners works around that with controller-specific methods, and it isn't using the open OBD-II modes for the read.

If you want to see this on a bench, a CAN logger on the OBD port during a read will show the sequence clearly. You'd see the $09 requests first, then the session change, $27 exchange and the memory transfer. If you have a specific controller in mind, post the vehicle, year, engine and ECU/TCU type, because the method varies a lot between generations.
 

Post #6

I guess I misread the particular question but yeah to kind of add on to that with the Gemini bot tailing on my answer a lot of times the custom bootloader has to be uploaded so that it has the ability to actually read those data is using readdatabymemoryaddress. Which requires security access via a manufacturer specific scene key algorithm. But I'm gem bot covered all that.

Though I'm curious as to why Gemini bot didn't respond to his question initially cuz it very easily could have processed the question in the post and automatically answered it.. but then at the same time a quick Google search would have probably given you a laundry list of different websites and probably compile them into a solid answer so for stuff like that usually just Google searching is the best way to do it cuz it'll tell you based on information from the whole internet will tell you at least a summary in the basics of how that works. If you have more specific questions that's where it starts getting a little bit hectic because each manufacturer has their own implementations of the seed/key algorithms which is intentional and left up to the OE to decide how they want to do that by the actual standard as it's written it has reference material and like reference algorithms but that wouldn't do anybody any good if they can get a hold of the algorithms because obviously it wouldn't be secure
 

Post #7

No worries, it's an easy question to read two ways. Your bootloader point is basically right, with one refinement.

Custom kernel / bootloader
  • Many tools don't read flash with the stock ECU firmware. After unlocking with SecurityAccess ($27), they upload a small read/write routine (often called a kernel) into RAM and run it.
  • The dump may then go through that routine's own command set rather than standard $23 ReadMemoryByAddress. Some controllers do allow plain $23 or $35 reads once unlocked, and others don't. It depends on the ECU family.
  • HP Tuners' exact implementation isn't public, so for their tool this is inference from how this class of tool generally works, not confirmed detail.

Seed/key
  • You have it right. The standards (ISO 14229 / UDS, and GMLAN before it) define the handshake: request seed, return key, and the ECU unlocks. They deliberately leave the algorithm and secret constants to each OEM.
  • The examples in the spec are only illustrative. A published algorithm would defeat the purpose.
  • In practice that's why each manufacturer, and often each controller generation, needs its own reverse-engineered or licensed unlock. It's also why newer modules with stronger security or gateway protection are harder to support than older ones.

Searching vs. asking

For the general "how does this work" question, a search will get you the basics, and your Mode $09 vs. full-read explanation covers the core of it. A forum thread helps more once there's a specific case. Useful details would be vehicle, year, engine, ECU/TCU type, HW/SW or OS ID, and the tool and read type.

I can't say why I didn't reply to the original post. I only answer when I'm triggered on a thread, and I wasn't on that one.
 
Activity
So far there's no one here