Programming method and system for electronic control module

By obtaining and analyzing the configuration file and network request information of the electronic control module, performing unit connection assembly and control event analysis, realizing event-driven programming, solving the problems of difficulty in debugging and insufficient complex event response in traditional programming methods, and improving the electronic control module response speed and stability.

CN118689205BActive Publication Date: 2024-11-12SHENZHEN BTL TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411163166.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-12
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

The traditional electronic control module programming method has problems such as debugging difficulties and difficulty in adapting to complex control event-driven programming processes, resulting in insufficient response speed and stability.

Method used

By obtaining the configuration file and network request information of the control unit, performing unit connection assembly analysis and control event analysis, generating control events, event-driven programming and development, and conducting online simulation debugging and real-time monitoring, optimizing the programming control logic program.

Benefits of technology

It improves the response speed and flexibility of the electronic control module, reduces resource waste and energy consumption, enhances programming and development efficiency and quality, simplifies the debugging process, and ensures the stability and reliability of the module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689205B_ABST
    Figure CN118689205B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of programming control technology, and in particular to a programming method and system for an electronic control module. The method comprises the following steps: obtaining configuration files and network request information of each control unit in the electronic control module and performing unit connection assembly analysis and control event analysis to generate control events between each control unit in the electronic control module; performing event-driven programming development on each control unit in the electronic control module, and performing program programming parameter configuration and online simulation debugging to generate an electronic control unit programming online simulation debugging process; performing programming real-time monitoring on the electronic control unit programming online simulation debugging process to obtain abnormal variables monitored during the electronic control unit programming debugging process; performing programming optimization processing on the electronic control unit programming control logic program to obtain an electronic control unit reprogramming control logic program. The present invention can quickly and flexibly configure and optimize control logic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of programming control technology, and in particular to a programming method and system for an electronic control module. Background Art

[0002] In modern electronic control modules, the development of programming methods is crucial to improving the flexibility, functionality and maintainability of control modules. With the advancement of software development technology and embedded systems, electronic control module programming methods have gradually become the focus of industry attention, providing new solutions for system design and development. By using high-level programming languages ​​and integrated development environments (IDEs), such as C / C++, Python, etc., instead of traditional assembly language or low-level language programming. By using high-level languages, developers can use richer programming functions and library functions to speed up development, reduce errors and improve code readability. The integrated development environment provides a wealth of debugging tools and simulators to help developers debug and verify code more quickly, thereby improving development efficiency and product quality. However, traditional electronic control module programming methods usually rely on hardware programming and low-level language development, and often have problems such as debugging difficulties and difficulty adapting to complex control event-driven programming processes. Summary of the invention

[0003] Based on this, it is necessary for the present invention to provide a programming method and system for an electronic control module to solve at least one of the above technical problems.

[0004] To achieve the above object, a programming method for an electronic control module comprises the following steps:

[0005] Step S1: acquiring configuration files and network request information of each control unit in the electronic control module, and performing unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module to obtain a unit connection assembly relationship between each control unit in the electronic control module;

[0006] Step S2: performing control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module to generate control events between each control unit in the electronic control module; performing event-driven programming development on each control unit in the electronic control module based on the control events between each control unit in the electronic control module to obtain a programming control logic program of the electronic control unit;

[0007] Step S3: configuring program programming parameters for each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain a logic program programming parameter configuration set between electronic control units; performing online simulation debugging on the electronic control unit programming control logic program based on the logic program programming parameter configuration set between electronic control units to generate an electronic control unit programming online simulation debugging process;

[0008] Step S4: Perform real-time monitoring on the online simulation debugging process of the electronic control unit programming to obtain abnormal monitoring variables of the electronic control unit programming debugging process; perform programming optimization processing on the electronic control unit programming control logic program based on the abnormal monitoring variables of the electronic control unit programming debugging process to obtain the electronic control unit reprogramming control logic program.

[0009] The present invention first obtains the configuration files of each control unit (including input and output control unit, communication drive control unit, logic judgment control unit and network timing control unit) in the electronic control module. These configuration files contain detailed settings and parameter settings of the control unit and are key files for realizing the functions of the control unit. The dynamically generated configuration files can be adjusted according to real-time needs and environmental changes to optimize the performance and efficiency of the control unit to the greatest extent. In addition, by using the HTTP proxy server to capture and process network requests of each control unit in the electronic control module, the behavior mode and communication characteristics of each control unit in the network environment can be deeply understood, thereby providing an important basis for subsequent optimization and security assessment. At the same time, by performing unit connection assembly analysis on each control unit in the electronic control module based on the configuration files of each control unit in the electronic control module and the network request information, the purpose of this process is to reveal the connection mode and assembly relationship between each control unit, ensure that the control unit can work together and realize the expected function, and optimize the data flow and information exchange between the control units through accurate unit connection assembly analysis, improve the response speed and stability of the overall electronic control module, thereby meeting the actual application requirements in complex environments. Secondly, by analyzing the control events of each control unit in the electronic control module based on the unit connection and assembly relationship between each control unit in the electronic control module, the goal of this step is to generate control events, that is, the key events and dynamic changes that occur between each control unit during the operation of the system. Through control event analysis, key operations and state transitions in the electronic control module can be predicted and responded to, providing the necessary basis for real-time control and monitoring of the electronic control module programming program. This analysis provides key information for optimizing and improving the control logic for the subsequent programming development process. By developing event-driven programming for each control unit in the electronic control module based on the control events between each control unit in the electronic control module, the core of this step is to design and develop the control logic program between the control units according to the control events. Through event-driven programming, it can be ensured that the control unit can respond and adjust in the expected way when receiving a specific event. This development method not only improves the response speed and flexibility of the electronic control module, but also effectively reduces the waste of module resources and energy consumption, so as to better adapt to the complex control event-driven programming process. Then, by programming the parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program, this process is not limited to simple parameter settings, but focuses on ensuring that each control unit can accurately perform its functions during operation according to the design specifications and electronic control module requirements. Through programming parameter configuration, the behavior of the control unit can be adjusted and optimized to adapt to different working scenarios and operating conditions, thereby improving the flexibility and responsiveness of the electronic control module.By performing online simulation debugging on the programming control logic program of the electronic control unit based on the programming parameter configuration set of the logic program between the electronic control units, this process is an important link to ensure the design and implementation of the electronic control module. Through online simulation debugging, the performance and behavior of the electronic control module in various operating scenarios can be simulated and evaluated in real time. Through simulation debugging, developers can verify the correctness of the programming logic, the stability and response speed of the program, and at the same time discover and solve potential program errors and logic problems. This iterative debugging process helps to improve the development efficiency and quality of the control unit programming in the electronic control module, ensuring that the final delivered electronic control unit can meet the expected performance and reliability standards, thereby simplifying the programming and debugging process on the electronic control module. Finally, by programming and real-time monitoring of the online simulation debugging process of the electronic control unit programming, the operating data and status of each control unit in the simulation environment can be collected and analyzed, and abnormal variables such as sudden input changes and unexpected output behaviors can be analyzed from them. It can also identify and locate existing program logic errors or system performance problems. This analysis not only helps to solve the current debugging problems, but also helps to improve the programming program design and control strategies, thereby improving the reliability and stability of the programming process of the electronic control module. Based on the monitoring of abnormal variables in the programming and debugging process of the electronic control unit, the root causes and impacts of abnormal variables are analyzed to formulate specific adjustment control strategies, and programming optimization processing of the electronic control unit programming control logic program is an important step to ensure that the electronic control module can meet the design requirements after completing the simulation debugging. The optimization process includes code reconstruction, performance adjustment, algorithm optimization and other aspects, aiming to eliminate potential program defects and performance bottlenecks, and ensure the stability and reliability of the programming process of the electronic control module. This process requires not only deep technical understanding and operational experience, but also team collaboration and effective communication to ensure that the optimized control logic program can be smoothly applied to actual scenarios, so as to achieve the expected effects and performance indicators.

[0010] Preferably, the present invention further provides a programming system for an electronic control module, which is used to execute the programming method for an electronic control module as described above. The programming system for an electronic control module comprises:

[0011] An electronic control unit connection assembly analysis module, used to obtain configuration files and network request information of each control unit in the electronic control module, and perform unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module, so as to obtain a unit connection assembly relationship between each control unit in the electronic control module;

[0012] An electronic control module event-driven programming development module is used to perform control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module, so as to generate control events between each control unit in the electronic control module; based on the control events between each control unit in the electronic control module, event-driven programming development is performed on each control unit in the electronic control module, so as to obtain a programming control logic program of the electronic control unit;

[0013] The electronic control module programming simulation debugging module is used to configure the program programming parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain the logic program programming parameter configuration set between the electronic control units; based on the logic program programming parameter configuration set between the electronic control units, the electronic control unit programming control logic program is online simulated and debugged to generate the electronic control unit programming online simulation debugging process;

[0014] The programming and debugging real-time monitoring exception optimization module is used to perform real-time monitoring on the online simulation debugging process of the electronic control unit programming, and obtain the monitoring exception variables of the electronic control unit programming and debugging process; based on the monitoring exception variables of the electronic control unit programming and debugging process, the programming optimization processing of the electronic control unit programming control logic program is performed, so as to obtain the electronic control unit reprogramming control logic program.

[0015] In summary, the present invention provides a programming system for an electronic control module, which is composed of an electronic control unit connection assembly analysis module, an electronic control module event-driven programming development module, an electronic control module programming simulation debugging module, and a programming debugging real-time monitoring abnormality optimization module. It can implement any programming method for an electronic control module described in the present invention, and is used to combine the operations between computer programs running on various modules to implement the programming method for an electronic control module. The internal structures of the system cooperate with each other, which can greatly reduce duplication of work and manpower investment, and can quickly and effectively provide a more accurate and efficient programming process for the electronic control module, thereby simplifying the operating flow of the programming system for the electronic control module. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:

[0017] Figure 1 A schematic flow chart of the steps of a programming method for an electronic control module according to the present invention;

