CN115467602A - Vehicle sunroof control method and device, vehicle and storage medium - Google Patents
Vehicle sunroof control method and device, vehicle and storage medium Download PDFInfo
- Publication number
- CN115467602A CN115467602A CN202210969016.8A CN202210969016A CN115467602A CN 115467602 A CN115467602 A CN 115467602A CN 202210969016 A CN202210969016 A CN 202210969016A CN 115467602 A CN115467602 A CN 115467602A
- Authority
- CN
- China
- Prior art keywords
- current
- vehicle
- parameter
- target position
- skylight
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000033001 locomotion Effects 0.000 claims abstract description 110
- 230000009471 action Effects 0.000 claims abstract description 39
- 238000012795 verification Methods 0.000 claims abstract description 23
- 230000007246 mechanism Effects 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 9
- 230000006870 function Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 230000000737 periodic effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000976416 Isatis tinctoria subsp. canescens Species 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- E—FIXED CONSTRUCTIONS
- E05—LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
- E05F—DEVICES FOR MOVING WINGS INTO OPEN OR CLOSED POSITION; CHECKS FOR WINGS; WING FITTINGS NOT OTHERWISE PROVIDED FOR, CONCERNED WITH THE FUNCTIONING OF THE WING
- E05F15/00—Power-operated mechanisms for wings
- E05F15/70—Power-operated mechanisms for wings with automatic actuation
Landscapes
- Feedback Control In General (AREA)
Abstract
The application relates to a skylight control method and device for a vehicle, the vehicle and a storage medium, wherein the method comprises the following steps: receiving a plurality of calling requests of a vehicle skylight; analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and checking whether the current parameter of each calling request meets a preset checking condition, and arbitrating the parameter of each calling request by a preset arbitration mechanism after meeting the preset checking condition so as to control the vehicle skylight to execute the corresponding opening and closing action. The parameter of the call request of each skylight can be analyzed and verified, after the verification condition is met, the parameter is arbitrated to control the vehicle skylight to execute the corresponding opening and closing actions, the problem of priority arbitration of a plurality of control commands is effectively solved, software development time and maintenance cost are reduced, and accuracy and high efficiency of the skylight to execute the opening and closing actions according to the control commands are improved.
Description
Technical Field
The present disclosure relates to the field of vehicle control technologies, and in particular, to a method and an apparatus for controlling a sunroof of a vehicle, and a storage medium.
Background
The skylight is one of important parts of the automobile, and with the increasing development of the automobile industry, more and more functional scenes such as vehicle machine control, mobile phone remote control, voice control and the like need to be realized by the skylight.
The opening action can also be carried out to the car door window under the unable power supply's of on-vehicle battery condition to the correlation technique, or wades into water, under scenes such as pollution, automatic control vehicle skylight carries out the switching to promote user experience.
However, as the functional scenarios are gradually enriched, the software interface is also changing continuously, which results in too high software development and maintenance costs, and as an enhanced service of processing core logic, the related art has a situation that one of a plurality of calls is used, and it is difficult to solve the problem of priority arbitration of a plurality of control instructions.
Disclosure of Invention
The application provides a vehicle skylight control method, a vehicle skylight control device, a vehicle and a storage medium, which are used for solving the problems of continuous change of a software module, arbitration of priorities of a plurality of control signals and the like caused by rich functional scenes.
An embodiment of a first aspect of the present application provides a sunroof control method for a vehicle, including the following steps: receiving a plurality of calling requests of a vehicle skylight; analyzing the motion direction, the motion mode, the target position and/or the current parameters of the current priority of each call request according to the call requests; and checking whether the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request meet preset check conditions, arbitrating the parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request by a preset arbitration mechanism after the preset check conditions are met, and controlling the vehicle skylight to execute corresponding switch actions according to a current control instruction generated by an arbitration result.
According to the technical means, the parameter of the calling request of each skylight can be analyzed and verified, and after the verification condition is met, the parameter is arbitrated to control the vehicle skylight to execute the corresponding opening and closing action, so that the problem of priority arbitration of a plurality of control instructions is effectively solved, the software development time and the maintenance cost are reduced, and the accuracy and the efficiency of executing the opening and closing action of the skylight according to the control instructions are improved.
Optionally, in an embodiment of the application, the verifying whether a current parameter of the motion direction, the motion mode, the target position, and/or the current priority of each invocation request meets a preset verifying condition includes: judging whether the motion direction, the motion mode, the target position and/or the parameter range corresponding to the current parameter of the current priority of each calling request meet preset effective conditions or not; and if the parameter range corresponding to any current parameter in the motion direction, the motion mode, the target position and/or the current priority does not meet the preset effective condition, sending a calling failure prompt.
According to the technical means, parameter verification can be carried out on each calling request, invalid parameters can be effectively detected, so that a user can be reminded in time, and the accuracy of the skylight in executing opening and closing actions according to the calling requests is further guaranteed.
Optionally, in an embodiment of the present application, before parsing the current parameters of the motion direction, the motion mode, the target position, and/or the current priority of each of the plurality of invocation requests according to the plurality of invocation requests, the method further includes: detecting whether the current time reaches a preset reading period or not; and reading each calling request of the plurality of calling requests when the current moment is detected to reach the reading period.
According to the technical means, the calling condition information can be detected through the periodic master control function, so that the logic and sequence of calling request reading are guaranteed, the condition of reading request confusion is effectively avoided, and the accuracy and the real-time performance of calling request parameter analysis are guaranteed.
Optionally, in an embodiment of the present application, after controlling the sunroof to perform a corresponding switch action according to the arbitration result, the method further includes: and updating the target parameters of the vehicle skylight according to the motion direction, the motion mode, the target position and/or the current parameters of the current priority of the next call request of the arbitration result, and generating a new control command.
According to the technical means, the target parameters of the vehicle skylight can be updated according to the current input parameters of the next calling request of the arbitration result to generate new control instructions, so that the arbitration problem that a plurality of functional scenes are called simultaneously can be effectively solved, the skylight can perform comprehensive and intelligent real-time response on the instructions of the user, and the use experience of the user is improved.
An embodiment of a second aspect of the present application provides a sunroof control device for a vehicle, including: the receiving module is used for receiving a plurality of calling requests of the vehicle skylight; the analysis module is used for analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and the control module is used for verifying whether the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each calling request meet preset verification conditions, arbitrating the parameters of the motion direction, the motion mode, the target position and/or the current priority of each calling request by a preset arbitration mechanism after meeting the preset verification conditions, and controlling the vehicle skylight to execute corresponding switch actions according to a current control instruction generated according to an arbitration result.
Optionally, in an embodiment of the present application, the control module includes: the judging unit is used for judging whether the parameter range corresponding to the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each calling request meets a preset effective condition or not; and the reminding unit is used for sending a calling failure reminding if the parameter range corresponding to any current parameter in the motion direction, the motion mode, the target position and/or the current priority does not meet the preset effective condition.
Optionally, in an embodiment of the present application, the method further includes: the detection module is used for detecting whether the current moment reaches a preset reading period or not before analyzing the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request according to the plurality of call requests; and the reading module is used for reading each calling request of the plurality of calling requests when the current moment is detected to reach the reading period.
Optionally, in an embodiment of the present application, the method further includes: and the updating module is used for updating the target parameters of the vehicle skylight according to the motion direction, the motion mode, the target position and/or the current parameters of the current priority of the next calling request of the arbitration result after controlling the vehicle skylight to execute the corresponding switch action according to the arbitration result, and generating a new control instruction.
An embodiment of a third aspect of the present application provides a vehicle, comprising: a memory, a processor and a computer program stored on the memory and operable on the processor, the processor executing the program to implement the sunroof control method of the vehicle as described in the above embodiments.
A fourth aspect of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements a sunroof control method of a vehicle as above.
Thus, the embodiments of the present application have the following advantageous effects:
(1) The method and the device for controlling the vehicle skylight to open and close the skylight have the advantages that parameters of calling requests of all the skylight can be analyzed and verified, after the verification conditions are met, the parameters are arbitrated to control the vehicle skylight to execute corresponding opening and closing actions, the problem of priority arbitration of a plurality of control commands is effectively solved, software development time and maintenance cost are reduced, and accuracy and efficiency of opening and closing actions of the skylight according to the control commands are improved.
(2) According to the embodiment of the application, parameter verification can be performed on each calling request, invalid parameters can be effectively detected, so that a user can be reminded in time, and the accuracy of the skylight in executing opening and closing actions according to the calling requests is further guaranteed.
(3) According to the embodiment of the application, the calling condition information can be detected through the periodic master control function, so that the logic and the sequence of calling request reading are ensured, the condition of disordered reading requests is effectively avoided, and the accuracy and the real-time performance of calling request parameter analysis are ensured.
(4) According to the embodiment of the application, the target parameters of the vehicle skylight can be updated according to the current input parameters of the next calling request of the arbitration result so as to generate a new control instruction, so that the arbitration problem that a plurality of functional scenes are called simultaneously can be effectively solved, the skylight can perform comprehensive and intelligent real-time response on the instruction of a user, and the use experience of the user is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a sunroof control method of a vehicle according to an embodiment of the present application;
FIG. 2 is a schematic logic diagram of a sunroof control method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an implementation logic of a sunroof control method for a vehicle according to an embodiment of the present application;
fig. 4 is an example diagram of a sunroof control device of a vehicle according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application.
10-a sunroof control device of a vehicle; 100-receiving module, 200-resolving module, 300-control module, 501-memory, 502-processor, 503-communication interface.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A sunroof control method, a sunroof control device, a vehicle, and a storage medium of a vehicle according to embodiments of the present application are described below with reference to the drawings. In view of the above-mentioned problems of the background art, the present application provides a sunroof control method of a vehicle, in which a plurality of call requests for a sunroof of the vehicle are received; analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and verifying whether the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request meet the preset verification condition, arbitrating the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request by using a preset arbitration mechanism after meeting the preset verification condition, and controlling the vehicle skylight to execute the corresponding switch action according to the current control instruction generated according to the arbitration result. The parameter of the call request of each skylight can be analyzed and verified, after the verification condition is met, the parameter is arbitrated to control the vehicle skylight to execute the corresponding opening and closing action, so that the software development time and the maintenance cost are effectively reduced, and the accuracy and the efficiency of the skylight to execute the opening and closing action according to the control command are improved. Therefore, the problems that the software module is continuously changed due to rich functional scenes, the priority arbitration of a plurality of control signals and the like are solved.
Specifically, fig. 1 is a flowchart of a sunroof control method of a vehicle according to an embodiment of the present disclosure.
As shown in fig. 1, the sunroof control method of the vehicle includes the steps of:
in step S101, a plurality of requests for invoking a sunroof of a vehicle are received.
Embodiments of the application may receive a plurality of invocation requests for a vehicle sunroof on an SOA (Service-Oriented Architecture) basis.
Specifically, the skylight service invoking strategy under the SOA architecture mainly includes an invoking request process and an instruction execution process. The embodiment of the application can always receive the calling request information of the requester or the caller when the user or the caller sends the calling request to the server, namely, the parameter transmission is carried out on the external software interface uniformly through the skylight service.
It should be noted that, in the embodiment of the present application, when a user or a caller sends a call request to a server and performs parameter transfer, the input parameters mainly include a motion direction, a motion mode, a target position, a current priority, and the like.
Specifically, the parameters include four parameters, which are specifically defined as follows:
parameter 1: the direction of movement of the skylight (Idle/open/close);
parameter 2: motion pattern of the skylight (Stop/Auto/Manual);
parameter 3: a target position (0-100) of the skylight, which parameter is only effective in the automatic mode;
parameter 4: the parameter of the priority of the control instruction is an integer from 0 to 255, the lower the numerical value of the priority is, the higher the priority is, when the numerical value of the priority is defined, the priority of different functional scenes needs to be determined, the priority is defined according to safety, driving requirements and experience requirements, and the priority values are unique in one-to-one correspondence.
Therefore, the SOA architecture is utilized to receive a plurality of calling requests of the vehicle skylight, and reliable data support is provided for subsequent operations such as parameter analysis and verification while the real-time performance of the received requests is guaranteed.
In step S102, the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request are parsed according to the plurality of call requests.
It should be noted that, after receiving a plurality of call requests of a vehicle sunroof, the embodiment of the application enters the instruction execution process from the call request process, where the process is a periodic operation process, and is a periodic master control function, and is mainly used for controlling update and execution of an instruction. In the instruction execution process, the embodiment of the application can analyze parameters of each execution instruction, namely the movement direction, the movement mode, the target position, the current priority and the like of the calling request, so that technical support is provided for realizing skylight service calling work, and calling in the controllers and among the controllers through a communication protocol is met.
Optionally, in an embodiment of the present application, before parsing, according to a plurality of call requests, current parameters of a motion direction, a motion mode, a target position, and/or a current priority of each call request, further includes: detecting whether the current time reaches a preset reading period or not; and reading each call request of the plurality of call requests when the current moment is detected to reach the reading period.
It should be noted that, before analyzing parameters of each call request, the embodiment of the present application may detect call condition information through a periodic master control function, for example, when a read cycle of the master control function is 1s, the embodiment of the present application may detect whether a current time reaches the read cycle through a timer, and if the current time is detected to be 0.5s, the read cycle is not reached, and when the detected read cycle reaches 1s, each call request of multiple call requests may be read, so that the read logicality and the sequence of the call requests are ensured, a situation of confusion of the read requests is effectively avoided, and the accuracy and the real-time performance of call request parameter analysis are ensured.
In step S103, it is checked whether the current parameter of the motion direction, the motion mode, the target position, and/or the current priority of each invocation request meets a preset check condition, and after the preset check condition is met, the parameter of the motion direction, the motion mode, the target position, and/or the current priority of each invocation request is arbitrated by a preset arbitration mechanism, and the current control command generated according to the arbitration result controls the vehicle sunroof to perform a corresponding opening and closing action.
After parsing the current input parameters of each call request according to the plurality of call requests, the counting component updates, i.e. the number Counter self-adds 1. Furthermore, the embodiment of the application can judge whether the current input parameters meet the verification conditions or not, arbitrate the input parameters of each calling request to control the vehicle skylight to execute the corresponding opening and closing actions, so that decoupling among software modules is realized, and the software development time and maintenance cost are effectively reduced while the accuracy and the efficiency of the skylight executing the opening and closing actions according to the control instructions are improved.
Optionally, in an embodiment of the present application, the verifying whether the current parameters of the motion direction, the motion mode, the target position, and/or the current priority of each invocation request satisfy preset verification conditions includes: judging whether the motion direction, the motion mode, the target position and/or the parameter range corresponding to the current parameter of the current priority of each calling request meet preset effective conditions or not; and if the parameter range corresponding to any current parameter in the motion direction, the motion mode, the target position and/or the current priority does not meet the preset effective condition, sending a calling failure prompt.
It should be noted that before arbitrating the current input parameter of each invocation request, the parameter of each invocation request needs to be checked, that is, the valid range of the parameter is detected, and when any parameter value is not within the valid range, an invocation failure prompt is sent.
For example, after the input parameter of each invocation request is analyzed, if the detected target position parameter value of the skylight is 101, it indicates that the parameter exceeds the effective range, at this time, the information of the call failure condition can be fed back through the return value parameter, and the vehicle-mounted system can utilize the devices such as the vehicle-mounted display screen and the like to pass through voice or characters according to the return parameter, such as "the skylight target position parameter exceeds the limit, the call failure! "etc. to alert the user.
Therefore, by parameter verification of each calling request, invalid parameters can be effectively sent out and detected, so that the user can be reminded in time, and the accuracy of the skylight in executing opening and closing actions according to the calling requests is further guaranteed.
After the current input parameters of each invocation request are verified, further, the embodiment of the application may provide a mechanism policy preset by the vehicle-mounted system to arbitrate the input parameters of each invocation request. For example, when the sunroof is in a half-open state, after reading two call requests and analyzing and checking parameters thereof, the two call requests may be compared with parameter values of a current priority parameter in the call requests, and if the priority parameter value requesting for windowing is 66 and the priority parameter value requesting for closing is 76, the arbitration result is a command for executing windowing preferentially, so that a control command with a high priority is arbitrated, a final arbitration result is transmitted to the periodic master control function, and meanwhile, an arbitrated Counter is obtained through an arbitration mechanism, the master control periodic function may determine whether a service is called by detecting a change in the Counter value, and complete analysis of the command, and then drive the motor to control the vehicle sunroof to execute corresponding switching actions, as shown in fig. 2, thereby not only meeting requirements of different functional scenarios, completing arbitration and state feedback, realizing software and decoupling, reducing cost for development and maintenance of software modules, and improving accuracy and efficiency of executing switching actions according to the control command.
Optionally, in an embodiment of the present application, after controlling the sunroof of the vehicle to perform a corresponding switch action according to the arbitration result, the method further includes: and updating the target parameters of the vehicle skylight according to the motion direction, the motion mode, the target position and/or the current parameters of the current priority of the next calling request of the arbitration result, and generating a new control command.
After the vehicle skylight is controlled to execute the corresponding opening and closing actions according to the arbitration result, the target parameter value of the vehicle skylight can be updated according to the parameter of the next calling request of the arbitration result to generate a new control instruction, the control instruction is executed, the actions of controlling the skylight to be opened and closed and the like are completed, and one-time calling is completed again, so that the arbitration problem that a plurality of function scenes are called simultaneously can be effectively solved, the skylight can perform comprehensive and intelligent real-time response on the instruction of a user, and the use experience of the user is improved.
The following describes the operation of a sunroof control method according to an embodiment of the present invention.
Fig. 3 shows an execution logic of the sunroof control method of the vehicle according to the embodiment of the present application, for example, when a user continuously presses a sunroof control key, that is, manually opens the sunroof, in a functional scene where the hard sunroof switch key requests manual control of the sunroof switch, at this time, the request direction server sends a call request, that is, four input parameters are transmitted, where parameter 1 is a movement direction of the sunroof, and a current value is Open; the parameter 2 is a motion mode of the skylight, the current value is Manual, the parameter 3 is not effective in the current Manual mode, the priority value of the functional scene is defined as 10, at this time, the calling request module of the server transmits an arbitration result to the periodic master control function to be executed in the process of finishing parameter verification, arbitration and the like, and then drives the motor to finish the Manual opening action of the skylight, namely finishing one-time calling.
At this time, the switch key is released, the value of the parameter 1 is updated to Idle, namely, the moving direction of the skylight is in a no-request state, the value of the parameter 2 is updated to Stop, namely, the moving mode of the skylight is in a Stop state, and the rest parameters are unchanged, the control instruction is executed, the control of stopping the skylight is completed, namely, one call is completed again.
According to the skylight control method of the vehicle, a plurality of calling requests of the vehicle skylight are received; analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and checking whether the current parameter of each calling request meets a preset checking condition, arbitrating the parameter of each calling request by a preset arbitration mechanism after meeting the preset checking condition, and controlling the vehicle skylight to execute corresponding opening and closing actions according to a current control instruction generated by an arbitration result. The parameter of the call request of each skylight can be analyzed and verified, after the verification condition is met, the parameter is arbitrated to control the vehicle skylight to execute the corresponding opening and closing action, so that the software development time and the maintenance cost are effectively reduced, and the accuracy and the efficiency of the skylight to execute the opening and closing action according to the control command are improved.
Next, a sunroof control device of a vehicle according to an embodiment of the present application is described with reference to the drawings.
Fig. 4 is a block diagram schematically illustrating a sunroof control device of a vehicle according to an embodiment of the present application.
As shown in fig. 4, the sunroof control device 10 of the vehicle includes: a receiving module 100, an analysis module 200 and a control module 300.
The receiving module 100 is configured to receive multiple invocation requests of a sunroof of a vehicle.
The parsing module 200 is configured to parse, according to a plurality of call requests, current parameters of a motion direction, a motion mode, a target position, and/or a current priority of each call request.
The control module 300 is configured to verify whether the current parameter of the motion direction, the motion mode, the target position, and/or the current priority of each call request meets a preset verification condition, arbitrate the parameter of the motion direction, the motion mode, the target position, and/or the current priority of each call request with a preset arbitration mechanism after the preset verification condition is met, and control the vehicle sunroof to perform a corresponding opening and closing action according to a current control instruction generated according to an arbitration result.
Optionally, in an embodiment of the present application, the control module 300 includes: a judging unit and a reminding unit.
The judging unit is used for judging whether the parameter range corresponding to the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each calling request meets the preset effective condition or not.
And the reminding unit is used for sending a calling failure reminding if the parameter range corresponding to any current parameter in the motion direction, the motion mode, the target position and/or the current priority does not meet the preset effective condition.
Optionally, in an embodiment of the present application, the sunroof control device 10 of the vehicle of the embodiment of the present application further includes: the device comprises a detection module and a reading module.
The detection module is used for detecting whether the current time reaches a preset reading period or not before analyzing the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request according to the plurality of call requests.
And the reading module is used for reading each calling request of the plurality of calling requests when the current moment is detected to reach the reading period.
Optionally, in an embodiment of the present application, the sunroof control device 10 of the vehicle of the embodiment of the present application further includes: and the updating module is used for updating the target parameters of the vehicle skylight according to the motion direction, the motion mode, the target position and/or the current parameters of the current priority of the next calling request of the arbitration result after controlling the vehicle skylight to execute the corresponding switch action according to the arbitration result, and generating a new control instruction.
It should be noted that the foregoing explanation of the embodiment of the vehicle sunroof control method is also applicable to the vehicle sunroof control device of this embodiment, and is not repeated herein.
According to the sunroof control device of the vehicle, a plurality of calling requests of a vehicle sunroof are received; analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and verifying whether the current parameter of each calling request meets a preset verification condition, arbitrating the parameter of each calling request by a preset arbitration mechanism after meeting the preset verification condition, and controlling a vehicle skylight to execute corresponding opening and closing actions according to a current control instruction generated according to an arbitration result. The parameter of the call request of each skylight can be analyzed and verified, after the verification condition is met, the parameter is arbitrated to control the vehicle skylight to execute the corresponding opening and closing action, so that the software development time and the maintenance cost are effectively reduced, and the accuracy and the efficiency of the skylight to execute the opening and closing action according to the control command are improved.
Fig. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
a memory 501, a processor 502, and a computer program stored on the memory 501 and executable on the processor 502.
The processor 502, when executing the program, implements the sunroof control method of the vehicle provided in the above-described embodiment.
Further, the vehicle further includes:
a communication interface 503 for communication between the memory 501 and the processor 502.
A memory 501 for storing computer programs that can be run on the processor 502.
The memory 501 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
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 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Alternatively, in practical 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 may complete communication with each other through an internal interface.
The processor 502 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the sunroof control method of the vehicle as above.
In the description of the present specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or N executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or N wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (10)
1. A sunroof control method of a vehicle, characterized by comprising the steps of:
receiving a plurality of calling requests of a vehicle skylight;
analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and
and checking whether the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request meet preset check conditions, arbitrating the parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request by a preset arbitration mechanism after meeting the preset check conditions, and controlling the vehicle skylight to execute corresponding switch actions according to a current control instruction generated by an arbitration result.
2. The method according to claim 1, wherein the verifying whether the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each invocation request meet preset verifying conditions comprises:
judging whether the motion direction, the motion mode, the target position and/or the parameter range corresponding to the current parameter of the current priority of each calling request meet preset effective conditions or not;
and if the parameter range corresponding to any current parameter in the motion direction, the motion mode, the target position and/or the current priority does not meet the preset effective condition, sending a calling failure prompt.
3. The method of claim 1, further comprising, prior to parsing current parameters of a motion direction, a motion pattern, a target location, and/or a current priority of the each call request according to the plurality of call requests:
detecting whether the current time reaches a preset reading period or not;
and reading each calling request of the plurality of calling requests when the current moment is detected to reach the reading period.
4. The method of claim 1, further comprising, after controlling the vehicle sunroof to perform a corresponding switching action according to the arbitration result:
and updating the target parameters of the vehicle skylight according to the motion direction, the motion mode, the target position and/or the current parameters of the current priority of the next calling request of the arbitration result, and generating a new control instruction.
5. A sunroof control device of a vehicle, comprising:
the receiving module is used for receiving a plurality of calling requests of the vehicle skylight;
the analysis module is used for analyzing the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each call request according to the call requests; and
and the control module is used for verifying whether the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request meet preset verification conditions, arbitrating the parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request by a preset arbitration mechanism after meeting the preset verification conditions, and controlling the vehicle skylight to execute corresponding switch actions according to a current control instruction generated according to an arbitration result.
6. The apparatus of claim 5, wherein the control module comprises:
the judging unit is used for judging whether the parameter range corresponding to the motion direction, the motion mode, the target position and/or the current parameter of the current priority of each calling request meets a preset effective condition or not;
and the reminding unit is used for sending a calling failure reminding if the parameter range corresponding to any one of the motion direction, the motion mode, the target position and/or the current priority does not meet the preset effective condition.
7. The apparatus of claim 5, further comprising:
the detection module is used for detecting whether the current moment reaches a preset reading period or not before analyzing the current parameters of the motion direction, the motion mode, the target position and/or the current priority of each call request according to the plurality of call requests;
and the reading module is used for reading each calling request of the plurality of calling requests when the current moment is detected to reach the reading period.
8. The apparatus of claim 5, further comprising:
and the updating module is used for updating the target parameters of the vehicle skylight according to the motion direction, the motion mode, the target position and/or the current parameters of the current priority of the next calling request of the arbitration result after controlling the vehicle skylight to execute the corresponding switch action according to the arbitration result, and generating a new control instruction.
9. A vehicle, characterized by comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the sunroof control method of the vehicle of any one of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor for implementing a sunroof control method of a vehicle according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210969016.8A CN115467602A (en) | 2022-08-12 | 2022-08-12 | Vehicle sunroof control method and device, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210969016.8A CN115467602A (en) | 2022-08-12 | 2022-08-12 | Vehicle sunroof control method and device, vehicle and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115467602A true CN115467602A (en) | 2022-12-13 |
Family
ID=84367763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210969016.8A Pending CN115467602A (en) | 2022-08-12 | 2022-08-12 | Vehicle sunroof control method and device, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115467602A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115949188A (en) * | 2023-02-20 | 2023-04-11 | 江苏恒新金属科技有限公司 | Photovoltaic linkage ventilation skylight |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010095633A (en) * | 2000-04-11 | 2001-11-07 | 김용서 | An Automatic Sunroof Controller and A Method Use Of Speech Recognition |
CN101256395A (en) * | 2008-03-19 | 2008-09-03 | 上海理工大学 | Power sunroof controller with parameter correction |
CN103938972A (en) * | 2013-01-21 | 2014-07-23 | 欧姆龙汽车电子株式会社 | Opening/closing Body Control Device |
CN106371328A (en) * | 2016-11-07 | 2017-02-01 | 广东美的制冷设备有限公司 | Intelligent household electrical appliance control method and device |
KR101744421B1 (en) * | 2015-12-15 | 2017-06-07 | 주식회사 현대케피코 | Method and system for correcting a margin of error in control point of sunroof |
KR101799205B1 (en) * | 2016-09-07 | 2017-11-17 | 주식회사 유성전자 | A method of automatic resetting sunroof position and a sunroof apparatus adopting the same method |
CN107407120A (en) * | 2015-03-16 | 2017-11-28 | 株式会社美姿把 | Window glass for vehicle lowering or hoisting gear, vehicle door and vehicle |
CN107587810A (en) * | 2017-08-14 | 2018-01-16 | 惠州市德赛西威汽车电子股份有限公司 | A kind of acoustic control boot open method and system based on ADAS |
CN107676938A (en) * | 2017-10-25 | 2018-02-09 | 广东美的制冷设备有限公司 | Air-conditioner control method, device, electronic equipment and computer-readable recording medium |
CN107965236A (en) * | 2016-10-20 | 2018-04-27 | 比亚迪股份有限公司 | Vehicle, window lifting control method, apparatus and system |
CN108831461A (en) * | 2018-06-22 | 2018-11-16 | 安徽江淮汽车集团股份有限公司 | A kind of skylight sound control method and system |
CN109278507A (en) * | 2018-11-28 | 2019-01-29 | 奇瑞汽车股份有限公司 | Vehicle dormer window control method and system |
CN110001549A (en) * | 2019-04-17 | 2019-07-12 | 百度在线网络技术(北京)有限公司 | Method for controlling a vehicle and device |
CN111361400A (en) * | 2020-03-19 | 2020-07-03 | 重庆金康赛力斯新能源汽车设计院有限公司 | Intelligent control method and device for panoramic sunroof |
CN112017418A (en) * | 2020-08-27 | 2020-12-01 | 上海博泰悦臻电子设备制造有限公司 | Sunroof control method, system, medium, and apparatus for vehicle |
CN112832620A (en) * | 2021-03-25 | 2021-05-25 | 保定市桥与果新材料科技有限公司 | Intelligent control window and control method thereof |
CN113605802A (en) * | 2021-08-31 | 2021-11-05 | 重庆长安新能源汽车科技有限公司 | Vehicle-mounted frameless vehicle window control system and vehicle |
CN214822529U (en) * | 2021-01-18 | 2021-11-23 | 智马达汽车有限公司 | Sunshade screen control system and vehicle |
CN114293877A (en) * | 2021-12-07 | 2022-04-08 | 奇瑞商用车(安徽)有限公司 | Control system and method for vehicle-mounted skylight |
CN114844931A (en) * | 2022-04-24 | 2022-08-02 | 芜湖雄狮汽车科技有限公司 | Vehicle remote control method, device, server and storage medium |
-
2022
- 2022-08-12 CN CN202210969016.8A patent/CN115467602A/en active Pending
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010095633A (en) * | 2000-04-11 | 2001-11-07 | 김용서 | An Automatic Sunroof Controller and A Method Use Of Speech Recognition |
CN101256395A (en) * | 2008-03-19 | 2008-09-03 | 上海理工大学 | Power sunroof controller with parameter correction |
CN103938972A (en) * | 2013-01-21 | 2014-07-23 | 欧姆龙汽车电子株式会社 | Opening/closing Body Control Device |
CN107407120A (en) * | 2015-03-16 | 2017-11-28 | 株式会社美姿把 | Window glass for vehicle lowering or hoisting gear, vehicle door and vehicle |
KR101744421B1 (en) * | 2015-12-15 | 2017-06-07 | 주식회사 현대케피코 | Method and system for correcting a margin of error in control point of sunroof |
KR101799205B1 (en) * | 2016-09-07 | 2017-11-17 | 주식회사 유성전자 | A method of automatic resetting sunroof position and a sunroof apparatus adopting the same method |
CN107965236A (en) * | 2016-10-20 | 2018-04-27 | 比亚迪股份有限公司 | Vehicle, window lifting control method, apparatus and system |
CN106371328A (en) * | 2016-11-07 | 2017-02-01 | 广东美的制冷设备有限公司 | Intelligent household electrical appliance control method and device |
CN107587810A (en) * | 2017-08-14 | 2018-01-16 | 惠州市德赛西威汽车电子股份有限公司 | A kind of acoustic control boot open method and system based on ADAS |
CN107676938A (en) * | 2017-10-25 | 2018-02-09 | 广东美的制冷设备有限公司 | Air-conditioner control method, device, electronic equipment and computer-readable recording medium |
CN108831461A (en) * | 2018-06-22 | 2018-11-16 | 安徽江淮汽车集团股份有限公司 | A kind of skylight sound control method and system |
CN109278507A (en) * | 2018-11-28 | 2019-01-29 | 奇瑞汽车股份有限公司 | Vehicle dormer window control method and system |
CN110001549A (en) * | 2019-04-17 | 2019-07-12 | 百度在线网络技术(北京)有限公司 | Method for controlling a vehicle and device |
CN111361400A (en) * | 2020-03-19 | 2020-07-03 | 重庆金康赛力斯新能源汽车设计院有限公司 | Intelligent control method and device for panoramic sunroof |
CN112017418A (en) * | 2020-08-27 | 2020-12-01 | 上海博泰悦臻电子设备制造有限公司 | Sunroof control method, system, medium, and apparatus for vehicle |
CN214822529U (en) * | 2021-01-18 | 2021-11-23 | 智马达汽车有限公司 | Sunshade screen control system and vehicle |
CN112832620A (en) * | 2021-03-25 | 2021-05-25 | 保定市桥与果新材料科技有限公司 | Intelligent control window and control method thereof |
CN113605802A (en) * | 2021-08-31 | 2021-11-05 | 重庆长安新能源汽车科技有限公司 | Vehicle-mounted frameless vehicle window control system and vehicle |
CN114293877A (en) * | 2021-12-07 | 2022-04-08 | 奇瑞商用车(安徽)有限公司 | Control system and method for vehicle-mounted skylight |
CN114844931A (en) * | 2022-04-24 | 2022-08-02 | 芜湖雄狮汽车科技有限公司 | Vehicle remote control method, device, server and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115949188A (en) * | 2023-02-20 | 2023-04-11 | 江苏恒新金属科技有限公司 | Photovoltaic linkage ventilation skylight |
CN115949188B (en) * | 2023-02-20 | 2023-11-21 | 江苏恒新金属科技有限公司 | Photovoltaic linkage ventilation skylight |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9880927B2 (en) | Functionally expandable vehicle control device and method for supplementing the functionality of a vehicle control device | |
JPH11191002A (en) | System control unit and operating method of control unit | |
CN115467602A (en) | Vehicle sunroof control method and device, vehicle and storage medium | |
CN110497920B (en) | Signal processing method, device and system | |
CN114809855A (en) | Vehicle window control system based on SOA framework | |
CN110321167A (en) | The dual system concurrent method and computer readable storage medium of car-mounted terminal | |
KR102109125B1 (en) | Method for managing state of ECU in vehicle based on automotive open system architecture | |
CN114162068A (en) | Management method and device for intelligent driving function of vehicle and vehicle | |
CN111319626B (en) | Vehicle control parameter adjusting method and device, electronic equipment and storage medium | |
CN115450501B (en) | Control method and device of door lock, vehicle and storage medium | |
CN115617018A (en) | Vehicle sunroof control method, device, equipment and medium | |
CN116246630A (en) | Voice control method and system for vehicle, vehicle and storage medium | |
WO2022004324A1 (en) | Vehicle control device | |
CN113147632B (en) | Vehicle control method and device, vehicle and storage medium | |
CN115454594A (en) | Vehicle domain controller communication signal period optimization method and system and vehicle | |
WO2005013130A1 (en) | Real time control system | |
CN115129340A (en) | Method, device and equipment for upgrading whole vehicle program and storage medium | |
CN115167350A (en) | Vehicle atomic service test method, device, equipment and storage medium | |
CN110264778B (en) | Passenger-assistant parking safety control method and device, storage medium and vehicle control terminal | |
CN112224216B (en) | Integrated control chip, control method thereof, storage medium, and vehicle | |
CN112311615B (en) | Control method and device of network diagnosis function and related product | |
CN108205303B (en) | Vehicle electronic component updating method and device | |
CN115107744A (en) | Parking method and device for vehicle, vehicle and storage medium | |
CN115982677A (en) | Vehicle-mounted machine multi-account login arbitration method and device | |
CN115946782A (en) | Charging port cover control method and device, vehicle and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |