Access control card authorization and identification method, access control controller and storage medium

文档序号:1876679 发布日期:2021-11-23 浏览:24次 中文

阅读说明:本技术 一种门禁卡的授权及识别方法、门禁控制器、存储介质 (Access control card authorization and identification method, access control controller and storage medium ) 是由 何猛 莫明锋 陈荣 简智君 李锦华 郭军 胡运龙 胡远航 李大乐 于 2021-09-02 设计创作,主要内容包括:本发明公开了一种门禁卡的授权方法,包括根据用户信息获取用户的门禁卡的信息和用户权限,并根据所述用户权限获取用户所能授权的所有区域或门点;根据用户所能授权的每个区域或门点以及每个区域或门点的通行时间段生成用户的区域权限组或门点权限组;根据用户的门禁卡的信息与用户的区域权限组生成用户的门禁卡所对应的区域权限组名单或门点权限组名单;将用户的门禁卡的区域权限组名单或门点权限组名单下发到对应门禁控制器,以实现门禁卡的授权命令的下发。本发明通过引入区域的概念,并结合门点的概念,可实现门禁卡的快速授权,降低授权操作人员的工作量。本发明还公开了一种门禁卡的识别方法、门禁控制器及存储介质。(The invention discloses an authorization method of an access card, which comprises the steps of obtaining information and user authority of the access card of a user according to user information, and obtaining all regions or door points authorized by the user according to the user authority; generating an area authority group or a gate point authority group of the user according to each area or gate point authorized by the user and the passing time period of each area or gate point; generating an area authority group list or a door point authority group list corresponding to the access control card of the user according to the information of the access control card of the user and the area authority group of the user; and issuing the regional authority group list or the door point authority group list of the access control card of the user to the corresponding access control controller so as to realize the issuing of the authorization command of the access control card. The invention can realize the quick authorization of the access control card by introducing the concept of the area and combining the concept of the door point, thereby reducing the workload of authorized operators. The invention also discloses an identification method of the access control card, an access control device and a storage medium.)

1. An authorization method of an access control card is characterized by comprising the following steps:

a region acquisition step: acquiring information and user permission of an access card of a user according to user information, and acquiring all regions authorized by the user according to the user permission; each zone comprises a plurality of gate points;

and a regional authority group generation step: generating a region authority group of the user according to each region authorized by the user and the passing time period of each region;

generating a regional authority group name list: generating an area authority group list corresponding to the access card of the user according to the information of the access card of the user and the area authority group of the user;

a first authorization issuing step: issuing the regional authority group name list of the access control card of the user to a corresponding access control device; the regional authority group name list comprises a user number, an access control card number and a plurality of regional authority group numbers; the regional authority group comprises a plurality of regional numbers and the number of the first time table; and the first time table is a set of the passing time periods of each region in the corresponding region authority group and is stored in the system.

2. The method of claim 1, wherein the regional permission group list further comprises an authorization validity period.

3. The method of claim 1, wherein the plurality of access points in each area are a combination of a plurality of access points in a physical space or a combination of a plurality of access points in a logical space.

4. An authorization method of an access control card is characterized by comprising the following steps:

a door point acquisition step: acquiring information and user authority of an access card of a user according to user information, and acquiring all access points authorized by the user according to the user authority;

a door point authority group generating step: generating a door point authority group authorized by the user according to all door points authorized by the user and the passing time period of each door point; the gate point authority group comprises the entrance authority, the exit authority and a passing time table of a plurality of gate points;

a door point authority group name list generating step: generating a door point authority group list of the door access card of the user according to the information of the door access card of the user and the door point authority group authorized by the user; the gate point authority group name list comprises a user number, a gate inhibition card number and a plurality of gate point authority group numbers; the door point authority group comprises the access authority and the exit authority of a plurality of door points and the serial number of a second time table, and the second time table is a set of passing time periods of each door point in the corresponding door point authority group and is stored in the system;

a second authorization issuing step: and issuing the door point authority group name list of the door access card to a corresponding door access controller.

5. The method of claim 4, wherein the list of access point permission groups further comprises an authorization validity period.

6. A storage medium which is a computer-readable storage medium having a computer program stored thereon, characterized in that: the computer program, when being executed by a processor, performs the steps of a method for authorizing an access card according to any one of claims 1 to 3 or the steps of a method for authorizing an access card according to any one of claims 4 to 5.

7. An identification method of an access card is applied to an access controller, and is characterized by comprising the following steps:

an identification step: when a user swipes a card at a door point, acquiring information of the door access card to be identified, and acquiring the door point where the user swipes the card or an area where the door point where the user swipes the card is located;

card number matching step: obtaining an access control card number according to the information of the access control card to be identified, and then matching the access control card number of the access control card to be identified with an area authority group list stored in the access control device, or matching the access control card number of the access control card to be identified with a door point authority group list stored in the access control device;

if the entrance guard card number of the entrance guard card to be identified is successfully matched with the stored regional authority group name list of the entrance guard controller, executing a first authority matching step; or the entrance guard card number of the entrance guard card to be identified is successfully matched with the stored entrance point authority group name list of the entrance guard controller, and a second authority matching step is executed;

if the matching of the entrance guard card number of the entrance guard card to be identified and the stored regional authority group list of the entrance guard controller is unsuccessful and the matching of the entrance guard card number of the entrance guard card to be identified and the stored entrance point authority group list of the entrance guard controller is unsuccessful, opening the door is refused;

the regional permission group list is generated by the authorization method of the access control card of any one of claims 1 to 3; the access point permission group list is generated by the authorization method of the access control card of any one of claims 4 to 5;

a first permission matching step: acquiring each regional authority group in a regional authority group list containing the entrance guard card number of the entrance guard card to be identified, matching the region where the door point where the user swipes the card with each regional authority group, and executing a first time matching step if the matching is successful; if the matching is unsuccessful, the door is refused to be opened;

a first time judgment step: acquiring the current time of card swiping of a user, acquiring the content of a first time table according to the number of the first time table in the corresponding regional authority group, matching the current time of card swiping of the user with the corresponding first time table, and opening the door if the matching is successful; if the matching is unsuccessful, the door is refused to be opened;

a second permission judgment step: acquiring each door point authority group in a door point authority group list containing the door control card number of the door control card to be identified, and matching the door point where the user swipes the card with each door point authority group; if the matching is successful, executing a second time judgment step; if the matching is unsuccessful, the door is refused to be opened;

a second time judgment step: acquiring the current time of card swiping of a user, acquiring the content of a second time table according to the serial number of the second time table in the corresponding door point authority group, matching the current time of card swiping of the user with the corresponding second time table, and opening the door if the matching is successful; and if not, refusing to open the door.

8. The method for identifying an access card according to claim 7, wherein in the card number matching step, if the access card number of the access card to be identified is successfully matched with the access card number in the regional authority group list stored in the access controller, a first validity period judgment step is executed;

a first validity period judging step: obtaining an authorization validity period in an area authority group list containing the access control card number of the area access control card to be identified, judging whether the authorization validity period is overdue or not, and if so, refusing to open the door; if not, executing a first permission matching step;

in the card number matching step, if the entrance guard card number of the entrance guard card to be identified is successfully matched with the entrance guard card number in the entrance guard authority group list stored in the entrance guard controller, executing a second validity period judging step;

a second validity period judging step: obtaining an authorization validity period in a door point authority group list containing the door control card number of the door control card to be identified, judging whether the authorization validity period is overdue or not, and if so, refusing to open the door; if not, executing a second permission matching step.

9. An access controller, characterized in that the access controller is used for executing the steps of the method for identifying an access card according to any one of claims 7-8.

10. A storage medium which is a computer-readable storage medium having a computer program stored thereon, characterized in that: the computer program, when being executed by a processor, implements the steps of a method for identifying an access card according to any one of claims 7 to 8.

Technical Field

The invention relates to the field of access control management, in particular to an authorization method of an access control card, an identification method of the access control card, an access control controller and a storage medium.

Background

At present, the authorization of the existing access controller on the market generally only supports authorization according to an access point, and in the actual authorization operation process, a person is required to be selected one by one corresponding to a specific access point, access control equipment and the like, a one-to-one corresponding binding relationship is established, and then authorization commands are sequentially issued to each access control equipment one by one to complete the authorization of an access card. Although the authorization of the access controller is clear and simple logically, in the actual operation process, an operator needs to be familiar with each access point and each access controller and then operates one by one, so that the operation steps are various, and the workload of the operator is excessive.

Disclosure of Invention

In order to overcome the defects of the prior art, one of the objectives of the present invention is to provide an authorization method for an access card, which can solve the problems of complicated authorization operation of the access card in the prior art.

The second objective of the present invention is to provide a method for identifying an access card, which can make the identification of the access card more flexible.

The invention also aims to provide an access controller, which can solve the problems of complex authorization operation of the access card and the like in the prior art and can enable the identification of the access card to be more flexible.

The fourth objective of the present invention is to provide a storage medium, which can solve the problem of complicated authorization operation of the access card in the prior art and can make the identification of the access card more flexible.

One of the purposes of the invention is realized by adopting the following technical scheme:

the first technical scheme is as follows:

an authorization method of an access card, the authorization method comprising:

a region acquisition step: acquiring information and user permission of an access card of a user according to user information, and acquiring all regions authorized by the user according to the user permission; each zone comprises a plurality of gate points;

and a regional authority group generation step: generating a region authority group of the user according to each region authorized by the user and the passing time period of each region;

generating a regional authority group name list: generating an area authority group list corresponding to the access card of the user according to the information of the access card of the user and the area authority group of the user;

a first authorization issuing step: issuing the regional authority group name list of the access control card of the user to a corresponding access control device; the regional authority group name list comprises a user number, an access control card number and a plurality of regional authority group numbers; the regional authority group comprises a plurality of regional numbers and the number of the first time table; and the first time table is a set of the passing time periods of each region in the corresponding region authority group and is stored in the system.

Further, the regional permission group list further includes an authorization validity period.

Further, the gate points in each area are a combination of gate points in one physical space or a combination of gate points in one logical space.

Or, the second technical proposal:

an authorization method of an access card, the authorization method comprising:

a door point acquisition step: acquiring information and user authority of an access card of a user according to user information, and acquiring all access points authorized by the user according to the user authority;

a door point authority group generating step: generating a door point authority group authorized by the user according to all door points authorized by the user and the passing time period of each door point; the gate point authority group comprises the entrance authority, the exit authority and a passing time table of a plurality of gate points;

a door point authority group name list generating step: generating a door point authority group list of the door access card of the user according to the information of the door access card of the user and the door point authority group authorized by the user; the gate point authority group name list comprises a user number, a gate inhibition card number and a plurality of gate point authority group numbers; the door point authority group comprises the access authority and the exit authority of a plurality of door points and the serial number of a second time table, and the second time table is a set of passing time periods of each door point in the corresponding door point authority group and is stored in the system;

a second authorization issuing step: and issuing the door point authority group name list of the door access card to a corresponding door access controller.

Further, the door point authority group list also comprises an authorization validity period.

The second purpose of the invention is realized by adopting the following technical scheme:

an identification method of an access card is applied to an access controller, and comprises the following steps:

an identification step: when a user swipes a card at a door point, acquiring information of the door access card to be identified, and acquiring the door point where the user swipes the card or an area where the door point where the user swipes the card is located;

card number matching step: obtaining an access control card number according to the information of the access control card to be identified, and then matching the access control card number of the access control card to be identified with an area authority group list stored in the access control device, or matching the access control card number of the access control card to be identified with a door point authority group list stored in the access control device;

