CN115613907A - Door lock control method, door lock control system, electronic device, and storage medium - Google Patents

Door lock control method, door lock control system, electronic device, and storage medium Download PDF

Info

Publication number
CN115613907A
CN115613907A CN202211240122.9A CN202211240122A CN115613907A CN 115613907 A CN115613907 A CN 115613907A CN 202211240122 A CN202211240122 A CN 202211240122A CN 115613907 A CN115613907 A CN 115613907A
Authority
CN
China
Prior art keywords
signal
door lock
duration
real
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211240122.9A
Other languages
Chinese (zh)
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.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor 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 Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202211240122.9A priority Critical patent/CN115613907A/en
Publication of CN115613907A publication Critical patent/CN115613907A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B49/00Electric permutation locks; Circuits therefor ; Mechanical aspects of electronic locks; Mechanical keys therefor
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B51/00Operating or controlling locks or other fastening devices by other non-mechanical means
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B81/00Power-actuated vehicle locks
    • E05B81/54Electrical circuits
    • E05B81/64Monitoring or sensing, e.g. by using switches or sensors
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B85/00Details of vehicle locks not provided for in groups E05B77/00 - E05B83/00
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application discloses a door lock control method, a door lock control system, electronic equipment and a computer storage medium, wherein the door lock control method comprises the following steps: detecting a Bluetooth signal of target electronic equipment, wherein the target electronic equipment is electronic equipment matched with a door lock; determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet preset state switching conditions, wherein the state switching conditions are determined according to the current state of the door lock; when the real-time signal intensity and the signal duration of the Bluetooth signal meet the state switching condition, the current state of the door lock is switched. The method can avoid frequent locking and unlocking of the door lock and improve the stability of the door lock control method.

Description

Door lock control method, door lock control system, electronic device, and storage medium
Technical Field
The present application belongs to the technical field of device control, and in particular, to a door lock control method, a door lock control system, an electronic device, and a computer-readable storage medium.
Background
Along with the promotion of electronic technology, the door lock control technology has also had a breakthrough, from originally needing to realize the control of lock through the entity key, develop to can just realize the control to the lock through the bluetooth terminal.
Taking the door lock control of a vehicle as an example, the current door lock control process is briefly described as follows: firstly, calibrating an unlocking area and a locking area of a vehicle; then, whether the user enters an unlocking area or a locking area is determined by detecting a Bluetooth signal of the authenticated electronic equipment carried by the user; when the user is determined to enter the unlocking area or the locking area, the vehicle automatically executes corresponding unlocking or locking operation. Through the process, the user does not need to carry the car key, and the trouble of looking for the car key is saved.
However, the bluetooth signal used for communication between the electronic device and the vehicle may generate signal fluctuations, which may cause errors in the positioning of the electronic device by the vehicle. Therefore, when a user is between the unlock region and the lock region, the vehicle may be frequently unlocked and locked due to a positioning error. In addition, when the user moves around the vehicle, the lock is frequently opened and closed by changing the position of the user. In summary, the current door lock control method does not perform well in terms of stability.
Disclosure of Invention
The application provides a door lock control method, a door lock control system, an electronic device and a computer readable storage medium, which can improve the robustness of the door lock control method.
In a first aspect, the present application provides a door lock control method, including:
detecting a Bluetooth signal of target electronic equipment, wherein the target electronic equipment is electronic equipment matched with a door lock;
determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet preset state switching conditions, wherein the state switching conditions are determined according to the current state of the door lock;
and when the real-time signal intensity and the signal duration of the Bluetooth signal meet the state switching condition, switching the current state of the door lock.
In a second aspect, the application provides a door lock control system, which includes a bluetooth detection module, a bluetooth judgment module, a controller and a door lock;
the Bluetooth detection module is used for detecting a Bluetooth signal of a target electronic device, wherein the target electronic device is an electronic device matched with the door lock;
the Bluetooth judging module is used for determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet preset state switching conditions, and the state switching conditions are determined according to the current state of the door lock;
and the controller is used for controlling the door lock to switch the current state when the real-time signal intensity and the signal duration of the Bluetooth signal are determined to meet the state switching condition.
In a third aspect, the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method of the first aspect as described above.
Compared with the prior art, the beneficial effect that this application exists is: for the electronic device which is paired with the door lock, namely the target electronic device, the Bluetooth signal can be detected, and whether to switch the current state of the door lock can be determined according to the relevant data of the Bluetooth signal. In order to determine whether to switch the current state of the door lock, in addition to determining whether the real-time signal intensity of the bluetooth signal meets the state switching condition, whether the signal duration of the bluetooth signal meets the state switching condition can be determined; and switching the current state of the door lock under the condition that the real-time signal length and the signal duration both meet the state switching condition. The state switching conditions are preset, and the corresponding state switching conditions are different when the door lock is in different states. According to the door lock control method, the requirement for the switching state of the door lock can be improved by introducing the judgment on the duration of the signal, so that the door lock cannot be frequently unlocked and locked in a short time, and the stability of the door lock control method is improved.
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 embodiments or the prior art descriptions will be briefly described 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 without creative efforts.
Fig. 1 is a schematic flow chart of a door lock control method provided in an embodiment of the present application;
fig. 2 is a block diagram of a door lock control system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The door lock control method provided by the embodiment of the application can be applied to intelligent equipment integrated with a door lock, such as an intelligent vehicle; alternatively, the present invention may be applied to electronic devices capable of controlling a door lock, such as a mobile phone, a tablet computer, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiments of the present invention do not limit specific types of the electronic devices.
The existing door lock control method can cause the door lock to be frequently unlocked and locked due to the fluctuation of Bluetooth signals or the back-and-forth movement of a user in a lock opening and locking area, and has poor performance on stability. In order to solve the problem, the application provides a door lock control method, which can prevent a door lock from being opened and closed frequently and improve the stability of the door lock control method.
The door lock control method proposed in the present application is explained below by way of specific embodiments. By way of example and not limitation, the method may be applied to any of the above intelligent devices or electronic devices, and for ease of understanding, a vehicle will be subsequently taken as an execution subject of the various embodiments described below.
Fig. 1 shows a schematic flowchart of a door lock control method provided by the present application, which includes:
step 110, detecting a bluetooth signal of the target electronic device.
The target electronic device refers to an electronic device with a bluetooth module, such as a mobile phone, a smart wearable device, or a tablet computer. It can complete the pairing with the door lock in advance, and establish the bluetooth connection. The vehicle can respond to the control of the target electronic equipment in time, realize the switching of the door lock state, and can detect the Bluetooth signal of the target electronic equipment in real time.
In some embodiments, for security of door lock control, in the process of pairing and connecting the electronic device and the door lock, the vehicle may perform identity authentication on the electronic device first, and perform connection operation after the electronic device passes the identity authentication, so that the electronic device that completes pairing and connection may be regarded as the target electronic device. The step of introducing identity authentication is adopted in the pairing process, so that electronic equipment without door lock control authority can be prevented from being connected with the Bluetooth of the door lock, and the safety of door lock control is improved.
And step 120, determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet preset state switching conditions.
After the Bluetooth signal is detected, in order to avoid frequent unlocking of the door lock, the vehicle can acquire the signal duration time in addition to the real-time signal intensity of the Bluetooth signal. By introducing the signal duration as one of the factors influencing the satisfaction of the state switching conditions, it can be ensured that the door lock is not frequently unlocked in a short time. Specifically, after acquiring the real-time signal intensity and the signal duration of the bluetooth signal, the vehicle may compare the real-time signal intensity and the signal duration with a preset state switching condition to determine whether the state switching condition is satisfied. The state switching condition can be determined according to the current state of the door lock, that is, the current state of the door lock is different, and the corresponding state switching condition is different.
In the case that it is determined that both the real-time signal strength and the signal duration of the bluetooth signal satisfy the state switching condition, the following step 130 may be continuously performed; if the real-time signal strength and the signal duration do not both satisfy the status switching condition, the step 120 and the following steps are executed.
And step 130, switching the current state of the door lock.
When the real-time signal intensity and the signal duration of the Bluetooth signal meet the state switching condition, the vehicle can switch the current state of the door lock to the target state. For example only, assuming that the current state of the door lock is the locked state, the target state is the unlocked state; on the contrary, if the current state of the door lock is the unlocked state, the target state is the locked state.
In some embodiments, the state-switch condition may include two sub-conditions, a signal condition and a duration condition, respectively. Based on this, the step 120 specifically includes:
and step 121, determining whether the real-time signal strength meets the signal condition.
And step 122, when the real-time signal strength meets the signal condition, determining whether the signal duration meets the duration condition.
And step 123, when the signal duration meets the duration condition, determining that the real-time signal intensity and the signal duration meet the state switching condition.
In the process of judging whether the Bluetooth signal meets the state switching condition, the vehicle can firstly judge whether the real-time signal strength meets the signal condition; when it is determined that the real-time signal strength satisfies the signal strength threshold, the current real-time signal may be regarded as the state switching signal. In order to avoid frequent locking and unlocking of the door lock, further limitation may be set for the state switching, for example, it may be determined whether the signal duration of the state switching signal satisfies the duration condition. It can be understood that when the duration of the signal satisfies the duration condition, it indicates that the possibility of triggering the state switching of the door lock due to the instability factor is not high, and at this time, it may be determined that the real-time signal strength and the duration of the signal satisfy the state switching condition. Wherein, the value range of the intensity threshold value can be-60 dbm to-55 dbm, and the unstable factors can comprise the fluctuation of the Bluetooth signal or the user walking around the vehicle.
In some embodiments, the signal duration may be determined by:
and A1, when the real-time signal strength meets the signal condition, starting to record the signal duration.
And step A2, if the real-time signal strength does not meet the signal condition, stopping recording the signal duration, and resetting the recorded signal duration to an initial value.
Under the condition that the signal duration is an initial value, if the real-time signal intensity of the Bluetooth signal meets the corresponding signal condition, the vehicle can start to record the signal duration. In the process of recording the signal duration, if the real-time signal strength does not meet the signal condition, the vehicle stops recording the signal duration, and initializes the signal duration to reset the recorded value to the initial value.
For example only, assume that the duration initial value is 0, at T 1 Determining that the real-time signal strength meets the signal condition at the moment, and starting to record the signal duration; but if at T 2 At the moment, the signal strength is determined not to meet the signal condition, the recording of the signal duration is stopped at the moment, and the recorded signal duration T is used 2 -T 1 Reset to 0.
In some embodiments, a timer may be used to record the duration of the signal, where A1 specifically includes: when the real-time signal strength meets the signal condition, sending a timing instruction to a timer to trigger the timer to start recording the signal duration;
correspondingly, the step A2 specifically includes: and when the real-time signal strength does not meet the signal condition, sending a reset instruction to the timer to trigger the timer to stop recording the signal duration, and resetting the recorded signal duration to an initial value.
The vehicle-integrated timer may operate in response to different commands sent by the vehicle: when the vehicle determines that the real-time signal strength meets the signal condition, a timing instruction is sent to the timer, and the timer can start to record the signal duration after receiving the timing instruction; in the process of recording by the timer, if the vehicle determines that the real-time signal strength does not meet the signal condition, a reset instruction is sent to the timer, and after the timer receives the reset instruction, the recording is stopped firstly, and then the duration of the recorded signal is reset to 0.
In some embodiments, as known, the current state of the door lock may include a locked state and an unlocked state, and in the case that the current state of the door lock is the locked state, the signal condition may be that the real-time signal strength is greater than a preset signal strength threshold, and the duration condition is: the duration of the signal reaches a preset first time threshold, and the value of the first time threshold may be any one of values from 8s to 15s, for example, 10s, 12s, or 15s; when the current state of the door lock is the unlocking state, the signal conditions are as follows: the real-time signal intensity is not greater than the signal intensity threshold, and the duration condition is as follows: the duration of the signal reaches a preset second duration threshold, and the value of the second duration threshold may be any value within 3s to 8s, for example, 3s, 5s, or 7s.
It can be understood that if the signal strength does not meet the signal condition all the time until the signal duration reaches the corresponding duration threshold, the vehicle can determine that the signal duration meets the duration condition, and can execute the subsequent control operation related to the door lock.
For the sake of understanding, the unlocking process and the locking process of the door lock will be described below with reference to the above two different state switching conditions.
An unlocking process: when the door lock of the vehicle is in a locked state, if the vehicle detects that the real-time signal intensity is larger than the signal intensity threshold value, it indicates that the user is close to the vehicle and enters an unlocking area calibrated in advance by the vehicle, and the current Bluetooth signal can be considered as an unlocking Bluetooth signal. At this time, although the vehicle detects the unlock bluetooth signal, the unlock bluetooth signal may be an error signal, for example, when the door lock is just switched to the locked state, the user is still near the vehicle, and the vehicle detects the unlock bluetooth signal due to unstable factors such as fluctuation of the bluetooth signal or walking of the user.
To discern whether the unlock bluetooth signal is an error signal, the vehicle may further determine whether a signal duration of the unlock bluetooth signal satisfies a duration condition. If the signal duration reaches the first time threshold, the unlocking Bluetooth signal is low in possibility of being an error signal, and the current Bluetooth signal can be considered to meet the state switching condition; however, if the duration of the signal does not reach the first duration threshold, it indicates that the possibility that the unlock bluetooth signal is an error signal is high, and it may be considered that the current bluetooth signal does not satisfy the state switching condition.
Locking process: when the door lock of the vehicle is in an unlocking state, if the vehicle detects that the real-time signal intensity is not greater than the signal intensity threshold value, the fact that the user is far away from the vehicle and does not enter an unlocking area is indicated, and the current Bluetooth signal can be considered as a locking Bluetooth signal. At this time, although the vehicle detects the locked bluetooth signal, the locked bluetooth signal may be an error signal, for example, the vehicle detects the locked bluetooth signal due to the above-mentioned unstable factor in the state where the door lock is just switched to the unlocked state.
To discern whether the latched bluetooth signal is an error signal, the vehicle may further determine whether the signal duration of the unlatched bluetooth signal satisfies the duration condition. If the signal duration reaches the second duration threshold, the unlocking Bluetooth signal is low in possibility of being an error signal, and the current Bluetooth signal can be considered to meet the state switching condition; however, if the duration of the signal does not reach the second duration threshold, it indicates that the possibility that the locked bluetooth signal is an error signal is high, and it can be considered that the current bluetooth signal does not satisfy the state switching condition.
As can be seen from the foregoing, only one signal strength threshold is set in the embodiment of the present application; that is, the other regions except the unlock region belong to the lock region; that is, the embodiment of the application can reduce the frequent unlocking and locking of the vehicle door lock, and can only calibrate the unlocking area without calibrating the locking area when the vehicle is calibrated, so that the workload of vehicle calibration can be reduced, and the cost of vehicle calibration can be reduced.
In some embodiments, normally, the user approaches the vehicle at normal speed, and the real-time signal strength of the bluetooth signal does not change much over a period of time; however, if the user moves to the vicinity of the vehicle quickly due to the driving time and wants to unlock the door lock urgently, the real-time signal intensity of the bluetooth signal changes greatly in a period of time. In the above embodiment, in order to avoid frequent opening and closing of the lock, the first time threshold may be set to a large value, which may result in that when the user approaches the vehicle quickly, the vehicle may not meet the requirement that the user wants to unlock the vehicle quickly in a short period of time. In order to solve this problem, before the step 120, the method further includes:
and B1, calculating the change rate of the real-time signal intensity in a first preset time period.
And B2, if the change rate is larger than a preset rate threshold, reducing the first time length threshold.
From the above, when the current state of the door lock is the locked state, if the user catches up with the time, the rate of change of the real-time signal intensity is relatively large in a short time. Therefore, the vehicle can start to calculate the change rate of the real-time signal intensity in the first preset time period as long as the vehicle detects the Bluetooth signal, for example, the Bluetooth signal with the real-time signal intensity of-95 dbm to-86 dbm is detected; the duration of the first preset time period may be short, for example, within 1 to 3 s. Then comparing the change rate with a preset rate threshold value to determine that the possibility of the user catching up in time is not high; if the change rate is greater than the rate threshold, then the probability that the user will catch up in time is high, and at this time, the first duration threshold may be decreased; for example, the first duration threshold is reduced from 10s to 3s, thereby quickly unlocking the user.
In some embodiments, in an actual application scenario, the user may turn a circle, which results in a large change rate in the first preset time period, but in reality, the user does not catch time, and if the first time threshold is reduced accordingly, the risk that the door lock is frequently unlocked may be increased.
Based on the method, the vehicle can preset a sampling period, calculate the change rate of the real-time signal intensity of the Bluetooth signals in a plurality of specified sampling periods, and compare the change rate in each period with a rate threshold value; then determining the number of sampling periods with the change rate larger than a rate threshold value, and assuming the number as a target number; and finally, calculating the ratio of the target number to the designated number, comparing the ratio with a preset ratio threshold, and if the ratio is greater than the ratio threshold, determining the current user driving time.
For example only, assume that the specified number is 3, the duration of one sampling period is 2s, and the ratio threshold is 0.5. The vehicle determines that the change rate of two sampling periods is greater than a rate threshold value through sampling calculation, then the target number is 2, and because 2/3 is greater than 0.5, the user can be determined to walk faster at the moment, the possibility of catching up time is higher, and the first time length threshold value can be reduced.
In some embodiments, in order to further avoid frequent unlocking of the door lock, after switching the current state of the door lock, the method further comprises:
and C1, shielding the switching operation of the door lock in a second preset time period.
And C2, after the second preset time period, restoring the switching operation of the door lock.
After the current state of the door lock is switched to the target state, in order to further avoid the frequent locking and unlocking of the door lock, the vehicle can reserve a second preset time period, and shield the switching operation of the door lock in the second preset time period; and after a second preset time period, the switching operation of the door lock is recovered. Wherein, the switching operation of the door lock comprises the corresponding operation of the steps 120 to 130; the value of the second preset time period may be any value within 5 to 10s, for example, 6s.
In some embodiments, shielding the switching operation of the door lock may be accomplished by ceasing to detect the bluetooth signal. Namely, the vehicle stops detecting the Bluetooth signal in a second preset time period; and after a second preset time period, continuing to detect the Bluetooth signal.
In some embodiments, masking the switching operation of the door lock may also be accomplished by detecting only the bluetooth signal, but not triggering the condition comparison operation. In other words, in the second preset time period, although the vehicle continuously detects the bluetooth signal, even if the bluetooth signal meeting the signal condition is detected, the subsequent condition comparison operation is not executed; and after a second preset time period, if the Bluetooth signal meeting the signal condition is detected, performing subsequent condition comparison operation. Wherein the condition comparison operation is the operation corresponding to the step 120
In some embodiments, the state switching condition for switching the vehicle control door lock from locked to unlocked may also be set in conjunction with the sleep state of the vehicle when the door lock is in the locked state. For example, when the user leaves the vehicle lock, the vehicle does not enter the sleep state, and this indicates that the user has not moved away, and in order to avoid frequent unlocking, the state switching condition may be as described in the above embodiment; however, if the vehicle enters the dormant state after the user leaves the vehicle lock, which indicates that the time for the user to leave the vehicle is long, after the user returns to the vicinity of the vehicle again, in order to reduce the waiting time for the user to unlock, the state switching condition may only include the above signal condition. That is, the vehicle can confirm that the state switching condition is satisfied after detecting the unblock bluetooth signal, switches the lock from the shutting state to the unblock state.
It can be understood that when the vehicle enters the sleep state, the unlocking is more time-saving because the state switching condition does not include the time length condition; but since the vehicle unlocks immediately upon detecting the unlock bluetooth signal, in this case, if the signal strength threshold is set too low, there may be a safety hazard. Therefore, in this scenario, another signal strength threshold may be set, where the another signal strength threshold may be determined according to the safety distance between the person and the vehicle, and the another signal strength threshold is greater than the signal strength threshold.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
For ease of understanding, the door lock control method proposed in the present application will be described below in a practical application scenario. The door lock control method specifically comprises the following steps:
in the practical application scenario, it is assumed that the target electronic device is a mobile phone, the current state of the door lock is a locked state, the signal strength threshold is-58 dbm, the first duration threshold is 10s, the second duration threshold is 5s, the first preset time period is 2s, and the second preset time period is 7s.
After the vehicle detects the Bluetooth signal of the mobile phone, determining the change rate of the real-time signal intensity of the Bluetooth signal within 2 s; assume that the initially detected bluetooth signal is RSSI 1 dbm, after 2s, the detected Bluetooth signal is RSSI 2 dbm, calculated, determines a rate of change of the Bluetooth signal of 0.5 (RSSI) within 2s 2 –RSSI 1 ) dbm/s, assuming that the rate of change is less than the rate threshold compared to the rate threshold, i.e., the user does not catch time, it is possible to determine whether to switch the door lock from the locked state according to the preset state switching conditionAnd switching to the unlocking state. But if the time passes 2s, the detected Bluetooth signal is RSSI 3 dbm, calculate the rate of change of the Bluetooth signal by 2s to 0.5 (RSSI) 3 –RSSI 1 ) dbm/s, assuming a rate of change greater than a rate threshold, a user catch-up time may be determined, and the first time threshold may be reduced, for example to 5s, in order to unlock the user quickly.
Assuming that the user is not away from time and the vehicle detects that the real-time signal strength of the bluetooth signal is-55 dbm, since the real-time signal strength at this time is greater than-58 dbm, it can be determined that the bluetooth signal at this time is an unlocked bluetooth signal. However, in order to avoid frequent opening and closing of the door lock, the vehicle may further determine whether the duration of the unlock bluetooth signal reaches 10s. In order to determine whether the signal duration reaches 10s, after the real-time signal strength of the bluetooth signal is detected to be-55 dbm, a timing instruction can be sent to the timer, and after the timer receives the timing instruction, the timer starts to record the signal duration from an initial value of 0s and feeds back currently recorded duration data in real time.
Assuming that the timer records 10s and that the real-time signal strength of the bluetooth signal detected by the vehicle is greater than-58 dbm within the 10s, it can be determined that the real-time signal strength and the signal duration satisfy the state switching condition. Thus, the door lock can be switched from the locked state to the unlocked state.
However, if the timer records 6s, the vehicle detects a bluetooth signal with a real-time signal strength of-60 dbm, and since the real-time signal strength is less than-58 dbm, the vehicle sends a reset instruction to the timer, and after receiving the reset instruction, the timer stops timing and resets the recorded 6s to 0s. If the vehicle detects that the real-time signal intensity of the bluetooth signal is greater than-58 dbm again, the step of sending the timing command in the locked state and the subsequent steps are repeatedly executed, which is not described herein again.
After the door lock is switched from the locking state to the unlocking state, in order to further avoid the door lock from being opened and closed frequently, the detection of the Bluetooth signal can be stopped within 7s, and the detection of the Bluetooth signal can be continued after 7s.
The current state of the door lock is an unlocked state, and when the vehicle detects a Bluetooth signal with the real-time signal intensity of-58 dbm, the Bluetooth signal can be determined as a locked Bluetooth signal; in order to avoid frequent opening and closing of the lock, the vehicle may further determine whether the duration of the signal of the locked bluetooth signal reaches 5s. In order to determine whether the signal duration reaches 5s, after the real-time signal strength of the bluetooth signal is detected to be-58 dbm, a timing instruction can be sent to the timer, and after the timer receives the timing instruction, the timer starts to record the signal duration from an initial value of 0s and feeds back currently recorded duration data in real time.
Assuming that the timer records 5s and the real-time signal strength of the Bluetooth signal detected by the vehicle is not greater than-58 dbm in the 5s, the real-time signal strength and the signal duration can be determined to meet the state switching condition, and the door lock is switched from the unlocking state to the locking state.
However, if the timer records 3s, the vehicle detects a bluetooth signal with a real-time signal strength of-55 dbm, and the vehicle sends a reset command to the timer because the real-time signal strength is greater than-58 dbm. The timer stops counting time after receiving the reset command, and resets the recorded 3s to 0s. If the vehicle detects that the real-time signal intensity of the Bluetooth signal is not greater than-58 dbm again, the step of sending the timing command and the subsequent steps are repeatedly executed, and the detailed description is omitted here.
After the door lock is switched from the unlocking state to the locking state, the unlocking judgment process can be returned to be executed so as to determine whether the door lock is unlocked or not. That is, the state switching process, i.e., the unlocking and locking process, is a reciprocating process, and thus the vehicle can determine which state switching process is performed according to the current state of the door lock.
Fig. 2 shows a block diagram of a door lock control system 2 provided in the embodiment of the present application, corresponding to the door lock control method in the above embodiment, and only the relevant parts to the embodiment of the present application are shown for convenience of description.
Referring to fig. 2, the door lock control system 2 includes a bluetooth detection module 21, a bluetooth judgment module 22, a controller 23 and a door lock 24;
the Bluetooth detection module 21 is configured to detect a Bluetooth signal of a target electronic device, where the target electronic device is an electronic device that is paired with a door lock;
the Bluetooth judging module 22 is used for determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet preset state switching conditions, and the state switching conditions are determined according to the current state of the door lock;
and the controller 23 is used for controlling the door lock 24 to switch the current state when the real-time signal intensity and the signal duration of the Bluetooth signal meet the state switching condition.
Optionally, the state switching condition comprises: signal conditions and duration conditions; the bluetooth determination module 22 is specifically configured to: determining whether the real-time signal strength satisfies a signal condition; when the real-time signal strength meets the signal condition, determining whether the signal duration meets the duration condition; and when the signal duration meets the duration condition, determining that the real-time signal intensity and the signal duration meet the state switching condition.
Optionally, the bluetooth determination module 22 may be further configured to: before determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet the preset state switching condition, calculating the change rate of the real-time signal intensity in a first preset time period under the condition that the current state of the door lock is a locking state; and if the change rate is greater than a preset rate threshold value, reducing the first time length threshold value.
Optionally, the bluetooth determination module 22 may be further configured to:
under the condition that the signal duration is an initial value, when the real-time signal strength meets the signal condition, starting to record the signal duration; in the process of recording the signal duration, if the real-time signal strength does not meet the signal condition, the signal duration is stopped being recorded, and the recorded signal duration is reset to an initial value.
Optionally, the bluetooth determining module 22 is specifically configured to: when the real-time signal strength meets the signal condition, sending a timing instruction to a timer to trigger the timer to start recording the signal duration; and when the real-time signal strength does not meet the signal condition, sending a reset instruction to the timer to trigger the timer to stop recording the signal duration, and resetting the recorded signal duration to 0.
Optionally, the bluetooth determination module 22 may be further configured to: after the current state of the door lock is switched, stopping executing the operation of detecting the Bluetooth signal of the target electronic equipment within a second preset time period; and after a second preset time period, resuming the operation of detecting the Bluetooth signal of the target electronic equipment.
It should be noted that, for the information interaction and execution process between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the method embodiment of the present application, and thus reference may be made to the method embodiment section for details, which are not described herein again.
Fig. 3 is a schematic structural diagram of a physical layer of an electronic device according to an embodiment of the present disclosure. As shown in fig. 3, the electronic apparatus 3 of this embodiment includes: at least one processor 30 (only one shown in fig. 3), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, the processor 30 when executing the computer program 32 implementing the steps in any of the above described embodiments of the door lock control method, such as the steps 110-130 shown in fig. 1.
The Processor 30 may be a Central Processing Unit (CPU), and the Processor 30 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may in some embodiments be an internal storage unit of the electronic device 3, such as a hard disk or a memory of the electronic device 3. The memory 31 may also be an external storage device of the electronic device 3 in other embodiments, such as a plug-in hard disk provided on the electronic device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on.
Further, the memory 31 may also include both an internal storage unit of the terminal device 3 and an external storage device. The memory 31 is used for storing an operating device, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the foregoing method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/electronic device, a recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
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 should 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 substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A door lock control method, comprising:
detecting a Bluetooth signal of a target electronic device, wherein the target electronic device is an electronic device matched with a door lock;
determining whether the real-time signal intensity and the signal duration of the Bluetooth signal meet preset state switching conditions, wherein the state switching conditions are determined according to the current state of the door lock;
and when the real-time signal intensity and the signal duration of the Bluetooth signal meet the state switching condition, switching the current state of the door lock.
2. The door lock control method according to claim 1, wherein the state switching condition includes: signal conditions and duration conditions; the determining whether the real-time signal intensity and the signal duration of the bluetooth signal meet preset state switching conditions includes:
determining whether the real-time signal strength satisfies the signal condition;
when the real-time signal strength meets the signal condition, determining whether the signal duration meets the duration condition;
and when the signal duration meets the duration condition, determining that the real-time signal strength and the signal duration meet the state switching condition.
3. The door lock control method according to claim 2, wherein in the case where the current state of the door lock is a lock state, the signal condition is: the real-time signal intensity is greater than a preset signal intensity threshold, and the duration condition is as follows: the signal duration reaches a preset first time threshold; when the current state of the door lock is an unlocked state, the signal conditions are as follows: the real-time signal intensity is not greater than the signal intensity threshold, and the duration condition is as follows: the signal duration reaches a preset second duration threshold.
4. The door lock control method according to claim 3, wherein before the determining whether the real-time signal strength and the signal duration of the Bluetooth signal satisfy the preset state switching condition, the door lock control method further comprises:
under the condition that the current state of the door lock is the locking state, calculating the change rate of the real-time signal intensity in a first preset time period;
and if the change rate is greater than a preset rate threshold, reducing the first time length threshold.
5. The door lock control method according to any one of claims 2 to 4, wherein the signal duration is determined by:
under the condition that the signal duration is an initial value, when the real-time signal strength meets the signal condition, starting to record the signal duration;
and in the process of recording the signal duration, if the real-time signal strength does not meet the signal condition, stopping recording the signal duration, and resetting the recorded signal duration to the initial value.
6. The door lock control method of claim 5, wherein said beginning to record said signal duration when said real-time signal strength satisfies said signal condition comprises:
when the real-time signal strength meets the signal condition, sending a timing instruction to a timer to trigger the timer to start recording the signal duration;
correspondingly, if the real-time signal strength does not satisfy the signal condition, stopping recording the signal duration, and resetting the recorded signal duration to the initial value, includes:
and when the real-time signal strength does not meet the signal condition, sending a reset instruction to the timer to trigger the timer to stop recording the signal duration, and resetting the recorded signal duration to the initial value.
7. The door lock control method according to claim 1, further comprising, after the switching of the current state of the door lock:
shielding the switching operation of the door lock within a second preset time period;
and after the second preset time period, the switching operation of the door lock is recovered.
8. A door lock control system is characterized by comprising a Bluetooth detection module, a Bluetooth judgment module, a controller and a door lock;
the Bluetooth detection module is used for detecting a Bluetooth signal of target electronic equipment, and the target electronic equipment is electronic equipment matched with the door lock;
the Bluetooth judging module is used for determining whether the real-time signal intensity and the signal duration of a Bluetooth signal meet preset state switching conditions, and the state switching conditions are determined according to the current state of the door lock;
and the controller is used for controlling the door lock to switch the current state when the real-time signal intensity and the signal duration of the Bluetooth signal meet the state switching condition.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the door lock control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the door lock control method according to any one of claims 1 to 7.
CN202211240122.9A 2022-10-11 2022-10-11 Door lock control method, door lock control system, electronic device, and storage medium Pending CN115613907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211240122.9A CN115613907A (en) 2022-10-11 2022-10-11 Door lock control method, door lock control system, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211240122.9A CN115613907A (en) 2022-10-11 2022-10-11 Door lock control method, door lock control system, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN115613907A true CN115613907A (en) 2023-01-17

Family

ID=84863111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211240122.9A Pending CN115613907A (en) 2022-10-11 2022-10-11 Door lock control method, door lock control system, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN115613907A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802526A (en) * 2023-02-06 2023-03-14 深圳市微源半导体股份有限公司 Startup and shutdown method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802526A (en) * 2023-02-06 2023-03-14 深圳市微源半导体股份有限公司 Startup and shutdown method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11914693B2 (en) Fingerprint recognition method and apparatus, and touchscreen terminal
CN111835689B (en) Identity authentication method of digital key, terminal device and medium
CN115613907A (en) Door lock control method, door lock control system, electronic device, and storage medium
CN104392157A (en) Method and device for locking screen by using passwords
CN112598821A (en) Intelligent lock and control method applied to intelligent lock
CN104820622A (en) Method and system for shared memory lock management control
CN107526955B (en) Screen-off unlocking method and device
CN106101437A (en) A kind of application defreezing method, device and mobile terminal
CN112593777B (en) Motor control method of intelligent door lock and intelligent door lock
CN115450501B (en) Control method and device of door lock, vehicle and storage medium
US11372961B2 (en) Method and device for assigning application usage permission
CN113989957B (en) Door lock control method for preventing children or pets from going out
CN114187720A (en) Monitoring method, monitoring device, electronic equipment and computer readable medium
CN113163392A (en) Method and device for deleting user identity data file
CN111949963A (en) Terminal device unlocking method, terminal device and computer readable storage medium
CN110162261A (en) A kind of unlocking method, terminal device and computer readable storage medium
CN213690749U (en) Intelligent lock
CN116424260B (en) Steering column lock control method and device, electronic equipment and storage medium
CN110971741A (en) Management method and management device for screen locking password and terminal
CN111880861B (en) Method and device for opening application program in emergency state
CN116612555A (en) Digital key abuse prevention unlocking method and device, intelligent equipment and storage medium
CN108171848A (en) Management-control method, system and the onboard control device of automobile key
CN213039082U (en) Intelligent anti-theft key cabinet
US20240087384A1 (en) Intelligent door locks
CN115476811A (en) Mechanical key unlocking and locking control method, system and device and vehicle

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