A smart lock unlocking method, an electronic device, and a computer readable storage medium

CN118230448BActive Publication Date: 2026-09-18HANGZHOU HUACHENG NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410145106.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2026-09-18
Estimated Expiration
2044-02-01

AI Technical Summary

Technical Problem

[0003]目前在智能锁系统电量异常或者电池电量不足时,智能锁外置供电的电源通常为充电宝,而充电宝的瞬时输出功率与恒定功率可能无法满足智能锁的解锁条件,容易出现智能锁的电压跌落,从而导致智能锁掉电重启,无法正常解锁的问题

Benefits of technology

[0015]The beneficial effects of this application are as follows: In response to an external charging device supplying power to the smart lock, the current voltage and current of the smart lock are obtained; the motor power modulation parameters in the smart lock are determined based on the current voltage and current of the smart lock; and the smart lock is unlocked based on the motor power modulation parameters. This method, when an external charging device supplies power to the smart lock, improves the compatibility of the external charging device by using the motor power modulation parameters determined from the current voltage and current of the smart lock for unlocking, thereby increasing the success rate of unlocking the smart lock.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230448B_ABST
    Figure CN118230448B_ABST
Patent Text Reader

Abstract

The application discloses an intelligent lock unlocking method, an electronic device and a computer readable storage medium. The method comprises the following steps: in response to the fact that an external charging device supplies power to the intelligent lock, acquiring the current voltage and the current current of the intelligent lock; determining the motor power modulation parameter in the intelligent lock according to the current voltage and the current current of the intelligent lock; and performing the unlocking processing of the intelligent lock according to the motor power modulation parameter. In the above manner, when the external charging device supplies power to the intelligent lock, the motor power modulation parameter determined according to the current voltage and the current current of the intelligent lock is used to perform the unlocking processing of the intelligent lock, so that the adaptability of the external charging device can be improved, and the unlocking success rate of the intelligent lock can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart lock technology, and in particular to a smart lock unlocking method, electronic device, and computer-readable storage medium. Background Technology

[0002] Smart locks are becoming increasingly popular, not only making life more convenient but also improving home security. Smart locks typically feature fingerprint recognition, passwords, or IC cards. Using these functions requires electrical power for verification and unlocking. Due to the unique nature of stand-alone smart lock installations, they are generally powered by internal batteries. If the smart lock system experiences power issues or the battery is low, unlocking can be achieved through an external power source.

[0003] Currently, when the power of a smart lock system is abnormal or the battery is low, the external power source for the smart lock is usually a power bank. However, the instantaneous output power and constant power of the power bank may not be able to meet the unlocking conditions of the smart lock, which can easily cause the voltage of the smart lock to drop, resulting in the smart lock losing power and restarting, and failing to unlock normally. Summary of the Invention

[0004] The main technical problem addressed by this application is to provide a smart lock unlocking method, electronic device, and computer-readable storage medium that can improve the unlocking success rate of smart locks.

[0005] To solve the above-mentioned technical problems, one technical solution adopted in this application is: to provide a smart lock unlocking method, the method comprising: in response to an external charging device supplying power to the smart lock, acquiring the current voltage and current of the smart lock; determining motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock; and performing unlocking processing on the smart lock based on the motor power modulation parameters.

[0006] In some embodiments, the step of unlocking the smart lock based on the motor power modulation parameters includes: adjusting the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current; and unlocking the smart lock based on the adjusted voltage and current.

[0007] In some embodiments, the step of adjusting the current voltage and current of the smart lock according to the motor power modulation parameters to obtain adjusted voltage and current includes: in response to the motor power modulation parameters being less than a preset power threshold, reducing the current voltage and current of the smart lock to obtain reduced voltage and current; the step of unlocking the smart lock based on the adjusted voltage and current includes: controlling the smart lock to perform unlocking with the reduced voltage and current.

[0008] In some embodiments, the step of adjusting the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current includes: in response to the motor power modulation parameters being equal to a preset power threshold, maintaining the voltage of the smart lock at the current voltage and the current of the smart lock at the current current; the step of performing the unlocking process of the smart lock based on the adjusted voltage and adjusted current includes: controlling the smart lock to perform the unlocking process with the current voltage and current.

[0009] In some embodiments, the step of unlocking the smart lock based on the adjusted voltage and adjusted current includes: controlling the motor to move the lock body of the smart lock with the adjusted voltage and adjusted current; detecting whether the moving distance of the lock body is greater than a preset distance threshold; if so, controlling the motor to stop rotating within a preset time period so that the lock body remains unlocked within the preset time period.