[0018] Figure 2 for Figure 1 Detailed step flow diagram of step S1;

[0019] Figure 3 for Figure 2 Detailed step flow chart of step S13 in FIG. DETAILED DESCRIPTION

[0020] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.

[0021] To achieve this, please refer to Figures 1 to 3 The present invention provides a programming method for an electronic control module, the method comprising the following steps:

[0022] Step S1: acquiring configuration files and network request information of each control unit in the electronic control module, and performing unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module to obtain a unit connection assembly relationship between each control unit in the electronic control module;

[0023] Step S2: performing control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module to generate control events between each control unit in the electronic control module; performing event-driven programming development on each control unit in the electronic control module based on the control events between each control unit in the electronic control module to obtain a programming control logic program of the electronic control unit;

[0024] Step S3: configuring program programming parameters for each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain a logic program programming parameter configuration set between electronic control units; performing online simulation debugging on the electronic control unit programming control logic program based on the logic program programming parameter configuration set between electronic control units to generate an electronic control unit programming online simulation debugging process;

[0025] Step S4: Perform real-time monitoring on the online simulation debugging process of the electronic control unit programming to obtain abnormal monitoring variables of the electronic control unit programming debugging process; perform programming optimization processing on the electronic control unit programming control logic program based on the abnormal monitoring variables of the electronic control unit programming debugging process to obtain the electronic control unit reprogramming control logic program.

[0026] In the embodiment of the present invention, please refer to Figure 1FIG. 1 is a schematic diagram of a step flow chart of a programming method for an electronic control module according to the present invention. In this example, the programming method for an electronic control module includes the following steps:

[0027] Step S1: acquiring configuration files and network request information of each control unit in the electronic control module, and performing unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module to obtain a unit connection assembly relationship between each control unit in the electronic control module;

[0028] In the embodiment of the present invention, the types of each control unit in the electronic control module are obtained and determined by sampling, including an input / output control unit, a communication drive control unit, a logic judgment control unit, and a network timing control unit, and the configuration specifications of each control unit in the electronic control module are identified and analyzed to obtain its specific configuration specification range information, such as processing power, storage capacity, supported communication protocols, operating system requirements, etc. At the same time, the configuration requirements of each control unit in the electronic control module are analyzed in detail by using a demand analysis method to obtain its specific configuration requirement information, which reflects the role and functional requirements of the control unit in the electronic control module, such as specific input / output requirements, communication stability requirements, logical operation complexity, etc., and according to the configuration specifications and configuration requirements obtained by the above analysis, a configuration file of each control unit is dynamically generated, and these configuration files contain the settings and parameters required by the control unit in the electronic control module, thereby generating configuration files of each control unit in the electronic control module. The network request relationship between each control unit in the electronic control module is captured and processed by using an HTTP proxy server to obtain network communication request information between each control unit, including data transmission, response time, and request content, thereby obtaining network request information of each control unit in the electronic control module. Then, by combining the configuration files of each control unit in the electronic control module obtained by the previous analysis and the network request information, the corresponding control units in the electronic control module are assembled and analyzed to deeply analyze how each control unit is interconnected and collaborated under the specific network request connection mode and configuration attribute conditions, and determine how to optimally assemble and connect each control unit, so as to ensure that the entire electronic control module can work together effectively, and finally obtain the unit connection assembly relationship between each control unit in the electronic control module.

[0029] Step S2: performing control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module to generate control events between each control unit in the electronic control module; performing event-driven programming development on each control unit in the electronic control module based on the control events between each control unit in the electronic control module to obtain a programming control logic program of the electronic control unit;

[0030] In the embodiment of the present invention, by combining the unit connection assembly relationship between the control units in the electronic control module obtained by the previous analysis, the control connection relationship of the corresponding control units in the electronic control module is assembled, so as to be realized through hardware connection, data communication protocol or logical control relationship, so as to form a clear control relationship framework, and the generated control relationship framework is deeply analyzed to identify how each control unit receives and executes the control command, and to identify and understand the flow path and change law of the data flow between the control units. At the same time, by combining the control command transmission change and the control data flow change between the control units, a detailed analysis of the control event is performed, which involves identifying the various events and situations occurring therein and the impact of each event on each control unit, so as to analyze the corresponding control events, including sensor input and output, network messages, system state changes, etc., so as to generate the control events between the control units in the electronic control module. Then, by combining the control events between the control units in the electronic control module obtained by the analysis, the corresponding control units in the electronic control module are subjected to event-driven programming program development work, which includes writing and optimizing the event driver logic of each control unit, ensuring that each electronic control unit can quickly and accurately perform the corresponding control operation according to the received event information, and finally obtaining the electronic control unit programming control logic program.

[0031] Step S3: configuring program programming parameters for each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain a logic program programming parameter configuration set between electronic control units; performing online simulation debugging on the electronic control unit programming control logic program based on the logic program programming parameter configuration set between electronic control units to generate an electronic control unit programming online simulation debugging process;

[0032] In an embodiment of the present invention, by configuring specific program programming parameters for each control unit in the electronic control module according to the previously designed electronic control unit programming control logic program, for example, considering an automotive electronic control unit system, which includes an engine control unit, a brake control unit and a steering control unit, engineers need to configure corresponding control parameters according to the functions and performance requirements of each control unit, such as maximum speed, braking force and steering response speed, so as to obtain a logic program programming parameter configuration set between electronic control units. By further setting specific programming parameter input conditions according to the logic program programming parameter configuration set obtained by the previous configuration, and implementing environmental change simulation analysis of the previously designed electronic control unit programming control logic program, so as to simulate different environmental conditions and external influences, such as temperature changes, road conditions and load changes, etc., then, by using the previously set programming parameter input conditions and environmental change simulation conditions to perform online simulation debugging on the corresponding electronic control unit programming control logic program, this includes using simulation software or hardware simulation platform to simulate various operation scenarios and condition changes in the actual operating environment, so as to ensure that the programming program enables the electronic control module to operate safely and reliably in actual applications, and finally simulate and generate the electronic control unit programming online simulation debugging process.

[0033] Step S4: Perform real-time monitoring on the online simulation debugging process of the electronic control unit programming to obtain abnormal monitoring variables of the electronic control unit programming debugging process; perform programming optimization processing on the electronic control unit programming control logic program based on the abnormal monitoring variables of the electronic control unit programming debugging process to obtain the electronic control unit reprogramming control logic program.

[0034] In an embodiment of the present invention, a real-time monitoring system is established to instantly capture and record various key data and states during the online simulation debugging of the electronic control unit programming. This includes communication monitoring between the programming tool and the electronic control unit, such as through the CAN bus or other communication protocols, so as to use special monitoring software or write a real-time data capture program through an automated script. For example, when an engineer starts programming and debugging a drive control unit (such as an engine), the monitoring system can read and record various parameters and status information of the control unit in real time, such as engine speed, throttle position, sensor feedback, etc., and perform an abnormal analysis of the debugging process on the corresponding online simulation debugging process of the electronic control unit programming by using statistical methods, graphic analysis and data mining techniques to identify and analyze whether there are sudden data fluctuations, abnormal values ​​of sensor feedback, or abnormal variables such as control logic execution paths that do not meet expectations, thereby obtaining abnormal variables for monitoring the programming and debugging process of the electronic control unit. Then, through the in-depth analysis of the abnormal variables monitored in the programming and debugging process of the electronic control unit obtained in the previous analysis, the root cause of the abnormal variables is found out by combining the real-time monitoring data and the control logic of the system design, and the corresponding adjustment strategy is determined to optimize the programming control logic program of the corresponding electronic control unit with abnormalities. This process involves modifying the existing programming code, updating the control algorithm or reconfiguring the system parameters, so as to achieve higher programming and debugging effects and system stability, and finally obtain the reprogramming control logic program of the electronic control unit.

[0035] The present invention first obtains the configuration files of each control unit (including input and output control unit, communication drive control unit, logic judgment control unit and network timing control unit) in the electronic control module. These configuration files contain detailed settings and parameter settings of the control unit and are key files for realizing the functions of the control unit. The dynamically generated configuration files can be adjusted according to real-time needs and environmental changes to optimize the performance and efficiency of the control unit to the greatest extent. In addition, by using the HTTP proxy server to capture and process network requests of each control unit in the electronic control module, the behavior mode and communication characteristics of each control unit in the network environment can be deeply understood, thereby providing an important basis for subsequent optimization and security assessment. At the same time, by performing unit connection assembly analysis on each control unit in the electronic control module based on the configuration files of each control unit in the electronic control module and the network request information, the purpose of this process is to reveal the connection mode and assembly relationship between each control unit, ensure that the control unit can work together and realize the expected function, and optimize the data flow and information exchange between the control units through accurate unit connection assembly analysis, improve the response speed and stability of the overall electronic control module, thereby meeting the actual application requirements in complex environments. Secondly, by analyzing the control events of each control unit in the electronic control module based on the unit connection and assembly relationship between each control unit in the electronic control module, the goal of this step is to generate control events, that is, the key events and dynamic changes that occur between each control unit during the operation of the system. Through control event analysis, key operations and state transitions in the electronic control module can be predicted and responded to, providing the necessary basis for real-time control and monitoring of the electronic control module programming program. This analysis provides key information for optimizing and improving the control logic for the subsequent programming development process. By developing event-driven programming for each control unit in the electronic control module based on the control events between each control unit in the electronic control module, the core of this step is to design and develop the control logic program between the control units according to the control events. Through event-driven programming, it can be ensured that the control unit can respond and adjust in the expected way when receiving a specific event. This development method not only improves the response speed and flexibility of the electronic control module, but also effectively reduces the waste of module resources and energy consumption, so as to better adapt to the complex control event-driven programming process. Then, by programming the parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program, this process is not limited to simple parameter settings, but focuses on ensuring that each control unit can accurately perform its functions during operation according to the design specifications and electronic control module requirements. Through programming parameter configuration, the behavior of the control unit can be adjusted and optimized to adapt to different working scenarios and operating conditions, thereby improving the flexibility and responsiveness of the electronic control module.By performing online simulation debugging on the programming control logic program of the electronic control unit based on the programming parameter configuration set of the logic program between the electronic control units, this process is an important link to ensure the design and implementation of the electronic control module. Through online simulation debugging, the performance and behavior of the electronic control module in various operating scenarios can be simulated and evaluated in real time. Through simulation debugging, developers can verify the correctness of the programming logic, the stability and response speed of the program, and at the same time discover and solve potential program errors and logic problems. This iterative debugging process helps to improve the development efficiency and quality of the control unit programming in the electronic control module, ensuring that the final delivered electronic control unit can meet the expected performance and reliability standards, thereby simplifying the programming and debugging process on the electronic control module. Finally, by programming and real-time monitoring of the online simulation debugging process of the electronic control unit programming, the operating data and status of each control unit in the simulation environment can be collected and analyzed, and abnormal variables such as sudden input changes and unexpected output behaviors can be analyzed from them. It can also identify and locate existing program logic errors or system performance problems. This analysis not only helps to solve the current debugging problems, but also helps to improve the programming program design and control strategies, thereby improving the reliability and stability of the programming process of the electronic control module. Based on the monitoring of abnormal variables in the programming and debugging process of the electronic control unit, the root causes and impacts of abnormal variables are analyzed to formulate specific adjustment control strategies, and programming optimization processing of the electronic control unit programming control logic program is an important step to ensure that the electronic control module can meet the design requirements after completing the simulation debugging. The optimization process includes code reconstruction, performance adjustment, algorithm optimization and other aspects, aiming to eliminate potential program defects and performance bottlenecks, and ensure the stability and reliability of the programming process of the electronic control module. This process requires not only deep technical understanding and operational experience, but also team collaboration and effective communication to ensure that the optimized control logic program can be smoothly applied to actual scenarios, so as to achieve the expected effects and performance indicators.

[0036] Preferably, as an embodiment of the present invention, reference is made to Figure 2 As shown, Figure 1 Detailed step flow diagram of step S1 in FIG. 1 , in this embodiment, step S1 includes the following steps:

[0037] Step S10: Acquire various control units in the electronic control module, wherein the control units include an input and output control unit, a communication drive control unit, a logic judgment control unit, and a network timing control unit;

[0038] In an embodiment of the present invention, various control unit types within an electronic control module are acquired and determined through sampling, including an input / output control unit, a communication drive control unit, a logic judgment control unit, and a network timing control unit. These control units play different roles and functions in an electronic control module. For example, the input / output control unit is responsible for receiving and sending data, the communication drive control unit manages communication between devices, the logic judgment control unit executes complex decision logic, and the network timing control unit is responsible for synchronization and timing related operations.

[0039] Step S11: performing configuration specification identification and analysis on each control unit in the electronic control module to obtain configuration specification range information of each control unit in the electronic control module;

[0040] In an embodiment of the present invention, the configuration specifications of each control unit in the electronic control module are identified and analyzed to obtain its specific configuration specification range information. These specification information usually covers hardware and software requirements, such as processing power, storage capacity, supported communication protocols, operating system requirements, etc. For example, assume that a communication drive control unit in a smart home system is required to support multiple communication protocols such as Wi-Fi, Bluetooth and Zigbee, and have stable data transmission rates and low power consumption characteristics. In addition, the logic judgment control unit requires sufficient storage space and processing power to process complex decision logic and respond to environmental changes in real time. By identifying and analyzing the configuration specifications of these control units, it can be ensured that each control unit can meet its required functional and performance requirements during system integration and operation, and finally obtain the configuration specification range information of each control unit in the electronic control module.

[0041] Step S12: performing configuration requirement analysis on each control unit in the electronic control module to obtain configuration requirement information of each control unit in the electronic control module;

[0042] In an embodiment of the present invention, a detailed analysis is performed on the configuration requirements of each control unit in the electronic control module by using a requirement analysis method to obtain its specific configuration requirement information. The requirement information reflects the role and functional requirements of the control unit in the electronic control module, such as specific input and output requirements, communication stability requirements, logic operation complexity, etc. For example, consider a logic judgment control unit in a medical device, which needs to process data provided by various sensors and execute corresponding medical diagnosis logic. The control unit requires highly precise data acquisition and processing capabilities to ensure the accuracy and real-time nature of the diagnosis results. In addition, the network timing control unit requires strict timing management capabilities to ensure the synchronization and coordination of equipment operations, and finally the configuration requirement information of each control unit in the electronic control module is obtained.

[0043] Step S13: dynamically generating configuration files for each control unit in the electronic control module based on the configuration specification range information and configuration requirement information of each control unit in the electronic control module, so as to generate configuration files for each control unit in the electronic control module;

[0044] In an embodiment of the present invention, configuration files for corresponding control units in the electronic control module are dynamically generated by combining the configuration specification range information and configuration requirement information of each control unit in the electronic control module obtained by previous analysis, so as to dynamically generate configuration files for each control unit. These configuration files include the settings and parameters required for the control unit in the electronic control module, thereby ensuring that it can be configured and operated according to the design requirements during operation, and finally generating configuration files for each control unit in the electronic control module.

[0045] Step S14: performing network request capture processing on each control unit in the electronic control module through the HTTP proxy server to obtain HTTP network request communication data files of each control unit in the electronic control module; performing network request content parsing on the HTTP network request communication data files of each control unit in the electronic control module to obtain network request information of each control unit in the electronic control module;

[0046] In the embodiment of the present invention, the network request relationship between each control unit in the electronic control module is captured and processed by using an HTTP proxy server to obtain its HTTP network request communication data files, which contain network communication requests between each control unit, including data transmission, response time and request content, etc., so as to obtain the HTTP network request communication data files of each control unit in the electronic control module. At the same time, the HTTP network request communication data files of each control unit in the electronic control module are parsed by using natural language processing technology or content parsing method to deeply understand the behavior mode and network communication request process between each control unit in the network environment, and finally obtain the network request information of each control unit in the electronic control module.

[0047] Step S15: performing unit connection and assembly analysis on each control unit in the electronic control module based on the configuration files of each control unit in the electronic control module and the network request information, and obtaining the unit connection and assembly relationship between each control unit in the electronic control module.

[0048] In an embodiment of the present invention, by combining the configuration files of each control unit in the electronic control module obtained by previous analysis and the network request information, the unit connection assembly analysis of each corresponding control unit in the electronic control module is performed to deeply analyze how each control unit is interconnected and cooperated under specific network request connection mode and configuration attribute conditions, and determine how to optimally assemble and connect each control unit, thereby ensuring that the entire electronic control module can work effectively together, and finally obtaining the unit connection assembly relationship between each control unit in the electronic control module.

[0049] The present invention first obtains each control unit in the electronic control module in order to fully understand the composition of the module and its functional components. These control units include input and output control units, communication drive control units, logic judgment control units and network timing control units. By collecting these control units, the overall structure of the module can be accurately identified and analyzed, laying the foundation for subsequent configuration analysis and optimization work. At the same time, by performing configuration specification identification and analysis on each control unit in the electronic control module, the configuration specification range information of each control unit is determined. This information is analyzed and extracted according to the technical specifications and functional requirements of the control unit to ensure that each control unit can meet the expected requirements in operation and performance. The key to this step is to ensure that the selected hardware and software configuration can effectively support the functional requirements of the control unit. Secondly, by performing configuration requirement analysis on each control unit in the electronic control module, the specific configuration requirement information of each control unit is further refined. By deeply analyzing the requirements of the control unit in actual operation, including input and output interfaces, communication protocols, logic judgment conditions and time plans, etc., the operating parameters and configuration requirements of each control unit can be accurately determined, thereby ensuring the stability and reliability of the entire electronic control module. Then, by dynamically generating configuration files for each control unit in the electronic control module based on the configuration specification range information and configuration requirement information of each control unit in the electronic control module, the configuration files of each control unit can be dynamically generated. These configuration files contain the detailed settings and parameter settings of the control unit and are key files for realizing the functions of the control unit. The dynamically generated configuration files can be adjusted according to real-time needs and environmental changes to optimize the performance and efficiency of the control unit to the greatest extent. Next, by using an HTTP proxy server to capture network requests for each control unit in the electronic control module, the purpose is to obtain the HTTP network request communication data files of the control unit. These data files record the communication details between the control unit and other system components or services, including data transmission, response time and request content. In addition, by parsing the network request content of the HTTP network request communication data files of each control unit in the electronic control module, the behavior mode and communication characteristics of the control unit in the network environment can be deeply understood, thereby providing an important basis for subsequent optimization and security assessment. Finally, the unit connection and assembly analysis of each control unit in the electronic control module is performed based on the configuration files of each control unit in the electronic control module and the network request information. This process aims to reveal the connection mode and assembly relationship between the various control units, ensure that the control units can work together and achieve the expected functions. Through precise unit connection and assembly analysis, the data flow and information exchange between the control units can be optimized, and the response speed and stability of the overall electronic control module can be improved, thereby meeting the actual application needs in complex environments.

[0050] Preferably, as an embodiment of the present invention, reference is made to Figure 3 As shown, Figure 2 FIG. 1 is a schematic diagram of a detailed step flow chart of step S13 in FIG. 1 . In this embodiment, step S13 includes the following steps:

[0051] Step S131: determining configuration condition constraints for each control unit in the electronic control module based on the configuration specification range information of each control unit in the electronic control module, and obtaining configuration specification constraint restrictions for each control unit in the electronic control module;

[0052] In the embodiment of the present invention, by combining the configuration specification range information of each control unit in the electronic control module obtained by previous analysis (including specification restrictions in terms of hardware capabilities, communication protocol support, data processing capabilities, etc.), a constraint analysis of the configuration conditions of each corresponding control unit in the electronic control module is performed to determine constraints including but not limited to processing capabilities, communication protocols, input and output interface standards, etc., and effectively limit the scope of operation and performance of each control unit, thereby ensuring that the specification restriction range will not be exceeded during the configuration process, and finally obtaining the configuration specification constraint restriction conditions of each control unit in the electronic control module.

[0053] Step S132: performing a statistical analysis of configuration requirement parameters of each control unit in the electronic control module based on the configuration requirement information of each control unit in the electronic control module to obtain a configuration requirement parameter set of each control unit in the electronic control module;

[0054] In an embodiment of the present invention, by combining the configuration requirement information of each control unit in the electronic control module obtained by analysis, a statistical analysis of the configuration requirement parameters of each corresponding control unit in the electronic control module is performed to quantitatively evaluate the hardware and software configuration parameters required for each control unit, such as input and output data processing speed, communication protocol support, execution speed of logical judgment conditions, etc., and finally obtain a configuration requirement parameter set for each control unit in the electronic control module.

[0055] Step S133: performing configuration characteristic mining analysis on each control unit in the electronic control module to obtain configuration characteristic information data of each control unit in the electronic control module; performing characteristic impact correlation analysis on the configuration requirement parameter set of each control unit in the electronic control module based on the configuration characteristic information data of each control unit in the electronic control module to obtain an impact correlation index between each configuration requirement parameter and the module configuration characteristic;

[0056] In the embodiment of the present invention, the configuration characteristics of each control unit are deeply analyzed and mined by using a data mining analysis method. These configuration characteristics involve detailed information on the hardware and software structure, interface protocol, data processing algorithm, etc. of the control unit, which can provide an in-depth understanding of the capabilities and limitations of each control unit, thereby helping to determine a suitable configuration scheme and parameter setting, thereby obtaining the configuration characteristic information data of each control unit in the electronic control module. At the same time, by combining the configuration characteristic information data of each control unit in the electronic control module obtained by analysis, the configuration requirement parameter set corresponding to each control unit in the electronic control module is analyzed using an impact association evaluation algorithm to statistically analyze how the hardware and software characteristics of each control unit affect its various configuration requirement parameters, and quantitatively analyze the degree of influence of different configuration characteristics on the configuration requirement parameters, and finally obtain the impact association index between each configuration requirement parameter and the module configuration characteristics.

[0057] Step S134: performing key parameter screening processing on the configuration requirement parameter set of each control unit in the electronic control module according to the influence correlation index between each configuration requirement parameter and the module configuration characteristic, so as to obtain the key configuration parameter set of each control unit in the electronic control module;

[0058] In an embodiment of the present invention, the impact correlation index between each configuration requirement parameter obtained by quantitative calculation and the module configuration characteristics is compared and judged by using a preset impact correlation threshold, so as to screen out configuration requirement parameters corresponding to the preset threshold that are greater than or equal to the preset threshold as key configuration parameters. This means determining the configuration requirement parameters that have the greatest impact and are most critical to the functions and performances of each control unit, so as to focus on solving and optimizing the most important configuration requirements, and finally obtaining a set of key configuration parameters for each control unit in the electronic control module.

[0059] Step S135: dynamically generate configuration files for each control unit in the electronic control module based on the configuration specification constraints and key configuration parameter sets of each control unit in the electronic control module, so as to generate configuration files for each control unit in the electronic control module.

[0060] In an embodiment of the present invention, configuration files for each control unit are dynamically generated by combining previously determined configuration specification constraints and key configuration parameter sets of each control unit in an electronic control module. These configuration files include configuration parameters and settings set according to specific requirements and constraints. For example, a control unit of a network router needs to generate a configuration file based on bandwidth requirements and security policies to ensure that the router operates efficiently and maintains data security in a network environment, thereby achieving personalized configuration management and ensuring that each control unit can operate stably according to design requirements in actual operation, and finally generating configuration files for each control unit in the electronic control module.

[0061] The present invention first determines the configuration condition constraints of each control unit in the electronic control module based on the configuration specification range information of each control unit in the electronic control module, which is a key step to ensure that each control unit follows certain hardware and software constraints in design and implementation. These constraints include but are not limited to processing power, communication protocol, input and output interface standards, etc. By clarifying these constraints, the scope of the control unit in operation and performance can be effectively limited, thereby ensuring the stability and reliability of the entire control module, and it can also identify and solve potential technical and performance bottlenecks in the early stage, thereby laying a solid foundation for subsequent configuration and optimization work. Secondly, by performing statistical analysis of the configuration requirement parameters of each control unit in the electronic control module based on the configuration requirement information of each control unit in the electronic control module, the configuration requirement parameters obtained by these analyses cover various technical and functional requirements, such as input and output data processing speed, communication protocol support, execution speed of logical judgment conditions, etc. Through statistical analysis, the hardware and software configuration required for each control unit can be quantitatively evaluated to ensure that it can effectively support the expected functional and performance requirements, and can also help determine the performance of the control unit under different load conditions, thereby optimizing the configuration scheme and making the most of existing resources. Then, by mining and analyzing the configuration characteristics of each control unit in the electronic control module, the aim is to deeply mine the configuration characteristic information of each control unit, including its responsiveness, stability and adaptability under different operating environments, so as to reveal the performance characteristics and technical limitations of the control unit in real application scenarios. By mining the configuration characteristic information, the design team can more accurately evaluate the performance advantages and disadvantages of each unit and provide a practical basis for subsequent configuration optimization and problem solving. At the same time, by conducting a characteristic impact correlation analysis on the configuration requirement parameter set of each control unit in the electronic control module based on the configuration characteristic information data of each control unit in the electronic control module, the aim is to understand how the hardware and software characteristics of each control unit affect its configuration requirement parameter set. This analysis is not only to quantify the influence of each parameter, but also to accurately predict and manage various configuration requirements in the design stage. The impact correlation index obtained from these correlation analyses not only reveals the importance and priority of each configuration requirement in the design, but also provides data support for subsequent configuration optimization to maximize the overall efficiency and reliability of the electronic control module. Next, the configuration requirement parameter set of each control unit in the electronic control module is screened for key parameters based on the impact correlation index between each configuration requirement parameter and the module configuration characteristics. The purpose of this step is to screen out the key parameters that have the most significant impact on the performance and function of the control unit from the complex parameter set in order to optimize the configuration and improve the overall performance of the system. Through key parameter screening, we can focus on solving and optimizing the most important configuration requirements, avoid resource waste and functional redundancy, and help optimize the configuration file and improve the practicality and reliability of the electronic control module.Finally, by dynamically generating configuration files for each control unit in the electronic control module based on the configuration specification constraints and key configuration parameter sets of each control unit in the electronic control module, these configuration files contain precise settings and parameter settings, which can ensure that each control unit can operate stably according to the design requirements in actual operation. By dynamically generating configuration files, it is possible to flexibly adjust according to actual needs and environmental changes, thereby optimizing the performance and efficiency of the control unit to the greatest extent, and also to achieve precise control of the functions and performance of the control unit, ensuring stable and reliable operation in complex and dynamic working environments.

[0062] Preferably, step S15 comprises the following steps:

[0063] Step S151: performing configuration communication connection analysis on the configuration files of each control unit in the electronic control module to obtain configuration network communication connection information between each control unit in the electronic control module;

[0064] In an embodiment of the present invention, it is necessary to collect and analyze configuration files of various control units in an electronic control module. These configuration files contain detailed settings of communication connections between control units, such as network addresses, communication protocols, port numbers, etc. By parsing these configuration files, it is possible to analyze the communication connection information required for each control unit during configuration, which includes determining the communication protocol, interface specifications, and hardware interconnection methods used by each unit, thereby ensuring that data and commands can be correctly transmitted between components within the module, and ultimately obtaining the configuration network communication connection information between the various control units in the electronic control module.

[0065] Step S152: performing network request path analysis on network request information of each control unit in the electronic control module to obtain a network request relationship path between each control unit in the electronic control module;

[0066] In an embodiment of the present invention, the network request path between each control unit is analyzed by considering the priority, frequency and existing conflicts or competition conditions of the network request from the network request information of each control unit in the electronic control module obtained from the previous analysis. This includes the path and intermediate nodes passed by each control unit when initiating a network request. For example, in an intelligent vehicle system, when the navigation control unit requests the current location information from the positioning service, it is necessary to collect data through the on-board sensor unit, and then transmit it to the cloud server through the wireless communication unit, and finally return it to the navigation control unit. By analyzing these network request paths, the direct and indirect communication paths between each control unit can be determined, and finally the network request relationship path between each control unit in the electronic control module can be obtained.

[0067] Step S153: performing network request association matching on the configured network communication connection information and the network request relationship path between each control unit in the electronic control module to generate a network request association matching connection relationship between each control unit in the electronic control module;

[0068] In an embodiment of the present invention, the configured network communication connection information and the network request relationship path between the control units in the electronic control module obtained by the previous analysis are associated and matched to match and confirm the actual communication requirements between the control units with the available communication paths between them, and ensure that the communication and requests between the units can be completely matched and have a corresponding relationship. For example, in a production line control system of a smart factory, the production control unit needs to exchange data and transmit commands with the logistics management unit in real time. By matching the communication connection settings in the configuration file and the actual network request path, it can be ensured that the production control unit can effectively communicate with the logistics management unit, thereby realizing the coordination of production scheduling and material flow, and finally generating a network request association matching connection relationship between the control units in the electronic control module.

[0069] Step S154: performing network connection topology analysis on each control unit in the electronic control module according to the network request association matching connection relationship between each control unit in the electronic control module, and obtaining a network request connection relationship topology diagram between the electronic control units;

[0070] In an embodiment of the present invention, connection processing is performed between corresponding control units in the electronic control module by combining the network request association matching connection relationship between control units in the electronic control module obtained by previous analysis, so that each control unit and the connection relationship between them are represented as a network topology diagram, so as to better understand the structural connection relationship and data flow of the entire electronic control module, and finally obtain a network request connection relationship topology diagram between electronic control units.

[0071] Step S155: performing unit connection assembly analysis on each control unit in the electronic control module based on the network request connection relationship topology diagram between the electronic control units to obtain the unit connection assembly relationship between the control units in the electronic control module.

[0072] In an embodiment of the present invention, by combining the network request connection relationship between each electronic control unit in the network request connection relationship topology diagram between electronic control units, the unit connection assembly analysis of each corresponding control unit in the electronic control module is performed to deeply analyze how each control unit is interconnected and cooperated under specific network request connection modes and attribute conditions, and determine how to optimally assemble and connect each control unit to achieve the optimization of the function and performance of the electronic control module, and finally obtain the unit connection assembly relationship between each control unit in the electronic control module.

[0073] The present invention firstly performs configuration communication connection analysis on the configuration files of each control unit in the electronic control module, aiming to ensure that the communication and network requests between the control units can be carried out efficiently and stably, and analyzes the communication connection information required by each control unit when configuring through the communication connection analysis of the configuration files, which includes determining the communication protocol, interface specification and hardware interconnection method used by each unit, so as to ensure that data and commands can be correctly transmitted between the components inside the module. Secondly, the network request path analysis is performed on the network request information of each control unit in the electronic control module to understand the network request relationship path between them. This analysis not only focuses on the data transmission path, but also takes into account the priority, frequency and existing conflicts or competition conditions of the request. By accurately grasping the path of the network request, it is possible to optimize the data flow, avoid potential bottlenecks and delay problems, and thus improve the overall response speed and reliability of the electronic control module. Then, by performing network request association matching on the configuration network communication connection information and network request relationship path between each control unit in the electronic control module, that is, combining the configuration network communication connection information and the network request relationship path, the key of this step is to ensure that the communication and request between each unit can be fully matched and corresponding, so as to generate a specific network request association matching connection relationship between each control unit. This association matching can provide an important logical framework for understanding how the components inside the module work together, and lay the foundation for the coordination and efficiency of the overall electronic control module. Next, by performing network connection topology analysis on each control unit in the electronic control module based on the aforementioned network request association matching connection relationship, this analysis aims to draw the actual connection topology diagram between the control units, so that it can describe the physical and logical connection methods between each unit in detail. Through the topology diagram, the structure and key path of the network connection inside the module can be intuitively displayed, which helps maintenance personnel understand and optimize the network layout. Finally, by performing unit connection assembly analysis on each control unit in the electronic control module based on the network request connection relationship topology diagram between electronic control units, the goal of this step is to deeply analyze how each control unit is connected and collaborated with each other at the physical and logical levels. Through unit connection assembly analysis, the role and function of each unit in the entire module can be revealed, and its specific contribution and role in network request processing and data exchange can be understood. This analysis provides key insights for subsequent processing, thereby ensuring efficient collaboration between control units and reliable data transmission.

[0074] Preferably, step S155 includes the following steps:

[0075] Perform active connection identification analysis on the network request connection relationship topology diagram between the electronic control units to obtain the network request active connection relationship between each electronic control unit;

[0076] In an embodiment of the present invention, a method for identifying active connection relationships is used to identify and analyze the network request connection relationships between the electronic control units in a network request connection relationship topology diagram between electronic control units, so as to accurately identify which control unit actively initiates the network connection in each connection relationship, and thereby reveal which control units play a leading role in the electronic control module and which paths send requests to other units, and finally obtain the network request active connection relationships between the electronic control units.

[0077] Preferably, a passive response identification analysis is performed on the network request connection relationship topology diagram between the electronic control units to obtain the network request passive response connection relationship between the various electronic control units;

[0078] In an embodiment of the present invention, by continuing to perform passive response identification and analysis on the network request connection relationship between each electronic control unit in the network request connection relationship topology diagram between electronic control units, the passive response identification focuses on identifying the passive response of the control unit to the network request initiated by other units. For example, when the main server sends an instruction to the actuator in the industrial control system, the actuator control unit will respond and perform corresponding operations. By analyzing this passive response connection, it is possible to determine how the actuator control unit receives and processes commands from the main server and how it reacts after receiving the instructions, thereby gaining an in-depth understanding of the data flow in the electronic control module and the interdependence of each unit, and finally obtaining the network request passive response connection relationship between each electronic control unit.

[0079] Preferably, based on the network request active connection relationship and the network request passive response connection relationship between the electronic control units, a connection pattern recognition analysis is performed on the network request connection relationship topology diagram between the electronic control units to obtain the network request connection pattern between the electronic control units;

[0080] In an embodiment of the present invention, by combining the network request active connection relationship and the network request passive response connection relationship between each electronic control unit obtained by previous analysis, the corresponding network request connection relationship in the network request connection relationship topology diagram between the electronic control units is identified and analyzed for connection mode, so as to identify and classify different network request connection modes, thereby understanding the communication modes and rules between each control unit in the electronic control module, including the common request-response mode, publish-subscribe mode, unidirectional connection mode, bidirectional connection mode, etc., and finally obtaining the network request connection mode between each electronic control unit.

[0081] Preferably, extracting network request connection attributes from the network request connection relationship topology diagram between the electronic control units to obtain network request connection attributes between the electronic control units;

[0082] In an embodiment of the present invention, detailed network request connection attributes are extracted from the established network request connection relationship topology diagram between electronic control units, which includes identifying the characteristics of each connection relationship, such as connection stability, bandwidth requirements, security requirements and other network request connection attributes, so as to comprehensively evaluate the performance and characteristics of the network request connection of each control unit in the electronic control module, and finally obtain the network request connection attributes between each electronic control unit.

[0083] Preferably, a unit connection assembly analysis is performed on each control unit in the electronic control module according to the network request connection mode and network request connection attribute between each electronic control unit to obtain the unit connection assembly relationship between each control unit in the electronic control module.

[0084] In an embodiment of the present invention, by combining the network request connection mode and network request connection attributes between the various electronic control units obtained in the previous analysis, the unit connection assembly analysis of the corresponding control units in the electronic control module is performed to deeply analyze how the various control units are interconnected and cooperated under specific network request connection modes and attribute conditions, and determine how to optimally connect the various control units, which can optimize the communication efficiency and data exchange process between the control units, and finally obtain the unit connection assembly relationship between the various control units in the electronic control module.

[0085] The present invention firstly performs active connection identification analysis on the network request connection relationship topology diagram between electronic control units, and can accurately identify the network connection actively initiated by each control unit, thereby revealing which units play a leading role in the system and through which paths to send requests to other units. This analysis not only helps to understand the active communication mode in the electronic control module, but also can provide key network traffic and load information for subsequent processing. Secondly, by performing passive response identification analysis on the network request connection relationship topology diagram between electronic control units, the purpose of this step is to determine how each control unit responds to requests from other units. By analyzing the passive response connection relationship, the data flow direction in the electronic control module and the mutual dependence of each unit can be deeply understood. This identification helps to ensure the efficiency and reliability of the data exchange and response behavior inside the electronic control module, thereby providing important support for the subsequent control unit connection assembly analysis process. Then, by performing connection mode identification analysis on the network request connection relationship topology diagram between electronic control units based on the network request active connection relationship and the network request passive response connection relationship between each electronic control unit, this step aims to determine the network request connection mode between each electronic control unit, including the common request-response mode, publish-subscribe mode, unidirectional connection mode, bidirectional connection mode, etc. Through the identification of connection patterns, we can deeply understand the interaction mode and communication rules between each unit in the system, which provides an important reference for the subsequent processing process. Next, the network request connection attribute extraction is performed on the network request connection relationship topology diagram between electronic control units. The key to this step is to extract key attributes from the connection relationship, such as data transmission rate, data volume, connection stability, etc. Through attribute extraction analysis, the performance and characteristics of each control unit connection in the electronic control module can be comprehensively evaluated, thereby providing basic data guarantee for the subsequent unit connection assembly analysis process. Finally, by performing unit connection assembly analysis on each control unit in the electronic control module according to the network request connection mode and network request connection attribute between each electronic control unit, the goal of this step is to deeply analyze how each control unit connects and collaborates with each other under specific network request connection mode and attribute conditions. Through unit connection assembly analysis, the communication efficiency and data exchange process between control units can be optimized, ensuring the stability and performance of the electronic control unit under different workloads and conditions.

[0086] Preferably, step S2 comprises the following steps:

[0087] Step S21: assembling the control framework of each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module to generate a control relationship framework between the electronic control module units;

[0088] In an embodiment of the present invention, the control connection relationship of each corresponding control unit in the electronic control module is assembled by combining the unit connection assembly relationship between each control unit in the electronic control module obtained by previous analysis, so as to be realized through hardware connection, data communication protocol or logical control relationship. For example, when considering a smart home control system, the control unit includes lighting control, temperature adjustment and security monitoring, etc., the engineer needs to clarify how each control unit is connected to the main controller, and how control information is transmitted and feedback is received between them, so as to analyze these connection and assembly relationships, so as to form a clear control relationship framework to describe the position and function of each control unit in the overall electronic control module, and finally connect and generate the control relationship framework between the electronic control module units.

[0089] Step S22: performing control command analysis on the control relationship framework between electronic control modules to obtain control command transmission change information between control units in the electronic control module;

[0090] In an embodiment of the present invention, an in-depth analysis is performed on the previously generated control relationship framework between electronic control module units, with a focus on the transmission and change of control commands, including identifying how each control unit receives and executes control commands, and the change pattern of command transmission under different circumstances. Continuing with the example of the smart home system, the lighting control unit may receive control commands from the user's mobile phone via Wi-Fi, while the temperature adjustment unit senses the indoor temperature changes in real time through sensors and automatically adjusts them, thereby analyzing the transmission paths and change information of the control commands between the control units, and finally obtaining the control command transmission change information between the control units in the electronic control module.

[0091] Step S23: performing control data flow change analysis on the control relationship framework between electronic control modules to obtain control data flow change information between various control units in the electronic control module;

[0092] In an embodiment of the present invention, by further analyzing the control relationship framework between electronic control module units, the focus is on the changes in the control data flow, which includes identifying and understanding the flow path and change rules of the data flow between each control unit. Taking the smart home system as an example, the security monitoring unit will periodically send sensor data to the main controller, and the main controller will decide whether to trigger the alarm system based on this data, so that the data exchange mode and traffic distribution between the control units can be described in detail, and finally the control data flow change information between the control units in the electronic control module can be obtained.

[0093] Step S24: performing control event analysis on control command transmission change information and control data flow change information between various control units in the electronic control module to generate control events between various control units in the electronic control module;

[0094] In an embodiment of the present invention, a detailed analysis of control events is performed by combining control command transmission change information and control data flow change information between various control units in an electronic control module. This involves identifying various events and situations occurring therein and the impact of each event on each control unit. Continuing with the example of a smart home system, control events include light switches manually triggered by a user, temperature sensors detecting that the indoor temperature exceeds a preset value, or security monitoring systems detecting intrusion events, etc. By analyzing control events, engineers can develop response strategies and optimize control logic, thereby being able to predict and respond to key operations and state transitions in the electronic control module, ensuring that the electronic control module can operate correctly and provide appropriate feedback in various situations, and ultimately generating control events between various control units in the electronic control module.

[0095] Step S25: performing event-driven programming development on each control unit in the electronic control module based on the control events between each control unit in the electronic control module to obtain a programming control logic program of the electronic control unit.

[0096] In an embodiment of the present invention, by combining the control events between the control units in the electronic control module obtained by analysis, event-driven programming program development is performed on the corresponding control units in the electronic control module, which includes writing and optimizing the event drive program logic of each control unit to ensure that each electronic control unit can quickly and accurately perform the corresponding control operation according to the received event information. Taking the smart home system as an example, engineers will write a program so that when the temperature sensor detects that the indoor temperature is too high, the air conditioner is automatically triggered to adjust the temperature; or when the security monitoring system triggers an intrusion alarm, the alarm device is immediately activated and a notification is sent to the user's mobile phone, so as to achieve efficient collaboration and responsiveness between the control units in the smart home system, thereby improving the overall intelligence level of the system, and finally obtaining the programming control logic program of the electronic control unit.

[0097] The present invention first assembles the control framework of each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module. The key to this step is to integrate the connection relationship between each unit and establish a complete control relationship framework. Through the control framework assembly, the role and function of each unit in the entire control module can be established, and the control logic and interaction mode between them can be clarified. This detailed assembly analysis provides a basis for subsequent steps to ensure that the control module can be coordinated and controlled as expected during operation. Secondly, by performing control command analysis on the control relationship framework between the units of the electronic control module to analyze the transmission change information of the control command, the transmission logic and mechanism of the command between the control units can be deeply understood. This analysis not only helps to capture the timing and path of command transmission in the control system, but also can provide key guidance for the subsequent programming development process to ensure the accurate transmission and execution of the command. The control command analysis provides important support for the stability and reliability of the programming process. Then, by analyzing the control data flow changes of the control relationship framework between the electronic control module units, the data exchange mode and flow distribution between the control units can be described in detail. This analysis helps to optimize the efficiency and response speed of data transmission, and helps to identify and solve the existing data flow problems and bottlenecks, thereby providing important guidance and basis for the subsequent processing process. Next, by analyzing the control event of the control command transmission change information and the control data flow change information between the various control units in the electronic control module, the goal of this step is to generate control events, that is, the key events and dynamic changes that occur between the various control units during the operation of the system. Through the control event analysis, the key operations and state transitions in the electronic control module can be predicted and responded to, providing the necessary basis for the real-time control and monitoring of the electronic control module programming program. This analysis provides key information for optimizing and improving the control logic for the subsequent programming development process. Finally, event-driven programming is performed on each control unit in the electronic control module based on the control events between the control units in the electronic control module. The core of this step is to design and develop the control logic program between the control units according to the control events. Through event-driven programming, it can be ensured that the control unit can respond and adjust in the expected manner when receiving a specific event. This development method not only improves the response speed and flexibility of the electronic control module, but also effectively reduces the waste of module resources and energy consumption.

[0098] Preferably, step S25 comprises the following steps:

[0099] Step S251: performing event-driven response analysis on each control unit in the electronic control module based on control events between each control unit in the electronic control module to obtain an event-driven state response paradigm between each control unit in the electronic control module;

[0100] In an embodiment of the present invention, each control unit in the electronic control module is analyzed in detail by combining the control events between each control unit in the electronic control module obtained by previous analysis. These control events can be various sensor data changes, external command inputs, or internal state changes of the system itself, etc., to identify and analyze the response methods and patterns of each control unit to different events, so as to form an event-driven state response paradigm, thereby ensuring that the electronic control module can respond in a consistent and predictable manner when facing different operating scenarios or fault conditions. For example, considering a production line control system of an automated factory, the control unit includes a robotic arm, a conveyor belt, and a processing robot, etc. Engineers need to analyze how each control unit responds to different events on the production line, such as a part reaching the end of a conveyor belt, a robotic arm completing a grasping action, etc., so as to analyze and obtain the response mode and state change law of each control unit to the event, and finally obtain the event-driven state response paradigm between each control unit in the electronic control module.

[0101] Step S252: programming control logic for event-driven state response paradigms between various control units in the electronic control module to generate event response programming control logic between electronic control units;

[0102] In an embodiment of the present invention, the event-driven state response paradigm obtained from the previous response analysis is used to start arranging specific programming control logic, which includes defining how each control unit performs corresponding operations or state transitions based on the received event information. Continuing with the example of an automated factory, engineers will write program logic so that when the number of parts on the conveyor belt exceeds a set threshold, the robotic arm will automatically perform a grabbing action; or when the processing robot receives a specific processing instruction, it will automatically adjust the processing parameters according to the processing technology. The arrangement of these programming control logics is usually completed through programming languages ​​​​or dedicated graphical programming tools, thereby ensuring that each control unit can accurately and efficiently respond to events in a complex environment, and finally generate event response programming control logic between electronic control units.

[0103] Step S253: using a programming script language to perform control logic programming and development processing on the event response programming control logic between electronic control units to obtain an electronic control unit programming control logic program.

[0104] In an embodiment of the present invention, a programming development process of control logic is implemented by using a programming script language (such as Python, C++, etc.). For example, in the scenario of an automated factory, engineers can write Python scripts to process sensor data input, event trigger conditions, and control command generation. These scripts include data processing algorithms, event processing functions, and communication interfaces with other control units. This ensures that the programmed control logic program can correctly capture and process various events during actual operation, thereby realizing the expected automated control program and ultimately obtaining the programmed control logic program of the electronic control unit.

[0105] The present invention firstly performs event-driven response analysis on each control unit in the electronic control module based on the control events between each control unit in the electronic control module, and can realize event-driven response analysis. In the electronic control module, each control unit usually makes corresponding actions or adjustments according to external or internal events. The key of this step is to identify and analyze the response mode and mode of each control unit to different events, and form an event-driven state response paradigm. By establishing an event-driven response paradigm, it can be ensured that the electronic control module can respond in a consistent and predictable manner when facing different operating scenarios or fault conditions, thereby improving the reliability and stability of the electronic control module. Then, by further arranging the programming control logic on the basis of the event-driven state response paradigm, the goal of this step is to design and arrange the event response programming control logic between the control units according to the pre-defined response paradigm. In the arrangement process, it is necessary to consider how to effectively combine the event triggering conditions, the response actions and the existing feedback mechanisms to ensure that the electronic control module can perform various functions and tasks in the expected manner during the programming operation process. This step can simplify the complexity of system development and maintenance through precise programming control logic arrangement, and optimize the operation efficiency and resource utilization of the electronic control module at the same time. Finally, the event response programming control logic is processed in detail by using a programming script language. In this step, developers convert specific event response logic into executable program code, usually using a scripting language or a specialized programming language. In this programming development process, it is necessary to consider the requirements of real-time, reliability, and security to ensure that the programming control logic program can run stably in various working environments and conditions. Through effective development processing, the expected functions and performance indicators of the system design can be realized to the greatest extent, while providing flexible support and scalability for future electronic control module upgrades and expansions.

[0106] Preferably, step S3 comprises the following steps:

[0107] Step S31: configuring program parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain a logic program programming parameter configuration set between electronic control units;

[0108] In an embodiment of the present invention, by programming the control logic program of the electronic control unit designed previously, specific program programming parameter configuration is performed for each control unit in the electronic control module. For example, consider an automotive electronic control unit system, which includes an engine control unit, a brake control unit and a steering control unit, etc. Engineers need to configure corresponding control parameters such as maximum speed, braking force and steering response speed according to the functions and performance requirements of each control unit. These parameter configurations are usually performed through special programming tools or integrated development environments (IDEs) to ensure that each control unit can accurately perform its designed functions while ensuring the overall coordination and stability of the electronic control module, and finally obtain a logic program programming parameter configuration set between electronic control units.

[0109] Step S32: performing programming parameter input setting on the inter-ECU logic program programming parameter configuration set to generate inter-ECU program programming parameter input conditions;

[0110] In an embodiment of the present invention, by further setting specific programming parameter input conditions based on the logic program programming parameter configuration set obtained according to the previous configuration, it means that engineers need to determine the input conditions of each electronic control unit to ensure that the input signal can be correctly received and processed in actual operation. For example, for the engine control unit, different driving modes (such as economic mode or sports mode) will be set, and corresponding throttle response curves and emission control strategies will be set. The setting of these input conditions is usually completed through a software interface or a programming script to ensure that various operating scenarios and condition changes can be accurately simulated in simulation and actual testing, and finally generate program programming parameter input conditions between electronic control units.

[0111] Step S33: performing environmental change simulation analysis on the electronic control unit programming control logic program to obtain environmental change simulation conditions of the electronic control unit programming control program;

[0112] In an embodiment of the present invention, an environmental change simulation analysis is performed on the previously designed and generated electronic control unit programming control logic program, which means simulating different environmental conditions and external influences, such as temperature changes, road conditions and load changes, to evaluate the response and stability of the electronic control unit. For example, for the braking control unit, environmental change conditions such as the braking performance on slippery roads and the cooling effect of the braking system in a high temperature environment are simulated, and finally the environmental change simulation conditions of the electronic control unit programming control program are obtained.

