pptudsy.pptx

Yamini454 1,844 views 27 slides Oct 26, 2022
Slide 1
Slide 1 of 27
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27

About This Presentation

Uds protocol and its services


Slide Content

Presentation on uds 14229 and its services

2 ONBOARD AND OFFBOARD DIAGNOSTICS DIAGNOSTICS

UDS UDS in automotive: Unified -standard combined from KWP2000 and other standards not company specific. Diagnostic -finding root causes in defects. Services -something which makes back to its original state without altering any major system level components. P2 and P2* SERVER: P2 and P2* extended timings that specify the maximum/minimum time the server (ECU) or client (tester) has to wait or respond to the UDS -request . These values are communicated by the ECU through the UDS -response to the Diagnostic Session Control service. P2:Minimum response time(50ms) P2*;Maximum response time(5s)

4 ADDRESSING METHODS : Two different addressing methods, called: ⎯ physical addressing ⎯ functional addressing

5 Functional Unit Services Diagnostics and Communication Control DiagnosticSessionControl - 10 hex ECUReset - 11 hex SecurityAccess - 27 hex CommunicationControl - 28 hex TesterPresent - 3E hex AccessTimingParameter - 83 hex SecuredDataTransmission - 84 hex ControlDTCSetting - 85 hex ResponseOnEvent - 86 hex LinkControl - 87 hex Data Transmission ReadDataByIdentifier - 22 hex ReadMemoryByAddress - 23 hex ReadScalingDataByIdentifier - 24 hex ReadDataByPeriodicIdentifier - 2A hex DynamicallyDefineDataIdentifier - 2C hex WriteDataByIdentifier - 2E hex WriteMemoryByAddress - 3D hex Stored Data Transmission ClearDiagnosticInformation - 14 hex ReadDTCInformation - 19 hex Input and Output Control InputOutputControlByIdentifier - 2F hex Remote Activation RoutineControl - 31 hex Upload and Download RequestDownload - 34 hex RequestUpload - 35 hex TransferData - 36 hex RequestTransferExit - 37 hex UDS SERVICES

6 Service Request Response Positive Negative Request parameters=Service Identifier(SID)+exact type of req + data parameters(may contain) Positive response on successful processing of request , parameters=Response Service Identifier(SID+40)+response data(maybe) Negative response on failed processing of request parameters=Negative Service Identifier + Additional data parameters(reason for failure) STRUCTURE OF DIAGNOSTIC SERVICES

7 request response 02 10 01 02 5 01 02 10 05 03 7F 10 12 DIAGNOSTIC SESSION CONTROL SERVICE (0x10) The Diagnostic Session Control service is used to enable different diagnostic sessions in the server.

8 DIAGNOSTIC SESSION TYPES SUPPORTED NEGATIVE RESPONSE CODES Supported NRC Description 12 SubFunctionNotSupported 13 incorrectMessageLength or InvalidFormat 22 ConditionsNotCorrect Session Sub function Description Default session 0x01 Default mode after power up, Able to jump to either (10 02) or (10 03) or other sessions. Programming session PRGS 0x02 enables all diagnostic services required to support programming memory of a server. Extended diagnostic session EXTDS 0x03 used to unlock additional diagnostic functions required to support the adjustment of functions. Safety system diagnostic session SSDS 0x04 enables all diagnostic services required to support safety system related functions

9 ECU RESET Ox11 SERVICE : This service is used by the external device tool to request an ECU reset based on content of the reset type parameter included in the ECU reset request message .

10 SUPPORTED NEGATIVE RESPONSE CODES:

11 SECURITY ACCESS SERVICE(0x27) The purpose of this service is to provide a means to access data and/or diagnostic services, which have restricted access for security, emissions, or safety reasons. The security concept uses a “ seed and key “relationship. ⎯ client requests the “Seed”, ⎯ server sends the “Seed”, ⎯ client sends the “Key” (appropriate for the Seed received), ⎯ server responds that the “Key” was valid and that it will unlock itself. REQUEST SEED and SEND KEY MESSAGE:

12 Positive response: 0x67-SAPR 0X00-0X7F NEGATIVE RESPONSE CODES :

13 COMMUNUCATION CONTROL(0x28) SERVICE : The purpose of this service is to switch on/off the transmission and/or the reception of certain messages of server(s). Request message sub function parameters :

14 REQUEST MESSAGE: 0x28 POSITIVE RESPONSE MESSAGE: 0x68 : CCPR 0x00-0x7F NEGATIVE RESPONSE CODES : 0x12:SFNS 0x13:IMLOIF 0x22:CNC 0x31:ROOR

