An offline multi-zone authorization method and access control system
Patent Information
- Application Number
- CN202410242973.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2044-03-04
AI Technical Summary
但此类门禁系统需要较复杂的结构,建设和维护成本都比较高
1、当需要对门禁卡授权时,获取用户的门禁卡的授权需求信息,其中包括用户需要授权的区域以及用户需要授权的读卡器,而不同区域的授权规则不同,同一区域不同读卡器的授权规则也不同,因此,结合区域读卡器信息和授权需求信息表示的用户需要授权的区域以及用户需要授权的读卡器,生成对应的权限位生成规则,权限位信息即是写入用户门禁卡的用于提供门禁出入密码的数据信息,具有不同需求的用户的门禁卡中的权限位信息不同,当用户将门禁卡放在读卡器上时,读卡器基于对应权限位生成规则的权限位识别规则识别门禁卡中的权限位信息,并对该权限位信息进行验证,判断该权限位信息是否被授权打开该读卡器绑定的门,根据识别结果打开读卡器绑定的门禁或触发声光提示功能以提示保安或其他用户注意此处的情况。基于此,整体的门禁系统对不同需求的用户生成不同的权限位,以此保障了门禁系统的高安全性,且门禁系统中无需服务器参与,降低了门禁系统的安装维护的成本;
Smart Images

