An interface method for a vehicle window control module

By designing the function interface and common function parameters of the window control module, the problem of increasing the number of software interfaces of the window control module is solved, decoupling and solidification between modules is achieved, and R&D costs and quality risks are reduced.

CN114816423BActive Publication Date: 2025-01-24CHONGQING CHANGAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210444697.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-26
Publication Date
2025-01-24
Estimated Expiration
2042-04-26

Smart Images

  • Figure CN114816423B_ABST
    Figure CN114816423B_ABST
Patent Text Reader

Abstract

The present invention relates to an interface method for a vehicle window control module, including an external software interface in the form of a function, which is used to support internal calls of the vehicle window control module and realize calls between multiple vehicle window control modules based on a communication protocol; the function interface includes a set of general function parameters for carrying basic control functions of the vehicle window, and the general function parameters include function input parameters and function output parameters; the function input parameters include four parameters, namely, vehicle window movement direction A, vehicle window movement mode B, vehicle window target position C and vehicle window command priority D. The essence of the present invention is a function interface with parameters, which can transmit more information than signals through function calls, and then abstract the capabilities that the vehicle window itself can provide through limited parameters, so as to achieve the effect of solidifying the software interface of the vehicle window control module, realize decoupling between software modules, shorten the development time, and at the same time, from the perspective of software quality, avoid the quality risks brought by software changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of automobile intelligence, and in particular relates to an interface method of a vehicle window control module. Background Art

[0002] With the rapid development of automobile intelligence, the functions carried by automobiles are becoming more and more abundant. The car windows are important parts of the car. The traditional way of controlling the opening or closing of the windows by physical buttons or hand cranks on the car doors can no longer meet the needs of users.

[0003] In order to improve the user experience and enrich the functional scenarios of window control, car companies have proposed functions such as Bluetooth key control of windows, mobile phone remote control of windows and voice control of windows; however, as shown in the attached Figure 2 As shown, the industry currently mainly uses a single signal to define the software interface of the window control module. Different control signals are defined for different window control functional scenarios to access the window control module. For example, a button-controlled software interface is defined for button-controlled windows. The window control module then receives these control commands one by one, performs command parsing and arbitration, and finally drives the vehicle windows for execution.

[0004] In the current context of the automotive industry, vehicle configurations are constantly enriched, and the functional scenarios of windows are increasing. The window control module needs to be configured with multiple software interfaces of the window control module based on a single signal, which will not only increase the R&D and production costs, but also bring greater quality risks. In addition, the increase in software interfaces may also cause changes in the command parsing software and priority arbitration software inside the window control module. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is to provide an interface method for a vehicle window control module, so as to solve the problem that the current vehicle window control module needs to increase the number of software interfaces with the functional scenarios, thereby achieving the effect of reducing R&D and production costs and quality risks.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] An interface method for a vehicle window control module, comprising an external software interface, wherein the external software interface is a function interface for supporting internal calls of the vehicle window control module and realizing calls between multiple vehicle window control modules based on a communication protocol;

[0008] The function interface includes a set of general function parameters for carrying basic control functions of the vehicle windows, and the general function parameters include function input parameters and function output parameters.

[0009] Furthermore, the function input includes four parameters, namely the window movement direction A, the window movement mode B, the window target position C and the window command priority D.

[0010] Further, the window movement direction A may be defined as no request, closing the window, and opening the window.

[0011] Further, the window movement mode B may be defined as stop movement, manual mode, and automatic mode.

[0012] Further, when the window movement mode B is defined as stop movement or manual mode, the window target position C can be defined as any integer in the range of 0 to 100; when the window movement mode B is automatic mode, the window target position C takes effect;

[0013] The numerical value of the window target position C is proportional to the degree of opening of the window. When the window target position C is defined as 0, it corresponds to the window being completely closed, and when the window target position C is defined as 100, it corresponds to the window being fully opened.

[0014] Furthermore, the window command priority D can be defined as any integer in the range of 0 to 255, where one integer corresponds to a functional scene of the window, and the size of the integer is inversely proportional to the priority of the functional scene control command.