if the entrance guard card number of the entrance guard card to be identified is successfully matched with the stored regional authority group name list of the entrance guard controller, executing a first authority matching step; or the entrance guard card number of the entrance guard card to be identified is successfully matched with the stored entrance point authority group name list of the entrance guard controller, and a second authority matching step is executed;

if the matching of the entrance guard card number of the entrance guard card to be identified and the stored regional authority group list of the entrance guard controller is unsuccessful and the matching of the entrance guard card number of the entrance guard card to be identified and the stored entrance point authority group list of the entrance guard controller is unsuccessful, opening the door is refused;

the regional permission group list is a regional permission group list generated by a technical scheme I adopted by one of the purposes of the invention; the door point authority group list is a door point authority group list generated by the second technical scheme adopted by the first purpose of the invention;

a first permission matching step: acquiring each regional authority group in a regional authority group list containing the entrance guard card number of the entrance guard card to be identified, matching the region where the door point where the user swipes the card with each regional authority group, and executing a first time matching step if the matching is successful; if the matching is unsuccessful, the door is refused to be opened;

a first time judgment step: acquiring the current time of card swiping of a user, acquiring the content of a first time table according to the number of the first time table in the corresponding regional authority group, matching the current time of card swiping of the user with the corresponding first time table, and opening the door if the matching is successful; if the matching is unsuccessful, the door is refused to be opened;

a second permission judgment step: acquiring each door point authority group in a door point authority group list containing the door control card number of the door control card to be identified, and matching the door point where the user swipes the card with each door point authority group; if the matching is successful, executing a second time judgment step; if the matching is unsuccessful, the door is refused to be opened;

a second time judgment step: acquiring the current time of card swiping of a user, acquiring the content of a second time table according to the serial number of the second time table in the corresponding door point authority group, matching the current time of card swiping of the user with the corresponding second time table, and opening the door if the matching is successful; and if not, refusing to open the door.

Further, in the card number matching step, if the access control card number of the access control card to be identified is successfully matched with the access control card number in the regional authority group list stored in the access control device, executing a first validity period judging step;

a first validity period judging step: obtaining an authorization validity period in an area authority group list containing the access control card number of the area access control card to be identified, judging whether the authorization validity period is overdue or not, and if so, refusing to open the door; if not, executing a first permission matching step;

in the card number matching step, if the entrance guard card number of the entrance guard card to be identified is successfully matched with the entrance guard card number in the entrance guard authority group list stored in the entrance guard controller, executing a second validity period judging step;

a second validity period judging step: obtaining an authorization validity period in a door point authority group list containing the door control card number of the door control card to be identified, judging whether the authorization validity period is overdue or not, and if so, refusing to open the door; if not, executing a second permission matching step.

The third purpose of the invention is realized by adopting the following technical scheme:

an access controller for performing the steps of a method for identifying an access card as employed for the second purpose of the invention.

The fourth purpose of the invention is realized by adopting the following technical scheme:

the first technical scheme is as follows:

a storage medium which is a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method of authorizing an access card according to the first aspect of the present invention or the second aspect of the technology adopted for achieving the first aspect of the present invention.

Or, the second technical proposal:

a storage medium which is a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of a method for identifying an access card according to a second aspect of the present invention.

Compared with the prior art, the invention has the beneficial effects that:

according to the invention, by introducing the concept of the region, a plurality of access points are divided into one region, then the binding relationship between the region and the access card is established and is issued to the access controller, and an authorized person does not need to specifically know each specific access point and the access controller bound by the access card and then sequentially issue each authorization command to the corresponding access controller. The invention also stores the binding relationship between the access control card and a plurality of access points through the access point authority group list in the existing access point binding mode and sends the binding relationship to the corresponding access control controller, thereby realizing the rapid authorization of the access control card and facilitating the use of authorized operators.

Drawings

Fig. 1 is a flowchart of an authorization method for an access card according to the present invention;

fig. 2 is a flowchart of a method for identifying an access card according to the present invention;

