CN113129484B - Door lock control method and device, automobile and storage medium - Google Patents

Door lock control method and device, automobile and storage medium Download PDF

Info

Publication number
CN113129484B
CN113129484B CN202110373020.3A CN202110373020A CN113129484B CN 113129484 B CN113129484 B CN 113129484B CN 202110373020 A CN202110373020 A CN 202110373020A CN 113129484 B CN113129484 B CN 113129484B
Authority
CN
China
Prior art keywords
door lock
control signal
lock control
acquiring
state
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.)
Active
Application number
CN202110373020.3A
Other languages
Chinese (zh)
Other versions
CN113129484A (en
Inventor
曾郁荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202110373020.3A priority Critical patent/CN113129484B/en
Publication of CN113129484A publication Critical patent/CN113129484A/en
Priority to PCT/CN2021/111185 priority patent/WO2022213522A1/en
Application granted granted Critical
Publication of CN113129484B publication Critical patent/CN113129484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses

Abstract

The application discloses door lock control method, device, automobile and storage medium, relates to the technical field of automobiles, and comprises the following steps: the method comprises the steps of obtaining a door lock control signal corresponding to the current moment as a first door lock control signal, obtaining a plurality of door lock control signals of a preset time interval (namely between the historical moment and the current moment) before the current moment as second door lock control signals, controlling the door lock through the first door lock control signal when the first door lock control signal is the same as the second door lock control signal, controlling the door lock through the first door lock control signal to be stable between the historical moment and the current moment, and controlling the door lock through the door lock control signal, so that the accurate control of the state of the door is guaranteed, and misoperation is prevented.

Description

Door lock control method and device, automobile and storage medium
Technical Field
The present application relates to the field of automotive technologies, and in particular, to a door lock control method and apparatus, an automobile, and a storage medium.
Background
The bluetooth is used as a new-type intelligent key by extensive application in the car field, unblanks the shutting control through the bluetooth to the door of car. Because the bluetooth signal may be interfered by factors such as the automobile shell, the position of the user, interference signals around the automobile, characteristics of the bluetooth signal and the like, misoperation is easy to occur when the automobile door is controlled through the bluetooth signal.
Disclosure of Invention
In view of the above, the present application proposes an automotive method, apparatus, automotive and storage medium to overcome or at least partially solve the above problems of the prior art.
In a first aspect, an embodiment of the present application provides a door lock control method, where the method includes: acquiring a door lock control signal corresponding to the current moment as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal; and when the first door lock control signal is the same as the second door lock control signal, controlling the door lock through the first door lock control signal.
In a second aspect, an embodiment of the present application provides a door lock control device, where the device includes: the acquisition module is used for acquiring a door lock control signal corresponding to the current moment as a first door lock control signal and acquiring a plurality of door lock control signals within a preset time interval before the current moment as a second door lock control signal; and the control module is used for controlling the door lock through the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
In a third aspect, an embodiment of the present application provides an automobile, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above-described methods.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
According to the door lock control method, the door lock control device, the automobile and the storage medium, the door lock control signal corresponding to the current moment is obtained and serves as the first door lock control signal, the door lock control signals at the preset time interval (namely, between the historical moment and the current moment) before the current moment are obtained and serve as the second door lock control signal, when the first door lock control signal and the second door lock control signal are the same, the door lock is controlled through the first door lock control signal, the door lock control signal for controlling the door lock between the historical moment and the current moment is stable, and then the door lock is controlled through the door lock control signal, so that the accurate control of the state of the automobile door is guaranteed, and misoperation is prevented.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a waveform diagram of a bluetooth signal subjected to external interference in the prior art;
fig. 2 is a schematic flow chart illustrating a door lock control method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating a door lock control method according to another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating a door lock control method according to another embodiment of the present application;
fig. 5 is a schematic flow chart illustrating a door lock control method according to still another embodiment of the present application;
fig. 6 is a schematic flow chart illustrating a door lock control method according to still another embodiment of the present application;
fig. 7 is a block diagram illustrating a door lock control apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of an electronic device for executing a door lock control method according to an embodiment of the present application;
fig. 9 shows a storage unit for storing or carrying program codes for implementing a door lock control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the popularization of smart automobiles, bluetooth is widely applied to the field of automobiles as a novel smart non-inductive key. The user sends out bluetooth control signal through the car key, obtains one or more bluetooth signal intensity through the cell-phone, then judges the current state of locking or unblock according to the algorithm. Because bluetooth radio frequency equipment all installs on metal device, in addition the bluetooth signal receives the interference of factors such as the position at car casing, user place, interference signal around the car, bluetooth signal characteristics, signal of telecommunication easily, when passing through bluetooth signal control door, produces the maloperation easily, for example, owing to receive external disturbance, the bluetooth signal jumps repeatedly easily, leads to the door to unblank repeatedly and close.
For another example, inside the vehicle body, due to the influence of the vehicle shell, the separation degree of external signals is relatively low, general errors can go to more than plus or minus 3 meters, and in addition, the mobile phone of the user may interfere with the bluetooth signal differently at different parts of the user, so that the bluetooth signals in the locked area and the unlocked area are seriously overlapped, the situation of frequent unlocking may be caused, and even actions such as a rearview mirror and a door handle are triggered, so that the user experience is extremely poor.
In some interference situations, please refer to fig. 1, the horizontal axis represents time, the vertical axis represents signal strength, the curve L1 is a waveform curve of the bluetooth signal acquired by the vehicle when the bluetooth key of the user is 4 meters away from the vehicle, and the curve L2 is a waveform curve of the bluetooth signal acquired by the vehicle when the bluetooth key of the user is 10 meters away from the vehicle. At a distance of 4 meters from the automobile, due to various interference factors, between 61 seconds and 94 seconds, the curve L2 is already superimposed with the curve L1, namely, the curve L1 overlaps with the signal in the curve L2, and for the convenience of viewing, a dashed box is shown in the figure, namely, the curve L1 also contains a signal of-82 dbm.
In view of the above technical problems, the inventors have found and proposed a door lock control method, device, automobile and storage medium through long-term research, and obtain a door lock control signal corresponding to a current time as a first door lock control signal, and obtain a plurality of door lock control signals at a preset time interval before the current time as a second door lock control signal, when the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal, and after the door lock control signal for controlling the door lock is stable at the current time after the preset time interval, the door lock is controlled by the door lock control signal, so that accurate control of a door state is ensured, and misoperation is prevented.
Fig. 2 is a schematic flow chart of a door lock control method according to an embodiment of the present application, where after a door lock control signal is stable, the door lock is controlled by the door lock control signal to ensure accurate control of the door lock and prevent misoperation. In the specific embodiment, the door lock control method is applied to the door lock control device 100 shown in fig. 7 and the automobile 200 (fig. 8) equipped with the door lock control device 100. The present embodiment will explain a specific flow of the present embodiment by taking an example in which the door lock control method is applied to an automobile. As will be described in detail with respect to the flow shown in fig. 2, the door lock control method may specifically include the following steps:
step S110, acquiring a door lock control signal corresponding to the current time as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current time as a second door lock control signal.
The automobile acquires a door lock control signal generated by the unlocking device at the current moment, and the door lock control signal is used as a first door lock control signal which is used for indicating and controlling the door lock to be in an unlocking state or a locking state.
Optionally, when the door lock control method is applied to an automobile, the first door lock control signal may be a bluetooth signal, and the door lock device may be a car key matched with the automobile of the user, or may be a mobile terminal connected to the automobile, such as a mobile phone, a tablet computer, a wearable device, and the like of the user. When the first door lock control signal is a bluetooth signal, the acquired bluetooth signal may be generated by a plurality of devices, and a bluetooth signal corresponding to the unlocking device is determined from the plurality of bluetooth signals as a target bluetooth signal according to an identifier of the unlocking device, for example, a medium access control address (mac), that is, the target bluetooth signal is used as the first door lock control signal.
Optionally, when the door lock control method is applied to an access control system, the first door lock control signal may also be a radio frequency signal.
And the automobile acquires a plurality of corresponding door lock control signals in a preset time interval from the historical time to the current time as second door lock control signals. Alternatively, the preset time interval may be 3 seconds, 4 seconds, etc., and is not limited herein. For example, when the preset time interval is 3 seconds, the current time is 9 points, zero 3 minutes and zero 5 seconds, the historical time is a time corresponding to 3 seconds before the current time, that is, the historical time is 9 points, zero 3 minutes and zero 2 seconds, and a plurality of door lock control signals between 9 points, zero 3 minutes and zero 2 seconds and 9 points, zero 3 minutes and zero 5 seconds are acquired.
Optionally, when a plurality of door lock control signals between the historical time and the current time are collected, the door lock control signals may be collected according to a preset sampling frequency. For example, the preset sampling frequency may be acquired 1 time per second or 2 times per second, and the preset sampling frequency may be adjusted according to the control sensitivity, which is not limited herein, and optionally, the higher the sensitivity is, the higher the corresponding preset sampling frequency is, the lower the sensitivity is, and the lower the corresponding preset sampling frequency is.
The door lock control signal comprises an unlocking control signal and a locking control signal, wherein the unlocking control signal is used for indicating the unlocking of the door lock, and the locking control signal is used for indicating the locking of the door lock. When the door lock control signal is an unlocking control signal, acquiring the unlocking control signal corresponding to the current moment as a first unlocking control signal, and acquiring a plurality of unlocking control signals within a first preset time interval before the current moment; and when the door lock control signal is a locking control signal, acquiring the locking control signal corresponding to the current moment as a first locking control signal, and acquiring a plurality of locking control signals in a second preset time interval before the current moment.
In some embodiments, the corresponding sensitivities may be different when unlocking and locking the door lock. For example, the corresponding sensitivity during unlocking is higher than the corresponding sensitivity during locking, that is, the first preset time interval is smaller than the second preset time interval, so that the user can be ensured to quickly unlock the vehicle before using the vehicle, and the user can be ensured to lock the vehicle door after using the vehicle. Or the sensitivity corresponding to unlocking is lower than the sensitivity corresponding to locking, namely the first preset time interval is greater than the second preset time interval.
In other embodiments, the sensitivity of the unlocking and locking of the door lock is the same, i.e. the first predetermined time interval is equal to the second predetermined time interval, ensuring accurate unlocking and locking.
In order to determine whether the door lock control signal is stable, it is determined whether the first door lock control signal is the same as the second door lock control signal. When the first door lock signal is different from the second door lock signal, it is indicated that the door lock signal may be unstable due to an interference factor in a preset time interval from a historical time to a current time, and therefore, the first door lock control signal does not need to be responded, that is, the door lock is kept in a current unlocking or locking state.
And step S120, when the first door lock control signal is the same as the second door lock control signal, controlling the door lock through the first door lock control signal.
When the first door lock control signal is the same as the second door lock control signal, the door control lock signal is stable, and the door lock can be controlled through the first door lock control signal. Because the door lock control signal is relatively stable, the door lock control signal changes less in a preset time interval from the historical moment to the current moment, and any door lock control signal in the preset time interval, namely the second door lock control signal, can be used for controlling the door lock.
In one embodiment, the door lock state may be controlled by unlocking or locking as indicated by the first door lock control signal.
In other embodiments, the unlocking or locking of the door lock may be controlled according to the signal strength of the first door lock control signal. Specifically, when the signal intensity of the first door lock control signal is within the unlocking interval, the first door lock control signal controls the door lock to unlock, namely, the lock ring of the door lock is unlocked; or, when the signal intensity of the first door lock control signal is within the locking interval, the first door lock control signal controls the door lock to lock, namely, the lock ring of the door lock is closed.
In the door lock control method provided in this embodiment, a door lock control signal corresponding to the current time is obtained as a first door lock control signal, and a plurality of door lock control signals at a preset time interval (i.e., between the historical time and the current time) before the current time are obtained as second door lock control signals.
Optionally, the present embodiment provides a door lock control method based on the above embodiment, for controlling unlocking of the door lock, fig. 3 shows a schematic flow chart of the door lock control method provided in another embodiment of the present application, please refer to fig. 3, where the door lock control method specifically includes the following steps:
step S210, acquiring a door lock control signal corresponding to the current time as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current time as second door lock control signals.
For details of step S210, please refer to step S110, which is not repeated herein.
Step S220, a plurality of door lock states corresponding to a preset time period are obtained, wherein the door lock states comprise an unlocking state and a locking state.
The preset time period includes the current time, and the plurality of door lock states corresponding to the preset time period are acquired, optionally, the preset time period may be 1 second, for example, the preset time period is a time period between 9 o 'clock and 1 minute 1 second and 9 o' clock and 1 minute 2 seconds.
In some embodiments, a plurality of signal intensities corresponding to a preset time period are obtained, and a plurality of door lock states corresponding to the plurality of signal intensities are obtained through a preset algorithm. Alternatively, the plurality of door lock states corresponding to the plurality of signal strengths may be recognized and recognized by a recognition model trained in advance.
In other embodiments, the unlocking interval and the locking interval are preset, a plurality of signal strengths corresponding to the preset time period are obtained, the signal strength in the unlocking interval in the plurality of signal strengths corresponds to the unlocking state, and the signal strength in the locking interval in the plurality of signal strengths corresponds to the locking state. The signal strength of the plurality of signal strengths that is not in the unlock interval or the lock interval corresponds to an irrelevant state, and it is understood that the irrelevant state may be an interference signal.
For example, the plurality of signal strengths includes-73 dbm, -70dbm, -68dbm, -95dbm, and-130 dbm. The unlocking interval is between-75 dbm and-65 dbm, and the locking interval is between-100 dbm and-85 dbm. 73dbm, -70dbm and-68 dbm are all in an unlocking interval [ -75dbm, -65dbm ], and 3 correspond to an unlocking state; -95dbm is in a latching range [ -100dbm, -85dbm ], in a latched state; 130dbm is not in the unlocking interval (-75 dbm, -65 dbm) and the locking interval (-100 dbm, -85 dbm), is in the irrelevant state.
And step S230, calculating the probability of the unlocking state in the plurality of door lock states to obtain the unlocking probability.
The unlocking probability is calculated by dividing the unlocking state by the plurality of door lock states, and continuing with the above example, if the unlocking states are 3 and the total number of states is 5, the calculated unlocking probability is 3/5 × 100% =60%.
Or, the probability of the locked state in the plurality of door lock states is calculated to obtain the locked probability, and with continuing the above example, if the number of locked states is 1 and the total number of locked states is 5, the calculated locked probability is 1/5 × 100% =20%.
And step S240, when the unlocking probability is greater than a preset probability, determining that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocking state.
Optionally, when the calculated unlocking probability is the preset unlocking probability, the preset probability may be the preset unlocking probability, and the preset unlocking probability may be set according to actual conditions, for example, the preset unlocking probability may be 59%, 60%, 80%, and the like. Taking the preset unlocking probability as 59% as an example, when the unlocking probability is 60%, the unlocking probability is 60% greater than the preset unlocking probability 59%, and the door lock state indicated by the first door lock control signal corresponding to the current moment is determined to be the unlocking state.
Alternatively, when the lockout probability is calculated, the preset probability may be a preset lockout probability, and the preset lockout probability may be set according to actual conditions, for example, the preset lockout probability may be 59%, 60%, 80%, or the like. Taking the preset locking probability as an example, and when the locking probability is 20%, and the locking probability is 20% and is less than the preset locking probability 59%, it is determined that the door lock state indicated by the first door lock control signal corresponding to the current time is not the locked state, but is the unlocked state.
And S250, when the first door lock control signal is the same as the second door lock control signal, controlling the door lock to be unlocked through the unlocking state indicated by the first door lock control signal.
In this embodiment, a plurality of door lock states corresponding to the preset time period are obtained, and among the plurality of door lock states, a state with a large proportion can represent a state at the current time, so that the accuracy of the state obtained at the current time is ensured, and the accuracy of door lock control is improved.
Optionally, the present embodiment provides a door lock control method based on the above embodiment, for controlling locking of the door lock, fig. 4 shows a schematic flow chart of a door lock control method according to another embodiment of the present application, please refer to fig. 4, where the door lock control method may specifically include the following steps:
step S310, acquiring a door lock control signal corresponding to the current time as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current time as second door lock control signals.
For detailed description of step S310, please refer to step S110, which is not described herein again.
Step S320, obtaining a plurality of door lock states corresponding to a preset time period, where the door lock states include an unlocked state and a locked state.
In some embodiments, a plurality of signal intensities corresponding to the preset time period are obtained, and a plurality of door lock states corresponding to the plurality of signal intensities are obtained through a preset algorithm. Alternatively, the plurality of door lock states corresponding to the plurality of signal strengths may be recognized and recognized by a recognition model trained in advance.
In other embodiments, the unlocking interval and the locking interval are preset, a plurality of signal strengths corresponding to the preset time period are obtained, the signal strength in the unlocking interval in the plurality of signal strengths corresponds to the unlocking state, and the signal strength in the locking interval in the plurality of signal strengths corresponds to the locking state. The signal strength of the plurality of signal strengths that is not in the unlock interval or the lock interval corresponds to an irrelevant state, and it is understood that the irrelevant state may be an interference signal.
For example, the plurality of signal strengths includes-73 dbm, -90dbm, -88dbm, -95dbm, and-100 dbm. The unlocking interval is between-75 dbm and-65 dbm, and the locking interval is between-100 dbm and-85 dbm. -90dbm, -88dbm, -95dbm and-100 dbm are all in a latching interval [ -100dbm, -85dbm ], 4 are corresponding to latching states; -73dbm is in the locking interval [ -100dbm, -85dbm ], in the unlocked state.
And step S330, calculating the probability of the unlocking state in the plurality of door lock states to obtain the unlocking probability.
The unlocking probability is calculated by dividing the unlocking state by the plurality of door lock states, and with continuing the above example, if there are 1 unlocking state and 5 unlocking states in total, the calculated unlocking probability is 1/5 × 100% =20%.
Or, the probability of the locked state in the plurality of door lock states is calculated to obtain the locked probability, and if the number of locked states is 4 and the total number of locked states is 5 with continuing the above example, the calculated locked probability is 4/5 × 100% =80%.
And step S340, when the unlocking probability is smaller than the preset probability, determining that the door lock state indicated by the first door lock control signal corresponding to the current moment is a locking state.
Optionally, when the calculated unlocking probability is a preset unlocking probability, the preset probability may be a preset unlocking probability, and the preset unlocking probability may be set according to an actual situation, for example, the preset unlocking probability may be 60%, 80%, or the like. Taking the preset unlocking probability as 60%, when the unlocking probability is 20%, the unlocking probability is 20% and is less than 60%, and it is determined that the door lock state indicated by the first door lock control signal corresponding to the current time is not the unlocking state but the locking state.
Optionally, when the locking probability is calculated, the preset probability may be a preset locking probability, and the preset locking probability may be set according to an actual situation, for example, the preset locking probability may be 60%, 80%, or the like. Taking the preset locking probability as 60% as an example, and when the locking probability is 80%, if the locking probability is 80% and is greater than the preset locking probability 60%, determining the door lock state locking state indicated by the first door lock control signal corresponding to the current moment.
And S350, when the first door lock control signal is the same as the second door lock control signal, controlling the door lock to be locked through the locking state indicated by the first door lock control signal.
In this embodiment, a plurality of door lock states corresponding to the preset time period are obtained, and among the plurality of door lock states, a state with a large proportion can represent a state at the current time, so that the accuracy of the state obtained at the current time is ensured, and the accuracy of door lock control is improved.
Optionally, when the door lock is controlled, after the automobile is successfully connected with the unlocking device, the automobile receives a door lock control signal for the first time as a primary door lock control signal, and when the primary door lock control signal is a primary unlocking control signal, the automobile controls the door lock to be unlocked through the primary unlocking control signal; when the primary lock control signal is a primary lock signal, the received signals are all lock control signals within a third preset time interval after the primary lock signal is received, and the vehicle door is controlled to be locked, wherein the third preset time interval can be 3 seconds, for example.
Fig. 5 shows a schematic flow diagram of a door lock control method according to still another embodiment of the present application, please refer to fig. 5, where the door lock control method specifically includes the following steps:
step S410, acquiring a door lock control signal corresponding to the current time as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current time as second door lock control signals.
For detailed description of step S410, please refer to step S110, which is not described herein again.
Step S420, when the first door lock control signal is the same as the second door lock control signal, acquiring a current door lock state, and acquiring a target door lock state indicated by the first door lock control signal corresponding to the current time.
When the first door lock control signal is the same as the second door lock control signal, the first door lock control signal is relatively stable, and the door lock can be controlled through the first door lock control signal. And acquiring the current door lock state, wherein the current door lock state is a locking state or an unlocking state. And acquiring a target door lock state indicated by the first door lock control signal, wherein the target door lock state is a locking state or an unlocking state. And judging whether the current door lock state is the same as the target door lock state, and when the current door lock state is different from the target door lock state, namely the current door lock state is a locked state and the target door lock state is an unlocked state, or the current door lock state is an unlocked state and the target door lock state is a locked state, indicating that the door lock control signal is unstable, and controlling the door lock to keep the current door lock state.
And step S430, when the current door lock state is different from the target door lock state, controlling the door lock to be switched from the current door lock state to the target door lock state through the first door lock control signal corresponding to the current moment.
In this embodiment, when the current door lock state is different from the target door lock state, the door lock state is switched from the current door lock state to the target door lock state, so as to ensure timely adjustment of the door lock state.
On the basis of the above embodiments, the present embodiment provides a door lock control method, which controls door lock information in combination with signal strength on the basis of a door lock control signal. Fig. 6 is a schematic flow chart of a door lock control method according to yet another embodiment of the present application, and referring to fig. 6, the door lock control method may specifically include the following steps:
step S510, acquiring a door lock control signal corresponding to the current time as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current time as a second door lock control signal.
And S520, when the first door lock control signal is the same as the second door lock control signal, controlling the door lock through the first door lock control signal.
For the detailed description of steps S510 to S520, refer to steps S110 to S120, which are not described herein again.
Step S530, when the first door lock control signal is different from the second door lock control signal, acquiring the signal intensity of the first door lock control signal as a first signal intensity.
When the first door lock control signal is different from the second door lock control signal, the signals are unstable, and the door lock cannot be controlled by the door lock control signal within the preset time interval. The signal strength of the first door lock control signal is acquired as the first signal strength, which may be-100 dbm, for example.
And step S540, acquiring a time of the previous switching of the door lock state at the current time as a history time, and acquiring a signal intensity of the door lock control signal corresponding to the history time as a second signal intensity.
The time corresponding to the last state switching is taken as the historical time, and it can be understood that, in the present embodiment, the signal strength of the door lock control signal corresponding to the historical time is taken as the second signal strength instead of the initial adjustment of the door lock state, and the second signal strength may be-90 dbm, for example.
Step S550, calculating a signal strength difference between the first signal strength and the second signal strength.
Combining the above examples, the signal strength difference is (-90 dbm) - (-100 dbm) =10dbm.
And step S560, when the signal intensity difference is greater than a preset intensity difference, controlling the door lock through the first door lock control signal.
For example, if the preset intensity difference is 5dbm and the preset intensity difference 10dbm is greater than the preset intensity difference 5dbm, the door lock is controlled by the first door lock control signal.
It should be noted that the door lock may also be controlled by using the signal strength difference alone, that is, when the signal strength difference is greater than the preset strength difference, the door lock is controlled by the first door lock control signal.
In this example, when first lock control signal is the same with second lock control signal, through first lock control signal control lock, when first lock control signal is different with second lock control signal, acquire first lock control signal's signal strength is as first signal strength to the signal strength who acquires the lock control signal that historical moment corresponds is as second signal strength, calculates the signal strength difference between first signal strength and the second signal strength, when the signal strength difference is greater than and predetermines the intensity difference, through first lock control signal control lock, ensures that the lock is accurate to be controlled.
To implement the above method embodiments, the present embodiment provides a door lock control device, fig. 7 shows a block diagram of the door lock control device according to an embodiment of the present application, and referring to fig. 7, the door lock control device 100 includes: an acquisition module 110 and a control module 120.
An obtaining module 110, configured to obtain a door lock control signal corresponding to a current time as a first door lock control signal, and obtain a plurality of door lock control signals within a preset time interval before the current time as a second door lock control signal;
and a control module 120, configured to control the door lock through the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
Optionally, the door lock control signal includes an unlocking control signal and a locking control signal, and the obtaining module 110 includes: an unlocking control signal acquisition submodule and a locking control signal acquisition submodule.
The unlocking control signal acquisition submodule is used for acquiring an unlocking control signal corresponding to the current moment as a first unlocking control signal and acquiring a plurality of unlocking control signals within a first preset time interval before the current moment as a second unlocking control signal; or
And the locking control signal acquisition submodule is used for acquiring the locking control signal corresponding to the current moment as a first locking control signal and acquiring a plurality of locking control signals in a second preset time interval before the current moment as a second locking control signal, wherein the first preset time interval is smaller than the second preset time interval.
Optionally, the control module 120 comprises: an unlock control submodule or a lock control submodule.
The unlocking control submodule is used for controlling the door lock to be unlocked through the unlocking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal; or the locking control submodule is used for controlling the door lock to be locked through the locking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal.
Optionally, the door lock control device 100 further includes: the device comprises a door lock state acquisition module, an unlocking probability acquisition module and an unlocking state determination module.
The system comprises a door lock state acquisition module, a data processing module and a data processing module, wherein the door lock state acquisition module is used for acquiring a plurality of door lock states corresponding to a preset time period, and the door lock states comprise an unlocking state and a locking state;
the unlocking probability acquisition module is used for calculating the probability of the unlocking state in the plurality of door lock states to obtain the unlocking probability;
and the unlocking state determining module is used for determining that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocking state when the unlocking probability is greater than the preset probability.
Optionally, the door lock state acquiring module includes: and a door lock state acquisition submodule.
And the door lock state acquisition submodule is used for acquiring a plurality of signal intensities corresponding to the preset time period and acquiring a plurality of door lock states corresponding to the signal intensities through a preset algorithm.
Optionally, the control module 120 comprises: the first target door lock state acquisition submodule and the second target door lock state acquisition submodule.
The first target door lock state acquisition sub-module is used for acquiring the current door lock state when the first door lock control signal is the same as the second door lock control signal, and acquiring the target door lock state indicated by the first door lock control signal corresponding to the current moment;
and the second target door lock state acquisition submodule is used for controlling the door lock to be switched from the current door lock state to the target door lock state through the first door lock control signal corresponding to the current moment when the current door lock state is different from the target door lock state.
Optionally, the door lock control device 100 further includes: the device comprises a first signal strength acquisition module, a second signal strength acquisition module, a signal strength difference acquisition module and a door lock control module.
The first signal intensity acquisition module is used for acquiring the signal intensity of the first door lock control signal as a first signal intensity when the first door lock control signal is different from the second door lock control signal;
the second signal strength acquisition module is used for acquiring the time of the last door lock state switching at the current time as a historical time, and acquiring the signal strength of a door lock control signal corresponding to the historical time as a second signal strength;
a signal strength difference obtaining module, configured to calculate a signal strength difference between the first signal strength and the second signal strength;
and the door lock control module is used for controlling the door lock through the first door lock control signal when the signal intensity difference is greater than a preset intensity difference.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described devices and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules 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.
Fig. 8 is a block diagram of an electronic device for executing a door lock control method according to an embodiment of the present application, and please refer to fig. 8, which shows a structural block diagram of a vehicle 200 provided in an embodiment of the present application. The vehicle 200 may be an electronic device capable of running an application, such as a smart phone, a tablet computer, and an electronic book. The vehicle 200 in the present application may include one or more of the following components: a processor 210, a memory 220, and one or more applications, wherein the one or more applications may be stored in the memory 220 and configured to be executed by the one or more processors 210, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 210 may include one or more processing cores, among other things. The processor 210 interfaces with various components throughout the vehicle 200 using various interfaces and lines to perform various functions of the vehicle 200 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 220 and invoking data stored in the memory 220. Alternatively, the processor 210 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 210 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the components to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 210, but may be implemented by a communication chip.
The Memory 220 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 220 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The stored data area may also store data created by the vehicle 200 in use (such as historical profiles) and the like.
Fig. 9 shows a storage unit for storing or carrying program codes for implementing a door lock control method according to an embodiment of the present application, please refer to fig. 9, which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
In summary, the present application provides a door lock control method, device, vehicle, and storage medium, where a door lock control signal corresponding to a current time is obtained as a first door lock control signal, and a plurality of door lock control signals at a preset time interval (i.e., between a historical time and the current time) before the current time are obtained as a second door lock control signal, when the first door lock control signal is the same as the second door lock control signal, the door lock is controlled by the first door lock control signal, the door lock control signal for controlling the door lock between the historical time and the current time is stable, and then the door lock is controlled by the door lock control signal, so that accurate control of a vehicle door state is ensured, and misoperation is prevented.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. A door lock control method, characterized in that the method comprises:
acquiring a door lock control signal corresponding to the current moment as a first door lock control signal, and acquiring a plurality of door lock control signals within a preset time interval before the current moment as second door lock control signals;
when the first door lock control signal is the same as the second door lock control signal, acquiring a current door lock state and acquiring a target door lock state indicated by the first door lock control signal corresponding to the current moment;
and when the current door lock state is different from the target door lock state, controlling the door lock to be switched from the current door lock state to the target door lock state through the first door lock control signal corresponding to the current moment.
2. The method according to claim 1, wherein the door lock control signals comprise an unlocking control signal and a locking control signal, and the acquiring a door lock control signal corresponding to a current time as a first door lock control signal and acquiring a plurality of door lock control signals within a preset time interval before the current time as a second door lock control signal comprises:
acquiring an unlocking control signal corresponding to the current moment as a first unlocking control signal, and acquiring a plurality of unlocking control signals within a first preset time interval before the current moment as second unlocking control signals; or
And acquiring the locking control signal corresponding to the current moment as a first locking control signal, and acquiring a plurality of locking control signals in a second preset time interval before the current moment as a second locking control signal, wherein the first preset time interval is smaller than the second preset time interval.
3. The method of claim 1, wherein said controlling the door lock by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal comprises:
when the first door lock control signal is the same as the second door lock control signal, controlling the door lock to be unlocked through the unlocking state indicated by the first door lock control signal; or
And when the first door lock control signal is the same as the second door lock control signal, controlling the door lock to be locked through the locking state indicated by the first door lock control signal.
4. The method according to claim 3, wherein before controlling the door lock to be unlocked through the unlocking state indicated by the first door lock control signal when the first door lock control signal is the same as the second door lock control signal, further comprising:
acquiring a plurality of door lock states corresponding to a preset time period, wherein the door lock states comprise an unlocking state and a locking state;
calculating the probability of the unlocking state in the plurality of door lock states to obtain the unlocking probability;
and when the unlocking probability is greater than the preset probability, determining that the door lock state indicated by the first door lock control signal corresponding to the current moment is the unlocking state.
5. The method according to claim 4, wherein the obtaining of the plurality of door lock states corresponding to the preset time period comprises:
and acquiring a plurality of signal intensities corresponding to the preset time period, and acquiring a plurality of door lock states corresponding to the signal intensities through a preset algorithm.
6. The method of claim 1, further comprising:
when the first door lock control signal is different from the second door lock control signal, acquiring the signal intensity of the first door lock control signal as a first signal intensity;
acquiring the time of the last door lock state switching at the current time as a historical time, and acquiring the signal intensity of a door lock control signal corresponding to the historical time as a second signal intensity;
calculating a signal strength difference between the first signal strength and the second signal strength;
and when the signal intensity difference is greater than a preset intensity difference, controlling the door lock through the first door lock control signal.
7. A door lock control apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a door lock control signal corresponding to the current moment as a first door lock control signal and acquiring a plurality of door lock control signals within a preset time interval before the current moment as second door lock control signals;
the control module is used for acquiring the current door lock state and acquiring the target door lock state indicated by the first door lock control signal corresponding to the current moment when the first door lock control signal is the same as the second door lock control signal; and when the current door lock state is different from the target door lock state, controlling the door lock to be switched from the current door lock state to the target door lock state through the first door lock control signal corresponding to the current moment.
8. An automobile, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-6.
9. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 6.
CN202110373020.3A 2021-04-07 2021-04-07 Door lock control method and device, automobile and storage medium Active CN113129484B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110373020.3A CN113129484B (en) 2021-04-07 2021-04-07 Door lock control method and device, automobile and storage medium
PCT/CN2021/111185 WO2022213522A1 (en) 2021-04-07 2021-08-06 Door lock control method and device, automobile, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110373020.3A CN113129484B (en) 2021-04-07 2021-04-07 Door lock control method and device, automobile and storage medium

Publications (2)

Publication Number Publication Date
CN113129484A CN113129484A (en) 2021-07-16
CN113129484B true CN113129484B (en) 2022-12-13

Family

ID=76775254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110373020.3A Active CN113129484B (en) 2021-04-07 2021-04-07 Door lock control method and device, automobile and storage medium

Country Status (2)

Country Link
CN (1) CN113129484B (en)
WO (1) WO2022213522A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113129484B (en) * 2021-04-07 2022-12-13 广州小鹏汽车科技有限公司 Door lock control method and device, automobile and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006266028A (en) * 2005-03-25 2006-10-05 Aisin Seiki Co Ltd Door lock device for vehicle
CN105909116A (en) * 2016-04-28 2016-08-31 百度在线网络技术(北京)有限公司 Vehicle door control method, device and system
CN207337509U (en) * 2017-10-14 2018-05-08 浙江鑫飞智能工程有限公司 A kind of multifunctional intellectual access control system
CN109448171A (en) * 2018-09-27 2019-03-08 深圳市迈悍德实业有限公司 A kind of method and smart lock of unlocking
CN110242117A (en) * 2018-03-09 2019-09-17 株式会社东芝 Door lock control system, the method executed in door lock control system and door lock assembly
CN110497882A (en) * 2018-05-16 2019-11-26 (株)瑞延电子 The device and method that car door for controlling automobile unlocks

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011231567A (en) * 2010-04-30 2011-11-17 Tokai Rika Co Ltd Electronic key system
CN102568148B (en) * 2010-12-31 2014-02-05 淮南矿业(集团)有限责任公司 Early warning method and early warning system
WO2015103206A2 (en) * 2013-12-31 2015-07-09 Huf North American Automotive Parts Mfg. Corp. Bluetooth verification for vehicle access systems
US11383676B2 (en) * 2018-05-31 2022-07-12 Shanghai Sensetime Intelligent Technology Co., Ltd Vehicles, vehicle door unlocking control methods and apparatuses, and vehicle door unlocking systems
CN111770501A (en) * 2020-06-30 2020-10-13 北京四海万联科技有限公司 Bluetooth digital key positioning system and method for preventing relay attack
CN113129484B (en) * 2021-04-07 2022-12-13 广州小鹏汽车科技有限公司 Door lock control method and device, automobile and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006266028A (en) * 2005-03-25 2006-10-05 Aisin Seiki Co Ltd Door lock device for vehicle
CN105909116A (en) * 2016-04-28 2016-08-31 百度在线网络技术(北京)有限公司 Vehicle door control method, device and system
CN207337509U (en) * 2017-10-14 2018-05-08 浙江鑫飞智能工程有限公司 A kind of multifunctional intellectual access control system
CN110242117A (en) * 2018-03-09 2019-09-17 株式会社东芝 Door lock control system, the method executed in door lock control system and door lock assembly
CN110497882A (en) * 2018-05-16 2019-11-26 (株)瑞延电子 The device and method that car door for controlling automobile unlocks
CN109448171A (en) * 2018-09-27 2019-03-08 深圳市迈悍德实业有限公司 A kind of method and smart lock of unlocking

Also Published As

Publication number Publication date
CN113129484A (en) 2021-07-16
WO2022213522A1 (en) 2022-10-13

Similar Documents

Publication Publication Date Title
CN107277657B (en) Earphone retrieving method and device and earphone
CN108712561B (en) Authority management method, device, mobile terminal and storage medium
KR20150027329A (en) Terminal including fingerprint reader and operating method of the terminal
CN107908939B (en) Terminal alarm method and device and mobile terminal
CN107025002B (en) Terminal application control method and device and terminal
CN108362310B (en) Method and device for determining geomagnetic accuracy, storage medium and terminal
CN113129484B (en) Door lock control method and device, automobile and storage medium
CN108737638B (en) Application control method and device, mobile terminal and computer readable medium
CN107246881B (en) Navigation reminding method, device and terminal
CN110097884B (en) Voice interaction method and device
CN110647803A (en) Gesture recognition method, system and storage medium
KR20180023330A (en) Method for recognizing location and electronic device implementing the same
CN110096320B (en) Authentication window display method and device
CN111427417B (en) Time acquisition method and device and electronic equipment
CN112193068A (en) Vehicle speed display method and device, vehicle and computer storage medium
CN110401773B (en) Screen state control method and related device
CN108769366B (en) Authority management method, device, mobile terminal and storage medium
CN113060095A (en) Vehicle locking state detection method and device and electronic equipment
CN112884948A (en) Vehicle locking method, system, storage medium and vehicle-mounted terminal
CN112087706A (en) Position processing method and related equipment
CN107930126B (en) Game reservation data processing method and device and mobile terminal
CN108702410B (en) Contextual model control method and mobile terminal
CN115891908A (en) Vehicle, notification system and method, non-transitory computer-readable storage medium
CN113459992B (en) Vehicle control method, and storage medium and electronic device for executing the method
CN117459889A (en) Mobile terminal positioning method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant