CN109544753B - Authority management method and system based on two-dimensional code - Google Patents

Authority management method and system based on two-dimensional code Download PDF

Info

Publication number
CN109544753B
CN109544753B CN201811419578.5A CN201811419578A CN109544753B CN 109544753 B CN109544753 B CN 109544753B CN 201811419578 A CN201811419578 A CN 201811419578A CN 109544753 B CN109544753 B CN 109544753B
Authority
CN
China
Prior art keywords
card
information
identification
dimensional code
access control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811419578.5A
Other languages
Chinese (zh)
Other versions
CN109544753A (en
Inventor
刘活钊
余佳鑫
陈梓成
曾东荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Building Technology Guangzhou Co Ltd
Original Assignee
Hitachi Building Technology Guangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Building Technology Guangzhou Co Ltd filed Critical Hitachi Building Technology Guangzhou Co Ltd
Priority to CN201811419578.5A priority Critical patent/CN109544753B/en
Publication of CN109544753A publication Critical patent/CN109544753A/en
Application granted granted Critical
Publication of CN109544753B publication Critical patent/CN109544753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/22Individual registration on entry or exit involving the use of a pass in combination with an identity check of the pass holder

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a method and a system for managing authority based on two-dimensional codes, wherein the method comprises the steps of receiving entrance guard card information sent by a card reader; detecting whether a card identification ID in the access control card information is a legal identification; if the card identification ID is a legal identification, detecting whether the card identification ID is bound with the two-dimensional code; if the card identification ID is not bound with the two-dimensional code, generating two-dimensional code authorization information corresponding to the card identification ID based on the pass permission information; and sending the two-dimension code authorization information to the card reader. The controller sends the two-dimension code authorization information generated according to the communication authority information to the card reader, so that a user can finish two-dimension code authorization operation at the card reader by himself, the technical problem that in the prior art, background property personnel are required to participate in a two-dimension code authorization process or the two-dimension code authorization process can be finished only by networking is solved, and the purpose that the user can finish the two-dimension code authorization process by himself is achieved.

Description

Authority management method and system based on two-dimensional code
Technical Field
The embodiment of the invention relates to the technical field of building systems, in particular to a method and a system for authority management based on two-dimension codes.
Background
At present, in an elevator IC card system or an access control system, the authority of issuing or authorizing a user to use a two-dimensional code mainly comprises the following two schemes:
the first scheme is as follows: the user fills in personal information in a mobile phone APP (Application) or a wechat platform, then applies for registration to the cloud server, a background property worker receives the registration information of the user and then checks the registration information, and after the check is passed, the user can use the two-dimensional code generated in the mobile phone APP or the wechat platform to use in an elevator IC (integrated circuit) card system or an access control system.
The scheme has the advantages that the user can finish the registration process independently without the assistance of background property personnel, and the local IC card controller can be free from using a local area network. However, the local IC card controller needs to use a cloud server, which involves the maintenance and operation costs of the server, and increases the costs of manpower and material resources.
Scheme II: the user sends the unique ID (Identification card) number generated in the mobile phone APP or the WeChat platform to the property personnel through field supply or WeChat and other modes, and the property personnel manually input the received ID number into the system and issue the pass right to the ID number.
The advantage of this kind of scheme is that whole system does not need to use cloud server, therefore also does not have the maintenance and the operation expense of cloud server. But the shortcoming is that the user needs to tell the property the ID number of the two-dimensional code and register through property personnel, so that the whole registration process is relatively complicated.
Disclosure of Invention
The invention provides a method and a system for authority management based on a two-dimension code, which are used for realizing the authorization process of the two-dimension code by a user.
The embodiment of the invention provides a two-dimensional code-based authority management method, which is applied to a controller and comprises the following steps: receiving access control card information sent by a card reader, wherein the access control card information is sent by the card reader when the card swiping times of an access control card reaches the preset registered card swiping times, and the access control card information comprises: the card identification ID and the passing authority information of the access control card; detecting whether a card Identification (ID) in the access control card information is a legal identification; if the card identification ID is a legal identification, detecting whether the card identification ID is bound with a two-dimensional code; if the card identification ID is not bound with the two-dimensional code, generating two-dimensional code authorization information corresponding to the card identification ID based on the passing authority information; and sending the two-dimension code authorization information to the card reader.
Furthermore, the access authority information comprises access control card authority information, validity period of the access control card and valid card swiping times of the access control card.
Further, after receiving the access control card information sent by the card reader, the method further includes: detecting whether card Identification (ID) in the access control card information is stored locally; if the card identification ID is not stored locally, executing a step of detecting whether the card identification ID in the access control card information is a legal identification; if the card identification ID is locally stored, target passing authority information correspondingly stored by the card identification ID is obtained, and whether the target passing authority information is consistent with the passing authority information in the entrance guard card information or not is judged; if the target passing authority information is inconsistent with the passing authority information, updating the target passing authority information according to the passing authority information, and generating two-dimensional code updating information corresponding to the card identification ID based on the updated target passing authority information; and sending the two-dimension code updating information to the card reader.
Further, the method further comprises: if the card identification ID is an illegal identification, generating invalid prompt information corresponding to the card identification ID; and returning the invalid prompt information to the card reader to prompt that the access control card is invalid.
Further, after receiving the access control card information sent by the card reader, the method further includes: detecting whether a card Identification (ID) in the access control card information is listed in a blacklist or not; if the card identification ID is listed in a blacklist, generating two-dimensional code logout information corresponding to the card identification ID; and returning the two-dimension code logout information to the card reader to forbid the passing authority of the two-dimension code.
The embodiment of the invention also provides a two-dimensional code-based authority management method, which is applied to a card reader and comprises the following steps: reading a card identification ID from the detected access card; determining the card swiping times of the access control card in a preset time according to the card identification ID; when the card swiping times reach the preset registered card swiping times, sending access control card information corresponding to the access control card to a controller, wherein the access control card information comprises the card identification ID and the access permission information corresponding to the access control card; and receiving two-dimension code authorization information returned by the controller, wherein the two-dimension code authorization information is used for generating a two-dimension code corresponding to the card identification ID.
Further, after receiving the two-dimensional code authorization information returned by the controller, the method further includes: generating a two-dimensional code corresponding to the card identification ID according to the two-dimensional code authorization information, and sending the generated two-dimensional code corresponding to the card identification ID to a mobile terminal or an application program; or sending the two-dimension code authorization information to a mobile terminal or an application program to trigger the mobile terminal or the application program to generate a two-dimension code corresponding to the card identification ID according to the two-dimension code authorization information; or identifying a two-dimensional code generated in advance by the mobile terminal or the application program; authorizing the pre-generated two-dimensional code based on the received two-dimensional code authorization information so that the pre-generated two-dimensional code becomes a two-dimensional code corresponding to the card identification ID.
Further, the method further comprises: and receiving two-dimension code updating information returned by the controller, wherein the two-dimension code updating information is used for generating a new corresponding two-dimension code for the card identification ID which is stored locally.
Further, after receiving the two-dimensional code update information returned by the controller, the method further includes: generating a new two-dimensional code corresponding to the card identification ID according to the two-dimensional code updating information, and sending the generated new two-dimensional code corresponding to the card identification ID to a mobile terminal or an application program; or sending the two-dimension code updating information to a mobile terminal or an application program to trigger the mobile terminal or the application program to update the two-dimension code corresponding to the card identification ID according to the two-dimension code updating information.
The embodiment of the invention also provides a two-dimensional code-based authority management system, which comprises a card reader and a controller, wherein the card reader is connected with the controller; the card reader is arranged at an elevator entrance needing to set a use authority or a door entrance needing to set an entrance guard, and is used for identifying whether an entrance guard card or a two-dimensional code has a passing authority and identifying entrance guard card information carried by the entrance guard card; the controller is used for storing and processing the access control card information sent by the card reader and returning a corresponding processing result to the card reader.
The invention discloses a method and a system for managing authority based on two-dimensional codes, wherein the method comprises the steps of receiving entrance guard card information sent by a card reader; detecting whether a card identification ID in the access control card information is a legal identification; if the card identification ID is a legal identification, detecting whether the card identification ID is bound with the two-dimensional code; if the card identification ID is not bound with the two-dimensional code, generating two-dimensional code authorization information corresponding to the card identification ID based on the pass permission information; and sending the two-dimension code authorization information to the card reader. The controller sends the two-dimension code authorization information generated according to the communication authority information to the card reader, so that a user can finish two-dimension code authorization operation at the card reader by himself, the technical problem that in the prior art, background property personnel are required to participate in a two-dimension code authorization process or the two-dimension code authorization process can be finished only by networking is solved, and the purpose that the user can finish the two-dimension code authorization process by himself is achieved.
Drawings
Fig. 1 is a flowchart of a two-dimensional code-based rights management method applied to a controller according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for updating two-dimensional code permissions according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for disabling two-dimensional code permission according to an embodiment of the present invention;
fig. 4 is a flowchart of a two-dimensional code-based rights management method applied to a card reader according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The first embodiment is as follows:
fig. 1 is a flowchart of a two-dimensional code-based rights management method applied to a controller according to an embodiment of the present invention. The two-dimension code-based right management method is applied to a controller, and as shown in fig. 1, the method comprises the following steps:
step S101, receiving entrance guard card information sent by a card reader, wherein the entrance guard card information is sent by the card reader when the number of times of card swiping of an entrance guard card reaches a preset registered number of times of card swiping, and the entrance guard card information comprises: and the card identification ID and the passing authority information of the access control card.
Specifically, the access authority information comprises access control card authority information, an access control card validity period and access control card valid card swiping times.
In the embodiment of the invention, a property person can issue a corresponding access control card to each user, the access control card carries access control card information, wherein the access control card information comprises a card identification ID uniquely corresponding to each card, and communication authority information corresponding to the access control card is also stored in a storage sector of the access control card. Specifically, the access permission information of the access card comprises access card permission information, such as building floor information which can be passed by the access card, elevator numbers which can be passed by the access card, and the like; in addition, the access permission information of the access control card also comprises the effective service life of the access control card, the effective card swiping times of the access control card and the like.
When a user holds an access control card and swipes the card on a card reader once, if the access control card is within the validity period and has the passing authority corresponding to the access control or the elevator, the user can pass through the access control or take the elevator; when the card swiping times of the entrance guard card held by the user on the card reader reaches the preset registered card swiping times, for example, the user swipes the card twice continuously within 1 second, the card reader can actively identify the entrance guard card information in the entrance guard card and send the identified entrance guard card information to the controller, so that the controller can receive the entrance guard card information sent by the card reader and perform subsequent two-dimensional code authorization steps.
And S102, detecting whether the card identification ID in the access control card information is a legal identification.
In the embodiment of the invention, after receiving the access card information sent by the card reader, the controller firstly judges whether the card identification ID in the access card information is legal identification, if the judgment result is that the card identification ID is not legal identification, the controller proves that the access card does not pass the access authority of the building access control or the elevator, and the controller further executes the step S107; if the card identification ID is a valid identification as a result of the determination, the controller proceeds to step S103.
Step S103, if the card identification ID is a legal identification, whether the card identification ID is bound with the two-dimensional code is detected.
In the embodiment of the invention, after the card identification ID is detected to be a legal identification, the entrance guard card is proved to have the passing authority of passing the building entrance guard or the elevator, the controller enters a two-dimensional code authorization mode, the passing authority information of the entrance guard card corresponding to the card identification ID is stored in the storage, and whether the card identification ID is bound with the two-dimensional code is further detected. If the card identification ID is detected to be bound with the two-dimensional code, the control ends the two-dimensional code authorization mode, and the step S106 is executed, otherwise, the step S104 is executed.
And step S104, if the card identification ID is not bound with the two-dimensional code, generating two-dimensional code authorization information corresponding to the card identification ID based on the pass permission information.
In the embodiment of the present invention, if it is detected that the card identifier ID is not bound to the two-dimensional code, the controller generates the two-dimensional code authorization information according to an algorithm preset in the controller based on the passage permission information of the access control card corresponding to the card identifier ID, it should be noted that the two-dimensional code authorization information is the two-dimensional code authorization information uniquely corresponding to the card identifier ID, and then step S105 is executed to send the two-dimensional code authorization information to the card reader.
And step S105, sending the two-dimensional code authorization information to the card reader.
And step S106, ending the two-dimension code authorization process.
The invention discloses a two-dimensional code-based authority management method, which is applied to a controller, receives access control card information sent by a card reader through the controller, and further detects whether a card Identification (ID) in the access control card information is a legal identification; after the card identification ID is confirmed to be a legal identification, further detecting whether the card identification ID is bound with the two-dimensional code; if the card identification ID is detected not to be bound with the two-dimensional code, the two-dimensional code authorization information corresponding to the card identification ID is generated based on the passing authority information, and the two-dimensional code authorization information is sent to the card reader, so that a user can finish the two-dimensional code authorization operation on the card reader by himself through the process. The invention solves the technical problem that the two-dimension code authorization process can be completed only by background property personnel participating in the two-dimension code authorization process or networking in the prior art, and achieves the purpose that a user can complete the two-dimension code authorization process by himself.
In an optional implementation manner, if the user's access card is expired or the access card information carried in the access card needs to be changed due to objective reasons such as changing of a residential floor, the property personnel may change the corresponding information in the user's access card, and at this time, the two-dimensional code correspondingly generated before the information is changed is inconsistent with the updated information in the access card, and the user is required to update the authority of the generated two-dimensional code. As shown in fig. 2, which is a flowchart of a method for updating a two-dimensional code authority, in step S101, after receiving access card information sent by a card reader, the method for updating a two-dimensional code authority further includes the following steps:
step S201, whether card identification ID in the entrance guard card information is stored locally is detected.
And S202, if the card identification ID is not stored locally, executing a step of detecting whether the card identification ID in the entrance guard card information is a legal identification.
In the embodiment of the present invention, after receiving the access card information sent by the card reader, the controller further determines whether the card identifier ID of the access card is already stored in the memory of the controller, and if the determination result is that the card identifier ID is not stored in the local memory, the controller further executes step S102 shown in fig. 1 to detect whether the card identifier ID in the access card information is a legal identifier; if the card identification ID is stored in the local storage as a result of the determination, step S203 is further performed.
Step S203, if the card identification ID is locally stored, the target passing authority information correspondingly stored by the card identification ID is obtained, and whether the target passing authority information is consistent with the passing authority information in the entrance guard card information is judged.
In the embodiment of the invention, if the card identification ID is stored in the local memory, the controller can acquire the target access authority information which is stored corresponding to the card identification ID, and compare whether the target access authority is consistent with the access authority information in the access control card information corresponding to the card identification ID. If the comparison result is that the target passage authority information is consistent with the passage authority information, the controller ends the process of updating the two-dimensional code authority, and executes the step S206, otherwise, further executes the step S204.
And step S204, if the target traffic authority information is inconsistent with the traffic authority information, updating the target traffic authority information according to the traffic authority information, and generating two-dimensional code updating information corresponding to the card identification ID based on the updated target traffic authority information.
And step S205, sending the two-dimension code updating information to the card reader.
And step S206, ending the two-dimension code updating process.
In the embodiment of the invention, if the comparison result shows that the target passing authority information is inconsistent with the passing authority information, the controller generates the two-dimensional code updating information corresponding to the card identification ID based on a preset algorithm according to the stored target passing authority information and the updated target passing authority information, and sends the generated two-dimensional code updating information to the card reader, so that the card reader updates the two-dimensional code of the mobile terminal or the application program based on the two-dimensional code updating information.
Optionally, as shown in fig. 1, the method for rights management based on two-dimensional code further includes the following steps:
and step S107, if the card identification ID is an illegal identification, generating invalid prompt information corresponding to the card identification ID.
And step S108, returning an invalid prompt message to the card reader to prompt that the access control card is invalid.
In the embodiment of the invention, if the judgment result shows that the card identification ID is not a legal identification, namely the card identification ID is an illegal identification, the entrance guard card is proved not to pass the access authority of the building entrance guard or the elevator at the position, the controller can generate invalid prompt information corresponding to the card identification ID and return the generated invalid prompt information to the card reader to prompt that the entrance guard card does not have the access authority of the elevator passing through the building entrance guard.
Optionally, in an optional implementation manner, if the user needs to log off the access card due to reasons such as moving away from the residence, the property personnel may transmit corresponding information in the access card of the user to a blacklist of the controller, and correspondingly, the permission of the two-dimensional code corresponding to the card identifier ID in the access card may also be disabled, specifically, as shown in fig. 3, the method is a flowchart of a method for disabling the permission of the two-dimensional code, and after receiving the information of the access card sent by the card reader in step S101, the method for managing the permission based on the two-dimensional code further includes:
step S301, detecting whether the card identification ID in the access control card information is listed in a blacklist.
Step S302, if the card identification ID is listed in the blacklist, the two-dimensional code logout information corresponding to the card identification ID is generated.
And step S303, returning two-dimension code logout information to the card reader to forbid the passing authority of the two-dimension code.
In the embodiment of the present invention, after receiving the access card information sent by the card reader, the controller further determines whether the card identification ID of the access card is already listed in the blacklist of the controller, and if the determination result is that the card identification ID is not listed in the blacklist of the controller, the controller further executes step S102 shown in fig. 1 to detect whether the card identification ID in the access card information is a legal identification; if the judgment result is that whether the card identification ID is listed in the blacklist of the controller or not, the controller can generate two-dimensional code logout information corresponding to the card identification ID and return the two-dimensional code logout information to the card reader, the card reader can forbid the passing authority of the two-dimensional code uniquely corresponding to the card identification ID, correspondingly, when a user uses the two-dimensional code to pass through the entrance guard or uses the elevator, the card reader can prompt that the two-dimensional code does not have the passing authority, and the user cannot pass through the entrance guard or use the elevator.
In the embodiment of the invention, the right management method based on the two-dimensional code has the following advantages that: (1) the property personnel only need to issue the access control card for the user, and do not need to issue the two-dimensional code for the second time; (2) the user can finish the operation of authorizing the two-dimension code for the entrance guard card at the card reader by himself without the help of property personnel and the operation of authorizing the two-dimension code for the entrance guard card without going to a special place, thereby saving time and labor; (3) the method does not need the controller to be connected with the local area network, and does not have the problem that the authorization of the two-dimensional code for the access card is influenced when the network fails; (4) the method does not need the connection of the controller and the cloud server, does not have the maintenance and operation cost of the cloud server, and saves the cost.
Example two:
fig. 4 is a flowchart of a two-dimensional code-based rights management method applied to a card reader according to an embodiment of the present invention. The two-dimensional code-based authority management method is applied to a card reader, and as shown in fig. 4, the method comprises the following steps:
step S401, reading card identification ID from the detected entrance guard card.
And S402, determining the card swiping times of the access control card in the preset time according to the card identification ID.
And S403, when the card swiping times reach the preset registered card swiping times, sending the entrance guard card information corresponding to the entrance guard card to the controller, wherein the entrance guard card information comprises a card Identification (ID) and the access authority information corresponding to the entrance guard card.
Specifically, the access authority information comprises access control card authority information, an access control card validity period and access control card valid card swiping times.
And S404, receiving two-dimension code authorization information returned by the controller, wherein the two-dimension code authorization information is used for generating a two-dimension code corresponding to the card identification ID.
In the embodiment of the invention, when a user holds an access control card and swipes the card on the card reader, the card reader can determine the number of times of swiping the card by the user within preset time, for example, when the user swipes the card once within 1 second, if the access control card is within the validity period and has the passing authority corresponding to the access control or the elevator, the user can pass through the access control or take the elevator; when the user swipes the card twice within 1 second, the card reader can actively identify the entrance guard card information in the entrance guard card and send the identified entrance guard card information to the controller, that is, when the number of swipes reaches the preset number of registered swipes in step S403, the card reader can send the corresponding entrance guard card information in the entrance guard card to the controller, so that the controller generates two-dimensional code authorization information based on the received entrance guard card information, and returns the generated two-dimensional code authorization information to the card reader, so that the card reader performs subsequent two-dimensional code authorization steps based on the received two-dimensional code authorization information.
The embodiment of the invention discloses a permission management method based on a two-dimensional code, which is applied to a card reader, the card reader is used for determining the card swiping times of a user in preset time, and then corresponding entrance guard card information in an entrance guard card is identified when the card swiping times reach the preset registered card swiping times, and the entrance guard card information is sent to a controller, so that the controller generates corresponding two-dimensional code authorization information, and the two-dimensional code authorization information is returned to the card reader, and the user can finish the two-dimensional code authorization operation on the card reader by himself through the process. The invention solves the technical problem that the two-dimension code authorization process can be completed only by background property personnel participating in the two-dimension code authorization process or networking in the prior art, and achieves the purpose that a user can complete the two-dimension code authorization process by himself.
In an optional implementation manner, in step S404, after receiving the two-dimensional code authorization information returned by the controller, the method for managing rights based on a two-dimensional code further includes the following steps:
step S4051, generating a two-dimensional code corresponding to the card identification ID according to the two-dimensional code authorization information, and sending the generated two-dimensional code corresponding to the card identification ID to the mobile terminal or the application program; alternatively, the first and second electrodes may be,
step S4052, the two-dimension code authorization information is sent to the mobile terminal or the application program to trigger the mobile terminal or the application program to generate a two-dimension code corresponding to the card identification ID according to the two-dimension code authorization information; alternatively, the first and second electrodes may be,
step S4053, identifying a two-dimensional code generated in advance by the mobile terminal or the application program;
and authorizing the pre-generated two-dimensional code based on the received two-dimensional code authorization information so that the pre-generated two-dimensional code becomes the two-dimensional code corresponding to the card identification ID.
In the embodiment of the present invention, after the card reader receives the two-dimensional code authorization information returned by the controller, the card reader needs to grant a pass right to the two-dimensional code uniquely corresponding to the card identification ID, which specifically includes the following methods:
(1) the card reader can generate a two-dimensional code uniquely corresponding to the card identification ID based on the received two-dimensional code authorization information, and when a user opens the mobile terminal or the application program bound with the access control card and approaches the card reader for identification, the card reader can send the generated two-dimensional code to the mobile terminal or the application program, so that the two-dimensional code authorization process is completed. In the later use process, when the user forgets to carry the entrance guard card, the user can swipe the two-dimensional code in the mobile terminal or the application program at the card reader to pass through the entrance guard or use the elevator.
(2) After the card reader receives the two-dimension code authorization information, when a user opens the mobile terminal or the application program bound with the access control card and the mobile terminal or the application program approaches the card reader for identification, the card reader can send the two-dimension code authorization information to the mobile terminal or the application program, and the mobile terminal or the application program can generate a two-dimension code uniquely corresponding to the card identification ID according to the two-dimension code authorization information after receiving the two-dimension code authorization information, so that the two-dimension code authorization process is completed.
(3) After the card reader receives the two-dimension code authorization information, a user opens the mobile terminal or the application program bound with the access control card, and generates a two-dimension code without authority on the mobile terminal or the application program, when the user identifies the two-dimension code close to the card reader, the card reader authorizes the received two-dimension code authorization information to the two-dimension code generated on the identified mobile terminal or the identified application program, so that the two-dimension code without authority generated on the original mobile terminal or the application program becomes the two-dimension code uniquely corresponding to the card identification ID, and the two-dimension code authorization process is completed.
In another optional implementation manner, the method for rights management based on two-dimensional codes further includes: and receiving two-dimension code updating information returned by the controller, wherein the two-dimension code updating information is used for generating a new corresponding two-dimension code for the card identification ID which is stored locally.
In the embodiment of the invention, if the access card of the user is overdue or the access card information carried in the access card needs to be changed due to objective reasons such as changing residential floors and the like, the property personnel can change the corresponding information in the access card of the user, and at the moment, the two-dimensional code correspondingly generated before the information is changed is inconsistent with the updated information in the access card, so that the user is required to update the authority of the generated two-dimensional code. When the controller identifies that the passing authority information corresponding to the card identification ID is changed, the two-dimensional code updating information is correspondingly generated and sent to the card reader.
After receiving the two-dimension code updating information returned by the controller, the two-dimension code-based right management method further comprises the following steps: generating a new two-dimensional code corresponding to the card identification ID according to the two-dimensional code updating information, and sending the generated new two-dimensional code corresponding to the card identification ID to the mobile terminal or the application program; or sending the two-dimension code updating information to the mobile terminal or the application program to trigger the mobile terminal or the application program to update the two-dimension code corresponding to the card identification ID according to the two-dimension code updating information.
In the embodiment of the present invention, after the card reader receives the two-dimensional code update information returned by the controller, the card reader updates the right of way item of the existing two-dimensional code according to the received two-dimensional code update information, which specifically includes the following methods:
(1) the card reader can generate a new two-dimensional code uniquely corresponding to the card identification ID based on the received two-dimensional code updating information, when a user opens the mobile terminal or the application program bound with the access control card and enables the mobile terminal or the application program to be close to the card reader for identification, the card reader can send the generated new two-dimensional code to the mobile terminal or the application program, the new two-dimensional code can cover the original two-dimensional code in the mobile terminal or the application program, and therefore the process of updating the two-dimensional code is completed.
(2) After the card reader receives the two-dimension code updating information, when a user opens the mobile terminal or the application program bound with the access control card and the mobile terminal or the application program is close to the card reader for identification, the card reader can send the two-dimension code updating information to the mobile terminal or the application program, the mobile terminal or the application program can update the passing authority of the original two-dimension code corresponding to the card identification ID according to the two-dimension code updating information after receiving the two-dimension code updating information, and therefore the two-dimension code updating process is completed.
(3) After the card reader receives the two-dimension code updating information, the user opens the original two-dimension code corresponding to the card identification ID on the mobile terminal or the application program, the two-dimension code is close to the card reader for identification, the card reader can transmit the received two-dimension code updating information to the two-dimension code after identifying the two-dimension code, the passing permission of the two-dimension code is updated, and therefore the two-dimension code authorization process is completed.
Example three:
the embodiment of the invention also provides an authority management system based on the two-dimensional code, which comprises a card reader and a controller, wherein the card reader is connected with the controller.
Specifically, the card reader is arranged at an elevator entrance needing to set a use authority or a door entrance needing to set an entrance guard, and is used for identifying whether an entrance guard card or a two-dimensional code has a passing authority and identifying entrance guard card information carried by the entrance guard card; the controller is used for storing and processing the access control card information sent by the card reader and returning a corresponding processing result to the card reader.
The two-dimensional code-based rights management system provided by the embodiment of the invention has the same implementation principle and technical effect as the method embodiment, and for brief description, no part of the system embodiment is mentioned, and reference may be made to the corresponding content in the method embodiment.
In the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Finally, it should be noted that the above-mentioned embodiments are only preferred embodiments of the present invention and the technical principles applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A two-dimension code-based right management method is applied to a controller, and comprises the following steps:
receiving access control card information sent by a card reader, wherein the access control card information is sent by the card reader when the card swiping times of an access control card reaches the preset registered card swiping times, and the access control card information comprises: the card identification ID and the passing authority information of the access control card;
after receiving the access control card information sent by the card reader, the method further comprises:
detecting whether card Identification (ID) in the access control card information is stored locally;
if the card identification ID is not stored locally, executing a step of detecting whether the card identification ID in the access control card information is a legal identification;
if the card identification ID is locally stored, target passing authority information correspondingly stored by the card identification ID is obtained, and whether the target passing authority information is consistent with the passing authority information in the entrance guard card information or not is judged;
if the target passing authority information is inconsistent with the passing authority information, updating the target passing authority information according to the passing authority information, and generating two-dimensional code updating information corresponding to the card identification ID based on the updated target passing authority information;
sending the two-dimension code updating information to the card reader;
detecting whether a card Identification (ID) in the access control card information is a legal identification;
if the card identification ID is a legal identification, detecting whether the card identification ID is bound with a two-dimensional code;
if the card identification ID is not bound with the two-dimensional code, generating two-dimensional code authorization information corresponding to the card identification ID based on the passing authority information;
and sending the two-dimension code authorization information to the card reader.
2. The method of claim 1, wherein the access permission information comprises access card permission information, validity period of an access card, and number of valid card swipes of the access card.
3. The method of claim 1, further comprising:
if the card identification ID is an illegal identification, generating invalid prompt information corresponding to the card identification ID; and returning the invalid prompt information to the card reader to prompt that the access control card is invalid.
4. The method of claim 1, wherein after receiving the access card information sent by the card reader, the method further comprises:
detecting whether a card Identification (ID) in the access control card information is listed in a blacklist or not;
if the card identification ID is listed in a blacklist, generating two-dimensional code logout information corresponding to the card identification ID;
and returning the two-dimension code logout information to the card reader to forbid the passing authority of the two-dimension code.
5. A two-dimensional code-based authority management method is applied to a card reader, and comprises the following steps:
reading a card identification ID from the detected access card;
determining the card swiping times of the access control card in a preset time according to the card identification ID;
when the card swiping times reach the preset registered card swiping times, sending access control card information corresponding to the access control card to a controller, wherein the access control card information comprises the card identification ID and the access permission information corresponding to the access control card;
receiving two-dimension code authorization information returned by the controller, wherein the two-dimension code authorization information is used for generating a two-dimension code corresponding to the card identification ID;
after the two-dimensional code authorization information returned by the controller is received, the method further includes:
generating a two-dimensional code corresponding to the card identification ID according to the two-dimensional code authorization information, and sending the generated two-dimensional code corresponding to the card identification ID to a mobile terminal or an application program; alternatively, the first and second electrodes may be,
sending the two-dimension code authorization information to a mobile terminal or an application program to trigger the mobile terminal or the application program to generate a two-dimension code corresponding to the card identification ID according to the two-dimension code authorization information; alternatively, the first and second electrodes may be,
identifying a two-dimensional code generated in advance by the mobile terminal or the application program;
authorizing the pre-generated two-dimensional code based on the received two-dimensional code authorization information so that the pre-generated two-dimensional code becomes a two-dimensional code corresponding to the card identification ID.
6. The method of claim 5, further comprising:
and receiving two-dimension code updating information returned by the controller, wherein the two-dimension code updating information is used for generating a new corresponding two-dimension code for the card identification ID which is stored locally.
7. The method of claim 6, wherein after receiving the two-dimensional code update information returned by the controller, the method further comprises:
generating a new two-dimensional code corresponding to the card identification ID according to the two-dimensional code updating information, and sending the generated new two-dimensional code corresponding to the card identification ID to a mobile terminal or an application program; alternatively, the first and second electrodes may be,
and sending the two-dimension code updating information to a mobile terminal or an application program to trigger the mobile terminal or the application program to update the two-dimension code corresponding to the card identification ID according to the two-dimension code updating information.
8. The authority management system based on the two-dimensional code is characterized by comprising a card reader and a controller, wherein the card reader is connected with the controller;
the card reader is arranged at an elevator entrance needing to set a use authority or a door entrance needing to set an entrance guard, and is used for identifying whether an entrance guard card or a two-dimensional code has a passing authority and identifying entrance guard card information carried by the entrance guard card;
the identifying the access control card information carried by the access control card comprises:
reading a card identification ID from the detected access card;
determining the card swiping times of the access control card in a preset time according to the card identification ID;
when the card swiping times reach the preset registered card swiping times, sending access control card information corresponding to the access control card to a controller, wherein the access control card information comprises the card identification ID and the access permission information corresponding to the access control card;
receiving two-dimension code authorization information returned by the controller, wherein the two-dimension code authorization information is used for generating a two-dimension code corresponding to the card identification ID;
after receiving the two-dimensional code authorization information returned by the controller, the system further includes:
generating a two-dimensional code corresponding to the card identification ID according to the two-dimensional code authorization information, and generating the card identification ID The corresponding two-dimensional code is sent to a mobile terminal or an application program; alternatively, the first and second electrodes may be,
sending the two-dimension code authorization information to a mobile terminal or an application program to trigger the mobile terminal or the application program Generating a two-dimensional code corresponding to the card identification ID according to the two-dimensional code authorization information; alternatively, the first and second electrodes may be,
identifying a two-dimensional code generated in advance by the mobile terminal or the application program;
authorizing the pre-generated two-dimensional code based on the received two-dimensional code authorization information so as to enable the pre-generation Becomes a two-dimensional code corresponding to the card identification ID;
the controller is used for storing and processing the access control card information sent by the card reader and returning a corresponding processing result to the card reader;
the controller is used for storing and processing the access control card information sent by the card reader, and returning a corresponding processing result to the card reader, and the processing result comprises the following steps:
after receiving the entrance guard card information sent by the card reader, the system further comprises:
detecting whether card Identification (ID) in the access control card information is stored locally;
if the card identification ID is not stored locally, executing a step of detecting whether the card identification ID in the access control card information is a legal identification;
if the card identification ID is locally stored, target passing authority information correspondingly stored by the card identification ID is obtained, and whether the target passing authority information is consistent with the passing authority information in the entrance guard card information or not is judged;
if the target passing authority information is inconsistent with the passing authority information, updating the target passing authority information according to the passing authority information, and generating two-dimensional code updating information corresponding to the card identification ID based on the updated target passing authority information;
and sending the two-dimension code updating information to the card reader.
CN201811419578.5A 2018-11-26 2018-11-26 Authority management method and system based on two-dimensional code Active CN109544753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811419578.5A CN109544753B (en) 2018-11-26 2018-11-26 Authority management method and system based on two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811419578.5A CN109544753B (en) 2018-11-26 2018-11-26 Authority management method and system based on two-dimensional code

Publications (2)

Publication Number Publication Date
CN109544753A CN109544753A (en) 2019-03-29
CN109544753B true CN109544753B (en) 2021-04-30

Family

ID=65850004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811419578.5A Active CN109544753B (en) 2018-11-26 2018-11-26 Authority management method and system based on two-dimensional code

Country Status (1)

Country Link
CN (1) CN109544753B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531679A (en) * 2022-02-23 2022-05-24 深圳市亲邻科技有限公司 Mobile terminal permission interaction system and method based on user identification card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392527B (en) * 2014-11-28 2018-01-02 深圳市科漫达智能管理科技有限公司 Gate inhibition current request sending method, passing control method, passing method and system
CN105261105B (en) * 2015-11-26 2017-11-14 嵊州明智科技服务有限公司 Safety door inhibition method
CN207424971U (en) * 2017-10-26 2018-05-29 厦门兴南洋智慧物联科技有限公司 A kind of intelligent access control system
CN108230508A (en) * 2018-01-09 2018-06-29 桑田智能技术(上海)有限公司 One kind is based on the control of Internet of Things intelligent object Yunmen access control system and management method

Also Published As

Publication number Publication date
CN109544753A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
EP3053148B1 (en) Access control using portable electronic devices
US9286741B2 (en) Apparatus and method for access control
US9262877B2 (en) Access authorization servers, methods and computer program products employing wireless terminal location
KR101699474B1 (en) System and method for controlling elevator system access
CN104157029B (en) Gate control system control method, control system and mobile terminal based on mobile terminal
EP1965595B1 (en) Wireless communication techniques for controlling access granted by a security device
CN105303670A (en) Access control management method, device and system
KR101810150B1 (en) THIRD PARTY'S SECURITY AUTHENTICATION SYSTEM BETWEEN MOBILE DEVICE AND IoT DEVICES AND METHOD THEREOF
CN106030596A (en) Terminal device, authentication information management method, and authentication information management system
CN109615757B (en) Visitor access control management method, system and storage medium
KR20190106739A (en) Elevator service request and offline authentication of the elevator service request
CN111192394A (en) Visitor permission management method, platform, system and computer storage medium
CN108806026B (en) Method and system for realizing visiting authentication by visitor in self-service manner
CN108257268A (en) A kind of intelligent entrance guard method for unlocking based on owner
JP2007034974A (en) Security system
CN109544753B (en) Authority management method and system based on two-dimensional code
WO2017101571A1 (en) User identity authentication method, apparatus and system thereof
CN110084947B (en) Access control information updating method and device
WO2021019508A1 (en) Property management systems
CN110021088B (en) Page control door opening system and method of distributed authorization architecture
CN109399409B (en) Elevator visitor authority management system and method
KR102268117B1 (en) Apparatus and system for controlling the opening and closing of the door
CN110641415A (en) Equipment security method, server and intelligent terminal equipment
KR102566445B1 (en) Admission control system based on phone authentication
JP2002123803A (en) Personal identification system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant