CAN Transfer Protocol
CAN Transfer Protocol
Agenda
What is Network Layer
Why Network Layer
Advantages of CAN
Road Vehicle Diagnostics on CAN Network Layer Functions Types of Frames in the Network Layer Structure of Request and Response Messages Network Layer Timing Parameters Examples
Advantages of CAN
Can is a multi-master Bus Theoriticaly No limitation on the number of nodes Prioritization of messages through Identifiers Multicast reception with the time synchronization System wide data consistency Error detection and error signaling automatic retransmission of corrupted messages as soon as the bus is idle again Distinction between temporary errors and permanent failures of nodes and autonomous switching off of defect nodes
Application Layer
Tester
Request Response
ECU
Application Layer talks about the Services available between the Tester Unit and the ECU (called Diagnostic Services)
ECU Application Layer +ve or -ve Response Service Indication Physical Layer
(optional)
TA_type
SID
(optional)
TA_type
Response ID
Negative Response RA TA SA
SA- Source Address RA- Remote Address SID- Service Identifier
(optional)
TA_type
NR
SID
TA- Target Address TA_type- Addressing type (Physical or Functional) NR- Negative Response
Network Layer
Message Segmentation
Message Re-assembly
Flow-Control
10
Tester
Appl Layer
Session Layer
Re-Assembly
ECU
Appl Layer
Session Layer
Re-Assembly
Network Layer
Segmentation
Flow Control
Network Layer
Segmentation
12
Unsegmented Message
13
Transfer of Data between Network Layers of Two or more Nodes takes place through the Network-Protocol Data Units (N_PDU)
N_PDU
Address Information N_AI Protocol Control Info N-PCI Data Field N_Data
N_AI parameters:Used to identify the Following: 1. Source address, Target address of message senders and recipients 2.Communication model for the message and 3.Optional Address extension
N_PCI Parameters: Used to identify the Type of N_PDU and other necessary Control Information
N_Data Parameters: Consists of the Data Bytes to be Transmitted to the other Node.
14
N_AI
For Long messages that make use of Segmented Message Transmission, the N_AI information has to be copied to every Frame Segment.
15
N_PCI
16
17
12 (4+8) bytes can be used to represent Data Length. Max Data Length= 4095 bytes
18
Sequence Number (SN):Used in the Consecutive Frame N_PDU to specify the order of the consecutive frames. Rules applying to the Sequence Number (SN):
Flow Status
20
21
22
23
Request
Response
s
24
Response
25
26
Questions??
27
Thank you
28