All UDS services

Routine Control

0x31

The Routine Control service allows the client to start, stop, or request results of a server-side routine identified by a Routine Identifier (RID).

Negative response codes
0x120x130x220x240x310x330x72

Request

SID 0x31 · 4 bytes
Len (bits)
Parameter description
Value (hex)
8
Routine Control SID
0x31
1
suppressPosRspMsgIndicationBitBit 7 of the sub-function byte. When set to 1, the server will not send a positive response.
7
Initiates execution of the specified routine.
0x01
16
routineIdentifierTwo-byte identifier of the routine to control.
0x0000-0xFFFF
n*
8
routineControlOptionAdditional input parameters required by the routine.Optional
0x00-0xFF

n = Number of routine option bytes

Positive response

SID 0x71
Len (bits)
Parameter description
Value (hex)
8
Routine Control SID
0x71
1
Echo of suppressPosRspMsgIndicationBit
7
Initiates execution of the specified routine.
0x01
16
Echo of routineIdentifier
0x0000-0xFFFF
n*
8
routineStatusOutput data or status information returned by the routine.Optional
0x00-0xFF

n = Number of routine status bytes