当前位置:网站首页>[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


边栏推荐
- 高电压技术-名词解释题
- 深度卷积生成对抗网络
- Analyze the pre integration of vio with less rigorous but logical mathematical theory
- Integrate all lvgl controls into one project (lvgl6.0 version)
- 【AUTOSAR CanDrive 2.了解通信Hoh、CanId与PduID的Mapping关系】
- 钢结构复习题
- 高分子合成工艺学复习考题
- 论文解读:《一种利用二核苷酸One-hot编码器识别水稻基因组中N6甲基腺嘌呤位点的卷积神经网络》
- Using pycaret: low code, automated machine learning framework to solve regression problems
- 数据分析(一)
猜你喜欢

论文解读:《提高N7-甲基鸟苷(m7G)位点预测性能的迭代特征表示方法》

利用or-tools来求解带容量限制的路径规划问题(CVRP)

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

把LVGL所有控件整合到一个工程中展示(LVGL6.0版本)

NLP natural language processing - Introduction to machine learning and natural language processing (2)

ARM架构与编程7--异常与中断(基于百问网ARM架构与编程教程视频)

Interpretation of the paper: attention based multi label neural network for comprehensive prediction and interpretation of 12 widely existing RNA modifications

高分子合成工艺学

ARM架构与编程2--ARM架构(基于百问网ARM架构与编程教程视频)

液冷数据中心如何构建,蓝海大脑液冷技术保驾护航
随机推荐
钢结构基本原理试题及答案
绿色数据中心:风冷GPU服务器和水冷GPU服务器综合分析
Interpretation of the paper: "deep-4mcw2v: sequence based predictor for identifying N4 methylcytosine (4mc) sites in E. coli"
Interpretation of the paper: recognition of enhancer promoter interactions with neural networks based on pre trained DNA vectors and attention mechanisms
Gartner research: how is China's digital development compared with the world level? Can high-performance computing dominate?
【Autosar 存储Stack NVM】
NLP natural language processing - Introduction to machine learning and natural language processing (2)
单片机学习笔记4--GPIO(基于百问网STM32F103系列教程)
预处理指令#define,你真的懂了吗?
【AUTOSAR DCM 1.模块简介(DSL,DSD,DSP)】
Using Google or tools to solve logical problems: Zebra problem
Analyze the pre integration of vio with less rigorous but logical mathematical theory
“東數西算”下數據中心的液冷GPU服務器如何發展?
线性规划之Google OR-Tools 简介与实战
What technologies are used in pharmaceutical research and development in the field of life sciences? Cryoelectron microscope? Molecular simulation? IND?
液冷数据中心如何构建,蓝海大脑液冷技术保驾护航
高分子合成工艺学
【AUTOSAR之FEE(非易失存储器Flash与Eeprom区别)】
NLP自然语言处理-机器学习和自然语言处理介绍(二)
Importance of data analysis