CN-121979555-A - Software decoupling and data interaction method for integrated controller
Abstract
The invention provides a software decoupling and data interaction method for an integrated controller, which adopts a three-layer physical logic layering architecture, wherein logic connection is realized among all layers through preset data and signal interaction channels, the method comprises an application software layer, a middle software layer and a bottom software layer, and the middle software layer is used as a mandatory information transfer and sharing layer to realize complete decoupling of access of the application software layer and the bottom hardware, so that modularization, maintainability and portability of a system are improved.
Inventors
- CHEN XIAOJIE
- LI JINDA
- XIA JINGLIN
- WEI XUAN
- LU YUANYUAN
- ZHANG ZILE
Assignees
- 玉柴芯蓝新能源动力科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260126
Claims (8)
- 1. The software decoupling and data interaction method for the integrated controller is characterized by comprising the following steps of: Step 100, an application software layer initiates a service instruction; step 200, submitting a service instruction to a corresponding information interaction unit in the middleware layer; Step S300, data standardization and encapsulation, the information interaction unit receiving the instruction processes the original business data of the business instruction and converts the original business data into standard format data which can be uniformly circulated in the system; step 400, routing through a data sharing bus, and writing standard format data into the data sharing bus; S500, the instruction object is external hardware, a driving module of a bottom software layer executes hardware operation and sends standard format data to a CAN network or a hardware interface; step S600, the instruction object is another application module, monitors and reads the internal data frame and submits the internal data frame to the application module; step S700, hardware feedback receiving, when the external hardware generates response, writing feedback data back to the data sharing bus; Step S800, feedback data is returned, and the information interaction unit reads the feedback data and converts the feedback data into a service data format which can be understood by an application layer; And step 900, updating the application layer, receiving service data by the application software layer, updating the internal state and ending.
- 2. The method for software decoupling and data interaction for integrated controllers according to claim 1, wherein step S500 comprises: Step S510, the corresponding driving module in the bottom software layer reads the standard format data from the data sharing bus, step S520, the driving module executes hardware operation to convert the standard format data into physical electric signals and sends the physical electric signals to the actual CAN network or the hard wire interface through the controller.
- 3. The method for software decoupling and data interaction for integrated controllers according to claim 1, wherein step S600 comprises: The internal information interaction unit corresponding to the application module monitors and reads the internal data frame sent to the application module from the data sharing bus, and the internal information interaction unit analyzes the data frame, extracts the original service data and submits the original service data to the application module through the interface, in step S620.
- 4. The method for decoupling software and interacting data of integrated controller as in claim 1, wherein in step S300, the information interaction unit invokes its built-in standardized logic to process the original service data and convert it into standard format data capable of being uniformly circulated in the system, the standardized logic includes protocol stack, signal conversion logic, and data frame wrapper, and the standard format data includes CAN message, IO data packet, and internal data frame.
- 5. The method of software decoupling and data interaction for integrated controller as set forth in claim 1, wherein in step S200, the application module directly sends the service instruction data to the information interaction unit of the corresponding type uniquely bound with the application module in the intermediate software layer through the predefined logic interface thereof, and the information interaction unit includes a CAN message information interaction unit, a hard-wire information interaction unit and an internal information interaction unit.
- 6. The method for software decoupling and data interaction for integrated controllers according to claim 1, further comprising an application software layer, an intermediate software layer and a bottom software layer, wherein the intermediate software layer comprises an information interaction unit, the application software layer is in bidirectional connection with the intermediate software layer through a data sharing bus, and the intermediate software layer is in bidirectional connection with the bottom software layer through the data sharing bus.
- 7. The method for software decoupling and data interaction for integrated controllers according to claim 1, wherein said application software layer comprises more than 2 application modules, and said application modules are connected to corresponding information interaction units through logic signal connections.
- 8. The method for software decoupling and data interaction for integrated controllers according to claim 1, wherein the bottom software layer is a hardware adaptation layer and comprises a CAN driving module, an IO driving module and an operating system kernel, and the bottom software layer is connected with each information interaction unit of the middle software layer through a data sharing bus to realize bidirectional conversion and transmission of electric signals and logic data.
Description
Software decoupling and data interaction method for integrated controller Technical Field The invention belongs to the technical field of electric automobiles, and particularly relates to a software decoupling and data interaction method for an integrated controller. Background With the rapid development of electric automobile technology and the continuous improvement of intelligent degree, the number of Electronic Control Systems (ECUs) in vehicles is rapidly increased, and the electric automobile is expanded to a plurality of fields such as battery management, heat management, cabin information entertainment and advanced driving auxiliary systems from the traditional power assembly and chassis control. These systems were originally independent, distributed controllers developed for specific functions, and information interaction was performed through on-board networks (e.g., CAN, LIN buses). However, such conventional distributed architecture increasingly exposes a number of inherent drawbacks in addressing current automotive electronics complex function integration and cooperative control requirements. In the prior art, one mainstream scheme is to integrate original scattered application systems and change individual systems into software application modules running on the same hardware platform, so that unified management and unified maintenance are realized, and the cost is reduced. However, existing software application module integration schemes typically employ redefinition and development functions, or rely on internal global variables to effect inter-module information interaction. The mode not only ensures high coupling degree among software modules, but also has larger workload in the integration stage. The application realizes the function of information interaction of the original distributed controller through the vehicle-mounted network (such as CAN and LIN buses) by introducing the data sharing bus inside the integrated controller under the condition of not depending on physical hardware. The design realizes decoupling of the application and hardware and isolation between modules, so that high modularization, expandability and maintainability of the system are provided, the integration complexity is obviously reduced, and the development period is shortened. Disclosure of Invention The invention provides a software decoupling and data interaction method for an integrated controller, which realizes complete decoupling of access of an application software layer and bottom hardware by taking an intermediate software layer as a mandatory information transfer and sharing layer, thereby improving modularization, maintainability and portability of a system. An integrated controller-oriented software decoupling and data interaction method comprises the following steps: Step 100, an application software layer initiates a service instruction; step 200, submitting a service instruction to a corresponding information interaction unit in the middleware layer; Step S300, data standardization and encapsulation, the information interaction unit receiving the instruction processes the original business data of the business instruction and converts the original business data into standard format data which can be uniformly circulated in the system; Step S400, routing is performed through the data sharing bus. Writing standard format data into a data sharing bus; S500, the instruction object is external hardware, a driving module of a bottom software layer executes hardware operation and sends standard format data to a CAN network or a hardware interface; step S600, the instruction object is another application module, monitors and reads the internal data frame and submits the internal data frame to the application module; in step S700, the hardware feedback is received, and after the external hardware generates a response, the feedback data is written back to the data sharing bus. When the external hardware generates a response (e.g., status confirmation, sensor reading), the underlying BSW driver module first receives the physical electrical signal, converts it back to standard format data, and then writes it back to the data sharing bus as feedback data. Step S800, feedback data is returned, and the information interaction unit reads the feedback data and converts the feedback data into a service data format which can be understood by an application layer. The information interaction unit (or other units requiring feedback) corresponding to the original application module initiating the instruction reads the feedback data from the data sharing bus, analyzes or reversely converts the feedback data, and restores the feedback data to a service data format which can be understood by an application layer. And step 900, updating the application layer, receiving service data by the application software layer, updating the internal state and ending. The core of the implementation process of the method is that all