Unlocking method and device of NFC lockset, equipment and medium
By using coil coupling to trigger signal transmission and rapid authentication in NFC locks, the problem of complex unlocking processes and high power consumption in existing NFC locks is solved, enabling fast, secure, and low-power unlocking operations.
Patent Information
- Application Number
- CN202411543708.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-07
AI Technical Summary
Existing NFC lock unlocking methods suffer from complex authorization processes, long processing times, and high power consumption. In particular, the remote communication module is bulky, Bluetooth unlocking takes a long time, and NFC unlocking requires waiting for the lock to charge.
The unlocking method of the NFC lock is adopted. Trigger signal transmission is carried out through coil coupling of the first NFC interface and the second NFC interface. The power supply module powers on according to the trigger signal and initializes the control module to perform data interaction and authentication. After the control module verifies, it sends operation command to unlock or lock. The power supply module stops supplying power immediately after the operation is completed.
It simplifies the unlocking process, shortens the unlocking time, reduces power consumption, avoids the hassle of choosing multiple locks, and improves security and convenience.
Smart Images

Figure CN119274256A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to an unlocking method, device, equipment and medium for an NFC lock. Background Art
[0002] The application of smart IoT locks in various industries is increasing. The main ways to unlock the locks are remote authorization unlocking, mobile phone APP unlocking, and special computer key unlocking. However, the authorization process of remote authorization unlocking is relatively complicated, the time for a single unlocking is long, and the remote communication module is large in size and high in power. The communication method for unlocking with APP is generally Bluetooth or NFC. The time for unlocking with Bluetooth is longer. When unlocking with NFC, it takes a long time to charge the lock. The unlocking operation can only be completed after the power of the lock reaches the unlocking condition. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an unlocking method, device, equipment and medium for an NFC lock, which can effectively reduce the unlocking time of the NFC lock.
[0004] In a first aspect, an embodiment of the present invention provides an unlocking method for an NFC lock, which is applied to an NFC lock, wherein the NFC lock comprises a locking module and an unlocking module, wherein the locking module and the unlocking module are electrically connected, wherein the locking module is provided with a power supply module, a control module and a first NFC interface, wherein the control module is electrically connected to the power supply module and the first NFC interface respectively, wherein the unlocking module is provided with a second NFC interface, wherein the first NFC interface and the second NFC interface are connected via coil coupling, and wherein the seam joining method of the NFC lock comprises:
[0005] Moving the second NFC interface into the sensing range of the first NFC interface so that the first NFC interface sends a trigger signal to the power supply module;
[0006] The power supply module powers on the control module according to the trigger signal and performs an initialization operation on the control module;
[0007] Confirming the first NFC data of the locking module and the second NFC data of the unlocking module, the control module performs data interaction on the first NFC data and the second NFC data to obtain the identity authentication information of the unlocking module;
[0008] The control module verifies the unlocking module according to the identity verification information, so that the unlocking module sends an operation instruction to the locking module;
[0009] The locking module performs an unlocking operation or a locking operation according to the operation instruction. When the locking module completes the operation instruction, the power supply module stops supplying power to the control module.
[0010] In some embodiments of the present invention, after the locking module performs an unlocking operation or a locking operation according to the operation instruction, the method further includes:
[0011] The control module obtains the feedback status information of the NFC lock, and the control module confirms whether the unlocking module sends an additional operation instruction different from the unlocking operation or the locking operation according to the feedback status information;
[0012] When the unlocking module sends the additional operation instruction to the locking module, the locking module executes the additional operation instruction.
[0013] In some embodiments of the present invention, after the locking module executes the additional operation instruction, the method further includes:
[0014] When the unlocking module does not send the additional operation instruction to the locking module, the control module confirms whether the power supply module reaches a preset delay time;
[0015] When the power supply module reaches the preset delay time, the control module stops supplying power;
[0016] When the power supply module does not reach the preset delay time, the feedback status information of the NFC lock is reconfirmed.
[0017] In some embodiments of the present invention, the locking module is further provided with a first switch tube, a second switch tube, a first MOSFET tube and a first resistor, one end of the first switch tube is connected to the power supply module, the other end of the first switch tube is connected to the control module, one end of the second switch tube is grounded, the other end of the second switch tube is connected to one end of the first resistor, the first switch tube is connected to the first NFC interface through the first MOSFET tube, the other end of the first resistor is connected to the power supply module, and the control module powers on the control module according to the trigger signal, including:
[0018] The first MOS tube is turned on, and the power supply module inputs an initial voltage to the first switch tube to power on the control module and perform the initialization operation;
[0019] The control module turns on the second switch tube so that the first switch tube is continuously turned on.
[0020] In some embodiments of the present invention, the control module performs data interaction on the first NFC data and the second NFC data, including:
[0021] confirming the first ID code of the locking module and the second ID code of the unlocking module;
[0022] When the first NFC interface is connected to the second NFC interface, the control module reads the second ID code and compares the second ID code with the first ID code;
[0023] When the first ID code matches the second ID code, the unlocking module sends an operation instruction to the locking module.
[0024] In some embodiments of the present invention, after moving the unlocking module into the sensing range of the locking module, the method further includes:
[0025] Confirming a first communication protocol preset in the unlocking module and a second communication protocol preset in the locking module;
[0026] When the first communication protocol matches the second communication protocol, the unlocking module is authorized so that the unlocking module performs an unlocking operation on the locking module.
[0027] In some embodiments of the present invention, the control module verifies the unlocking module according to the identity authentication information, including:
[0028] When the unlocking module passes the verification, the unlocking module sends an operation instruction to the locking module;
[0029] When the unlocking module fails the verification, the unlocking module is disconnected from the locking module.
[0030] In a second aspect, an embodiment of the present invention provides an unlocking device for an NFC lock, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the unlocking method for the NFC lock as described in the first aspect above.
[0031] In a third aspect, an embodiment of the present invention provides an electronic device, comprising an unlocking device for an NFC lock as described in the second aspect above.
[0032] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the unlocking method of the NFC lock as described in the first aspect above.
[0033] The unlocking method of the NFC lock according to the embodiment of the present invention has at least the following beneficial effects:
[0034] Move the unlocking module to the sensing range of the locking module so that the second NFC interface sends a trigger signal to the first NFC interface; the power supply module powers on the control module according to the trigger signal and performs initialization operations on the control module; confirm the first NFC data of the locking module and the second NFC data of the unlocking module, and the control module performs data interaction between the first NFC data and the second NFC data to obtain the identity authentication information of the unlocking module; the control module verifies the unlocking module according to the identity authentication information so that the unlocking module sends an operation instruction to the locking module; the locking module performs an unlocking operation or a locking operation according to the operation instruction, and when the locking module completes the operation instruction, the power supply module stops supplying power to the control module. According to the technical solution of this embodiment, the use of NFC communication does not require a Bluetooth connection to be established between the unlocking module and the locking module. The locking module can be awakened by simply approaching the unlocking module to the locking module, which can avoid the inability to determine which lock should be connected when multiple locks are working at the same time, and can also effectively reduce the NFC lock identity recognition and unlocking operation time. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of an unlocking method of an NFC lock provided by an embodiment of the present invention;
[0036] Figure 2 This is a flow chart after the locking module provided by the embodiment of the present invention performs an unlocking operation or a locking operation according to an operation instruction;
[0037] Figure 3 is a flow chart after the locking module according to an embodiment of the present invention executes additional operation instructions;
[0038] Figure 4 is a flow chart of a control module according to a trigger signal provided by an embodiment of the present invention to power on a control module;
[0039] Figure 5 is a flow chart of data interaction between first NFC data and second NFC data by a control module provided by an embodiment of the present invention;
[0040] Figure 6 is a flow chart after the unlocking module is moved into the sensing range of the locking module according to an embodiment of the present invention;
[0041] Figure 7 is a flow chart of a control module according to identity authentication information verifying an unlocking module provided by an embodiment of the present invention;
[0042] Figure 8 is a structural diagram of an unlocking device of an NFC lock provided by another embodiment of the present invention;
[0043] Fig. 9 It is a principle block diagram of an NFC lock provided by an embodiment of the present invention.
[0044] Reference numerals
[0045] The locking module 100 , the power supply module 110 , the control module 120 , the first NFC interface 130 , the unlocking module 200 , the second NFC interface 210 , the first switch tube Q1 , the second switch tube Q2 , and the first MOS tube D1 . DETAILED DESCRIPTION
[0046] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0047] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0048] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0049] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0050] Reference Fig. 9An embodiment of the present invention provides an unlocking method of an NFC lock, which is applied to an NFC lock. The NFC lock includes a locking module 100 and an unlocking module 200. The locking module 100 and the unlocking module 200 are electrically connected. The locking module 100 is provided with a power supply module 110, a control module 120 and a first NFC interface 130. The control module 120 is electrically connected to the power supply module 110 and the first NFC interface 130 respectively. The unlocking module 200 is provided with a second NFC interface 210. The first NFC interface 130 and the second NFC interface 210 are connected through coil coupling.
[0051] It should be noted that the locking module 100 is internally provided with a power supply module 110, which can be a battery, and the control module 120 is a low-power MCU. A SOC chip with Bluetooth, Zigbee or 2.4G can be selected according to actual implementation requirements, and a switch circuit with hardware startup and software shutdown is adopted. The NFC communication interface is used as a trigger source and data interaction, and the unlocking module 200 also has an NFC communication function. When the unlocking module 200 is attached to the surface of the locking module 100, the first NFC interface 130 and the second NFC interface 210 are coupled through a coil, and the NFC interface circuit inside the locking module 100 outputs a trigger signal to the control module 120, so that the locking module 100 is powered on, and data interaction is performed through the first NFC interface 130 and the second NFC interface 210 to complete identity authentication, send unlocking operation instructions, and transmit information such as the lock status.
[0052] It should be noted that the Bluetooth locks, Zigbee locks, 2.4G locks, etc. in the prior art can establish a connection within a range of 10 meters or even farther to exchange data and achieve unlocking. However, in this embodiment, the first NFC interface 130 and the second NFC interface 210 are used for data exchange, which is a near-field coupling method. The coupling distance is generally not more than 5 cm, and the coupling parts need to be directly opposite. Therefore, it can avoid the situation where the unlocking device searches for multiple locks at the same time, thereby avoiding the need to select which lock to connect. In addition, the energy generated by the coupling between the first NFC interface 130 and the second NFC interface 210 is small, and the instantaneous power is not enough to drive the unlocking module 200 to unlock the locking module 100. Therefore, the locking module 100 has a built-in power supply module 110, and the first NFC interface 130 and the second NFC interface 210 are only used as trigger sources and data exchange channels.
[0053] The control method of the embodiment of the present invention is further described below based on the accompanying drawings.
[0054] Reference Figure 1 , Figure 1A flowchart of an unlocking method of an NFC lock provided by an embodiment of the present invention, the unlocking method of the NFC lock includes but is not limited to the following steps:
[0055] Step S11, moving the second NFC interface 210 into the sensing range of the first NFC interface 130, so that the first NFC interface 130 sends a trigger signal to the power supply module 110;
[0056] It should be noted that the first NFC interface 130 and the second NFC interface 210 transmit information through magnetic field coupling, and the unlocking module 200 and the locking module 100 are in passive communication mode. In the passive communication mode, the locking module 100 needs to be powered, and the unlocking module 200 does not need to be powered. When the second NFC interface 210 moves into the sensing range of the first NFC interface 130, the second NFC interface 210 will send a radio signal as an active device to form an electromagnetic field. As a passive device, the second NFC interface 210 obtains energy from the electromagnetic field after sensing the electromagnetic field. At the same time, the second NFC interface 210 loads the trigger signal onto the electromagnetic field and transmits it to the first NFC interface 130. After receiving the trigger signal, the first NFC interface 130 will convert the trigger signal into an electrical signal, thereby triggering the power supply module 110 to work.
[0057] Step S12, the power supply module 110 powers on the control module 120 according to the trigger signal, and performs an initialization operation on the control module 120;
[0058] It should be noted that when the power supply door powers on the control module 120 according to the trigger signal, the control module 120 is powered on again from the power-off state and enters the working state, ensuring that when the locking module 100 receives subsequent operation instructions, it can respond to the operation instructions quickly, thereby improving the unlocking efficiency.
[0059] Step S13, confirming the first NFC data of the locking module 100 and the second NFC data of the unlocking module 200, and the control module 120 performs data interaction on the first NFC data and the second NFC data to obtain the identity authentication information of the unlocking module 200;
[0060] It should be noted that by comparing the first NFC data of the locking module 100 and the second NFC data of the unlocking module 200, the control module 120 verifies the legitimacy of the unlocking module 200, and only when the first NFC data and the second NFC data match, the locking module 100 will perform the unlocking operation through the unlocking module 200. Furthermore, the NFC lock allows the user to unlock the lock by simply approaching, without inserting a key or entering a password, and the data interaction and identity verification process are usually completed in a very short time, further improving the convenience of the NFC lock while ensuring the security of the NFC lock.
[0061] Step S14, the control module 120 verifies the unlocking module 200 according to the identity authentication information, so that the unlocking module 200 sends an operation instruction to the control module 120;
[0062] It should be noted that the control module 120 verifies the unlocking module 200 according to the identity verification information. By verifying the NFC data of the unlocking module 200 and its identity verification information, the control module 120 can ensure that only the unlocking module 200 that has passed the identity verification can send an operation instruction.
[0063] In step S15 , the locking module 100 performs an unlocking operation or a locking operation according to the operation instruction. When the locking module 100 completes the operation instruction, the power supply module 110 stops supplying power to the control module 120 .
[0064] It should be noted that the power supply module 110 in this embodiment only supplies power to the power supply module 110 and the motor during the unlocking operation, and the first NFC interface 130 and the second NFC interface 210 are powered by coil coupling. In addition, since the power supply module 110 does not supply power to the outside, the power supply is stopped immediately after the locking module 100 completes the unlocking or locking operation, which further reduces the power consumption of the NFC lock and improves the battery life and long-term standby reliability of the NFC lock.
[0065] It should be noted that the locking module 100 of the present embodiment has a built-in power supply module 110. The locking module 100 is powered off and shut down when it is not working. The locking module 100 is triggered to start up by the unlocking module 200. A trigger signal is generated between the first NFC interface 130 and the second NFC interface 210 through coil coupling, so that the locking module 100 is powered on and started up according to the trigger signal. After the locking module 100 is powered on and started up, data exchange and identity confirmation are performed through the first NFC interface 130 and the second NFC interface 210, thereby completing the unlocking operation of the locking module 100 and the status collection and transmission of the NFC lock. The locking module 100 can be awakened by simply bringing the unlocking module 200 close to the locking module 100, which can avoid the inability to determine which lock to connect when multiple locks are working at the same time, and can also effectively reduce the NFC lock identity recognition and unlocking operation time.
[0066] In addition, in one embodiment, referring to Figure 2 ,exist Figure 1 After step S15 in the illustrated embodiment, the following steps are also included but not limited to:
[0067] Step S21, the control module 120 obtains the feedback status information of the NFC lock, and the control module 120 confirms whether the unlocking module 200 sends an additional operation instruction different from the unlocking operation or the locking operation according to the feedback status information;
[0068] In step S22 , when the unlocking module 200 sends the additional operation instruction to the locking module 100 , the locking module 100 executes the additional operation instruction.
[0069] It should be noted that the control module 120 obtains the feedback status information of the locking module 100 in real time by interacting with the NFC lock. This information includes but is not limited to the current state of the lock (such as unlocked, locked, abnormal state, etc.), operation time, number of operations and other key data. The lock executes the status update instruction so that the NFC module can update the status information of the lock in real time and feedback it to the user. Alternatively, after the control module 120 obtains the feedback status information of the NFC lock, the locking module 100 immediately re-unlocks or locks the lock, thereby further improving the unlocking speed of the NFC lock.
[0070] In addition, in one embodiment, referring to Figure 3 ,exist Figure 1 Step S11 of the illustrated embodiment also includes but is not limited to the following steps:
[0071] Step S31, when the unlocking module 200 does not send an additional operation instruction to the locking module 100, the control module 120 confirms whether the power supply module 110 reaches a preset delay time;
[0072] Step S32, when the power supply module 110 reaches the preset delay time, the control module 120 stops supplying power;
[0073] Step S33: when the power supply module 110 does not reach the preset delay time, reconfirm the feedback status information of the NFC lock.
[0074] It should be noted that, by setting a preset delay time and intelligently controlling the power supply status of the power supply module 110, the NFC lock can extend the service life of the power supply module 110 as much as possible while meeting normal working requirements, thereby reducing the maintenance cost of the NFC lock; when the power supply module 110 reaches the preset delay time, the control module 120 reconfirms the feedback status information of the NFC lock, and by reconfirming the status information of the NFC lock in real time, the control module 120 can quickly obtain the abnormal status of the lock, thereby making a timely response, avoiding the situation where the NFC lock cannot be unlocked or locked, and further improving the safety and reliability of the NFC lock.
[0075] In addition, in one embodiment, referring to Figure 4 ,exist Figure 1 Step S11 of the illustrated embodiment also includes but is not limited to the following steps:
[0076] Step S41, turning on the first MOS tube D1, the power supply module 110 inputs an initial voltage to the first switch tube Q1, so as to power on the control module 120 and perform an initialization operation;
[0077] In step S42 , the control module 120 turns on the second switch tube Q2 to keep the first switch tube Q1 turned on continuously.
[0078] It should be noted that by turning on the first MOS tube D1, the power supply module 110 can quickly provide the control module 120 with the initial voltage required for unlocking and locking operations, thereby accelerating the startup process of the control module 120. The continuous conduction of the first switch tube Q1 ensures that the control module 120 obtains a stable power supply during initialization and subsequent operations. Thereby ensuring the normal operation and accurate unlocking of the control module 120. Furthermore, the control module 120 maintains the continuous conduction state of the first switch tube Q1 by turning on the second switch tube Q2, while ensuring the necessary functions of the locking module 100, reducing unnecessary energy loss, thereby extending the service life of the NFC lock. The NFC lock uses an automated control process so that the user can unlock the NFC lock without performing complicated operations. It improves the user's convenience and reduces the risk of unlocking failure due to improper operation.
[0079] In addition, in one embodiment, referring to Figure 5 ,exist Figure 1Step S11 of the illustrated embodiment also includes but is not limited to the following steps:
[0080] Step S51, confirming the first ID code of the locking module 100 and the second ID code of the unlocking module 200;
[0081] Step S52, when the first NFC interface 130 is connected to the second NFC interface 210, the control module 120 reads the second ID code and compares the second ID code with the first ID code;
[0082] Step S53 , when the first ID code matches the second ID code, the unlocking module 200 sends an operation instruction to the locking module 100 .
[0083] It should be noted that by comparing the first ID code of the locking module 100 and the second ID code of the unlocking module 200, it can be ensured that only the unlocking module 200 with the correct ID code can unlock the corresponding locking module 100, thereby enhancing the security of the NFC lock and preventing the locking module 100 from being accessed and unlocked without authorization. Further, the ID code matching process ensures that only the unlocking module 200 that matches the locking module 100 can send an operation instruction to the locking module 100. This avoids the situation where the NFC lock is mis-locked due to misoperation or misidentification. In addition, the user does not need to perform complex operations or enter cumbersome passwords, and only needs to bring the second NFC interface 210 of the unlocking module 200 with the correct ID code close to the second NFC interface 210 of the locking module 100 to complete the unlocking. This simplifies the operation process of the NFC lock, simplifies the unlocking time of the NFC lock, and improves the user's convenience.
[0084] In addition, in one embodiment, referring to Figure 6 ,exist Figure 1 Step S11 of the illustrated embodiment also includes but is not limited to the following steps:
[0085] Step S61, confirming the first communication protocol preset in the unlocking module 200 and the second communication protocol preset in the locking module 100;
[0086] Step S62 , when the first communication protocol and the second communication protocol match, the unlocking module 200 is authorized so that the unlocking module 200 performs an unlocking operation on the locking module 100 .
[0087] It should be noted that the unlocking module 200 and the locking module 100 perform data exchange through the first communication protocol and the second communication protocol, so it is possible to prevent the unauthorized unlocking module 200 from performing unlocking operations on the locking module 100 through NFC, and the above logic can ensure the security of two-way identity authentication. By confirming and matching the first communication protocol and the second communication protocol between the unlocking module 200 and the locking module 100, it is ensured that the unlocking module 200 and the locking module 100 can communicate stably and effectively. Thereby enhancing the communication compatibility of the NFC lock, and avoiding the occurrence of unlocking failure or erroneous unlocking caused by mismatching of the communication protocols. Only when the first communication protocol and the second communication protocol match, the unlocking module 200 will be authorized to unlock the locking module 100, thereby improving the accuracy of unlocking. This embodiment effectively simplifies the configuration process of the NFC lock system by presetting the communication protocol and performing authorization when matching. The user does not need to perform complex settings or adjustments, and only needs to ensure that the communication protocols of the unlocking module 200 and the locking module 100 match to realize the unlocking function of the NFC lock.
[0088] In addition, in one embodiment, referring to Figure 7 ,exist Figure 1 Step S11 of the illustrated embodiment also includes but is not limited to the following steps:
[0089] Step S71, when the unlocking module 200 passes the verification, the unlocking module 200 sends an operation instruction to the locking module 100;
[0090] Step S72 , when the unlocking module 200 fails the verification, the unlocking module 200 is disconnected from the locking module 100 .
[0091] It should be noted that, through the verification mechanism, it is ensured that only the legitimate unlocking module 200 can send an operation instruction to the locking module 100, thereby unlocking the NFC lock. The security of the NFC lock is enhanced to prevent unauthorized access and unlocking. When the unlocking module 200 fails to pass the verification, the locking module 100 will automatically disconnect the control module 120 from the power supply module 110, avoiding the lock being mislocked due to misoperation or misidentification.
[0092] like Figure 8 As shown, Figure 8 : is a structural diagram of an unlocking device for an NFC lock provided by an embodiment of the present invention. The present invention also provides an unlocking device for an NFC lock, comprising:
[0093] The processor 801 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0094] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the unlocking method of the NFC lock of the embodiment of this application;
[0095] Input / output interface 803, used to implement information input and output;
[0096] The communication interface 804 is used to realize the communication interaction between the present apparatus and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WI FI, Bluetooth, etc.);
[0097] A bus 805 that transmits information between the various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);
[0098] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .
[0099] An embodiment of the present application further provides an electronic device, comprising the unlocking device of the NFC lock as described above.
[0100] The embodiment of the present application further provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the unlocking method of the NFC lock is implemented.
[0101] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0102] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0103] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A method for unlocking an NFC lock, characterized in that: Applied to an NFC lock, the NFC lock comprises a locking module and an unlocking module, the locking module and the unlocking module are electrically connected, the locking module is provided with a power supply module, a control module and a first NFC interface, the control module is electrically connected to the power supply module and the first NFC interface respectively, the unlocking module is provided with a second NFC interface, the first NFC interface and the second NFC interface are connected through coil coupling, and the seam method of the NFC lock comprises: Moving the second NFC interface into the sensing range of the first NFC interface so that the first NFC interface sends a trigger signal to the power supply module; The power supply module powers on the control module according to the trigger signal and performs an initialization operation on the control module; Confirming the first NFC data of the locking module and the second NFC data of the unlocking module, the control module performs data interaction on the first NFC data and the second NFC data to obtain the identity authentication information of the unlocking module; The control module verifies the unlocking module according to the identity verification information, so that the unlocking module sends an operation instruction to the locking module; The locking module performs an unlocking operation or a locking operation according to the operation instruction. When the locking module completes the operation instruction, the power supply module stops supplying power to the control module.
2. The method for unlocking an NFC lock according to claim 1, characterized in that: After the locking module performs an unlocking operation or a locking operation according to the operation instruction, the method further includes: The control module obtains the feedback status information of the NFC lock, and the control module confirms whether the unlocking module sends an additional operation instruction different from the unlocking operation or the locking operation according to the feedback status information; When the unlocking module sends the additional operation instruction to the locking module, the locking module executes the additional operation instruction.
3. The method for unlocking an NFC lock according to claim 2, characterized in that: After the locking module executes the additional operation instruction, the method further includes: When the unlocking module does not send the additional operation instruction to the locking module, the control module confirms whether the power supply module reaches a preset delay time; When the power supply module reaches the preset delay time, the control module stops supplying power; When the power supply module does not reach the preset delay time, the feedback status information of the NFC lock is reconfirmed.
4. The method for unlocking an NFC lock according to claim 1, characterized in that: The locking module is further provided with a first switch tube, a second switch tube, a first MOSFET tube and a first resistor, one end of the first switch tube is connected to the power supply module, the other end of the first switch tube is connected to the control module, one end of the second switch tube is grounded, the other end of the second switch tube is connected to one end of the first resistor, the first switch tube is connected to the first NFC interface through the first MOSFET tube, the other end of the first resistor is connected to the power supply module, and the control module powers on the control module according to the trigger signal, including: The first MOS tube is turned on, and the power supply module inputs an initial voltage to the first switch tube to power on the control module and perform the initialization operation; The control module turns on the second switch tube so that the first switch tube is continuously turned on.
5. The method for unlocking an NFC lock according to claim 1, characterized in that: The control module performs data interaction on the first NFC data and the second NFC data, including: confirming the first ID code of the locking module and the second ID code of the unlocking module; When the first NFC interface is connected to the second NFC interface, the control module reads the second ID code and compares the second ID code with the first ID code; When the first ID code matches the second ID code, the unlocking module sends an operation instruction to the locking module.
6. The method for unlocking an NFC lock according to claim 1, characterized in that: After the unlocking module is moved into the sensing range of the locking module, the method further comprises: Confirming a first communication protocol preset in the unlocking module and a second communication protocol preset in the locking module; When the first communication protocol matches the second communication protocol, the unlocking module is authorized so that the unlocking module performs an unlocking operation on the locking module.
7. The method for unlocking an NFC lock according to claim 1, characterized in that: The control module verifies the unlocking module according to the identity authentication information, including: When the unlocking module passes the verification, the unlocking module sends an operation instruction to the locking module; When the unlocking module fails the verification, the unlocking module is disconnected from the locking module.
8. An unlocking device for an NFC lock, characterized in that: The invention comprises at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the unlocking method of the NFC lock according to any one of claims 1 to 7.
9. An electronic device, characterized in that: An unlocking device comprising the NFC lock according to claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the unlocking method of the NFC lock according to any one of claims 1 to 7.