How it works
Requests are grouped into services, historically called modes.
Service 01 returns current data, 02 freeze frame data, 03 stored trouble codes, 04 clears codes, 06 on-board monitor results, 07 pending codes, 09 vehicle information such as the VIN, and 0A permanent codes.21
Each PID has a defined data length and formula. Engine speed, PID 0x0C, uses two bytes: rpm = (256 × A + B) ÷ 4. Coolant temperature, PID 0x05, is A − 40 °C.
Calculated load, PID 0x04, and throttle position, PID 0x11, both scale A × 100 ÷ 255 to percent.23
On CAN-equipped vehicles, a tool sends functional requests on ID 0x7DF and modules reply on IDs starting at 0x7E8. The protocol is request-and-response, so every value costs a round trip and the achievable sample rate depends on the vehicle and how many PIDs are requested.Medium24
In tuning
Generic PIDs are useful for health checks on stock vehicles: fuel trims, coolant temperature, intake temperature and load.
They are not designed for high-rate tuning logs, and many internal variables such as knock retard are not in the generic set.Medium21
Manufacturers add their own identifiers, usually read with UDS ReadDataByIdentifier (service 0x22) rather than service 01. Their definitions come from the manufacturer's service information.Medium56
Formula and worked example
rpm = (256 × A + B) / 4
- A
- first data byte of the PID 0x0C response
- B
- second data byte of the PID 0x0C response
- rpm
- engine speedrpm
Myths vs facts
Frequently asked
How do you calculate RPM from OBD-II data?
Request service 01, PID 0x0C. The response has two data bytes, A and B. Engine speed is (256 × A + B) ÷ 4. For example, bytes 0x1A and 0xF8 give (256 × 26 + 248) ÷ 4 = 1726 rpm. Other PIDs have their own formulas listed in SAE J1979.23
How fast can you log OBD-II data?
There is no single figure. Each PID is a request and a response, so rate depends on the vehicle's modules, the bus and how many PIDs you poll. Polling fewer PIDs raises the rate for each. It is generally slower than logging a controller's internal or broadcast data.Low24
What is the difference between mode 01 and mode 22?
Mode, or service, 01 reads standardized emissions-related PIDs defined in SAE J1979. Service 0x22 is the UDS ReadDataByIdentifier service from ISO 14229, used to read manufacturer-defined data identifiers. Service 22 can reach far more values, but their meanings come from the manufacturer.Medium156
Which OBD-II PIDs are useful when tuning?
Short- and long-term fuel trims, calculated load, coolant and intake air temperatures, engine speed, throttle position, manifold pressure or MAF airflow, and oxygen sensor readings give a useful picture of a stock engine. Knock and timing corrections usually need manufacturer-specific identifiers or the controller's own logging.Medium21
Sources
Numbered as cited above. Hover or tap a citation chip to preview it.
- SAE J1979: E/E Diagnostic Test Modes · SAE International · standard · retrieved 2026-10-27
- OBD-II PIDs · Wikipedia · reference · retrieved 2026-10-27
- SAE J1979-DA: Digital Annex of E/E Diagnostic Test Modes · SAE International · standard · retrieved 2026-10-27
- CAN bus · Wikipedia · reference · retrieved 2026-10-27
- ISO 14229-1:2020 Road vehicles, Unified diagnostic services (UDS), Part 1: Application layer · International Organization for Standardization · standard · retrieved 2026-10-27
- Unified Diagnostic Services · Wikipedia · reference · retrieved 2026-10-27
- Data logger · Wikipedia · reference · retrieved 2026-10-27

