What is the VFB and what does it do?
In AUTOSAR, applications are designed as a combination of interconnected SWCs. The virtual function bus is the communication mechanism for these SWCs to interact with each other. During the system configuration phase, SWCs are mapped to specific ECUs. Therefore, the virtual connections between SWCs are mapped to local connections (on the same ECU) or communication mechanisms based on the vehicle network, such as CAN, Flexray, etc. The interface between SWCs and between SWCs and BSWs is called RTE.
The following figure shows the system configuration process: map each SWC to the corresponding ECU. Depending on the system requirements, different SWCs may be mapped to the same ECU (communicating through the local RTE interface) or to different ECUs (the communication RTE interface must be based on CAN, Flexray and other vehicle networks).
A SWC contains some or all of the functional modules. A SWC consists of code implementation and formal description files associated with it. The concept of virtual functional bus realizes the strict isolation of application software and basic software. The SWC that implements the application software is largely independent of the communication mechanism through which the SWC can interact with other SWCs or hardware (such as sensors and actuators).
The VFB can be used to specify the complete communication of the system, including all providers (Provider or Server) and users (Receiver or Client). Therefore, the VFB can be used to check the credibility of software component communication. The communication connection and the connected SWC are saved in the same description file, which will be used in the next few stages (mapping, software configuration, etc.).
VFB needs to provide all basic services to SWC that implements vehicle functions:
-
Communicate with other SWCs in the system
-
Communicate with sensors or actuators in the system
-
Access standard services such as reading and writing NVM
-
Respond to changes in operating modes, such as changes in the power state of the ECU
-
Interaction with calibration and measurement systems in the system
Port and Interface
The central element used when building a system at the VFB level is the SWC. A SWC has well-defined Ports through which the SWC can interact with other SWCs. A Port always belongs to only one SWC and acts as an interaction point between that SWC and other SWCs that communicate with it.
The following figure shows an example of a SWC definition. The SWC is called SeatHeatControl, which controls the heating unit in the seat based on several inputs. In this example, the SWC requires the following information as input:
-
Whether the seat is occupied (via port "SeatSwitch")
-
Seat heating temperature setting (via port "Setting")
-
Power status (via port "PowerManagement"), which can disable seat heating in certain situations
The SWC controls:
-
DialLED related to seat temperature control (via port "DialLED")
-
Seat heating element (via port "HeatingElement")
Furthermore, the SWC has calibration capabilities (via port "Calibration"), requires the state of the ECU (via port "ecuMode"), and requires access to the NVM (via port "nv").
Port is mentioned many times in the above examples. What is a port? What is its function?
As mentioned above, port is the interaction point between SWCs. Port and interface always form the bridge for communication between SWCs. Port can be simply understood as port, and interface can be understood as the cable connecting the port.
A port can be a PPort, RPort, or PRPort. A PPort or PRPort provides data defined in a port-interface, while an RPort or PRPort retrieves data defined in a port-interface.
The following table lists some of the port and interface types:
The above only lists some of the commonly used Port-Interface types in AUTOSAR. For more types, you can refer to the AUTOSAR manual.
When a SWC's PPort provides a client-server interface, the component is responsible for implementing the operations defined in the interface.
In the example below, the SWC "SeatHeating" implements the operation "SetPower", which can be called by other SWCs through the port "Setting". The SWC "SeatHeatingControl" calls the operation "SetPower" through the port "HeatingElement".
When a SWC provides a sender-receiver interface, the component is responsible for providing the values defined in the interface.
In the following example, the SWC "SeatSwitch" provides the Boolean value for "PassengerDetected" through port "Switch". Similarly, the SWC "SeatHeatingControl" can read the state of "PassengerDetected" through port "SeatSwitch".
Previous article:Let's talk about the most common sensors in the perception level of intelligent driving systems
Next article:What is DCM? Where does DCM fit in AUTOSAR?
Recommended ReadingLatest update time:2024-11-16 09:39
- Popular Resources
- Popular amplifiers
- Design and implementation of Ethernet communication system for domain controller based on AUTOSAR
- Driver Assistance Systems Brochure: Basic information, components and systems for active safety and comfort
- AUTOSAR Specification and Automotive Controller Software Development
- Brakes, brake control and driver assistance systems (BOSCH)
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications