A high beam washing control component development method and component based on simulink and SOA architecture
The headlight washer control component, designed using Simulink and SOA architecture, solves the problem of the lack of integration of headlight washer function, realizes intelligent control of automotive headlights, and improves the level of vehicle intelligence and system interactivity.
Patent Information
- Application Number
- CN202410821470.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In existing technologies, headlight cleaning functions are not integrated into the vehicle architecture, resulting in insufficient intelligence in automotive headlights.
Using Simulink and SOA architecture, the headlight washer control component is integrated by establishing a washer control component, using atomic service modules and API interfaces to build signal input and output modules, and converting them into CAN signals through a service gateway.
It realizes the intelligent cleaning function of car headlights, improves the intelligence of the car, has a clear module structure, facilitates connection with other modules, decouples software and hardware, and improves the interactivity of the system.
Smart Images

Figure CN118778951B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent vehicle component development, and in particular to a method for developing a headlight cleaning control component based on Simulink and SOA architecture. Background Technology
[0002] With the advent of software-defined vehicles, automobiles are constantly evolving towards greater technological sophistication and functionality, leading to continuous changes in traditional automotive structures. The cost of automotive electronics and software accounts for an increasingly larger proportion of the overall vehicle cost. SOA (Service-Oriented Architecture) is a future trend in intelligent vehicle development. It leverages the different functional units decomposed from applications, connecting interfaces and protocols through these services. SOA, through hardware-software decoupling, strong scalability, and portability, accelerates convenient interaction between vehicles, people, and networks, creating a healthy automotive ecosystem and accelerating the increasing intelligence of vehicles. In the development of automotive software based on SOA architecture, the use of Simulink tools for model-based development is increasingly replacing manual code development.
[0003] Currently, the headlight cleaning function is located at the LIN node in the automotive architecture and has not been integrated into the system. In order to realize the intelligent cleaning function of automotive headlights, there is an urgent need to propose a more effective headlight cleaning control component. Summary of the Invention
[0004] To address the aforementioned issues, this invention provides a development method for a headlight cleaning control component based on Simulink and SOA architecture, which enhances vehicle intelligence and enables intelligent headlight cleaning.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] In a first aspect, the present invention provides a method for developing a headlight cleaning control component based on Simulink and SOA architecture, comprising:
[0007] Establish the corresponding operating entity for the cleaning control components;
[0008] Sub-functional modules are placed as atomic services into the running entity;
[0009] Based on the atomic service, determine the corresponding API interface;
[0010] Place the signal input module and the signal output module into the running entity;
[0011] Based on the operating entity, the cleaning control component is constructed.
[0012] Furthermore, it also includes:
[0013] A running time period is set for the running entity, and the signal input module periodically receives API interface requests corresponding to the sub-functional modules.
[0014] Furthermore, it also includes:
[0015] The signal input module receives the API interface request corresponding to the atomic service;
[0016] After verifying the API interface request, the atomic service executes the corresponding method to obtain the output result of the atomic service.
[0017] The signal output module converts the output result into an output signal and sends it to the service gateway.
[0018] Furthermore, the atomic services include: power service, outside temperature service, washer fluid service, and headlight service.
[0019] Furthermore, the cleaning fluid service includes a cleaning fluid level alarm service.
[0020] Secondly, the present invention also provides a headlight cleaning control component based on Simulink and SOA architecture, comprising:
[0021] Sub-functional modules are used to provide atomic services and corresponding API interfaces;
[0022] The signal input module is used to receive API interface requests corresponding to the sub-functional modules;
[0023] The signal output module is used to output the output signal of the atomic service corresponding to the request of the API interface;
[0024] The service gateway module is used to convert the output signal into a CAN signal and transmit it to the body controller.
[0025] Furthermore, it also includes a timer module, which is used by the signal input module to periodically receive API interface requests corresponding to the sub-functional modules.
[0026] Furthermore, the atomic services include: power service, outside temperature service, washer fluid service, and headlight service.
[0027] Thirdly, the present invention also provides an electronic device, comprising: a processor and a memory;
[0028] The processor is coupled to the memory;
[0029] The processor is configured to read and execute the program or instructions stored in the memory, causing the device to perform the method as described in any one of claims 1-5.
[0030] Fourthly, the present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method as described in any one of claims 1-5.
[0031] In summary, the technical solution provided in this application has at least the following technical effects or advantages:
[0032] This invention relates to a headlight washer control component designed based on Simulink and SOA architecture. The steps are simple, the module structure is clear, and it only provides API interface interaction to the outside world, which can easily establish connections with other modules. It decouples the headlight washer control component in the vehicle system from hardware and software, makes the internal and external interface interaction of the vehicle system clear, improves the intelligence of the car, and realizes the intelligent cleaning function of the car headlights.
[0033] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 This is a schematic diagram illustrating a development method for a headlight cleaning control component based on Simulink and SOA architecture in an embodiment of the present invention.
[0036] Figure 2 This is a schematic diagram of the Ethernet signal transmission process in an embodiment of the present invention;
[0037] Figure 3 This is a flowchart illustrating the cleaning liquid level alarm service in an embodiment of the present invention.
[0038] Figure 4 This is a schematic diagram of the structure of a headlight cleaning control component based on Simulink and SOA architecture in an embodiment of the present invention;
[0039] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] Simulink is a visualization and simulation tool within MATLAB, developed by MathWorks. Service-Oriented Architecture (SOA) is a component model that breaks down an application into different functional units (called services) and connects them through defined interfaces and protocols. These decomposed units are called atomic services, which are microservices with independent functionality that can be deployed independently and used across multiple applications. These independent services can interact with other services to provide specific functionalities. By decomposing macro services into smaller components, atomic services make applications more flexible and scalable. The independence and reusability of atomic services make development easier and maintenance simpler. Furthermore, atomic services can be built using the latest technologies and tools, allowing applications to better adapt to change.
[0042] This invention is a development method for a headlight washer control component based on the Simulink tool and SOA architecture. It constructs the functionality of the headlight washer control component using Simulink and executes the functionality through SOA architecture. By treating sub-functional modules as atomic services and directly placing them into the runtime entity, it not only demonstrates the flexibility of SOA but also allows services to communicate through simple, precisely defined interfaces, avoiding involvement of underlying programming interfaces and communication models, thus enabling better and faster delivery of business value.
[0043] Figure 1 This is a schematic diagram illustrating a development method for a headlight washer control component based on Simulink and SOA architecture in an embodiment of the present invention. As shown in the figure, a development method for a headlight washer control component based on Simulink and SOA architecture includes:
[0044] S101. Establish the operating entity corresponding to the cleaning control component;
[0045] S102. Place the sub-functional modules as atomic services into the running entity;
[0046] S103. Based on the atomic service, determine the corresponding API interface;
[0047] S104. Place the signal input module and the signal output module into the running entity;
[0048] S105. Based on the operating entity, construct the cleaning control component.
[0049] Based on the Simulink environment, a headlight washer control module containing multiple sub-functions was created as a running entity. Event execution cycles were added to this entity. Sub-function modules were placed within the running entity as atomic services, and the service interfaces provided by these atomic services were determined according to API definitions. A signal input module was added to the running entity to periodically receive API interface requests from the sub-function modules. The corresponding atomic modules of the sub-function modules verified the API interface requests, executed the corresponding methods, and obtained the output results. A signal output module was added to the running entity to output the corresponding API interface output results, converting the output results into output signals, and sending them to the service gateway (the service gateway's role is unified access, traffic control, security protection, and business isolation) via Ethernet. The service gateway parsed the output signals, converted them into CAN messages, and sent them to the BCM (Body Controller). The BCM then controlled the implementation of the headlight washer function provided by the corresponding atomic service. After testing in the Simulink environment, the corresponding code for the headlight washer control component was generated and integrated into the vehicle's infotainment system to form a headlight washer control component based on Simulink and SOA architecture. The flowchart of the Ethernet signal transmission is shown below. Figure 2 As shown.
[0050] The CAN bus is one of the most widely used fieldbuses internationally. Designed for microcontroller communication in automotive environments, it facilitates information exchange between various electronic control units (ECUs) to form an automotive electronic control network. Examples include engine management systems, transmission controllers, instrument clusters, and electronic backbone systems, all of which embed CAN control devices. CAN messages refer to sensor information parsed from the CAN bus. Exemplarily, they include four different message types: data frames, remote frames, overload frames, and error frames. A message consists of an 11-bit or 29-bit identifier, a control field, and up to 8 bytes.
[0051] The sub-functional modules of the aforementioned headlight washer control component, namely atomic services, include: power service, outside temperature service, washer fluid service, headlight service, etc., as well as the corresponding service methods provided by the atomic services.
[0052] The API interface signals received by the above signal input module include: voltage status signal, outside temperature signal, washer fluid level signal, and headlight washer switch indicator light.
[0053] The API interface signals output by the above signal output module include: cleaning motor control signal, cleaning nozzle heating signal, and cleaning liquid level low alarm signal.
[0054] For example, the above-mentioned cleaning fluid service includes a cleaning fluid level alarm service. The technical solution of the present invention will be further illustrated below using the cleaning fluid level alarm service as an example:
[0055] The signal input module periodically receives the cleaning fluid level signal. The cleaning fluid level alarm service verifies the signal. When the input value of the cleaning fluid level is lower than the warning value, the alarm method in the service is executed, generating a low cleaning fluid level alarm signal. The signal output module transmits this alarm signal via Ethernet to a serviceless gateway for parsing. The gateway converts the alarm signal into a CAN signal and transmits it to the BCM (Body Domain Controller). The BCM then controls the HMI (Human Machine Interface) to issue a low cleaning fluid level alarm. The cleaning fluid level alarm service verifies the cleaning fluid level signal. When the input value of the cleaning fluid level signal is greater than or equal to the warning value, the alarm method in the cleaning fluid level alarm service is executed, resulting in a cleaning fluid level alarm signal. The signal output module transmits the cleaning fluid level alarm signal via Ethernet to the service gateway for parsing. The cleaning fluid level alarm signal is converted into a CAN signal and transmitted to the BCM (Body Domain Controller). The BCM then controls the HMI to clear the low cleaning fluid level alarm. A flowchart of the cleaning fluid level alarm service is shown below. Figure 3 As shown.
[0056] In summary, the technical solutions in the embodiments of this application have at least the following technical effects or advantages:
[0057] This invention relates to a headlight washer control component designed based on Simulink and SOA architecture. The steps are simple, the module structure is clear, and it only provides API interface interaction to the outside world, which can easily establish connections with other modules. It decouples the headlight washer control component in the vehicle system from hardware and software, makes the internal and external interface interaction of the vehicle system clear, improves the intelligence of the car, and realizes the intelligent cleaning function of the car headlights.
[0058] Figure 4 This is a schematic diagram of a headlight cleaning control component based on Simulink and SOA architecture provided in an embodiment of the present invention.
[0059] like Figure 4 As shown, the system includes: sub-functional module 401, signal input module 402, signal output module 403, and service gateway module 404.
[0060] Sub-functional module 401 is used to provide atomic services and corresponding API interfaces;
[0061] Signal input module 402 is used to receive API interface requests corresponding to the sub-functional modules;
[0062] The signal output module 403 is used to output the output signal of the atomic service corresponding to the request of the API interface;
[0063] The service gateway module 404 is used to convert the output signal into a CAN signal and transmit it to the body controller.
[0064] For example, the headlight washer control component also includes a timer module for the signal input module to periodically receive API interface requests corresponding to the sub-functional modules.
[0065] For example, the atomic services in the headlight washer control component include: power service, outside temperature service, washer fluid service, and headlight service.
[0066] It should be noted that, for ease of explanation, Figure 4 For example, only the main modules of the headlight washer control component structure based on Simulink and SOA architecture are shown. In practical applications, the system may also include modules or components not shown in the figure; the system is not limited to the above module structure, and may also be other module structures that implement the headlight washer control component development method based on Simulink and SOA architecture of the above embodiments.
[0067] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 5 As shown, the electronic device 500 includes: a processor 501 and a memory 502;
[0068] The processor 501 is used to read and execute the programs and instructions stored in the memory 502, so that the electronic device 500 executes the headlight cleaning control component development method based on Simulink and SOA architecture in the above method embodiment.
[0069] It should be noted that, for ease of explanation, Figure 5 Only the main components of the electronic device are shown. In actual applications, the electronic device may also include components or assemblies not shown in the figure.
[0070] The present invention also provides a computer-readable storage medium storing a program or instructions, which, when read and executed by a computer, causes the computer to perform the headlight cleaning control component development method based on Simulink and SOA architecture described in the above-described method embodiments.
[0071] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for developing a headlamp washing control assembly based on Simulink and SOA architecture, characterized in that, The application relates to a Simulink-based environment, and establishes a running entity corresponding to a headlamp washing control component, sets a running time period for the running entity, puts a sub-function module into the running entity as an atomic service, and determines API interfaces provided by the atomic service according to API definition requirements; a signal input module is put into the running entity to receive API interface requests corresponding to the atomic service in a time sequence; the atomic service verifies the API interface requests and executes a method corresponding to the API interface to obtain an output result corresponding to the API interface; a signal output module is put into the running entity, the signal output module outputs the output result corresponding to the API interface, converts the output result into an output signal, and sends the output signal to a service gateway through Ethernet; the service gateway analyzes the output signal, converts the output signal into a CAN message, and sends the CAN message to a BCM; the BCM controls an HMI to realize a headlamp washing function provided by the atomic service; after testing under the Simulink environment, codes corresponding to the headlamp washing control component are generated, the codes are integrated into a vehicle system, and a headlamp washing control component based on Simulink and SOA architecture is formed; the atomic service comprises a washing liquid level alarm service; API interface requests received by the signal input module comprise a washing liquid level signal; API interface signals output by the signal output module comprise a washing liquid level alarm signal; the signal input module receives the washing liquid level signal corresponding to the washing liquid level alarm service in a time sequence, and the washing liquid level alarm service verifies the washing liquid level signal; When a washing liquid level input value in the washing liquid level signal is less than an alarm value, an alarm method in the washing liquid level alarm service is executed to obtain a washing liquid level low alarm signal; the signal output module transmits the washing liquid level low alarm signal to the service gateway through Ethernet for analysis, converts the washing liquid level low alarm signal into a CAN signal, and transmits the CAN signal to the BCM, and the BCM controls the HMI to perform washing liquid level low alarm; When the washing liquid level input value in the washing liquid level signal is greater than or equal to the alarm value, the alarm method in the washing liquid level alarm service is executed to obtain a washing liquid level alarm signal; the signal output module transmits the washing liquid level alarm signal to the service gateway through Ethernet for analysis, converts the washing liquid level alarm signal into a CAN signal, and transmits the CAN signal to the BCM, and the BCM controls the HMI to cancel the washing liquid level low alarm. The application relates to a Simulink-based environment, and establishes a running entity corresponding to a headlamp washing control component, sets a running time period for the running entity, puts a sub-function module into the running entity as an atomic service, and determines API interfaces provided by the atomic service according to API definition requirements; a signal input module is put into the running entity to receive API interface requests corresponding to the atomic service in a time sequence; the atomic service verifies the API interface requests and executes a method corresponding to the API interface to obtain an output result corresponding to the API interface; a signal output module is put into the running entity, the signal output module outputs the output result corresponding to the API interface, converts the output result into an output signal, and sends the output signal to a service gateway through Ethernet; the service gateway analyzes the output signal, converts the output signal into a CAN message, and sends the CAN message to a BCM; the BCM controls an HMI to realize a headlamp washing function provided by the atomic service; after testing under the Simulink environment, codes corresponding to the headlamp washing control component are generated, the codes are integrated into a vehicle system, and a headlamp washing control component based on Simulink and SOA architecture is formed; the atomic service comprises a washing liquid level alarm service; API interface requests received by the signal input module comprise a washing liquid level signal; API interface signals output by the signal output module comprise a washing liquid level alarm signal; the signal input module receives the washing liquid level signal corresponding to the washing liquid level alarm service in a time sequence, and the washing liquid level alarm service verifies the washing liquid level signal; When a washing liquid level input value in the washing liquid level signal is less than an alarm value, an alarm method in the washing liquid level alarm service is executed to obtain a washing liquid level low alarm signal; the signal output module transmits the washing liquid level low alarm signal to the service gateway through Ethernet for analysis, converts the washing liquid level low alarm signal into a CAN signal, and transmits the CAN signal to the BCM, and the BCM controls the HMI to perform washing liquid level low alarm; When the washing liquid level input value in the washing liquid level signal is greater than or equal to the alarm value, the alarm method in the washing liquid level alarm service is executed to obtain a washing liquid level alarm signal; the signal output module transmits the washing liquid level alarm signal to the service gateway through Ethernet for analysis, converts the washing liquid level alarm signal into a CAN signal, and transmits the CAN signal to the BCM, and the BCM controls the HMI to cancel the washing liquid level low alarm. 2. A headlamp wash control component based on Simulink and SOA architecture, characterized in that, The atomic service includes a cleaning liquid level alarm service; the API interface request received by the signal input module includes a cleaning liquid level signal; the API interface signal output by the signal output module includes a cleaning liquid level alarm signal; the signal input module receives the cleaning liquid level signal corresponding to the cleaning liquid level alarm service in a timing manner, and the cleaning liquid level alarm service verifies the cleaning liquid level signal; When the cleaning liquid level input value in the cleaning liquid level signal is less than the alarm value, an alarm method in the cleaning liquid level alarm service is executed to obtain a cleaning liquid level low alarm signal; the signal output module transmits the cleaning liquid level low alarm signal to the service gateway through Ethernet for analysis, converts the cleaning liquid level low alarm signal into a CAN signal, and delivers the CAN signal to the BCM, so that the BCM controls the HMI to perform cleaning liquid level low alarm; When the cleaning liquid level input value in the cleaning liquid level signal is greater than or equal to the alarm value, the alarm method in the cleaning liquid level alarm service is executed to obtain a cleaning liquid level alarm signal; the signal output module transmits the cleaning liquid level alarm signal to the service gateway through Ethernet for analysis, converts the cleaning liquid level alarm signal into a CAN signal, and delivers the CAN signal to the BCM, so that the BCM controls the HMI to cancel the cleaning liquid level low alarm.
3. An electronic device, comprising: Comprise: a processor and a memory; the processor is coupled with the memory; wherein the processor is configured to read and execute programs or instructions stored in the memory, so that the device executes the method of claim 1.
4. A computer-readable storage medium, characterized in that, A computer program is stored, and the program is executed by the processor to realize the method of claim 1.
Citation Information
Patent Citations
Development method and system for front windscreen wiper control assembly
CN118238745A
SOA-based application layer software architecture construction method and device
CN119861638A