Locking and unlocking monitoring and control methods and electronic lock systems
By detecting the voltage between preset electrical contacts within the electronic lock to monitor the state of the lock rope and control the sealing process, the problem of cumbersome monitoring and control processes in existing technologies is solved, enabling simple monitoring of the lock rope state and direct sealing control of the electronic lock.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2026-04-03
AI Technical Summary
Existing electronic locks are cumbersome to monitor and control, making it difficult to simplify the detection and sealing operations of the lock rope insertion status.
The status of the lock rope is monitored by detecting the voltage between two preset electrical contacts inside the electronic lock, and the sealing of the electronic lock is controlled based on the voltage, simplifying the monitoring and control process.
It enables simple monitoring of the lock rope status and direct sealing control of the electronic lock, and can detect the insertion and disconnection of the lock rope, thus improving the efficiency and accuracy of monitoring and control.
Smart Images

Figure CN117266698B_ABST
Abstract
Description
Technical Field
[0001] This application relates to intelligent electronic lock systems, and more specifically, to a locking and unlocking monitoring and control method and an electronic lock system. Background Technology
[0002] In logistics and transportation, it is necessary to prevent the unauthorized opening of transported cargo compartments (e.g., containers) to ensure the safety of cargo transportation. Electronic locks are commonly used for monitoring during cargo transportation. Electronic locks can detect the status of the lock structure and upload the status to a monitoring platform in a timely manner. Existing electronic locks generally consist of a lock body and a U-shaped locking rope inserted into the lock body. Typically, magnets are placed at both ends of the locking rope, and multiple Hall effect sensors are installed within the lock body. These Hall effect sensors detect the insertion of the locking rope into the lock body. After detecting the insertion of the locking rope, the electronic lock receives a sealing command from an RFID-based sealing card, a back-end monitoring platform, or a mobile terminal, and then seals the lock. The process of using multiple Hall effect sensors to detect the insertion of the locking rope into the lock body separately, and then receiving a sealing command from an external device before sealing, makes the entire monitoring and control process of the electronic lock's status quite cumbersome. Summary of the Invention
[0003] In view of the prior art, the technical problem solved by this application is to provide a locking and unlocking detection and control method and an electronic lock system that can simplify the monitoring and control process.
[0004] To address the aforementioned technical problems, this application provides a locking and unlocking monitoring and control method for electronic locks, comprising:
[0005] The state of the conductive locking cord of the electronic lock is monitored by detecting the voltage between two preset electrical contacts A within the electronic lock; and
[0006] Upload the status of the locking rope to the backend monitoring platform and control the sealing of the electronic lock based on the voltage;
[0007] Among them, the two preset electrical contacts A are the electrical interfaces that the two ends of the lock rope contact when inserted into the electronic lock.
[0008] In one implementation, the step of monitoring the state of the conductive locking cord of the electronic lock based on detecting the voltage of two preset electrical contacts A within the electronic lock includes:
[0009] One preset electrical contact A is grounded, and the other preset electrical contact A is connected to the first power supply through the first series resistor.
[0010] When one end of the lock rope is inserted into the lock body, the other end is inserted into the lock body, both ends are inserted into the lock body, neither end is inserted into the lock body, and both ends are inserted into the lock body and the two ends are disconnected, respectively, two preset electrical contacts A are set to have a first preset resistance, a second preset resistance, a third preset resistance, a fourth resistance, and a fifth preset resistance.
[0011] If the voltage between the two preset electrical contacts A is detected to be the voltage value across the first preset resistor when the first preset resistor and the first series resistor divide the first power supply, then it is determined that one end of the lock rope is inserted into the lock body.
[0012] If the voltage between the two preset electrical contacts A is detected to be the same as the voltage across the third preset resistor when the second preset resistor and the first series resistor divide the first power supply, then it is determined that the other end of the lock rope is inserted into the lock body.
[0013] If the voltage between the two preset electrical contacts A is detected to be the voltage value across the third preset resistor when the third preset resistor and the first series resistor divide the first power supply, then it is determined that both ends of the lock rope are inserted into the lock body.
[0014] If the voltage between the two preset electrical contacts A is detected to be the same as the voltage across the fourth preset resistor when the fourth preset resistor and the first series resistor divide the first power supply, then it is determined that neither end of the lock rope is inserted into the lock body; and
[0015] If the voltage between the two preset electrical contacts A is detected to be the voltage value across the fifth preset resistor when the fifth preset resistor and the first series resistor divide the first power supply, then it is determined that both ends of the lock rope are inserted into the lock body but are cut or disconnected from the position between the two ends.
[0016] The first preset resistor, the second preset resistor, the third preset resistor, the fourth preset resistor, the fifth preset resistor, and the first series resistor all have different resistance values.
[0017] In one implementation, when the voltage between two preset electrical contacts is detected to be the same as the voltage across a third preset resistor, the electronic lock is controlled to apply a seal.
[0018] The cam inside the electronic lock is rotated so that the two ends of the cam abut against the two ends of the lock rope to limit the external force from pulling the lock rope out of the electronic lock.
[0019] In one implementation, after the voltage-controlled electronic lock is sealed, the locking and unlocking monitoring and control method further includes monitoring whether the electronic lock was successfully sealed:
[0020] If the current value is I between a preset electrical contact B connected to the positive terminal of the first power supply through a second series resistor and another preset electrical contact C connected to the negative terminal of the first power supply through another second series resistor, then the electronic lock is in the sealed state.
[0021] Wherein, the resistance of the second series resistor is half the resistance of the first series resistor, I = V / 2R, where V is the voltage of the first power supply, R is the resistance of the first series resistor, and the preset electrical contact B and preset electrical contact C are the electrical interfaces that the conductive cam contacts when applying the seal.
[0022] In one implementation, an unlocking command is sent using a background monitoring platform or an application module. The locking and unlocking monitoring and control method also includes monitoring whether the electronic lock has been successfully unlocked.
[0023] If the current value flowing through the first series resistor changes from I to 2I and the current flowing through the preset electrical contacts B and C is 0, then the electronic lock changes from the sealed state to the unlocked state.
[0024] This application also provides an electronic lock system that is communicatively connected to a background monitoring platform, the electronic lock system comprising:
[0025] Conductive locking rope;
[0026] Lock body for inserting both ends of the lock rope;
[0027] Two preset electrical contacts are provided within the lock body. When the two ends of the lock rope are inserted into the lock body, the two preset electrical contacts are used to contact the two ends of the lock rope; and
[0028] A lock state detection circuit, disposed within the lock body, is used to detect the voltage between the two preset electrical contacts to monitor the state of the lock rope; and...
[0029] The main control board is located inside the lock body and is connected to the lock status detection circuit.
[0030] In one implementation, the lock state detection circuit includes terminals and a first resistor, a second resistor, a third resistor, and a fourth resistor connected to a first power supply, which are connected end to end in sequence. The terminals include a first pin connected to the ground terminal of the first resistor, a second pin connected to the connection between the second resistor and the first resistor, a third pin connected to the connection between the third resistor and the second resistor, and a fourth pin connected to the connection between the fourth resistor and the third resistor. The resistance values of the first resistor and the third resistor are different.
[0031] The electronic lock system further includes two abutments with protrusions located within the lock body, and a first electrical contact, a second electrical contact, a third electrical contact, and a fourth electrical contact electrically connected to the first pin, the second pin, the third pin, and the fourth pin, respectively. Grooves are provided at both ends of the lock cord for the protrusions to be inserted into. The first electrical contact and the second electrical contact are electrically connected to one end of the lock cord inserted into the lock body via one of the abutments, and the third electrical contact and the fourth electrical contact are electrically connected to the other end of the lock cord inserted into the lock body via the other abutment.
[0032] In one implementation, the electronic lock system further includes a motor located within the lock body and connected to the main control board, and a cam located within the lock body, connected to the motor, and rotatably disposed between the two abutments.
[0033] In one implementation, the lock state detection circuit further includes two fifth resistors, the resistance of which is half the resistance of the fourth resistor; the wiring terminal includes a fifth pin grounded through one of the fifth resistors and a sixth pin connected to the first power supply through the other of the fifth resistors; the lock body is also provided with a fifth electrical contact connected to the fifth pin and a sixth electrical contact connected to the sixth pin.
[0034] In the locking and unlocking monitoring and control method and electronic lock system, the two preset electrical contacts A are conductive interfaces. The two ends of the lock rope inserted into the lock body can respectively contact these two preset electrical contacts A. The state of the lock rope can be known directly by detecting the voltage between the two preset electrical contacts A in the electronic lock. Compared with the prior art, which uses multiple Hall elements and magnets to detect the insertion status of the two ends of the lock rope, the present application is simpler to monitor the state of the lock rope directly by the voltage value between the two preset electrical contacts A. Furthermore, the present application directly performs sealing based on the voltage between the two preset electrical contacts A, without needing to obtain sealing commands from devices outside the electronic lock before performing the sealing operation. Therefore, the locking and unlocking monitoring and control method simultaneously completes the locking status of the lock rope and the sealing control process of the electronic lock by the voltage between the preset electrical contacts, making the monitoring and control process simpler. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced 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.
[0036] Figure 1This is a flowchart of the lock / unlock monitoring and control method according to an embodiment of this application;
[0037] Figure 2 This is a top view of the internal structure of the lock body when both ends of the lock rope of the electronic lock system according to an embodiment of this application are inserted into the lock body;
[0038] Figure 3 The internal three-dimensional structure of the electronic lock system of this application embodiment when the two ends of the lock rope are inserted into the lock body;
[0039] Figure 4 This is an example circuit diagram of a lock state detection circuit according to an embodiment of this application;
[0040] Figure 5 This is another example circuit diagram of the lock state detection circuit according to an embodiment of this application;
[0041] Figure 6 For electronic lock systems in the sealed state Figure 5 The equivalent circuit diagram;
[0042] Figure 7 For electronic lock systems in the unlocked state Figure 5 The equivalent circuit diagram. Detailed Implementation
[0043] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.
[0044] It should be noted that when a component is referred to as being "fixed to" or "set on" another component, it can be directly on or indirectly on that other component. When a component is referred to as being "connected to" another component, it can be directly connected to or indirectly connected to that other component.
[0045] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and 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 this application.
[0046] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0047] The locking and unlocking monitoring and control method and the electronic lock of this application will now be described in detail with reference to the accompanying drawings.
[0048] Example 1:
[0049] Please refer to Figure 1 The locking and unlocking monitoring and control method provided in this application is applied to electronic locks, including but not limited to logistics electronic locks used for monitoring logistics transportation. The locking and unlocking monitoring and control method includes steps S100 to S500:
[0050] Step S100: Monitor the state of the conductive locking cord of the electronic lock based on the voltage between two preset electrical contacts A inside the electronic lock.
[0051] Step S200: Upload the status of the locking rope to the judgment and monitoring platform, and control the sealing of the electronic lock based on voltage.
[0052] Step S300: Monitor whether the electronic lock has been successfully sealed.
[0053] Step S400: After sending an unlocking command to the electronic lock to unlock it, monitor whether the electronic lock has been successfully unlocked; understandably, only after the electronic lock is unlocked can the lock rope inserted into the electronic lock be pulled out of the lock body by external force.
[0054] Among them, the two preset electrical contacts A are the electrical interfaces that the two ends of the lock rope contact when inserted into the electronic lock.
[0055] In one embodiment, for step S100, the step of monitoring the state of the conductive locking cord of the electronic lock based on detecting the voltage of two preset electrical contacts A within the electronic lock includes:
[0056] Step S110: Ground one preset electrical contact A and connect the other preset electrical contact A to the first power supply through the first series resistor.
[0057] Step S120: When one end of the lock rope is inserted into the lock body, the other end is inserted into the lock body, both ends are inserted into the lock body, neither end is inserted into the lock body, and both ends are inserted into the lock body and the two ends are disconnected, respectively, set the two preset electrical contacts A to have a first preset resistance, a second preset resistance, a third preset resistance, a fourth resistance, and a fifth preset resistance.
[0058] Step S130: When the voltage between the two preset electrical contacts A is detected to be the voltage value across the first preset resistor when the first preset resistor and the first series resistor divide the first power supply, it is determined that one end of the lock rope is inserted into the lock body.
[0059] Step S140: When the voltage between the two preset electrical contacts A is detected to be the same as the voltage across the third preset resistor when the second preset resistor and the first series resistor divide the first power supply, it is determined that the other end of the lock rope is inserted into the lock body.
[0060] Step S150: When the voltage between the two preset electrical contacts A is detected to be the voltage value across the third preset resistor when the third preset resistor and the first series resistor divide the first power supply, it is determined that both ends of the lock rope are inserted into the lock body.
[0061] Step S160: When the voltage between the two preset electrical contacts A is detected to be the voltage across the fourth preset resistor when the fourth preset resistor and the first series resistor divide the first power supply, it is determined that neither end of the lock rope is inserted into the lock body; and
[0062] Step S170: When the voltage between the two preset electrical contacts A is detected to be the voltage value across the fifth preset resistor when the fifth preset resistor and the first series resistor divide the first power supply, it is determined that both ends of the lock rope are inserted into the lock body but are cut or disconnected from the position between the two ends.
[0063] In the above steps, the resistance values of the first preset resistor, the second preset resistor, the third preset resistor, the fourth preset resistor, the fifth preset resistor, and the first series resistor are all different.
[0064] It is worth noting that in the above-mentioned locking and unlocking monitoring and control method, five series circuits are designed to be formed by the above-mentioned series resistor and the first, second, third, fourth, and fifth preset resistors respectively, under different states of the electronic lock rope. In the five series circuits, there are different voltages between the two preset electrical contacts A. The state of the lock rope is directly obtained based on the voltage, so that the electronic lock can be sealed according to the voltage situation. The different states of the lock rope are: one end of the lock rope is inserted into the lock body, both ends of the lock rope are inserted into the lock body, both ends of the lock rope are inserted into the lock body, and both ends of the lock rope are inserted into the lock body but are accidentally or intentionally cut or disconnected from the two ends.
[0065] Furthermore, regarding steps S130 to S170 above, the detected lock rope status is continuously uploaded to the backend monitoring platform. For example, when electronic locks are used to monitor logistics transportation, the backend monitoring platform can promptly obtain the lock rope status and remotely monitor whether the electronic lock on the goods is truly locked into the lock body, and whether the locked lock rope has been damaged intentionally or accidentally during transportation. It is understandable that once the lock rope is locked, accidental or intentional disconnection of the lock rope is likely to occur through the exposed part of the lock body.
[0066] In the above-mentioned locking and unlocking monitoring and control method, the two preset electrical contacts A are conductive interfaces. The two ends of the lock rope inserted into the lock body can respectively contact these two preset electrical contacts A. The state of the lock rope can be known directly by detecting the voltage between the two preset electrical contacts A in the electronic lock. Compared with the prior art, which uses multiple Hall elements and magnets to detect the insertion status of the two ends of the lock rope, the present application is simpler to monitor the state of the lock rope directly by the voltage value between the two preset electrical contacts A. Furthermore, the present application directly performs sealing based on the voltage between the two preset electrical contacts A, without needing to obtain sealing commands from devices outside the electronic lock before performing the sealing operation. Therefore, the locking and unlocking monitoring and control method simultaneously completes the locking status of the lock rope and the sealing control process of the electronic lock through the voltage between the preset electrical contacts, making the monitoring and control process simpler. In addition, existing technologies use Hall elements in the lock body and magnets at both ends of the lock rope to monitor the locking status of the lock rope, but they cannot detect the phenomenon that the locked lock rope is broken from the two ends by human intervention or accident. This application can not only monitor different situations of the lock rope being inserted into the lock body (one end inserted, both ends inserted, and neither end inserted), but also detect the phenomenon that the locked lock rope is broken from the two ends.
[0067] In one embodiment, when the voltage between two preset electrical contacts A is detected to be the same as the voltage across a third preset resistor, the electronic lock is controlled to apply a seal.
[0068] The cam inside the electronic lock is rotated so that the two ends of the cam abut against the two ends of the lock rope to limit the external force from pulling the lock rope out of the electronic lock.
[0069] In one embodiment, for step S300, monitoring whether the electronic lock is successfully sealed: if the current value between a preset electrical contact B connected to the positive terminal of the first power supply through a second series resistor and another preset electrical contact C connected to the negative terminal of the first power supply through another second series resistor is I, then the electronic lock is in the sealed state.
[0070] The resistance of the second series resistor is half the resistance of the first series resistor, I = 1 / 2 (V / R), where V is the voltage of the first power supply, R is the resistance of the first series resistor, and the preset electrical contacts B and C are the electrical interfaces that the conductive cam contacts when applying the seal.
[0071] In one embodiment, for step S500: after transmitting an unlocking command to the electronic lock using the background monitoring platform, the RFID unlocking card, and the mobile terminal, the cam is controlled to rotate to a position where it no longer abuts the two ends of the lock rope, so that external force can pull the lock rope to the outside of the lock body. After sealing, the locking and unlocking monitoring and control method further includes monitoring whether the electronic lock has been successfully unlocked: if the current value flowing through the first series resistor changes from I to 2I and the current between the preset electrical contact B and the preset electrical contact C is 0, then the electronic lock changes from sealed to unlocked. The RFID unlocking card refers to sending an unlocking command to the electronic lock via radio frequency identification, and the mobile terminal can be, but is not limited to, a mobile phone, tablet, etc.
[0072] It is worth noting that existing technologies typically add Hall elements and magnets to detect whether a sealing cam structure is being unsealed, while this application detects unsealing based on the current of electrical contacts.
[0073] Example 2:
[0074] Reference Figures 2 to 5 This embodiment provides an electronic lock system 100 for implementing the above-described locking and unlocking monitoring and control method. The electronic lock system 100 is communicatively connected to a background monitoring platform. The electronic lock system 100 includes a conductive lock rope 40, a lock body 20 into which both ends of the lock rope 40 are inserted, two preset conductive electrical contacts A, a lock state detection circuit 10, and a main control board (not shown). The main control board is connected to the lock state detection circuit 10. Both ends of the lock rope 40 are inserted into the lock body 20, and the two preset electrical contacts A are used to contact both ends of the lock rope 40. The lock state detection circuit 10 detects the voltage between the two preset electrical contacts A to monitor the state of the lock rope 40. The conductive lock rope 40 can be a rigid structure.
[0075] In one specific embodiment, such as Figure 5 As shown, the lock state detection circuit 10 includes a terminal block 15 and a first resistor 11, a second resistor 12, a third resistor 13 connected to ground in sequence, and a fourth resistor 14 connected to the first power supply VCC. The terminal block 15 includes a first pin 151 connected to the ground terminal of the first resistor 11, a second pin 152 connected to the connection between the second resistor 12 and the first resistor 11, a third pin 153 connected to the connection between the third resistor 13 and the second resistor 12, and a fourth pin 154 connected to the connection between the fourth resistor 14 and the third resistor 13.
[0076] In one specific embodiment described above, the electronic lock system 100 further includes two abutments 30 located within the lock body 20. Specifically, each abutment 30 has a protrusion 31, and both ends of the locking rope 40 have grooves 41 for the protrusion 31 to be inserted into. Each abutment 30 can move left and right within the lock body 20 relative to one end of the locking rope 40 inserted into the lock body 20. When both ends of the locking rope 40 are inserted into the lock body 20 and touch the abutment 30, the abutment 30 moves slightly away from the locking rope 40 until the protrusion 31 of the abutment 30 is inserted into the groove 41 of the locking rope 40, that is, at least part of the protrusion 31 of the abutment 30 will abut against the groove 41.
[0077] In one specific embodiment described above, the electronic lock system 100 further includes a first electrical contact 21, a second electrical contact 22, a third electrical contact 23, and a fourth electrical contact 24 that are electrically connected to the first pin 151, the second pin 152, the third pin 153, and the fourth pin 154, respectively.
[0078] Specifically, the first electrical contact 21 and the second electrical contact 22 are electrically connected through a stop 30 and one end of the locking rope 40 inserted into the lock body 20, and the third electrical contact 23 and the fourth electrical contact 24 are electrically connected through another stop 30 and the other end of the locking rope 40 inserted into the lock body 20. It is worth noting that in Embodiment 1, the two preset electrical contacts A are selected from the second electrical contact 22 and the fourth electrical contact 24 in Embodiment 2.
[0079] Understandably, both abutments 30 and locking rope 40 are made of conductive materials; the first electrical contact 21, the second electrical contact 22, the third electrical contact 23, and the fourth electrical contact 24 can be metal sheets; Figure 2 The positions of the first electrical contact 21, the second electrical contact 22, the third electrical contact 23, and the fourth electrical contact 24 are illustrated. The first electrical contact 21 is located on the inner wall of the lock body 20 and contacts the end of a stop 30 away from the protrusion 31. The third electrical contact 23 is located on the inner wall of the lock body 20 and contacts the end of another stop 30 away from the protrusion 31. The second electrical contact 22 is located on the inner wall of the lock body 20. When one end of the locking rope 40 is inserted into the lock body 20 and the protrusion 31 of a stop 30 is inserted into the groove 41 on that end of the locking rope 40, that end of the locking rope 40 will contact the second electrical contact 22. The fourth electrical contact 24 is disposed on the inner wall of the lock body 20. When the other end of the lock rope 40 is inserted into the lock body 20 and the protrusion 31 of the other abutment 30 is inserted into the groove 41 on the other end of the lock rope 40, the other end of the lock rope 40 will contact the fourth electrical contact 24.
[0080] Furthermore, the electronic lock system 100 also includes a motor 60 located within the lock body 20 and connected to the main control board, and a cam 50 located within the lock body 20 and connected to the motor 60, rotatably disposed between the two abutment posts 30. Specifically, the electronic lock system 100 communicates with the back-end monitoring platform through the main control board. The status of the lock rope 40 detected by the lock status detection circuit 10 is fed back to the main control board, and the main control board transmits the status of the lock rope 40 to the back-end. When the lock status detection circuit 10 detects that both ends of the lock rope 40 are inserted and the lock rope 40 has not been cut or broken, when the lock rope 40 is inserted into the lock body 20 and locked, each abutment 30 is inserted into the groove 41 of the lock rope 40 through the protrusion 31. The main control board controls the motor 60 to rotate, thereby driving the cam 50 to rotate, so that the two ends of the cam 50 abut against the two abutments 30 to achieve sealing. At this time, due to the action of the cam 50, the protrusion 31 is firmly inserted into the groove 41. Thus, when the lock rope 40 is pulled out by external force, the lock rope 40 can be pulled out in the same way, maintaining the sealing state.
[0081] The following is Figure 2 Taking an electronic lock as an example, the working principle of the lock state detection circuit 10, which detects the voltage of the second electrical contact 22 and the fourth electrical contact 24 (two preset electrical contacts A), will be explained. Specifically, the first electrical contact 21 is always covered by or positioned on a movable abutment 30, and the third electrical contact 23 is always covered by or positioned on another movable abutment 30. The second electrical contact 22 and the fourth electrical contact 24 are located on opposite sides of the lock body 20 and are respectively positioned at points where the ends of the lock rope 40 can contact the lock body 20 when inserted. The first series resistor in Embodiment 1 is equivalent to the fourth resistor 14 in Embodiment 2.
[0082] Firstly, when locking by inserting only one end of the locking rope 40 into the lock body 20, that is, when only one end of the locking rope 40 is inserted into the lock body 20 and the protrusion 31 of the abutment 30 is inserted into the groove 41 of that end of the locking rope 40. Figure 2Taking the electronic lock as an example, if only one end of the lock rope 40 is inserted into the left side of the electronic lock, when the protrusion 31 of the abutment 30 is inserted into the groove 41 of that end of the lock rope 40, the first electrical contact 21 and the second electrical contact 22 are electrically connected through the abutment 30 and that end of the lock rope 40, and the first electrical contact 21 and the second electrical contact 22 are electrically connected to the first pin 151 and the second pin 152 respectively, thus causing the first pin 151 and the second pin 152 to be connected, so that the first resistor 11 is short-circuited. At this time, the first preset resistance between the two preset electrical contacts A in Embodiment 1 is equivalent to the resistance formed by the second resistor 12 and the third resistor 13 connected in series. Similarly, if only the right side of the electronic lock is inserted into the other end of the lock rope 40, and the protrusion 31 of the other abutment 30 is inserted into the groove 41 of the other end of the lock rope 40, the third electrical contact 23 and the fourth electrical contact 24 are electrically connected through the other abutment 30 and the other end of the lock rope 40. Since the third electrical contact 23 and the fourth electrical contact 24 are electrically connected to the third pin 153 and the fourth pin 154 respectively, the third pin 153 and the fourth pin 154 are connected, causing the third resistor 13 to be short-circuited. At this time, the second preset resistor between the two preset electrical contacts A in Embodiment 1 is preset to be the resistor formed by the first resistor 11 and the second resistor 12 connected in series. Therefore, it can be seen that when only one end of the lock rope 40 is inserted into the lock body 20 for locking, the first resistor 11 or the second resistor 12 is short-circuited; wherein, when the first resistor 11 is short-circuited, the voltage between the second electrical contact 22 and the fourth electrical contact 24 (the two preset electrical contacts A) is U. ADC1 :U ADC1 =U VCC *(R2+R3) / (R2+R3+R4); where, when the second resistor 12 is short-circuited, the voltage between the second electrical contact 22 and the fourth electrical contact 24 (two preset electrical contacts A) is U. ADC2 :U ADC2 =U VCC *(R1+R2) / (R1+R2+R4), the resistance values of the first resistor 11, the second resistor 12, the third resistor 13 and the fourth resistor 14 are denoted as R1, R2, R3 and R4 respectively.
[0083] Secondly, when the two ends of the locking rope 40 are inserted into the lock body 20 for locking, Figure 2Taking the electronic lock as an example, when the locking cord 40 is inserted into both ends of the electronic lock, the second electrical contact 22 and the fourth electrical contact 24 are electrically connected through the conductive locking cord 40. This is consistent with the reasoning in the first aspect: the first electrical contact 21 and the second electrical contact 22 are electrically connected through a stop post 30 and one end of the locking cord 40, and the third electrical contact 23 and the fourth electrical contact 24 are electrically connected through another stop post 30 and the other end of the locking cord 40. Therefore, the second electrical contact 22 and the third electrical contact 23 are also electrically connected; and because the first electrical contact 21 and the second electrical contact 24 are electrically connected through the stop post 30 and the other end of the locking cord 40, the second electrical contact 22 and the third electrical contact 24 are electrically connected. Point 22, the third electrical contact 23, and the fourth electrical contact 24 are electrically connected to the first pin 151, the second pin 152, the third pin 153, and the fourth pin 154, respectively. This makes all four pins electrically conductive, causing the first resistor 11, the second resistor 12, and the third resistor 13 to be shorted. At this time, the third preset resistor between the two preset electrical contacts A in Embodiment 1 is preset to 0. The voltage between the second electrical contact 22 and the fourth electrical contact 24 (the two preset electrical contacts A) is U. ADC3 :U ADC3 =U VCC *0 / R4=0V, the resistance values of the first resistor 11, the second resistor 12, the third resistor 13 and the fourth resistor 14 are recorded as R1, R2, R3 and R4 respectively.
[0084] Thirdly, when neither end of the locking rope 40 is inserted into the lock body 20, the first electrical contact 21, the second electrical contact 22, the third electrical contact 23, and the fourth electrical contact 24 are not conductive, thus making the first pin 151, the second pin 152, the third pin 153, and the fourth pin 154 not conductive. That is, the first resistor 11, the second resistor 12, and the third resistor 13 are not short-circuited. At this time, the fourth preset resistor between the two preset electrical contacts A in Embodiment 1 is preset to be the resistor formed by the first resistor 11, the second resistor 12, and the third resistor 13 connected in series. At this time, the voltage between the second electrical contact 22 and the fourth electrical contact 24 (the two preset electrical contacts A) is U. ADC3 :U ADC4 =U VCC *(R1+R2+R3) / (R1+R2+R3+R4), where the resistance values of the first resistor 11, the second resistor 12, the third resistor 13, and the fourth resistor 14 are denoted as R1, R2, R3, and R4, respectively.
[0085] Fourthly, when both ends of the locking rope 40 are inserted into the lock body 20 for locking, but the locking rope is broken from the middle part of both ends by human intervention or accident, this fourth situation is the same as the situation in the second aspect above where both ends of the locking rope 40 are inserted into the lock body 20 for locking, in that: the first electrical contact 21 and the second electrical contact 22 are electrically connected, and the first pin 151 and the second pin 152 are electrically connected; the third electrical contact 23 and the fourth electrical contact 24 are electrically connected, and the third pin 153 and the fourth pin 154 are electrically connected; and the difference between the two is that: since the locking rope 40 is cut by human intervention or accidentally broken, the second electrical contact 22 and the fourth electrical contact 24 will not be electrically connected, so the first pin 151 and the second pin 152 are unlikely to be electrically connected. Therefore, when both ends of the locking rope 40 are inserted into the lock body 20 for locking, but the locking rope is accidentally or manually broken from the middle of both ends, the first resistor 11 and the third resistor 13 are short-circuited, while the second resistor 12 is not short-circuited. At this time, the fifth preset resistor between the two preset electrical contacts A in Embodiment 1 is preset to be the second resistor 12. At this time, the voltage between the second electrical contact 22 and the fourth electrical contact 24 (the two preset electrical contacts A) is U. ADC5 :U ADC5 =U VCC *R2 / (R2+R4), the resistance values of the first resistor 11, the second resistor 12, the third resistor 13 and the fourth resistor 14 are denoted as R1, R2, R3 and R4 respectively.
[0086] Furthermore, in the above aspects, in one embodiment, the resistance values of the first resistor and the third resistor are not equal; in another embodiment, the resistance values of the first resistor, the second resistor, the third resistor, and the fourth resistor are all not equal; in another specific embodiment, terminal 15 can be a 4-pin terminal, and the main control board can be, but is not limited to, an STM32 chip or an EFM32G230 chip. The resistance values of the first resistor 11, the second resistor 12, the third resistor 13, and the fourth resistor 14 are respectively denoted as R1, R2, R3, and R4, where the specific values can be 10KΩ, 20KΩ, 30KΩ, and 60KΩ. The voltage value of the power supply VCCVCC is U. VCC Specifically, its voltage value can be 3.3V. The voltage at the connection point between the third and fourth resistors on the main control board's ADC pin can be U, depending on the aforementioned factors. ADC1 U ADC2 U ADC3 U ADC4 and U ADC5 .
[0087] Furthermore, in the aforementioned aspects, the first resistor 11, the second resistor 12, the third resistor 13, and the fourth resistor 14 are designed with different combinations of short-circuit conditions to correspond to different insertion situations of the locking rope 40 into the lock body 20. Since the resistance values of the first and third resistors are not equal, the different combinations of short-circuit conditions of the first resistor 11, the second resistor 12, the third resistor 13, and the fourth resistor 14 will result in different voltages at the ADC pin of the main control board. Thus, the different voltages at the ADC pins reflect the locking and unlocking status of the locking rope 40. The locking rope status detection circuit 10 simultaneously detects the same state of the locking rope 40, including: only one end of the locking rope 40 inserted into the lock body 20; both ends of the locking rope 40 inserted into the lock body 20; both ends of the locking rope 40 inserted into the lock body 20 but disconnected in the middle; and both ends of the locking rope 40 inserted into the lock body 20.
[0088] In another specific embodiment, please refer to Figure 5 In addition to the aforementioned structure, the lock state detection circuit 10 also includes two fifth resistors 16, each with a resistance value half that of the fourth resistor 14. The terminal block 15 includes a fifth pin 155 grounded through one of the fifth resistors 16 and a sixth pin 156 connected to the first power supply VCC through the other fifth resistor 16. The lock body 20 also includes a fifth electrical contact (not shown) connected to the fifth pin 155 and a sixth electrical contact (not shown) connected to the sixth pin 156. The fifth and sixth electrical contacts are in contact via a conductive cam 50 in the sealed state. In this embodiment, the terminal block 15 can be a 6-pin terminal block.
[0089] In another specific embodiment described above, the fifth electrical contact and the sixth electrical contact are equivalent to the two preset electrical contacts B in Embodiment 1, and the fifth resistor 16 is equivalent to the second series resistor in Embodiment 1.
[0090] When the cam 50 rotates to the position where it abuts the two abutments 30 in the sealing state, it can be understood that in the sealing state, the lock rope is first inserted into the lock body. As mentioned earlier, at this time, the first resistor, the second resistor, and the third resistor are short-circuited. Furthermore, since the fifth electrical contact and the sixth electrical contact are connected through the cam 50, the fifth pin 155 and the sixth pin 156 are electrically connected at this time. The equivalent circuit of the lock state detection circuit 10 is as follows: Figure 6 As shown; at this time, since the resistance of the fourth resistor 14 is generally the same as the resistance of the fifth resistor 16, the current I flowing through the fourth resistor 14 is: V / 2R, where V is the voltage of the first power supply VCC, and R is the resistance of the fourth series resistor (the first series resistor).
[0091] When the cam 50 rotates to the point where it no longer abuts the two abutments 30 and is in the unsealed state, it can be understood that immediately after unsealing, the lock rope is still inserted into the lock body. As mentioned earlier, at this time, the first resistor, the second resistor, and the third resistor are short-circuited. Since the fifth electrical contact and the sixth electrical contact are in a non-conductive state, the fifth pin 155 and the sixth pin 156 are in a disconnected state. The equivalent circuit of the lock state detection circuit 10 is as follows: Figure 7 As shown; at this time, the current I flowing through the fourth resistor 14 is: V / R, where V is the voltage of the first power supply VCC, R is the resistance of the fourth series resistor (first series resistor), and since the fifth electrical contact and the sixth electrical contact are disconnected and not conducting, the current flowing through the fifth pin 155 (fifth electrical contact) and the sixth pin 156 (sixth electrical contact) is 0.
[0092] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A locking and unlocking monitoring and control method, applied to electronic locks, characterized in that, include: The state of the conductive locking cord of the electronic lock is monitored by detecting the voltage between two preset electrical contacts A inside the electronic lock. as well as Upload the status of the locking rope to the backend monitoring platform and control the sealing of the electronic lock based on the voltage; Among them, the two preset electrical contacts A are the electrical interfaces that the two ends of the lock rope contact when they are inserted into the electronic lock; The method of monitoring the state of the conductive locking cord of the electronic lock based on detecting the voltage of two preset electrical contacts A within the electronic lock includes: One preset electrical contact A is grounded, and the other preset electrical contact A is connected to the first power supply through the first series resistor. When one end of the lock rope is inserted into the lock body, the other end is inserted into the lock body, both ends are inserted into the lock body, neither end is inserted into the lock body, and both ends are inserted into the lock body and the two ends are disconnected, respectively, two preset electrical contacts A are set to have a first preset resistance, a second preset resistance, a third preset resistance, a fourth resistance, and a fifth preset resistance. If the voltage between the two preset electrical contacts A is detected to be the voltage value across the first preset resistor when the first preset resistor and the first series resistor divide the first power supply, then it is determined that one end of the lock rope is inserted into the lock body. If the voltage between the two preset electrical contacts A is detected to be the same as the voltage across the third preset resistor when the second preset resistor and the first series resistor divide the first power supply, then it is determined that the other end of the lock rope is inserted into the lock body. If the voltage between the two preset electrical contacts A is detected to be the voltage value across the third preset resistor when the third preset resistor and the first series resistor divide the first power supply, then it is determined that both ends of the lock rope are inserted into the lock body. If the voltage between the two preset electrical contacts A is detected to be the same as the voltage across the fourth preset resistor when the fourth preset resistor and the first series resistor divide the first power supply, then it is determined that neither end of the lock rope is inserted into the lock body; and If the voltage between the two preset electrical contacts A is detected to be the voltage value across the fifth preset resistor when the fifth preset resistor and the first series resistor divide the first power supply, then it is determined that both ends of the lock rope are inserted into the lock body but are disconnected from the position between the two ends. The first preset resistor, the second preset resistor, the third preset resistor, the fourth preset resistor, the fifth preset resistor, and the first series resistor all have different resistance values.
2. The locking and unlocking monitoring and control method as described in claim 1, characterized in that, When the voltage between the two preset electrical contacts is detected to be the same as the voltage across the third preset resistor, the electronic lock is controlled to apply a seal. The cam inside the electronic lock is rotated so that the two ends of the cam abut against the two ends of the lock rope to limit the external force from pulling the lock rope out of the electronic lock.
3. The locking and unlocking monitoring and control method as described in claim 2, characterized in that, After the voltage-controlled electronic lock is sealed, the locking and unlocking monitoring and control method also includes monitoring whether the electronic lock was successfully sealed: If the current value is I between a preset electrical contact B connected to the positive terminal of the first power supply through a second series resistor and another preset electrical contact C connected to the negative terminal of the first power supply through another second series resistor, then the electronic lock is in the sealed state. Wherein, the resistance of the second series resistor is half the resistance of the first series resistor, I = V / 2R, where V is the voltage of the first power supply, R is the resistance of the first series resistor, and the preset electrical contact B and preset electrical contact C are the electrical interfaces that the conductive cam contacts when sealing.
4. The locking and unlocking monitoring and control method as described in claim 3, characterized in that, The locking and unlocking monitoring and control method also includes monitoring whether the electronic lock has been successfully unlocked, by sending an unlocking command through a background monitoring platform or the sealing module. If the current value flowing through the first series resistor changes from I to 2I and the current flowing through the preset electrical contacts B and C is 0, then the electronic lock changes from the sealed state to the unlocked state.
5. An electronic lock system, which is communicatively connected to a background monitoring platform, characterized in that, include: Conductive locking rope; Lock body for inserting both ends of the lock rope; Two preset electrical contacts are provided in the lock body. When the two ends of the lock rope are inserted into the lock body, the two preset electrical contacts are used to contact the two ends of the lock rope. The lock state detection circuit, which is installed in the lock body, is used to detect the voltage between the two preset electrical contacts to monitor the state of the lock rope. as well as The main control board is located inside the lock body and is connected to the lock status detection circuit; The lock state detection circuit includes terminals and a first resistor, a second resistor, a third resistor, and a fourth resistor connected to a first power supply, which are connected end to end in sequence. The terminals include a first pin connected to the ground terminal of the first resistor, a second pin connected to the connection between the second resistor and the first resistor, a third pin connected to the connection between the third resistor and the second resistor, and a fourth pin connected to the connection between the fourth resistor and the third resistor. The resistance values of the first resistor and the third resistor are different. The electronic lock system further includes two abutments with protrusions located within the lock body, and a first electrical contact, a second electrical contact, a third electrical contact, and a fourth electrical contact electrically connected to the first pin, the second pin, the third pin, and the fourth pin, respectively. Grooves are provided at both ends of the lock cord for the protrusions to be inserted into. The first electrical contact and the second electrical contact are electrically connected to one end of the lock cord inserted into the lock body via one of the abutments, and the third electrical contact and the fourth electrical contact are electrically connected to the other end of the lock cord inserted into the lock body via the other abutment.
6. The electronic lock system as described in claim 5, characterized in that, The electronic lock system also includes a motor located inside the lock body and connected to the main control board, and a cam located inside the lock body, connected to the motor, and rotatably disposed between the two abutments.
7. The electronic lock system as described in claim 6, characterized in that, The lock status detection circuit also includes two fifth resistors, and the resistance of the fifth resistor is half the resistance of the fourth resistor; the wiring terminal includes a fifth pin grounded through one of the fifth resistors and a sixth pin connected to the first power supply through the other fifth resistor; the lock body is also provided with a fifth electrical contact connected to the fifth pin and a sixth electrical contact connected to the sixth pin.
Citation Information
Patent Citations
Electronic sealing method and electronic sealing lock
CN101425192A
Intelligent sealing strip and control method thereof
CN110107160A