[0015] Furthermore, the function output parameter is the window command return value E, which is used to feedback the execution status of the current function scene control command to the requesting party that issued the function scene control command. The window command return value E can be defined as success, high priority busy, device abnormality, parameter out of range and other reasons.

[0016] Furthermore, the communication protocol includes SOME / IP protocol and DDS protocol.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] The interface method of a vehicle window control module described in the present invention has an external software interface that is essentially a function interface with parameters. More information can be transmitted through function calls than signals, and then the capabilities that the vehicle window itself can provide are abstracted through limited parameters to achieve the effect of solidifying the software interface of the vehicle window control module, realize decoupling between software modules, shorten development time, and from the perspective of software quality, also avoid quality risks brought by software changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a schematic diagram of the application of the external software interface described in the embodiment;

[0020] Figure 2 This is a schematic diagram of the application of the single-signal-based window control module software interface described in the background technology. DETAILED DESCRIPTION

[0021] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0022] Example:

[0023] See also Figure 1 , an interface method for a vehicle window control module, comprising an external software interface, wherein the external software interface is a function interface, which is used to support internal calls of the vehicle window control module and implement calls between multiple vehicle window control modules based on a communication protocol; in this embodiment, the communication protocol used is the SOME / IP protocol or the DDS protocol;

[0024] The function interface includes a set of general function parameters, which carry the basic capabilities of the vehicle window and provide the capabilities to the outside. The general function parameters include function input parameters and function output parameters.

[0025] The function input contains four parameters, namely the window movement direction A, the window movement mode B, the window target position C and the window command priority D;

[0026] The window movement direction A includes three definitions, namely no request, window closing and window opening; the window movement mode B includes three definitions, namely stop movement, manual mode and automatic mode; the window target position C is defined as an integer in the range of 0 to 100, and the value of the window target position C is proportional to the degree of opening of the window. When the window target position C is defined as 0, the window is completely closed, and when the window target position C is defined as 100, the window is completely opened; when the window movement mode B is defined as stop movement or manual mode, the window target position C can be defined as any integer in the range of 0 to 100; when the window movement mode B is defined as stop movement or manual mode, the window target position C can be defined as any integer in the range of 0 to 100; When the dynamic mode B is the automatic mode, the window target position C takes effect; the window command priority D is defined as an integer in the range of 0 to 255, which is used to define the control command priority of different functional scene requests. The size of the integer is inversely proportional to the priority of the functional scene control command, that is, the smaller the value of the window command priority D, the higher the priority of the corresponding control command. When the priority values ​​are equal, the command received after the response; in addition, before defining the window command priority D, all functional scenes of the window need to be prioritized and assigned a unique window command priority D value, and this value can no longer be used for other functional scenes.

[0027] Among them, the function output parameter is the window command return value E, which is used to feedback the execution status of the current function scene control command to the requester who issued the function scene control command. The window command return value E can be defined as success, high priority busy, device abnormality, parameter out of range and other reasons.

[0028] The interface method of a vehicle window control module described in the present invention has an external software interface that is essentially a function interface with parameters. More information can be transmitted through function calls than signals, and then the capabilities that the vehicle window itself can provide are abstracted through limited parameters to achieve the effect of solidifying the software interface of the vehicle window control module, realize decoupling between software modules, shorten development time, and from the perspective of software quality, also avoid quality risks brought by software changes.

[0029] To further illustrate and understand the present invention, an example of a vehicle window function scenario using an interface method of a vehicle window control module according to the present invention is given as follows:

[0030] Example 1: Using the software interface provided by the present invention to realize the functional scenario of manually raising and lowering the car window by pressing a button;

[0031] The initial conditions required for this example are that the current window is in idle state and the equipment is normal. Usually, lifting the button means controlling the window to close, and pressing the button means controlling the window to open. First, the button is lifted, and the relevant application unit software calls the external software interface of the window control module according to the following parameter settings: the window movement direction A is equal to closing the window, the window movement mode B is equal to manual mode, the window target position C is equal to 100, and the window command priority D is assigned to 5 according to the priority. The window control module executes according to the command to control the window to close. Then, release the button, and the relevant application unit software sets the window movement direction A to no request and the window movement mode B to stop movement. The other parameters remain unchanged, and the external software interface of the window control module is called again. The window control module executes according to the command to control the window to stop. Opening the window is similar to closing the window, and will not be repeated.

