Headlamp cleaning control assembly development method and assembly based on Simulink and SOA architecture
By using Simulink and SOA architecture to design the headlight cleaning control component in the car, the problem of not integrating the headlight cleaning function is solved, the intelligent cleaning function is realized, and the intelligence of the car and the clarity of system interaction are improved.
Patent Information
- Application Number
- CN202410821470.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In the existing technology, the headlight cleaning function is not system integrated in the automobile architecture, resulting in the failure to realize the intelligent cleaning function of the automobile headlights.
Using a method based on Simulink and SOA architecture, by establishing the running entity of the cleaning control component, placing sub-functional modules as atomic services, determining the API interface, and placing signal input and output modules in the running entity to construct headlight cleaning The control component implements the conversion and transmission of interface requests and output signals for atomic services.
It realizes the intelligent cleaning function of automobile headlights and improves the intelligence of automobiles. Through software and hardware decoupling and modular design, the steps of headlight cleaning control components are simple, the module structure is clear, and the external interface interaction is clear.
Smart Images

Figure CN118778951A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent automobile component development, and in particular to a headlight cleaning control component development method based on Simulink and SOA architecture. Background Art
[0002] With the beginning of software-defined cars, cars are constantly developing in a more technological and functional direction, and the traditional car structure is also constantly changing. The cost of automotive electronics and software accounts for an increasing proportion of the entire vehicle. The SOA architecture is the development trend of future smart cars. It can use different functional units split from applications to connect interfaces and protocols through these services. SOA can accelerate the convenient interaction between cars, people, and the Internet through the advantages of software and hardware decoupling, strong combination expansion, and strong migration capabilities, creating a good automotive ecological environment and accelerating the intelligence of cars. In the process of automotive software development based on the SOA architecture, the use of Simulink tools to develop in a model-based manner is also constantly replacing manual code development.
[0003] At present, the headlight cleaning function is located in the LIN node from the perspective of automobile architecture and has not been integrated into the system. In order to realize the intelligent cleaning function of automobile headlights, a more effective headlight cleaning control component is urgently needed. Summary of the invention
[0004] To solve the above problems, the present invention provides a headlight cleaning control component development method based on Simulink and SOA architecture, which improves the intelligence of the car and realizes the intelligent cleaning function of the car headlights.
[0005] To achieve the above object, the present invention adopts the following technical solution:
[0006] In a first aspect, the present invention provides a headlight cleaning control component development method based on Simulink and SOA architecture, comprising:
[0007] Establish the operation entity corresponding to the cleaning control component;
[0008] Put the sub-function module into the running entity as an atomic service;
[0009] Based on the atomic service, determine the corresponding API interface;
[0010] Putting a signal input module and a signal output module into the operating entity;
[0011] Based on the operating entity, the cleaning control component is constructed.
[0012] Furthermore, it also includes:
[0013] An operation time period is set for the operation entity, and the signal input module periodically receives the API interface request corresponding to the sub-function module.
[0014] Furthermore, it also includes:
[0015] The signal input module receives the API interface request corresponding to the atomic service;
[0016] The atomic service verifies the API interface request and executes a corresponding method to obtain an 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 supply service, outside vehicle temperature service, cleaning fluid service, and headlight service.
[0019] Furthermore, the cleaning fluid service includes a cleaning fluid level alarm service.
[0020] In a second aspect, the present invention further provides a headlight cleaning control component based on Simulink and SOA architecture, comprising:
[0021] Sub-function module, used to provide atomic services and corresponding API interfaces;
[0022] A signal input module, used to receive an API interface request corresponding to the sub-function module;
[0023] A signal output module, used to output an 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, a timer module is also included, which is used for the signal input module to periodically receive the API interface request corresponding to the sub-function module.
[0026] Furthermore, the atomic services include: power supply service, outside vehicle temperature service, cleaning fluid service, and headlight service.
[0027] In a third aspect, the present invention further provides an electronic device, comprising: a processor and a memory;
[0028] The processor is coupled to a memory;
[0029] The processor is used to read and execute the program or instruction stored in the memory, so that the device executes the method according to any one of claims 1 to 5.
[0030] In a fourth aspect, the present invention further provides a computer-readable storage medium storing a computer program, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 5.
[0031] In summary, the technical solution provided by this application has at least the following technical effects or advantages:
[0032] The headlight cleaning control component designed by the present invention is based on Simulink and SOA architecture, has simple steps and clear module structure, and only provides API interface interaction to the outside. It can easily establish connections with other modules, decouple the software and hardware of the headlight cleaning control component in the vehicle system, make the internal and external interface interaction of the vehicle system clear, improve the intelligence of the car, and realize the intelligent cleaning function of the car headlights.
[0033] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of a headlight cleaning control component development method based on Simulink and SOA architecture in an embodiment of the present invention;
[0036] Figure 2 It is a schematic diagram of the process of Ethernet transmission signal in an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the flow of the cleaning liquid level alarm service in an embodiment of the present invention;
[0038] Figure 4 It is a structural schematic diagram of a headlight cleaning control component based on Simulink and SOA architecture in an embodiment of the present invention;
[0039] Figure 5 The present invention is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Simulink is a visual simulation tool in MATLAB launched by Mathworks, an American company. SOA (Service-Oriented Architecture) is a component model that splits different functional units of an application (called services) and connects them by defining corresponding interfaces and protocols between these services. The split units are atomic services, which are microservices with independent functions that can be deployed independently and can be used across multiple applications. These independent services can interact with other services to provide specific functions. By decomposing macro services into several smaller components, atomic services can make applications more flexible and scalable. The independence and reusability of atomic services make development easier and maintenance simpler. In addition, atomic services can be built using the latest technologies and tools, allowing applications to better adapt to changes.
[0042] The present invention is a development method of a headlight cleaning control component based on Simulink tools and SOA architecture. The function of the headlight cleaning control component is constructed through Simulink, and the function is executed through the SOA architecture. The sub-function module is directly placed in the running entity as an atomic service, which not only reflects the flexibility of SOA, but also the services communicate through simple and precisely defined interfaces, without involving the underlying programming interface and communication model, and can provide business value better and faster.
[0043] Figure 1 The following is a schematic diagram of a headlight cleaning control component development method based on Simulink and SOA architecture in an embodiment of the present invention. As shown in the figure, a headlight cleaning control component development method based on Simulink and SOA architecture includes:
[0044] S101, establishing an operating entity corresponding to the cleaning control component;
[0045] S102, placing the sub-function module as an atomic service into the running entity;
[0046] S103, determining a corresponding API interface based on the atomic service;
[0047] S104, placing a signal input module and a signal output module into the running entity;
[0048] S105. Construct the cleaning control component based on the operating entity.
[0049] Based on the Simulink environment, create a cleaning control module with multiple sub-functions as a running entity, add an event running time period to the running entity, put the sub-function module in the running entity as an atomic service, and determine the service interface provided by the atomic service according to the API definition requirements. Put the signal input module in the running entity to receive the API interface request corresponding to the sub-function module at a regular interval. The atomic module corresponding to the sub-function module verifies the API interface request and executes the method corresponding to the interface to obtain the output result corresponding to the interface. Put the signal output module in the running entity, output the output result corresponding to the API interface, convert the output result into an output signal, and send it to the service gateway through Ethernet (the role of the service-oriented gateway is unified access, traffic control, security protection, and business isolation). The service gateway parses the output signal, converts it into a CAN message, and sends it to the BCM (body domain controller). Then use the BCM control to implement the headlight cleaning function provided by the corresponding atomic service. After passing the test in the Simulink environment, generate the code corresponding to the headlight cleaning control component, and integrate the code into the vehicle system to form a headlight cleaning control component based on Simulink and SOA architecture. Among them, the flow diagram of Ethernet transmission signal is as follows Figure 2 shown.
[0050] The CAN bus is one of the most widely used field buses in the world. It is designed for microcontroller communication in the automotive environment. It exchanges information between various electronic control units (ECUs) on board the vehicle to form an automotive electronic control network. For example, CAN control devices are embedded in engine management systems, transmission controllers, instrument equipment, and electronic backbone systems. CAN messages refer to the information of sensors parsed from the CAN bus. For example, there are four different message types, namely 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 headlight cleaning control component, namely the atomic services, include: power service, outside temperature service, cleaning fluid service, headlight service, etc., and also include 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, vehicle outside temperature signal, cleaning liquid level signal, and headlight cleaning switch signal 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] Exemplarily, the cleaning liquid service includes a cleaning liquid level alarm service. The following takes the cleaning liquid level alarm service as an example to further illustrate the technical solution of the present invention:
[0055] The signal input module receives the cleaning liquid level signal at regular intervals, 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 warning value, the alarm method in the cleaning liquid level alarm service is executed to obtain the cleaning liquid level alarm signal. The signal output module transmits the cleaning liquid level alarm signal to the serviceless gateway via Ethernet for analysis, and converts the cleaning liquid level alarm signal into a CAN signal and transmits it to the BCM (body domain controller). The BCM controls the HMI (Human Machine Interface, which refers to the interface for interaction and communication between people and machines. It usually includes a graphical display, touch screen, keyboard, mouse, indicator light, sound, voice recognition and other elements to realize information exchange and operation control between people and machines) to alarm for low cleaning liquid level. 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 greater than or equal to the warning value, the alarm method in the cleaning liquid level alarm service is executed to obtain the cleaning liquid level alarm signal. The signal output module transmits the cleaning liquid level alarm signal to the service gateway via Ethernet for analysis, and converts the cleaning liquid level alarm signal into a CAN signal and transmits it to the BCM (body domain controller). The BCM controls the HMI to cancel the low cleaning liquid level alarm. The flow chart of the cleaning liquid level alarm service is as follows: Figure 3 shown.
[0056] In summary, the technical solutions in the embodiments of the present application have at least the following technical effects or advantages:
[0057] The headlight cleaning control component designed by the present invention is based on Simulink and SOA architecture, has simple steps and clear module structure, and only provides API interface interaction to the outside. It can easily establish connections with other modules, decouple the software and hardware of the headlight cleaning control component in the vehicle system, make the internal and external interface interaction of the vehicle system clear, improve the intelligence of the car, and realize the intelligent cleaning function of the car headlights.
[0058] Figure 4 It is a structural 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: a sub-function module 401, a signal input module 402, a signal output module 403, and a service-oriented gateway module 404.
[0060] Sub-function module 401 is used to provide atomic services and corresponding API interfaces;
[0061] The signal input module 402 is used to receive the API interface request corresponding to the sub-function module;
[0062] A signal output module 403, used to output an 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 vehicle body controller.
[0064] Exemplarily, the headlight cleaning control component further includes a timer module, which is used for the signal input module to periodically receive API interface requests corresponding to the sub-functional modules.
[0065] Exemplarily, the atomic services in the headlight cleaning control component include: power service, outside temperature service, cleaning fluid service, and headlight service.
[0066] It should be noted that, for the sake of convenience, Figure 4 For example, only the main modules of the headlight cleaning 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 cleaning control component development method based on Simulink and SOA architecture in the above embodiment.
[0067] Figure 5 FIG. 1 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 the sake of convenience, Figure 5 Only the main components of the electronic device are shown. In practical 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 instruction. When a computer reads and executes the program or instruction, the computer executes the headlight cleaning control component development method based on Simulink and SOA architecture in the above-mentioned method embodiment.
[0071] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A headlight cleaning control component development method based on Simulink and SOA architecture, characterized in that: include: Establish the operation entity corresponding to the cleaning control component; Put the sub-function module into the running entity as an atomic service; Based on the atomic service, determine the corresponding API interface; Putting a signal input module and a signal output module into the running entity; Based on the operating entity, the cleaning control component is constructed.
2. The headlight cleaning control component development method based on Simulink and SOA architecture according to claim 1 is characterized in that: Also includes: An operating time period is set for the operating entity, and the signal input module periodically receives the API interface request corresponding to the sub-functional module.
3. The headlight cleaning control component development method based on Simulink and SOA architecture according to claim 1 is characterized in that: Also includes: The signal input module receives the API interface request corresponding to the atomic service; The atomic service verifies the API interface request and executes the corresponding method to obtain the output result of the atomic service; The signal output module converts the output result into an output signal and sends it to the service gateway.
4. The headlight cleaning control component development method based on Simulink and SOA architecture according to claim 1 is characterized in that: The atomic services include: power service, outside vehicle temperature service, cleaning fluid service, and headlight service.
5. The headlight cleaning control component development method based on Simulink and SOA architecture according to claim 3 is characterized in that: The cleaning fluid service includes a cleaning fluid level alarm service.
6. A headlight cleaning control component based on Simulink and SOA architecture, characterized in that: include: Sub-function module, used to provide atomic services and corresponding API interfaces; A signal input module, used to receive an API interface request corresponding to the sub-function module; A signal output module, used to output an output signal of the atomic service corresponding to the request of the API interface; The service gateway module is used to convert the output signal into a CAN signal and transmit it to the body controller.
7. The headlight cleaning control component based on Simulink and SOA architecture according to claim 6 is characterized in that: It also includes a timer module, which is used for the signal input module to periodically receive the API interface request corresponding to the sub-function module.
8. The headlight cleaning control component based on Simulink and SOA architecture according to claim 6, characterized in that: The atomic services include: power service, outside vehicle temperature service, cleaning fluid service, and headlight service.
9. An electronic device, characterized in that: include: Processor and memory; The processor is coupled to the memory; The processor is used to read and execute the program or instruction stored in the memory, so that the device executes the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Software development method and system for brake lamp of new energy automobile
CN115543274A
Development method and system for front windscreen wiper control assembly
CN118238745A
SOA-based application layer software architecture construction method and device
CN119861638A
Systems and methods for resilient communication protocols and interfaces
US11228656B1
Cited By
Windscreen wiper washing control assembly development method and device
CN119829032A
