Vehicle sunroof control method, device, vehicle and storage medium

By parsing and arbitrating the call request parameters of automobile sunroofs, the priority arbitration problem of multiple control instructions is solved, software development and maintenance costs are reduced, the accuracy and efficiency of sunroof control are improved, and the user experience is improved.

CN115467602BActive Publication Date: 2024-09-24CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210969016.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-12
Publication Date
2024-09-24
Estimated Expiration
2042-08-12

AI Technical Summary

Technical Problem

With the enrichment of automotive sunroof functional scenarios, software interfaces are constantly changing, resulting in high software development and maintenance costs, and the priority arbitration of multiple control instructions is difficult to resolve.

Method used

By receiving multiple call requests from the vehicle sunroof, it parses and verifies the movement direction, movement mode, target position and priority parameters, uses the preset arbitration mechanism to arbitrate the parameters, and generates control instructions to execute the switching action to ensure the priority order and order of the instructions. effectiveness.

Benefits of technology

It effectively reduces software development time and maintenance costs, improves the accuracy and efficiency of execution of skylight control instructions, and ensures real-time response to user instructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115467602B
    Figure CN115467602B
Patent Text Reader

Abstract

The present application relates to a vehicle sunroof control method, device, vehicle and storage medium, wherein the method includes: receiving multiple call requests for the vehicle sunroof; parsing the current parameters of the movement direction, movement mode, target position and / or current priority of each call request according to the multiple call requests; verifying whether the current parameters of each call request meet the preset verification conditions, and after the preset verification conditions are met, arbitrating the parameters of each call request with a preset arbitration mechanism, and then controlling the vehicle sunroof to perform the corresponding switch action. The present application can parse and verify the parameters of each sunroof call request, and after the verification conditions are met, arbitrate the parameters to control the vehicle sunroof to perform the corresponding switch action, thereby effectively solving the problem of priority arbitration of multiple control instructions, reducing software development time and maintenance costs, and improving the accuracy and efficiency of the sunroof performing opening and closing actions according to the control instructions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle sunroof control method, device, vehicle and storage medium. Background Art

[0002] The sunroof is one of the important parts of a car. With the increasing development of the automobile industry, the sunroof needs to realize more and more functional scenarios, such as car computer control, mobile phone remote control, voice control and other scenarios.

[0003] The relevant technology can enable the car windows to open even when the on-board battery is unable to power the car, or automatically control the opening and closing of the vehicle sunroof in scenarios such as wading and pollution, so as to improve the user experience.

[0004] However, as functional scenarios gradually become richer, software interfaces are also constantly changing, resulting in excessively high software development and maintenance costs. In addition, as an enhanced service for processing core logic, related technologies have the problem of multiple calls to one, making it difficult to solve the problem of priority arbitration of multiple control instructions. Summary of the invention

[0005] The present application provides a vehicle sunroof control method, device, vehicle and storage medium to solve problems such as continuous changes in software modules due to rich functional scenarios and priority arbitration of multiple control signals.

[0006] A first aspect of the present application provides a vehicle sunroof control method, comprising the following steps: receiving multiple call requests for a vehicle sunroof; parsing current parameters of the motion direction, motion mode, target position and / or current priority of each call request according to the multiple call requests; and verifying whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet preset verification conditions, and after the preset verification conditions are met, arbitrating the motion direction, motion mode, target position and / or current priority parameters of each call request with a preset arbitration mechanism, and controlling the vehicle sunroof to perform corresponding switching actions according to a current control instruction generated according to the arbitration result.

[0007] According to the above-mentioned technical means, the embodiment of the present application can parse and verify the parameters of the call request of each sunroof, and after the verification conditions are met, arbitrate the parameters to control the vehicle sunroof to perform the corresponding switching action, thereby effectively solving the problem of priority arbitration of multiple control instructions, reducing software development time and maintenance costs, and improving the accuracy and efficiency of the sunroof performing opening and closing actions according to the control instructions.

[0008] Optionally, in one embodiment of the present application, the checking whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet the preset verification conditions includes: determining whether the parameter range corresponding to the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meets the preset validity conditions; if the parameter range corresponding to any current parameter of the motion direction, motion mode, target position and / or current priority does not meet the preset validity conditions, a call failure reminder is sent.

[0009] According to the above-mentioned technical means, the embodiment of the present application can perform parameter verification on each call request, can effectively detect invalid parameters, and promptly remind the user, further ensuring the accuracy of the sunroof's opening and closing actions according to the call request.

[0010] Optionally, in one embodiment of the present application, before parsing the current parameters of the motion direction, motion mode, target position and / or current priority of each call request according to the multiple call requests, it also includes: detecting whether the current moment has reached a preset reading cycle; when it is detected that the current moment has reached the reading cycle, reading each call request of the multiple call requests.

[0011] According to the above-mentioned technical means, the embodiment of the present application can detect the call status information through the periodic main control function, thereby ensuring the logic and sequentiality of the call request reading, effectively avoiding the confusion of the reading request, and ensuring the accuracy and real-time nature of the call request parameter parsing.

[0012] Optionally, in one embodiment of the present application, after controlling the vehicle sunroof to perform a corresponding switching action according to the arbitration result, it also includes: updating the target parameters of the vehicle sunroof according to the current parameters of the motion direction, motion mode, target position and / or current priority of the next call request of the arbitration result, and generating a new control instruction.

[0013] According to the above-mentioned technical means, the embodiment of the present application can update the target parameters of the vehicle sunroof according to the current input parameters of the next call request of the arbitration result to generate new control instructions, thereby effectively solving the arbitration problem of simultaneous calls of multiple functional scenarios, so that the sunroof can respond to the user's instructions in a comprehensive and intelligent real-time manner, thereby improving the user's experience.

[0014] A second aspect of the present application provides a sunroof control device for a vehicle, comprising: a receiving module for receiving multiple call requests for a vehicle sunroof; a parsing module for parsing current parameters of the motion direction, motion mode, target position and / or current priority of each call request according to the multiple call requests; and a control module for verifying whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet preset verification conditions, and after the preset verification conditions are met, arbitrating the parameters of the motion direction, motion mode, target position and / or current priority of each call request with a preset arbitration mechanism, and controlling the vehicle sunroof to perform corresponding switching actions according to the current control instruction generated according to the arbitration result.

[0015] Optionally, in one embodiment of the present application, the control module includes: a judgment unit, used to judge whether the parameter range corresponding to the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meets the preset validity conditions; a reminder unit, used to send a call failure reminder if the parameter range corresponding to any current parameter of the motion direction, motion mode, target position and / or current priority does not meet the preset validity conditions.

[0016] Optionally, in one embodiment of the present application, it also includes: a detection module, used to detect whether the current moment has reached a preset read cycle before parsing the current parameters of the movement direction, movement mode, target position and / or current priority of each call request according to the multiple call requests; a reading module, used to read each call request of the multiple call requests when it is detected that the current moment has reached the read cycle.

[0017] Optionally, in one embodiment of the present application, it also includes: an update module, which is used to update the target parameters of the vehicle sunroof according to the current parameters of the motion direction, motion mode, target position and / or current priority of the next call request of the arbitration result after controlling the vehicle sunroof to perform a corresponding switching action according to the arbitration result, and generate a new control instruction.

[0018] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle sunroof control method as described in the above embodiment.

[0019] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned vehicle sunroof control method.

[0020] Therefore, the embodiments of the present application have the following beneficial effects:

[0021] (1) The embodiments of the present application can parse and verify the parameters of each sunroof call request, and after the verification conditions are met, arbitrate the parameters to control the vehicle sunroof to perform corresponding switching actions, thereby effectively solving the problem of priority arbitration of multiple control instructions, reducing software development time and maintenance costs, and improving the accuracy and efficiency of the sunroof performing opening and closing actions according to the control instructions.

[0022] (2) The embodiment of the present application can perform parameter verification on each call request, can effectively detect invalid parameters, and promptly remind the user, further ensuring the accuracy of the sunroof opening and closing actions according to the call request.

[0023] (3) The embodiment of the present application can detect the call status information through the periodic main control function, thereby ensuring the logic and order of the call request reading, effectively avoiding the confusion of the reading request, and ensuring the accuracy and real-time nature of the call request parameter parsing.

[0024] (4) The embodiment of the present application can update the target parameters of the vehicle sunroof according to the current input parameters of the next call request of the arbitration result to generate a new control instruction, thereby effectively solving the arbitration problem of simultaneous calls of multiple functional scenarios, so that the sunroof can respond to the user's instructions in a comprehensive and intelligent real-time manner, thereby improving the user's experience.

[0025] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0027] Figure 1 A flow chart of a vehicle sunroof control method provided according to an embodiment of the present application;

[0028] Figure 2 A schematic diagram of a logic architecture of a vehicle sunroof control method provided according to an embodiment of the present application;