[0032] Example 2: Using the software interface provided by the present invention to realize the automatic window closing function scenario when leaving the vehicle;

[0033] The initial conditions required for this example are that the current car window is in an open state and the equipment is normal. The scenario itself describes the situation where the car window is not completely closed when the person leaves the car, and the vehicle actively closes the car window; the relevant application unit software calls the external software interface of the window control module according to the following parameter settings: the window movement direction A is equal to closing the window, the window movement mode B is equal to the automatic mode, the window target position C is equal to 0, representing that the window is fully closed, and the window command priority D is assigned a priority of 80. The window control module executes the command to control the window to be completely closed; this example emphasizes that the external software interface provided by the present invention is used to carry the operating function of the window automatic mode. By introducing the window target position C, the window can be controlled to automatically stop at the set target position, meeting the vast majority of window usage scenarios.

[0034] Example 3: A scenario in which the software interface provided by the present invention is used to implement command priority arbitration, and a solution to command conflicts is demonstrated;

[0035] This example is based on Example 1 and Example 2. When Example 2 is being executed, that is, the window control module is executing a command with a control command priority D value of 80, it receives a command to manually lower the window by pressing the button, that is, a command with a control command priority D value of 5. According to the arbitration rule that the smaller the D value, the higher the priority, the window control module will immediately execute the command to manually lower the window by pressing the button. In this example, the subsequent command will interrupt the currently executing command due to its higher priority, thus realizing the arbitration function. On the contrary, if the priority D of the subsequent command is greater than the priority D of the command being executed, the subsequent command will be discarded and the high priority busy state will be returned through the window command return value E.

[0036] Through the above three examples, it can be seen that the external software interface provided by the present invention can fully provide the capabilities of the vehicle windows, almost meeting the control requirements of all functional scenarios for the vehicle windows, while also taking into account priority arbitration and status feedback; the vehicle window control module that relies on the external software interface provided by the present invention also relatively solidifies its own external interface and internal logic, which plays many beneficial roles in the software development and maintenance of the vehicle window control module.

[0037] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

Claims

1. An interface method for a vehicle window control module, including an external software interface, characterized in that: The external software interface is a function interface, which is used to support internal calls of the window control module and to implement calls between multiple window control modules based on the communication protocol; The function interface includes a set of general function parameters for carrying the basic control functions of the vehicle window, and the general function parameters include function input parameters and function output parameters; The function input contains four parameters, namely the window movement direction A, the window movement mode B, the window target position C and the window command priority D; The window command priority D can be defined as any integer in the range of 0 to 255. One integer corresponds to a functional scene of the window, and the size of the integer is inversely proportional to the priority of the functional scene control command.

2. The interface method of a vehicle window control module according to claim 1, characterized in that: The window movement direction A can be defined as no request, window closed, and window open.

3. The interface method of a vehicle window control module according to claim 1, characterized in that: Window movement mode B can be defined as stop movement, manual mode and automatic mode.

4. The interface method of a vehicle window control module according to claim 3, characterized in that: When the window movement mode B is defined as stop movement or manual mode, the window target position C can be defined as any integer in the range of 0 to 100; when the window movement mode B is automatic mode, the window target position C takes effect; The numerical value of the window target position C is proportional to the degree of opening of the window. When the window target position C is defined as 0, it corresponds to the window being completely closed, and when the window target position C is defined as 100, it corresponds to the window being fully opened.

5. The interface method of a vehicle window control module according to claim 1, characterized in that: The function output parameter is the window command return value E, which is used to feedback the execution status of the current function scene control command to the requester who issued the function scene control command. The window command return value E can be defined as success, high priority busy, device abnormality, parameter out of range and other reasons.

6. The interface method of a vehicle window control module according to claim 1, characterized in that: The communication protocols include SOME / IP protocol and DDS protocol.

Citation Information

Patent Citations

  • Vehicle window control device and method

    CN113898268A