Automatic entry method for pass card, smart lock, entry system and readable medium

By decrypting and writing the encrypted data and registration information of the pass card in the smart lock, the problem of cumbersome entry steps of existing smart locks is solved, and fast and convenient entry and management of pass card is achieved.

CN115081565BActive Publication Date: 2025-08-15GUANGDONG KETYOO INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210579904.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-25
Publication Date
2025-08-15
Estimated Expiration
2042-05-25

AI Technical Summary

Technical Problem

The existing smart locks are complicated when entering the pass card, especially when there are multiple locks, and they need to be repeated, and are not customer-friendly enough.

Method used

By obtaining the encrypted data of the pass card storage area, decrypting and determining that it complies with the predetermined rules, the pass data is written to the card storage area and storing registration information to simplify the entry process.

Benefits of technology

It realizes that the pass card can be entered after the user operates once, improves the entry efficiency, is suitable for multiple lock scenarios, and supports direct authentication and management of existing cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115081565B_ABST
    Figure CN115081565B_ABST
Patent Text Reader

Abstract

The present invention relates to smart homes, and in particular to a method for automatically entering a pass card, a smart lock, an entry system, and a readable medium. A method for automatically entering a pass card comprises: a method for automatically entering a pass card, applied to a smart lock, comprising: obtaining encrypted data in a storage area of a pass card, decrypting to obtain first data; when the first data meets a predetermined rule, writing the pass data into the storage area of the pass card; obtaining and storing the registration information of the pass card. After obtaining the encrypted data of the pass card, the smart lock decrypts the encrypted data to obtain the first data; when the first data meets the predetermined rule, the pass data is written into the pass card, and the registration information of the pass card is stored; when the user operates, the pass card entry operation can be completed by only attaching the pass card to the smart lock once, which is convenient and quick.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to smart home, and in particular to a method for automatically entering a pass card, a smart lock, an entry system and a readable medium. Background Art

[0002] For smart locks currently on the market, the steps for entering a card are roughly as follows: wake up the screen >> press a specific key to enter the smart lock system menu >> verify the administrator key >> enter the add user interface >> select add card >> enter the card >> entry is successful. There are quite a few steps.

[0003] While existing technologies can solve the card entry problem, they require entering a specific entry interface to add a card, which may not be suitable for some scenarios with special needs (for example, a company group may want to have a single management card, but has hundreds of smart locks. Adding a card to each lock is cumbersome and customer-unfriendly). This invention aims to simplify the card addition process while ensuring safety and reliability, providing a better customer experience. Summary of the Invention

[0004] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a method for automatically entering a pass card, a smart lock, an entry system and a readable medium, which can improve the efficiency of entering a pass card.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In one aspect, the present invention provides a method for automatically entering a pass card, which is applied to a smart lock and includes:

[0007] Obtaining encrypted data in a storage area of the pass card and decrypting the data to obtain first data;

[0008] When the first data meets the predetermined rules, the pass data is written into the pass card storage area;

[0009] Get the registration information of the pass card and store it.

[0010] Furthermore, before the access card is entered into the smart lock, the following steps are also included:

[0011] Writing the encrypted data into the first storage area of a blank card by a card making machine to obtain the pass card;

[0012] The encrypted data acquisition steps are:

[0013] Obtaining an encryption key and second data that complies with a predetermined rule;

[0014] The second data is encrypted using the encryption key to obtain the encrypted data.

[0015] Furthermore, the encryption key used for decrypting the encrypted data in the smart lock is obtained by the server or pre-stored; the encryption key used for encrypting the second data in the card making machine is obtained by the server;

[0016] When the first data meets the predetermined rules, the smart lock writes the pass data into the second storage area of the pass card.

[0017] Furthermore, if the encrypted data is not obtained in the pass card storage area, or the decryption of the encrypted data fails, or the data obtained after decryption of the encrypted data does not meet the predetermined rules, it is determined whether the pass card has the pass authority; wherein,

