Autosar Com Stack

1. SWC (Software Component)

?The SWC is an application-level module that generates or receives data, which needs to be transmitted or received via CAN.

?Data is transmitted via RTE (Runtime Environment). The RTE connects the SWC to the lower layers of the communication stack.

2. Com (Communication Services)

?The Com module handles the data exchange between the SWC and the lower layers. It packs and unpacks signals (the data units) into or from PDUs (Protocol Data Units).

?Data transmission:

?It takes signals from the SWC, bundles them into a PDU, and passes them down to the PduR (PDU Router).

?Data reception:

?When receiving data, the Com module unpacks the received PDUs into individual signals and forwards them to the SWC via RTE.



3. PduR (PDU Router)

?PduR is responsible for routing the PDUs between communication modules.

?It decides where to send the PDU based on the configuration, whether it should go to the CAN Interface (CanIf) or some other communication protocol.

?Data transmission:

?PduR receives the PDU from the Com module and routes it to the CanIf for transmission over CAN.

?Data reception:

?On reception, PduR receives the PDU from CanIf and routes it to the Com module.

4. CanIf (CAN Interface)

?The CanIf is an abstraction layer between the upper layers (Com, PduR) and the hardware-specific CAN Driver.

?Data transmission:

?It receives the PDU from the PduR, applies any necessary changes (e.g., DLC checking), and passes it down to the CAN Driver.

?Data reception:

?When the CanIf receives a message from the CAN Driver, it forwards it up to the PduR.



5. CAN Driver

?The CAN Driver is responsible for controlling the hardware (CAN controller). It manages the transmission and reception of CAN frames on the CAN bus.

?Data transmission:

?It sends the CAN frame (containing the PDU) onto the CAN bus.

?Data reception:

?When a CAN frame is received from the CAN bus, it passes the frame to the CanIf for further processing.



要查看或添加评论,请登录

Upendra Kumar的更多文章

  • Debugging SPI communication issues

    Debugging SPI communication issues

    Case 1: Master can't able to produce clock and data? ? Root Causes: Master mode not enabled in control register. SPI…

    1 条评论
  • Understanding Data Watchpoints in Embedded Debugging

    Understanding Data Watchpoints in Embedded Debugging

    In embedded systems debugging, Data Watchpoints are a powerful tool for tracking variable modifications in real-time…

  • System Basis Chips (SBCs)

    System Basis Chips (SBCs)

    What is an SBC? SBC (System Basis Chip) is an integrated chip used in automotive Electronic Control Units (ECUs). It…

  • NVRAM Manager in AUTOSAR

    NVRAM Manager in AUTOSAR

    1. Basic Working Principle : Consider fig.

  • AUTOSAR DCM Module

    AUTOSAR DCM Module

    1. AUTOSAR DCM Module : In case of vehicle diagnostics, diagnostic tester tool sends a diagnostic request to ECU and…

    1 条评论
  • Memory Organization

    Memory Organization

    1. 32-bit Address Space: - The ARM processor uses a 32-bit address, meaning it can address up to 4 GB of memory.

    1 条评论

社区洞察

其他会员也浏览了