[AutoSar]BSW_Com02 PDU详解


  

关键词

嵌入式、C语言、autosar、OS、BSW

平台说明

项目Value
OSautosar OS
autosar厂商vector ,
芯片厂商TI 英飞凌
编程语言C,C++
编译器HighTec (GCC)

在这里插入图片描述
>>>>>回到总目录<<<<<<

缩写对照表

见文末

一、PDU的定义和分类

1.1定义

PDU (Protocol Data Unit),包含SDU和PCI。在传输端,PDU从上层传递到下层,下层将PDU解释为SDU。
SDU(Service Data Unit),它是由上层传递的数据,带有传输数据的请求。它也是由下层接收后提取的数据传递给上层的数据。
PCI (Protocol Control Information),将SDU从特定协议层的一个实例传递到另一个实例时需要此信息。例如,它包含源和目标信息。
DLC(Data Length Code),L-PDU 中表示SDU长度。
PCI在传输端由协议层添加,在接收端再次移除。
  讲人话,如下图所示:PDU = SDU+PCI。PCI 包含了当前层信息和目标层信息。在Can driver 中生成 PCI 和 数据结构(L-PDU),在Can if 中抽象隔离为N-PDU 然后CAN TP中组合成I-PDU。最终在PDU router 中根据PCI信息解析得到目标地址传给COM,在COM中对SDU进行解析将数据传到RTE–>应用层。

注:在网络层中PUD组成如下:
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

1.2 分类

数据链路层: L-PDU(Data Link Layer Protocol Data Unit)
  在ECU抽象层(CanIf)中实现打包或者拆包。将SUD和PCI 组装或者拆包。

网络层(TP层): N-PDU(Network Layer Protocol Data Unit)
  在CAN TP 中打包或者拆包。TP模块的主要目的是分割和重新组装不适合指定N- pdu的I - pdu。实现N-PDU与 I-PDU的转换。

交互层: I-PDU(Interaction Layer Protocol Data Unit)
  在COM中打包或者拆包SDU。在外部通信的情况下,交互层将一个或多个信号打包到指定的i - pdu中,并将它们传递给底层,以便在网络中的节点之间传输。

在这里插入图片描述

缩写对照表 1

缩写描述
Can CCCAN Communication Controller
CAN CFCAN Consecutive Frame N-PDU
CAN FCCAN Flow Control N-PDU
CAN FDCAN flexible data rate
CAN FFCAN First Frame N-PDU
CAN N-PDUThe PDU of the CAN Transport Layer
CAN N-SDUThe SDU of the CAN Transport Layer
CAN SFCAN Single Frame N-PDU
CDDComplex Device Driver
CRCCyclic Redundancy Checksum
DLCData Length Code. The portion of an L-PDU which describes the SDU length
ETKProvides development and calibration tools with a powerful interface to the development ECU
FDFlexible Data
FUP messageTime adjustment message (Follow-Up)
GTDGlobal Time Domain
GTMGlobal Time Master
HOHHardware Object Handle - identifier for a specific CAN mailbox structure
HRHHardware Receive Handle - HOH for receive operations (defined by Can)
HTHHardware Transmit Handle - HOH for transmission operations (defined by Can)
L-PDUProtocol Data Unit. Consists of an identifier, DLC and data portion (SDU). Visible to the Can module
L-SDUService Data Unit. Data transported inside a CAN L-PDU. Visible to the upper layer modules (e.g. PduR)
MSBMost Significant Bit
N_ArTime from transmission of the CAN frame (any N_PDU) on the receiver side until function CanTp_TxConfirmation() is called
N_AsThe time for transmission of a CAN frame (any N_PDU) on the part of the sender until function CanTp_TxConfirmation() is called
N_BrTime from receiving the N_PDU CanFrame (FF,CF,FC) until transmission of the next FlowControl N_PDU
N_BsTime from transmission N_PDU CanFrame (FF, CF, FC) until receiving of next FlowControl N_PDU
N_CrvTime from transmission of CAN frame (FC) until reception of the next Consecutive Frame N_PDU
N_CsTime from receiving N_PDU FlowControl until transmission of the next Consecutive Frame N_PDU in the sender side
N_PCINetwork protocol control information
N_TAtypeThe N_TA parameter shall be used to encode one or multiple (depending on the N_TAtype: physical or functional)receiving network layer protocol entities
OFNS messageOffset adjustment message
OBDOn-Board Diagnosis
OFS messageOffset synchronization message
PDUProtocol Data Unit
PNPartial Networking
PNIPartial Network Information
RxReceipt/Reception
Rx L-PDUReceived L-PDU (lower to upper layer)
SDUService Data Unit
StbMSynchronized Time-Base Manager
TDTime Domain
TGTime Gateway
TMTime Master
TSTime Slave
TSDTime Sub-domain
TxTransmission
Tx L-PDUTransmitted L-PDU (upper to lower layer)
UDSUnified Diagnostic Services
WUFWake up flag
XCPA protocol description (ASAM standard) between a master (tool) and a slave (device)
SF:Single Frame
FF:First Frame
CF:Consecutive Frame
FC:Flow Control

>>>>>回到总目录<<<<<<

  • 31
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
AUTOSARAutomotive Open System Architecture)是一种针对汽车电子体系架构的开放式标准。AUTOSAR BSW(Basic Software)是AUTOSAR架构中的一个组成部分,负责提供汽车电子系统的基础软件功能。 AUTOSAR BSW包含了许多基本软件模块,用于实现汽车电子系统的常规功能。这些模块包括通信模块、诊断模块、操作系统、IO驱动程式、网络管理模块等。这些模块提供了许多基本功能,如通信、诊断、时间管理、存储管理等。 通过AUTOSAR BSW,汽车制造商可以实现可移植性和互操作性。AUTOSAR BSW定义了一套标准接口,使得不同的汽车电子系统可以进行互操作。这意味着不同的供应商可以提供不同的实现,但仍然可以在一个汽车系统中协同工作。 在 AUTOSAR BSW 中,软件模块被分为不同的层次。最底层是ECU抽象层,负责与汽车硬件进行交互。上一层是MCAL(Microcontroller Abstraction Layer),用于访问底层驱动程式和外设。再上一层是ECU抽象层,提供了通用的接口和管理功能。 AUTOSAR BSW 还提供了一个标准化的配置和集成过程。通过 AUTOSAR工具链,包括配置工具和验证工具,可以实现快速和可靠的系统配置和集成。这使得汽车制造商能够更容易地开发和更新汽车电子系统。 总之,AUTOSAR BSWAUTOSAR架构的基础软件部分,它提供了许多基本软件模块,用于实现汽车电子系统的常规功能。它通过定义标准接口和提供配置和集成工具,实现了可移植性和互操作性。这使得汽车制造商能够更容易地开发和更新汽车电子系统,并促进了整个汽车行业的发展。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

老灰╮(╯-╰)╭

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值