fig. 3 is a second flowchart of an authorization method for an access card according to the present invention;

fig. 4 is a second flowchart of an entrance guard card identification method provided by the present invention.

Detailed Description

The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.

Example one

According to the invention, a plurality of door points in a building or a space are divided into a plurality of regions in advance, each region comprises a plurality of door points, then the region and the door access card are bound, and the specific door access or door access controller authorized by the door access card is not required to be obtained in advance, so that the authorization of the door access card can be realized quickly, and meanwhile, the door access card can be matched for authorization, the operation is convenient, the workload of workers is greatly reduced, and the authorization work efficiency is improved.

Meanwhile, the present embodiment defines the representation mode of the authorization relationship between the access card and the region, records the binding relationship between the access card and the region in an array mode, and issues the array to the corresponding access controller, so that the access controller occupies a small storage space.

Specifically, the present embodiment defines: and the regional authority group comprises a plurality of regional authorities. Each region right for identifying the right of a region.

The zone authority group includes a zone number and a transit schedule. The passing time table is used for recording the passing time of each regional authority in each regional authority group.

The regional authority group name list comprises a user number, an access control card number and a plurality of regional authority group numbers and is used for identifying the binding relationship among the user, the access control card and the regional authority group. For example, when the regions authorized to be bound by the access control card number held by a certain user are region 1, region 2, and region 3, the 3 regions authorized to be bound by the access control card number held by the user can be recorded through the region permission group list. The regional authority group list is issued to the corresponding access controller, so that when a user swipes a card, the access card information of the user swiped card and the region where the door point of the user swiped card is located are obtained, the regional authority group list stored in the access controller can be matched and identified, whether the access card of the user is authorized or not is judged, and whether the door is opened or not is selected.

In addition, for the zone in this embodiment, it includes several gate points. The access point, also referred to as access point, is an entrance and exit.

The plurality of gate points in one area may be a combination of a plurality of gate points in one physical space, or a combination of a plurality of gate points in one logical space, and is not particularly limited. In the actual use process, the selection can be carried out according to the actual situation, and each area is numbered to be distinguished from other areas. For example, for a small area, it may be divided into one area, two areas, three areas, etc., or may be divided into villa area, business area, non-villa area, etc., and each area may include one or more door points (entrances and exits), so that several door points may be combined together according to the division of the area. The present embodiment is not particularly limited to the division of the area and the number of gate points included in the area.

In addition, in order to facilitate the management of the access card, the access card authorization of the embodiment generally has an authorization deadline. Thus, the authorization validity period is also included for the regional permission group roster. When the card swiping time of the access control card is within the authorized validity period, the card swiping can be successful; otherwise, the card swiping fails, and the door is refused to be opened.

According to the regional permission group list defined in the present invention, the present invention provides a first preferred embodiment, a method for authorizing an access card, as shown in fig. 1, includes the following steps:

and step S11, acquiring the information of the access card of the user and the user authority according to the user information, and acquiring all regions authorized by the user according to the user authority.

Wherein each zone comprises a number of gate points.

Since there may be more than one area involved by different users, when authorizing the access card of a user, user information needs to be acquired to acquire all areas that the user needs to authorize.

And step S12, generating the regional authority group authorized by the user according to all the regions authorized by the user and the passage time period of each region.

This embodiment defines: the regional permission set includes a number of regional numbers and a schedule number. The areas authorized by the user and the passage time period of each area are recorded by recording the number of each area and the number of the schedule in the area authority group. In the embodiment, the number is used for recording, and the door points, the time tables and the like specifically included in the region are stored in the system, so that the occupied space of the region permission group is small, and the data volume issued to the access controller is smaller.

And step S13, generating a regional authority group list corresponding to the access card of the user according to the information of the access card of the user and the regional authority group authorized by the user.

The regional authority group name list comprises a user number, an access control card number and a plurality of regional authority group numbers. That is, an access card can have a plurality of regional permission groups, so that the access card can authorize more regions. The regional permission group comprises a number of regional numbers and the number of the first time table. And the first time table is used for recording a set of passing time periods of each area in the corresponding area authority group.