[0029] Figure 3 A schematic diagram of execution logic of a vehicle sunroof control method provided according to an embodiment of the present application;

[0030] Figure 4 is an exemplary diagram of a sunroof control device for a vehicle according to an embodiment of the present application;

[0031] Figure 5 A schematic diagram of the structure of a vehicle provided for an application embodiment.

[0032] Among them, 10 is a vehicle sunroof control device; 100 is a receiving module, 200 is an analysis module, 300 is a control module, 501 is a memory, 502 is a processor, and 503 is a communication interface. DETAILED DESCRIPTION

[0033] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0034] The following describes the vehicle sunroof control method, device, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above background technology, the present application provides a vehicle sunroof control method, in which multiple call requests of the vehicle sunroof are received; the current parameters of the motion direction, motion mode, target position and / or current priority of each call request are parsed according to the multiple call requests; the current parameters of the motion direction, motion mode, target position and / or current priority of each call request are checked whether they meet the preset verification conditions, and after the preset verification conditions are met, the parameters of the motion direction, motion mode, target position and / or current priority of each call request are arbitrated by a preset arbitration mechanism, and the current control instruction generated according to the arbitration result controls the vehicle sunroof to perform the corresponding switch action. The present application can parse and verify the parameters of the call request of each sunroof, and after the verification conditions are met, the parameters are arbitrated to control the vehicle sunroof to perform the corresponding switch action, thereby effectively reducing the software development time and maintenance cost, and improving the accuracy and efficiency of the sunroof to perform the opening and closing action according to the control instruction. As a result, the problems of continuous changes in software modules due to rich functional scenarios and priority arbitration of multiple control signals are solved.

[0035] Specifically, Figure 1 A flow chart of a vehicle sunroof control method provided in an embodiment of the present application.

[0036] like Figure 1 As shown, the vehicle sunroof control method includes the following steps:

[0037] In step S101 , multiple call requests for a vehicle sunroof are received.

[0038] The embodiment of the present application can receive multiple call requests for the vehicle sunroof based on SOA (Service-Oriented Architecture).

[0039] Specifically, the Skylight service call strategy under the SOA architecture mainly includes a call request process and an instruction execution process. Among them, the call request process is a non-periodic process. When the user or caller sends a call request to the service party, that is, when the parameters are passed through the unified external software interface of the Skylight service, the embodiment of the present application can always receive the call request information of the requester or caller.

[0040] It should be noted that, in the embodiment of the present application, when a user or a caller sends a call request to a service provider and transmits parameters, the parameters mainly include input parameters such as movement direction, movement mode, target position and current priority.

[0041] Specifically, the above parameters include four parameters, which are specifically defined as follows:

[0042] Parameter 1: The direction of the sunroof's movement (Idle / open / close);

[0043] Parameter 2: Sunroof's sports mode (Stop / Auto / Manual);

[0044] Parameter 3: Target position of the sunroof (0-100). This parameter is effective only in automatic mode.

[0045] Parameter 4: The priority of the control instruction. This parameter is an integer between 0 and 255. The lower the priority value, the higher the priority. When defining the priority value, it is necessary to determine the priority of different functional scenarios. It is defined based on safety, driving requirements, and experience requirements. The priority value is one-to-one and unique.

[0046] Therefore, by utilizing the SOA architecture to receive multiple call requests for the vehicle sunroof, while ensuring the real-time nature of the received requests, it also provides reliable data support for subsequent operations such as parameter analysis and verification.

[0047] In step S102, current parameters of the motion direction, motion mode, target position and / or current priority of each call request are parsed according to the multiple call requests.

[0048] It should be noted that after receiving multiple call requests for the vehicle sunroof, the embodiment of the present application enters the instruction execution process from the call request process. This process is a periodic operation process and a periodic main control function, which is mainly used to control the update and execution of instructions. During the instruction execution process, the embodiment of the present application can parse each execution instruction, that is, the movement direction, movement mode, target position, and current priority parameters of the call request, thereby providing technical support for the realization of the sunroof service call work and satisfying the call within the controller and between controllers through the communication protocol.

[0049] Optionally, in one embodiment of the present application, before parsing the current parameters of the movement direction, movement mode, target position and / or current priority of each call request according to multiple call requests, it also includes: detecting whether the current moment has reached a preset reading cycle; when it is detected that the reading cycle has been reached at the current moment, reading each call request of the multiple call requests.