[0113] Step S34: based on the program programming parameter input conditions between the electronic control units and the simulation conditions of the electronic control unit programming control program environment change, the electronic control unit programming control logic program is online simulated and debugged to generate the electronic control unit programming online simulation and debugging process.

[0114] In an embodiment of the present invention, the corresponding electronic control unit programming control logic program is online simulated and debugged by using the previously determined program programming parameter input conditions between electronic control units and the simulation conditions of the electronic control unit programming control program environment changes. This includes using simulation software or hardware simulation platforms to simulate various operating scenarios and condition changes in the actual operating environment. For example, in an automotive electronic control system, different driving modes and road conditions can be simulated to evaluate the response performance and stability of the control unit in various situations, thereby ensuring that the programming program enables the electronic control module to operate safely and reliably in actual applications, and finally simulating and generating an online simulation and debugging process for the electronic control unit programming.

[0115] The present invention first configures the programming parameters of each control unit in the electronic control module according to the programming control logic program of the electronic control unit. This process is not limited to simple parameter settings, but focuses on ensuring that each control unit can accurately perform its functions during operation according to the design specifications and the requirements of the electronic control module. Through programming parameter configuration, the behavior of the control unit can be adjusted and optimized to adapt to different working scenarios and operating conditions, thereby improving the flexibility and responsiveness of the electronic control module. Secondly, by setting the programming parameter input of the logic program programming parameter configuration set between the electronic control units to generate specific program programming parameter input conditions, the key to this step is to set the interaction conditions and trigger conditions between the various control units according to the actual application requirements. Through precise parameter input settings, it can be ensured that the electronic control module can respond to external inputs and internal control signals in an expected manner during operation, thereby achieving reliable execution and precise control of system functions. Then, the environmental change simulation analysis of the ECU programming control logic program is carried out, which includes the evaluation and testing of the response capabilities of each control unit in the ECU under different environmental conditions. By simulating different environmental changes, such as changes in temperature, humidity, pressure and other factors, the stability and adaptability of the programming control logic can be verified. This analysis can help developers identify potential problems and risks in the design stage, optimize and adjust the system control strategy in advance, so as to improve the reliability and safety of the ECU in practical applications. Finally, the ECU programming control logic program is simulated and debugged online based on the input conditions of the program programming parameters between the ECUs and the simulation conditions of the environmental changes of the ECU programming control program. This process is an important link to ensure the design and implementation of the ECU. Through online simulation debugging, the performance and behavior of the ECU in various operating scenarios can be simulated and evaluated in real time. Through simulation debugging, developers can verify the correctness of the programming logic, the stability and response speed of the program, and at the same time discover and solve potential program errors and logic problems. This iterative debugging process helps to improve the development efficiency and quality of the control unit programming in the ECU, thereby ensuring that the ECU finally delivered can meet the expected performance and reliability standards.

[0116] Preferably, step S4 comprises the following steps:

[0117] Step S41: Perform real-time monitoring on the online simulation debugging process of the electronic control unit programming to obtain real-time monitoring status data of the electronic control unit programming debugging;

[0118] In an embodiment of the present invention, a real-time monitoring system is established to instantly capture and record various key data and states during the online simulation debugging of the electronic control unit programming. This includes communication monitoring between the programming tool and the electronic control unit, such as through the CAN bus or other communication protocols, so as to use special monitoring software or write a real-time data capture program through an automated script. For example, when an engineer starts programming and debugging a drive control unit (such as an engine), the monitoring system can read and record various parameters and status information of the control unit in real time, such as engine speed, throttle position, sensor feedback, etc., and finally obtain real-time monitoring status data of the electronic control unit programming and debugging.

[0119] Step S42: analyzing abnormal variables of the online simulation debugging process of the electronic control unit programming based on the real-time monitoring status data of the electronic control unit programming debugging, and obtaining abnormal variables of the monitoring of the electronic control unit programming debugging process;

[0120] In an embodiment of the present invention, by combining the real-time monitoring status data of the programming and debugging of the electronic control unit obtained by previous monitoring, the corresponding online simulation debugging process of the programming of the electronic control unit is analyzed for abnormalities in the debugging process using statistical methods, graphic analysis and data mining techniques, so as to identify and analyze whether there are abnormal variables such as sudden data fluctuations, abnormal values ​​of sensor feedback or control logic execution paths that do not meet expectations, and finally obtain abnormal variables for monitoring the programming and debugging process of the electronic control unit.

[0121] Step S43: analyzing the abnormal variables monitored during the programming and debugging of the electronic control unit for an abnormal adjustment control strategy to generate an abnormal adjustment control strategy for programming and debugging of the electronic control unit;

[0122] In an embodiment of the present invention, an in-depth analysis is performed on the abnormal variables monitored during the programming and debugging process of the electronic control unit obtained by the previous analysis, so as to find out the root cause of the abnormal variables and determine the corresponding adjustment strategy by combining the real-time monitoring data and the control logic of the system design. For example, if the problem of the engine control unit reacting too slowly is found, the problem will be solved by adjusting the response time of the control algorithm or increasing the sampling frequency of the sensor data. In addition, a more refined control strategy can be formulated based on the real-time monitoring data and historical analysis results to ensure that the influence of the abnormal variables can be eliminated as quickly and effectively as possible during the programming and debugging process, and finally generate an abnormal adjustment control strategy for the programming and debugging of the electronic control unit.

[0123] Step S44: performing programming optimization processing on the programming control logic program of the electronic control unit according to the abnormal adjustment control strategy of the programming debugging of the electronic control unit to obtain the reprogramming control logic program of the electronic control unit.

[0124] In an embodiment of the present invention, the programming control logic program of the corresponding electronic control unit with abnormalities is optimized by combining the previously determined electronic control unit programming and debugging abnormal adjustment control strategy. This process involves modifying the existing programming code, updating the control algorithm or reconfiguring the system parameters. For example, in automobile manufacturing, if it is found that the response speed of the engine control unit is reduced in a high temperature environment, the response speed of the electronic control module can be improved by adding critical temperature detection logic and pre-adjusting relevant control parameters. This optimization process usually requires writing and testing a new control program to ensure that it can run stably in both simulation environments and actual scenarios, so as to achieve higher programming and debugging effects and system stability, and finally obtain the electronic control unit reprogramming control logic program.

[0125] The present invention firstly performs real-time monitoring of the online simulation debugging process of the electronic control unit programming, and can collect and analyze the operation data and status of each control unit in the simulation environment. These data not only include basic input and output conditions, but also cover key indicators such as program execution time, resource utilization, and signal response speed. Through the analysis of these real-time monitoring status data, potential system problems and performance bottlenecks can be discovered in time, providing a strong basis and direction for subsequent debugging and optimization work. Secondly, by performing debugging abnormal variable analysis on the online simulation debugging process of the electronic control unit programming based on the real-time monitoring status data of the electronic control unit programming debugging, such as sudden input changes, unexpected output behaviors, etc., existing program logic errors or system performance problems can be identified and located. This analysis not only helps to solve the current debugging problem, but also helps to improve the programming program design and control strategy, thereby improving the reliability and stability of the programming process of the electronic control module. Then, by monitoring the abnormal variables in the programming and debugging process of the electronic control unit, the abnormal adjustment control strategy is analyzed to deeply analyze the root causes and effects of the abnormal variables to formulate specific adjustment control strategies to ensure that the programming process can still run stably in a changing and uncertain environment. This involves adjusting the input and output logic, optimizing the algorithm implementation, and improving the abnormal handling mechanism, aiming to improve the adaptive ability of the programming process of the electronic control module and the ability to cope with complex scenarios. Finally, by optimizing the programming control logic program of the electronic control unit according to the abnormal adjustment control strategy of the programming and debugging of the electronic control unit, it is an important step to ensure that the electronic control module can meet the design requirements after completing the simulation debugging. The optimization process includes code reconstruction, performance adjustment, algorithm optimization, etc., aiming to eliminate potential program defects and performance bottlenecks, and ensure the stability and reliability of the programming process of the electronic control module. This process requires not only a deep understanding of technology and operational experience, but also team collaboration and effective communication to ensure that the optimized control logic program can be smoothly applied to actual scenarios, so as to achieve the expected effects and performance indicators.

[0126] Preferably, the present invention further provides a programming system for an electronic control module, which is used to execute the programming method for an electronic control module as described above. The programming system for an electronic control module comprises:

[0127] An electronic control unit connection assembly analysis module, used to obtain configuration files and network request information of each control unit in the electronic control module, and perform unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module, so as to obtain a unit connection assembly relationship between each control unit in the electronic control module;

[0128] An electronic control module event-driven programming development module is used to perform control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module, so as to generate control events between each control unit in the electronic control module; based on the control events between each control unit in the electronic control module, event-driven programming development is performed on each control unit in the electronic control module, so as to obtain a programming control logic program of the electronic control unit;

[0129] The electronic control module programming simulation debugging module is used to configure the program programming parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain the logic program programming parameter configuration set between the electronic control units; based on the logic program programming parameter configuration set between the electronic control units, the electronic control unit programming control logic program is online simulated and debugged to generate the electronic control unit programming online simulation debugging process;

[0130] The programming and debugging real-time monitoring exception optimization module is used to perform real-time monitoring on the online simulation debugging process of the electronic control unit programming, and obtain the monitoring exception variables of the electronic control unit programming and debugging process; based on the monitoring exception variables of the electronic control unit programming and debugging process, the programming optimization processing of the electronic control unit programming control logic program is performed, so as to obtain the electronic control unit reprogramming control logic program.

[0131] In summary, the present invention provides a programming system for an electronic control module, which is composed of an electronic control unit connection assembly analysis module, an electronic control module event-driven programming development module, an electronic control module programming simulation debugging module, and a programming debugging real-time monitoring abnormality optimization module. It can implement any programming method for an electronic control module described in the present invention, and is used to combine the operations between computer programs running on various modules to implement the programming method for an electronic control module. The internal structures of the system cooperate with each other, which can greatly reduce duplication of work and manpower investment, and can quickly and effectively provide a more accurate and efficient programming process for the electronic control module, thereby simplifying the operating flow of the programming system for the electronic control module.

[0132] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A programming method for an electronic control module, characterized in that: The following steps are involved: Step S1: acquiring configuration files and network request information of each control unit in the electronic control module, and performing unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module, so as to obtain the unit connection assembly relationship between each control unit in the electronic control module; wherein step S1 includes the following steps: Step S10: Acquire various control units in the electronic control module, wherein the control units include an input and output control unit, a communication drive control unit, a logic judgment control unit, and a network timing control unit; Step S11: performing configuration specification identification and analysis on each control unit in the electronic control module to obtain configuration specification range information of each control unit in the electronic control module; Step S12: performing configuration requirement analysis on each control unit in the electronic control module to obtain configuration requirement information of each control unit in the electronic control module; Step S13: dynamically generate configuration files for each control unit in the electronic control module based on the configuration specification range information and configuration requirement information of each control unit in the electronic control module, so as to generate configuration files for each control unit in the electronic control module; wherein step S13 includes the following steps: Step S131: determining configuration condition constraints for each control unit in the electronic control module based on the configuration specification range information of each control unit in the electronic control module, and obtaining configuration specification constraint restrictions for each control unit in the electronic control module; Step S132: performing a statistical analysis of configuration requirement parameters of each control unit in the electronic control module based on the configuration requirement information of each control unit in the electronic control module to obtain a configuration requirement parameter set of each control unit in the electronic control module; Step S133: performing configuration characteristic mining analysis on each control unit in the electronic control module to obtain configuration characteristic information data of each control unit in the electronic control module; performing characteristic impact correlation analysis on the configuration requirement parameter set of each control unit in the electronic control module based on the configuration characteristic information data of each control unit in the electronic control module to obtain an impact correlation index between each configuration requirement parameter and the module configuration characteristic; Step S134: performing key parameter screening processing on the configuration requirement parameter set of each control unit in the electronic control module according to the influence correlation index between each configuration requirement parameter and the module configuration characteristic, so as to obtain the key configuration parameter set of each control unit in the electronic control module; Step S135: dynamically generating configuration files for each control unit in the electronic control module based on the configuration specification constraints and key configuration parameter sets of each control unit in the electronic control module, so as to generate configuration files for each control unit in the electronic control module; Step S14: performing network request capture processing on each control unit in the electronic control module through the HTTP proxy server to obtain HTTP network request communication data files of each control unit in the electronic control module; performing network request content parsing on the HTTP network request communication data files of each control unit in the electronic control module to obtain network request information of each control unit in the electronic control module; Step S15: performing unit connection and assembly analysis on each control unit in the electronic control module based on the configuration files of each control unit in the electronic control module and the network request information, and obtaining the unit connection and assembly relationship between each control unit in the electronic control module; wherein step S15 includes the following steps: Step S151: performing configuration communication connection analysis on the configuration files of each control unit in the electronic control module to obtain configuration network communication connection information between each control unit in the electronic control module; Step S152: performing network request path analysis on network request information of each control unit in the electronic control module to obtain a network request relationship path between each control unit in the electronic control module; Step S153: performing network request association matching on the configured network communication connection information and the network request relationship path between each control unit in the electronic control module to generate a network request association matching connection relationship between each control unit in the electronic control module; Step S154: performing network connection topology analysis on each control unit in the electronic control module according to the network request association matching connection relationship between each control unit in the electronic control module, and obtaining a network request connection relationship topology diagram between the electronic control units; Step S155: performing unit connection assembly analysis on each control unit in the electronic control module based on the network request connection relationship topology diagram between the electronic control units to obtain the unit connection assembly relationship between the control units in the electronic control module; wherein step S155 includes the following steps: Perform active connection identification analysis on the network request connection relationship topology diagram between the electronic control units to obtain the network request active connection relationship between each electronic control unit; Performing passive response identification analysis on the network request connection relationship topology diagram between the electronic control units to obtain the network request passive response connection relationship between each electronic control unit; Based on the network request active connection relationship and the network request passive response connection relationship between each electronic control unit, a connection pattern recognition analysis is performed on the network request connection relationship topology diagram between the electronic control units to obtain the network request connection pattern between each electronic control unit; Extracting network request connection attributes from the network request connection relationship topology diagram between electronic control units to obtain network request connection attributes between each electronic control unit; Performing unit connection assembly analysis on each control unit in the electronic control module according to the network request connection mode and network request connection attribute between each electronic control unit, and obtaining the unit connection assembly relationship between each control unit in the electronic control module; Step S2: performing control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module to generate control events between each control unit in the electronic control module; performing event-driven programming development on each control unit in the electronic control module based on the control events between each control unit in the electronic control module to obtain a programming control logic program of the electronic control unit; Step S3: configuring program programming parameters for each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain a logic program programming parameter configuration set between electronic control units; performing online simulation debugging on the electronic control unit programming control logic program based on the logic program programming parameter configuration set between electronic control units to generate an electronic control unit programming online simulation debugging process; Step S4: Perform real-time monitoring on the online simulation debugging process of the electronic control unit programming to obtain abnormal monitoring variables of the electronic control unit programming debugging process; perform programming optimization processing on the electronic control unit programming control logic program based on the abnormal monitoring variables of the electronic control unit programming debugging process to obtain the electronic control unit reprogramming control logic program.

2. The programming method for an electronic control module according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: assembling the control framework of each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module to generate a control relationship framework between the electronic control module units; Step S22: performing control command analysis on the control relationship framework between electronic control modules to obtain control command transmission change information between control units in the electronic control module; Step S23: performing control data flow change analysis on the control relationship framework between electronic control modules to obtain control data flow change information between various control units in the electronic control module; Step S24: performing control event analysis on control command transmission change information and control data flow change information between various control units in the electronic control module to generate control events between various control units in the electronic control module; Step S25: performing event-driven programming development on each control unit in the electronic control module based on the control events between each control unit in the electronic control module to obtain a programming control logic program of the electronic control unit.

3. The programming method for an electronic control module according to claim 2, characterized in that: Step S25 includes the following steps: Step S251: performing event-driven response analysis on each control unit in the electronic control module based on control events between each control unit in the electronic control module to obtain an event-driven state response paradigm between each control unit in the electronic control module; Step S252: programming control logic for event-driven state response paradigms between various control units in the electronic control module to generate event response programming control logic between electronic control units; Step S253: using a programming script language to perform control logic programming and development processing on the event response programming control logic between electronic control units to obtain an electronic control unit programming control logic program.

4. The programming method for an electronic control module according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: configuring program parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain a logic program programming parameter configuration set between electronic control units; Step S32: performing programming parameter input setting on the inter-ECU logic program programming parameter configuration set to generate inter-ECU program programming parameter input conditions; Step S33: performing environmental change simulation analysis on the electronic control unit programming control logic program to obtain environmental change simulation conditions of the electronic control unit programming control program; Step S34: based on the program programming parameter input conditions between the electronic control units and the simulation conditions of the electronic control unit programming control program environment change, the electronic control unit programming control logic program is online simulated and debugged to generate the electronic control unit programming online simulation and debugging process.

5. The programming method for an electronic control module according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: Perform real-time monitoring on the online simulation debugging process of the electronic control unit programming to obtain real-time monitoring status data of the electronic control unit programming debugging; Step S42: analyzing abnormal variables of the online simulation debugging process of the electronic control unit programming based on the real-time monitoring status data of the electronic control unit programming debugging, and obtaining abnormal variables of the monitoring of the electronic control unit programming debugging process; Step S43: analyzing the abnormal variables monitored during the programming and debugging of the electronic control unit for an abnormal adjustment control strategy to generate an abnormal adjustment control strategy for programming and debugging of the electronic control unit; Step S44: performing programming optimization processing on the programming control logic program of the electronic control unit according to the abnormal adjustment control strategy of the programming debugging of the electronic control unit to obtain the reprogramming control logic program of the electronic control unit.

6. A programming system for an electronic control module, characterized in that: For executing the programming method for an electronic control module as claimed in claim 1, the programming system for the electronic control module comprises: An electronic control unit connection assembly analysis module, used to obtain configuration files and network request information of each control unit in the electronic control module, and perform unit connection assembly analysis on each control unit in the electronic control module based on the configuration files and network request information of each control unit in the electronic control module, so as to obtain a unit connection assembly relationship between each control unit in the electronic control module; An electronic control module event-driven programming development module is used to perform control event analysis on each control unit in the electronic control module based on the unit connection assembly relationship between each control unit in the electronic control module, so as to generate control events between each control unit in the electronic control module; based on the control events between each control unit in the electronic control module, event-driven programming development is performed on each control unit in the electronic control module, so as to obtain a programming control logic program of the electronic control unit; The electronic control module programming simulation debugging module is used to configure the program programming parameters of each control unit in the electronic control module according to the electronic control unit programming control logic program to obtain the logic program programming parameter configuration set between the electronic control units; based on the logic program programming parameter configuration set between the electronic control units, the electronic control unit programming control logic program is online simulated and debugged to generate the electronic control unit programming online simulation debugging process; The programming and debugging real-time monitoring exception optimization module is used to perform real-time monitoring on the online simulation debugging process of the electronic control unit programming, and obtain the monitoring exception variables of the electronic control unit programming and debugging process; based on the monitoring exception variables of the electronic control unit programming and debugging process, the programming optimization processing of the electronic control unit programming control logic program is performed, so as to obtain the electronic control unit reprogramming control logic program.

Citation Information

Patent Citations

  • System and method for emulation of an automation control system

    CN104155879A

  • Programmable control method of reconfigurable industrial robot in distributed manufacturing environment

    CN106933212A

  • Simulation modeling platform and method for reconfigurable spatial array based on event driving

    CN114153562A

  • Hardware-in-the-loop simulation system and optimization method thereof

    CN117784635A

  • Dynamic reconfigurable configuration method based on IEC 61499

    CN117978648A