[0010] In some embodiments, the step of determining the motor power modulation parameters in the smart lock based on the current voltage and current current of the smart lock includes: comparing the current voltage of the smart lock with a preset voltage threshold and comparing the current current of the smart lock with a preset current threshold to obtain a comparison result; and determining the motor power modulation parameters in the smart lock based on the comparison result.

[0011] In some embodiments, the step of determining the motor power modulation parameter in the smart lock based on the comparison result includes: in response to the comparison result indicating that the current voltage of the smart lock is greater than or equal to the preset voltage threshold and the current current of the smart lock is less than the preset current threshold, determining the preset power threshold as the motor power modulation parameter; in response to the comparison result indicating that the current voltage of the smart lock is greater than or equal to the preset voltage threshold and the current current of the smart lock is greater than or equal to the preset current threshold, determining a first ratio between the square of the preset current threshold and the square of the current current as the motor power modulation parameter; in response to the comparison result... If the current voltage of the smart lock is less than the preset voltage threshold and the current current of the smart lock is less than the preset current threshold, then the second ratio between the cube of the current voltage and the cube of the preset voltage threshold is determined as the motor power modulation parameter; in response to the comparison result indicating that the current voltage of the smart lock is less than the preset threshold voltage and the current current of the smart lock is greater than or equal to the preset threshold current, then the third ratio between the square of the preset current threshold and the square of the current current and the fourth ratio between the current voltage and the preset voltage threshold are calculated, and the product of the third ratio and the fourth ratio is determined as the motor power modulation parameter.

[0012] In some embodiments, before obtaining the current voltage and current of the smart lock in response to an external charging device supplying power to the smart lock, the method further includes: obtaining the initial voltage of the smart lock; and determining that the power supply state of the smart lock is that the external charging device is supplying power to the smart lock in response to the initial voltage of the smart lock not being within a preset voltage range.

[0013] To solve the above-mentioned technical problems, another technical solution adopted in this application is: to provide an electronic device, including a memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the above-mentioned smart lock unlocking method.

[0014] To solve the above-mentioned technical problems, another technical solution adopted in this application is to provide a computer-readable storage medium including program data, which, when executed by a processor, is used to implement the above-mentioned smart lock unlocking method.

[0015] The beneficial effects of this application are as follows: In response to an external charging device supplying power to the smart lock, the current voltage and current of the smart lock are obtained; the motor power modulation parameters in the smart lock are determined based on the current voltage and current of the smart lock; and the smart lock is unlocked based on the motor power modulation parameters. This method, when an external charging device supplies power to the smart lock, improves the compatibility of the external charging device by using the motor power modulation parameters determined from the current voltage and current of the smart lock for unlocking, thereby increasing the success rate of unlocking the smart lock. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly described below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein: Figure 1 This is a flowchart illustrating an exemplary embodiment of the smart lock unlocking method shown in this application; Figure 2 yes Figure 1 A flowchart illustrating an exemplary embodiment of step S130 in the smart lock unlocking method is shown. Figure 3 yes Figure 2 A flowchart illustrating an exemplary embodiment of step S220 in the smart lock unlocking method is shown. Figure 4 yes Figure 1 A flowchart illustrating an exemplary embodiment of step S120 in the smart lock unlocking method is shown. Figure 5 yes Figure 1 A flowchart illustrating an exemplary embodiment of the smart lock unlocking method prior to step S110; Figure 6 This is a schematic diagram of a specific process of an exemplary embodiment of the smart lock unlocking method shown in this application; Figure 7 This is a schematic diagram of an exemplary embodiment of the smart lock unlocking device shown in this application; Figure 8 This is a schematic diagram of the structure of an embodiment of the electronic device provided in this application; Figure 9 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are only for explaining this application and not for limiting it. Furthermore, it should be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not all structures. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0018] First, it should be noted that with the rapid development of smart homes, smart locks have gradually become a new type of product. During the unlocking process of a smart lock, the instantaneous current will surge when the motor starts, and the voltage of the smart lock will drop. If the output of the external charging device cannot reach the instantaneous peak power when the motor starts, it will cause the smart lock to lose power and restart, resulting in the inability to unlock normally.

[0019] Existing external charging devices are usually power banks. Different models of power banks on the market have inconsistent instantaneous output power and constant power. In addition, the installation environment of smart locks is inconsistent, which also leads to inconsistencies in the instantaneous peak power and constant power required for the motor of the smart lock to rotate. Therefore, when the instantaneous output power and constant power of the power bank cannot meet the unlocking conditions of the smart lock, the voltage of the smart lock is prone to drop, the power bank enters the protection state, and the smart lock eventually loses power and restarts, and cannot unlock the smart lock normally.