15 TESTER PRESENT (0X3E) SERVICE : This service is used to indicate to a server (or servers) that a client is still connected to the vehicle and that certain diagnostic services and/or communication that have been previously activated are to remain active. REQUEST MESSAGE : 0x3E SUB FUNCTION : 0x00 - ZSUBF 0x01-0x7F : ISOSAERESRVD POSITIVE RESPONSE MESSAGE : 0x7E: TPPR(Tester present response) NEGATIVE RESPONSE CODE : 0x12 - SFNS 0x13 - IMLOIF

16 READ DATA BY IDENTIFIER(0x22) SERVICE : The service allows the client to request data record values from the server identified by one or more data Identifiers. POSITIVE RESPONSE MESSAGE: 0x62-RDBIPR NEGATIVE RESPONSE CODES: 0x13-SFNS 0x14-RTL(RESPONSE TOO LONG) 0x22-CNC 0x31-ROOR 0x33-SAD(SECURITY ACCESS DENIED)

17 READ MEMORY BY IDENTIFIER(0x23) SERVICE : This service allows the client to request memory data from the server via provided starting address and size of memory to be read . REQUEST MESSAGE: 0x23 POSITIVE RESPONSE MESSAGE: 0x63-RMBAPR NEGATIVE RESPONSE CODES: 0x13-SFNS 0x22-CNC 0x31-ROOR 0x33-SAD(SECURITY ACCESS DENIED)

18 WRITE DATA BY IDENTIFIER(0x2E) SERVICE : This service allows the client to write information into the server at an internal location specified by the provided data identifier. REQUEST MESSAGE: 0x2E POSITIVE RESPONSE MESSAGE: 0x6E-WDBIPR NEGATIVE RESPONSE CODES: 0x13-SFNS 0x22-CNC 0x31-ROOR 0x33-SAD(SECURITY ACCESS DENIED) 0x72-GPF(GENERAL PROGRAMMING FAILURE)

19 SERVICE ROUTINE CONTROL(0x31): The Routine control service is used by the client to execute a defined sequence of steps and obtain any relevant results . It also used for erasing memory and testing routines. REQUEST MESSAGE: 0x31-RC POSITIVE RESPONSE MESSAGE: 0X71-RCPR 0X00-0X7F –RCTP 0X00-0XFF ROUTRINE IDENTIFIER

20 SUPPORTED NEGATIVE RESPONSE CODES:

21 CONTROLLER AREA NETWORK(CAN): It is a vehicle bus standard designed to allow microcontroller and devices to communicate with each other in apps without a host computer. CAN bus first conceived by RBEI in early 1980’s for the communication between ECU’s. LAYERS OF CAN : 1.object layer 2.transfer layer 3.physical layer DATA INFORMATION-FRAME FORMAT : IDLE SOF IDENTIFIER RTR IDE r0 DLC DA TA CRC ACK EOF IFS IDLE

22 MESSAGE FORMAT : standard or base frame format extended frame format TYPES OF FRAME : data frame remote frame error frame overload frame ERROR HANDLING IN CAN : There are 5 different error types. bit error stuff error CRC error form error ACK error

23 ERROR DETECTION : FAULT CONFINEMENT : It has 3 bus units err or active error passive bus off For fault confinement, there are 2 counts implemented in every bus unit.They are transmit error count receive error count

24 ISO 15765 This service specifies a transport and network layer services tailored to meet the requirements of CAN based vehicle network systems on CAN. This part of ISO 15765 provides transport protocol and network layer services to support different application layer implementations like Enhanced vehicle diagnostics Emission related OBD’s World-wide harmonized OBD

25 SERVICES PROVIDED BY NETWORK LAYER TO HIGHER LAYERS : Communication services Protocol parameter setting services TYPES OF FRAME IN CAN-TP : Single frame , first frame , consecutive frame , flow control frame UNSEGMENTED MESSAGE SEGMENTED MESSAGE

26 TRANSPORT LAYER PROTOCOLS : It performs functions like transmission , reception of messages up to 4095 data bytes and also reporting of transmission and reception completion. CAPABILITIES OF RECEIVER : Block size BS Separation time minimum STmin ISO 15765 NORMAL ADDRESSING : Frame Type CAN Identifier CAN Frame Data field Byte 1 Byte 2 Byte 3 Byte 4-8 Bit 7- 4 Bit 3 – 0 Single Frame (SF) N_AI SF = 0x00 SF_DL Data First Frame (FF) N_AI FF = 0x01 FF_DL Data Consecutive Frame (CF) N_AI CF = 0x02 SN Data Flow Control (FC) N_AI FC = 0x03 FS BS STmin N/A

THANK YOU 27
Tags