当前位置:网站首页>[AUTOSAR com 3. signal sending and receiving process tx/rx]
[AUTOSAR com 3. signal sending and receiving process tx/rx]
2022-07-23 12:27:00 【Rest of life】

The theme of this series of articles is CAN Communications , It belongs to the communication function , Subdivide this function by module , Here's the picture 3 Shown . among CAN The core modules of communication are 4 individual :COM modular ,PDU Router modular , CAN Interface Module and CAN Driver modular
From the whole Com From the perspective of communication structure, we can find :
about CAN Driver Come on , The only interface to communicate with the upper module is CAN Interface module , Through this module, we can realize the well-known 3 individual ECU Communication function :
CAN Communications , Through the interface layer to PDU Router modular ;( route :CanDrv–CanIf–PduR–Com)
UDS service , Through the interface layer to CANTp modular ;( route :CanDrv–CanIf–CanTp–PduR–Dcm)
XCP service , Through the interface layer to XCP modular .( route :CanDrv–CanIf–XCP)
1.Can Reception
Review previous articles menghuyouyou: according to ISO 11898-1 According to the standard , CAN The receive function requires the use of notifications (Indication) service , So how based on AUTOSAR Architecture implementation ? in general ,AUTOSAR Architecturally CAN The flow chart of receiving software implementation is shown in the figure below 4 Shown :
BSW The scheduler periodically calls CAN Driver Modular Can_MainFunction_Read function ;
CAN Driver Modular Can_MainFunction_Read The function will access CanController( Hardware ) The register of , As described in the previous article, the arbitration register , Data register and data length register , And read the data of these registers
After data reading , At this time, continue to call CAN Interface Modular CanIf_RxIndication function , So the data from CAN Driver The module is passed to the upper layer CAN Interface modular ;
CAN Interface The module calls again PduR Modular PduR_RxIndication function , Send data to PduR modular ;
PduR The module is routed to Com modular , call Com_RxIndication function , Send data to Com modular ,Com The module will store the data in its cache , The supply layer software reads and uses .
In addition, according to ISO 11898-1 The standard describes the contents of this article and later , Here's the picture 5 Above the red line of . Aforementioned 4 Core modules , except CAN Driver Ability to access or configure hardware , Other modules cannot . They will be connected through the data protocol unit (PDU) Form to realize data transmission , These contents will be introduced in detail in the following article .

2.Can Sending of
CAN The sending function requires the use of a request (Request) Service and confirmation (Comfirmation) service ,AUTOSAR Architecturally CAN The sending function is shown in the figure below 6、7 Shown .

BSW The scheduler periodically calls Com Modular Com_MainFunction_Tx function ,Com The module will read the data to be sent from its buffer ;
Com Modular Com_MainFunction_Tx The function will call PduR Modular PduR_ComTransmit function , Send data to PduR modular ;
PduR The module is routed to CAN Interface modular , call CanIf_Transmit function , So the data from PduR The module is passed to the lower level CAN Interface modular ;
CAN Interface The module calls again Can Driver Modular Can_Write function , Write the data to the corresponding register ;
And CAN The receiving function is the same ,Can_Write Function will access the quorum , Data length and data register , Write data to .
chart 7 It describes the confirmation process after data transmission , namely :
BSW The scheduler periodically calls CAN Driver Modular Can_MainFunction_Write function ;
CAN Driver Modular Can_MainFunction_Write The function will access CanController( Hardware ) Relevant register , Read relevant data for confirmation to the upper layer ;
After data reading , At this time, continue to call CAN Interface Modular CanIf_TxComfirmation function , So the data from CAN Driver The module is passed to the upper layer CAN Interface modular ;
CAN Interface The module calls again PduR Modular PduR_TxConfirmation function , Send data to PduR modular ;
PduR The module is routed to Com modular , call Com_TxConfirmation function , Confirm the sending status .

边栏推荐
- UE4 solves the problem that the WebBrowser cannot play H.264
- ARM架构与编程6--重定位(基于百问网ARM架构与编程教程视频)
- Gartner research: how is China's digital development compared with the world level? Can high-performance computing dominate?
- NLP自然语言处理-机器学习和自然语言处理介绍(二)
- 把LVGL所有控件整合到一个工程中展示(LVGL6.0版本)
- 对字符串函数的使用和理解(1)
- 硬件知識1--原理圖和接口類型(基於百問網硬件操作大全視頻教程)
- Using or tools to solve the path planning problem (TSP)
- Deep convolution generation countermeasure network
- Interpretation of the paper: using attention mechanism to improve the identification of N6 methyladenine sites in DNA
猜你喜欢

《高分子合成工艺》简答题答案

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

单片机学习笔记1--资料下载、环境搭建(基于百问网STM32F103系列教程)

Introduction and practice of Google or tools for linear programming

【Autosar CP通用 1.如何阅读Autosar官方文档】

Six trends and eight technologies of high-performance computing in data centers under "data center white paper 2022" and "computing from the east to the west"

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

单片机学习笔记9--常见的通信方式(基于百问网STM32F103系列教程)

Data mining scenario - false invoice

论文解读:《BERT4Bitter:一种基于transformer(BERT)双向编码器表示用于改善苦肽预测的基础模型》
随机推荐
硬件知識1--原理圖和接口類型(基於百問網硬件操作大全視頻教程)
保存实质审查请求书出现Schema校验失败的解决方法
Solve Sudoku puzzles with Google or tools
单片机学习笔记6--中断系统(基于百问网STM32F103系列教程)
A hundred schools of thought contend at the 2021 trusted privacy computing Summit Forum and data security industry summit
高分子物理名词解释归纳
对字符串函数的使用和理解(1)
【AUTOSAR CanTP 1.学习UDS诊断的网络层协议】
对字符串函数的使用和理解(2)
【AUTOSAR CanDrive 1.学习CanDrive的功能和结构】
G2o installation path record -- for uninstallation
高分子物理名词解释
Gaode positioning - the problem that the permission pop-up box does not appear
How to build a liquid cooling data center is supported by blue ocean brain liquid cooling technology
论文解读:《开发和验证深度学习系统对黄斑裂孔的病因进行分类并预测解剖结果》
Talent column | can't use Apache dolphin scheduler? The most complete introductory tutorial written by the boss in a month
Using or tools to solve the path planning problem (TSP)
数据分析(二)
【AUTOSAR COM 4.Com服务层模块的介绍】
Interpretation of the paper: recognition of enhancer promoter interactions with neural networks based on pre trained DNA vectors and attention mechanisms