[0020] Based on this, this application proposes a smart lock unlocking method that can improve the compatibility with external charging devices, thereby increasing the success rate of smart lock unlocking.

[0021] The execution entity of the smart lock unlocking method can be a terminal device, a server, or other processing device. The terminal device can be a user equipment (UE), computer, mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, etc. The execution entity of the smart lock unlocking method can also be a smart lock unlocking device. In some possible implementations, the smart lock unlocking method can be implemented by a processor calling computer-readable instructions stored in memory.

[0022] Specifically, please refer to Figure 1 , Figure 1 This is a flowchart illustrating an exemplary embodiment of the smart lock unlocking method shown in this application.

[0023] S110: In response to an external charging device supplying power to the smart lock, obtain the current voltage and current of the smart lock.

[0024] An external charging device refers to a device used to power a smart lock. Examples of external charging devices include power banks, portable power banks, and mobile phones that support reverse charging. Different models of power banks have different voltage specifications, typically 5000mV, 9000mV, etc.

[0025] Smart locks are a new type of door lock based on electronic and wireless communication technologies. They are unlocked via smartphones, passwords, fingerprints, etc., and feature high security, convenience, and flexibility. Smart locks are typically installed independently on the door and do not rely on an external power source for continuous and stable power. Therefore, the built-in power supply, such as the battery, needs to be replaced periodically to prevent insufficient power. To address the issue of a smart lock being unable to unlock due to low battery, manufacturers incorporate an external interface into the production process. This interface allows connection to an external charging device and activation of an emergency unlocking mode, enabling the lock to unlock.

[0026] Current voltage refers to the potential energy of a unit charge in the circuit of the smart lock in its current state.

[0027] Current current refers to the amount of charge flowing in the current of the smart lock in its current state.

[0028] When the smart lock is powered by an external charging device, i.e., when the smart lock is in emergency unlocking mode, the smart lock unlocking device can obtain the current voltage and current of the smart lock in real time.

[0029] S120: Determine the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock.

[0030] Motor power modulation parameters refer to the duty cycle used in smart lock motor drives to control motor speed or output power using pulse width modulation signals. The duty cycle is the ratio of the duration of a high-level signal to the duration of a complete cycle. Generally, higher motor power modulation parameters result in higher average voltage and current in the smart lock, and faster motor speed; conversely, lower parameters result in lower average voltage and current, and slower motor speed.

[0031] The smart lock unlocking device obtains the current voltage and current of the smart lock, and determines the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock, so as to achieve real-time control of the voltage and current of the smart lock and prevent the smart lock from failing to unlock normally due to voltage drop.

[0032] S130: The smart lock is unlocked based on the motor power modulation parameters.

[0033] The smart lock unlocking device dynamically adjusts the voltage and current of the smart lock according to the motor power modulation parameters, controls the speed of the motor in the smart lock to perform the unlocking process, and prevents the smart lock from experiencing sudden current surges or voltage drops, which could cause the smart lock to power off and restart, making it unable to unlock normally.

[0034] As can be seen, the smart lock unlocking method of this application embodiment responds to the external charging device supplying power to the smart lock by acquiring the current voltage and current of the smart lock; determining the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock; and performing the unlocking process of the smart lock based on the motor power modulation parameters. This method, when the external charging device supplies power to the smart lock, improves the compatibility of the external charging device by performing the unlocking process of the smart lock using the motor power modulation parameters determined by the current voltage and current of the smart lock, thereby increasing the unlocking success rate of the smart lock.

[0035] Based on the above embodiments, the embodiments of this application adopt... Figure 2 The flowchart illustrates how the smart lock is unlocked using motor power modulation parameters. Please refer to [link / reference]. Figure 2 , Figure 2 yes Figure 1 The illustrated flowchart shows an exemplary embodiment of step S130 in the smart lock unlocking method. Specifically, the process of unlocking the smart lock according to the motor power modulation parameters in step S130 includes the following steps: S210: Adjust the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current.

[0036] The smart lock unlocking device determines the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock, and adjusts the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current. Specifically, when the motor power modulation parameters are less than a preset power threshold, the current voltage and current of the smart lock are reduced to obtain the reduced voltage and current; when the motor power modulation parameters are equal to the preset power threshold, the voltage and current of the smart lock are maintained at the current voltage and current. The preset power threshold can be 100%, meaning that the high-level signal lasts for the entire cycle.