And S14, issuing the regional authority group name list of the access control card of the user to the corresponding access control device.

In addition, the same region may be bound to access cards of multiple users, so that more than one region permission group list may be stored in one access controller, and the region permission group lists may be distinguished specifically according to user numbers and access card numbers.

The invention can set a physical space into a region by introducing the concept of the access control region, for example, all door points of the whole building are set into a region, or the combination of logic door points belongs to a region, for example, all door points of a villa region are set into a region, and the access control card and one or more regions containing a plurality of door points are set up to be bound, thereby realizing the quick authorization of the access control card.

Example two

Preferably, based on the first embodiment, after the regional authority group name list of the access card is issued to the corresponding access controller, the user can punch the access card at the access point through the access card, so as to realize the identification of the access card. That is, the present embodiment further provides an embodiment two, a method for identifying an access card, as shown in fig. 2, applied to an access controller, including the following steps:

and step S21, when the user swipes the card at the door point, acquiring the information of the door access card to be identified and the area where the door point where the user swipes the card is located.

Each area in the system can predefine all the door points contained in the area, so that when a user swipes a card at a certain door point, the access controller can automatically acquire the area where the door point swiped the card is located.

In addition, the access controller in this embodiment may be an access controller installed locally at a door site, or may be a remote access controller.

The information of the access control card which is swiped by the user can be acquired through a card reader or other identification equipment.

Step S22, obtaining an entrance guard card number according to the information of the entrance guard card to be identified, matching the entrance guard card number of the entrance guard card to be identified with an area authority group list stored in an entrance guard controller, and executing step S23 if the matching is successful; and if the matching is unsuccessful, the door is refused to be opened.

Because the access controller stores the authorized regional authority group lists of a plurality of access cards, if the regional authority group list corresponding to the access card to be identified can be inquired in the access controller, the matching is considered to be successful, and the next step is executed; if the inquiry is not successful, the area where the door point is located is not authorized to the entrance guard point to be identified, and the door is refused to be opened.

Step S23, obtaining the authorization validity period in the regional authority group list containing the entrance guard card number of the entrance guard card to be identified and judging whether the authorization validity period is overdue, if yes, refusing to open the door; if not, step S24 is executed.

That is, if the authorization validity period is over, it indicates that the authorization is over, and then the authorized door opening cannot be performed any more, so that when the area authority group list of the to-be-identified access card exists in the access controller, if the authorization validity period is over, the door cannot be opened.

S24, acquiring each regional authority group in a regional authority group list containing the entrance guard card number of the entrance guard card to be identified, matching the region where the door point where the user swipes the card with each regional authority group, and executing S25 if the matching is successful; and if the matching is unsuccessful, the door is refused to be opened.

And when the access controller stores the regional authority group list corresponding to the access card to be identified, comparing the access card number of the access card to be identified with each regional authority group in the regional authority group list containing the access card number of the access card to be identified so as to judge whether the corresponding regional authority group exists. If yes, go to step S25; if not, the door is refused to be opened.

Step S25, obtaining the current time of the user swiping the card, obtaining the content of the first time table according to the number of the first time table in the corresponding regional authority group, matching the current time of the user swiping the card with the corresponding first time table, and if the matching is successful, opening the door; and if not, refusing to open the door.

That is, when the corresponding regional authority group exists, the current time of the user swiping the card is compared with the time schedule of the corresponding regional authority group, so as to judge whether to open the door according to the comparison result. For example, if the current time is just within the allowed passing time, the door is opened; and if the current time is not within the time of allowing the passage, the door is refused to be opened.

Preferably, based on the authorization and identification of the access card of the first embodiment and the second embodiment, the present invention can further define the authorization and identification of the existing access card based on the access point, so that the authorization of the existing access card based on the access point is further simplified. Similarly, when the gate point-based access control card is authorized, the embodiment defines:

