WO2023231968A1 - 智能锁的控制方法、智能锁控制系统和智能锁 - Google Patents

智能锁的控制方法、智能锁控制系统和智能锁 Download PDF

Info

Publication number
WO2023231968A1
WO2023231968A1 PCT/CN2023/096849 CN2023096849W WO2023231968A1 WO 2023231968 A1 WO2023231968 A1 WO 2023231968A1 CN 2023096849 W CN2023096849 W CN 2023096849W WO 2023231968 A1 WO2023231968 A1 WO 2023231968A1
Authority
WO
WIPO (PCT)
Prior art keywords
distance
smart lock
threshold
distances
user
Prior art date
Application number
PCT/CN2023/096849
Other languages
English (en)
French (fr)
Inventor
赵磊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023231968A1 publication Critical patent/WO2023231968A1/zh

Links

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

Definitions

  • the present application relates to the technical field of smart locks, and in particular to a control method of a smart lock, a smart lock control system and a smart lock.
  • Smart locks are widely used in fields such as smart homes and smart vehicles. Taking smart door locks in the smart home field as an example, when unlocking the smart lock, users can use password authentication, fingerprint authentication and/or face authentication to unlock the smart lock. Unlock the door from the outside and unlock it from the inside by turning or pushing the door handle. In order to make it more user-friendly, some smart locks also have an induction unlocking function, which can automatically unlock when it detects that the handle inside the door is touched.
  • this application provides a smart lock control method, a smart lock control system and a smart lock to improve the security of the smart lock.
  • an embodiment of the present application provides a control method for a smart lock, the smart lock having a distance sensor and a touch sensor, the method includes:
  • the calibration mode is entered, and the distance sensor is controlled to perform distance detection. After obtaining n first distances, the distance threshold is determined based on the n first distances, where n is greater than 1. integer;
  • the smart lock When it is detected that unlocking conditions are met, the smart lock is controlled to be unlocked, wherein the unlocking conditions include: the touch sensor detects a touch signal, and the second distance detected by the distance sensor is less than the distance threshold.
  • the smart lock when the smart lock performs induction unlocking, in addition to touch authentication, it also performs distance authentication, and unlocks when both authentications pass, which can improve the security of induction unlocking. ; Moreover, in this technical solution, the smart lock can enter the calibration mode when the threshold calibration triggering conditions are met, control the distance sensor to detect distance, calibrate the distance threshold based on the detected distance, and then when performing induction unlocking, based on the calibration
  • the distance threshold is used for distance authentication, which can reduce the impact of the installation environment on distance authentication and further improve the security of induction unlocking.
  • the calibration mode includes: manual calibration mode, and/or automatic calibration mode;
  • the threshold calibration triggering conditions corresponding to the manual calibration mode include: receiving a first instruction, and the first instruction is Input by the user on the smart lock, or sent by the mobile device based on user operations;
  • the threshold calibration trigger conditions corresponding to the automatic calibration mode include: reaching the target time point.
  • the user can trigger the smart lock to enter the manual calibration mode through manual calibration and perform calibration of the distance threshold, thereby improving the user's flexibility;
  • Calibration mode allows the smart lock to automatically enter the automatic calibration mode to calibrate the distance threshold, which can further improve user convenience.
  • the method further includes:
  • a prompt message is issued.
  • the prompt message is used to prompt the user to close the door and keep no one in front of the smart lock in the door.
  • the user can be guided to correctly calibrate the distance threshold, thereby improving the accuracy of the calibration results and the user convenience.
  • the distance sensor is controlled to perform distance detection when a second instruction is received, and the second instruction is when the user Inputted on the smart lock, or sent by the mobile device based on user actions. This can further improve user convenience.
  • the target time point is determined based on the switch lock record within the first time period, and within the first time period, at the target time point every day , the smart lock is in the locked state. This eliminates the need for users to manually determine the target time point, thus improving user convenience.
  • the distance sensor in the manual calibration mode, is controlled to perform distance detection, and after n first distances are obtained, the distance is determined based on the n first distances.
  • Thresholds including:
  • the distance threshold is determined based on the first dispersion and the first average value corresponding to the n first distances.
  • the first dispersion is the dispersion of n first distances
  • the first average is the average of n first distances
  • the dispersion can be standard deviation or variance, etc.
  • a comparison process between each first distance and the target threshold is performed, which can reduce the amount of calculation and improve the accuracy of the smart lock when there is no relatively close obstruction at the position facing the smart lock. Processing speed.
  • the first dispersion when the first dispersion is less than or equal to the dispersion threshold, and the first average is greater than or equal to the average threshold, according to the first The average value determines the distance threshold.
  • the distance threshold is determined based on the average value, which can improve the accuracy of the distance threshold calibration result.
  • the method further includes:
  • the user is prompted that there is a problem with the smart lock.
  • the ranging problem of the distance sensor can be detected, and the user can be notified in time to solve the problem, thereby reducing the unstable and inaccurate distance authentication caused by the ranging problem, thereby further improving the security and reliability of inductive unlocking. sex.
  • the distance sensor in the automatic calibration mode, is controlled to perform distance detection, and after n first distances are obtained, the distance is determined based on the n first distances.
  • Thresholds including:
  • the distance is determined based on the second dispersion and the second average value corresponding to the most recently acquired first distances of the target number. Threshold, the number of targets is equal to n.
  • the distance threshold can be calibrated based on the recent distance data measured in the automatic calibration mode. In this way, the distance data used will be richer in the time dimension, and the detection results will be more reliable.
  • the distance threshold is determined to be the target threshold; if the second average value is less than the target threshold, the distance threshold is determined based on the second average value.
  • the method further includes:
  • the user is prompted that there is a problem with the smart lock, and the door induction unlocking function is turned off.
  • the ranging problem of the distance sensor can be detected, and the user can be notified in time to solve the problem, thereby reducing the unstable and inaccurate distance authentication caused by the ranging problem, thereby further improving the security and reliability of inductive unlocking. safety; and, when a ranging problem is detected, turning off the inductive unlocking function inside the door can further improve security.
  • the method further includes:
  • the first instruction is input by the user on the smart lock, or is sent by the mobile device based on user operation.
  • the user can turn on or off the automatic calibration mode according to needs, thereby improving the user's flexibility.
  • inventions of the present application provide a smart lock control device.
  • the smart lock has a distance sensor and a touch sensor.
  • the device includes:
  • a processing module configured to enter the calibration mode when it detects that threshold calibration trigger conditions are met, control the distance sensor to perform distance detection, and determine the distance threshold based on the n first distances after obtaining n first distances. ; When it is detected that the unlocking conditions are met, control the unlocking of the smart lock, where n is an integer greater than 1, and the unlocking conditions include: the touch sensor detects a touch signal, and the distance sensor detects The second distance is less than the distance threshold.
  • the calibration mode includes: manual calibration mode, and/or automatic calibration mode;
  • the threshold calibration triggering conditions corresponding to the manual calibration mode include: receiving a first instruction, which is input by the user on the smart lock, or sent by the mobile device based on user operation;
  • the threshold calibration trigger conditions corresponding to the automatic calibration mode include: reaching the target time point.
  • the device further includes:
  • a notification module is used to: in manual calibration mode, before controlling the distance sensor to perform distance detection, send a prompt message.
  • the prompt message is used to prompt the user to close the door and keep no one in front of the smart lock in the door.
  • the processing module is specifically configured to: after the notification module sends the prompt information, and upon receiving the second instruction, control the distance sensor to perform distance detection. It is detected that the second instruction is input by the user on the smart lock, or sent by the mobile device based on user operation.
  • the target time point is determined based on the switch lock record within the first time period, and within the first time period, at the target time point every day , the smart lock is in the locked state.
  • the processing module is specifically used to:
  • control the distance sensor to perform multiple distance detections to obtain n first distances
  • the distance threshold is determined based on the first dispersion and the first average value corresponding to the n first distances.
  • the processing module is specifically configured to: when the first dispersion is less than or equal to a dispersion threshold, and the first average is greater than or equal to the average threshold.
  • the distance threshold is determined based on the first average value.
  • the processing module is also used to:
  • the user is prompted that there is a problem with the smart lock.
  • the processing module is specifically configured to: in the automatic calibration mode, control the distance sensor to perform distance detection to obtain the first distance;
  • the distance is determined based on the second dispersion and the second average value corresponding to the most recently acquired first distances of the target number. Threshold, the number of targets is equal to n.
  • the processing module is specifically configured to: when the second dispersion is less than or equal to a dispersion threshold, and the second average value is greater than or equal to the average threshold. In this case, if the second average value is greater than or equal to the target threshold, the distance threshold is determined to be the target threshold; if the second average value is less than the target threshold, the distance threshold is determined based on the second average value. The distance threshold.
  • the notification module is also used to:
  • the user is prompted that there is a problem with the smart lock, and the door induction unlocking function is turned off.
  • the processing module is also used to:
  • the third instruction is input by the user on the smart lock, or is sent by the mobile device based on user operation.
  • embodiments of the present application provide a smart lock control system, including: a smart lock and a mobile device, wherein:
  • the mobile device is configured to: in response to the first operation, send a first instruction to the smart lock;
  • the smart lock is used to: after receiving the first instruction, enter the manual calibration mode, control the distance sensor to perform distance detection, and after obtaining n first distances, determine a distance threshold based on the n first distances. ; And when it is detected that the unlocking conditions are met, control the unlocking of the smart lock;
  • n is an integer greater than 1
  • the unlocking condition includes: the touch sensor detects a touch signal, and the second distance detected by the distance sensor is less than the distance threshold.
  • manual calibration can be added to the configuration wizard during the network configuration process between the smart lock and the mobile phone. related steps. For example, after the communication connection between the smart lock and the mobile device is successfully established, the mobile device can display the "Next" option in the device connection interface.
  • the first operation can be the operation of the user clicking the "Next”option; the mobile terminal You can also add a manual calibration option to the management interface corresponding to the smart lock after completing the network configuration process with the smart lock.
  • the first operation can also be an operation where the user clicks on the manual calibration option.
  • the smart lock is also used to: before controlling the distance sensor to perform distance detection, send a prompt message, and the prompt message is used to prompt the user to close the door and keep it closed. There is no one directly in front of the smart lock inside the door.
  • the mobile device is further configured to: in response to the second operation, send a second instruction to the smart lock;
  • the smart lock is also used to: when receiving the second instruction, control the distance sensor to perform distance detection.
  • the mobile terminal may provide a "Start Calibration" option and other similar options, and the second operation may be an operation in which the user clicks on the "Start Calibration" option.
  • the smart lock is specifically used for:
  • the distance threshold is determined based on the first dispersion and the first average value corresponding to the n first distances.
  • the smart lock is specifically used: when the first dispersion is less than or equal to a dispersion threshold, and the first average is greater than or equal to the average threshold.
  • the distance threshold is determined based on the first average value.
  • the smart lock is further configured to: when the first dispersion is greater than a dispersion threshold, or the first average is less than an average threshold, prompt There is a problem with the smart lock described by the user.
  • the smart lock is further configured to: send a calibration result to the mobile device;
  • the mobile device is also used to display the calibration result.
  • the smart lock is further configured to: upon detecting that the target time point is reached, enter the automatic calibration mode, control the distance sensor to perform distance detection, and obtain the mth After a distance, the distance threshold is determined based on m first distances, where m is an integer greater than 1.
  • n can be equal to n or not.
  • the smart lock is specifically configured to: control the distance sensor to perform distance detection to obtain the first distance;
  • the distance threshold is determined based on the second dispersion and the second average value corresponding to the m most recently obtained first distances.
  • the smart lock is specifically used: when the second dispersion is less than or equal to a dispersion threshold, and the second average is greater than or equal to the average threshold.
  • the distance threshold is determined to be the target threshold; if the second average value is less than the target threshold, the distance threshold is determined based on the second average value. The distance threshold.
  • the smart lock is also used to: when the second dispersion is less than or is equal to the dispersion threshold, and if the second average value is less than the average threshold, the user is prompted that there is a problem with the smart lock and the door induction unlocking function is turned off.
  • the smart lock is also used for:
  • the third instruction is input by the user on the smart lock, or is sent by the mobile device based on a third operation input by the user.
  • a switch option corresponding to the automatic calibration mode can be provided on the mobile device, and the third operation can be the operation of the user clicking on the option.
  • the smart lock is further configured to enter the manual calibration mode after receiving a fourth instruction input by the user.
  • the fourth command can be input by the user on the keyboard of the smart lock. After the user enters the relevant command on the keyboard to enter the management mode (or other modes such as user setting mode), the user can press the target key (such as the numeric key "6"). ”) thereby inputting the fourth command to trigger the smart lock to start the manual calibration function, causing the smart lock to enter the manual calibration mode.
  • the target key such as the numeric key "6"
  • a smart lock including: a memory and a processor.
  • the memory is used to store a computer program; the processor is used to execute the above first aspect or any implementation of the first aspect when calling the computer program. the method described.
  • embodiments of the present application provide a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the method described in the first aspect or any embodiment of the first aspect is implemented.
  • embodiments of the present application provide a computer program product, which when the computer program product is run on an electronic device, causes the electronic device to execute the method described in the above first aspect or any embodiment of the first aspect.
  • embodiments of the present application provide a chip system, including a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the above first aspect or any of the first aspects.
  • the chip system may be a single chip or a chip module composed of multiple chips.
  • Figure 1 is a schematic diagram of the architecture of a smart lock control system provided by an embodiment of the present application
  • Figure 2 is a schematic structural diagram of a mobile device provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of the smart lock provided by the embodiment of the present application.
  • Figure 4 is a schematic diagram of the position of the distance sensor and touch sensor in the smart lock in the door provided by the embodiment of the present application;
  • FIG. 5 is a schematic diagram of the control process of the smart lock provided by the embodiment of the present application.
  • Figure 6 is a schematic diagram of the manual calibration process provided by the embodiment of the present application.
  • FIGS. 7 to 10 are schematic diagrams of some user interfaces provided by embodiments of the present application.
  • Figure 11 is a schematic diagram of the automatic calibration process provided by the embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a smart lock control device provided by an embodiment of the present application.
  • FIG. 1 is a schematic architectural diagram of a smart lock control system provided by an embodiment of the present application.
  • the smart lock 200 control system may include: a mobile device 100 and a smart lock. Lock 200.
  • the mobile device 100 may be an electronic device with control and communication functions such as a mobile phone, a tablet computer, or a smart wearable device.
  • control and communication functions such as a mobile phone, a tablet computer, or a smart wearable device.
  • the embodiments of this application take a mobile phone as an example for illustration.
  • the mobile device 100 can perform data interaction with the smart lock 200 through the cloud device, or can establish a near-field communication connection with the smart lock 200, and perform data interaction through the established near-field communication connection; among which, the technology for establishing a near-field communication connection includes But not limited to: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT) technology and ultrawide band (UWB) technology, etc.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • Bluetooth bluetooth, BT
  • UWB ultrawide band
  • a wired communication connection can also be established between the mobile device 100 and the smart lock 200 through a universal serial bus (USB) interface to provide a more flexible data transmission method.
  • USB universal serial bus
  • the mobile device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, and a wireless communication module 160 , audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) Card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile device 100 .
  • the mobile device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 can 130 receives charging input from the wired charger.
  • the charge management module 140 may receive wireless charging input through the wireless charging coil of the mobile device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the mobile device 100 through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the mobile device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in mobile device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the mobile device 100 .
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • the wireless communication module 160 can provide WLAN (such as Wi-Fi network), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), and near field communication technologies applied on the mobile device 100 (near field communication, NFC), infrared technology (infrared, IR), ultra-wideband and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the mobile device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the mobile device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the mobile device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193.
  • Camera 193 is used to capture still images or video.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals.
  • Video codecs are used to compress or decompress digital video.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile device 100 .
  • the external memory interface 120 can be used to connect an external memory, such as a Micro SD card, to expand the storage capacity of the mobile device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage. Function.
  • the mobile device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the buttons 190 include a power button, a volume button, etc.
  • the button 190 may be a mechanical button or a touch button.
  • the mobile device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the mobile device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the mobile device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the smart lock 200 can be the smart door lock shown in Figure 1, or other types of locks with various authentication and unlocking functions; it can be an independent electronic device, or it can be a combination of hardware/software/hardware and software.
  • the smart lock 200 may be integrated into other electronic devices.
  • the embodiment of the present application does not specifically limit the specific form of the smart lock 200 .
  • the embodiments of this application take a smart door lock as an example for illustrative description. Unless otherwise specified, the smart lock 200 refers to a smart door lock.
  • the authentication and unlocking methods of the smart lock 200 include but are not limited to: password authentication, fingerprint authentication, voice authentication, face authentication, Bluetooth authentication, NFC authentication, etc.
  • the authentication and unlocking method of the smart lock 200 can be a single authentication method, such as fingerprint or password authentication; as another optional method, the authentication method of the smart lock 200 can be a combined authentication method. For example, fingerprint and password authentication.
  • the smart lock 200 can also be unlocked through mechanical unlocking.
  • the user can use a mechanical key to unlock the door outside the door, and unlock it inside the door by turning or pushing the door handle.
  • the smart lock 200 can also be unlocked through induction unlocking. For example, when the smart lock 200 detects that the handle inside the door is touched, it can automatically unlock to facilitate the user to quickly open the door.
  • the smart lock 200 may include: a processor 210, a memory 220, a power module 230, a USB interface 240, a communication module 250, an audio module 261, a speaker 262, a microphone 263, a button 271, a camera 272, a display screen 273, a sensor module 280, etc.
  • the sensor module 280 may include: a fingerprint sensor 281, a touch sensor 282, a distance sensor 283, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the smart lock 200 .
  • the smart lock 200 may include more or less components than shown in the figure, or combine some components, or split some components, or arrange different components.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware. Each component may include one or more.
  • the processor 210 is the overall control unit of the smart lock 200, which can be a processing unit such as a microcontroller unit (MCU) or a digital signal processor 210 (digital signal processor, DSP).
  • the processor 210 can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the memory 220 is used to store instructions and data, and the processor 210 executes the instructions stored in the memory 220 to execute various functional applications and data processing of the smart lock 200 .
  • the processor 210 can execute the above authentication and unlocking process by running relevant instructions.
  • the power module 230 is used to power the smart lock 200, and may include a battery and a power management unit.
  • the battery may include a rechargeable battery and/or a non-rechargeable battery.
  • the power management unit can receive the power of the wired charger through the USB interface 240. Charging input can also receive wireless charging input through the wireless charging coil to charge the battery; and can monitor parameters such as battery capacity and battery health status.
  • the power management unit can be an independent device or integrated in the processor 210 .
  • the communication module 250 can provide wireless communication solutions including WLAN (such as Wi-Fi network), Bluetooth, IR, UWB and NFC applied to the smart lock 200 .
  • the processor 210 can perform data interaction with the mobile device 100 through the communication module 250 .
  • the smart lock 200 can implement audio functions, such as voice prompts, voice collection and recognition, etc., through the audio module 261, the speaker 262, the microphone 263, etc.
  • the key 271 may be a mechanical key 271 or a touch key 271.
  • the smart lock 200 can receive key 271 input and generate key signal input related to user settings and function control of the smart lock 200 .
  • the smart lock 200 can perform password authentication on the password input by the user through the button 271, and perform relevant system settings according to the instructions input by the user through the button 271.
  • the camera 272 is used to capture still images or videos; the smart lock 200 can implement functions such as monitoring, face collection, and face authentication through the camera 272 and the processor 210 .
  • the display screen 273 is used to display images, videos, etc., and the smart lock 200 can implement the display function through the display screen 273 and the processor 210 .
  • the fingerprint sensor 281 is used to collect fingerprints.
  • the smart lock 200 can use the collected fingerprint characteristics to implement functions such as fingerprint authentication and unlocking.
  • the touch sensor 282 is used to detect touch operations on or near it. It can be arranged on the display screen 273 and form a touch screen with the display screen 273; it can also be arranged on the surface of the button 271 and form a touch key with the button 271; it can also be arranged On the handle, it is used to implement the above-mentioned induction unlocking function.
  • the distance sensor 283 is used to measure distance.
  • the distance sensor 283 can measure the distance using technologies such as infrared ranging, laser ranging, or ultrasonic ranging.
  • the specific algorithm used can be a time of flight (TOF) ranging method or a triangular ranging method.
  • TOF time of flight
  • the smart lock management application can be an independent application or can be integrated in other applications.
  • the user After establishing the communication connection between the smart lock 200 and the mobile phone, the user can view the status information and lock switch records of the smart lock 200 through the application, and can perform settings and control operations of the smart lock 200 through the application.
  • the user can use the application to set the authentication and unlocking methods of the smart lock 200 inside and outside the door, set the authentication and unlocking method outside the door to a single or combined authentication method, and set the authentication and unlocking method inside the door to mechanical unlocking or induction unlocking.
  • the smart lock 200 Distance detection can be performed through the above distance sensor 283.
  • distance authentication can also be performed. When both authentications are passed, automatic unlocking can be performed.
  • Figure 4 shows a schematic diagram of the positions of the distance sensor 283 and the touch sensor 282 on the smart lock 200 inside the door.
  • the touch sensor 282 can be set on the handle of the smart lock 200 inside the door to detect the action of the sensor.
  • the touch signal generated by the touch operation of the area; the distance sensor 283 can be set on the side of the door lock body facing the inside of the door, Used to detect the distance between the obstruction in the door and the smart lock 200.
  • the smart lock 200 can detect the touch signal in the sensing area through the touch sensor 282, and can detect a relatively small distance (between the user and the smart lock 200) through the distance sensor 283. distance), at this time, the smart lock 200 can automatically unlock to achieve quick opening of the door.
  • the distance sensor 283 can detect a relatively large distance. At this time, the smart lock 200 can pass This distance determines that there is no one in the door without performing the unlocking operation, achieving safer induction unlocking.
  • Figure 5 shows a schematic diagram of a possible control process for inductive unlocking of a smart lock. As shown in Figure 5, the process may include the following steps:
  • Step S1 Control the touch sensor to perform touch detection.
  • Step S2 When the touch sensor detects a touch signal, control the distance sensor to perform distance detection.
  • Step S3 Determine whether the distance detected by the distance sensor is less than or equal to the distance threshold. If so, perform step S4 to unlock; otherwise, perform step S5 and do not unlock.
  • the working state of the smart lock can include a sleep state and a wake-up state.
  • the sleep state some devices are in energy-saving mode.
  • the wake-up state some or all of these devices are woken up and enter the normal state. Operating mode.
  • the touch sensor in the sleep state, can be in the normal working mode, and the distance sensor can be in the energy-saving mode; as described in step S2 above, when the touch sensor detects a touch signal, the system can wake up the distance sensor and perform Distance detection to save power.
  • both the touch sensor and the distance sensor in the sleep state, both the touch sensor and the distance sensor can be in normal working mode to increase the induction unlocking speed.
  • the distance sensor in the sleep state is in the energy-saving mode as an example for illustrative explanation.
  • the distance threshold used for distance judgment can be a preset threshold.
  • the size of this value affects the sensitivity and reliability of distance authentication.
  • a larger distance threshold can be set, such as 100cm, to achieve a higher sensitivity; by setting a smaller distance threshold, such as 60cm, to achieve higher reliability; or you can set a relatively central value, such as 80cm, to take into account both sensitivity and reliability.
  • 80cm will be used Take an example to illustrate.
  • the smart lock when the touch sensor detects a touch signal, the smart lock further activates the distance sensor for distance detection. If the detected distance is less than or equal to 80cm, the unlocking operation is performed; otherwise (the detected distance is greater than 80cm), the touch is considered The sensor misdetected and the unlocking operation was not performed.
  • smart locks can also provide distance authentication switch functions. Users can control the smart lock to open or close the distance by inputting instructions on the smart lock or through the smart lock management application on the mobile phone. Authentication function.
  • factors such as the installation environment of the smart lock and problems with the lock's own ranging function may affect the accuracy of distance authentication.
  • the distance authentication may fail when the user opens the door, or the distance authentication may pass when the user does not open the door.
  • a distance calibration function can be added to the smart lock. This function can reduce the impact of these factors on distance authentication, improve the accuracy and reliability of distance authentication, and thereby further improve the security of induction unlocking. sex.
  • the distance calibration function can be started, the calibration mode is entered, the distance sensor is controlled to perform distance detection, the distance threshold is calibrated based on the detected distance, and the smart lock is judged to exist. Ranging issues.
  • the distance calibration function can include: manual calibration function and/or automatic calibration function.
  • the user can manually input instructions to the smart lock. After the smart lock detects the instruction, the manual calibration function can be started and the manual calibration mode can be entered; in daily life, During operation, the smart lock can also automatically start the automatic calibration function and enter the automatic calibration mode when certain conditions are met without user participation.
  • smart locks can also provide the on/off function of the automatic calibration function. Users can control the smart lock to turn on or off the automatic calibration function by inputting instructions on the smart lock or through the smart lock management application on the mobile phone.
  • FIG. 6 is a schematic diagram of the manual calibration process provided by the embodiment of the present application.
  • the process may include the following steps:
  • Step S101 Receive the first instruction and enter the manual calibration mode.
  • the user when the user installs the smart lock and configures it for the first time, he or she can manually trigger the manual calibration function of the smart lock.
  • the user can input the first command on the keyboard of the smart lock to trigger the manual calibration function of the smart lock. For example, after the user enters the relevant command on the keyboard to enter the management mode (or user setting mode and other modes), the user can press the target key (such as the numeric key "6") to enter the first command, triggering the smart lock to start the manual calibration function. Put the smart lock into manual calibration mode.
  • the target key such as the numeric key "6
  • the smart lock can provide voice prompts after the user inputs relevant instructions, guide the user to make relevant configurations, and prompt the user with the configuration results. For example, after the user enters the management mode by inputting relevant instructions on the keyboard, the smart lock can send out a voice prompt message: "Distance calibration, please press 6"; after the user enters the number "6", the smart lock can send out a voice prompt message: "Entered. Calibration mode”.
  • the user can also trigger the smart lock to start the manual calibration function by inputting the first command on the smart lock during later use.
  • the user can also send the first command to the smart lock through the mobile phone to trigger the smart lock to start the manual calibration function.
  • Figure 7 shows a possible implementation.
  • the relevant steps of manual calibration can be added to the configuration wizard.
  • the mobile phone can display the prompt message 101 of "Connection successful" in the device connection interface 10, and can display "Next step” Option 102; after the user clicks the "Next" option 102, the mobile phone can send a first instruction to the smart lock, and can display the distance calibration interface 20 to guide the user to perform the calibration process of the distance threshold.
  • the smart lock can also send out a voice prompt message: "Calibration mode has been entered.”
  • Figure 8 shows another possible implementation.
  • a manual calibration option can be added to the management interface corresponding to the smart lock for users to perform manual calibration at any time.
  • a "distance calibration" card 301 can be added to the main interface 30 corresponding to the smart lock.
  • the mobile phone can send a first instruction to the smart lock, and
  • the distance calibration interface 20 can be displayed to guide the user to perform the calibration process of the distance threshold.
  • the specific operation method for the user to input the first command on the smart lock is not limited to key operations, and the operations performed by the user on the mobile device are not limited to click operations. Both can also be voice input operations or gesture operations, etc. , the embodiments of the present application do not specifically limit this. Other user operations described in the embodiments of the present application are similar. For convenience of explanation, the embodiments of the present application take key operations and click operations as examples for exemplary explanation.
  • Step S102 Prompt the user to close the door and keep no one in front of the smart lock inside the door.
  • the smart lock After the smart lock receives the first command, it can enter the manual calibration mode to calibrate the distance threshold. In order to improve the accuracy of the calibration results, after entering the manual calibration mode, the smart lock can also send out a voice prompt message to guide the user to correctly calibrate the distance threshold.
  • the prompt message may be, for example: "Please close the door and keep no one in front of the smart lock inside the door.”
  • the mobile phone can also display the above prompt information 201 in the distance calibration interface 20 .
  • Step S103 Receive the second instruction and control the distance sensor to perform N distance detections.
  • the smart lock can further prompt the user to enter a second command to start the calibration of the distance threshold after being ready according to the above prompt information.
  • the smart lock can continue to prompt the user: "To start calibration, please press 1; to return to the previous menu, please press 2.”
  • the smart lock can start to perform the distance threshold calibration, and can issue a voice prompt message: “Start calibration”; after the user enters the number "2", the smart lock can return to the management mode.
  • a “start calibration” option 202 can be provided in the distance calibration interface 20 .
  • the mobile phone can send a second command to the smart lock, and can display the calibration progress prompt information 211 to improve the user's convenience. sex.
  • the smart lock can start to calibrate the distance threshold, and can also send out a voice prompt message: "Start calibration”.
  • the distance calibration interface 20 can also provide a "skip" option 203, and the user can By selecting this option, the calibration process of the distance threshold is skipped.
  • the smart lock In manual calibration mode, when the smart lock performs distance threshold calibration, it can control the distance sensor to continuously measure N times, and then determine the distance threshold based on the measured N distances.
  • the value of N can be set as needed, for example, it can be 10 or 15, etc.
  • the distance measured by the distance sensor for distance threshold calibration in the calibration mode will be called the first distance
  • the distance measured by the distance sensor for inductive unlocking during daily operation will be called the second distance
  • Step S104 Determine whether the measured N first distances are all greater than the target threshold. If so, execute step S105; Otherwise, execute step S106.
  • the distance threshold may be determined based on the average value of the N first distances. Considering that when the distance threshold is too large, it will affect the reliability of distance authentication.
  • the difference between these distances and an empirical upper limit of the distance threshold ie, the target threshold
  • the target threshold can first be determined. relationship, and determine whether to determine the distance threshold based on the average of the N first distances based on the judgment result.
  • the target threshold is similar to the distance threshold in Figure 5 and can be determined according to the required sensitivity and reliability of distance authentication. Specifically, the target threshold can be consistent with the aforementioned preset distance threshold, which is 80cm. Of course, the target threshold may also be inconsistent with the preset distance threshold. For example, the target threshold may be determined based on factors such as the installation environment of the smart lock. The installation environment may be determined by camera image collection or user input instructions.
  • the distance threshold can be the target threshold.
  • the distance threshold can be based on the actual measurement. The average of the N first distances is determined.
  • Step S105 Determine the distance threshold as the target threshold.
  • Step S106 Calculate the standard deviation ⁇ 1 and the average value a1 of the N first distances.
  • the distance threshold based on the average value, it is possible to first determine whether the distance data measured by the distance sensor (i.e., the first distance) is normal to determine whether there is a problem with the smart lock's own ranging function. When the distance function is normal, calibrate the distance threshold again to improve the accuracy of the calibrated distance threshold.
  • parameters such as standard deviation and/or average value can be used to evaluate whether the distance data measured by the distance sensor is normal.
  • standard deviation and average value are used as examples for illustrative explanation.
  • it can also be Use other parameters, for example, you can use variance or range and other parameters that can represent the dispersion of the data for data evaluation.
  • Step S107 Determine whether the standard deviation ⁇ 1 is greater than the threshold Td, or the average value a1 is less than the threshold Ta. If so, execute step S108; otherwise, execute step S109.
  • the distance authentication based on the distance measured by the distance sensor has a higher reliability. It's relatively poor.
  • the average value of each first distance measured by the distance sensor is too small (less than the threshold Ta), it means that there may be dirt blocking the distance sensor, or there may be other problems such as damage to the distance sensor, resulting in inaccurate data measured by the distance sensor. This will lead to inaccurate distance authentication.
  • the calibration of the distance threshold does not need to continue. At this time, the user can be prompted that there is a problem with the smart lock, and the user is recommended to contact after-sales service for repair or replacement.
  • the standard deviation and average value of each first distance measured by the distance sensor are both normal (that is, the standard deviation ⁇ 1 is less than or equal to the threshold Td, and the average value a1 is greater than or equal to the threshold Ta), it means that the ranging function of the smart lock is normal. At this time You can continue to calibrate the distance threshold.
  • the threshold Td corresponding to the standard deviation ⁇ 1 can be determined based on the measurement error of the distance sensor, which can be the maximum measurement error of the distance sensor, or other values, such as twice the minimum measurement error of the distance sensor.
  • the threshold Ta corresponding to the average value a1 can be determined based on empirical values, for example, it can be a value such as 10cm.
  • both can be performed at the same time or one after another.
  • This embodiment is not particularly limited in this regard.
  • Step S108 Prompt the user that there is a problem with the smart lock.
  • the smart lock can prompt the user that there is a problem with the smart lock through voice; the smart lock can also feedback the calibration result to the mobile phone. After the mobile phone receives the calibration result from the smart lock indicating that there is a problem with the smart lock, as shown in the figure As shown in (a) in 10, a prompt message 212 may be displayed, prompting the user that the calibration failed and there is a problem with the smart lock.
  • the mobile phone can provide a confirmation option 213 and a recalibration option 214.
  • the mobile phone can continue to perform subsequent configuration processes or when there is no other configuration process. In this case, the configuration process ends; when the user selects the recalibration option 214, the mobile phone can send the first command or the second command to the smart lock again, instructing the smart lock to re-calibrate the distance threshold.
  • Step S109 Determine the distance threshold based on the average value a1.
  • the distance threshold may be determined based on the average value a1 of the N first distances measured by the distance sensor; in some embodiments, the distance threshold may also be determined based on the median or maximum value of the N first distances.
  • a floating value when determining the distance threshold based on the average value a1, a floating value can be subtracted from the average value a1 as the distance threshold; the floating value can be determined based on the measurement error of the distance sensor, for example It is 3 times the maximum error of the distance sensor or other value (such as 1cm).
  • the specific size of the floating value is not particularly limited in this embodiment.
  • the smart lock can voice prompt the user that the calibration is completed, and the smart lock can also feedback the calibration results to the mobile phone.
  • the mobile phone receives the calibration results from the smart lock indicating that the smart lock has been calibrated, as shown in Figure 10
  • a prompt message 221 can be displayed in the distance calibration interface 20 to prompt the user that the smart lock has successfully completed the calibration process of the distance threshold;
  • a confirmation option 222 can also be provided in the distance calibration interface 20.
  • the mobile phone can continue to perform subsequent configuration processes or end the configuration process without other configuration processes.
  • the above-mentioned steps of determining the distance threshold based on the N first distances can also be adjusted. For example, when the standard deviation and the average of the N first distances are both normal, the average and the target can be judged.
  • the comparison process of each first distance and the target threshold can be performed, which can reduce the amount of calculation and improve the processing speed when the smart lock is facing a relatively close obstruction.
  • the comparison process between each first distance and the target threshold is performed after the average value, which can reduce the amount of calculation when there is a problem with the smart lock.
  • the specific implementation method can be selected according to needs, and this embodiment does not specifically limit this.
  • the smart lock can initially have a preset distance threshold.
  • the above-mentioned manual calibration function can be used as an optional step in the installation and configuration process of the smart lock.
  • the user can update the distance threshold through the above-mentioned manual calibration function; smart lock There may be no preset distance threshold initially.
  • the above manual calibration function can be used as a required step in the smart lock installation and configuration process.
  • the distance threshold determined by the user for the first time through the manual calibration function is the initial distance threshold. Later, the distance threshold can be updated again through the manual calibration function.
  • users can use the manual calibration function to calibrate the distance threshold just after installing the smart lock or during later use, and determine distance certification conditions that are more suitable for the current installation environment. For example, when there is an obstruction such as a wall or cabinet that is close to the smart lock in the door, and the obstruction is 70cm away from the smart lock, which is less than the preset distance threshold of 80cm, using this distance threshold will invalidate the distance authentication; and Through the manual calibration function, a more appropriate distance threshold can be determined, such as 69cm, so that the distance authentication function can operate normally, thereby improving the security and reliability of induction unlocking.
  • a more appropriate distance threshold can be determined, such as 69cm, so that the distance authentication function can operate normally, thereby improving the security and reliability of induction unlocking.
  • FIG. 11 is a schematic diagram of the automatic calibration process provided by the embodiment of the present application.
  • the process may include the following steps:
  • Step S201 Determine the target time point for awakening the automatic calibration function according to the switch lock record.
  • the smart lock can determine one or more target time points, wake up the automatic calibration function at the target time point every day, and perform automatic calibration of the distance threshold.
  • the smart lock After the user installs the smart lock, the smart lock can record the switch lock status during daily operation; based on the switch lock record, the smart lock can determine the daily closing time period (the smart lock is in the locked state), and then can Select one or more time points in the daily average closing time period as the target time point for the scheduled wake-up automatic calibration function.
  • the smart lock For example, if the smart lock counts that the smart lock is locked from 11 pm to 6 am every day, you can select one or more time points, such as 3 am sharp, as the target time point, in the early morning of every day. Wake up the automatic calibration function at 3 o'clock.
  • the smart lock can also give priority to counting the closing time period at night. If the public closing time period can be determined, There is no need to collect statistics on closing time periods during the day.
  • the smart lock can also provide a target time point setting function. Similar to the above manual calibration function, the user can enter instructions on the smart lock or set the target time point through the smart lock management application on the mobile phone. Specific implementation The method is similar to the manual calibration function and will not be described again here.
  • Step S202 At the target time point every day, wake up the automatic calibration function and enter the automatic calibration mode.
  • the smart lock After determining the target time point, the smart lock can determine whether the target time point has been reached through time detection or timing; after determining that the target time point has been reached, it wakes up the automatic calibration function and enters the automatic calibration mode.
  • Step S203 Control the distance sensor to perform a distance detection.
  • the smart lock when it performs distance threshold calibration, it can control the distance sensor to measure once, and then calibrate the distance threshold based on the first distance measured in the last few days, so that the subsequent distance measurement stability can be detected based on these distance data.
  • the distance data used is richer in the time dimension, the detection results are more reliable; moreover, power consumption can also be reduced.
  • the smart lock can also control the distance sensor to measure twice continuously, where the number of continuous measurements can be less than or equal to N/2.
  • the number of continuous measurements can be less than or equal to N/2.
  • one measurement is taken as an example for illustration.
  • Step S204 Determine whether the number of first distances detected in the automatic calibration mode is greater than or equal to N. If so, execute step S205; otherwise, return to step S202.
  • the smart lock After the smart lock measures the distance in the automatic calibration mode, it can store the measured first distance at the target location, and then determine whether the currently stored first distances reach N. If N is reached, subsequent steps can be performed. distance calibration process; otherwise, you can return to step S202 to continue the next distance measurement.
  • Step S205 Calculate the standard deviation ⁇ 2 and average value a2 of the most recently obtained N first distances.
  • the smart lock can perform a subsequent distance threshold calibration process based on the recently acquired N first distances in order to determine the nearest indoor environment conditions and the quality of the ranging function.
  • step S106 This step is similar to the above-mentioned step S106.
  • step S106 For specific description, please refer to the relevant description in step S106, and will not be described again here.
  • Step S206 Determine whether the standard deviation ⁇ 2 is greater than the threshold Td. If so, execute step S202; otherwise, execute step S207.
  • the smart lock When the smart lock performs distance detection in the automatic calibration mode, the following situations may occur: the furniture layout near the smart lock in the door has been changed, or the user happens to be active inside the door. These situations may cause the smart lock detection to be incorrect.
  • the distance is unstable. Therefore, when performing automatic calibration, the smart lock can first judge the data stability based on the standard deviation. When the measured distance data is relatively stable, step S207 can be performed to judge the data accuracy based on the average value. Determination; if the measured distance data is unstable, you can return to step S202 to continue the next distance measurement.
  • the smart lock can also perform the following step S208 to prompt the user that there is a problem with the smart lock when it detects data instability multiple times in succession.
  • the number of consecutive times may be greater than N.
  • Step S207 Determine whether the average value a2 is less than the threshold Ta. If so, execute step S208; otherwise, execute step S209.
  • step S107 This process is similar to the above-mentioned average value determination process in step S107.
  • step S107 For specific description, please refer to the relevant description in step S107, and will not be described again here.
  • Step S208 Prompt the user that there is a problem with the smart lock and turn off the sensor unlocking function.
  • the smart lock When the smart lock detects a ranging problem through the automatic ranging function, it can prompt the user that there is a problem with the smart lock by displaying a fault code; the smart lock can also send fault information to the mobile phone, and the mobile phone can prompt the user through the notification bar or short message. There is a problem with the user's smart lock.
  • smart locks can turn off the sensor unlocking function in addition to prompting users that there is a problem with the smart lock.
  • Step S209 Determine the distance threshold based on the average value a2.
  • the distance threshold when determining the distance threshold, you can first determine the relationship between the average a2 and the target threshold (such as the aforementioned 80cm). If the average a2 is greater than the target threshold, the target threshold can be determined as the current distance threshold; if the average a2 If it is less than or equal to the target threshold, a floating value can be subtracted from the average value a1 as the distance threshold.
  • the target threshold such as the aforementioned 80cm
  • the smart lock determines the distance threshold through the automatic calibration function for the first time, it can perform an automatic calibration process every day through the above steps S202 to S209; wherein, when the target time point is determined in step S201, the smart lock The target time point can be determined based on the switch lock records several days after installation; the smart lock can also determine the target time point once a day based on the switch lock records of the last few days after the target time point is determined for the first time, and update the target time point. , to improve the accuracy of the target time point; or you can also determine the target time point based on the switch lock records of the last few days every multiple days, such as half a month or a month, and update the target time point to save power. .
  • you can also The quantity determination process in step S204 is skipped.
  • the smart lock can also perform a complete automatic calibration process periodically at regular intervals, such as one month or three months, through the above steps S201 to S209.
  • a complete automatic calibration process periodically at regular intervals, such as one month or three months, through the above steps S201 to S209.
  • the smart lock can also control the distance sensor to continuously measure N times in the automatic calibration mode, so that the distance threshold can be updated as early as possible after the user has installed the smart lock without performing a manual calibration process.
  • the smart lock can automatically calibrate the distance threshold during daily operation to determine distance certification conditions that are more suitable for the current installation environment. For example, the user skipped the distance calibration process when installing a smart lock, and there are obstructions such as walls or cabinets facing the smart lock in the door. Or, due to changes in the indoor layout, the smart lock in the door faces the location. There are obstructions such as cabinets that are relatively close to the location; the obstruction is 70cm away from the smart lock, which is less than the current distance threshold of 80cm. Using this distance threshold will invalidate the distance authentication; and through the automatic calibration function, a more suitable one can be determined A distance threshold, such as 69cm, allows the distance authentication function to operate normally, thereby improving the security and reliability of induction unlocking.
  • the automatic calibration function can also detect unstable and inaccurate ranging situations caused by stains or other problems, so that ranging problems can be discovered and solved in a timely manner, reducing instability and inaccurate distance certification. situation, thereby further improving the security and reliability of induction unlocking.
  • the smart lock can compare the second distance detected by the distance sensor with the distance threshold after the touch sensor detects the touch signal. When the second distance is less than the distance In the case of threshold, the smart lock is controlled to be unlocked.
  • the technical solution provided by the embodiments of this application can control the distance sensor to perform distance detection through the distance calibration function, and calibrate the distance threshold according to the detected distance, thereby reducing the impact of the installation environment on distance authentication and improving the security of inductive unlocking. and can detect the distance measurement problems of the smart lock itself through the distance calibration function, thereby reducing the instability and inaccuracy of distance authentication caused by distance measurement problems, and further improving the safety and reliability of induction unlocking.
  • the embodiment of the present application provides a smart lock control device.
  • the device embodiment corresponds to the foregoing method embodiment.
  • the present device embodiment no longer refers to the foregoing method embodiment.
  • the details will be described one by one, but it should be clear that the device in this embodiment can correspondingly implement all the contents in the foregoing method embodiments.
  • FIG 12 is a schematic structural diagram of a smart lock control device provided by an embodiment of the present application. As shown in Figure 12, the device provided by this embodiment includes:
  • Display module 310 input module 320, processing module 330, communication module 340 and notification module 350.
  • the display module 310 is used to support the electronic device to perform the interface display operation in the above embodiments and/or other processes for the technology described herein.
  • the display module may be a touch screen or other hardware or a combination of hardware and software.
  • the electronic device may be the above-mentioned smart lock or mobile device.
  • the input module 320 is used to receive user input on the electronic device, such as touch input, voice input, and gesture input. etc., the input module is used to support the electronic device to perform the steps of receiving user operations in the above embodiments and/or other processes for the technology described herein.
  • the input module may be a touch screen or other hardware or a combination of hardware and software.
  • the processing module 330 is used to support the electronic device to perform processing operations in each method step in the above embodiments and/or other processes for the technology described herein.
  • the communication module 340 is used to support the electronic device to perform operations related to the communication process between other electronic devices in the above embodiments and/or other processes for the technology described herein.
  • the notification module 350 is used to support the electronic device to perform prompt operations in each method step in the above embodiments and/or other processes for the technology described herein.
  • the device provided in this embodiment can execute the above method embodiments, and its implementation principles and technical effects are similar and will not be described again here.
  • Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
  • Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application.
  • For the specific working processes of the units and modules in the above system please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
  • Embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiment is implemented.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on an electronic device, the electronic device implements the method described in the above method embodiment when executed.
  • the electronic device may be the above-mentioned smart lock or mobile device.
  • An embodiment of the present application also provides a chip system, including a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the method described in the above method embodiment.
  • the chip system may be a single chip or a chip module composed of multiple chips.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (such as floppy disks, hard disks or tapes), optical media (such as DVDs), or semiconductor media (such as solid state disks (SSD)), etc.
  • the program can be stored in a computer-readable storage medium.
  • the aforementioned storage media may include: ROM, random access memory (RAM), magnetic disks, optical disks and other media that can store program codes.
  • the disclosed devices/devices and methods can be implemented in other ways.
  • the apparatus/equipment embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or units. Components may be combined or may be integrated into another system, or some features may be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
  • A/B can represent A or B; "and/or” is used in this application.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. Among them, A and B can be Singular or plural.
  • plural means two or more than two.
  • At least one of the following or similar expressions thereof refers to any combination of these items, including any combination of single or plural items.
  • at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
  • the term “if” may be interpreted as “when” or “once” or “in response to determining” or “in response to detecting” depending on the context. ". Similarly, the phrase “if determined” or “if [the described condition or event] is detected” may be interpreted, depending on the context, to mean “once determined” or “in response to a determination” or “once the [described condition or event] is detected ]” or “in response to detection of [the described condition or event]”.

Abstract

一种智能锁的控制方法、智能锁控制系统和智能锁,智能锁的控制方法包括:在检测到满足阈值标定触发条件的情况下,进入标定模式,控制距离传感器进行距离检测,获得n个第一距离后,根据n个第一距离确定距离阈值;在检测到满足解锁条件的情况下,控制智能锁解锁,其中,n为大于1的整数,解锁条件包括:触摸传感器检测到触摸信号,并且,距离传感器检测到的第二距离小于距离阈值。

Description

智能锁的控制方法、智能锁控制系统和智能锁
本申请要求于2022年06月01日提交国家知识产权局、申请号为202210620821.X、申请名称为“智能锁的控制方法、智能锁控制系统和智能锁”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能锁技术领域,尤其涉及一种智能锁的控制方法、智能锁控制系统和智能锁。
背景技术
随着科技的发展和人们生活水平的提高,各种各样的智能化产品逐渐进入人们的生活,其中,智能锁凭借着便利性和安全性等优点而受到越来越多消费者的认可。
智能锁在智能家居和智能车辆等领域都有着广泛的应用,以智能家居领域的智能门锁为例,在解锁智能锁时,用户可以通过密码认证、指纹认证和/或人脸认证等方式在门外开锁,通过转动或推拉门把手的方式在门内开锁。为了更加方便用户使用,一些智能锁还具备感应解锁功能,可以在检测到位于门内的把手被触摸时,进行自动解锁。
但是上述感应解锁功能,在空气潮湿和高温等情况下,容易被误触发而导致严重的安全性问题。
发明内容
有鉴于此,本申请提供一种智能锁的控制方法、智能锁控制系统和智能锁,用于提高智能锁的安全性。
为了实现上述目的,第一方面,本申请实施例提供一种智能锁的控制方法,所述智能锁上具有距离传感器和触摸传感器,所述方法包括:
在检测到满足阈值标定触发条件的情况下,进入标定模式,控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值,n为大于1的整数;
在检测到满足解锁条件的情况下,控制所述智能锁解锁,其中,所述解锁条件包括:所述触摸传感器检测到触摸信号,并且,所述距离传感器检测到的第二距离小于所述距离阈值。
本申请实施例提供的上述技术方案,智能锁在进行感应解锁时,在进行触摸认证之外,还进行距离认证,在两者都认证通过的情况下进行解锁,这样可以提高感应解锁的安全性;并且,该技术方案中,智能锁可以在满足阈值标定触发条件时,进入标定模式,控制距离传感器进行距离检测,根据检测的距离对距离阈值进行标定,然后在进行感应解锁时,基于标定后的距离阈值进行距离认证,这样可以降低安装环境对距离认证的影响,进一步提高感应解锁的安全性。
在第一方面的一种可能的实施方式中,所述标定模式包括:手动标定模式,和/或,自动标定模式;
所述手动标定模式对应的阈值标定触发条件包括:接收到第一指令,所述第一指令是 用户在所述智能锁上输入的,或,移动设备基于用户操作发送的;
所述自动标定模式对应的阈值标定触发条件包括:到达目标时间点。
上述实施方式中,通过在智能锁中增加手动标定模式,可以使用户通过手动标定方式触发智能锁进入手动标定模式,进行距离阈值的标定,提升用户使用的灵活性;通过在智能锁中增加自动标定模式,可以使智能锁自动进入自动标定模式进行距离阈值的标定,从而可以进一步提升用户使用的便利性。
在第一方面的一种可能的实施方式中,在手动标定模式下,所述方法还包括:
在控制所述距离传感器进行距离检测前,发出提示信息,所述提示信息用于提示用户将门关好,并保持门内智能锁正前方无人。
通过上述实施方式,可以引导用户正确的进行距离阈值的标定,提高标定结果的准确性以及用户使用的便利性。
在第一方面的一种可能的实施方式中,在发出所述提示信息后,在接收到第二指令的情况下,控制所述距离传感器进行距离检测,所述第二指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的。这样可以进一步提升用户使用的便利性。
在第一方面的一种可能的实施方式中,所述目标时间点是根据第一时间段内的开关锁记录确定的,在所述第一时间段内,在每日的所述目标时间点,所述智能锁处于关锁状态。这样无需用户手动确定目标时间点,因而可以提升用户使用的便利性。
在第一方面的一种可能的实施方式中,在所述手动标定模式下,所述控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值,包括:
控制所述距离传感器进行多次距离检测,得到n个第一距离;
在所述n个第一距离均大于目标阈值的情况下,确定所述距离阈值为所述目标阈值;
在至少一个所述第一距离小于或等于所述目标阈值的情况下,根据所述n个第一距离对应的第一离散度和第一平均值,确定所述距离阈值。
其中,第一离散度即为n个第一距离的离散度,第一平均值即为n个第一距离的平均值,离散度可以是标准差或方差等。
上述实施方式中,在进行基于离散度和平均值确定距离阈值前,进行各第一距离与目标阈值的比较过程,可以在智能锁正对位置无比较近的遮挡物时,减少计算量,提高处理速度。
在第一方面的一种可能的实施方式中,在所述第一离散度小于或等于离散度阈值,并且,所述第一平均值大于或等于平均值阈值的情况下,根据所述第一平均值确定所述距离阈值。
上述实施方式中,在距离传感器测量的各个第一距离的离散度和平均值都正常的情况下,再基于平均值确定距离阈值,可以提高距离阈值标定结果的准确性。
在第一方面的一种可能的实施方式中,所述方法还包括:
在所述第一离散度大于离散度阈值,或者,所述第一平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题。
通过上述实施方式,可以检测出距离传感器的测距问题,并可以及时的通知用户进行解决,减少测距问题导致的距离认证不稳定和不准确的情况,从而进一步提高感应解锁的安全性和可靠性。
在第一方面的一种可能的实施方式中,在所述自动标定模式下,所述控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值,包括:
控制所述距离传感器进行距离检测,得到第一距离;
如果在所述自动标定模式下检测的第一距离的数量大于或等于目标数量,则根据最近获取的所述目标数量个第一距离对应的第二离散度和第二平均值,确定所述距离阈值,所述目标数量等于n。
上述实施方式中,可以根据最近多次在自动标定模式下测量的距离数据进行距离阈值的标定,这样所采用的距离数据在时间维度上会更加丰富,因而检测结果更加可靠。
在第一方面的一种可能的实施方式中,在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值大于或等于平均值阈值的情况下,如果所述第二平均值大于或等于目标阈值,则确定所述距离阈值为所述目标阈值;如果所述第二平均值小于所述目标阈值,则根据所述第二平均值确定所述距离阈值。
在第一方面的一种可能的实施方式中,所述方法还包括:
在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题,并关闭门内感应解锁功能。
通过上述实施方式,可以检测出距离传感器的测距问题,并可以及时的通知用户进行解决,减少测距问题导致的距离认证不稳定和不准确的情况,从而进一步提高感应解锁的安全性和可靠性;而且,在检测到测距问题时,关闭门内感应解锁功能,也可以进一步提高安全性。
在第一方面的一种可能的实施方式中,所述方法还包括:
接收第三指令,开启或关闭所述自动标定模式,所述第一指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的。
通过上述实施方式,可以使用户根据需求开启或关闭自动标定模式,提高用户使用的灵活性。
第二方面,本申请实施例提供一种智能锁控制装置,所述智能锁上具有距离传感器和触摸传感器,所述装置包括:
处理模块,用于:在检测到满足阈值标定触发条件的情况下,进入标定模式,控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值;在检测到满足解锁条件的情况下,控制所述智能锁解锁,其中,n为大于1的整数,所述解锁条件包括:所述触摸传感器检测到触摸信号,并且,所述距离传感器检测到的第二距离小于所述距离阈值。
在第二方面的一种可能的实施方式中,所述标定模式包括:手动标定模式,和/或,自动标定模式;
所述手动标定模式对应的阈值标定触发条件包括:接收到第一指令,所述第一指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的;
所述自动标定模式对应的阈值标定触发条件包括:到达目标时间点。
在第二方面的一种可能的实施方式中,所述装置还包括:
通知模块,用于:在手动标定模式下,在控制所述距离传感器进行距离检测前,发出提示信息,所述提示信息用于提示用户将门关好,并保持门内智能锁正前方无人。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在所述通知模块发出所述提示信息后,在接收到第二指令的情况下,控制所述距离传感器进行距离检测,所述第二指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的。
在第二方面的一种可能的实施方式中,所述目标时间点是根据第一时间段内的开关锁记录确定的,在所述第一时间段内,在每日的所述目标时间点,所述智能锁处于关锁状态。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:
在所述手动标定模式下,控制所述距离传感器进行多次距离检测,得到n个第一距离;
在所述n个第一距离均大于目标阈值的情况下,确定所述距离阈值为所述目标阈值;
在至少一个所述第一距离小于或等于所述目标阈值的情况下,根据所述n个第一距离对应的第一离散度和第一平均值,确定所述距离阈值。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在所述第一离散度小于或等于离散度阈值,并且,所述第一平均值大于或等于平均值阈值的情况下,根据所述第一平均值确定所述距离阈值。
在第二方面的一种可能的实施方式中,所述处理模块还用于:
在所述第一离散度大于离散度阈值,或者,所述第一平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在所述自动标定模式下,控制所述距离传感器进行距离检测,得到第一距离;
如果在所述自动标定模式下检测的第一距离的数量大于或等于目标数量,则根据最近获取的所述目标数量个第一距离对应的第二离散度和第二平均值,确定所述距离阈值,所述目标数量等于n。
在第二方面的一种可能的实施方式中,所述处理模块具体用于:在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值大于或等于平均值阈值的情况下,如果所述第二平均值大于或等于目标阈值,则确定所述距离阈值为所述目标阈值;如果所述第二平均值小于所述目标阈值,则根据所述第二平均值确定所述距离阈值。
在第二方面的一种可能的实施方式中,所述通知模块还用于:
在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题,并关闭门内感应解锁功能。
在第二方面的一种可能的实施方式中,所述处理模块还用于:
接收第三指令,开启或关闭所述自动标定模式,所述第三指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的。
第三方面,本申请实施例提供一种智能锁控制系统,包括:智能锁和移动设备,其中:
所述移动设备用于:响应于第一操作,向所述智能锁发送第一指令;
所述智能锁用于:在接收到所述第一指令后,进入手动标定模式,控制所述距离传感器进行距离检测,获得n个第一距离后,根据n个所述第一距离确定距离阈值;并在检测到满足解锁条件的情况下,控制所述智能锁解锁;
其中,n为大于1的整数,所述解锁条件包括:所述触摸传感器检测到触摸信号,并且,所述距离传感器检测到的第二距离小于所述距离阈值。
在具体实现时,可以在智能锁与手机进行配网的过程中,在配置向导中增加手动标定 的相关步骤。比如,在智能锁与移动设备之间的通信连接建立成功后,移动设备可以在设备连接界面中显示“下一步”选项,该第一操作可以是用户点击“下一步”选项的操作;移动终端也可以在与智能锁完成配网过程后,在智能锁对应的管理界面中增加手动标定选项,该第一操作也可以是用户点击该手动标定选项的操作。
在第三方面的一种可能的实施方式中,所述智能锁还用于:在控制所述距离传感器进行距离检测前,发出提示信息,所述提示信息用于提示用户将门关好,并保持门内智能锁正前方无人。
在第三方面的一种可能的实施方式中,所述移动设备还用于:响应于第二操作,向所述智能锁发送第二指令;
所述智能锁还用于:在接收到第二指令的情况下,控制所述距离传感器进行距离检测。
移动终端在发出第一指令后,可以提供“开始标定”选项等类似选项,第二操作可以是用户点击“开始标定”选项的操作。
在第三方面的一种可能的实施方式中,所述智能锁具体用于:
控制所述距离传感器进行多次距离检测,得到n个第一距离;
在所述n个第一距离均大于目标阈值的情况下,确定所述距离阈值为所述目标阈值;
在至少一个所述第一距离小于或等于所述目标阈值的情况下,根据所述n个第一距离对应的第一离散度和第一平均值,确定所述距离阈值。
在第三方面的一种可能的实施方式中,所述智能锁具体用于:在所述第一离散度小于或等于离散度阈值,并且,所述第一平均值大于或等于平均值阈值的情况下,根据所述第一平均值确定所述距离阈值。
在第三方面的一种可能的实施方式中,所述智能锁还用于:在所述第一离散度大于离散度阈值,或者,所述第一平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题。
在第三方面的一种可能的实施方式中,所述智能锁还用于:向所述移动设备发送标定结果;
所述移动设备还用于:显示所述标定结果。
在第三方面的一种可能的实施方式中,所述智能锁还用于:在检测到到达目标时间点的情况下,进入自动标定模式,控制所述距离传感器进行距离检测,获得m个第一距离后,根据m个所述第一距离确定距离阈值,m为大于1的整数。
其中,m可以与n相等,也可以不相等。
在第三方面的一种可能的实施方式中,所述智能锁具体用于:控制所述距离传感器进行距离检测,得到第一距离;
如果在所述自动标定模式下检测的第一距离的数量大于或等于m,则根据最近获取的m个第一距离对应的第二离散度和第二平均值,确定所述距离阈值。
在第三方面的一种可能的实施方式中,所述智能锁具体用于:在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值大于或等于平均值阈值的情况下,如果所述第二平均值大于或等于目标阈值,则确定所述距离阈值为所述目标阈值;如果所述第二平均值小于所述目标阈值,则根据所述第二平均值确定所述距离阈值。
在第三方面的一种可能的实施方式中,所述智能锁还用于:在所述第二离散度小于或 等于离散度阈值,并且,所述第二平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题,并关闭门内感应解锁功能。
在第三方面的一种可能的实施方式中,所述智能锁还用于:
接收第三指令,开启或关闭所述自动标定模式,所述第三指令是用户在所述智能锁上输入的,或,所述移动设备基于用户输入的第三操作发送的。
其中,移动设备上可以提供自动标定模式对应的开关选项,第三操作可以是用户点击该选项的操作。
在第三方面的一种可能的实施方式中,所述智能锁还用于:在接收到用户输入的第四指令后,进入所述手动标定模式。
其中,该第四指令可以是用户在智能锁的键盘上输入的,用户在键盘上输入相关指令进入管理模式(或者用户设置模式等其他模式)后,可以按下目标按键(例如数字键“6”)从而输入第四指令,触发智能锁启动手动标定功能,使智能锁进入手动标定模式。
第四方面,本申请实施例提供一种智能锁,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面或第一方面的任一实施方式所述的方法。
第五方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面或第一方面的任一实施方式所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面或第一方面的任一实施方式所述的方法。
第七方面,本申请实施例提供一种芯片系统,包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面或第一方面的任一实施方式所述的方法。其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
可以理解的是,上述第二方面至第七方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1为本申请实施例提供的智能锁控制系统的架构示意图;
图2为本申请实施例提供的移动设备的结构示意图;
图3为本申请实施例提供的智能锁的结构示意图;
图4为本申请实施例提供的门内智能锁上距离传感器和触摸传感器的位置示意图;
图5为本申请实施例提供的智能锁的控制过程示意图;
图6为本申请实施例提供的手动标定过程示意图;
图7~图10为本申请实施例提供的一些用户界面示意图;
图11为本申请实施例提供的自动标定过程示意图;
图12为本申请实施例提供的智能锁控制装置的结构示意图。
具体实施方式
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘 述。
本申请实施例提供的智能锁控制方法可以应用于智能锁控制系统中。图1为本申请实施例提供的智能锁控制系统的架构示意图,如图1所示,以智能锁为智能家居领域的智能门锁为例,智能锁200控制系统可以包括:移动设备100和智能锁200。
移动设备100可以是手机、平板电脑或智能穿戴设备等具有控制和通信功能的电子设备,为了便于说明,本申请实施例中均以手机为例进行示例性说明。
移动设备100可以通过云端设备与智能锁200之间进行数据交互,也可以与智能锁200建立近距离通信连接,通过建立的近距离通信连接进行数据交互;其中,建立近距离通信连接的技术包括但不限于:无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT)技术和超宽带(ultrawide band,UWB)技术等。移动设备100与智能锁200之间还可以通过通用串行总线(universal serial bus,USB)接口等建立有线通信连接,以提供更加灵活的数据传输方式。
参见图2,为本申请实施例提供的移动设备100的一种可能的结构示意图。移动设备100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对移动设备100的具体限定。在本申请另一些实施例中,移动设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者进行不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(sraphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是移动设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口 130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过移动设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为移动设备100供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
移动设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。移动设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在移动设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。
无线通信模块160可以提供应用在移动设备100上的包括WLAN(如Wi-Fi网络),蓝牙,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近场通信技术(near field communication,NFC),红外技术(infrared,IR),超宽带等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
移动设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,移动设备100可以包括1个或N个显示屏194,N为大于1的正整数。
移动设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。视频编解码器用于对数字视频压缩或解压缩。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行移动设备100的各种功能应用以及数据处理。
外部存储器接口120可以用于连接外部存储器,例如Micro SD卡,实现扩展移动设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储 功能。
移动设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键。移动设备100可以接收按键输入,产生与移动设备100的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡,移动设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。
智能锁200可以是图1中所示的智能门锁,也可以是具备各种认证解锁功能的其他种类的锁;其可以是独立的电子设备,也可以以硬件/软件/硬件和软件组合的形式集成在其他电子设备中,本申请实施例对智能锁200的具体形态不做特别限定。为了便于理解,本申请实施例中以智能门锁为例进行示例性说明,后续如无特别说明,智能锁200均表示智能门锁。
智能锁200的认证解锁方式包括但不限于:密码认证、指纹认证、语音认证、人脸认证、蓝牙认证、NFC认证等。作为一种可选的方式,智能锁200的认证解锁方式可以是单一认证方式,比如对指纹或密码进行认证;作为另一种可选的方式,智能锁200的认证方式可以是组合认证方式,比如对指纹和密码进行认证。
智能锁200也可以通过机械解锁方式解锁,比如,用户在门外可以采用机械钥匙解锁,在门内通过转动或推拉门把手的方式解锁。
智能锁200还可以通过感应解锁方式解锁,比如,智能锁200在检测到位于门内的把手被触摸时,可以进行自动解锁,以方便用户在门内快速开门。
参见图3,为本申请实施例提供的智能锁200的一种可能的结构示意图。智能锁200可以包括:处理器210、存储器220、电源模块230、USB接口240、通信模块250、音频模块261、扬声器262、麦克风263、按键271、摄像头272、显示屏273和传感器模块280等。其中,传感器模块280可以包括:指纹传感器281、触摸传感器282和距离传感器283等。
可以理解的是,本申请实施例示意的结构并不构成对智能锁200的具体限定。在本申请另一些实施例中,智能锁200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者进行不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。各部件均可以包括一个或多个。
处理器210为智能锁200的总控制单元,其可以微控制单元(microcontroller unit,MCU)或数字信号处理器210(digital signal processor,DSP)等处理单元。处理器210可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
存储器220用于存储指令和数据,处理器210通过运行存储在存储器220的指令,从而执行智能锁200的各种功能应用以及数据处理。比如,处理器210可以通过运行相关指令,执行上述的认证解锁过程。
电源模块230用于为智能锁200供电,其可以包括电池和电源管理单元,电池可以包括可充电电池和/或非充电电池。电源管理单元可以通过USB接口240接收有线充电器的 充电输入,也可以通过无线充电线圈接收无线充电输入,从而为电池充电;并可以监测电池容量和电池健康状态等参数。电源管理单元可以是独立的器件,也可以集成在处理器210中。
通信模块250可以提供应用在智能锁200上的包括WLAN(如Wi-Fi网络)、蓝牙、IR、UWB和NFC等无线通信的解决方案。处理器210可以通过通信模块250与移动设备100进行数据交互。
智能锁200可以通过音频模块261、扬声器262和麦克风263等实现音频功能,例如,语音提示、语音采集和识别等。
按键271可以是机械按键271,也可以是触摸式按键271。智能锁200可以接收按键271输入,产生与智能锁200的用户设置以及功能控制有关的键信号输入。比如,智能锁200可以对用户通过按键271输入的密码进行密码认证,以及根据用户通过按键271输入的指令进行相关的系统设置。
摄像头272用于捕获静态图像或视频;智能锁200可以通过摄像头272和处理器210实现监控、人脸采集和人脸认证等功能。
显示屏273用于显示图像和视频等,智能锁200可以通过显示屏273和处理器210实现显示功能。
指纹传感器281用于采集指纹。智能锁200可以利用采集的指纹特性实现指纹认证解锁等功能。
触摸传感器282用于检测作用于其上或附近的触摸操作,其可以设置于显示屏273上,与显示屏273组成触摸屏;也可以设置于按键271表面,与按键271组成触摸键;还可以设置在把手上,用于实现上述感应解锁功能。
距离传感器283,用于测量距离。距离传感器283可以采用红外测距、激光测距或超声波测距等技术测量距离,具体采用的算法可以是飞行时间(time of flight,TOF)测距法或三角测距法等。
用户在安装好智能锁200后,可以通过手机上相关的智能锁管理应用,对智能锁200进行配网,建立智能锁200与手机之间的通信连接。其中,该智能锁管理应用可以是独立的应用,也可以集成在其他应用中。
在建立智能锁200与手机之间的通信连接后,用户可以通过该应用查看智能锁200的状态信息和开关锁记录等信息,并可以通过该应用进行智能锁200的设置和控制操作等。
例如,用户可以通过该应用设置智能锁200在门内和门外的认证解锁方式,将门外的认证解锁方式设置为单一或组合认证方式,将门内的认证解锁方式设置为机械解锁或感应解锁。
考虑到由于空气潮湿和高温等因素的影响,触摸传感器282可能会出现误检测情况,从而导致感应解锁功能被误触发,为了提高门内感应解锁的安全性,本申请实施例中,智能锁200可以通过上述距离传感器283进行距离检测,在触摸感应认证之外,还进行距离认证,在两者都认证通过的情况下进行自动解锁。
图4示出了门内智能锁200上距离传感器283和触摸传感器282的位置示意图,如图4所示,触摸传感器282可以设置在智能锁200位于门内的把手上,用于检测作用于感应区域的触摸操作产生的触摸信号;距离传感器283可以设置在门内锁体上朝向门内的一侧, 用于检测门内遮挡物到智能锁200之间的距离。
当用户在门内握持智能锁200的把手时,智能锁200可以通过触摸传感器282检测到感应区域的触摸信号,并可以通过距离传感器283检测到一个比较小的距离(用户与智能锁200之间的距离),此时,智能锁200可以进行自动解锁,实现门内快速开门。
当门内没有人时,如果触摸传感器282由于高温潮湿等原因出现了误检测,但是由于无人遮挡距离传感器283,距离传感器283可以检测到一个比较大的距离,此时,智能锁200可以通过该距离判定门内无人而不执行解锁操作,实现更安全的感应解锁。
图5示出了智能锁进行感应解锁的一种可能的控制过程示意图,如图5所示,该过程可以包括如下步骤:
步骤S1、控制触摸传感器进行触摸检测。
步骤S2、当触摸传感器检测到触摸信号时,控制距离传感器进行距离检测。
步骤S3、判断距离传感器检测的距离是否小于或等于距离阈值,若是,则执行步骤S4,进行解锁;否则,执行步骤S5,不进行解锁。
S4、控制智能锁解锁。
S5、不执行解锁操作。
具体地,为了降低功耗,智能锁的工作状态可以包括休眠状态和唤醒状态,在休眠状态下,一些器件处于节能模式,在唤醒状态下,这些器件中的部分或全部器件被唤醒,进入正常工作模式。
本实施例中,在休眠状态下,触摸传感器可以处于正常工作模式,距离传感器可以处于节能模式;如上述步骤S2中所述的,当触摸传感器检测到触摸信号时,系统可以唤醒距离传感器,进行距离检测,以节省电量。
可以理解的是,在一些实施例中,在休眠状态下,触摸传感器和距离传感器可以均处于正常工作模式,以提高感应解锁速度。为了便于说明,本申请实施例中后续以休眠状态下距离传感器处于节能模式为例进行示例性说明。
进行距离判断采用的距离阈值可以是预设的一个阈值,该值的大小影响距离认证的灵敏度和可靠性,在具体实现时,可以通过设置一个较大的距离阈值,例如100cm,来实现较高的灵敏度;通过设置一个较小的距离阈值,例如60cm,来实现较高的可靠性;或者可以设置一个比较居中的值,例如80cm,来同时兼顾灵敏度和可靠性,本申请实施例后续以80cm为例进行示例性说明。
即,当触摸传感器检测到触摸信号后,智能锁进一步启动距离传感器进行距离检测,在检测到的距离小于或等于80cm的情况下,执行解锁操作;否则(检测到的距离大于80cm),认为触摸传感器出现误检测,不进行解锁操作。
可以理解的是,为了提高用户使用的灵活性,智能锁也可以提供距离认证的开关功能,用户可以通过在智能锁上输入指令或者通过手机上的智能锁管理应用,控制智能锁开启或关闭距离认证功能。
在实际应用中,智能锁的安装环境和锁体自身测距功能出现问题等因素,可能会影响距离认证的准确性,例如,门内智能锁正对的位置存在较近的墙体或柜子等遮挡物,该遮挡物与智能锁之间的距离小于距离阈值,这样无论用户是否开门,距离认证都会通过,从而使距离认证失效;又例如,距离传感器存在污渍遮挡或其他问题,因而测距不稳定或不 准确,此种情况下,则可能会出现用户开门时距离认证不通过,或,用户未开门时距离认证通过的情况。
考虑到上述情况,本申请实施例中,可以在智能锁中增加距离标定功能,通过该功能降低这些因素对距离认证的影响,提升距离认证的准确性和可靠性,从而进一步提高感应解锁的安全性。
具体地,当智能锁检测到满足阈值标定触发条件的情况下,可以启动距离标定功能,进入标定模式,控制距离传感器进行距离检测,根据检测的距离对距离阈值进行标定,以及判断智能锁是否存在测距方面的问题。
其中,距离标定功能可以包括:手动标定功能和/或自动标定功能,用户可以通过手动方式向智能锁输入指令,智能锁检测到该指令后,可以启动手动标定功能,进入手动标定模式;在日常运行过程中,智能锁也可以无需用户参与,在满足一定条件时自动启动自动标定功能,进入自动标定模式。
为了提高用户使用的灵活性,智能锁也可以提供自动标定功能的开关功能,用户可以通过在智能锁上输入指令或者通过手机上的智能锁管理应用,控制智能锁开启或关闭自动标定功能。
下面分别对手动标定功能和自动标定功能的标定过程进行详细说明。
手动标定功能:
参见图6,为本申请实施例提供的手动标定过程示意图,该过程可以包括如下步骤:
步骤S101、接收第一指令,进入手动标定模式。
具体地,用户在安装好智能锁,进行首次配置时,可以手动触发智能锁的手动标定功能。
作为一种可选的实现方式,用户可以在智能锁的键盘上输入第一指令,触发智能锁的手动标定功能。比如,用户在键盘上输入相关指令进入管理模式(或者用户设置模式等其他模式)后,可以按下目标按键(例如数字键“6”)从而输入第一指令,触发智能锁启动手动标定功能,使智能锁进入手动标定模式。
智能锁在用户输入相关指令后可以进行语音提示,引导用户进行相关的配置,以及向用户提示配置结果。比如,用户在键盘上输入相关指令进入管理模式后,智能锁可以发出语音提示信息:“距离标定,请按6”;用户输入数字“6”后,智能锁可以发出语音提示信息:“已进入标定模式”。
可以理解的是,用户也可以在后期使用的过程中,通过在智能锁上输入第一指令,触发智能锁启动手动标定功能。
作为另一种可选的实现方式,用户也可以通过手机向智能锁发送第一指令,触发智能锁启动手动标定功能。
图7示出了一种可能的实现方式,如图7所示,可以在智能锁与手机进行配网的过程中,在配置向导中增加手动标定的相关步骤。例如图7中的(a)和(b)所示的,当智能锁与手机建立连接后,手机可以在设备连接界面10中显示“连接成功”的提示信息101,并可以显示“下一步”选项102;用户点击“下一步”选项102后,手机可以向智能锁发送第一指令,并可以显示距离标定界面20,引导用户进行距离阈值的标定过程。智能锁在接收到第一指令后,也可以发出语音提示信息:“已进入标定模式”。
图8示出了另一种可能的实现方式,如图8所示,在手机与智能锁完成配网过程后,可以在智能锁对应的管理界面中增加手动标定选项,供用户随时进行手动标定。示例性地,如图8中的(a)所示,可以在智能锁对应的主界面30中增加“距离标定”卡片301,用户点击该卡片后,手机可以向智能锁发送第一指令,并可以如图8中的(b)所示的,显示距离标定界面20,引导用户进行距离阈值的标定过程。
可以理解的是,用户在智能锁上输入第一指令的具体操作方式不限于按键操作,用户在移动设备上进行的操作也不限于点击操作,两者也均可以是语音输入操作或手势操作等,本申请实施例对此不做特别限定,本申请实施例中所述的其他用户操作类似,为了便于说明,本申请实施例中以按键操作和点击操作为例进行示例性说明。
另外,智能锁和手机发出提示信息时,可以采用语音和/或文本方式,本申请实施例中所述的提示方式均只是一种示例,其并非用于限定本申请。
步骤S102、提示用户将门关好,并保持门内智能锁正前方无人。
智能锁接收到第一指令后,就可以进入手动标定模式进行距离阈值的标定。为了提高标定结果的准确性,智能锁在进入手动标定模式后,也可以先发出语音提示信息,引导用户正确的进行距离阈值的标定。其中,该提示信息例如可以是:“请将门关好,并保持门内智能锁正前方无人”。
对于用户通过手机发送第一指令的方式,如图7中的(b)和图8中的(b)所示,手机也可以在距离标定界面20中显示上述提示信息201。
步骤S103、接收第二指令,控制距离传感器进行N次距离检测。
为了方便用户使用,智能锁在发出上述提示信息后,还可以进一步提示用户在按照上述提示信息准备好后,可以输入第二指令,开始进行距离阈值的标定。
例如,智能锁在发出上述提示信息后,可以继续提示用户:“开始标定,请按1;返回上一级菜单,请按2”,用户输入数字“1”后,智能锁可以开始进行距离阈值的标定,并可以发出语音提示信息:“开始标定”;用户输入数字“2”后,智能锁可以返回到管理模式。
类似地,对于用户通过手机发送第一指令的方式,如图7中的(b)和图8中的(b)所示,可以在距离标定界面20中提供“开始标定”选项202。如图9中的(a)和(b)所示,用户点击“开始标定”选项202后,手机可以向智能锁发送第二指令,并可以显示标定进度提示信息211,以提高用户使用的便利性。智能锁在接收到第二指令后,可以开始进行距离阈值的标定,并且也可以发出语音提示信息:“开始标定”。
如图7中的(b)和图9中的(a)所示,为了提高灵活性,对于配置向导中的距离标定过程,距离标定界面20中也可以提供“跳过”选项203,用户可以通过选择该选项,跳过距离阈值的标定过程。
在手动标定模式下,智能锁在进行距离阈值标定时,可以控制距离传感器连续测量N次,然后根据测得的N个距离确定距离阈值。其中,N的值可以根据需要设置,比如可以是10或15等。
为了便于说明,后续将距离传感器在标定模式下测量的用于进行距离阈值标定的距离称为第一距离,将距离传感器日常运行中测量的用于进行感应解锁的距离称为第二距离。
步骤S104、判断测得的N个第一距离是否均大于目标阈值,若是,则执行步骤S105; 否则,执行步骤S106。
在测得N个第一距离后,可以根据这N个第一距离的平均值确定距离阈值。考虑到距离阈值过大时,会影响距离认证的可靠性,本实施例中,对于测量的N个第一距离,可以先判断这些距离与距离阈值的一个经验上限值(即目标阈值)的关系,根据判断结果确定是否根据这N个第一距离的平均值来确定距离阈值。
其中,该目标阈值与图5中距离阈值的设置方式类似,可以根据所需的距离认证的灵敏度和可靠性确定,具体地,该目标阈值可以与前述预设的距离阈值一致,为80cm。当然,该目标阈值也可以与该预设的距离阈值不一致,例如可以根据智能锁的安装环境等因素确定该目标阈值,其中,安装环境可以通过摄像头采集图像或用户输入指令等方式确定。
如果N个第一距离均大于该目标阈值,说明门内智能锁的正对位置没有距离智能锁比较近的家居或墙体等遮挡物,此种情况下,距离阈值可以为该目标阈值。
如果N个第一距离不是都大于该目标阈值,说明门内智能锁的正对位置可能存在距离智能锁比较近的家居或墙体等遮挡物,此种情况下,距离阈值可以根据实测的这N个第一距离的平均值确定。
步骤S105、确定距离阈值为目标阈值。
步骤S106、计算N个第一距离的标准差σ1和平均值a1。
正常情况下,在周围环境无变化的情况下,距离传感器连续测量的数据是基本一致的,如果距离传感器存在污渍或其他问题,则可能会影响测距的准确性,考虑到此种情况,本申请实施例中,可以在基于平均值确定距离阈值前,先判断距离传感器测量的距离数据(即第一距离)是否正常,以确定智能锁自身测距功能是否有问题,在确定智能锁自身测距功能正常的情况下,再标定距离阈值,以提高所标定的距离阈值的准确性。
具体地,可以采用标准差和/或平均值等参数评估距离传感器测量的距离数据是否正常,本实施例中是以标准差和平均值为例进行示例性说明,在一些实施例中,也可以采用其他参数,比如,可以采用方差或极差等其他可以表示数据的离散度的参数进行数据评估。
步骤S107、判断是否是标准差σ1大于阈值Td,或者,平均值a1小于阈值Ta,若是,则执行步骤S108;否则,执行步骤S109。
在进行数据评估时,如果距离传感器测量的各个第一距离的标准差过大(大于阈值Td),说明距离传感器测量距离不够稳定,这样,根据该距离传感器测量的距离进行的距离认证,可靠性就比较差。
如果距离传感器测量的各第一距离的平均值过小(小于阈值Ta),说明可能存在污渍遮挡了距离传感器,或者是存在距离传感器损坏等其他问题,导致距离传感器测量的数据很不准确,这样就会导致距离认证不准确。
因此,如果检测到上述情况,则可以不继续进行距离阈值的标定,此时可以提示用户智能锁存在问题,建议用户找售后进行维修或更换。
如果距离传感器测量的各第一距离的标准差和平均值都正常(即标准差σ1小于或等于阈值Td,平均值a1大于或等于阈值Ta),则说明智能锁的测距功能正常,此时可以继续进行距离阈值的标定。
其中,标准差σ1对应的阈值Td可以根据距离传感器的测量误差确定,其可以是距离传感器的最大测量误差,或者是其他值,例如:距离传感器的最小测量误差的两倍。
平均值a1对应的阈值Ta可以根据经验值确定,比如可以是10cm等数值。
在具体进行标准差和平均值判断时,两者可以同时执行,也可以先后执行,本实施例对此不做特别限定。
步骤S108、提示用户智能锁存在问题。
与前述的提示方式类似,智能锁可以通过语音方式提示用户智能锁存在问题;智能锁也可以向手机反馈标定结果,手机在接收到智能锁反馈的表示智能锁存在问题的标定结果后,如图10中的(a)所示的,可以显示提示信息212,提示用户标定失败,智能锁存在问题。
可选地,如图10中的(a)所示,手机可以提供确认选项213和重新标定选项214,当用户选择确认选项213后,手机可以继续执行后续的配置过程或者在没有其他配置过程的情况下结束配置过程;当用户选择重新标定选项214后,手机可以再次向智能锁发送第一指令或第二指令,指示智能锁重新进行距离阈值的标定过程。
步骤S109、根据平均值a1确定距离阈值。
如上所述,在确定智能锁的测距功能正常的情况下,可以继续进行距离阈值的标定。在具体实现时,可以根据距离传感器测量的N个第一距离的平均值a1确定距离阈值;在一些实施例中,也可以根据N个第一距离的中值或最大值确定距离阈值。
考虑到距离传感器本身存在测距误差,在根据平均值a1确定距离阈值时,可以将平均值a1减去一个浮动值后,作为距离阈值;该浮动值可以根据距离传感器的测量误差确定,例如可以是距离传感器的最大误差的3倍或其他值(比如1cm),浮动值的具体大小本实施例不做特别限定。
在确定出距离阈值后,智能锁可以语音提示用户已标定完成,智能锁也可以向手机反馈标定结果,手机在接收到智能锁反馈的表示智能锁已标定完成的标定结果后,如图10中的(b)所示的,可以在距离标定界面20中显示提示信息221,提示用户智能锁已成功完成距离阈值的标定过程;距离标定界面20中也可以提供确认选项222,当用户选择确认选项222后,手机可以继续执行后续的配置过程或者在没有其他配置过程的情况下结束配置过程。
可以理解的是,上述根据N个第一距离确定距离阈值的各个步骤,也可以进行调整,比如,可以在N个第一距离的标准差和平均值均正常的情况下,判断平均值与目标阈值之间的关系,在平均值大于目标阈值的情况下,确定距离阈值为目标阈值,在平均值小于或等于目标阈值的情况下,根据平均值确定距离阈值。其中,在确定标准差和平均值之前进行各第一距离与目标阈值的比较过程,可以在智能锁正对位置无比较近的遮挡物时,减少计算量,提高处理速度;在确定标准差和平均值之后进行各第一距离与目标阈值的比较过程,可以在智能锁存在问题时减少计算量。具体采用的实现方式可以根据需要选择,本实施例对此不做特别限定。
另外,智能锁初始时可以具有预设的距离阈值,此种情况下,上述手动标定功能可以作为智能锁安装配置过程中的可选步骤,用户可以通过上述手动标定功能更新该距离阈值;智能锁初始时也可以没有预设的距离阈值,此种情况下,上述手动标定功能可以作为智能锁安装配置过程中的必选步骤,用户首次通过手动标定功能确定的距离阈值即为初始的距离阈值,后期可以再次通过手动标定功能进行距离阈值的更新。
通过在智能锁中增加上述手动标定功能,用户可以在刚安装完智能锁或者在后期使用过程中,使用该手动标定功能进行距离阈值的标定,确定出更适用于当前安装环境的距离认证条件。例如,当门内智能锁正对的位置存在较近的墙体或柜子等遮挡物,该遮挡物距离智能锁70cm,小于预设的距离阈值80cm,采用该距离阈值会使距离认证失效;而通过手动标定功能,则可以确定出一个更合适的距离阈值,例如69cm,这样就可以使距离认证功能正常运行,从而就可以提高感应解锁的安全性和可靠性。
另外,用户在使用该手动标定功能进行距离阈值标定的过程中,还可以通过该功能检测由于污渍遮挡或其他问题引起的测距不稳定和不准确的情况,这样就可以及时的发现测距问题并进行解决,减少距离认证不稳定和不准确的情况,从而进一步提高感应解锁的安全性和可靠性。
自动标定功能:
参见图11,为本申请实施例提供的自动标定过程示意图,该过程可以包括如下步骤:
步骤S201、根据开关锁记录确定唤醒自动标定功能的目标时间点。
具体地,智能锁可以确定一个或多个目标时间点,每天在该目标时间点唤醒自动标定功能,进行距离阈值的自动标定。
在用户安装完智能锁后,智能锁可以在日常运行过程中记录开关锁情况;基于开关锁记录,智能锁则可以确定出每天的关门时间段(智能锁处于上锁状态),然后可以从各天均共有的关门时间段中选择一个或多个时间点作为定时唤醒自动标定功能的目标时间点。
例如,智能锁统计出每天的晚上11点到早上6点,智能锁均处于上锁状态,则可以从中选择一个或多个时间点,比如凌晨3点整,作为目标时间点,在每天的凌晨3点整唤醒自动标定功能。
考虑到通常情况下,用户在白天开关门比较频繁,夜间开关门比较少,为了减少计算量,智能锁也可以优先统计夜间的关门时间段,在能够确定出公共的关门时间段的情况下,则无需对白天的关门时间段进行统计。
为了提高灵活性,智能锁也可以提供目标时间点设置功能,与上述手动标定功能类似,用户可以通过在智能锁上输入指令,或者通过手机上的智能锁管理应用设置目标时间点,具体的实现方式与手动标定功能类似,此处不再赘述。
步骤S202、在每天的目标时间点,唤醒自动标定功能,进入自动标定模式。
在确定了目标时间点后,智能锁可以通过时间检测或定时的方式,确定是否到达目标时间点;在确定到达目标时间点后,唤醒自动标定功能,进入自动标定模式。
步骤S203、控制距离传感器进行一次距离检测。
在自动标定模式下,智能锁在进行距离阈值标定时,可以控制距离传感器测量一次,然后根据最近多天测量的第一距离进行距离阈值的标定,这样后续在基于这些距离数据检测测距稳定性时,由于所采用的距离数据在时间维度上更加丰富,因而检测结果更加可靠;而且,也可以降低功耗。
可以理解的是,智能锁也可以控制距离传感器连续测量两次,其中,连续测量的次数可以小于或等于N/2,本实施例中是以测量一次为例进行示例性说明。
步骤S204、判断自动标定模式下检测的第一距离的数量是否大于或等于N个,若是,则执行步骤S205,否则,返回执行步骤S202。
智能锁在自动标定模式下测量完距离后,可以把测量得到的第一距离存储在目标位置,然后可以判断目前存储的第一距离是否达到N个,在达到N个的情况下,进行后续的距离标定过程;否则,可以返回到步骤S202,继续进行下一次的距离测量。
步骤S205、计算最近获取的N个第一距离的标准差σ2和平均值a2。
智能锁可以根据最近获取的N个第一距离进行后续的距离阈值标定过程,以便确定最近的室内环境情况和测距功能的好坏状态。
该步骤与上述步骤S106类似,具体说明可以参见步骤S106中的相关描述,此处不再赘述。
步骤S206、判断标准差σ2是否大于阈值Td,若是,则执行步骤S202;否则,执行步骤S207。
当智能锁在自动标定模式下进行距离检测时,有可能出现下述情况:门内智能锁附近的家具布置进行了改动,或者,用户正好在门内活动,这些情况可能会导致智能锁检测的距离不稳定,因此,在进行自动标定时,智能锁可以先基于标准差进行数据稳定性判断,在所测的距离数据比较稳定的情况下,再执行步骤S207,基于平均值进行数据准确性的判断;如果所测的距离数据不稳定,则可以返回到步骤S202,继续进行下一次的距离测量。
智能锁也可以在连续多次检测到数据不稳定的情况下,执行下述步骤S208,提示用户智能锁存在问题。以智能锁每次在自动标定模式下测量一次第一距离为例,该连续次数可以大于N。
步骤S207、判断平均值a2是否小于阈值Ta,若是,则执行步骤S208;否则,执行步骤S209。
该过程与上述步骤S107中的平均值判断过程类似,具体说明可以参见步骤S107中的相关描述,此处不再赘述。
步骤S208、提示用户智能锁存在问题,并关闭感应解锁功能。
智能锁在通过自动测距功能检测到测距问题时,可以通过显示故障码的方式提示用户智能锁存在问题;智能锁也可以向手机发送故障信息,手机可以通过通知栏或短消息等形式提示用户智能锁存在问题。
考虑到用户在发现问题时有一定的延迟,因此,为了进一步提高安全性,智能锁可以在提示用户智能锁存在问题之外,关闭感应解锁功能。
步骤S209、根据平均值a2确定距离阈值。
具体地,在确定距离阈值时,可以先判断平均值a2与目标阈值(例如前述的80cm)的关系,如果平均值a2大于目标阈值,可以将目标阈值确定为当前的距离阈值;如果平均值a2小于或等于目标阈值,可以将平均值a1减去一个浮动值后,作为距离阈值。
可以理解的是,智能锁可以在首次通过自动标定功能确定出距离阈值后,可以每天都通过上述步骤S202~S209,进行一次自动标定过程;其中,在步骤S201中确定目标时间点时,智能锁可以在安装完若干天后,根据开关锁记录确定目标时间点;智能锁也可以在首次确定出目标时间点后,每天根据最近几天的开关锁记录确定一次目标时间点,对目标时间点进行更新,以提高目标时间点的准确性;或者也可以每隔多天,比如半个月或一个月,根据最近几天的开关锁记录确定一次目标时间点,对目标时间点进行更新,以节省电量。另外,在首次通过自动标定功能确定出距离阈值后,在后续启动自动标定功能后,也可以 跳过步骤S204中的数量判断过程。
智能锁也可以周期性地每隔一段时间,比如一个月或三个月,通过上述步骤S201~S209,进行一次完整的自动标定过程,在检测出测距问题或标定出距离阈值的情况下,结束本周期的自动标定过程。
另外,在一些实施例中,智能锁也可以在自动标定模式下控制距离传感器连续测量N次,以便在用户安装完智能锁未进行手动标定过程的情况下,尽早更新距离阈值。
通过上述自动标定功能,智能锁可以在日常运行过程中,自动进行距离阈值的标定,确定出更适用于当前安装环境的距离认证条件。例如,用户在安装智能锁时跳过了距离标定过程,而门内智能锁正对的位置存在较近的墙体或柜子等遮挡物,或者,由于室内布置改变,门内智能锁正对的位置存在距离比较近的柜子等遮挡物;该遮挡物距离智能锁70cm,小于当前的距离阈值80cm,采用该距离阈值会使距离认证失效;而通过自动标定功能,则可以确定出一个更合适的距离阈值,例如69cm,这样就可以使距离认证功能正常运行,从而就可以提高感应解锁的安全性和可靠性。
另外,通过该自动标定功能还可以检测由于污渍遮挡或其他问题引起的测距不稳定和不准确的情况,这样就可以及时的发现测距问题并进行解决,减少距离认证不稳定和不准确的情况,从而进一步提高感应解锁的安全性和可靠性。
在通过上述手动标定功能或自动标定功能标定完距离阈值后,智能锁就可以在触摸传感器检测到触摸信号后,将距离传感器检测的第二距离与距离阈值进行比较,在第二距离小于该距离阈值的情况下,控制智能锁解锁。
本领域技术人员可以理解,以上实施例是示例性的,并非用于限定本申请。在可能的情况下,以上步骤中的一个或者几个步骤的执行顺序可以进行调整,也可以进行选择性组合,得到一个或多个其他实施例。本领域技术人员可以根据需要从上述步骤中任意进行选择组合,凡是未脱离本申请方案实质的,都落入本申请的保护范围。
综上,本申请实施例提供的技术方案,可以通过距离标定功能,控制距离传感器进行距离检测,根据检测的距离对距离阈值进行标定,从而降低安装环境对距离认证的影响,提高感应解锁的安全性;并可以通过距离标定功能检测智能锁自身在测距方面的问题,从而减少测距问题引起的距离认证不稳定和不准确的情况,进一步提高感应解锁的安全性和可靠性。
基于同一构思,作为对上述方法的实现,本申请实施例提供了一种智能锁控制装置,该装置实施例与前述方法实施例对应,为便于阅读,本装置实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的装置能够对应实现前述方法实施例中的全部内容。
图12为本申请实施例提供的智能锁控制装置的结构示意图,如图12所示,本实施例提供的装置包括:
显示模块310、输入模块320、处理模块330、通信模块340和通知模块350。
其中,显示模块310用于支持电子设备执行上述实施例中的界面显示操作和/或用于本文所描述的技术的其它过程。显示模块可以是触摸屏或其他硬件或硬件与软件的综合体。其中,该电子设备可以是上述的智能锁或移动设备。
输入模块320用于接收用户在电子设备上的输入,如触摸输入、语音输入、手势输入 等,输入模块用于支持电子设备执行上述实施例中接收用户操作的步骤和/或用于本文所描述的技术的其它过程。输入模块可以是触摸屏或其他硬件或硬件与软件的综合体。
处理模块330用于支持电子设备执行上述实施例中各方法步骤中的处理操作和/或用于本文所描述的技术的其它过程。
通信模块340用于支持电子设备执行上述实施例中与其他电子设备之间的通信过程相关的操作和/或用于本文所描述的技术的其它过程。
通知模块350用于支持电子设备执行上述实施例中各方法步骤中的提示操作和/或用于本文所描述的技术的其它过程。
本实施例提供的装置可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。
本申请实施例还提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行时实现上述方法实施例所述的方法。其中,该电子设备可以是上述的智能锁或移动设备。
本申请实施例还提供一种芯片系统,包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述方法实施例所述的方法。其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如软盘、硬盘或磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质可以包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
应当理解,在本申请说明书和所附权利要求书的描述中,术语“包括”、“包含”、“具有”以及它们的任何变形,意图在于覆盖不排他的包含,都意味着“包括但不限于”,除非是以其他方式另外特别强调。例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。
在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”用于描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A、B可以是单数或者复数。
并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项”或其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b,或c中的至少一项,可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序,也不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。 本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (17)

  1. 一种智能锁的控制方法,其特征在于,所述智能锁上具有距离传感器和触摸传感器,所述方法包括:
    在检测到满足阈值标定触发条件的情况下,进入标定模式,控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值,n为大于1的整数;
    在检测到满足解锁条件的情况下,控制所述智能锁解锁,其中,所述解锁条件包括:所述触摸传感器检测到触摸信号,并且,所述距离传感器检测到的第二距离小于所述距离阈值。
  2. 根据权利要求1所述的方法,其特征在于,所述标定模式包括:手动标定模式,和/或,自动标定模式;
    所述手动标定模式对应的阈值标定触发条件包括:接收到第一指令,所述第一指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的;
    所述自动标定模式对应的阈值标定触发条件包括:到达目标时间点。
  3. 根据权利要求2所述的方法,其特征在于,在手动标定模式下,所述方法还包括:
    在控制所述距离传感器进行距离检测前,发出提示信息,所述提示信息用于提示用户将门关好,并保持门内智能锁正前方无人。
  4. 根据权利要求3所述的方法,其特征在于,在发出所述提示信息后,在接收到第二指令的情况下,控制所述距离传感器进行距离检测,所述第二指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的。
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述目标时间点是根据第一时间段内的开关锁记录确定的,在所述第一时间段内,在每日的所述目标时间点,所述智能锁处于关锁状态。
  6. 根据权利要求2-5任一项所述的方法,其特征在于,在所述手动标定模式下,所述控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值,包括:
    控制所述距离传感器进行多次距离检测,得到n个第一距离;
    在所述n个第一距离均大于目标阈值的情况下,确定所述距离阈值为所述目标阈值;
    在至少一个所述第一距离小于或等于所述目标阈值的情况下,根据所述n个第一距离对应的第一离散度和第一平均值,确定所述距离阈值。
  7. 根据权利要求6所述的方法,其特征在于,在所述第一离散度小于或等于离散度阈值,并且,所述第一平均值大于或等于平均值阈值的情况下,根据所述第一平均值确定所述距离阈值。
  8. 根据权利要求6或7所述的方法,其特征在于,所述方法还包括:
    在所述第一离散度大于离散度阈值,或者,所述第一平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题。
  9. 根据权利要求2-8任一项所述的方法,其特征在于,在所述自动标定模式下,所述控制所述距离传感器进行距离检测,获得n个第一距离后,根据所述n个第一距离确定距离阈值,包括:
    控制所述距离传感器进行距离检测,得到第一距离;
    如果在所述自动标定模式下检测的第一距离的数量大于或等于目标数量,则根据最近获取的所述目标数量个第一距离对应的第二离散度和第二平均值,确定所述距离阈值,所述目标数量等于n。
  10. 根据权利要求9所述的方法,其特征在于,在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值大于或等于平均值阈值的情况下,如果所述第二平均值大于或等于目标阈值,则确定所述距离阈值为所述目标阈值;如果所述第二平均值小于所述目标阈值,则根据所述第二平均值确定所述距离阈值。
  11. 根据权利要求9或10所述的方法,其特征在于,所述方法还包括:
    在所述第二离散度小于或等于离散度阈值,并且,所述第二平均值小于平均值阈值的情况下,提示用户所述智能锁存在问题,并关闭门内感应解锁功能。
  12. 根据权利要求2-11任一项所述的方法,其特征在于,所述方法还包括:
    接收第三指令,开启或关闭所述自动标定模式,所述第三指令是用户在所述智能锁上输入的,或,移动设备基于用户操作发送的。
  13. 一种智能锁控制系统,其特征在于,包括:智能锁和移动设备,其中,所述智能锁上具有距离传感器和触摸传感器;
    所述移动设备用于:响应于第一操作,向所述智能锁发送第一指令;
    所述智能锁用于:在接收到所述第一指令后,进入手动标定模式,控制所述距离传感器进行距离检测,获得n个第一距离后,根据n个所述第一距离确定距离阈值;并在检测到满足解锁条件的情况下,控制所述智能锁解锁;
    其中,n为大于1的整数,所述解锁条件包括:所述触摸传感器检测到触摸信号,并且,所述距离传感器检测到的第二距离小于所述距离阈值。
  14. 一种智能锁,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用所述计算机程序时执行如权利要求1-12任一项所述的方法。
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-12任一项所述的方法。
  16. 一种计算机程序产品,其特征在于,当计算机程序产品在电子设备上运行时,使得电子设备执行如权利要求1-12任一项所述的方法。
  17. 一种芯片系统,其特征在于,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现如权利要求1-12任一项所述的方法。
PCT/CN2023/096849 2022-06-01 2023-05-29 智能锁的控制方法、智能锁控制系统和智能锁 WO2023231968A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210620821.X 2022-06-01
CN202210620821.XA CN117197927A (zh) 2022-06-01 2022-06-01 智能锁的控制方法、智能锁控制系统和智能锁

Publications (1)

Publication Number Publication Date
WO2023231968A1 true WO2023231968A1 (zh) 2023-12-07

Family

ID=88993023

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096849 WO2023231968A1 (zh) 2022-06-01 2023-05-29 智能锁的控制方法、智能锁控制系统和智能锁

Country Status (2)

Country Link
CN (1) CN117197927A (zh)
WO (1) WO2023231968A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791053A (zh) * 2016-12-07 2017-05-31 北京小米移动软件有限公司 距离传感器的感应阈值校准方法及装置
CN111366939A (zh) * 2020-02-20 2020-07-03 Oppo(重庆)智能科技有限公司 距离传感器的校准方法、装置、终端及存储介质
CN111798691A (zh) * 2020-05-29 2020-10-20 领翌技术(横琴)有限公司 车位地锁的控制方法和系统
CN113327353A (zh) * 2021-06-02 2021-08-31 广东好太太智能家居有限公司 一种智能门锁的解锁方法、智能门锁以及智能门锁系统
CN113870466A (zh) * 2021-10-20 2021-12-31 广东好太太智能家居有限公司 一种智能锁感应解锁方法及装置、存储介质
US20220109561A1 (en) * 2019-06-20 2022-04-07 Huawei Technologies Co., Ltd. Smart lock unlocking method and related device
CN114320029A (zh) * 2021-12-17 2022-04-12 上海爱信诺航芯电子科技有限公司 一种低功耗抗干扰的智能门锁及唤醒方法
WO2022100257A1 (zh) * 2020-11-10 2022-05-19 Oppo广东移动通信有限公司 基于uwb的智能锁控制方法及装置、介质和电子设备

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791053A (zh) * 2016-12-07 2017-05-31 北京小米移动软件有限公司 距离传感器的感应阈值校准方法及装置
US20220109561A1 (en) * 2019-06-20 2022-04-07 Huawei Technologies Co., Ltd. Smart lock unlocking method and related device
CN111366939A (zh) * 2020-02-20 2020-07-03 Oppo(重庆)智能科技有限公司 距离传感器的校准方法、装置、终端及存储介质
CN111798691A (zh) * 2020-05-29 2020-10-20 领翌技术(横琴)有限公司 车位地锁的控制方法和系统
WO2022100257A1 (zh) * 2020-11-10 2022-05-19 Oppo广东移动通信有限公司 基于uwb的智能锁控制方法及装置、介质和电子设备
CN113327353A (zh) * 2021-06-02 2021-08-31 广东好太太智能家居有限公司 一种智能门锁的解锁方法、智能门锁以及智能门锁系统
CN113870466A (zh) * 2021-10-20 2021-12-31 广东好太太智能家居有限公司 一种智能锁感应解锁方法及装置、存储介质
CN114320029A (zh) * 2021-12-17 2022-04-12 上海爱信诺航芯电子科技有限公司 一种低功耗抗干扰的智能门锁及唤醒方法

Also Published As

Publication number Publication date
CN117197927A (zh) 2023-12-08

Similar Documents

Publication Publication Date Title
US11314898B2 (en) Operating method of electronic device for function execution based on voice command in locked state and electronic device supporting the same
EP2930705B1 (en) Method and apparatus for controlling smart terminal
KR101837333B1 (ko) 전자 디바이스를 깨우기 위한 방법 및 장치
WO2019157804A1 (zh) 指纹解锁方法及装置
CN107291313B (zh) 一种指纹唤醒的控制方法、装置、存储介质及移动终端
EP3779105B1 (en) Door lock, door lock control method
CN110300970B (zh) 解锁控制方法及相关产品
CN107015703B (zh) 解锁控制方法及相关产品
US20150362979A1 (en) Touch Screen Terminal and Working Method Thereof
CN102938820A (zh) 手机接近唤醒方法和装置
US9532309B2 (en) Control methods and apparatuses of mobile terminals
CN110310391B (zh) 触摸唤醒方法、装置、电子设备及存储介质
KR20140027875A (ko) 메인 프로세서를 웨이크 업 하기 위한 초 저전력 장치 및 방법
CN107172267B (zh) 指纹识别控制方法及相关产品
CN110363888B (zh) 门锁管理方法、装置、电子设备及可读取存储介质
KR101845877B1 (ko) Mcu를 웨이크업 시키기 위한 방법 및 디바이스
CN108937808B (zh) 洗碗机门控方法、洗碗机及计算机可读存储介质
WO2019052551A1 (zh) 终端设备的交互方法、存储介质以及终端设备
CN104751586A (zh) 一种终端、信息处理的方法及装置
CN107257408B (zh) 主屏页面显示方法、终端及计算机可读存储介质
CN112128925B (zh) 智能遥控空调的方法、智能终端和存储介质
CN105451011B (zh) 调节功率的方法和装置
KR20150086932A (ko) 데이터 처리 방법 및 그 전자 장치
US11476684B2 (en) Charging protection method, terminal, and charger
WO2023231968A1 (zh) 智能锁的控制方法、智能锁控制系统和智能锁

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23815148

Country of ref document: EP

Kind code of ref document: A1