NRC Codes Notes

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 4

NEGATIVE RESPONSE CODE

SYNTAX :- NRC = 7F + SERVICE ID + NRC

11 : SERVICE ID NOT SUPPORTED:

FOR EXAMPLE , WE ARE GIVEN THE INVALID SERVICE ID IN REQUEST THEN WE GET RESPONSE WITH 11
NRC CODE i.e,

req - 43 01 (INVALID S.ID )

-res - 7F 43 11

12.SUB FUNCTION NOT SUPPORTED :

FOR EXAMPLE , WE ARE GIVEN THE INVALID SUB FUNCTION IN REQUEST THEN WE GET RESPONSE WITH
12 NRC CODE i.e,

req - 10 06 ( invalid sub function )

-res - 7F 10 12

13.INVALID MESSAGE LENGTH:

FOR EXAMPLE WHILE WE READING DATA BY IDENTIFIER DID SIZE 2 BYTES IF WE GIVEN 3 BYTES IN
REQUEST IT SHOWS 13 NRC CODE INAVALID MESSAGE LENGTH.

req - 22 29 37 00 (DID GIVEN 3 BYTES )

-res - 7F 22 13

21.BUSY REPEAT REQUEST:

FOR EXAMPLE WE GIVEN A REQUEST, IN THAT TIME THE ECU IS BUSY WITH SOME OTHER TASKS IT WILL
GIVE RESPONSE WITH 21 NRC CODE.THEN WE WILL SEND THE REQUEST AGAIN AFTER SOME TIME.

req - 11 01 (REQUEST CORRECT BUT ECU IS BUSY WITH OTHER TASKS )


-res - 7F 11 21

22.CONDITION NOT CORRECT: ( CONDITION:- STANDARD - 01 ---> EXTENDED -03 --> PROGRAMMING-
02)

FOR EXAMPLE OUR ECU IS IN STANDARD SESSION IF WE WANT TO CHNAGE THE ECU SESSION TO
PROGRAMMING IN THIS CONDITION IS IF WE WANT TO ENTER INTO PROGRAMMING SESSION FIRST WE
CHANGE SESSION TO EXTENDED THEN ONLY IF WE CHANGE THE SESSION INTO PROGRAMMING
OTHERWISE IT SHOWS 22 NRC CONDITION NOT CORRECT.i.e,

req - 10 02 (GIVEN REQUEST NOT FOLLOW THE CONDITION )

-res - 7F 10 22

24.REQUEST SEQUENCE ERROR:

FOR EXAMPLE FOR GETTING SECURITY ACCESS TO UNLOCK THE ECU WE FOLLOW THE SEQUENCE TO GET
SECURITY ACCESS THAT IS FIRST WE REQUEST THE SEED THEN WE SEND THE SEED THEN ONLY WE GET
SECURITY ACCESS TO UNLOCK THE ECU. FOR SUPPOSE IF WE DONT FOLLOW THIS SEQUENCE WE CAN
DIRECTLY SEND THE SEED IN THAT CASE 24 NRC DISPLPAYS.

req - 27 02 24 25 25 26 ( SEQUENCE ORDER NOT FOLLOWED )

-res - 7F 27 24

31.REQUEST OUT OF RANGE:

FOR EXAMPLE , WHILE WE READ DATA BY USING IDENTIFIER IN THAT CASE IN OUR REQUEST WE ARE
GIVEN DID IS NOT IN OUR DATABASE THEN IT WILL DISPLAYS 31 NRC CODE.i.e,

req - 22 34 33 00 ( DID IS NOT IN OUR DATABASE )

-res - 7F 22 31

33.SECURITY ACCESS DENIED:


FOR EXAMPLE IF WE WRITE THE DATA WITHOUT GETTING SECURITY ACCESS IN THATCASE WE THEN IT
WILL DISPLAYS 33 NRC CODE i.e,

req - 2E 23 45 00 ( Req entered without security access)

-res - 7F 2E 33

35.INVALID KEY:

FOR EXAMPLE IF WE SENDING REQUEST FOR SECURITY ACCESS TO UNLOCK THE ECU IN THAT CASE WE
ENTERED THE WRONG SEED KEY IN REQUEST THEN IT WILL DISPLAYS 35 NRC CODE i.e,

req - 27 02 45 45 45 45 ( wrong seed key entered in request )

-res - 7F 27 35

36.INVALID NO OF ATTEMPTS :

FOR EXAMPLE IF WE SENDING REQUEST FOR SECURITY ACCESS TO UNLOCK THE ECU IN THAT CASE WE
ENTERED THE WRONG SEED KEY IN REQUEST THREE TIMES THEN THE THIRD TIME IT WILL DISPLAYS 36
NRC CODE i.e,

1 req - 27 02 25 26 27 28(1ST ATTEMPT)

1 res - 7F 27 35

2 req - 27 02 25 27 28 29 (2ND ATTEMPT)

2 res - 7F 27 35

3 req - 27 02 25 23 24 25 (3RD ATTEMPT)

3 res - 7F 27 36

7F.SERVICE ID NOT SUPPORTED IN THE ACTIVE SESSION :

FOR EXAMPLE ,IN OUR GIVEN DATABASE 2E SERV.ID(READ DATA BY IDENTIFIER) ONLY READ DATA IN
EXTENDED SESSION IN THAT CASE WE SEND THE REQUEST TO READ THE DATA IN STANDARD OR
PROGRAMMING SESSION IT WILL DISPLAYS 7F NRC CODE.i.e,
req - 2E 23 45 01 ( SERVICE ID NOT SUPPORTED IN THIS SESSION )

-res - 7F 2E 7F

7E.SUB FUNCTION NOT SUPPORTED IN THE CTIVE SESSION:

FOR EXAMPLE , WHILE SOFTWARE FLASHING ECU SHOULD BE IN PROGRAMMING SESSION-02 ,BUT WE
CAN GIVE THE REQUEST AS SUB FUNCTION AS STANDARAD SESSION - 01 THEN IT WILL DISPLAYS NRC
7E.i.e,

req - 10 01 ( SUB FUNCTION NOT SUPPORTED IN THIS SESSION )

-res - 7F 10 7E

You might also like