[0018] If the pass card storage area stores pass data and the smart lock has stored corresponding registration information, it is determined that the pass card has the door opening authority; otherwise, it is determined that the pass card does not have the door opening authority.

[0019] Furthermore, after decrypting and obtaining the first data and determining that the first data complies with a preset rule, it is first determined whether the registration information of the pass card is stored in the smart lock;

[0020] If the smart lock has stored the registration information of the pass card, the process of determining whether the pass card has access permission is entered, including:

[0021] Obtaining access data from a storage area in the access card; determining the door opening authority of the access card based on the access data stored in the storage area of the access card;

[0022] If the smart lock does not store the registration information of the pass card, the pass data is written into the storage area of the pass card, and the registration information of the pass card is stored, and it is determined based on the pass data that the pass card has the right to open the door.

[0023] Furthermore, the access data includes: whether the card is a card on a card making machine, whether it has been entered into the system, card authority, card type, and card number.

[0024] Furthermore, the predetermined rule is data constructed using a predetermined format.

[0025] In another aspect, the present invention provides a smart lock comprising:

[0026] An interactive module, configured to obtain encrypted data from a storage area of a pass card, write the pass data into the storage area of the pass card, and obtain registration information of the pass card;

[0027] The processing module is configured to decrypt the encrypted data to obtain first data; when the first data meets a predetermined rule, drive the interaction module to write the pass data into the pass card storage area, obtain and store the registration information of the pass card, and determine that the pass card has the right to open the door.

[0028] In another aspect, the present invention provides a pass card entry system for a smart lock, comprising:

[0029] A card making machine, configured to write the encrypted data into a storage area of a blank card to obtain the pass card; the encrypted data is obtained by encrypting the second data based on an encryption key; the encryption key in the card making machine is obtained from a server;

[0030] The smart lock is used to obtain the encrypted data in the pass card storage area and decrypt it to obtain the first data; when the first data meets the predetermined rules, the pass data is written into the pass card storage area; the registration information of the pass card is obtained and stored; the encryption key in the smart lock is obtained through the server or pre-stored.

[0031] On the other hand, the present invention provides a computer-readable medium storing a computer program, which, when executed by a processor, implements any of the aforementioned methods for automatically entering a pass card.

[0032] Compared with the prior art, the automatic entry method for a pass card, the smart lock, the entry system, and the readable medium provided by the present invention have the following beneficial effects:

[0033] Using the automatic entry method for the pass card provided by the present invention, after the smart lock obtains the encrypted data of the pass card, it decrypts the encrypted data to obtain the first data. When the first data meets the predetermined rules, the pass data is written into the pass card and the registration information of the pass card is stored. When the user operates, he only needs to attach the pass card to the smart lock once to complete the pass card entry operation, which is convenient and quick.

[0034] In the automatic entry method for the pass card provided by the present invention, after swiping the card, if the encrypted data is not obtained in the first storage area of the pass card, or the decryption of the encrypted data fails, or the decrypted data does not meet the predetermined rules, the pass card access authority can be directly authenticated based on the method of the present invention, that is, for cards entered by other ordinary methods, the method of the present invention can also realize the authentication of communication authority. Based on this, the method of the present invention can be directly applied to smart locks that are already in use. When using the communication card entry method of the present invention, cards that have been entered into the smart lock by other methods do not need to be re-recorded and can also be used. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1The present invention provides a flow chart of the method for automatically entering a pass card.

[0036] Figure 2 This is a flow chart of an embodiment of the method for automatically entering a pass card provided by the present invention.

[0037] Figure 3 It is a structural block diagram of the smart lock provided by the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] Those skilled in the art will understand that the foregoing general description and the following detailed description are exemplary and illustrative of specific embodiments of the present invention and are not intended to limit the present invention.

[0040] As used herein, the terms "comprises," "comprising," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process or method that comprises a list of steps may include not only those steps but may also include other steps not expressly listed or inherent to such process or method. Similarly, a reference to one or more devices or subsystems, elements or structures or components preceded by "comprising ... a" does not, without further limitations, preclude the presence of other devices or other subsystems or other elements or other structures or other components or other devices or other subsystems or other elements or other structures or other components. Throughout this specification, appearances of the phrases "in one embodiment," "in another embodiment," and similar language may, but do not necessarily, all refer to the same embodiment.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0042] See also Figure 1 The present invention provides a method for automatically entering a pass card, which is applied to smart locks. In some cases, when the same management card needs to open multiple smart locks, the card entry method provided by the present invention can be used to store the card information in the smart lock by simply sticking the card on each smart lock, and at the same time write the pass data into the pass card, which is convenient and fast.

[0043] The automatic entry method for the pass card includes:

[0044] The encrypted data in the storage area of the pass card is obtained and decrypted to obtain the first data. Specifically, the interaction between the pass card and the smart lock includes a short-range communication technology such as an RFID read / write operation or an NFC read / write operation. For example, when the interaction is an RFID read / write operation, the pass card has a built-in RFID tag and the smart lock has an RFID card reader.

[0045] When the first data meets the predetermined criteria, the pass data is written into the pass card storage area. Preferably, the pass data includes: whether the card is a card from a card-making machine, whether it has been entered into the system, card permissions, card type, card number, etc. Of course, in this embodiment, other data that can indicate that the pass card has been entered can also be used, without limitation.

[0046] Obtain and store the registration information of the access card. After obtaining the door opening permission of the access card, it can be determined whether the access card can open the smart lock, and then the unlocking operation can be performed. Specifically, the registration information includes basic parameter data such as the card number.

[0047] Using the automatic entry method for the pass card provided by the present invention, after the smart lock obtains the encrypted data of the pass card, it decrypts the encrypted data to obtain the first data. When the first data meets the predetermined rules, the pass data is written into the pass card and the registration information of the pass card is stored. When the user operates, he only needs to attach the pass card to the smart lock once to complete the pass card entry operation, which is convenient and quick.

[0048] Furthermore, in some embodiments, after the smart lock enters the pass card, the entry information is uploaded to the server, and the entered card status can be remotely managed through the mobile terminal.

[0049] Furthermore, the predetermined rule includes that the first data is data constructed using a predetermined format, or the first data is a string of characters with certain characteristics, such as the type of an ID card number, the first several digits are calculation digits, and the last several digits are check digits, and the calculation digits are calculated using a predetermined algorithm to obtain the corresponding check digits; the corresponding predetermined rule is that after obtaining the character string, the calculation digits are calculated using a predetermined algorithm to obtain the check digit data.

[0050] Furthermore, as a preferred solution, the access data includes: whether the card is a card from a card making machine, whether it has been entered into the system, card authority, card type, and card number.

[0051] Furthermore, as a preferred solution, in this embodiment, before the pass card is entered into the smart lock, the following steps are also included:

[0052] The pass card is obtained by writing the encrypted data into the first storage area of the blank card through a card making machine; that is, in this embodiment, the pass card needs to be completed by a predetermined card making machine, which has great security.

[0053] The encrypted data acquisition steps are:

[0054] Obtaining an encryption key and second data that complies with a predetermined rule;

[0055] The second data is encrypted using the encryption key to obtain the encrypted data.

[0056] Furthermore, the card making machine communicates with the server. After receiving the basic information of the target smart lock (model, unique identifier, etc.), the encryption key corresponding to the basic information is obtained through the server. When a blank card is connected or attached, just select the ID of the corresponding smart lock, and the corresponding encryption key will be used to encrypt the second data to obtain the encrypted data and write it into the first storage area of the blank card. No more operations are required from the user, which is convenient and quick.

[0057] Furthermore, in specific use, the encryption key used for decrypting the encrypted data in the smart lock is obtained by the server or pre-stored; the encryption key used for encrypting the second data in the card making machine is obtained by the server;

