当前位置:网站首页>[AUTOSAR cantp 1. learn the network layer protocol of UDS diagnosis]
[AUTOSAR cantp 1. learn the network layer protocol of UDS diagnosis]
2022-07-23 12:27:00 【Rest of life】
Catalog
Interpretation of nouns
- DL: The length of valid data , barring PCIbyte;
- FS: Indicates whether the sender can continue to transmit messages ,0 Indicates that you can continue sending ,1 It means waiting for sending ,2 Indicates data overflow , The data sent at one time is greater than the amount that the receiver can receive ;
- BS: The receiver can receive the largest amount of data at a time ;
- STmin: Represents the minimum time interval between two consecutive frames , Refer to the picture 1 Defined in the ;
- SN: Serial number of consecutive frames
- N_As: The maximum time for the sender to transmit data to the receiver .
- N_Bs: The maximum time between the sender sending the first frame successfully and receiving the flow control frame .
- N_Br: The maximum time from the receiving end to the transmission flow control after receiving the first frame .
- N_Ar: The maximum time for the receiving end to transmit flow control to the sending end .
- N_Cr: The maximum time between the receiving end successfully sending flow control and receiving continuous frames .
- Ttan: Transmission time per frame .
Frame category
For the type of frame , It is determined by the length of data to be sent . In normal addressing mode , When the data length is less than or equal to 7byte, Then send it in the form of a single frame , When the data length is greater than 7byte, Data needs to be sent in multiple frames , You need to use the first frame 、 Flow control frame 、 Consecutive frames , The mechanism of different frames is shown in the figure 2 Shown .

The first frame refers to the first frame sent , The purpose is to front 7byte Send the data to the receiver , And inform the receiver that the data has not been sent , Then the receiver will return a flow control frame , Inform the sender whether it can continue to send , And inform the receiver of the maximum amount of data that can be received at one time , And the next data frame sent by the sender ( Consecutive frames ) The time interval between (STmin).
For different frames , adopt CAN Message data field PCI(Protocol control information) To distinguish between , chart 3、 chart 4 Details of different frames PCI The definition of .

The following is right PCI Detailed explanation of paragraph .

A single frame :
When N_PCItype = 0 when , Indicates that this frame is a single frame ,SF_DL For the amount of data transmitted in a single packet .
First frame :
When N_PCItype = 1 when , Indicates the first frame of this frame ,FF_DL For the amount of data transmitted in this multi packet ,FF_DL The maximum value of is 4095.
Sequence frame :
When N_PCItype = 2 when , Indicates that this frame is a sequence frame ,SN Is the count of sequence frames , For orderly transmission of data , First send SN The value of is 1, When SN When the value of overflows ,SN from 0 Start counting .
Flow control frame :
When N_PCItype = 3 when , Indicates that this frame is a flow control frame ,FS Status information transmitted for data flow ,BS The interval between sending flow control frames for the receiver ( With CF In frames ),ST The time interval between sending sequence frames for the sender .
When FS=0 when , On behalf of the receiver, data transmission is ready , The sender can send sequence frames ; When FS=1 when , The sender Continue to wait for the flow control frame and reset N_BS Timeout timer ; When FS=2 when , The memory on behalf of the receiver is not enough to receive FF_DL Length data , The sender ends the data transmission . When BS=0 when , The receiver will no longer send flow control frames , The sender can send the sequence frame until the data transmission is completed .
among :
DL: The length of valid data , barring PCIbyte;
FS: Indicates whether the sender can continue to transmit messages ,0 Indicates that you can continue sending ,1 It means waiting for sending ,2 Indicates data overflow , The data sent at one time is greater than the amount that the receiver can receive ;
BS: The receiver can receive the largest amount of data at a time ;
STmin: Represents the minimum time interval between two consecutive frames , Refer to the picture 1 Defined in the ;
SN: Serial number of consecutive frames
Network layer diagnosis time analysis
The time management of the network layer is to ensure that the sender and receiver will not be permanently suspended because of waiting , Thus losing the ability of communication . Therefore, the timeout time parameter is set during each call .

Time relation N_BS = N_AR+N_BR
N_AS
N_CR
N_As: The maximum time for the sender to transmit data to the receiver .
N_Bs: The maximum time between the sender sending the first frame successfully and receiving the flow control frame .
N_Br: The maximum time from the receiving end to the transmission flow control after receiving the first frame .
N_Ar: The maximum time for the receiving end to transmit flow control to the sending end .
N_Cr: The maximum time between the receiving end successfully sending flow control and receiving continuous frames .
Ttan: Transmission time per frame .
STmin: The minimum transmission interval between two consecutive frames .
N_As、N_Bs、N_Cr、Ttan In practical application, it is a fixed value , Therefore, in multi frame transmission ,STmin Parameters have an important influence on the time of multi frame transmission .
The process of sending and receiving


ISO-15765 Official network sequence diagram

The definition and timeout of its time parameters are as follows


边栏推荐
- 【基于UDS服务的BootLoader架构和刷写流程】
- ARM架构与编程3--按键控制LED(基于百问网ARM架构与编程教程视频)
- Deep convolution generation countermeasure network
- Installation and use of APP automated testing tool appium
- Data analysis of time series (III): decomposition of classical time series
- Interpretation of the paper: develop and verify the deep learning system to classify the etiology of macular hole and predict the anatomical results
- Data analysis of time series (I): main components
- 【AUTOSAR COM 2.通信协议栈进阶介绍】
- Under the "double carbon" goal of the digital economy, why does the "digital East and digital West" data center rely on liquid cooling technology to save energy and reduce emissions?
- How to develop the computing power and AI intelligent chips in the data center of "digital computing in the East and digital computing in the west"?
猜你喜欢

Analyze the pre integration of vio with less rigorous but logical mathematical theory

建设“绿色计算”,解读“智算中心”

Solution to schema verification failure in saving substantive examination request

Installation and use of APP automated testing tool appium

How can knowledge map, map data platform and map technology help the rapid development of retail industry

CPC客户端的安装教程

论文解读:《功能基因组学transformer模型的可解释性》

【AUTOSAR CanTP 1.学习UDS诊断的网络层协议】

时间序列的数据分析(二):数据趋势的计算

高电压技术重点知识整理
随机推荐
钢结构基本原理试题及答案
数据分析(二)
论文解读:《Deep-4mcw2v: 基于序列的预测器用于识别大肠桿菌中的 N4- 甲基胞嘧啶(4mC)位点》
利用pycaret:低代码,自动化机器学习框架解决回归问题
高等代数100道题及答案解析
【AUTOSAR COM 4.Com服务层模块的介绍】
Interpretation of the paper: iterative feature representation method to improve the prediction performance of N7 methylguanosine (m7G) sites
ARM架构与编程5--gcc与Makefile(基于百问网ARM架构与编程教程视频)
【Autosar CP通用 1.如何阅读Autosar官方文档】
ARM架构与编程2--ARM架构(基于百问网ARM架构与编程教程视频)
Integrate all lvgl controls into one project (lvgl6.0 version)
时间序列的数据分析(一):主要成分
硬件知识2--协议类(基于百问网硬件操作大全视频教程)
Data analysis (I)
NLP自然语言处理-机器学习和自然语言处理介绍(一)
Matplotlib Usage Summary
Data analysis of time series (I): main components
【存储器了解 RAM flash和eeprom存储器的区别和作用】
高分子合成工艺学复习考题
高等代数知识结构