Disclosure of Invention
The invention aims to solve the technical problem that in the prior art, when a key is taken away from a vehicle window in a keyless entry system, key search cannot be triggered in time, so that a vehicle cannot be powered on again after being powered off, and the vehicle cannot be locked when leaving the vehicle.
In order to solve the technical problem, the invention discloses a vehicle key searching method, which is applied to a vehicle key searching system, wherein the system comprises an initial mode, a driving mode and a traffic jam mode, and the method comprises the following steps:
detecting a running speed of the vehicle in an initial mode;
if the running speed of the vehicle in the initial mode is changed from being smaller than a first preset speed to being larger than a second preset speed, executing key search once, and updating the target number n of times of vehicle key search in the initial mode;
if the target number N of times of vehicle key search in the initial mode reaches a first preset search number N, switching the vehicle key search system from the initial mode to a driving mode, and resetting the target number N of times of vehicle key search;
detecting the running speed of the vehicle in a running mode;
if the running speed of the vehicle in the running mode changes from being smaller than the first preset speed to being larger than a third preset speed, executing key search once, and updating the target number m of vehicle key search in the running mode;
and if the target number M of vehicle key searching in the driving mode reaches a second preset searching number M, switching the vehicle key searching system from the driving mode to the traffic jam mode, resetting the target number M of vehicle key searching, and suspending vehicle key searching.
Further, if the running speed of the vehicle in the initial mode changes from being smaller than a first preset speed to being larger than a second preset speed, updating the target number n of times of vehicle key search in the initial mode includes:
detecting a running speed of the vehicle in an initial mode;
judging whether the running speed of the vehicle in the detected initial mode is less than a first preset speed or not;
if the detected running speed of the vehicle in the initial mode is smaller than a first preset speed, continuing to detect the running speed of the vehicle in the initial mode;
judging whether the running speed of the vehicle in the initial mode which is continuously detected is greater than a second preset speed or not; and if the running speed of the vehicle in the initial mode which is continuously detected is greater than a second preset speed, updating the target number n of times of searching the vehicle key in the initial mode.
Further, if the running speed of the vehicle in the running mode changes from being smaller than the first preset speed to being larger than a third preset speed, updating the target number m of times of vehicle key search in the running mode includes:
detecting the running speed of the vehicle in a running mode;
judging whether the running speed of the vehicle in the detected running mode is less than a first preset speed or not;
if the detected running speed of the vehicle in the running mode is smaller than a first preset speed, continuing to detect the running speed of the vehicle in the running mode;
judging whether the running speed of the vehicle in the running mode continuously detected is greater than a third preset speed or not;
and if the running speed of the vehicle in the running mode which is continuously detected is greater than a third preset speed, updating the target number m of times of searching the vehicle key in the running mode.
Further, the updating the target number of times of the vehicle key search includes:
and circularly adding 1 to the target number of times of the vehicle key search after triggering one key search.
Further, the target number m of vehicle key searches is cleared, and after vehicle key searches are suspended, the method further includes:
detecting a driving speed of the vehicle in a traffic jam mode;
judging whether the running speed of the vehicle in the detected traffic jam mode is greater than a fourth preset speed or not;
if the running speed of the vehicle in the detected traffic jam mode is higher than a fourth preset speed;
judging whether the time that the vehicle continuously runs at the running speed in the detected traffic jam mode is longer than the preset time or not;
and if the continuous running time of the vehicle at the running speed of the vehicle in the detected traffic jam mode is longer than the preset time, switching the vehicle key searching system from the traffic jam mode to the running mode. Further, in order to solve the problems in the prior art, the present invention also provides a vehicle key search system, including:
the speed detection module is used for detecting the running speed of the vehicle;
the first judging module is used for judging whether the running speed of the vehicle in the initial mode is changed from being smaller than a first preset speed to being larger than a second preset speed;
the second judgment module is used for judging whether the running speed of the vehicle in the running mode is changed from being smaller than the first preset speed to being larger than a third preset speed;
a key search module, the key search module comprising:
the first searching unit is used for executing key searching once when the running speed of the vehicle in the initial mode is changed from being smaller than a first preset speed to being larger than a second preset speed;
the second searching unit is used for executing key searching once when the running speed of the vehicle in the running mode is changed from being smaller than the first preset speed to being larger than the third preset speed;
an update module, the update module comprising:
a first updating unit for updating a target number n of vehicle key searches;
a second updating unit for updating the target number m of vehicle key searches;
the third judgment module is used for judging whether the target times N of vehicle key searching in the initial mode reach the first preset searching times N or not;
the fourth judgment module is used for judging whether the target times M of vehicle key search in the driving mode reach a second preset search time M or not;
a switching module, the switching module comprising:
the first switching unit is used for switching the vehicle key searching system from an initial mode to a driving mode;
the second switching unit is used for switching the vehicle key searching system from a driving mode to a traffic jam mode;
a zero clearing module, the zero clearing module comprising:
a first zero clearing unit for clearing a target number n of vehicle key searches;
the second zero clearing unit is used for zero clearing the target times m of the vehicle key search;
and the pause searching module is used for pausing the key searching.
Further, the first determining module includes:
a first judging unit configured to judge whether a running speed of the vehicle in the detected initial mode is less than a first preset speed;
and the second judging unit is used for judging whether the running speed of the vehicle in the initial mode of continuous detection is greater than a second preset speed or not.
Further, the second determining module includes:
a third judging unit configured to judge whether the detected traveling speed of the vehicle in the traveling mode is less than a first preset speed;
and the fourth judging unit is used for judging whether the running speed of the vehicle in the running mode continuously detected is greater than a third preset speed or not.
The updating module further comprises a cycle increasing unit, which is used for circularly increasing 1 to the target times of the vehicle key search after triggering one key search.
Further, the system further comprises:
the fifth judging module is used for judging whether the running speed of the vehicle in the detected traffic jam mode is greater than a fourth preset speed or not;
the sixth judging module is used for judging whether the time that the vehicle continuously runs at the running speed in the detected traffic jam mode is longer than the preset time or not;
the switching module further comprises:
and the third switching unit is used for switching the vehicle key searching system from a traffic jam mode to a driving mode.
By adopting the technical scheme, the vehicle key searching method and the vehicle key searching system have the following steps
Has the advantages that:
1) according to the invention, the vehicle speed is used as a key search triggering condition, and key search can be carried out under the condition of not opening the vehicle door, so that the problems that the vehicle cannot be powered on again after being powered off and the vehicle cannot be locked when leaving the vehicle due to the fact that the vehicle key is taken away from the vehicle window and the key search cannot be triggered in time are avoided;
2) according to the invention, the key searching times are obtained according to the vehicle running speed, the vehicle running modes are switched according to the key searching times, the key searching state is adjusted according to different modes, and the problems of high key power consumption and reduced key service life caused by repeated key searching are avoided under the condition of fully searching the key.
3) According to the invention, the driving speed can be detected constantly after key search is suspended, and a vehicle can quickly and timely start a key search triggering condition after a road is smooth, so that the key forgetting prevention experience is improved.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
In order to solve the problems in the prior art, the embodiment provides a key search method, which is used for a vehicle key search system and is an improvement on an automobile keyless system, and a key search condition is added on the basis of a key search triggering condition of a keyless entry system in the prior art, namely the key search triggering condition in the prior art is not changed. Specifically, the system comprises an initial mode, a driving mode and a traffic jam mode, and the three operation modes can be switched according to specific conditions. Specifically, after the engine of the vehicle is started, the vehicle key search system enters an initial mode, and it should be noted that when the mode of the vehicle is not switched, the driving states of the vehicle are all executed in the same mode.
Further, the following describes the vehicle key search method and system provided by the present application in detail with reference to the accompanying drawings.
Specifically, referring to fig. 1, fig. 1 is a flowchart illustrating a vehicle key search method according to an exemplary embodiment, as shown in fig. 1, the method including the steps of:
s100, detecting the running speed of the vehicle in an initial mode;
specifically, after the engine of the vehicle is started, the vehicle key search system enters an initial mode, and then, the running speed of the vehicle in the initial mode is detected. The running speed of the vehicle detected in the initial mode can be detected in real time by a speed server arranged on the vehicle. Specifically, the vehicle speed server comprises a vehicle speed sensor, the vehicle speed sensor is used for detecting the running speed of the vehicle, the detection result is input to the vehicle instrument system and is used for displaying the vehicle speed, and meanwhile, the detected vehicle speed signal is input to a vehicle-mounted computer of the vehicle control system needing the vehicle speed signal. Preferably, the vehicle speed sensor may be any one of a magnetoelectric vehicle speed sensor, a hall vehicle speed sensor, and a photoelectric vehicle speed sensor.
S102, judging whether the running speed of the vehicle in the initial mode is changed from being smaller than a first preset speed to being larger than a second preset speed, and executing a step S104 if the running speed of the vehicle in the initial mode is changed from being smaller than the first preset speed to being larger than the second preset speed.
Specifically, the step S102 of determining whether the running speed of the vehicle in the initial mode changes from being less than a first preset speed to being greater than a second preset speed specifically includes:
s1020 detects a running speed of the vehicle in an initial mode;
specifically, the method for detecting the running speed of the vehicle in the initial mode in this step may refer to the detailed description of step S100, and will not be described herein again.
S1022, determining whether the detected driving speed of the vehicle in the initial mode is less than a first preset speed, and if the detected driving speed of the vehicle in the initial mode is less than the first preset speed, executing step S1024.
S1024, continuously detecting the running speed of the vehicle in the initial mode;
it can be understood that the first preset speed is a preset value, and the specific value thereof is not limited, and can be set according to actual conditions and needs. Preferably, in the present embodiment, the first preset speed is preferably 3 Km/h. Further, after the vehicle starts the engine to enter the initial mode, the vehicle is in a stationary state immediately after the engine is started, or in an initial starting state, and the speed of the vehicle is lower than a first preset speed, generally between 0.5Km/h and 1Km/h, and preferably 0.5Km/h in the embodiment. And when the running speed of the vehicle is judged to be less than the first preset speed, continuing to detect the running speed of the vehicle in the initial mode.
And S1026, judging whether the running speed of the vehicle in the initial mode of continuous detection is greater than a second preset speed, wherein the first preset speed is less than the second preset speed, and if the running speed of the vehicle in the initial mode of continuous detection is greater than the second preset speed, executing the step S104.
It can be understood that the second preset speed is also a preset value, and a specific value thereof is not limited, and can be set according to actual conditions and needs. Preferably, in the present embodiment, the second preset speed is preferably 10 Km/h. Specifically, when the running speed of the vehicle in the initial mode continuously detected is greater than the second preset speed, it indicates that in the initial mode, the running speed of the vehicle changes from being less than the first preset speed to being greater than the second preset speed, in this embodiment, that is, the running speed changes from 0.5Km/h to being greater than 10Km/h, a trigger condition of key search is satisfied, a key search is performed, and a key is prevented from passing through a window when the vehicle is in a stationary state or a starting state.
S104, executing key search once, and updating the target times n of the vehicle key search in the initial mode;
specifically, after the key search condition is satisfied, a key search is executed once, and the target number n of times of the vehicle key search in the initial mode is updated, where updating the target number n of times of the vehicle key search in the initial mode specifically includes: and after one key search is executed, circularly adding 1 to the target number n of the vehicle key searches in the initial mode, namely the target number n of the vehicle key searches in the updated initial mode is the same as the total number of the key searches executed in the initial mode, wherein n is 0, 1, 2 and 3.
S106, judging whether the target number N of times of vehicle key search in the initial mode reaches a first preset search number N, executing the step S108 if the target number N of times of vehicle key search in the initial mode reaches the first preset search number N, and returning to the step S102 if the target number N of times of vehicle key search in the initial mode does not reach the first preset search number N, wherein N is 0, 1, 2 and 3.
And S108, switching the vehicle key searching system from the initial mode to the driving mode, and clearing the target number n of vehicle key searching.
Specifically, when the target number N of times of the vehicle key search in the initial mode reaches a first preset number N of times of search, the vehicle key search system is switched from the initial mode to the driving mode, preferably, in this embodiment, the first preset number N of times of search is preferably 2, and when the updated number N of times of the key search in the initial mode is 2, the mode switching condition is satisfied, and the vehicle key search system is switched from the initial mode to the driving mode. Subsequently, the target number of times 2 of the vehicle key search in the initial mode after the final update is cleared, so that the updated number of times of the vehicle key search is newly recorded in the driving mode.
S110, detecting the running speed of the vehicle in a running mode;
and S112, judging whether the running speed of the vehicle in the running mode is changed from being smaller than the first preset speed to being larger than a third preset speed, and executing a step S114 if the running speed of the vehicle in the running mode is changed from being smaller than the first preset speed to being larger than the third preset speed.
Specifically, the step S112 of determining whether the running speed of the vehicle in the running mode changes from being smaller than the first preset speed to being larger than a third preset speed specifically includes:
s1120 detects a traveling speed of the vehicle in a traveling mode;
specifically, the method for detecting the driving speed of the vehicle in the driving mode in this step may refer to the detailed description of step S100, and the method is similar, but is only based on different driving modes, and is not repeated here.
S1122, determining whether the detected driving speed of the vehicle in the driving mode is less than a first preset speed, and if the detected driving speed of the vehicle in the driving mode is less than the first preset speed, performing step S1124.
S1124, continuously detecting the running speed of the vehicle in the running mode;
and S1026, judging whether the running speed of the vehicle in the running mode continuously detected is greater than a third preset speed, wherein the first preset speed is less than the second preset speed and less than the third preset speed, and executing the step S114 if the running speed of the vehicle in the running mode continuously detected is greater than the third preset speed.
It can be understood that, similar to the first preset speed and the second preset speed, the third preset speed is also a preset value, and a specific value thereof is not limited, and can be set according to actual conditions and needs. Preferably, in the present embodiment, the third preset speed is preferably 20 Km/h. Specifically, when the running speed of the vehicle in the running mode is continuously detected and it is determined that the running speed of the vehicle in the running mode continuously detected is greater than a third preset speed, it indicates that the running speed of the vehicle changes from being less than the first preset speed to being greater than the third preset speed, that is, changes from being less than 3Km/h to being greater than 10Km/h, and meets the triggering condition of key search, and executes a key search to avoid the key passing through the window.
S114, executing key search once, and updating the target times m of the vehicle key search in the driving mode;
specifically, after the key search condition is met, a key search is executed, and the target number m of vehicle key searches in the driving mode is updated, where updating the target number m of vehicle key searches in the driving mode specifically includes: and after one key search is executed, circularly adding 1 to the target number m of the vehicle key search in the driving mode, namely the target number m of the vehicle key search in the updated driving mode is the same as the total number of the key search executed in the driving mode, wherein m is 0, 1, 2 and 3.
S116, judging whether the target frequency M of the vehicle key search in the driving mode reaches a second preset search frequency M or not, executing the step S118 if the target frequency M of the vehicle key search in the driving mode reaches the second preset search frequency M, and returning to the step S112 if the target frequency M of the vehicle key search in the driving mode does not reach the second preset search frequency M, wherein M is 0, 1, 2 and 3.
S118, switching the vehicle key searching system from a driving mode to a traffic jam mode, clearing the target number m of vehicle key searching, and suspending the vehicle key searching.
Specifically, when the target number M of times of vehicle key search in the driving mode reaches a second preset number M of times of search, the vehicle key search system is switched from the driving mode to the traffic congestion mode, preferably, in this embodiment, the second preset number M of times of search is preferably 8, and when the number M of times of key search in the updated initial mode is 8, the mode switching condition is satisfied, and the vehicle key search system is switched from the driving mode to the traffic congestion mode. Subsequently, the target number of times 8 of the vehicle key search that is finally updated in the driving mode is cleared.
It can be understood that, in order to more accurately determine that the vehicle is in the traffic jam state, whether the target number M of times of the vehicle key search in the driving mode reaches the second preset search number M may be determined within a certain preset time threshold. Preferably, the preset time threshold is set to 15min, the second preset search frequency M is set to 8, and when the target frequency M of the vehicle key search reaches 8 times within the 15min, it indicates that the vehicle is in a frequent start-stop state, and the vehicle is in a traffic jam mode. Through the limitation of time, the misjudgment of the traffic jam state can be avoided when the vehicle target searching times m reach the second preset time for too long time. It can be understood that, when the vehicle driving state is the traffic jam state, if the key search is still executed, the number of times of triggering the key search is frequent, and the loss of the key electric quantity is easily caused.
Further, step S118, switching the vehicle from the driving mode to the traffic congestion mode, clearing the target number m of vehicle key searches, and suspending the vehicle key search, and then:
s120, detecting the running speed of the vehicle in the traffic jam mode;
specifically, the method for detecting the driving speed of the vehicle in the traffic jam mode in this step may refer to the detailed description of step S100, and the method is similar, but is only based on different driving modes, and is not repeated here.
S122, determining whether the driving speed of the vehicle in the detected traffic congestion mode is greater than a fourth preset speed, and if the driving speed of the vehicle in the detected traffic congestion mode is greater than the fourth preset speed, executing step S124.
And S124, judging whether the time that the vehicle continuously runs at the running speed in the detected traffic jam mode is longer than the preset time or not, if so, executing the step S126 and returning to the step S110. At this time, the vehicle key search system is switched from the traffic jam mode to the driving mode.
And S126, switching the vehicle key searching system from a traffic jam mode to a driving mode.
It is understood that the fourth preset speed is also a preset value, and the preset time is also a preset value, preferably, in this embodiment, the fourth preset speed is preferably 40Km/h, and the preset time is preferably 5min, when the driving speed of the vehicle in the traffic jam mode is detected to be greater than the fourth preset speed, that is, greater than 40Km/h, and the vehicle continues to drive at the detected driving speed for the preset time and for 5min, it indicates that the road is no longer congested, and the frequent starting and stopping states of the vehicle are eliminated, at this time, the vehicle may be switched from the traffic jam mode to the driving mode, and the key search is continuously performed.
It will be appreciated that the method may also be performed from the initial mode after determining that the vehicle has experienced a congestion condition, by shutting down the engine and starting the engine again.
The following is an embodiment of the system of the present invention, which can be used to implement the method of the present invention, and for details not disclosed in the embodiment of the system of the present invention, please refer to the method of the present invention.
Fig. 2 is a block diagram of a vehicle key search system according to the present invention.
As shown in fig. 2, the system includes:
the speed detection module is used for detecting the running speed of the vehicle;
the first judging module is used for judging whether the running speed of the vehicle in the initial mode is changed from being smaller than a first preset speed to being larger than a second preset speed;
the second judgment module is used for judging whether the running speed of the vehicle in the running mode is changed from being smaller than the first preset speed to being larger than a third preset speed;
a key search module, the key search module comprising:
the first searching unit is used for executing key searching once when the running speed of the vehicle in the initial mode is changed from being smaller than a first preset speed to being larger than a second preset speed;
the second searching unit is used for executing key searching once when the running speed of the vehicle in the running mode is changed from being smaller than the first preset speed to being larger than the third preset speed;
an update module, the update module comprising:
a first updating unit for updating the target number n of vehicle key searches in the initial mode;
the second updating unit is used for updating the target times m of searching the vehicle key in the driving mode;
the third judgment module is used for judging whether the target times N of vehicle key searching in the initial mode reach the first preset searching times N or not;
the fourth judgment module is used for judging whether the target times M of vehicle key search in the driving mode reach a second preset search time M or not;
a switching module, the switching module comprising:
the first switching unit is used for switching the vehicle key searching system from the initial mode to the driving mode when the target number N of times of vehicle key searching in the initial mode reaches a first preset searching number N;
the second switching unit is used for switching the vehicle key searching system from the driving mode to the traffic jam mode when the target number M of vehicle key searching in the driving mode reaches a second preset searching number M;
a zero clearing module, the zero clearing module comprising:
a first zero clearing unit for clearing the target number n of vehicle key searches in the updated initial mode;
the second zero clearing unit is used for zero clearing the target times m of the vehicle key search in the updated driving mode;
and the pause searching module is used for pausing the vehicle key search after the target times of the vehicle key search in the updated driving mode are cleared.
Further, the first determining module includes:
a first judging unit configured to judge whether a running speed of the vehicle in the detected initial mode is less than a first preset speed;
and the second judging unit is used for judging whether the running speed of the vehicle in the initial mode of continuous detection is greater than a second preset speed or not.
Further, the second determining module includes:
a third judging unit configured to judge whether the detected traveling speed of the vehicle in the traveling mode is less than a first preset speed;
and the fourth judging unit is used for judging whether the running speed of the vehicle in the running mode continuously detected is greater than a third preset speed or not.
The updating module further comprises a cycle increasing unit, which is used for circularly increasing 1 to the target times of the vehicle key search after triggering one key search.
Further, the system further comprises:
the fifth judging module is used for judging whether the running speed of the vehicle in the detected traffic jam mode is greater than a fourth preset speed or not;
the sixth judging module is used for judging whether the time that the vehicle continuously runs at the running speed in the detected traffic jam mode is longer than the preset time or not;
the switching module further comprises:
and the third switching unit is used for switching the vehicle key searching system from the traffic jam mode to the driving mode when the vehicle continuously drives at the detected driving speed in the traffic jam mode for a time longer than the preset time in the traffic jam mode.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.