Method and device for monitoring operating state of electronic lock, equipment, storage medium
By using a permanent magnet synchronous motor in the smart electronic lock to detect the rotation angle and speed, the problem of motor damage caused by the unknown operating angle of DC brushed motors is solved, thus improving motor efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DESSMANN CHINA MACHINERY & ELECTRONICS
- Filing Date
- 2022-12-22
- Publication Date
- 2026-05-29
AI Technical Summary
In existing smart electronic locks, the operating angle of the DC brushed motor is unknown, and the motor's performance is determined solely by whether it has completed the operation, which can easily lead to motor damage.
A permanent magnet synchronous motor is used. By detecting the rotor's rotation angle and speed, the operating status and fault type of the electronic lock are determined, and the motor operation mode is adjusted to avoid stalling and damage.
This effectively avoids motor damage due to stalling, improves motor efficiency and user experience, and shortens troubleshooting time.
Smart Images

Figure CN115856478B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic lock technology, and specifically to a method, device, equipment, and storage medium for monitoring the operating status of an electronic lock. Background Technology
[0002] Currently, most smart electronic locks on the market use DC brushed motors to control the lock cylinder to achieve the locking or unlocking action. However, the operating angle of a DC brushed motor is unknown, and the determination of whether the motor has completed the action is only based on the stall condition. Stalling generates a large current, which can easily damage the motor.
[0003] Regarding the issue that the operating angle of the motor in the aforementioned smart electronic lock is unknown, and the determination of whether the motor has completed its operation is based solely on the stall mechanism, which generates a large current and can easily damage the motor, no effective solution has yet been proposed. Summary of the Invention
[0004] This invention provides a method, device, equipment, and storage medium for monitoring the operating status of an electronic lock, which overcomes the problem in related technologies where the operating angle of the motor in an intelligent electronic lock is unknown, and the motor's performance is determined solely by whether it has completed its operation, while a stalled motor generates a large current that can easily damage the motor.
[0005] To achieve the above objectives, a first aspect of the present invention provides a method for monitoring the operating status of an electronic lock, comprising:
[0006] The permanent magnet synchronous motor is controlled according to user instructions to adjust the operating status of the electronic lock; the user instructions are unlocking instructions or locking instructions.
[0007] The rotation angle of the rotor in the permanent magnet synchronous motor is detected;
[0008] If the rotation angle does not reach the preset angle, the electronic lock is determined to be faulty.
[0009] The electronic lock operation status monitoring method provided by this invention determines whether the electronic lock has a fault by the rotation angle of the motor rotor. This effectively avoids the problem of motor damage caused by judging whether the motor has completed its operation by checking if the motor has stalled, thus improving the user experience.
[0010] Optionally, in one possible implementation of the first aspect, the step of controlling the permanent magnet synchronous motor to adjust the operating state of the electronic lock according to user instructions includes:
[0011] The permanent magnet synchronous motor is controlled to output a first torque corresponding to the user command, driving the lock body of the electronic lock to move, thereby adjusting the operating state of the electronic lock.
[0012] Optionally, in one possible implementation of the first aspect, the method further includes:
[0013] Based on the rotational speed of the permanent magnet synchronous motor, determine the type of fault in the electronic lock;
[0014] Determine the motor operating mode based on the fault type;
[0015] The permanent magnet synchronous motor is controlled to operate according to the motor operating mode.
[0016] The electronic lock operation status monitoring method provided by this invention determines the fault type by the rotor speed and determines the motor operation mode according to the fault type. It can quickly identify the fault type when a fault occurs during unlocking or locking and provide countermeasures, which can save troubleshooting time, narrow the scope of troubleshooting, and improve user experience.
[0017] Optionally, in one possible implementation of the first aspect, the electronic lock includes a lock body;
[0018] The method of determining the fault type of the electronic lock based on the rotational speed of the permanent magnet synchronous motor includes:
[0019] If the rotational speed decreases and the rotational speed is not zero, then the fault type is determined to be increased friction of the lock body;
[0020] Determining the motor operating mode based on the fault type includes:
[0021] When the fault type is increased friction of the lock body, the motor operation mode is determined to be that the permanent magnet synchronous motor rotates with a second torque; the second torque is greater than the first torque.
[0022] The electronic lock operation status monitoring method provided by this invention can adapt to different working conditions of the lock body by judging the rotation speed and changing the motor torque, thereby improving the user experience.
[0023] Optionally, in one possible implementation of the first aspect, the electronic lock includes a bolt;
[0024] The method of determining the fault type of the electronic lock based on the rotational speed of the permanent magnet synchronous motor includes:
[0025] If the rotational speed is zero, the fault type is determined to be an obstruction in the direction of movement of the bolt.
[0026] Determining the motor operating mode based on the fault type includes:
[0027] When the fault type is that there is an obstruction in the direction of movement of the locking tongue, the motor operation mode is determined to be that the permanent magnet synchronous motor rotates with the first torque.
[0028] The electronic lock operation status monitoring method provided by this invention can determine whether there is an obstruction in the movement direction of the lock tongue by measuring the rotation speed, thereby achieving the technical effect of accurately identifying the fault type, narrowing the scope of fault investigation, and saving investigation time.
[0029] Optionally, in one possible implementation of the first aspect, the method further includes:
[0030] Based on the rotation angle of the rotor of the permanent magnet synchronous motor, the obstruction existing in the moving direction of the locking tongue is determined.
[0031] Optionally, in one possible implementation of the first aspect, determining the obstruction present in the moving direction of the locking tongue based on the rotation angle of the rotor of the permanent magnet synchronous motor includes:
[0032] If the rotation angle is less than or equal to the first angle, then the obstruction in the moving direction of the bolt is determined to be the lock body;
[0033] If the rotation angle is greater than the first angle and less than or equal to the second angle, then the obstruction in the moving direction of the latch is determined to be the door frame;
[0034] If the rotation angle is greater than the second angle and less than or equal to the third angle, then the obstruction in the moving direction of the latch is determined to be the door frame.
[0035] The electronic lock operation status monitoring method provided by this invention can accurately determine the type of obstruction in the movement direction of the lock tongue by judging the rotation angle, thereby narrowing the scope of fault diagnosis, saving fault diagnosis time, and optimizing user experience.
[0036] A second aspect of the present invention provides an electronic lock operation status monitoring device, comprising:
[0037] The status adjustment module is used to control the permanent magnet synchronous motor to adjust the operating status of the electronic lock according to user instructions; the user instructions are unlocking instructions or locking instructions.
[0038] A rotation angle detection module is used to detect the rotation angle of the rotor in the permanent magnet synchronous motor.
[0039] The judgment module is used to determine that the electronic lock is faulty if the rotation angle does not reach the preset angle.
[0040] A third aspect of the present invention provides an electronic device including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor executes the computer program to implement the steps in the various method embodiments described above.
[0041] A fourth aspect of the present invention provides a readable storage medium storing a computer program, which, when executed by a processor, is used to implement the steps of the method described in the first aspect of the present invention and various possible designs of the first aspect. Attached Figure Description
[0042] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0043] Figure 1 This is a flowchart illustrating the electronic lock operation status monitoring method according to Embodiment 1 of the present invention.
[0044] Figure 2 This is a schematic diagram illustrating the operation of an electronic lock that uses a permanent magnet synchronous motor as the actuator for lock body control.
[0045] Figure 3 This is a flowchart illustrating the specific implementation of the electronic lock operation status monitoring method of Embodiment 1 of the present invention.
[0046] Figure 4 This is a schematic diagram of the operating status monitoring device for the electronic lock according to Embodiment 2 of the present invention.
[0047] Figure 5 This is a structural diagram of the electronic device in Embodiment 3 of the present invention. Detailed Implementation
[0048] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0050] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can also refer to the internal connection of two components; and they can refer to a wireless connection or a wired connection. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0051] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0052] Most fully automatic smart locks on the market use a DC brushed motor to control the lock cylinder, thus achieving the locking or unlocking action. DC brushed motors are driven simply by being powered on, requiring no electronic control components, and are characterized by their low price and simple control.
[0053] However, brushed DC motors also have many problems, as follows: 1) The motor driving force is only affected by the battery voltage and current. As the battery is used, the driving force and speed of the motor will decrease, making the control time of the smart lock uncertain; 2) The motor running angle is unknown. The motor is judged to have completed the operation by stalling. Stalling will generate a large current, which can easily damage the motor; 3) The motor is noisy, which affects the user experience.
[0054] Example 1
[0055] This embodiment provides a method for monitoring the operating status of an electronic lock, applied to the main control chip of the electronic lock, such as... Figure 1 As shown, the monitoring method includes, but is not limited to, the following steps:
[0056] S100: Controls the permanent magnet synchronous motor to adjust the operating status of the electronic lock according to user instructions.
[0057] Specifically, the user command is either an unlock command or a lock command, and the electronic lock's operating state can be divided into unlocked and locked states. Currently, electronic locks on the market use DC brushed motors as the driver for lock body control, which suffers from uncontrollable driving force and driving time, as well as the risk of motor damage due to stalling and overload. This invention, by using a permanent magnet synchronous motor as the driver for lock body control, effectively overcomes the problems of uncontrollable driving force and driving time of DC geared motors, as well as the risk of burnout due to stalling and overload, thus improving power efficiency and optimizing the user experience.
[0058] Step S100 includes the following steps:
[0059] S110: Controls the permanent magnet synchronous motor to output a first torque corresponding to the user command, driving the lock body of the electronic lock to adjust the operating state of the electronic lock.
[0060] Specifically, such as Figure 2 As shown, a permanent magnet synchronous motor is used as the driver for lock body control. The rotor of the permanent magnet synchronous motor is controlled to rotate with a constant torque through FOC (Field-Oriented Control). The mechanical transmission between the motor and the lock cylinder drives the lock cylinder of the electronic lock to rotate, and then the mechanical transmission between the lock cylinder and the lock body drives the lock body to unlock or lock. The lock cylinder serves as the connection structure between the permanent magnet synchronous motor and the lock body, converting the rotation of the permanent magnet synchronous motor into the opening and closing action of the lock body. The lock body is responsible for the opening and closing control of the door.
[0061] Specifically, the efficiency of a DC brushed motor is only around 70%, while the efficiency of a permanent magnet synchronous motor based on FOC drive can reach over 90%, effectively improving energy efficiency. Furthermore, the operating noise of a permanent magnet synchronous motor is far lower than that of a DC brushed motor, optimizing the user experience.
[0062] S200: Detects the rotation angle of the rotor in a permanent magnet synchronous motor.
[0063] S300: If the rotation angle does not reach the preset angle, the electronic lock is faulty.
[0064] In steps S200 to S300, when adjusting the operating state of the electronic lock by controlling the permanent magnet synchronous motor according to the user's instructions, the rotation angle of the permanent magnet synchronous motor rotor can be monitored to determine whether the electronic lock is faulty. If the rotor rotation angle reaches the preset angle, the user's instructions are considered successfully executed, i.e., the lock is successfully unlocked or locked. If the rotor rotation angle does not reach the preset angle, it indicates that the electronic lock is faulty, but the specific fault type needs to be determined based on the rotor's specific rotation angle and speed.
[0065] Preferably, the method further includes:
[0066] S400: Determine the type of fault in the electronic lock based on the speed of the permanent magnet synchronous motor;
[0067] S500: Determine the motor operating mode based on the fault type;
[0068] S600: Controls the permanent magnet synchronous motor to operate according to the motor's operating mode.
[0069] Specifically, when the rotation angle of the permanent magnet synchronous motor rotor does not reach the preset angle, it indicates that there may be an obstacle hindering the rotor rotation during the rotation process. At this time, it is necessary to use speed assistance to judge, that is, to detect the rotor speed and determine the fault type of the electronic lock based on the speed; and determine the corresponding motor operation mode based on the fault type, so as to control the permanent magnet synchronous motor to drive according to the motor operation mode.
[0070] Step S400 also includes the following steps:
[0071] S410: If the rotation speed decreases and is not zero, the fault type is determined to be increased friction of the lock body; electronic locks include the lock body.
[0072] Step S500 also includes the following steps:
[0073] S510: When the fault type is increased friction of the lock body, the motor operation mode is determined to be a permanent magnet synchronous motor rotating with a second torque; the second torque is greater than the first torque.
[0074] Specifically, when the speed of the permanent magnet synchronous motor decreases within a preset time and does not reach zero, it can be determined that the electronic lock has a fault caused by aging of the lock body leading to increased friction. The torque of the permanent magnet synchronous motor should be appropriately increased to overcome the friction of the lock body, thereby achieving the purpose of unlocking or locking. The second torque can be set according to the friction of the lock body, and is not specifically limited here.
[0075] Step S400 also includes the following steps:
[0076] S420: If the rotation speed is zero, the fault type is determined to be an obstruction in the direction of the bolt's movement; electronic locks include the bolt.
[0077] Step S500 also includes the following steps:
[0078] S520: When the fault type is that there is an obstruction in the direction of movement of the locking tongue, the motor operation mode is determined to be a permanent magnet synchronous motor rotating with the first torque.
[0079] Specifically, when the speed of the permanent magnet synchronous motor drops directly to zero within a preset time, it can be determined that there is an obstruction in the movement direction of the electronic lock tongue. The above fault cannot be solved by adjusting the motor torque. Therefore, it is necessary to control the permanent magnet synchronous motor to rotate and remind the customer.
[0080] Preferably, the method further includes: determining the obstruction existing in the moving direction of the locking tongue based on the rotation angle of the rotor of the permanent magnet synchronous motor.
[0081] Specifically, when it is determined that the fault of the electronic lock is due to an obstruction in the direction of the lock tongue's movement, the type of obstruction can be determined based on the rotation angle of the permanent magnet synchronous motor's rotor, so as to further subdivide the fault type of the electronic lock and save fault diagnosis time.
[0082] Preferably, the obstructions existing in the moving direction of the locking tongue are determined based on the rotation angle of the rotor of the permanent magnet synchronous motor, including:
[0083] If the rotation angle is less than or equal to the first angle, then the obstruction in the direction of movement of the bolt is determined to be the lock body;
[0084] If the rotation angle is greater than the first angle and less than or equal to the second angle, then the obstruction in the direction of movement of the bolt is determined to be the door frame;
[0085] If the rotation angle is greater than the second angle and less than or equal to the third angle, then the obstruction in the direction of the lock tongue's movement is determined to be the door frame.
[0086] Specifically, if the rotor's rotation angle is less than or equal to the first angle, and the user command is an unlock command, then the current obstruction is the door frame; conversely, if the user command is a lock command, then the current obstruction is the lock body. When the rotor's rotation angle is greater than the first angle and less than or equal to the second angle, the current obstruction is the door frame, regardless of whether the user command is an unlock command or a lock command. If the rotor's rotation angle is greater than the second angle and less than or equal to the third angle, if the user command is an unlock command, then the current obstruction is the lock body; conversely, if the user command is a lock command, then the current obstruction is the door frame. The first, second, and third angles can be selected based on the actual position of the latch and the corresponding motor rotation angle, and are not specifically limited here.
[0087] Preferably, such as Figure 3As shown, once the smart lock successfully identifies the user, it can control the permanent magnet synchronous motor to rotate with a constant torque, driving the lock cylinder to rotate and thus unlocking the lock body. It then determines whether the operation is successful. If successful, the user is notified that the lock has been unlocked; otherwise, it indicates a motor stall problem, and the smart lock prompts the user that the unlocking has failed. Specifically, the lock detects the rotation angle of the permanent magnet synchronous motor's rotor. If the rotation angle reaches the preset angle, the user's command is executed successfully; otherwise, it indicates that the user's command has failed.
[0088] Example 2
[0089] This embodiment provides an electronic lock operation status monitoring device, such as... Figure 4 As shown, it includes:
[0090] The status adjustment module is used to control the permanent magnet synchronous motor to adjust the operating status of the electronic lock according to user instructions; the user instructions are unlocking instructions or locking instructions.
[0091] The rotation angle detection module is used to detect the rotation angle of the rotor in a permanent magnet synchronous motor.
[0092] The judgment module is used to determine that the electronic lock is faulty if the rotation angle does not reach the preset angle.
[0093] Preferably, the status adjustment module includes:
[0094] The status adjustment unit is used to control the permanent magnet synchronous motor to output a first torque corresponding to the user command, drive the lock body of the electronic lock to move, and adjust the operating status of the electronic lock.
[0095] Preferably, the electronic lock's operating status monitoring device further includes:
[0096] The fault type determination module is used to determine the fault type of the electronic lock based on the speed of the permanent magnet synchronous motor.
[0097] The operation mode determination module is used to determine the motor operation mode based on the fault type;
[0098] The motor operating module is used to control the permanent magnet synchronous motor to operate according to the motor's operating mode.
[0099] Preferably, the fault type determination module includes:
[0100] The first fault type determination unit is used to determine the fault type as increased lock body friction if the rotation speed decreases and is not zero; the electronic lock includes the lock body.
[0101] The operation mode determination module includes:
[0102] The first operating mode determination unit is used to determine the motor operating mode as a permanent magnet synchronous motor rotating with a second torque when the fault type is increased friction of the lock body; the second torque is greater than the first torque.
[0103] Preferably, the fault type determination module includes:
[0104] The second fault type determination unit is used to determine the fault type as an obstruction in the movement direction of the bolt if the rotation speed is zero. The electronic lock includes the bolt.
[0105] The operation mode determination module includes:
[0106] The second operating mode determination unit is used to determine the motor operating mode as a permanent magnet synchronous motor rotating with a first torque when the fault type is that there is an obstruction in the direction of movement of the locking tongue.
[0107] Preferably, the electronic lock's operating status monitoring device further includes:
[0108] The obstacle determination module is used to determine the obstacles present in the moving direction of the locking tongue based on the rotation angle of the rotor of the permanent magnet synchronous motor.
[0109] Preferably, the obstacle determination module includes:
[0110] The first determining unit is used to determine the obstruction existing in the moving direction of the bolt as the lock body if the rotation angle is less than or equal to the first angle.
[0111] The second determining unit is used to determine that if the rotation angle is greater than the first angle and less than or equal to the second angle, the obstruction existing in the moving direction of the lock tongue is the door frame.
[0112] The third determining unit is used to determine that if the rotation angle is greater than the second angle and less than or equal to the third angle, the obstruction existing in the moving direction of the lock tongue is the door frame.
[0113] Example 3
[0114] The present invention also provides an electronic device, such as... Figure 5 As shown, it includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the electronic lock operation status monitoring method provided by the various embodiments described above.
[0115] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the electronic lock operation status monitoring method provided in the various embodiments described above.
[0116] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0117] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0120] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A method for monitoring the operating status of an electronic lock, characterized in that, The electronic lock includes a lock body and a bolt, comprising: The permanent magnet synchronous motor is controlled according to user instructions to adjust the operating status of the electronic lock; the user instructions are unlocking instructions or locking instructions. The step of controlling the permanent magnet synchronous motor to adjust the operating state of the electronic lock according to the user instruction includes: controlling the permanent magnet synchronous motor to output a first torque corresponding to the user instruction, driving the lock body of the electronic lock to move, so as to adjust the operating state of the electronic lock; The rotation angle of the rotor in the permanent magnet synchronous motor is detected; If the rotation angle does not reach the preset angle, the electronic lock is determined to be faulty. Based on the rotational speed of the permanent magnet synchronous motor, the type of fault in the electronic lock is determined. The fault types include: increased friction in the lock body and obstruction in the direction of the bolt's movement. Based on the fault type, the motor operating mode is determined; and the permanent magnet synchronous motor is controlled to operate according to the determined motor operating mode. The determination of the motor operating mode based on the fault type includes: when the fault type is increased friction of the lock body, the motor operating mode is determined to be that the permanent magnet synchronous motor rotates with a second torque; the second torque is greater than the first torque; Determining the motor operating mode also includes: when the fault type is that there is an obstruction in the direction of movement of the locking tongue, the motor operating mode is determined to be that the permanent magnet synchronous motor rotates with the first torque; If the fault type is that there is an obstruction in the direction of movement of the latch, then the obstruction in the direction of movement of the latch is determined according to the rotation angle of the rotor of the permanent magnet synchronous motor. The step of determining the obstruction in the movement direction of the latch based on the rotation angle of the rotor of the permanent magnet synchronous motor includes: if the rotation angle is less than or equal to a first angle, then the obstruction in the movement direction of the latch is determined to be the lock body; if the rotation angle is greater than the first angle and less than or equal to a second angle, then the obstruction in the movement direction of the latch is determined to be the door frame; if the rotation angle is greater than the second angle and less than or equal to a third angle, then the obstruction in the movement direction of the latch is determined to be the door sleeve.
2. The method for monitoring the operating status of an electronic lock according to claim 1, characterized in that, The method of determining the fault type of the electronic lock based on the rotational speed of the permanent magnet synchronous motor includes: If the rotational speed decreases and the rotational speed is not zero, then the fault type is determined to be increased friction of the lock body.
3. The method for monitoring the operating status of an electronic lock according to claim 1, characterized in that, The method of determining the fault type of the electronic lock based on the rotational speed of the permanent magnet synchronous motor includes: If the rotational speed is zero, the fault type is determined to be an obstruction in the direction of movement of the latch.
4. A device for monitoring the operating status of an electronic lock, characterized in that, The electronic lock includes a lock body and a bolt, comprising: The status adjustment module is used to control the permanent magnet synchronous motor to adjust the operating status of the electronic lock according to user instructions; the user instructions are unlocking instructions or locking instructions. The step of controlling the permanent magnet synchronous motor to adjust the operating state of the electronic lock according to the user instruction includes: controlling the permanent magnet synchronous motor to output a first torque corresponding to the user instruction, driving the lock body of the electronic lock to move, so as to adjust the operating state of the electronic lock; A rotation angle detection module is used to detect the rotation angle of the rotor in the permanent magnet synchronous motor. The judgment module is used to determine that the electronic lock is faulty if the rotation angle does not reach the preset angle; to determine the fault type of the electronic lock based on the rotation speed of the permanent magnet synchronous motor, the fault type including: increased friction of the lock body and obstruction in the movement direction of the bolt; to determine the motor operation mode based on the fault type; and to control the permanent magnet synchronous motor to operate according to the motor operation mode; if the fault type is an obstruction in the movement direction of the bolt, the obstruction in the movement direction of the bolt is determined based on the rotation angle of the rotor of the permanent magnet synchronous motor. The determination of the motor operating mode based on the fault type includes: when the fault type is increased friction of the lock body, the motor operating mode is determined to be that the permanent magnet synchronous motor rotates with a second torque; the second torque is greater than the first torque; Determining the motor operating mode also includes: when the fault type is that there is an obstruction in the direction of movement of the locking tongue, the motor operating mode is determined to be that the permanent magnet synchronous motor rotates with the first torque; The step of determining the obstruction in the movement direction of the latch based on the rotation angle of the rotor of the permanent magnet synchronous motor includes: if the rotation angle is less than or equal to a first angle, then the obstruction in the movement direction of the latch is determined to be the lock body; if the rotation angle is greater than the first angle and less than or equal to a second angle, then the obstruction in the movement direction of the latch is determined to be the door frame; if the rotation angle is greater than the second angle and less than or equal to a third angle, then the obstruction in the movement direction of the latch is determined to be the door sleeve.
5. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the electronic lock operation status monitoring method according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the electronic lock operation status monitoring method according to any one of claims 1 to 3.