[0037] When the motor power modulation parameter is less than the preset power threshold, that is, the duration of the high level of the motor does not occupy the entire cycle time. A cycle includes both high and low levels. The high level time obtained by the smart lock in a cycle decreases, and the voltage and current of the smart lock will decrease accordingly. When the motor power modulation parameter is equal to the preset power threshold, that is, the duration of the high level of the motor occupies the entire cycle. At this time, the high level time obtained by the smart lock in a cycle does not decrease. Therefore, the voltage and current of the smart lock can be maintained at the current voltage and current.

[0038] In other embodiments, the smart lock unlocking device can adjust the current voltage of the smart lock independently based on the motor power modulation parameters to obtain the adjusted voltage; or adjust the current of the smart lock independently based on the motor power modulation parameters to obtain the adjusted current.

[0039] S220: The smart lock is unlocked based on the adjusted voltage and adjusted current.

[0040] The smart lock unlocking device performs unlocking based on adjusted voltage and current. Specifically, when the motor power modulation parameters are less than a preset power threshold, the current voltage and current of the smart lock are reduced to obtain the reduced voltage and current, and the smart lock is controlled to perform unlocking with the reduced voltage and current. When the motor power modulation parameters are equal to the preset power threshold, the voltage and current of the smart lock are maintained at the current voltage and current, and the smart lock is controlled to perform unlocking with the current voltage and current.

[0041] In other embodiments, the smart lock unlocking device can unlock the smart lock using an adjusted voltage and the current current; it can also unlock the smart lock using an adjusted current and the current voltage.

[0042] As can be seen, the smart lock unlocking method of this application adjusts the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current; the smart lock is then unlocked based on the adjusted voltage and current. Thus, by controlling the voltage and current of the smart lock in real time through the motor power modulation parameters, voltage drops or current surges in the smart lock are prevented.

[0043] Based on the above embodiments, the embodiments of this application adopt... Figure 3 The flowchart details how to unlock a smart lock; please refer to [link / reference]. Figure 3 , Figure 3 yes Figure 2The illustrated flowchart shows an exemplary embodiment of step S220 in the smart lock unlocking method. Specifically, the process of unlocking the smart lock based on the adjusted voltage and adjusted current in step S220 includes the following steps: S310: Controls the motor to move the lock body of the smart lock with adjusted voltage and current.

[0044] The motor in a smart lock drives the lock body to extend, retract, and lock. When the motor receives an unlocking or locking command, the control circuit provides the corresponding current and voltage to the motor, causing it to rotate and push the lock body to extend, retract, or lock.

[0045] The lock body is a component used to lock or unlock a door. The rotation of the motor in a smart lock causes the lock body to move; when the motor rotates forward, the lock body is pushed inward, and when the motor rotates in reverse, the lock body is pushed outward.

[0046] The smart lock unlocking device dynamically adjusts the voltage and current supplied to the motor in the smart lock according to the motor power modulation parameters, so as to control the motor to drive the lock body of the smart lock to retract inward with the adjusted voltage and current.

[0047] In other embodiments, the smart lock unlocking device can also control the electromagnet in the smart lock to attract or release the lock body using adjusted voltage and adjusted current.

[0048] In other embodiments, the smart lock unlocking device may also control the movement of the lock body by adjusting the voltage and current of the hydraulic or actuation mechanism of the smart lock.

[0049] S320: Detect whether the movement distance of the lock body is greater than the preset distance threshold.

[0050] The movement distance refers to the distance the bolt travels from its initial position to its final position during the operation of the smart lock. The movement distance of the lock body is determined by the rotation distance of the motor. In this embodiment, the movement distance of the lock body refers to the distance the lock body retracts inward.

[0051] The preset distance threshold refers to the distance the lock body needs to move away from the keyhole, which is typically located on the door frame. For example, the preset distance threshold can be greater than or equal to the length of the bolt extending into the keyhole.

[0052] The smart lock unlocking device detects the movement distance of the lock body and determines whether the movement distance is greater than a preset distance threshold. When the movement distance of the lock body is greater than the preset distance threshold, it means that the movement distance of the lock body meets the unlocking conditions of the smart lock. When the movement distance of the lock body is less than the preset distance threshold, the lock body of the smart lock is blocked by the keyhole and cannot be opened normally.

[0053] In other embodiments, the smart lock unlocking device can also detect whether the swing angle of the lock body is greater than a preset swing angle. This is not specifically limited here and can be determined according to the installation environment of the lock body.

