Magnetic coding encrypted electric bolt lock, automatic vending device, control method and device
By using magnetic encoding encryption technology in the electrical plug locks of the automatic vending cabinets, and using induction magnets and Hall sensors to detect magnetic encoding, the existing electrical plug locks are easily operated and the safety hazards are achieved, achieving higher safety.
Patent Information
- Application Number
- CN202011179922.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-29
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2040-10-29
AI Technical Summary
The existing electrical plug-in locks are easily artificially misoperated when detecting magnets are approached, resulting in hidden dangers in the safety of the automatic vending cabinet.
An electrical plug-in lock with magnetic encoding encryption is controlled by setting several induction magnets on the lock piece. When the lock piece is close to the lock piece, the control module detects the magnetic encoding and compares it according to the preset magnetic encoding to control the lock piece and lock piece.
It effectively prevents locking problems caused by human misoperation, ensures that the cabinet body and cabinet door can be effectively locked, and improves safety.
Smart Images

Figure CN112343439B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of locks, and in particular to a magnetically coded encrypted electric bolt lock, an automatic vending device, a control method and a device. Background Art
[0002] With the improvement of science and technology, various kinds of equipment have gradually appeared on the market to meet people's living needs, among which vending machines are one of them. Nowadays, vending machines are locked by electric bolts, and the existing electric bolt locks are usually controlled by a combination of magnets and reed switches. When the vending machine is closed, the reed switch senses the approach of the magnet and transmits a lock signal to the controller to let the electric bolt lock perform the lock operation. However, since it uses the simple detection of the magnet by the reed switch, if other magnets are used to approach the reed switch, the electric bolt lock will also perform the lock operation, but in fact the door is not locked properly, which makes the safety of the vending machine hidden dangers. Summary of the invention
[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a magnetically coded encrypted electric bolt lock, an automatic vending machine, a control method and a device with high security.
[0004] The technical solution adopted by the present invention is:
[0005] The magnetically encoded encrypted electric bolt lock comprises: a lock plate, a lock body and a control module;
[0006] The locking piece is installed in one of the cabinet body and the cabinet door, and the lock body is installed in the other of the cabinet body and the cabinet door;
[0007] The locking piece is provided with a number of induction magnets, and the induction magnets are used to generate magnetic coding;
[0008] The control module is used to detect the magnetic code when the lock plate is close to the lock body, and control one of the lock plate and the lock body according to the comparison result of the magnetic code and the preset magnetic code to achieve the locking between the lock plate and the lock body. Further, the control module includes the same number of Hall sensors as the induction magnets, each Hall sensor is set corresponding to one induction magnet, and the Hall sensor is used to detect the magnetic signal.
[0009] Furthermore, the control module includes Hall sensors whose number is the same as the induction magnets, each Hall sensor is arranged corresponding to one induction magnet, and the Hall sensors are used to detect the magnetic encoding.
[0010] Furthermore, the control module includes a controller, which is connected to the Hall sensor, and is used to control one of the lock plate and the lock body according to a comparison result between the magnetic code and a preset magnetic code.
[0011] Furthermore, a first matching structure is provided on the lock plate, and a second matching structure is provided on the lock body. The first matching structure cooperates with the second matching structure to achieve locking, and the control module controls one of the first matching structure and the second matching structure.
[0012] The present invention also provides an automatic vending device, comprising the magnetically coded encrypted electric latch.
[0013] The present invention also provides a control method, which is applied to the magnetically coded encrypted electric lock, comprising:
[0014] When the lock plate is close to the lock body, the magnetic code is obtained;
[0015] According to the comparison result between the magnetic code and the preset magnetic code, one of the lock plate and the lock body is controlled to achieve locking between the lock plate and the lock body.
[0016] Further, the controlling one of the lock plate and the lock body according to the comparison result between the magnetic code and the preset magnetic code includes:
[0017] When the magnetic code is the same as the preset magnetic code, one of the lock plate and the lock body is controlled.
[0018] The present invention also provides a device, comprising:
[0019] at least one processor;
[0020] At least one memory for storing at least one program;
[0021] When the at least one program is executed by the at least one processor, the at least one processor implements the control method.
[0022] The present invention also provides an automatic vending device, comprising the device.
[0023] The present invention also provides a storage medium, wherein the storage medium stores a program, and the program is used to implement the control method when executed by a processor.
[0024] The beneficial effects of the present invention are as follows: by installing the lock plate on one of the cabinet body or the cabinet door, and by installing the lock body on the other of the cabinet body and the cabinet door, a number of induction magnets are arranged on the lock plate, and when the lock plate and the lock body are close to each other, the control module can detect the magnetic code generated by the induction magnet, so that the control module compares it with the preset magnetic code, and controls one of the lock plate and the lock body according to the comparison result to achieve locking between the lock plate and the lock body, thereby ensuring that the cabinet body and the cabinet door can be effectively locked, thereby improving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a structural schematic diagram of a magnetically coded encrypted electric bolt lock of the present invention;
[0026] Figure 2 is a flow chart of the control method of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0028] The terms "first", "second", "third", etc. in the specification and claims of this application and the drawings are only used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. Reference to "embodiments" herein means that the specific features, structures or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] The present invention will be further explained and illustrated below in conjunction with the accompanying drawings and specific embodiments.
[0030] Reference Figure 1 The embodiment of the present invention provides a magnetically coded encrypted electric bolt lock, comprising: a lock body 1, a lock plate 2 and a control module A.
[0031] Reference Figure 1In the embodiment of the present application, the lock body 1 is installed on the cabinet door (not shown), and the lock plate 2 is installed on the cabinet (not shown). It can be understood that the lock body 1 can be installed on the cabinet, and the lock plate 2 can be installed on the cabinet door. In the embodiment of the present application, the lock plate 2 has a base 21, and the base 21 is provided with N (N≥2) induction magnets 22 and a first matching structure 23. The induction magnet 22 is used to generate a magnetic code. In this embodiment, four induction magnets 22 are taken as an example, and a set of 4-bit magnetic codes can be generated. Optionally, the induction magnets 22 include but are not limited to neodymium magnets, and each induction magnet has a south pole and a north pole.
[0032] Reference Figure 1 In the embodiment of the present application, the lock body 1 has a main body 11 and a second matching structure 12 disposed on the main body 11, and the first matching structure 23 cooperates with the second matching structure 12 to achieve locking. Optionally, in the embodiment of the present application, the first matching structure 23 is a through hole, the second matching structure 12 is a lock tongue, and the second matching structure 12 extends from the main body 11 to the second matching structure 12. It is understandable that the first matching structure 23 can also be a lock tongue, and the second matching structure 12 can also be a through hole. Among them, the second matching structure 12 is located on the side of the main body 11 close to the second matching structure 12.
[0033] Reference Figure 1 In the embodiment of the present application, the control module A is disposed in the lock body 1, connected to the lock body 1 (specifically connected to the second matching structure 12), and is used to control the second matching structure 12 of the lock body 1 to achieve locking of the first matching structure 23 and the second matching structure 12. It is understandable that the control module A can also be connected to the lock plate 2 (specifically connected to the first matching structure 23), and the first matching structure 23 is controlled to achieve locking of the first matching structure 23 and the second matching structure 12.
[0034] Reference Figure 1 In the embodiment of the present application, the control module A includes a controller 3 and N (N≥2) Hall sensors 4, wherein the controller 3 is electrically connected to the Hall sensors 4.
[0035] Reference Figure 1 In the embodiment of the present application, the Hall sensor 4 is used to detect the magnetic signal generated by the induction magnet 22. The number of the Hall sensors 4 is the same as the number of the induction magnets 22, and each Hall sensor 4 is arranged corresponding to one induction magnet 22 in the mechanical structure to ensure a one-to-one correspondence between the induction magnet 22 and the Hall sensor 4, that is, the Hall sensor 4 at each position is aligned with the lock induction magnet 22 to ensure the correct transmission of data (signals). In the embodiment of the present application, the Hall sensor 4 is installed on the controller 3, and the controller 3 is located on the side of the main body 11 away from the first matching structure 23.
[0036] In the embodiment of the present application, the controller 3 stores a preset magnetic code, which is pre-stored and uniquely set, and is the same as the magnetic code that can be generated by the induction magnet 22. The controller 3 includes but is not limited to any one or more processor chips including MCU, FPGA, CPLD, DSP, ARM, etc.
[0037] Reference Figure 1 , the specific working process of the present invention is described in detail below:
[0038] The Hall sensor 4 detects the surrounding magnetic field strength. When it detects that the cabinet and the cabinet door are close, the Hall sensor 4 senses the magnetic code of the induction magnet 22 and transmits it to the controller 3 (when the electrical signal exceeds the set threshold, the north (south) pole is output, and when the electrical signal is less than the set threshold, the south (north) pole is output). The controller 3 compares the magnetic codes transmitted by the four Hall sensors 4 with the data stored in the controller 3 (preset magnetic codes). When the comparison results are the same, the controller 3 will generate a lock signal to control the lock body 1 to perform the lock operation (lock), and when the comparison results are different, the lock body 1 does not perform the lock operation and remains unlocked. When locking, the lock tongue extends to the through hole to lock the door.
[0039] The embodiment of the present application further provides an automatic vending device, comprising the above-mentioned magnetically coded encrypted electric bolt lock, and the above-mentioned cabinet body and cabinet door.
[0040] The specific application scenario is as follows: a QR code is attached to one side of the cabinet of the vending machine. When the user pays by scanning the QR code, the background server of the vending machine can uniquely determine the user information and control the vending machine to unlock. At this time, the controller 3 performs the unlocking operation. When the user opens the door, selects the product, and closes the door to settle the bill, the magnetic code is generated by the induction magnet 22 due to the setting of the above-mentioned magnetic code encrypted electric bolt lock. The Hall sensor 4 transmits it to the controller 3 and compares it with the stored preset magnetic code. Only when it is correct will the lock signal be generated. The controller 3 will feedback the door state according to whether there is an unlock signal, so as to determine whether the magnetic code is correct, effectively preventing users from taking advantage of the loopholes of the existing locks to cause false door closing, improving safety, and effectively avoiding economic losses to merchants.
[0041] like Figure 2 As shown, the embodiment of the present application also provides a control method, which is applied to the above-mentioned magnetically coded encrypted electric lock, comprising:
[0042] When the lock plate is close to the lock body, the magnetic code is obtained;
[0043] According to the comparison result between the magnetic code and the preset magnetic code, one of the lock plate and the lock body is controlled to achieve locking between the lock plate and the lock body.
[0044] Optionally, when the magnetic code is the same as the preset magnetic code, one of the lock plate and the lock body is controlled.
[0045] The present application also provides a device, including:
[0046] at least one processor;
[0047] At least one memory for storing at least one program;
[0048] When the at least one program is executed by the at least one processor, the at least one processor implements the above control method.
[0049] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0050] In some optional embodiments, the embodiments presented and described in the steps of the present invention are provided by way of example, with the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operations and logical flows presented herein. Optional embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of a larger operation are performed independently.
[0051] The embodiment of the present application also provides an automatic vending device, including the above-mentioned device.
[0052] An embodiment of the present application further provides a storage medium, wherein the storage medium stores a program, and the program is used to implement the above control method when executed by a processor.
[0053] It can also be seen that the contents in the above method embodiments are all applicable to the present storage medium embodiments, and the functions and beneficial effects achieved are the same as those in the method embodiments.
[0054] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0055] The logic and / or steps represented in the embodiments or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses.
[0056] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0057] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described implementation mode. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. Magnetic coding encrypted electric bolt lock, characterized in that: include: Lock plate, lock body and control module; The locking piece is installed in one of the cabinet body and the cabinet door, and the lock body is installed in the other of the cabinet body and the cabinet door; The locking piece is provided with a number of induction magnets, and the induction magnets are used to generate magnetic coding; The control module is used to detect the magnetic code when the lock plate is close to the lock body, and control one of the lock plate and the lock body according to the comparison result between the magnetic code and the preset magnetic code, so as to achieve locking between the lock plate and the lock body; The control module includes the same number of Hall sensors as the induction magnets, each Hall sensor is arranged corresponding to one induction magnet, and the Hall sensor is used to detect the magnetic encoding; The control module includes a controller connected to the Hall sensor, and the controller is used to control one of the lock plate and the lock body according to a comparison result between the magnetic code and a preset magnetic code; A first matching structure is provided on the lock plate, a second matching structure is provided on the lock body, a main body is provided on the lock body, the Hall sensor and the controller are both located on a side of the main body away from the first matching structure, the first matching structure cooperates with the second matching structure to achieve locking, and the control module controls one of the first matching structure and the second matching structure.
2. An automatic vending machine, characterized in that: It comprises the magnetically coded encrypted electric latch as claimed in claim 1.
3. A control method, characterized in that: The magnetically coded encrypted electric lock as claimed in claim 1 comprises: When the lock plate is close to the lock body, the magnetic code is obtained; According to the comparison result between the magnetic code and the preset magnetic code, controlling one of the lock plate and the lock body to achieve locking between the lock plate and the lock body; Among them, controlling one of the lock plate and the lock body according to the comparison result of the magnetic code and the preset magnetic code includes: when the magnetic code is the same as the preset magnetic code, controlling one of the lock plate and the lock body.
4. A device, characterized in that: include: at least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the control method as claimed in claim 3.
5. An automatic vending machine, characterized in that: Comprising the device as claimed in claim 4.
6. A storage medium, characterized in that: The storage medium stores a program, and the program is used to implement the control method as claimed in claim 3 when executed by the processor.
Citation Information
Patent Citations
Automatic sell cabinet and automatic system of selling
CN207764895U
Electric mortise lock based on magnetic coding encryption and vending device
CN213898528U
Numerical, magnetically-encoded, electronically-sensed key
GB2026081A