Start, stop or get the result of a routine inside the ECU: erase flash, self-tests, checks.
| Bytes | |
|---|---|
| Request | 31 <routineControlType> <routineIdentifier: 2 bytes> [routineControlOptionRecord] |
| Positive response | 71 <routineControlType> <routineIdentifier> [routineStatusRecord] |
| Negative response | 7F 31 <NRC> |
The positive response service ID is the request's plus 0x40: 31 answers with 71. The byte after the service ID is a sub-function; setting its bit 7 (adding 0x80) asks the ECU not to send a positive response.
Request: 31 01 FF 00
Response: 71 01 FF 00Start routine FF00 (erase memory), often after a few 7F 31 78.
| Value | Name |
|---|---|
| 01 | startRoutine |
| 02 | stopRoutine |
| 03 | requestRoutineResults |