[0054] S330: If so, the motor will be stopped within a preset time period so that the lock body remains unlocked within the preset time period.

[0055] The preset time period can be set according to the actual situation. Specifically, it can be set according to the time it takes for the user to perform the door opening action, usually 3 to 5 seconds.

[0056] The unlocked state means that the lock body moves inward a distance greater than a preset distance threshold, and the smart lock body will not be blocked by the keyhole, allowing the user to push the door normally.

[0057] When the smart lock unlocking device determines that the movement distance of the lock body exceeds a preset threshold, it controls the motor to stop rotating for a preset time period. This ensures that the lock body maintains the same movement distance within the preset time period, allowing the user to push the door normally. After the preset time period, a certain voltage and current are supplied to the motor to cause it to reverse, controlling the lock body to extend outward and reset.

[0058] As can be seen, the smart lock unlocking method of this application embodiment controls the motor to drive the lock body of the smart lock to move with adjusted voltage and adjusted current; detects whether the moving distance of the lock body is greater than a preset distance threshold; if so, controls the motor to stop rotating within a preset time period, so that the lock body remains unlocked within the preset time period. Thus, by controlling the lock body to remain unlocked within the preset time period, the user can complete the door opening action within the preset time period.

[0059] Based on the above embodiments, the embodiments of this application adopt... Figure 4 The flowchart details how to determine the motor power modulation parameters in the smart lock using the current voltage and current of the smart lock. Please refer to [link / reference]. Figure 4 , Figure 4 yes Figure 1 The illustrated flowchart shows an exemplary embodiment of step S120 in the smart lock unlocking method. Specifically, the process of determining the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock in step S120 includes the following steps: S410: Compare the current voltage of the smart lock with the preset voltage threshold and compare the current current of the smart lock with the preset current threshold to obtain the comparison result.

[0060] The preset voltage threshold refers to the voltage drop that may occur when the current voltage of the smart lock is lower than the preset voltage threshold. For example, the preset voltage threshold can be the minimum voltage of the smart lock obtained through prior testing.

[0061] The preset current threshold refers to the voltage drop that may occur when the current of the smart lock exceeds the preset current threshold. For example, the minimum current of the smart lock can be determined through prior testing.

[0062] The comparison results include the relationship between the current voltage of the smart lock and the preset voltage threshold, as well as the relationship between the current current of the smart lock and the preset current threshold.

[0063] The smart lock unlocking device compares the relationship between the current voltage of the smart lock and a preset voltage threshold, and the relationship between the current current of the smart lock and a preset current threshold.

[0064] In other embodiments, the smart lock unlocking device only compares the current voltage of the smart lock with a preset voltage threshold; or only compares the current current of the smart lock with a preset current threshold.

[0065] S420: Determine the motor power modulation parameters in the smart lock based on the comparison results.

[0066] The smart lock unlocking device determines the motor power modulation parameters in the smart lock based on the relationship between the current voltage of the smart lock and the preset voltage threshold, and the relationship between the current current of the smart lock and the preset current threshold.

[0067] Specifically, in response to the comparison result indicating that the current voltage of the smart lock is greater than or equal to a preset voltage threshold and the current current of the smart lock is less than a preset current threshold, the preset power threshold is determined as the motor power modulation parameter.

[0068] For example, the preset power threshold can be 100%. The comparison result can be expressed as:

[0069] in, Indicates the preset voltage threshold. This indicates the current voltage of the smart lock. Indicates the preset current threshold. This indicates the current of the smart lock. The motor power modulation parameters can be expressed as:

[0070] in, This indicates the motor power modulation parameters.

[0071] In response to the comparison result indicating that the current voltage of the smart lock is greater than or equal to a preset voltage threshold and the current current of the smart lock is greater than or equal to a preset current threshold, the first ratio between the square of the preset current threshold and the square of the current current is determined as the motor power modulation parameter.

[0072] For example, the comparison result can be expressed as:

[0073] in, Indicates the preset voltage threshold. This indicates the current voltage of the smart lock. Indicates the preset current threshold. This indicates the current of the smart lock. It indicates that...

[0074] When the current voltage of the smart lock is greater than or equal to a preset voltage threshold and the current current of the smart lock is greater than or equal to a preset current threshold, the calculation of the motor power modulation parameters satisfies the following formula:

[0075] in, Indicates the motor power modulation parameters. Indicates the preset current threshold. This indicates the current current of the smart lock.

[0076] In response to the comparison result indicating that the current voltage of the smart lock is less than a preset voltage threshold and the current current of the smart lock is less than a preset current threshold, the second ratio between the cube of the current voltage and the cube of the preset voltage threshold is determined as the motor power modulation parameter.

[0077] For example, the comparison result can be expressed as:

[0078] in, Indicates the preset voltage threshold. This indicates the current voltage of the smart lock. Indicates the preset current threshold. This indicates the current of the smart lock. It indicates that...

[0079] When the current voltage of the smart lock is less than a preset voltage threshold and the current current of the smart lock is less than a preset current threshold, the calculation of the motor power modulation parameters satisfies the following formula:

[0080] in, Indicates the motor power modulation parameters. Indicates the preset voltage threshold. This indicates the current voltage of the smart lock.

[0081] In response to the comparison results indicating that the current voltage of the smart lock is less than the preset threshold voltage and the current current of the smart lock is greater than or equal to the preset threshold current, the third ratio between the square of the preset current threshold and the square of the current current and the fourth ratio between the current voltage and the preset voltage threshold are calculated, and the product of the third ratio and the fourth ratio is determined as the motor power modulation parameter.

[0082] For example, the comparison result can be expressed as:

[0083] in, This indicates the current voltage of the smart lock. Indicates the preset voltage threshold. Indicates the preset current threshold. This indicates the current of the smart lock. It indicates that...

[0084] When the current voltage of the smart lock is less than the preset threshold voltage and the current current of the smart lock is greater than or equal to the preset threshold current, the calculation of the motor power modulation parameters satisfies the following formula:

[0085] in, Indicates the motor power modulation parameters. Indicates the preset current threshold. This indicates the current of the smart lock. Indicates the preset voltage threshold. This indicates the current voltage of the smart lock.

[0086] In other embodiments, when a comparison result is obtained by comparing the current voltage of the smart lock with a preset voltage threshold, the smart lock unlocking device determines the preset power threshold as a motor power modulation parameter in response to the comparison result indicating that the current voltage is greater than or equal to the preset voltage threshold; and determines the fifth ratio between the cube of the current voltage and the cube of the preset voltage threshold as a motor power modulation parameter in response to the comparison result indicating that the current voltage is less than or equal to the preset voltage threshold.

[0087] In other embodiments, when a comparison result is obtained by comparing the current current of the smart lock with a preset current threshold, the smart lock unlocking device determines the preset power threshold as a motor power modulation parameter in response to the comparison result indicating that the current current is less than or equal to the preset voltage threshold; and determines the fifth ratio between the square of the current current and the square of the preset current threshold as a motor power modulation parameter in response to the comparison result indicating that the current current is less than or equal to the preset voltage threshold.

[0088] As can be seen, the smart lock unlocking method in this embodiment compares the current voltage of the smart lock with a preset voltage threshold and compares the current current of the smart lock with a preset current threshold to obtain a comparison result; based on the comparison result, the motor power modulation parameters in the smart lock are determined. Determining the motor power modulation parameters of the smart lock using the current voltage and current of the smart lock ensures the real-time performance and accuracy of the motor power modulation parameters.

[0089] Based on the above embodiments, the embodiments of this application adopt... Figure 5 The flowchart illustrates how the power supply status of the smart lock is determined from its initial voltage. Please refer to [link / reference]. Figure 5 , Figure 5 yes Figure 1 The illustrated flowchart shows an exemplary embodiment of the smart lock unlocking method prior to step S110. Specifically, before step S110, which involves receiving power from an external charging device and acquiring the current voltage and current of the smart lock, the following steps are included: S510: Obtain the initial voltage of the smart lock.

[0090] Initial voltage refers to the voltage of a smart lock before it activates the emergency unlock mode. For example, the initial voltage of a smart lock can be detected using tools such as sensors or voltmeters.

[0091] Before activating the emergency unlocking mode, the smart lock unlocking device obtains the initial voltage of the smart lock through an external GPIO interrupt and a voltage detection tool.

[0092] In other embodiments, the smart lock unlocking device may also acquire the initial current of the smart lock before activating the emergency unlocking mode.

[0093] S520: In response to the initial voltage of the smart lock not being within the preset voltage range, the power supply status of the smart lock is determined to be that the external charging device supplies power to the smart lock.

[0094] The preset voltage range refers to the voltage range of the smart lock during normal operation. For example, the preset voltage range can be 6900mV to 8400mV. In other embodiments, the preset voltage range can also be 7000mV to 8900mV. When the smart lock is powered by a power bank, the voltage of the smart lock is the same as the voltage of the power bank, which is typically 5000mV, 9000mV, etc.

[0095] When the initial voltage of the smart lock is not within the preset voltage range, the smart lock unlocking device determines that the power supply status of the smart lock is that the external charging device supplies power to the smart lock, and adopts the emergency unlocking mode; when the initial voltage of the smart lock is within the preset voltage range, the smart lock determines that the power supply status of the smart lock is that the internal power supply is provided, such as the battery installed inside the smart lock, and adopts the normal unlocking mode.

[0096] In other embodiments, the smart lock unlocking device can also acquire the initial current of the smart lock. If the initial current of the smart lock is not within a preset current range, the power supply state of the smart lock is determined to be that the external charging device supplies power to the smart lock; if the initial current of the smart lock is within the preset current range, the power supply state of the smart lock is determined to be that the internal power supply is used.

[0097] As can be seen, the smart lock unlocking method in this embodiment obtains the initial voltage of the smart lock; in response to the initial voltage of the smart lock being within a preset voltage range, it is determined that the power supply state of the smart lock is that an external charging device is supplying power to the smart lock. By detecting the initial voltage of the smart lock before initiating unlocking, the power supply state of the smart lock is determined, and a more suitable unlocking mode is selected.

[0098] To elaborate on the application of this application in the smart lock unlocking method, Figure 6 The flowchart shown below provides further explanation, as detailed below: The smart lock unlocking device first performs a system power insertion detection. This is done by acquiring the smart lock's initial voltage and determining if it falls within a preset voltage range, thus confirming that the smart lock is powered by an external charging device. If the initial voltage is outside the preset range, an emergency unlocking procedure (emergency unlocking mode) is executed. If the initial voltage is within the preset range, a normal unlocking procedure (normal unlocking mode) is executed. During the emergency unlocking procedure, the system's real-time voltage and current are collected, i.e., the smart lock's current voltage and current are acquired. Motor control parameters (motor power modulation parameters) are calculated based on these parameters. The current voltage and current are then adjusted to obtain the adjusted voltage and current. The motor is then controlled to move the lock body using the adjusted voltage and current. The movement distance of the lock body is checked to see if it exceeds a preset threshold. If it does, the door is fully unlocked, and the motor stops rotating for a preset time period, keeping the lock body unlocked for the user to perform the unlocking action. When performing a normal door opening procedure, the motor is controlled to rotate to move the lock body of the smart lock, and the movement distance of the lock body is detected to be greater than a preset distance threshold. If it is greater, it means that the door is in place, and the motor is controlled to stop rotating within a preset time period so that the lock body remains unlocked for the user to perform the door opening action.

[0099] Please see Figure 7 , Figure 7 This is a schematic diagram of an exemplary embodiment of the smart lock unlocking device shown in this application. The smart lock unlocking device 7 includes an acquisition module 710, a determination module 720, and an unlocking processing module 730. The acquisition module 710 is used to acquire the current voltage and current of the smart lock in response to an external charging device supplying power to the smart lock. The determination module 720 is used to determine the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock. The unlocking processing module 730 performs unlocking processing on the smart lock based on the motor power modulation parameters.

[0100] In the above method, the smart lock unlocking device of this application embodiment responds to the power supply of an external charging device to the smart lock by acquiring the current voltage and current of the smart lock; determining the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock; and performing the unlocking process of the smart lock based on the motor power modulation parameters. This method, when the external charging device supplies power to the smart lock, improves the compatibility of the external charging device by performing the unlocking process of the smart lock using the motor power modulation parameters determined by the current voltage and current of the smart lock, thereby increasing the unlocking success rate of the smart lock.

[0101] The functions of each module can be found in the implementation examples of the smart lock unlocking method, and will not be repeated here.

[0102] To implement the smart lock unlocking method of the above embodiments, this application proposes another electronic device, please refer to [link / reference needed]. Figure 8 , Figure 8 This is a schematic diagram of the structure of an embodiment of the electronic device provided in this application.

[0103] Electronic device 8 includes memory 810 and processor 820, wherein memory 810 and processor 820 are coupled together.

[0104] The memory 810 is used to store program data, and the processor 820 is used to execute the program data to implement the smart lock unlocking method of the above embodiment.

[0105] In this embodiment, processor 820 can also be referred to as CPU (Central Processing Unit). Processor 820 may be an integrated circuit chip with signal processing capabilities. Processor 820 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The general-purpose processor can be a microprocessor, or processor 820 can be any conventional processor.

