Smart door lock and card registration method
The card sector is encrypted through the card reading unit and logic control unit of the smart door lock, which solves the problem of easy duplication of encrypted cards and achieves a combination of high security and convenience.
Patent Information
- Application Number
- CN202211705026.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The encryption cards of existing smart door locks are easy to copy, which requires users to purchase new cards after losing them, which is costly and inconvenient to use.
The card reader unit and logic control unit of the smart door lock are used to read the card information and poll the sector, encrypt the unencrypted sector, store the card ID and encryption information, and support the registration and verification of anti-copying cards and ordinary cards.
While achieving high security, it allows users to register using ordinary cards, reducing the number of cards carried and improving convenience.
Smart Images

Figure CN116071852B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of locks, and in particular to an intelligent door lock and a card registration method. Background Art
[0002] To protect the security of some users, existing smart door locks utilize encrypted cards, addressing the vulnerability of ordinary credit cards to duplication. These encryption methods vary from manufacturer to manufacturer. If a user loses an encrypted card, they must purchase a new one from the manufacturer. These cards are not only expensive, but also inconvenient for users who rely on them to unlock their doors while waiting for a replacement. Summary of the Invention
[0003] One of the purposes of the present invention is to provide a smart door lock and card registration method that can meet the high security requirements of some users while also meeting the needs of users who pay more attention to convenience.
[0004] To achieve the above objectives, in a first aspect, the present invention provides a smart door lock, comprising: a card reading unit, comprising a card reading antenna, for reading information of a card approaching a lock body and writing information into the card; a storage unit, for storing data information; a logic control unit, connected to the card reading unit and the storage unit, and controlling the card reading unit and the storage unit to operate according to a preset program to register and verify the card; a power supply, for supplying power to the card reading unit, the storage unit and the logic control unit; wherein when registering a card, the logic control unit reads a card approaching the smart lock through the card reading unit, and polls sectors 1 to 15 of the card, encrypts any unencrypted sector using a preset secret key value, and stores the card ID, encryption sector number and encryption information into the storage unit, and writes the same encryption information into the encryption sector; when verifying a card, the logic control unit reads a card approaching the smart lock through the card reading unit, and then queries whether the card ID is stored in the storage unit. If so, the logic control unit queries its encryption sector number and encryption information and compares them with the encryption information in the corresponding sector number in the card. If they are the same, the verification is passed.
[0005] Preferably, when registering a card, the logic control unit further determines whether the card near it is an anti-copy card according to a preset encryption method, and if so, directly stores the sector number and encryption information of the preset encryption sector into the storage unit.
[0006] Preferably, when registering a card, if no unencrypted sectors exist after polling sectors 1 to 15 of the card, the card registration is terminated.
[0007] Preferably, the card is any one of an IC card, an anti-copying card, a Mifare 1 card, and a Mifare 1 card simulated by a mobile phone NFC.
[0008] In order to achieve the above object, in a second aspect, the present invention provides a card registration method, which is applied to the smart door lock as described above, comprising the following steps:
[0009] Step S1: Place the card to be registered close to the smart door lock;
[0010] Step S2: Read the card information and determine whether the card is an anti-copy card according to a preset encryption method. If it is, store the sector number and encryption information of the preset encryption sector in the storage unit and complete the card registration. If it is not, continue with the following steps.
[0011] Step S3: poll sectors 1 to 15 of the card to see if there are any unencrypted sectors. If there are any unencrypted sectors, encrypt the sectors with a preset key value, store the card ID, encrypted sector number, and encryption information in the storage unit, and write the same encryption information into the encrypted sectors. If all sectors of the card have been encrypted, terminate the card registration.
[0012] According to the above description and practice, through the smart door lock and card registration method described in the present invention, users can choose to use the special anti-copying card provided by the manufacturer to fully ensure security according to their actual situation, or they can use ordinary IC cards such as community access cards and parking cards, Mifare1 cards, or Mifare1 cards simulated by mobile phone NFC, and register them to the smart lock to realize one-card opening, so that users can carry as few cards as possible on their bodies, thereby improving the convenience of using the lock. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a structural diagram of a smart door lock involved in one embodiment of the present invention.
[0014] Figure 2 The figure is a flowchart of a card registration method involved in one embodiment of the present invention. DETAILED DESCRIPTION
[0015] The exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0016] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. It should be noted that in the present disclosure, the terms "including", "configured with", and "set on" are used to express open-ended inclusion and mean that in addition to the listed elements / components / etc., there may be additional elements / components / etc.; the terms "first", "second", etc. are used only as labels and are not intended to limit the number or order of their objects; the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate directions or positional relationships based on the directions 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 direction, be constructed and operate in a specific direction, and therefore should not be understood as limiting the present invention.
[0017] Unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be interpreted broadly. For example, they can refer to fixed, removable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediary; and internal communication between two components. Those skilled in the art will understand the specific meanings of these terms in the present invention based on the specific circumstances.
[0018] In this embodiment, a smart door lock is disclosed. Figure 1 The system structure of the smart door lock is shown in Figure 2. Figure 1 The smart door lock includes a card reader unit, a storage unit, a logic control unit, and a power supply. The card reader unit includes a card reader antenna for reading information from a card placed near the lock body and writing information to the card. The storage unit is used to store data. The logic control unit is connected to the card reader and storage units and controls them according to a preset program to register and verify cards. The power supply is used to supply power to the card reader, storage, and logic control unit.
[0019] Specifically, when registering a card, the smart door lock's logic control unit uses the card reader to read the card held close to the smart lock and poll sectors 1 to 15. Any unencrypted sector is encrypted using a preset key value, and the card's ID, encrypted sector number, and encryption information are stored in the storage unit. The same encryption information is then written to the encrypted sector, ultimately completing the card registration. If no unencrypted sectors are found after polling sectors 1 to 15, the card registration is terminated.
[0020] When the smart door lock verifies the card, the logic control unit reads the card close to the smart lock through the card reading unit, and then queries whether the card ID is stored in the storage unit. If so, it queries its encrypted sector number and encryption information and compares them with the encryption information in the corresponding sector number in the card. If they are the same, the verification is passed.
[0021] When using this smart door lock, users can register any existing IC card, anti-copy card, Mifare 1 card, or Mifare 1 card emulated by a mobile phone's NFC to unlock the smart door lock. This solves the problem of needing a replacement card after losing the smart door lock's own access card. Furthermore, this smart door lock also accepts anti-copy cards, providing a higher level of security.
[0022] In addition, in this embodiment, when the smart door lock registers a card, the logic control unit therein also determines whether the card close to it is an anti-copying card according to a preset encryption method. If so, the sector number and encryption information of the preset encryption sector in the card are directly stored in the storage unit.
[0023] In this embodiment, a card registration method is also disclosed, which is applied to the above-mentioned smart door lock and specifically includes the following steps:
[0024] Step S1: Place the card to be registered close to the smart door lock.
[0025] When the user needs to add a card as the access card of the smart door lock, he can choose any of the existing IC cards, anti-copying cards, Mifare 1 cards or Mifare 1 cards simulated by mobile phone NFC to register. When operating, bring it close to the smart door lock and turn on the card registration mode of the smart door lock.
[0026] Step S2: In the card registration mode, the smart door lock reads the card information and determines whether the card is an anti-copy card according to the preset encryption method. If it is, the sector number and encryption information of the preset encryption sector are stored in the storage unit and the card registration is completed. If not, continue with the following steps.
[0027] Step S3: poll sectors 1 to 15 of the card to see if there are any unencrypted sectors. If there are any unencrypted sectors, encrypt the sectors with a preset key value, store the card ID, encrypted sector number, and encryption information in the storage unit, and write the same encryption information to the encrypted sectors. If all sectors of the card have been encrypted, terminate the card registration.
[0028] See attached for details Figure 2When registering a card, the logic control unit enters the card registration mode, controls the card reader unit and the card reader antenna to start working, and detects whether a card is approaching. When a card is detected approaching, it first determines whether the card is a dedicated anti-copying card according to the preset encryption method. If it is, the sector number and encryption information of the specific (i.e., pre-set) encrypted sector are directly saved to the storage unit. If not, it starts polling sectors 1 to 15 to see if there are any unencrypted sectors. If there are unencrypted sectors, a preset key value is used to encrypt the sector, and then the card ID, the sector number of the sector, and the encryption information are all saved to the storage unit. If all sectors have been encrypted, it means that all sectors of the card have been occupied by other systems and cannot be registered. At this time, the card registration is terminated.
[0029] When the smart lock verifies the card, the logic control unit enters the card verification mode, controls the card reading unit and the card reading antenna to start working, and detects whether there is a card approaching. When the card is detected approaching, the read card ID is compared with the registered card ID library stored in the storage unit. If the comparison is successful, the encryption sector number corresponding to the ID is directly returned to the logic control unit. The logic control unit controls the card reading unit and the card reading antenna to verify whether the encryption information of the encryption sector corresponding to the card is consistent with that at the time of registration. If they are consistent, the card verification is successful.
[0030] The smart door lock designed by this solution allows users to choose to use the special anti-copying card provided by the manufacturer to fully ensure security according to their actual situation. They can also use ordinary IC cards such as community access cards and parking cards, Mifare 1 cards, or Mifare 1 cards simulated by mobile phone NFC, and register them to the smart lock to achieve one-card unlocking. This allows users to carry as few cards as possible and improves the convenience of using the lock.
[0031] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be considered in all respects as illustrative and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. It is intended that all variations within the meaning and range of equivalents of the claims be embraced herein, and any reference signs in the claims should not be construed as limiting the claims to which they relate.
Claims
1. A smart door lock, characterized in that: include: A card reader unit, including a card reader antenna, is used to read information from a card placed close to the lock body and write information into the card; A storage unit, used for storing data information; a logic control unit connected to the card reading unit and the storage unit, and controlling the card reading unit and the storage unit to operate according to a preset program to register and verify the card; A power supply, used to supply power to the card reading unit, the storage unit and the logic control unit; in When registering a card, the logic control unit reads the card close to the smart lock through the card reading unit, and determines whether the card is an anti-copy card according to the preset encryption method. If it is, the sector number and encryption information of the preset encryption sector are directly stored in the storage unit. If not, the card sectors 1 to 15 are polled, and any unencrypted sector is encrypted using a preset secret key value, and the card ID, encryption sector number and encryption information are stored in the storage unit, and the same encryption information is written into the encryption sector at the same time; When verifying the card, the logic control unit reads the card close to the smart lock through the card reading unit, and then queries whether the card ID is stored in the storage unit. If so, it queries its encrypted sector number and encryption information and compares them with the encryption information in the corresponding sector number in the card. If they are the same, the verification is passed.
2. The smart door lock according to claim 1, wherein: When registering a card, if there is no unencrypted sector after polling sectors 1 to 15 of the card, the card registration is terminated.
3. The smart door lock according to claim 1, wherein: The card is any one of an IC card, an anti-copying card, a Mifare 1 card, and a Mifare 1 card simulated by a mobile phone NFC.
4. A card registration method, applied to the smart door lock according to any one of claims 1 to 3, characterized in that: The steps include: Step S1: Place the card to be registered close to the smart door lock; Step S2: Read the card information and determine whether the card is an anti-copy card according to a preset encryption method. If it is, store the sector number and encryption information of the preset encryption sector in the storage unit and complete the card registration. If it is not, continue with the following steps. Step S3: poll sectors 1 to 15 of the card to see if there are any unencrypted sectors. If there are any unencrypted sectors, encrypt the sectors with a preset key value, store the card ID, encrypted sector number, and encryption information in the storage unit, and write the same encryption information into the encrypted sectors. If all sectors of the card have been encrypted, terminate the card registration.
Citation Information
Patent Citations
Method for copying smart card and electronic equipment
CN114172544A