CN-121722107-B - Sensor and ECU simulation system and method based on multi-protocol fusion
Abstract
The application relates to the technical field of vehicles, and provides a sensor and ECU simulation system and method based on multi-protocol fusion, wherein the simulation system adopts a layered decoupling full stack integrated architecture, integrates a simulation engine architecture, a multi-protocol fusion communication architecture and a distributed and intelligent expansion architecture, and specifically comprises the following steps: the system comprises a hardware resource pool deployed on a hardware interface layer and a core processing unit, a protocol fusion processing module deployed in a field programmable gate array of the core processing unit based on a multi-protocol fusion communication architecture, an integrated simulation engine deployed on a multi-core central processing unit of the core processing unit based on a simulation engine architecture, an integrated diagnosis flashing module deployed across a user interaction layer and a software function layer, a safety fault injection module embedded with the multi-protocol fusion communication architecture and the simulation engine architecture, and a distributed coordination unit. The application can realize a full-flow integrated simulation verification platform from a signal level to a system level and from simulation to diagnosis.
Inventors
- LI JIANG
- LIN YIN
- XU WEIBING
- CHEN HAO
- CHEN QIUYUAN
- LIN YANFEN
Assignees
- 广州虹科电子科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260210
Claims (10)
- 1. The simulation system is characterized by adopting a layered decoupling full stack integrated architecture, wherein the full stack integrated architecture comprises a user interaction layer, a software function layer, a core processing unit and a hardware interface layer, each layer carries out data interaction and instruction transmission through a standardized interface, and the simulation system integrates a simulation engine architecture, a multi-protocol fusion communication architecture and a distributed and intelligent expansion architecture, and the simulation system specifically comprises: the hardware resource pool is deployed on the hardware interface layer and the core processing unit and is used for providing multi-protocol access, signal conditioning and heterogeneous computing capability; The protocol fusion processing module is deployed in the field programmable gate array of the core processing unit based on the multi-protocol fusion communication architecture and is used for carrying out hardware-level encoding and decoding, time synchronization and cross-protocol conversion on multi-protocol data; the integrated simulation engine is deployed on the multi-core central processing unit of the core processing unit based on the simulation engine architecture and is used for managing a parameterized model library and scheduling model simulation tasks to generate simulation data; The integrated diagnosis and writing module is deployed across the user interaction layer and the software function layer, and is cooperated with the protocol fusion processing module and the integrated simulation engine and used for executing diagnosis service and program writing flow based on an integrated automobile diagnosis service protocol stack in a simulation environment; the safety fault injection module is embedded into the multi-protocol fusion communication architecture and the simulation engine architecture and is used for injecting faults at different levels and guaranteeing test safety; the distributed collaborative unit is used for realizing extensible simulation and collaborative development from single ECU simulation to whole vehicle level system verification based on the distributed and intelligent extension architecture; Wherein the multi-protocol converged communication architecture comprises: a protocol interface layer corresponding to the multi-protocol communication interface of the hardware interface layer; the protocol decoding/encoding module is responsible for bidirectional conversion of unified intermediate format in the protocol data and the system, wherein the decoding process performs frame synchronization, data extraction and error detection, and the encoding process performs data encapsulation, check generation and frame formatting; The protocol conversion and data synchronization engine is deployed in the field programmable gate array and is used for carrying out cross-protocol data adaptive conversion through a three-level hardware pipeline, injecting uniform time stamps for all data by utilizing a global clock of the field programmable gate array, and carrying out time alignment of data streams with different protocols and different sampling rates through a multi-level buffer area and hardware comparator logic; The data routing module is used for distributing the converted unified format data to a storage module of a target protocol communication interface, the integrated simulation engine or the hardware interface layer according to a static or dynamic routing table; The system comprises a unified data format unit and a data processing unit, wherein the unified data format unit is used for defining an internal data structure, and the internal data structure at least comprises a time stamp, a data source, a data type, data content and a quality identification field.
- 2. The system of claim 1, wherein the hardware resource pool comprises: The system comprises a hardware interface layer, a multi-protocol communication interface, a physical layer transceiver chip, an electrical isolation and protection circuit, a physical layer transceiver chip and a physical layer circuit, wherein the hardware interface layer is used for supporting a plurality of communication protocols; The configurable signal conditioning module is positioned between the multi-protocol communication interface of the hardware interface layer and the analog-to-digital/digital-to-analog conversion unit and comprises a programmable gain amplifier and a configurable filter, wherein the gains and cut-off frequencies of the programmable gain amplifier and the configurable filter are dynamically configured according to the protocol type and the signal characteristics; The heterogeneous processing core comprises a multi-core central processor and a field programmable gate array which are interconnected through a high-speed bus, wherein the multi-core central processor is used as a control plane to run an operating system, protocol high-level logic and the integrated simulation engine, and the field programmable gate array is used as a data plane to execute protocol physical layer/link layer processing, protocol conversion and time synchronization tasks.
- 3. The system of claim 1, wherein the simulation engine architecture comprises: The simulation task scheduler adopts a layered mixed scheduling strategy, wherein in the layered mixed scheduling strategy, the highest priority layer adopts fixed priority scheduling and cannot preempt, the high priority layer adopts time-driven scheduling, and the middle priority layer and the low priority layer adopt event-driven scheduling; The system comprises a parameterized sensor model library, a model library management unit, a control algorithm model and a function model, wherein the parameterized sensor model library comprises a parameterized sensor model library and an ECU behavior model library, the sensor model library comprises layered models of a physical layer, a dynamic layer and an environment layer, and the ECU behavior model library comprises a control algorithm model and a function model; The model executor is responsible for model calculation and is used for forming a closed-loop control loop through forward data flow, ECU processing and feedback data flow, and the dynamic characteristics of the system are truly simulated; The dynamic parameter configuration unit is used for maintaining a global parameter table and realizing real-time thermal update of model parameters in the simulation process through a publish-subscribe mechanism; The intelligent analysis optimizing unit is used for constructing an autonomous closed loop through full life cycle data management, intelligent deviation analysis, automatic closed loop optimization and knowledge back feeding; and the AI test case generator is used for modeling and generating a test scene based on the multidimensional scene space and triggering the simulation task scheduler to execute the test.
- 4. The system of claim 1, wherein the distributed and intelligent expansion architecture comprises: The cloud simulation cluster is used for decomposing a complex simulation task into a plurality of subtasks and constructing a directed acyclic graph, and dynamically distributing the tasks based on real-time load; the edge node is deployed on the test site, is used for running a real-time operating system, is directly connected with the real ECU and the sensor hardware, and is in bidirectional communication with the cloud; The terminal verification client runs on the engineer terminal equipment and is used for accessing the cloud or edge node through a Web technology or a remote desktop protocol to support multi-user collaborative interaction.
- 5. The system of claim 1, wherein the diagnostic service and program flashing process provides a unified diagnostic flashing interface at the user interaction layer, and wherein diagnostic session control, read-write data, routine control, fault code management, and firmware flashing functions are implemented at a software functional layer, and wherein the diagnostic service and program flashing process communicates with a real ECU or a simulation ECU via a protocol interface of the multi-protocol converged communication architecture.
- 6. The system of claim 1, wherein the safety fault injection module employs a layered injection mechanism with hardware protection circuitry; The layered injection mechanism comprises simulation level injection embedded in the simulation engine architecture, signal level injection embedded in a field programmable gate array signal link of the multi-protocol fusion communication architecture, hardware level injection realized through a hardware protection circuit, a fault covering layer, a protocol layer and an application layer, and integrated fault white list control, pre-injection security check and real-time monitoring and emergency stop functions.
- 7. The system of claim 1, wherein the user interaction layer comprises: the model configuration module is used for configuring the communication parameters of the sensor model, the ECU behavior model and each protocol stack; The bus monitoring module is used for acquiring multi-protocol bus data through the multi-protocol fusion communication architecture, providing data filtering, statistical analysis and signal waveform display functions, and visually displaying data streams; and the diagnosis and writing module is used as an interactive interface for integrating the diagnosis and writing module and is used for supporting diagnosis instruction issuing, response monitoring and program writing operation.
- 8. The system of any one of claims 1 to 7, wherein the hardware interface layer further comprises a storage module and a power management module; The storage module is deployed on the hardware interface layer, adopts a high-speed storage medium and is used for storing a model library, configuration parameters, a test scene, an operation log and test data generated by a distributed architecture, and supporting dynamic loading and updating; The power management module is used for providing multipath isolated power output, has overcurrent, overvoltage and undervoltage monitoring and protecting functions, and provides safe power supply for each architecture and tested equipment of the system.
- 9. The system of claim 8, wherein in the simulation system, system data flows include user configuration flows, simulation execution flows, bus monitoring flows, diagnostic service flows, and distributed data flows; The user configuration flow is characterized in that the user interaction layer configuration parameters are used for analyzing the configured parameters through the software function layer and then storing the analyzed parameters into the storage module; the simulation execution flow is specifically that simulation data is generated by running the integrated simulation engine driving model, and the simulation data is output to external equipment or fed back to an internal monitoring module through the hardware interface layer after being packaged by the multi-protocol fusion communication architecture; the bus monitoring flow is specifically that external data is collected through the hardware interface layer, and the external data is sent to the bus monitoring module of the user interaction layer after being analyzed by the multi-protocol fusion communication architecture; the diagnosis service flow specifically comprises that after the diagnosis request is received and analyzed by the multi-protocol fusion communication framework, the diagnosis request is processed by the integrated diagnosis refreshing module, and the processing result is returned by the multi-protocol fusion communication framework; the distributed data flow concretely comprises the steps that data interaction is achieved between an edge node and a cloud end through a state synchronization and collaboration mechanism, a terminal verifies that a client accesses simulation resources and test data of the cloud end or the edge node through a network, the state synchronization and collaboration mechanism achieves clock synchronization through a time synchronization protocol, breakpoint continuous simulation is supported through state snapshot, data consistency is guaranteed through a mixed consistency model, and the distributed data flow has a fault tolerance and degradation mechanism and collaborative development support function.
- 10. Sensor and ECU simulation method based on multi-protocol fusion, characterized in that the method is based on a full stack integrated architecture, a simulation engine architecture, a multi-protocol fusion communication architecture and a cooperation of distributed and intelligent expansion architecture according to any one of claims 1 to 9, and specifically comprises the following steps: The protocol fusion and synchronization steps are that based on the multi-protocol fusion communication architecture, hardware-level decoding is carried out on multi-protocol data in the field programmable gate array, the multi-protocol data is converted into a unified intermediate frame format, a unified time stamp is written at the decoding time, and standardized data with conversion quality identification is generated based on a routing table and semantic mapping rules; Based on the simulation engine architecture, loading a parameterized model library on a multi-core central processing unit, executing sensor and ECU collaborative simulation according to a mixed scheduling strategy, realizing uninterrupted model parameter updating through a dynamic parameter configuration unit, comparing a simulation result with reference data by utilizing an intelligent analysis optimization unit, automatically identifying deviation and optimizing model parameters and a test scene, and generating a high-value test case through an AI test case generator; The diagnosis and refreshing integrated step is that a diagnosis or refreshing instruction is generated based on an integrated automobile diagnosis service protocol stack through the integrated diagnosis and refreshing module, and is issued to a simulation ECU or a real ECU through the multi-protocol fusion communication architecture, and response data of the simulation ECU or the real ECU is received and fed back to a user interaction layer to complete diagnosis service or program refreshing flow; The fault injection and verification steps are that based on the safety fault injection module, preset faults are injected at a simulation level, a signal level or a hardware level, a fault propagation path is tracked through the multi-protocol fusion communication architecture, and the simulation engine architecture is utilized to analyze the influence of the faults on the system performance so as to verify the fault tolerance and degradation strategy of the system; The distributed collaborative simulation step comprises the steps of decomposing complex simulation tasks based on cloud simulation clusters of the distributed and intelligent expansion architecture and distributing the complex simulation tasks to a plurality of computing nodes for parallel execution; based on the distributed and intelligent expansion architecture, the terminal verifies that the client performs remote access and collaborative operation, and the data consistency and the simulation credibility of each node are ensured through a state synchronization mechanism; The data quality and confidence level guaranteeing step is that integrity, consistency and credibility checking are carried out on the data after protocol conversion, the confidence level of the simulation result is evaluated, abnormal states in the simulation process are detected, and a recovery strategy is executed.
Description
Sensor and ECU simulation system and method based on multi-protocol fusion Technical Field The application relates to the technical field of vehicles, in particular to a sensor and ECU simulation system and method based on multi-protocol fusion. Background As automotive electronics architecture evolves towards domain control and central computing, vehicular networks exhibit typical heterogeneous characteristics, with send (SINGLE EDGE Nibble Transmission, single-sided nibble transport protocol), PSI5 (PERIPHERAL SENSOR INTERFACE, an open standard based on existing sensor interfaces for peripheral airbag sensors), DSI3 (Distributed SYSTEM INTERFACE ), CAN (Controller Area Network, controller area network bus)/CANFD (Controller Area Network with Flexible Data Rate, variable rate controller area network), and vehicular ethernet protocols coexisting for a long period of time. In the development and testing of the ECU (Electronic Control Unit, electronic controller unit), its simulation scheme has protocol isolation bottlenecks, model statics bottlenecks, and tool chain splitting bottlenecks. The system comprises a single protocol simulation device, a model static bottleneck, a tool chain splitting bottleneck and a control system, wherein the single protocol simulation device is characterized in that a real heterogeneous network environment cannot be constructed by the single protocol simulation device, so that system cascade debugging is difficult, time sequence and logic problems of cross-protocol communication cannot be reproduced, the model static bottleneck is characterized in that a traditional model is focused on static input and output characteristics, dynamic characteristics such as nonlinearity, hysteresis and temperature drift of a sensor, and the like, control logic evolution of an ECU under a complex working condition is not sufficiently simulated, simulation confidence is low, tool chain splitting bottlenecks are characterized in that simulation, diagnosis and refreshing tools are mutually independent, data and states are inconsistent, a test flow is long, and verification efficiency is low. In summary, there is no full-flow integrated simulation verification platform from signal level to system level and from simulation to diagnosis. Disclosure of Invention The application provides a sensor and ECU simulation system and method based on multi-protocol fusion, which can realize a full-flow integrated simulation verification platform from a signal level to a system level and from simulation to diagnosis. In one aspect, the application provides a sensor and ECU simulation system based on multi-protocol fusion, the simulation system adopts a layered decoupling full stack integrated architecture, the full stack integrated architecture comprises a user interaction layer, a software function layer, a core processing unit and a hardware interface layer, each layer performs data interaction and instruction transfer through a standardized interface, and the simulation system integrates a simulation engine architecture, a multi-protocol fusion communication architecture and a distributed and intelligent expansion architecture, and the simulation system specifically comprises: the hardware resource pool is deployed on the hardware interface layer and the core processing unit and is used for providing multi-protocol access, signal conditioning and heterogeneous computing capability; The protocol fusion processing module is deployed in the field programmable gate array of the core processing unit based on the multi-protocol fusion communication architecture and is used for carrying out hardware-level encoding and decoding, time synchronization and cross-protocol conversion on multi-protocol data; the integrated simulation engine is deployed on the multi-core central processing unit of the core processing unit based on the simulation engine architecture and is used for managing a parameterized model library and scheduling model simulation tasks to generate simulation data; The integrated diagnosis and writing module is deployed across the user interaction layer and the software function layer, and is cooperated with the protocol fusion processing module and the integrated simulation engine and used for executing diagnosis service and program writing flow based on an integrated automobile diagnosis service protocol stack in a simulation environment; the safety fault injection module is embedded into the multi-protocol fusion communication architecture and the simulation engine architecture and is used for injecting faults at different levels and guaranteeing test safety; And the distributed cooperative unit is used for realizing extensible simulation and cooperative development from single ECU simulation to whole vehicle-level system verification based on the distributed and intelligent extension architecture. In another aspect, the application provides a sensor and ECU simulation method based on multi-protocol fu