[0058] When the first data meets the predetermined rules, the smart lock writes the pass data into the second storage area of the pass card.

[0059] In some embodiments, the automatic entry method for a pass card includes:

[0060] The encrypted data in the first storage area of the pass card is obtained and decrypted to obtain the first data; wherein the first storage area is a predetermined position in the storage unit of the pass card, such as sector 14 of the storage unit of the pass card.

[0061] When the first data meets the predetermined rule, the pass data is written into the second storage area of the pass card; wherein the second storage area is another predetermined location in the storage unit of the pass card different from the first storage area, such as sector 15 of the storage unit of the pass card.

[0062] The registration information of the pass card is obtained and stored, and it is determined that the pass card has the right to open the door.

[0063] In this embodiment, the first and second storage areas can be separate storage areas on the pass card. By storing encrypted data and access data separately in the two storage areas, security can be effectively improved. Alternatively, they can be the same storage area, with specific settings being made during card production and when the smart lock writes access data to the pass card.

[0064] The card making machine stores the encryption key of the target smart lock, and no further selection operations are required. When a blank card is connected or attached, just select the ID of the corresponding smart lock, and the corresponding encryption key will be used to encrypt the second data to obtain the encrypted data and write it into the first storage area of the blank card, making the operation further simple.

[0065] Furthermore, in the aforementioned embodiment, the encryption process and the decryption process are processed using a preset algorithm; the preset algorithm includes a 3DES algorithm.

[0066] Furthermore, as a preferred solution, in this embodiment, the encryption key in the smart lock for decrypting the encrypted data is obtained by the server or pre-stored; that is, the encryption key in each smart lock is unique within a certain period of time.

[0067] The encryption key used to encrypt the second data in the card-making machine is obtained through the server. Preferably, for security reasons, when the encryption key needs to be replaced, the encryption key of the corresponding smart lock can be replaced through the server, thereby replacing the encryption key in both the smart lock and the card-making machine conveniently and quickly.

[0068] Furthermore, as a preferred solution, in this embodiment, if the encrypted data is not obtained in the pass card storage area, or the decryption of the encrypted data fails, or the data obtained after decryption of the encrypted data does not meet the predetermined rules, it is determined whether the pass card has access authority; wherein,

[0069] If the pass card storage area contains access data and the smart lock already has the corresponding registration information, the pass card is determined to have door opening permission. Otherwise, the pass card is determined to have no door opening permission. The above operation can also satisfy the permission determination requirements for pass cards entered using standard entry methods. When a pass card is entered using standard entry methods, such as through the smart lock's specific entry interface, the following situations may occur after reading the standard card: the encrypted data cannot be retrieved from the card's first storage area, the encrypted data fails to be decrypted, or the decrypted encrypted data does not meet the predetermined rules. Therefore, if the above situation occurs with a standard pass card, it indicates that the card was not generated by the corresponding card-making machine and may have been entered using standard entry methods. Access permission can be determined using the above steps of this embodiment. The card is then determined to have no door opening permission. In this case, the standard entry method can be used, or if it is determined that the card does not have door opening permission, the standard entry method is automatically executed. Among them, when the pass card is entered in the ordinary entry mode, the smart lock will also store the pass data in sector 15 of the ordinary card and store its registration information. It is understandable that those skilled in the art can choose the appropriate ordinary entry operation to complete the communication card that cannot be seriously used according to actual needs.

[0070] Furthermore, as a preferred solution, in this embodiment, after the smart lock decrypts and obtains the first data, after determining that the first data meets the preset rules, it is first determined whether the second storage area of the smart lock stores the registration information of the pass card;

[0071] That is, in some embodiments, the specific operation of determining whether the pass card has the pass authority is:

[0072] Determining whether the second storage area of the communication card stores the pass data;

[0073] If not, it is determined that the access card does not have the authority to open the door;

[0074] If so, it is determined whether the smart lock has stored the registration information of the communication card. If so, it is determined that the access card has the door opening permission; otherwise, it is determined that the access card does not have the door opening permission. If the access card has been entered into the smart lock using the automatic access card entry method provided by the present invention, there is no need to write the access data again, and the door opening permission can be determined directly using the access data in the second storage area.

[0075] If the smart lock does not store the registration information for the access card, it indicates that the communication card has not been entered. The smart lock then proceeds to the entry step, writing the access data to the second storage area of the access card and storing the access card's registration information. Based on the access data, it is determined whether the access card has access rights. In this embodiment, once the access data is successfully written, an unlock operation is automatically performed. If the unlock is successful, a successful entry notification is displayed; otherwise, the entry is repeated. This allows for quick verification of the validity of the access card entry.

[0076] Furthermore, as a preferred solution, in this embodiment, after decrypting and obtaining the first data and determining that the first data complies with a preset rule, it is first determined whether the registration information of the pass card is stored in the smart lock;

[0077] If the smart lock has stored the registration information of the pass card, the process of determining whether the pass card has access permission is entered, including:

[0078] Obtaining access data from a storage area in the access card; determining the door opening authority of the access card based on the access data stored in the storage area of the access card;

[0079] If the smart lock does not store the pass card's registration information, the access data is written to the pass card's storage area, the pass card's registration information is stored, and door access permission is determined based on the access data. In other words, if the pass card has already been entered into the smart lock using the automatic access card entry method provided by the present invention, there is no need to write the access data again; door access permission can be determined directly based on the access data in the second storage area.

[0080] Furthermore, as a preferred solution, in this embodiment, the predetermined rule is data constructed using a predetermined format, which includes a predetermined data format and compliance with predetermined arrangement rules, thereby improving the security of data verification.

[0081] For further information, see Figure 3 The present invention also provides a smart lock, comprising:

[0082] An interactive module, configured to obtain encrypted data from a storage area of a pass card, write the pass data into the storage area of the pass card, and obtain registration information of the pass card;

[0083] The processing module is configured to decrypt the encrypted data to obtain first data; when the first data meets a predetermined rule, drive the interaction module to write the pass data into the pass card storage area, obtain and store the registration information of the pass card, and determine that the pass card has the right to open the door.

[0084] Accordingly, the present invention also provides a pass card entry system for a smart lock, comprising:

[0085] A card making machine, configured to write the encrypted data into a storage area of a blank card to obtain the pass card; the encrypted data is obtained by encrypting the second data based on an encryption key; the encryption key in the card making machine is obtained from a server;

[0086] The smart lock is used to obtain encrypted data in the pass card storage area and decrypt it to obtain first data; when the first data meets the predetermined rules, the pass data is written to the pass card storage area; the registration information of the pass card is obtained and stored to determine whether the pass card has the right to open the door; the encryption key in the smart lock is obtained through the server or pre-stored.

[0087] Accordingly, the present invention also provides a computer-readable medium storing a computer program, which, when executed by a processor, implements the automatic entry method for a pass card as described in any of the aforementioned embodiments.

[0088] More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0089] In this application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof.

[0090] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for automatically entering a pass card, applied to a smart lock, characterized in that: include: Obtaining encrypted data in a storage area of the pass card and decrypting the data to obtain first data; When the first data meets the predetermined rules, the pass data is written into the pass card storage area; Obtain the registration information of the pass card and store it; If the encrypted data is not obtained in the pass card storage area, or the decryption of the encrypted data fails, or the data obtained after decryption of the encrypted data does not meet the predetermined rules, then determining whether the pass card has access authority; If the pass card storage area stores pass data and the smart lock has stored corresponding registration information, it is determined that the pass card has the right to open the door; otherwise, it is determined that the pass card does not have the right to open the door; Before entering the pass card into the smart lock, it also includes: Writing the encrypted data into the first storage area of a blank card by a card making machine to obtain the pass card; The encrypted data acquisition steps are: Obtaining an encryption key and second data that complies with a predetermined rule; the encryption key corresponds to the smart lock; The second data is encrypted using the encryption key to obtain the encrypted data.