[0050] It should be noted that before parsing the parameters of each call request, the embodiment of the present application can detect the call status information through a periodic master control function. For example, when the reading cycle of the master control function is 1s, the embodiment of the present application can detect whether the current moment has reached the reading cycle through a timer, etc. If it is detected that the current moment is 0.5s, the reading cycle has not been reached. When the detected reading cycle reaches 1s, each call request of multiple call requests can be read, thereby ensuring the logic and sequentiality of the call request reading, effectively avoiding the confusion of the read requests, and ensuring the accuracy and real-time nature of the call request parameter parsing.

[0051] In step S103, it is checked whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet the preset verification conditions, and after the preset verification conditions are met, the parameters of the motion direction, motion mode, target position and / or current priority of each call request are arbitrated by a preset arbitration mechanism, and the current control instruction generated according to the arbitration result controls the vehicle sunroof to perform the corresponding switching action.

[0052] After parsing the current input parameters of each call request according to multiple call requests, the counting component is updated, that is, the number Counter is incremented by 1. Furthermore, the embodiment of the present application can determine whether the current input parameters meet the verification conditions, and arbitrate the input parameters of each call request to control the vehicle sunroof to perform the corresponding opening and closing actions, thereby achieving decoupling between the various software modules, while improving the accuracy and efficiency of the sunroof performing the opening and closing actions according to the control instructions, and effectively reducing the time and maintenance costs of software development.

[0053] Optionally, in one embodiment of the present application, it is verified whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet preset verification conditions, including: determining whether the parameter range corresponding to the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meets preset validity conditions; if the parameter range corresponding to any current parameter in the motion direction, motion mode, target position and / or current priority does not meet the preset validity conditions, a call failure reminder is sent.

[0054] It should be noted that before arbitrating the current input parameters of each call request, the parameters of each call request need to be verified, that is, the valid range of the parameters needs to be detected. When any parameter value is not within the valid range, a call failure reminder is sent.

[0055] For example, after parsing the input parameters of each call request, if the target position parameter value of the sunroof is detected to be 101, it means that the parameter exceeds its valid range. At this time, the return value parameter can be used to feedback the call failure information. The vehicle system can use the vehicle display and other devices based on the return parameter through voice or text, such as "Sunroof target position parameter exceeds the limit, call failed!", to remind the user.

[0056] Therefore, by performing parameter verification on each call request, invalid parameters can be effectively detected and the user can be reminded in time, further ensuring the accuracy of the sunroof's opening and closing actions according to the call request.

[0057] After verifying the current input parameters of each call request, further, the embodiment of the present application can provide a mechanism strategy preset by the vehicle system to arbitrate the input parameters of each call request. For example, when the sunroof is in a half-open state, after reading two call requests and parsing and verifying their parameters, the parameter values ​​of the current priority parameters in the above call requests can be compared. If the priority parameter value of the window opening request is 66, and the priority parameter value of the window closing request is 76, then the arbitration result is to give priority to the window opening instruction. Thus, a high-priority control instruction is arbitrated, and the final arbitration result is passed to the periodic main control function. At the same time, the arbitration Counter is obtained through the arbitration mechanism. The main control periodic function can determine whether the service is called by detecting the change of the Counter value, and complete the parsing of the instruction, thereby driving the motor to control the vehicle sunroof to perform the corresponding switch action, such as Figure 2 As shown, it can not only meet the needs of different functional scenarios, complete arbitration and status feedback, achieve decoupling between software, reduce the cost of software module development and maintenance costs, but also improve the accuracy and efficiency of the sunroof's opening and closing actions according to control instructions.

[0058] Optionally, in one embodiment of the present application, after controlling the vehicle sunroof to perform a corresponding switching action according to the arbitration result, it also includes: updating the target parameters of the vehicle sunroof according to the current parameters of the motion direction, motion mode, target position and / or current priority of the next call request of the arbitration result, and generating a new control instruction.

[0059] After controlling the vehicle sunroof to perform the corresponding switching action according to the arbitration result, the embodiment of the present application can also update the target parameter value of the vehicle sunroof according to the parameters of the next call request of the arbitration result to generate a new control instruction, and execute the control instruction to complete the control of the sunroof to open and close and other actions, and complete the call again, thereby effectively solving the arbitration problem of simultaneous calls of multiple functional scenarios, so that the sunroof can respond to the user's instructions in a comprehensive and intelligent real-time manner, thereby improving the user experience.

[0060] The working process of a vehicle sunroof control method of the present application is described below through a specific embodiment.

[0061] Figure 3 The execution logic of the sunroof control method for a vehicle in an embodiment of the present application is demonstrated. For example, in a functional scenario where the sunroof hard switch button requests manual control of the sunroof switch, when the user continues to press the sunroof control button, that is, manually opens the sunroof, the requester sends a call request to the service party, that is, passes four input parameters, parameter 1 is the movement direction of the sunroof, and the current value is Open; parameter 2 is the movement mode of the sunroof, and the current value is Manual, and parameter 3 is not effective in the current manual mode. The priority value of this functional scenario is defined as 10. At this time, the service party's call request module will complete the parameter verification, arbitration and other processing processes, and pass the arbitration result to the periodic main control function for execution, thereby driving the motor to complete the manual opening action of the sunroof, that is, completing a call.

[0062] At this time, release the switch button, the value of parameter 1 is updated to Idle, that is, the movement direction of the sunroof is in a non-requested state, and the value of parameter 2 is updated to Stop, that is, the movement mode of the sunroof is in a stopped state. The other parameters remain unchanged, and the control command is executed to complete the control of the sunroof to stop, that is, another call is completed.

[0063] According to the vehicle sunroof control method proposed in the embodiment of the present application, multiple call requests for the vehicle sunroof are received; the current parameters of the movement direction, movement mode, target position and / or current priority of each call request are parsed according to the multiple call requests; the current parameters of each call request are verified to see if they meet the preset verification conditions, and after the preset verification conditions are met, the parameters of each call request are arbitrated by a preset arbitration mechanism, and the current control instruction generated according to the arbitration result controls the vehicle sunroof to perform the corresponding switch action. The present application can parse and verify the parameters of each sunroof call request, and after the verification conditions are met, arbitrate the parameters to control the vehicle sunroof to perform the corresponding switch action, thereby effectively reducing software development time and maintenance costs, and improving the accuracy and efficiency of the sunroof performing the opening and closing action according to the control instruction.

[0064] Next, the sunroof control device for a vehicle proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.

[0065] Figure 4 It is a block diagram of a sunroof control device for a vehicle according to an embodiment of the present application.

[0066] like Figure 4 As shown, the sunroof control device 10 of the vehicle includes: a receiving module 100 , a parsing module 200 and a control module 300 .

[0067] The receiving module 100 is used to receive multiple call requests for the vehicle sunroof.

[0068] The parsing module 200 is used to parse the current parameters of the motion direction, motion mode, target position and / or current priority of each calling request according to the multiple calling requests.

[0069] The control module 300 is used to verify whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet the preset verification conditions, and after the preset verification conditions are met, arbitrate the parameters of the motion direction, motion mode, target position and / or current priority of each call request with a preset arbitration mechanism, and control the vehicle sunroof to perform the corresponding switching action according to the current control instruction generated according to the arbitration result.

[0070] Optionally, in one embodiment of the present application, the control module 300 includes: a judgment unit and a reminder unit.

[0071] The judgment unit is used to judge whether the movement direction, movement mode, target position and / or parameter range corresponding to the current parameter of the current priority of each call request meets the preset validity condition.

[0072] The reminder unit is used to send a call failure reminder if the parameter range corresponding to any current parameter in the motion direction, motion mode, target position and / or current priority does not meet the preset validity condition.

[0073] Optionally, in one embodiment of the present application, the sunroof control device 10 of the vehicle in the embodiment of the present application further includes: a detection module and a reading module.

[0074] Among them, the detection module is used to detect whether the current moment reaches a preset reading cycle before parsing the current parameters of the movement direction, movement mode, target position and / or current priority of each call request according to multiple call requests.

[0075] The reading module is used to read each call request of the multiple call requests when detecting that the current moment reaches the reading cycle.

[0076] Optionally, in one embodiment of the present application, the sunroof control device 10 of the vehicle in the embodiment of the present application further includes: an update module, which is used to update the target parameters of the vehicle sunroof according to the current parameters of the motion direction, motion mode, target position and / or current priority of the next call request of the arbitration result after controlling the vehicle sunroof to perform a corresponding switching action according to the arbitration result, and generate a new control instruction.

[0077] It should be noted that the above explanation of the embodiment of the vehicle sunroof control method is also applicable to the vehicle sunroof control device of this embodiment, which will not be repeated here.

[0078] According to the sunroof control device for a vehicle proposed in an embodiment of the present application, multiple call requests for the vehicle sunroof are received; the current parameters of the movement direction, movement mode, target position and / or current priority of each call request are parsed according to the multiple call requests; the current parameters of each call request are verified to see if they meet preset verification conditions, and after the preset verification conditions are met, the parameters of each call request are arbitrated by a preset arbitration mechanism, and the current control instruction generated according to the arbitration result controls the vehicle sunroof to perform the corresponding switch action. The present application can parse and verify the parameters of each sunroof call request, and after the verification conditions are met, arbitrate the parameters to control the vehicle sunroof to perform the corresponding switch action, thereby effectively reducing software development time and maintenance costs, and improving the accuracy and efficiency of the sunroof performing the opening and closing action according to the control instruction.

[0079] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0080] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .

[0081] When the processor 502 executes the program, the vehicle sunroof control method provided in the above embodiment is implemented.

[0082] Furthermore, the vehicle also includes:

[0083] The communication interface 503 is used for communication between the memory 501 and the processor 502 .

[0084] The memory 501 is used to store computer programs that can be executed on the processor 502 .

[0085] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0086] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0087] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.

[0088] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0089] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned vehicle sunroof control method is implemented.

[0090] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0091] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0092] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0093] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0094] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0095] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0096] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0097] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A vehicle sunroof control method, characterized in that: The following steps are involved: Receiving multiple call requests for a vehicle sunroof; parsing the current parameters of the motion direction, motion mode, target position and / or current priority of each call request according to the multiple call requests; as well as Verify whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet preset verification conditions, and if the preset verification conditions are met, arbitrate the parameters of the motion direction, motion mode, target position and / or current priority of each call request by a preset arbitration mechanism, and control the vehicle sunroof to perform a corresponding switch action according to the current control instruction generated by the arbitration result; The checking whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet the preset checking conditions includes: Determine whether the motion direction, motion mode, target position and / or parameter range corresponding to the current parameter of the current priority of each call request meets the preset validity condition; If the parameter range corresponding to any current parameter of the motion direction, the motion mode, the target position and / or the current priority does not meet the preset validity condition, a call failure reminder is sent.

2. The method according to claim 1, characterized in that Before parsing the current parameters of the motion direction, motion mode, target position and / or current priority of each call request according to the multiple call requests, the method further includes: Detect whether the current moment reaches the preset reading cycle; When it is detected that the current moment reaches the reading cycle, each of the multiple calling requests is read.

3. The method according to claim 1, characterized in that After controlling the vehicle sunroof to perform a corresponding switch action according to the arbitration result, the method further includes: The target parameters of the vehicle sunroof are updated according to the current parameters of the motion direction, motion mode, target position and / or current priority of the next call request of the arbitration result, and a new control instruction is generated.

4. A sunroof control device for a vehicle, characterized in that: include: A receiving module, used for receiving multiple call requests for the vehicle sunroof; A parsing module, configured to parse the current parameters of the motion direction, motion mode, target position and / or current priority of each call request according to the multiple call requests; as well as a control module, for verifying whether the current parameters of the motion direction, motion mode, target position and / or current priority of each call request meet preset verification conditions, and arbitrating the parameters of the motion direction, motion mode, target position and / or current priority of each call request by a preset arbitration mechanism after the preset verification conditions are met, and controlling the vehicle sunroof to perform a corresponding switch action according to a current control instruction generated according to the arbitration result; The control module comprises: A judging unit, used to judge whether a parameter range corresponding to a current parameter of a motion direction, a motion mode, a target position and / or a current priority of each call request satisfies a preset validity condition; A reminder unit is used to send a call failure reminder if the parameter range corresponding to any current parameter in the movement direction, the movement mode, the target position and / or the current priority does not meet the preset validity condition.

5. The device according to claim 4, characterized in that Also includes: A detection module, used for detecting whether a preset reading cycle is reached at a current moment before parsing the current parameters of the motion direction, motion mode, target position and / or current priority of each of the multiple call requests according to the multiple call requests; The reading module is used to read each of the multiple calling requests when it is detected that the current moment reaches the reading cycle.

6. The device according to claim 4, characterized in that Also includes: An update module is used to update the target parameters of the vehicle sunroof according to the current parameters of the motion direction, motion mode, target position and / or current priority of the next call request of the arbitration result after controlling the vehicle sunroof to perform the corresponding switching action according to the arbitration result, and generate a new control instruction.

7. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle sunroof control method as described in any one of claims 1 to 3.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle sunroof control method as described in any one of claims 1 to 3.