Figure CN118155326B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of access control systems, and in particular to an offline multi-zone authorization method and access control system. Background Technology
[0002] Access control systems are new, modern security management systems that integrate microcomputer-based automatic identification technology and modern security management measures. They involve numerous new technologies, including electronics, mechanics, optics, computer technology, communication technology, and biotechnology. They are an effective measure for achieving security management at the entrances and exits of important departments. They are suitable for various confidential departments, such as banks, hotels, computer rooms, armories, confidential offices, offices, intelligent residential communities, and factories.
[0003] In related technologies, access control systems consist of an access control server, workstation, card issuer, controller, power supply, card reader, electronic lock, alarm light, and access cards. To authorize access, such systems require logging into the access control system (running on the access control server) at the workstation, adding personnel within the system, reading the card number from the access card through the card issuer, registering the card number in the personnel information, selecting the door to be authorized, completing the authorization, and then the access control server downloading the personnel and authorization information to the controller. When a cardholder reads their access card at the card reader, the reader obtains the card number and transmits it to the controller to determine if the cardholder has authorization. If authorized, the controller sends an opening signal to the electronic lock, unlocking it and allowing the cardholder to pass. If the cardholder forcibly opens the door without authorization, the controller sends a signal to the card reader, which generates an audible and visual alert for an invalid card. However, such access control systems require a complex structure, resulting in high construction and maintenance costs. Summary of the Invention
[0004] In order to provide an access control system that is both highly secure and low-cost without the need for server intervention, this application provides an offline multi-zone authorization method and access control system.
[0005] Firstly, the above-mentioned inventive objective of this application is achieved through the following technical solution: An offline multi-region authorization method, the offline multi-region authorization method comprising: Obtain authorization requirement information, and based on the authorization requirement information, obtain the area card reader information; Based on the area reader information and the authorization requirement information, generate permission bit generation rules; According to the permission bit generation rules, the permission bit information of the access control card is generated, and the permission bit information is written into the access control card. In response to the authorization verification command, the authorization bit information in the access control card is identified to obtain the identification result; Based on the recognition results, control the electronic lock to open or trigger the sound and light prompt function.
[0006] By adopting the above technical solution, when access card authorization is required, the user's access card authorization request information is obtained, including the area the user needs to authorize and the card reader the user needs to authorize. Since the authorization rules differ for different areas and even for different card readers within the same area, the authorization rules also differ. Therefore, by combining the area card reader information and the authorization request information representing the user's required area and card reader, a corresponding permission bit generation rule is generated. The permission bit information is the data information written into the user's access card to provide the access control password. Access cards with different user needs have different permission bit information. When the user places the access card on the card reader, the card reader identifies the permission bit information in the access card based on the permission bit recognition rule of the corresponding permission bit generation rule and verifies the permission bit information to determine whether the permission bit information is authorized to open the door bound to the card reader. Based on the recognition result, the access control system bound to the card reader is opened, or an audio-visual prompt function is triggered to alert security guards or other users to the situation. Based on this, the overall access control system generates different permission bits for users with different needs, thereby ensuring the high security of the access control system. Moreover, the access control system does not require server participation, reducing the installation and maintenance costs of the access control system.
[0007] In a preferred embodiment, this application can be further configured as follows: obtaining authorization requirement information and, based on the authorization requirement information, obtaining area reader information specifically includes: Obtain authorization requirement information, and based on the authorization requirement information, obtain authorization region information; Based on the authorized area information, obtain the area card reader information.
[0008] By adopting the above technical solution, the area that the user needs to authorize is obtained from the authorization request information. Some access control systems are connected to other areas, meaning that the same access card can enter two different areas. Therefore, it is necessary to determine the area selected by the user to prevent the user from trying to use an access card to another unauthorized area. Thus, the authorized area information obtained from the authorization request information also includes the card reader that the user needs to authorize. Based on the card reader and the area that the user needs to authorize, it is determined whether the card reader can only enter the area that the user needs to authorize and cannot enter other areas. In this way, specific card reader information that meets the user's needs and grants authorization is obtained, which ensures user experience while improving the security of the access control system.
[0009] In a preferred embodiment, this application can be further configured such that: the step of generating permission bit generation rules based on the area reader information and the authorization requirement information specifically includes: Based on the area reader information, obtain the reader number; Based on the card reader number and the area card reader information, an permission bit generation rule corresponding to the preset card reader identification rule is generated.
[0010] By adopting the above technical solution, each authorized area has a different reader number, and different readers within the same authorized area also have different numbers. The reader number is a unique identification code corresponding to each reader, used to define certain rules when generating the corresponding reader's permission bits. This ensures that the permission bit information in the access card corresponds to the reader number, preventing misalignment of the access card's permission bit information. Therefore, based on the reader information indicating the authorized area and the corresponding reader number, a permission bit generation rule is generated to meet the user's needs. This permission bit generation rule is used to generate the permission bits in the user's access card. Based on this, instead of directly generating the permission bits, a permission bit generation rule is generated when generating the user's access card's permission bits, enhancing the confidentiality and security of the permission bit information in the user's access card.
[0011] In a preferred embodiment, this application can be further configured as follows: generating access control card access control information according to the access control card access control rule, and writing the access control card access control information, specifically includes: Obtain the card reader serial number; Based on the permission bit generation rules and the card reader serial number, the permission bit information of the access control card is generated, and the permission bit information is written into the access control card.
[0012] By adopting the above technical solution, the card reader serial number refers to the data information on the card reader that matches the serial number of the access control card. When the card reader identifies the data in the access control card, it first matches the serial number of the access control card with the serial number of the card reader. If the serial number of the access control card and the serial number of the card reader do not match, it means that the access control card is not authorized. Therefore, there is no need to verify the permission bit information in the data information of the access control card, which further ensures the security of the area corresponding to the access control system. Although each card reader has the same serial number, the permission bit generation rule needs to generate the permission bit information corresponding to each card reader based on the serial number of each card reader. That is, the order of the permission bit information of each card reader is different. Therefore, the permission bit information of the access control card as a whole is generated by the permission bit generation rule. After the permission bit information of the access control card as a whole is written into the access control card, the authorization of the user's needs is completed, thus achieving the effect of simple operation to complete the authorization.
[0013] In a preferred embodiment, this application can be further configured as follows: generating access control card access permission information based on the access permission bit generation rule and the card reader serial number specifically includes: Generate a specific reader identification code based on the reader's serial number; Based on the specific card reader identification code and the permission bit generation rule, the access control card's permission bit information is generated.
[0014] By adopting the above technical solution, the specific reader identification code refers to the feature identification code corresponding to the reader serial number in the overall access control card's access control information, which corresponds to the access control card's access control information for each reader's access control information. When the reader recognizes the specific reader identification code, it can determine the reader number corresponding to the specific reader identification code. By determining the access control card's access control information based on the reader number in the access control card's access control information, the access control card obtains authorization for the current reader. Therefore, the security of the access control system is further guaranteed by the specific reader identification code.
[0015] In a preferred embodiment, this application can be further configured such that: the step of identifying the permission bit information in the access card in response to the permission verification command specifically includes: In response to the authorization verification command, determine whether the serial number of the access card matches the serial number of the card reader; If the judgment result is a mismatch, the audio-visual prompt function will be triggered; If the judgment result is a match, then based on the card reader identification rules and the card reader number, the permission bit information in the access card is identified to obtain the identification result.
[0016] By adopting the above technical solution, when a user holds a card to the card reader, the card reader identifies and obtains the data information in the access control card, including the serial number and authorization bit information. Therefore, it first determines whether the serial number of the access control card matches the serial number of the card reader to determine whether the current access control card belongs to the current access control system. For example, if the serial number of the access control card and the serial number of the card reader are the same four-byte data, it is determined whether the serial number of the access control card and the serial number of the card reader match one by one, and then determines whether the current access control card belongs to the current access control system. When the determination result indicates a mismatch, the audio and visual prompt function will be directly triggered. When the determination result indicates a match, based on the card reader's preset card reader identification rules, the authorization bit information of the access control card is verified to determine whether the authorization bit information of the access control card contains the corresponding card reader number of the current card reader, thereby obtaining the identification result indicating whether the access control card is authorized, thus completing a secure and reliable access control verification.
[0017] Secondly, the above-mentioned inventive objective of this application is achieved through the following technical solutions: An access control system includes a card writing module, a card reader, a power supply, an electronic door lock, and an access card; The card writing module is used to write the permission bit information into the access control card; The access card is used to store the permission bit information; The card reader is used to identify the permission bit information in the access card and to control the opening and closing of the electronic door lock; The power supply is connected to the card reader, and the card reader is connected to the electronic door lock.
[0018] By adopting the above technical solution, the access control system includes a card writing module, a card reader, a power supply, an electronic door lock, and access cards. It does not require the participation of an access control server and controller. When a user needs to authorize the access card, the authorization of the user's access card can be completed through the card writing module. Then, through the card reader installed in each area and the electronic door lock and power supply connected to the card reader, the secure access management of the area covered by the access control system can be completed. Moreover, the number of modules required for subsequent maintenance is small, saving installation and maintenance costs.
[0019] Optionally, the card writing module includes a card writer and card writing software. The card writing software is used to generate the permission bit information, and the card writer is used to write the permission bit information into the access control card.
[0020] By adopting the above technical solution, the card writing software generates permission bit generation rules according to the user's authorization requirements, and then generates permission bit information through the permission bit generation rules. The card reader then writes the permission bit information generated by the card writing software into the user's access card, without going through a server, thereby achieving the effect of saving construction and maintenance costs.
[0021] Optionally, the access control system further includes an audio-visual prompt module, which is used to provide an audio-visual prompt when the recognition result indicates that the access card does not have authorization.
[0022] By adopting the above technical solution, the sound and light prompt module is used to provide sound and light prompts when the recognition result indicates that the access card does not have the corresponding card reader's authorization. For example, by emitting an alarm sound and turning on spotlights, it alerts the area's management personnel and other users to the situation at the card reader, thereby achieving security for the area covered by the access control system.
[0023] In summary, this application includes at least one of the following beneficial technical effects: 1. When access card authorization is required, the system obtains the user's access card authorization request information, including the area the user needs to authorize and the card reader the user needs to authorize. Different areas have different authorization rules, and even within the same area, different card readers have different authorization rules. Therefore, by combining the area card reader information and the authorization request information to represent the user's required area and card reader, a corresponding permission bit generation rule is generated. The permission bit information is the data written to the user's access card to provide the access control password. Access cards with different user needs have different permission bit information. When the user places the access card on the card reader, the card reader identifies the permission bit information in the access card based on the permission bit recognition rule of the corresponding permission bit generation rule and verifies the permission bit information to determine whether the permission bit information is authorized to open the door bound to the card reader. Based on the recognition result, the access control system bound to the card reader is opened, or an audio-visual prompt function is triggered to alert security guards or other users to the situation. Based on this, the overall access control system generates different permission bits for users with different needs, thereby ensuring the high security of the access control system. Moreover, the access control system does not require the participation of a server, which reduces the installation and maintenance costs of the access control system. 2. Obtain the area that the user needs to authorize from the authorization request information. Some access control systems are connected to other areas, meaning that the same access card can be used to enter two different areas. Therefore, it is necessary to determine the area selected by the user to prevent the user from trying to use an access card to enter another unauthorized area. Thus, the authorized area information obtained from the authorization request information also includes the card reader that the user needs to authorize. Based on the card reader and the area that the user needs to authorize, it is determined whether the card reader can only enter the area that the user needs to authorize and cannot enter other areas. In this way, the specific card reader information that meets the user's needs and grants authorization to the user is obtained, which ensures the user experience and improves the security of the access control system. 3. Each authorized area has a different reader number, and different readers within the same authorized area also have different numbers. The reader number is a unique identification code corresponding to each reader, used to define rules when generating the corresponding reader's permission bits. This ensures that the permission bit information on the access card corresponds to the reader number, preventing misalignment of access card permission bit information. Therefore, based on the reader information indicating the authorized area and the corresponding reader number, a permission bit generation rule is generated to meet the user's needs. This rule is used to generate the permission bits on the user's access card. Based on this, instead of directly generating the permission bits, a permission bit generation rule is generated when creating the user's access card permission bits, thus enhancing the confidentiality and security of the permission bit information on the user's access card. Attached Figure Description
[0024] Figure 1 This is a flowchart of an implementation of the offline multi-region authorization method provided in this application embodiment.
[0025] Figure 2 This is a flowchart illustrating the implementation of S10 of the offline multi-region authorization method provided in this application embodiment.
[0026] Figure 3 This is a flowchart illustrating the implementation of S20 of the offline multi-region authorization method provided in this application embodiment.
[0027] Figure 4 This is a flowchart illustrating the implementation of S30 of the offline multi-region authorization method provided in this application embodiment.
[0028] Figure 5 This is a flowchart illustrating the implementation of S32 of the offline multi-region authorization method provided in this application embodiment.
[0029] Figure 6 This is a flowchart illustrating the implementation of S40 of the offline multi-region authorization method provided in this application embodiment.
[0030] Figure 7 This is a structural block diagram of the access control system provided in the embodiments of this application. Detailed Implementation
[0031] The following is in conjunction with the appendix Figure 1-7 This application will be described in further detail.
[0032] In one embodiment, such as Figure 1 As shown, this application discloses an offline multi-region licensing method, which specifically includes the following steps: S10: Obtain authorization requirement information, and obtain the area card reader information based on the authorization requirement information.
[0033] In this embodiment, the authorization requirement information refers to the area that the user needs to authorize. The area reader information refers to the information of the card readers in the area that the user needs to authorize.
[0034] Specifically, an access control system refers to a system that manages the entry and exit of users within a designated area. Only authorized users holding access cards can enter the area covered by the access control system. In this embodiment, the access control system covers multiple areas, and each area has multiple card readers. Therefore, when a user needs authorization, information indicating the area that the user needs to authorize is obtained, i.e., authorization request information. For example, if the access control system covers ten areas, numbered from one to ten, and the user needs to authorize areas one, five, and seven, then based on this authorization request information, information about the card readers installed in the areas indicated by the authorization request information is obtained, i.e., area card reader information.
[0035] S20: Generate permission bit generation rules based on the area card reader information and authorization requirement information.
[0036] In this embodiment, the permission bit generation rule refers to the rule for generating permission bit information in the user's access card.
[0037] Specifically, to ensure the security of the access control system and the user's access card, in this embodiment, the permission bit information of the user's access card is not generated directly. Instead, it is generated by using the authorization request information to indicate the area that the user needs to authorize, and the area reader information to indicate the information of the card reader in the area that the user needs to authorize. This generates a corresponding rule for generating the permission bit information in the user's access card, namely the permission bit generation rule. This permission bit generation rule has a certain degree of randomness, meaning that different permission bit generation rules for users with authorization request information will result in different permission bit information in the generated user access card. Furthermore, when using the permission bit generation rule to generate the permission bit information in the user access card, it follows the card reader's recognition algorithm for identifying permission bit information to ensure that the permission bit information generated by the permission bit generation rule can be recognized by the card reader.
[0038] S30: Generate access control card access control information according to the access control bit generation rules, and write the access control card access control information.
[0039] In this embodiment, the access card's permission bit information refers to the data information in the user's access card used to verify permissions.
[0040] Specifically, after obtaining the permission bit generation rule, the access card permission bit information corresponding to the area card reader information and authorization requirement information is generated according to the permission bit generation rule, and the access card permission bit information is written into the user access card. In this way, the user access card has the permission to access the card reader in the area that the user needs to authorize, as indicated by the area card reader information.
[0041] S40: In response to the authorization verification command, identify the authorization bit information in the access card and obtain the identification result.
[0042] In this embodiment, the authorization verification instruction refers to the instruction information given by the card reader to identify the data information in the access control card. The identification result refers to the result of identifying the data information in the access control card.
[0043] Specifically, after authorizing the user's access card, when the user uses the access card, the card reader recognizes the access card and begins to identify the data information in the access card. That is, in response to the authorization verification command, each card reader has information different from other card readers to identify the card reader's identity. The card reader identifies the data information in the access card by determining whether the information in the card reader that is different from other card readers to identify the card reader corresponds to the authorization information in the access card. The identification result obtained is the result of whether the information in the card reader that is different from other card readers to identify the card reader corresponds to the authorization information in the access card.
[0044] S50: Based on the recognition result, control the electronic lock to open or trigger the sound and light prompt function.
[0045] Specifically, based on the identification results, when the identification results indicate that the information in the card reader that identifies the card reader is different from that in other card readers and corresponds to the permission information in the access control card, it means that the current access control card has permission to access the current card reader, and the electronic lock connected to the card reader will be opened. However, when the identification results indicate that the information in the card reader that identifies the card reader is different from that in other card readers and does not correspond to the permission information in the access control card, it means that the current access control card does not have permission to access the current card reader. But if the cardholder still attempts to enter the area corresponding to the current card reader, the audible and visual prompt function will be triggered, that is, the cardholder and security personnel near the card reader will be alerted through alarm sound and warning light to ensure the security of the area covered by the access control system.
[0046] In one embodiment, such as Figure 2 As shown, in step S10, authorization requirement information is obtained, and based on the authorization requirement information, area card reader information is obtained, specifically including: S11: Obtain authorization requirement information, and based on the authorization requirement information, obtain authorization region information.
[0047] In this embodiment, the authorized area information refers to information used to indicate the connectivity between the area that the user needs to authorize and other areas.
[0048] Specifically, in this embodiment, some areas covered by the access control system are connected to other areas, meaning that the same access card can be used to enter two different areas. Therefore, it is necessary to determine the card reader that grants user authorization based on the area that the user needs to authorize, in order to prevent the user from trying to use one access card to go to another unauthorized area. Therefore, after obtaining the authorization request information, the area that the user needs to authorize, as well as the connection relationship between the area that the user needs to authorize and other areas, are obtained from the authorization request information, i.e., the authorized area information.
[0049] S12: Obtain the area card reader information based on the authorized area information.
[0050] Specifically, based on the connectivity between the area that the user needs to authorize and other areas indicated by the authorization area information, it is determined whether the area that the user needs to authorize, indicated by the authorization request information, is connected to two areas by the same card reader. If the authorization request information specifies a particular card reader, that is, the authorization request information indicates a specific card reader in a specific area that the user needs to authorize, it is also necessary to determine whether the card reader that the user needs to authorize can connect to areas other than the area that the user needs to authorize. Therefore, if it is determined that the area where the user needs to be authorized does not have a situation where the same card reader connects two areas, and the authorization request information does not specify a particular card reader, then all card readers in the area where the user needs to be authorized will be used as card readers to grant the user access permissions. If it is determined that the area where the user needs to be authorized does not have two areas connected by the same card reader, and the authorization request information specifies a particular card reader, then the specific card reader in the specific area where the user needs to be authorized will be used as the card reader that grants the user access permission. If it is determined that the area where the user needs to be authorized, as indicated by the authorization request information, has two areas connected by the same card reader, and the authorization request information does not specify the specific card reader, then the card readers in the area where the user needs to be authorized that can connect to areas other than the area where the user needs to be authorized will be blocked, and the remaining card readers in the area where the user needs to be authorized will be used as the card readers that grant the user access permissions. If the authorization request information indicates that the area the user needs to authorize has two areas connected by the same card reader, and the authorization request information specifies the specific card reader, then it is determined whether the specific card reader that the user needs to authorize can connect to areas other than the area the user needs to authorize. Card readers that can connect to areas other than the area the user needs to authorize will be blocked and the user will be notified. The remaining card readers that are specified in the authorization request information will be used as card readers to grant the user access permissions.
[0051] In one embodiment, such as Figure 3As shown, in step S20, permission bit generation rules are generated based on the area reader information and authorization requirement information, specifically including: S21: Obtain the card reader number based on the area card reader information.
[0052] In this embodiment, the card reader number refers to the unique identification code corresponding to each card reader.
[0053] Specifically, after obtaining the area card reader information, a unique identification code corresponding to each card reader is obtained, namely the card reader number. In this embodiment, the card reader number is different for each area, and different card readers in the same area have different card reader numbers.
[0054] S22: Generate permission bit generation rules corresponding to preset reader identification rules based on the reader number and area reader information.
[0055] Specifically, the capacity of a user access card for storing permission information is limited. Therefore, when a user needs to authorize a large number of card readers, the access card may not be able to fully store the permission information of each card reader. Therefore, it is necessary to obtain the data length of the permission information for each card reader based on the data length of each card reader number and the number of permission information entries to be written to the access card, as indicated by the area card reader information. This data length is then used as the length limit rule in the permission information generation rule. Furthermore, since the card reader already has preset card reader identification rules, the permission information generation rule must correspond to the card reader identification rules. Therefore, the permission information generation rule is generated based on the card reader identification rules and the length limit rule.
[0056] For example, the card reader number that the user needs to authorize is: Card reader number 1: 10111011101010110111001 (decimal value is 6149561). Card reader number 2: 100100110000100101100010 (decimal value is 9612546). Card reader number 3: 10100101111010100100100 (decimal value is 5436708). Card reader #4: 100011010110011001011 (decimal value is 1158347). Card reader #5: 10101101001010011001101 (decimal equivalent: 5674189) Card reader #6: 1101101110011110100001 (decimal equivalent: 3598241). The user access card has a storage capacity of 12 bytes (96 bits) for storing permission information. Therefore, the permission information for each card reader cannot exceed 16 bits, which is the length limit rule. The main rule for generating permission bits is how to extract 16 bits from the number of each card reader. For example, for card reader number 1, if the user needs to authorize six card readers, the sixth bit of the decimal number of card reader number 1 is converted to binary to obtain four bits of binary data used to inform the card reader of the starting position for recognition. The permission information for each card reader cannot exceed 16 bits. Therefore, 12 bits of data are extracted from the sixth bit of the binary number of card reader number 1. The final permission information for card reader number 1 is 0110011101010110. The first four bits 0110 are used to inform the card reader of the starting position for recognition. That is, when the card reader recognizes 0110, it compares the sixth bit of its own number with the recognized permission information.
[0057] In one embodiment, such as Figure 4 As shown, in step S30, according to the permission bit generation rules, the permission bit information of the access control card is generated, and the permission bit information is written into the access control card, specifically including: S31: Obtain the card reader serial number.
[0058] Specifically, in this embodiment, both the card reader and the access card store serial numbers, and the serial numbers of the card reader and the access card match. The serial numbers of each card reader and each access card in the access control system match. Before the card reader recognizes the access card's permission information, it first determines whether the serial numbers of the card reader and the access card match, thereby determining whether the access card belongs to the current access control system. In addition, in this embodiment, the serial numbers of the card reader and the access card are four bytes (32 bits) of data information.
[0059] S32: Generate access control card access control information according to the access control bit generation rules and the card reader serial number, and write the access control card access control information.
[0060] Specifically, the permission bit generation rule enhances access control card security by generating different permission bit information for user access cards with different needs. However, the risk of being deciphered still exists. Therefore, to further enhance access control card security, after generating the permission bit information corresponding to each card reader through the permission bit generation rule, the order of the permission bit information corresponding to each card reader is randomly arranged according to the card reader's serial number. For example, if the card reader's serial number is 11011010 0110010110110101 01011001 corresponds to a card reader randomly reading four digits of the card reader's serial number and converting them to decimal. When 1001 is read, it is converted to decimal 9, and when 0011 is read, it is converted to decimal 3. The access control card reads the four digits of the card reader's serial number as many times as the number of card reader serial numbers stored, and arranges each converted decimal number in descending order. In this way, the access control card's access control information is randomly sorted, and the access control information including the access control information corresponding to each card reader is obtained.
[0061] In one embodiment, such as Figure 5 As shown, in step S32, the access control card's access control information is generated according to the access control bit generation rules and the card reader serial number, specifically including: S321: Generate a specific reader identification code based on the reader serial number.
[0062] In this embodiment, the specific reader identification code refers to the feature identification code corresponding to the reader serial number in the overall access control card's permission bit information, which corresponds to the permission bit information of each reader.
[0063] Specifically, the data length of the permission bit information in access control cards with different authorized card reader numbers is different. For example, the data length of the permission bit information corresponding to each card reader in access control cards with six authorized card numbers is 16 bits, while the data length of the permission bit information corresponding to each card reader in access control cards with five authorized card numbers is 19 bits. Therefore, the card reader identification rules in the card reader cannot distinguish whether the permission bit information corresponding to the data belongs to the same card reader. Therefore, according to the number of card readers represented by the permission bit generation rules, a corresponding number of specific card reader identification codes are generated. When a card reader recognizes a specific card reader identification code, it indicates that the permission bit information corresponding to a card reader ends here, and the next bit of data is the permission bit data corresponding to different card readers.
[0064] S322: Generate access control card permission information based on specific reader identification codes and permission bit generation rules.
[0065] Specifically, based on the specific reader identification code and permission bit generation rules, since the specific reader identification code requires a certain amount of data storage space, on the basis of the permission bit information generated based on the permission bit generation rules, the data corresponding to the specific reader identification code size is reduced in the permission bit information corresponding to each reader, and then the specific reader identification code is added to the permission bit information corresponding to each reader, thereby generating the overall permission bit information of the access control card.
[0066] In one embodiment, such as Figure 6 As shown, in step S40, in response to the authorization verification command, the authorization bit information in the access card is identified, specifically including: S41: In response to the authorization verification command, determine whether the serial number of the access card matches the serial number of the card reader.
[0067] Specifically, in response to the access control verification command, when a user uses an access control card, the card reader recognizes the access control card and begins to identify the data information in the access control card, determining whether the serial number of the access control card matches the serial number of the card reader.
[0068] S42: If the judgment result is a mismatch, the audio-visual prompt function will be triggered.
[0069] Specifically, if the judgment result is a mismatch, that is, the serial number of the access card does not match the serial number of the card reader, the audio and visual prompt function is triggered to remind the user to pay attention to security.
[0070] S43: If the judgment result is a match, then based on the card reader recognition rules and the card reader number, the access control card's permission bit information is identified to obtain the recognition result.
[0071] Specifically, if the judgment result is a match, that is, the serial number of the access card matches the serial number of the card reader, then based on the card reader identification rules and the card reader's own card reader number, the access permission information in the data information of the access card is identified, and it is determined whether the access permission information in the data information of the access card has the data information corresponding to the card reader's own card reader number, and the identification result is obtained.
[0072] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0073] In one embodiment, an access control system is provided, such as Figure 7 As shown, the access control system includes a card writing module, a card reader, a power supply, an electronic door lock, and an access card; The card writing module is used to obtain authorization requirement information, generate permission bit generation rules based on the obtained authorization requirement information, generate access card permission bit information based on the permission bit generation rules, and write the permission bit information into the access card. Access cards are used to store access permission information; The card reader is used to identify the access control card's access permission information and serial number, determine whether the access control card's serial number matches the card reader's serial number, determine whether the access permission information in the access control card has the corresponding card reader number data information, and control the opening and closing of the electronic door lock; The power supply is connected to the card reader to provide power, and the card reader is connected to the electronic door lock.
[0074] Furthermore, the card reader may also include a removable memory card to store data from each access card read. Staff can export the data from the memory card in each card reader.
[0075] Furthermore, the card writing module includes a card writer and card writing software. The card writing software is used to obtain authorization requirement information, generate permission bit generation rules based on the obtained authorization requirement information, and generate access control card permission bit information based on the permission bit generation rules. The card writer is used to write the permission bit information into the access control card.
[0076] Furthermore, the access control system also includes an audio-visual prompt module, which is used to provide audio-visual prompts when the recognition result indicates that the access card does not have authorization.
[0077] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0078] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. An offline multi-region authorization method, characterized in that, The offline multi-region authorization method includes: Obtain authorization requirement information, and based on the authorization requirement information, obtain authorization region information; Based on the authorized area information, obtain the area card reader information; Based on the area reader information, obtain the reader number; Based on the card reader number and the area card reader information, an permission bit generation rule corresponding to the preset card reader identification rule is generated; Based on the data length of each card reader number represented by the card reader number and the number of permission bits that need to be written to the access control card represented by the area card reader information, the data length of the permission bits for each card reader is obtained, and this data length is used as the length limit rule in the permission bit generation rule. Based on the card reader identification rules and length limit rules, generate permission bit generation rules; Obtain the card reader serial number; Based on the permission bit generation rules and the card reader serial number, the permission bit information of the access control card is generated, and the permission bit information is written into the access control card. In response to the authorization verification command, determine whether the serial number of the access card matches the serial number of the card reader; If the judgment result is a mismatch, the audio-visual prompt function will be triggered; If the judgment result is a match, then based on the card reader identification rules and the card reader number, the permission bit information in the access card is identified to obtain the identification result; Based on the recognition results, control the electronic lock to open or trigger the sound and light prompt function.
2. The offline multi-region authorization method according to claim 1, characterized in that, Based on the permission bit generation rules and the card reader serial number, the access control card's permission bit information is generated, specifically including: Generate a specific reader identification code based on the reader's serial number; Based on the specific card reader identification code and the permission bit generation rule, the access control card's permission bit information is generated.
3. An access control system, characterized in that, The access control system includes a card writing module, a card reader, a power supply, an electronic door lock, and an access card; The card writing module is used to write the permission bit information into the access control card; The access card is used to store the permission bit information; The card reader is used to identify the permission bit information in the access card and to control the opening and closing of the electronic door lock; The power supply is connected to the card reader, and the card reader is connected to the electronic door lock; The card writing module generates the permission bit information using the offline multi-region authorization method as described in claim 1.
4. The access control system according to claim 3, characterized in that, The card writing module includes a card writer and card writing software. The card writing software is used to generate the permission bit information, and the card writer is used to write the permission bit information into the access control card.
5. The access control system according to claim 3, characterized in that, The access control system also includes an audio-visual prompt module, which is used to provide an audio-visual prompt when the recognition result indicates that the access card does not have authorization.
Citation Information
Patent Citations
Access control card authorization and identification method, access controller and storage medium
CN113689602A
Management method for electronic locks
US11544979B1