[0106] This application also provides a computer-readable storage medium 9, such as... Figure 9 As shown, the computer-readable storage medium 9 is used to store program data 910, which, when executed by the processor, is used to implement the smart lock unlocking method as described in the method embodiments of this application.

[0107] The methods involved in the smart lock unlocking method embodiments of this application, when implemented as software functional units and sold or used as independent products, can be stored in a device, such as a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0108] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for unlocking a smart lock, characterized in that, The method includes: In response to an external charging device supplying power to the smart lock, the current voltage and current of the smart lock are obtained; The motor power modulation parameters in the smart lock are determined based on the current voltage and current of the smart lock. The smart lock is unlocked according to the motor power modulation parameters; The step of determining the motor power modulation parameters in the smart lock based on the current voltage and current of the smart lock includes: The current voltage of the smart lock is compared with a preset voltage threshold, and the current current of the smart lock is compared with a preset current threshold to obtain a comparison result; In response to the comparison result indicating that the current voltage of the smart lock is greater than or equal to the preset voltage threshold and the current current of the smart lock is less than the preset current threshold, the preset duty cycle threshold is determined as the motor power modulation parameter. In response to the comparison result indicating that the current voltage of the smart lock is greater than or equal to the preset voltage threshold and the current current of the smart lock is greater than or equal to the preset current threshold, a first ratio between the square of the preset current threshold and the square of the current current is calculated, and the product of the preset duty cycle threshold and the first ratio is determined as the motor power modulation parameter. In response to the comparison result indicating that the current voltage of the smart lock is less than the preset voltage threshold and the current current of the smart lock is less than the preset current threshold, a second ratio between the cube of the current voltage and the cube of the preset voltage threshold is calculated, and the product of the preset duty cycle threshold and the second ratio is determined as the motor power modulation parameter. In response to the comparison result indicating that the current voltage of the smart lock is less than the preset voltage threshold and the current current of the smart lock is greater than or equal to the preset current threshold, a third ratio between the square of the preset current threshold and the square of the current current and a fourth ratio between the square of the current voltage and the square of the preset voltage threshold are calculated, and the product of the preset duty cycle threshold, the third ratio, and the fourth ratio is determined as the motor power modulation parameter.

2. The smart lock unlocking method according to claim 1, characterized in that, The step of unlocking the smart lock according to the motor power modulation parameters includes: The current voltage and current of the smart lock are adjusted according to the motor power modulation parameters to obtain the adjusted voltage and current. The smart lock is unlocked based on the adjusted voltage and adjusted current.

3. The smart lock unlocking method according to claim 2, characterized in that, The step of adjusting the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current includes: In response to the motor power modulation parameter being less than a preset duty cycle threshold, the current voltage and current of the smart lock are reduced to obtain the reduced voltage and current. The step of unlocking the smart lock based on the adjusted voltage and adjusted current includes: The smart lock is controlled to unlock using the reduced voltage and current.

4. The smart lock unlocking method according to claim 2, characterized in that, The step of adjusting the current voltage and current of the smart lock according to the motor power modulation parameters to obtain the adjusted voltage and current includes: In response to the motor power modulation parameter being equal to a preset duty cycle threshold, the voltage of the smart lock and the current of the smart lock are maintained at the current voltage and the current current, respectively. The step of unlocking the smart lock based on the adjusted voltage and adjusted current includes: The smart lock is controlled to unlock using the current voltage and current.

5. The smart lock unlocking method according to claim 2, characterized in that, The step of unlocking the smart lock based on the adjusted voltage and adjusted current includes: The control motor moves the lock body of the smart lock with the adjusted voltage and current; Detect whether the movement distance of the lock body is greater than a preset distance threshold; If so, the motor will be stopped rotating within a preset time period so that the lock remains unlocked during the preset time period.

6. The smart lock unlocking method according to claim 1, characterized in that, Before acquiring the current voltage and current of the smart lock in response to an external charging device supplying power to the smart lock, the method further includes: Obtain the initial voltage of the smart lock; If the initial voltage of the smart lock is not within the preset voltage range, the power supply state of the smart lock is determined to be that the external charging device supplies power to the smart lock.

7. An electronic device, characterized in that, include: A memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to perform the method as described in any one of claims 1-6.

8. A computer-readable storage medium, characterized in that, include: The system stores program data, which, when executed by a processor, is used to implement the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Juicer control method, juicer and computer readable storage medium

    CN113616068A

  • Emergent power supply unit of intelligence lock based on USB interface

    CN204559196U