Door light control method, device, vehicle, and readable storage medium
Through the coordinated timing control method of the first timing variable and the second timing variable, the problem of occasional out-of-synchronization of door and door lights is solved, and the synchronization control and user experience of door and door lights are realized.
Patent Information
- Application Number
- CN202310064482.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-16
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2043-01-16
AI Technical Summary
In the prior art, there is a problem of occasional out-of-synchronization of door lights, which affects the user experience.
The coordinated timing control method of the first timing variable and the second timing variable is adopted. The first timing variable is a global variable and the second timing variable is a door-specific variable. The lighting and extinguishing of the door door lights are controlled through the coordinated timing of these two variables.
The synchronous control of door lights is realized, which improves the user experience and helps users identify the opened doors through changes in the status of the door lights.
Smart Images

Figure CN116001680B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle control, and more specifically, relates to a door light control method and device, a vehicle, and a readable storage medium. Background Art
[0002] With the development of the times, various performances of automobiles are constantly optimized. Among them, the lighting lamps on the car doors bring a good experience to users. When a car door is opened, the various door lights on the car door usually light up synchronously and go out synchronously after a period of time. However, in the actual use process of vehicle door lights, the inventor of the present application found that the door lights of each car door occasionally appear out of sync, that is, they do not light up or go out at the same time, which greatly affects the user experience.
[0003] Therefore, how to effectively ensure the synchronization of car door lights has become an urgent problem to be solved in this field. Summary of the Invention
[0004] The purpose of the present invention is to provide a door light control method and device, a vehicle, and a readable storage medium to solve the problem of occasional out-of-sync of car door lights in the prior art.
[0005] In the first aspect of the embodiment of the present invention, a door light control method is provided. The door light control method is used to control the door light of a target door, and the target door is any door in the vehicle. The door light control method includes:
[0006] After detecting that the first timing variable is reset, obtain the first timing variable and the second timing variable corresponding to the target door;
[0007] Wherein, the first timing variable is used to reset and time when any door of the vehicle is opened, and the second timing variable is used to reset and time when the target door is opened. The timing durations of the first timing variable and the second timing variable are the same;
[0008] If the timing of the second timing variable has not ended, control the door light of the target door to operate in a first state;
[0009] If the timing of the second timing variable ends and the timing of the first timing variable has not ended, control the door light of the target door to operate in a second state; the second state is different from the first state;
[0010] If the timings of both the second timing variable and the first timing variable end, control the door light of the target door to turn off.
[0011] In a possible implementation manner, the door light control method further includes:
[0012] When any door of the vehicle is detected to be opened, a preset first timing variable is reset, a second timing variable corresponding to the opened door is reset, and timing is performed based on the first timing variable and the second timing variable corresponding to the opened door.
[0013] In a possible implementation manner, the door light control method further includes: detecting whether a door of the vehicle is opened;
[0014] The detecting whether a door of the vehicle is opened includes:
[0015] Detecting whether a trigger signal on a door handle of the vehicle is received. If the trigger signal on the door handle of the vehicle is received, it is determined that the door of the vehicle is opened;
[0016] Alternatively, detecting whether an electric control signal triggered by a user for opening the door is received. If the electric control signal is received, it is determined that the door of the vehicle is opened.
[0017] In a possible implementation manner, the first state is a flashing state, and the second state is a constant-on state.
[0018] In a possible implementation manner, the timing forms of the first timing variable and the second timing variable are forward timing or countdown timing;
[0019] When the timing forms of the first timing variable and the second timing variable are forward timing, the timing ends when the first timing variable and the second timing variable reach their corresponding timing thresholds;
[0020] When the timing forms of the first timing variable and the second timing variable are countdown timing, the initial values of the first timing variable and the second timing variable are the same.
[0021] In a possible implementation manner, the door light control method further includes:
[0022] If the timing of the first timing variable has not ended, within a preset time before the end of the timing of the first timing variable, control is performed to issue a first prompt message;
[0023] The first prompt message is used to remind the user that the door lights of all doors are about to go out.
[0024] In a possible implementation manner, the first prompt message is an acoustic and optical message or a voice message.
[0025] In a second aspect of the embodiments of the present invention, a door light control device is provided. The door light control device is used to control the door light of a target door, and the target door is any door in a vehicle, and includes:
[0026] A data acquisition module, configured to acquire the first timing variable and the second timing variable corresponding to the target vehicle door after detecting that the first timing variable is reset; wherein, the first timing variable is reset and timed when any vehicle door is opened, the second timing variable is reset and timed when the target vehicle door is opened, and the initial values of the first timing variable and the second timing variable are the same;
[0027] A door light control module, configured to control the door light of the target vehicle door to operate in a first state when the timing of the second timing variable has not ended; to control the door light of the target vehicle door to operate in a second state when the timing of the second timing variable has ended and the timing of the first timing variable has not ended; the second state is different from the first state; to control the door light of the target vehicle door to turn off when the timings of both the second timing variable and the first timing variable have ended.
[0028] In a third aspect of the embodiments of the present invention, a vehicle is provided, the vehicle includes a control terminal, the control terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the above-mentioned door light control method are implemented.
[0029] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned door light control method are implemented.
[0030] The beneficial effects of the door light control method, device, vehicle, and readable storage medium provided by the present invention are as follows:
[0031] The present invention analyzes the existing control scheme and finds that the reason for the occasional asynchronization of door lights is as follows: Each vehicle door corresponds to a timing variable. When a vehicle door is opened, the timing variable corresponding to the opened vehicle door starts timing, all door lights are lit, and all door lights are turned off after the timing of the timing variables corresponding to all opened vehicle doors ends. During this process, each vehicle door needs to continuously obtain the timing variables (or corresponding timing status flags) corresponding to other vehicle doors to determine whether to continue to stay lit or turned off. Since the programs corresponding to each vehicle door are executed sequentially, the timing status of the timing variable corresponding to the vehicle door whose program is executed last may not be obtained in time by the programs of other vehicle doors, which may lead to a certain time difference between the control of the door lights of each vehicle door.
[0032] Based on the analysis of the present invention, the present invention sets a second timing variable corresponding to each vehicle door and a first timing variable that can be reset by any vehicle door trigger. Based on the two timing variables, the present invention can achieve the following effects:
[0033] First, the first timing variable is essentially a global variable that does not belong to any door. After setting the first timing variable, each door only needs to obtain the first timing variable after it is reset, and control the door light of this door to turn on or off based on the first timing variable, without causing the door lights of each door to be out of sync due to the execution order of the programs of each door. Therefore, the problems of the prior art are effectively solved.
[0034] Second, the present invention also retains the second timing variable corresponding to each door at the same time, and the timing state of the second timing variable can affect the running state of the door light corresponding to the door. Analyzing the solution of the present invention, it can be seen that when the target door is opened, the target door will run in the first state during the timing process of its corresponding second timing variable, while the door lights of other doors that are lit as the target door is opened will run in the second state. That is to say, although all door lights will be lit when a door is opened, according to the solution of the present invention, the opened door can be identified by the different running states of the door lights. This identification function helps users identify the opened door and can bring a better experience to users.
[0035] In summary, through the collaborative timing of the first timing variable and the second timing variable, the present invention not only effectively solves the problems of the prior art, but also brings a better experience to users. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0037] Figure 1 It is a schematic flowchart of a door light control method provided by an embodiment of the present invention;
[0038] Figure 2 It is a schematic diagram of door light control of the prior art provided by the present invention;
[0039] Figure 3 It is a schematic diagram of door light control provided by an embodiment of the present invention;
[0040] Figure 4 It is a structural block diagram of a door light control device provided by an embodiment of the present invention;
[0041] Figure 5 It is a schematic block diagram of a control terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] In the following description, specific details such as specific system architectures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. However, those skilled in the art should clearly understand that the present invention can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present invention.
[0043] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will be described through specific embodiments with reference to the accompanying drawings.
[0044] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a door light control method provided for an embodiment of the present invention. The door light control method is used to control the door lights of a target vehicle door, and the target vehicle door is any vehicle door in the vehicle. That is to say, the control of the door lights of each vehicle door is implemented based on the door light control method of this embodiment. The door light control method provided in this embodiment includes:
[0045] S101: After detecting that the first timing variable is reset, obtain the first timing variable and the second timing variable corresponding to the target vehicle door. Among them, the first timing variable is used to reset and start timing when any vehicle door is opened, and the second timing variable is used to reset and start timing when the target vehicle door is opened. The timing durations of the first timing variable and the second timing variable are the same.
[0046] In this embodiment, the first timing variable is essentially a global variable. As long as it is detected that a vehicle door is opened, the first timing variable will be reset to the initial value and start timing from the initial value. The second timing variable is essentially a variable belonging to each vehicle door. That is to say, each vehicle door corresponds to a second timing variable. The second timing variable corresponding to a certain vehicle door will only be reset to the initial value and start timing when that vehicle door is opened.
[0047] For example, when door A of the vehicle is opened, the first timing variable and the second timing variable corresponding to door A are reset to the initial value and start synchronous timing. At this time, if door B of the vehicle is opened, the first timing variable is reset to the initial value again. At this time, the second timing variable corresponding to door B will also be reset to the initial value, and the first timing variable and the second timing variable corresponding to door B will start synchronous timing.
[0048] In this embodiment, the timing duration of the first timing variable is the same as that of the second timing variables corresponding to each door. That is to say, if door A of the vehicle is opened and no other door is opened before the timing of the second timing variable corresponding to door A ends, the first timing variable and the second timing variable corresponding to door A will end their timing simultaneously. Among them, the initial values of the first timing variable and the second timing variables corresponding to each door can be the same or different, as long as the final timing durations of all timing variables are the same.
[0049] S102: If the timing of the second timing variable has not ended, control the door light of the target door to operate in the first state.
[0050] S103: If the timing of the second timing variable ends and the timing of the first timing variable has not ended, control the door light of the target door to operate in the second state. The second state is different from the first state.
[0051] S104: If the timings of both the second timing variable and the first timing variable end, control the door light of the target door to turn off.
[0052] In this embodiment, the timing state of the second timing variable mainly affects the operating state of the door light corresponding to the door. The timing state of the first timing variable affects the lighting / extinguishing state of the door lights of all doors.
[0053] In this embodiment, the operation of the door light of the door means that the door light of the door is in the lit state. Among them, the door light of the door refers to the light set on the door, which can be specifically set on the door handle or at other positions on the door body of the door. It can be set on the inner side of the door or on the outer side of the door, and no specific limitation is made here.
[0054] This embodiment uses a specific example to illustrate the solution of the embodiment of the present invention. Assume that the doors of the vehicle are A, B, C, and D respectively. Analyzing steps S101 - S104, it can be seen that if it is detected that door A is opened, at this time the first timing variable will be reset and start timing, and the second timing variable corresponding to door A will also be reset and start timing. The door light corresponding to door A starts to operate in the first state, and the door lights corresponding to doors B, C, and D will operate in the second state.
[0055] If no other door is opened before the timing of the second timing variable corresponding to door A ends, the first timing variable and the second timing variable corresponding to door A will end their timing simultaneously. On this basis, during the timing of the second timing variable of door A, the door light of door A will operate in the first state, and the door lights of doors B, C, and D will operate in the second state. After the timing of the first timing variable ends, the door lights of all doors will turn off.
[0056] If the B door is opened before the timing of the second timing variable corresponding to the A door ends, the first timing variable and the second timing variable corresponding to the B door will be reset to their initial values and start timing. After the A door is opened and before the B door is opened, the door light corresponding to the A door starts to operate in the first state, and the door lights corresponding to the B, C, and D doors will operate in the second state. After the B door is opened, the door light of the B door will also operate in the first state, and the door lights of the C and D doors will continue to operate in the second state. If no other door is opened before the timing of the second timing variable corresponding to the B door ends, the first timing variable and the second timing variable corresponding to the B door will end timing simultaneously. On this basis, the door light of the A door will operate in the first state before the timing of the second timing variable corresponding to it ends. After the second timing variable corresponding to the A door ends, the corresponding door light will operate in the second state until the first timing variable ends timing. The door light of the B door operates in the second state before the B door is opened, and the door light of the B door will operate in the first state from the opening of the B door until the first timing variable ends timing. The door lights of the C and D doors will operate in the second state from the opening of the A door until the first timing variable ends timing.
[0057] In the embodiment of the present invention, the control scheme of the prior art is analyzed, and it is found that the reason for the occasional asynchronization of the door lights is that each door corresponds to a timing variable. When a door is opened, the timing variable corresponding to the opened door starts timing, all door lights are lit, and all door lights are turned off after the timing variables corresponding to all opened doors end timing. During this process, each door needs to continuously obtain the timing variables (or corresponding timing status flags) corresponding to other doors to determine whether to continue to stay lit or off. Since the programs corresponding to each door are executed sequentially, the timing status of the timing variable corresponding to the door whose program is executed last may not be obtained in time by the programs of other doors, which may lead to a certain time difference between the control of the door lights of each door.
[0058] Based on the analysis of the embodiment of the present invention, the embodiment of the present invention sets a second timing variable corresponding to each door and a first timing variable that can be reset by any door trigger. Based on the two timing variables, the embodiment of the present invention can achieve the following effects:
[0059] First, the first timing variable is essentially a global variable that does not belong to any door. After setting the first timing variable, each door only needs to obtain the first timing variable after the first timing variable is reset, and control the door light of this door to be lit or off based on the first timing variable, without causing the door lights of the doors to be asynchronous due to the execution order of the programs of each door. Therefore, the problems of the prior art are effectively solved.
[0060] Second, the embodiment of the present invention also retains the second timing variable corresponding to each vehicle door at the same time, and the timing state of the second timing variable can affect the operating state of the door light corresponding to the vehicle door. Analyzing the solution of the embodiment of the present invention, it can be seen that when the target vehicle door is opened, the target vehicle door will operate in the first state during the timing of the second timing variable corresponding to it, while the door lights of other vehicle doors lit with the opening of the target vehicle door will operate in the second state. That is to say, although all door lights will be lit when a vehicle door is opened, according to the solution of the embodiment of the present invention, the opened vehicle door can be identified by the different operating states of the door lights, and this identification function helps the user to identify the opened vehicle door and can bring a better experience to the user.
[0061] In summary, through the collaborative timing of the first timing variable and the second timing variable, the embodiment of the present invention not only effectively solves the problems of the prior art, but also brings a better experience to the user.
[0062] In this embodiment, an example of the prior art is also given for reference Figure 2 , Figure 2 is a control schematic diagram of door lights in the prior art. Taking a vehicle with four vehicle doors A, B, C, and D as an example, among them Figure 2 only the control schematic diagrams of door B and door A are shown. The control contents of door C and door D are similar to those of door A and door B. Due to the limited space of the drawings, they are not shown in this embodiment. Among them, Figure 2 in, Local_A is the flag of the timing state of door A, and PowerSaveDelay_A is the timing variable corresponding to door A. Local_A = 1 indicates that door A is timing, and Local_A = 0 indicates that the timing of door A ends. Correspondingly, Local_B is the flag of the timing state of door B, and PowerSaveDelay_B is the timing variable corresponding to door B. Local_B = 1 indicates that door B is timing, and Local_B = 0 indicates that the timing of door B ends.
[0063] According to Figure 2 the control process shown: after door A is opened, the A door light (i.e., the door light of door A) is lit, and a new local variable Local_A = 1 is generated and starts timing through the timing variable PowerSaveDelay_A. Among them, Figure 2 the example in is in the form of a countdown, and the initial value of PowerSaveDelay_A can be set by the user, Figure 2Several specific examples are given, such as 2min, 5min, 8min, etc. On this basis, if Local_A = 1, the door lights of the remaining doors are lit. Correspondingly, if the B door is opened before the timing of the A door ends, a new local variable Local_B = 1 will be generated, and Local_A = 1 and Local_B = 1 will light the door lights of the remaining doors at the same time. If the timing variable of the A door light counts down to the end, the remaining door lights (including the A door light) are lit by Local_B = 1. In this way, the prior art can perform the door lights to be lit or extinguished simultaneously. However, the "simultaneity" of the prior art is based on human perception, and in actual professional test software, the occasional lighting / extinguishing delay can still be detected. After analysis, there will always be a certain Local_X (X is A, B, C, or D) placed at the end of the newly created local variables, and the program execution is from top to bottom. If Local_A is placed at the end of the program, then when the A door light is extinguished in the current program operation cycle and Local_A = 0, it may be that the remaining door lights can detect Local_A = 0 in the next program operation cycle before they can be extinguished. If the program operation cycle is 5ms, then the extinguishing instruction of the remaining door lights will be delayed by 5ms. The message where the door lights are located is sent on the bus at a certain upload cycle. Assuming that the message where the door lights are located is sent to the bus at an upload cycle of 50ms, if the aforementioned 5ms occurs within this 50ms, then the lighting / extinguishing of the door lights perceived by humans occurs simultaneously. However, if the aforementioned 5ms exactly occurs at 50ms, then the lighting / extinguishing of the door lights will occur in the next upload cycle, which results in the lighting / extinguishing of the door lights perceived by humans not being simultaneous, that is, it causes the occasional asynchrony of the lighting / extinguishing of the door lights.
[0064] Based on the foregoing situation, an embodiment of the present invention provides a method for controlling door lights, which can be referred to together Figure 1 and Figure 3 , Figure 3 shows a schematic diagram of the control of each door light provided in this embodiment, Figure 3 Taking a vehicle with four doors A, B, C, and D, the first state is the flashing state, and the second state is the constant-on state as an example, specific control examples are given. Figure 3 In, PowerSaveDelay is the first timing variable, and CounteTime_A, CounteTime_B, CounteTime_C, and CounteTime_D are the second timing variables corresponding to the four doors A, B, C, and D respectively, Figure 3 Taking the countdown as an example, the timing durations of each timing variable are the same, and their specific values can be set by the user, such as 2min, 5min, 8min, etc. Figure 3When door A is opened, the door light of door A (i.e., the door light of door A) will flash, and the corresponding second timing variable CounteTime_A will be reset (if there is no corresponding second timing variable, a corresponding second timing variable can be generated). The second timing variable CounteTime_A corresponding to door A and the first timing variable PowerSaveDelay count down synchronously. If door B is opened before the end of the count down of CounteTime_A, at this time, the corresponding second timing variable CounteTime_B will be reset (if there is no corresponding second timing variable, a corresponding second timing variable can be generated). At this time, CounteTime_A continues to count down, and CounteTime_B counts down synchronously with the first timing variable PowerSaveDelay.
[0065] For the door light of each door, if the count down of its corresponding second timing variable CounteTime has not ended, it will flash. When the count down of CounteTime ends and the count down of PowerSaveDelay has not ended, it will be constantly on. When the count down of PowerSaveDelay ends, it will be turned off.
[0066] It can be seen from the above example that according to the solution of this embodiment, the first timing variable is continuously refreshed and synchronized, and there is no need to judge which door light's timing variable is used to turn off all door lights, thus achieving the effect of turning on and off all door lights simultaneously.
[0067] In a possible implementation manner, the door light control method further includes:
[0068] When it is detected that any door of the vehicle is opened, the preset first timing variable is reset, the second timing variable corresponding to the opened door is reset, and timing is performed based on the first timing variable and the second timing variable corresponding to the opened door.
[0069] In this embodiment, the door light control method may further include the step of resetting the first timing variable and the second timing variable. Among them, before the second timing variable is reset, it can be detected whether the second timing variable has been generated in the execution body (corresponding to the door light control method of this embodiment). If the second timing variable has been generated in the execution body, the second timing variable can be directly reset to the initial value. If the second timing variable has not been generated in the execution body, a corresponding second timing variable can be generated and the second timing variable can be reset to the initial value.
[0070] In this embodiment, timing starts after the first timing variable and the second timing variable are reset.
[0071] In a possible implementation manner, the door light control method further includes: detecting whether the door of the vehicle is opened.
[0072] Detect whether the vehicle door is open, including:
[0073] Detect whether a trigger signal on the vehicle door handle is received. If the trigger signal on the vehicle door handle is received, it is determined that the vehicle door is open.
[0074] Alternatively, detect whether an electric control signal triggered by the user to open the door is received. If the electric control signal is received, it is determined that the vehicle door is open.
[0075] In this embodiment, the reset of the first timing variable and the second timing variable is triggered by the opening of the door. Therefore, this embodiment also provides a method for detecting whether the door is open. Considering that the user may manually open the door, the trigger signal on the door handle can be detected to determine whether the vehicle door is opened. Considering that the user may electrically open the door, it can also be determined whether the door is open by detecting whether the electric control signal triggered by the user is received, so as to determine whether to reset the first timing variable and the corresponding second timing variable.
[0076] In a possible implementation manner, the first state is a flashing state and the second state is a constant-on state.
[0077] In this embodiment, the first state can be set to a flashing state. For example, the door light of the door can flash at a frequency of 1 s, that is, it is on for 500 ms and off for 500 ms.
[0078] In this embodiment, the second state can be set to a constant-on state, that is, the door light of the door always remains on.
[0079] Wherein, the door light off described in the above embodiment of the present invention refers to the door light being in the off state, that is, remaining in the extinguished state.
[0080] In a possible implementation manner, the timing forms of the first timing variable and the second timing variable are forward timing or countdown timing.
[0081] When the timing forms of the first timing variable and the second timing variable are forward timing, the timing ends when the first timing variable and the second timing variable reach their corresponding timing thresholds.
[0082] When the timing forms of the first timing variable and the second timing variable are countdown timing, the initial values of the first timing variable and the second timing variable are the same.
[0083] In this embodiment, when timing using the first timing variable and the second timing variable, forward timing or countdown timing can be performed. During forward timing, the timing ends when the first timing variable and the second timing variable reach their corresponding timing thresholds. During countdown timing, the timing ends when the first timing variable and the second timing variable become zero. At this time, the initial values of the first timing variable and the second timing variable are the same to ensure that the timing durations of the first timing variable and the second timing variable are the same.
[0084] In a possible implementation, the door light control method further includes:
[0085] If the timing of the first timing variable has not ended, within a preset time before the timing of the first timing variable ends, control is performed to issue a first prompt message.
[0086] The first prompt message is used to remind the user that the door lights of all doors are about to go out.
[0087] In this embodiment, the preset time can be set by the user. For example, it can be set to issue the first prompt message 10 s before the timing of the first timing variable ends to remind the user that the door lights of all doors are about to close. At this time, if the user has a lighting need, other lighting devices can be turned on in advance before the door lights go out.
[0088] In a possible implementation, the first prompt message is an acoustic and optical message or a voice message.
[0089] In this embodiment, the first prompt message can be an acoustic and optical message. For example, it can be set that the door lights of the vehicle flash at a preset frequency 10 s before going out to remind the user that the door lights of all doors are about to go out. The first prompt message can also be a voice message. For example, a voice reminder message can be issued through the audio and video playback device on the vehicle to remind the user that the door lights of all doors are about to go out.
[0090] Corresponding to the door light control method in the above embodiment, Figure 4 is a structural block diagram of a door light control device provided in an embodiment of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. The door light control device provided in this embodiment is used to control the door lights of a target door, and the target door is any door in the vehicle. Refer to Figure 4 The door light control device 20 includes: a data acquisition module 21 and a door light control module 22.
[0091] Among them, the data acquisition module 21 is configured to, after detecting that the first timing variable is reset, acquire the first timing variable and the second timing variable corresponding to the target door. Among them, the first timing variable is reset and starts timing when any door of the vehicle is opened, and the second timing variable is reset and starts timing when the target door is opened. The initial values of the first timing variable and the second timing variable are the same.
[0092] The door light control module 22 is configured to control the door light of the target door to operate in a first state when the timing of the second timing variable has not ended. When the timing of the second timing variable ends and the timing of the first timing variable has not ended, control the door light of the target door to operate in a second state. The second state is different from the first state. When the timings of both the second timing variable and the first timing variable end, control the door light of the target door to turn off.
[0093] In a possible implementation, the door light control module 22 is further configured to:
[0094] When it is detected that any door of the vehicle is opened, reset the preset first timing variable, reset the second timing variable corresponding to the opened door, and perform timing based on the first timing variable and the second timing variable corresponding to the opened door.
[0095] In a possible implementation, the door light control module 22 is further configured to detect whether the doors of the vehicle are opened.
[0096] Detecting whether the doors of the vehicle are opened includes:
[0097] Detect whether a trigger signal on the door handle of the vehicle is received. If the trigger signal on the door handle of the vehicle is received, it is determined that the door of the vehicle is opened.
[0098] Alternatively, detect whether an electric control signal triggered by the user for opening the door is received. If the electric control signal is received, it is determined that the door of the vehicle is opened.
[0099] In a possible implementation, the first state is a flashing state and the second state is a constant-on state.
[0100] In a possible implementation, the timings of the first timing variable and the second timing variable are in the form of forward timing or countdown timing.
[0101] When the timings of the first timing variable and the second timing variable are in the form of forward timing, the timings of the first timing variable and the second timing variable end when they reach their corresponding timing thresholds.
[0102] When the timings of the first timing variable and the second timing variable are in the form of countdown timing, the initial values of the first timing variable and the second timing variable are the same.
[0103] In a possible implementation, the door light control module 22 is further configured to:
[0104] When the timing of the first timing variable has not ended, within a preset time before the end of the timing of the first timing variable, control to issue a first prompt message.
[0105] The first prompt message is used to remind the user that the door lights of all doors are about to go out.
[0106] In a possible implementation, the first prompt message is an acoustic-optical message or a voice message.
[0107] The embodiment of the present invention further provides a vehicle, which includes a control terminal. Refer to Figure 5 , Figure 5 , which is a schematic block diagram of a control terminal provided in an embodiment of the present invention. As Figure 5 shown, the terminal 300 in this embodiment may include: one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The above-mentioned processors 301, input devices 302, output devices 303, and memories 304 communicate with each other through a communication bus 305. The memory 304 is used to store a computer program, and the computer program includes program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. Among them, the processor 301 is configured to call the program instructions to perform the functions of the above-mentioned various modules / units in the device embodiments, for example Figure 4 the functions of the modules 21 to 22 shown.
[0108] It should be understood that in the embodiment of the present invention, the so-called processor 301 may be a central processing unit (CPU), and this processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or this processor may also be any conventional processor, etc.
[0109] The input device 302 may include a touchpad, a fingerprint sensor (for collecting the fingerprint information and the fingerprint direction information of the user), a microphone, etc., and the output device 303 may include a display (such as an LCD), a speaker, etc.
[0110] The memory 304 may include a read-only memory and a random access memory, and provide instructions and data to the processor 301. A part of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information about the device type.
[0111] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiments of the present invention may execute the implementation manners described in the first and second embodiments of the door light control method provided by the embodiments of the present invention, and may also execute the implementation manner of the terminal described in the embodiments of the present invention, which will not be elaborated herein.
[0112] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, all or part of the processes in the above-described method embodiments are implemented. It can also be completed by instructing related hardware through the computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice within the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0113] The computer-readable storage medium may be an internal storage unit of the terminal in any of the foregoing embodiments, such as the hard disk or memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the terminal. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store the data that has been output or will be output.
[0114] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0115] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described terminals and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0116] In several embodiments provided by the present application, it should be understood that the disclosed terminals and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces or units, or can also be electrical, mechanical, or other forms of connection.
[0117] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present invention.
[0118] In addition, the functional units in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0119] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A door lamp control method, characterized in that, The door light control method is used to control the door light of a target door, where the target door is any door in a vehicle, and the door light control method includes: After detecting that a first timing variable is reset, obtain the first timing variable and a second timing variable corresponding to the target door; Wherein, the first timing variable is used to be reset and timed when any door of the vehicle is opened, the second timing variable is used to be reset and timed when the target door is opened, and the timing durations of the first timing variable and the second timing variable are the same; If the timing of the second timing variable has not ended, control the door light of the target door to operate in a first state; If the timing of the second timing variable ends and the timing of the first timing variable has not ended, control the door light of the target door to operate in a second state; the second state is different from the first state; If the timings of both the second timing variable and the first timing variable end, control the door light of the target door to turn off.
2. The door lamp control method according to claim 1, characterized in that, The door light control method further includes: When detecting that any door of the vehicle is opened, reset a preset first timing variable, reset a second timing variable corresponding to the opened door, and perform timing based on the first timing variable and the second timing variable corresponding to the opened door.
3. The door lamp control method according to claim 2, wherein, The door light control method further includes: detecting whether a door of the vehicle is opened; The detecting whether a door of the vehicle is opened includes: Detect whether a trigger signal on the door handle of the vehicle is received. If the trigger signal on the door handle of the vehicle is received, it is determined that the door of the vehicle is opened; Alternatively, detect whether an electric control signal triggered by a user for opening the door is received. If the electric control signal is received, it is determined that the door of the vehicle is opened.
4. The door lamp control method according to claim 1, characterized in that, The first state is a flashing state, and the second state is a constant-on state.
5. The door light control method according to claim 1, wherein, The timing forms of the first timing variable and the second timing variable are forward timing or countdown timing; When the timing forms of the first timing variable and the second timing variable are forward timing, the first timing variable and the second timing variable end when reaching their corresponding timing thresholds; When the timing forms of the first timing variable and the second timing variable are countdown timing, the initial values of the first timing variable and the second timing variable are the same.
6. The door lamp control method according to any one of claims 1 to 5, characterized in that, The door light control method further includes: If the timing of the first timing variable has not ended, within a preset time before the end of the timing of the first timing variable, control to send out a first prompt message; The first prompt message is used to remind the user that the door lights of all doors are about to go out.
7. The door light control method according to claim 6, characterized in that, The first prompt message is an acoustic and optical message or a voice message.
8. A door lamp control device, characterized in that, The door light control device is used to control the door light of a target door, where the target door is any door in a vehicle, and includes: A data acquisition module, configured to acquire the first timing variable and the second timing variable corresponding to the target vehicle door after detecting that the first timing variable is reset; wherein, the first timing variable is reset and starts timing when any vehicle door is opened, the second timing variable is reset and starts timing when the target vehicle door is opened, and the initial values of the first timing variable and the second timing variable are the same; A door light control module, configured to control the door light of the target vehicle door to operate in a first state when the timing of the second timing variable has not ended; control the door light of the target vehicle door to operate in a second state when the timing of the second timing variable has ended and the timing of the first timing variable has not ended; the second state is different from the first state; and control the door light of the target vehicle door to be turned off when the timings of both the second timing variable and the first timing variable have ended.
9. A vehicle, characterized in that, Comprising: A control terminal; The control terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Vehicle multi-mode atmosphere lamp control system and method
CN110949248A
Control method and control system of in-vehicle lamp and vehicle
CN111196209A