2. The automatic entry method for a pass card according to claim 1, characterized in that: The encryption key used for decrypting the encrypted data in the smart lock is obtained through the server or pre-stored; the encryption key used for encrypting the second data in the card making machine is obtained through the server; When the first data meets the predetermined rules, the smart lock writes the pass data into the second storage area of the pass card.

3. The automatic entry method for a pass card according to claim 1, characterized in that: After decrypting and obtaining the first data and determining that the first data complies with a predetermined rule, first determine whether the registration information of the pass card is stored in the smart lock; If the smart lock has stored the registration information of the pass card, the process of determining whether the pass card has access permission is entered, including: Obtaining access data from a storage area in the access card; determining the door opening authority of the access card based on the access data stored in the storage area of the access card; If the smart lock does not store the registration information of the pass card, the pass data is written into the storage area of the pass card, and the registration information of the pass card is stored, and it is determined based on the pass data whether the pass card has the right to open the door.

4. The automatic entry method for a pass card according to claim 1, characterized in that: The access data includes: whether the card is the card on the card making machine, whether it has been entered into the system, card authority, card type, and card number.

5. The automatic entry method for a pass card according to claim 1, characterized in that: The predetermined rule is data constructed using a predetermined format.

6. A smart lock, characterized in that: include: An interactive module, configured to obtain encrypted data from a storage area of a pass card, write the pass data into the storage area of the pass card, and obtain registration information of the pass card; a processing module configured to decrypt the encrypted data to obtain first data; and when the first data meets a predetermined rule, drive the interaction module to write the pass data into the pass card storage area, obtain and store the registration information of the pass card, and determine that the pass card has the right to open the door; If the encrypted data is not obtained in the pass card storage area, or the decryption of the encrypted data fails, or the data obtained after decryption of the encrypted data does not meet the predetermined rules, then determining whether the pass card has access authority; If the pass card storage area stores pass data and the smart lock has stored corresponding registration information, it is determined that the pass card has the right to open the door; otherwise, it is determined that the pass card does not have the right to open the door; Before entering the pass card into the smart lock, it also includes: Writing the encrypted data into the first storage area of a blank card by a card making machine to obtain the pass card; The encrypted data acquisition steps are: Obtaining an encryption key and second data that complies with a predetermined rule; the encryption key corresponds to the smart lock; The second data is encrypted using the encryption key to obtain the encrypted data.

7. A pass card entry system for a smart lock, characterized in that: include: A card making machine, configured to write encrypted data into a storage area of a blank card to obtain the pass card; the encrypted data is obtained by encrypting second data based on an encryption key; the encryption key in the card making machine is obtained from a server; the second data conforms to a predetermined rule, and the encryption key corresponds to the smart lock; The smart lock is configured to obtain encrypted data in a storage area of a pass card and decrypt the data to obtain first data; when the first data meets a predetermined rule, the pass data is written into the storage area of the pass card; and registration information of the pass card is obtained and stored; an encryption key used in the smart lock to decrypt the encrypted data is obtained from a server or pre-stored. If the encrypted data is not obtained in the pass card storage area, or the decryption of the encrypted data fails, or the data obtained after decryption of the encrypted data does not meet the predetermined rules, then determining whether the pass card has access authority; Among them, if the pass data is stored in the pass card storage area and the smart lock has stored the corresponding registration information, it is determined that the pass card has the door opening authority; otherwise, it is determined that the pass card does not have the door opening authority.

8. A computer-readable medium, characterized in that A computer program is stored, and when the computer program is executed by a processor, the method for automatically entering a pass card according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Smart card identification method, device and system

    CN113823024A