NRC 0x13: incorrectMessageLengthOrInvalidFormat

The request has the wrong number of bytes or an invalid format.

What the response looks like

Request:   22 F1
Response:  7F 22 13

ReadDataByIdentifier with only one byte of the DID. In a negative response, 7F is the negative response service ID, 22 is the service that was refused (ReadDataByIdentifier), and 13 is this code.

When ECUs send it

  • The request has too few or too many bytes for the service.
  • A DID with one byte instead of two, a key of the wrong length, or an address and length format byte that does not match the bytes that follow.
  • An ISO-TP problem cut the message short.

What to try

Count the bytes. Every service has an exact layout: a DID is 2 bytes, a security key has a fixed length.

Services that often return it

Other codes: request format and support

Do it in your browser