and the door point authority is used for identifying the entrance authority and the exit authority of the door point.

And the door point authority group is used for identifying the access authority of the door points and the passing time period of each door point, and comprises the access authority, the exit authority and a second time table of the door points. And the second time table is used for recording the collection of the passing time periods of each door point of the corresponding door point authority group. More specifically, one access point authority group can support a plurality of access points, namely, the access authority, the exit authority and the time schedule of a plurality of access points are included.

The access point authority group list comprises a user number, an access control card number, an authorization validity period and a plurality of access point authority groups. In addition, in order to further reduce the data size of the door point authority group list, each door point authority group in the door point authority group list is represented by a door point authority group number.

When authorizing, according to the user information, obtaining the access card information held by the user and all the access points authorized, generating the access point authority group list of the access card, and sending the generated access point authority group list to the corresponding access controller, thus realizing the identification of the access card.

EXAMPLE III

Similarly, the third embodiment provides an authorization method for an access card, as shown in fig. 3, including the following steps:

step S31, acquiring the information of the access card and the user authority of the user according to the user information, and acquiring all door points authorized by the user according to the user authority;

and step S32, generating a door point authority group authorized by the user according to all door points authorized by the user and the passing time period of each door point.

And step S33, generating a door point authority group list of the door control card of the user according to the information of the door control card of the user and the door point authority group authorized by the user.

And S34, issuing the access point authority group list of the access control card of the user to the corresponding access control controller.

The door point authority group name list comprises a user number, a door control card number, an authorization validity period and a plurality of door point authority group numbers.

Example four

Therefore, the present embodiment further provides a fourth embodiment, where a method for identifying an access card is applied to an access controller, as shown in fig. 4, and includes the following steps:

and step S41, when the user swipes the card at the door point, acquiring the information of the entrance guard card to be identified and acquiring the door point where the user swipes the card.

When a user swipes a card at a certain door point, the door access controller can automatically acquire the door point where the card is swiped.

Similarly, the access controller in this embodiment may be a local access controller installed at a door site, or may be a remote access controller.

The information of the access control card which is swiped by the user can be acquired through a card reader or other identification equipment.

Step S42, obtaining an entrance guard card number according to the information of the entrance guard card to be identified, matching the entrance guard card number of the entrance guard card to be identified with a door point authority group list stored in an entrance guard controller, and executing step S43 if the matching is successful; and if the matching is unsuccessful, the door is refused to be opened.

Because the entrance guard controller stores authorized entrance point authority group lists of a plurality of entrance guard cards, if the entrance point authority group list corresponding to the entrance guard card to be identified can be inquired in the entrance guard controller, the matching is considered to be successful, and the next step is executed; if the inquiry is not successful, the door point is not authorized to the entrance guard point to be identified, and the door is refused to be opened.

Step S43, obtaining the authorization validity period in the door point authority group list containing the door control card number of the door control card to be identified and judging whether the authorization validity period is overdue, if so, refusing to open the door; if not, step S44 is executed.

That is, if the authorization validity period is over, it indicates that the authorization is over, and then the authorized door opening cannot be performed any more, so that when the door access controller has the door point authority group list of the to-be-identified door access card, if the authorization validity period is over, the door cannot be opened.

S44, acquiring each access point authority group in the access point authority group list containing the access card number of the access card to be identified, matching the access point where the user swipes the card with each access point authority group, and executing S45 if the matching is successful; and if the matching is unsuccessful, the door is refused to be opened.

And when the entrance guard controller stores the entrance point authority group list corresponding to the entrance guard card to be identified, comparing the entrance guard card number of the entrance guard card to be identified with each entrance point authority group in the entrance point authority group list containing the entrance guard card number of the entrance guard card to be identified so as to judge whether the corresponding entrance point authority group exists. If yes, go to step S45; if not, the door is refused to be opened.

Step S45, obtaining the current time of the user swiping the card, obtaining the content of the second timetable according to the serial number of the second timetable in the corresponding door point authority group, matching the current time of the user swiping the card with the corresponding second timetable, and if the matching is successful, opening the door; and if not, refusing to open the door.

That is, when the corresponding door point authority group exists, the current time of the card swiping of the user is compared with the time schedule of the corresponding door point authority group, so as to judge whether to open the door according to the comparison result. For example, if the current time is just within the allowed passing time, the door is opened; and if the current time is not within the time of allowing the passage, the door is refused to be opened.

More specifically, in this embodiment, it is further set that one region authority group includes 246 region authorities, where the region number of each region authority is 2 bytes, and the time table number is 1 byte.

And one access control card can support 16 regional permission groups, that is, for one access control card, a corresponding binding relationship can be established with the 16 regional permission groups. Wherein, in the regional authority group list content: the personnel number is 2 bytes, the card number is 8 bytes, the validity period is 4 bytes, and the number of the 16 regional authority groups is 32 bytes.

Similarly, when the access card based on the door point is authorized and identified, the embodiment sets one access controller to support 128 doors. That is, one door point right includes an entrance right, an exit right, and a schedule for 128 doors. The combination of passage periods for 128 doors is recorded in the schedule.

The door point authority group name list comprises a personnel number, a card number, a validity period and four door point authority group numbers. Wherein, the personnel number is 4 bytes, the card number is 8 bytes, the validity period is 4 bytes, and each door point authority group number is 33 bytes.

Since each door point rights group defines the rights of 128 doors, one controller polices 128 doors at maximum. Therefore, for an access card, 4 × 128 door points can be bound to a certain controller, and the number of the door points is enough to meet the requirement.

In this embodiment, a single gate point authority group is set to 33 bytes, wherein the number of the schedule is 1 byte, and the gate point authority of one gate occupies 2 bytes, including an entry authority and an exit authority. For example, for a gate point authority group, the 1 st byte and the 2 nd byte represent the access authority and the exit authority of the gate 1; the 3 rd byte and the 4 th byte represent the access authority and the exit authority of the gate 2; and so on.

In addition, the present embodiment provides: when one door is a unidirectional card swiping mode, namely one of the access right and the access right of the door point is empty, only bit0 is adopted, and bit1 is not adopted.

The entry and exit in this embodiment belong to a relative direction, for example, taking a cell as an example, entry into the cell from the outside is entry, and exit from the cell to the outside is exit.

In addition, the present embodiment also indicates the in-right and the out-right by the pair of 0, 1. Namely: when bit0 is 1, it indicates that gate entry is allowed; when bit0 is 0, it means that no gate entry is allowed.

When one gate is a bidirectional card swiping, the setting can be specifically performed according to the actual situation, for example, the entry authority and the exit authority of one gate point are respectively set to bit 0-1 and bit 1-1, which indicates that entry and exit are allowed. Of course, the above-mentioned setting is not limited to the example given in this embodiment, and may be specifically set according to actual requirements.

In addition, in the practical application process, an area authority group list and an access point authority group list of the access card can be generated simultaneously according to the user information and are issued to the corresponding access controller respectively, so that the access controller can obtain the access point where the user swipes the card or the area where the access point where the user swipes the card is located when receiving the access card number of the access card swiped by the user, and then respectively select the corresponding authority group list for matching and identification, and the door can be opened as long as any one matching mode is met.

EXAMPLE five

The fifth embodiment further provides an access controller, which is configured to execute the method for identifying an access card provided in the second embodiment, or execute the method for identifying an access card provided in the fourth embodiment.

The invention introduces the concept of the region and combines the traditional door point-based authorization to be further improved, so that the authorization and the identification of the access control card are more flexible and convenient.

EXAMPLE six

A storage medium, which is a computer-readable storage medium, and on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for authorizing an access card according to one or more of the third embodiments.

Similarly, a storage medium is a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for identifying an access card according to the second embodiment or the fourth embodiment.

The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种门禁权限管理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!