CN109544769A - A kind of access control system and control method based on Wiegand protocol - Google Patents

A kind of access control system and control method based on Wiegand protocol Download PDF

Info

Publication number
CN109544769A
CN109544769A CN201910045521.1A CN201910045521A CN109544769A CN 109544769 A CN109544769 A CN 109544769A CN 201910045521 A CN201910045521 A CN 201910045521A CN 109544769 A CN109544769 A CN 109544769A
Authority
CN
China
Prior art keywords
data
access
bar code
gate inhibition
authority information
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.)
Pending
Application number
CN201910045521.1A
Other languages
Chinese (zh)
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.)
Fuzhou Symbol Information Technology Co Ltd
Original Assignee
Fuzhou Symbol Information Technology 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 Fuzhou Symbol Information Technology Co Ltd filed Critical Fuzhou Symbol Information Technology Co Ltd
Priority to CN201910045521.1A priority Critical patent/CN109544769A/en
Publication of CN109544769A publication Critical patent/CN109544769A/en
Pending legal-status Critical Current

Links

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
    • 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/27Individual registration on entry or exit involving the use of a pass with central registration

Abstract

The present invention relates to a kind of access control systems based on Wiegand protocol, access controller including being set to monitoring center, bar code reading module and gate inhibition at gate inhibition act executive device, the bar code reading module includes camera, first main control unit, Wiegand protocol circuit, camera scans bar code, first main control unit is decoded bar code to obtain authority information, then binary number is encoded into after authority information being encrypted, data penetration transmission is carried out by the Wiegand protocol circuit, the access controller receives the data from bar code reading module, decoding decryption obtains authority information, and it is compared with the default access stored in access controller, if comparison passes through, then gate inhibition is notified to act executive device and execute corresponding operating according to authority information.Advantages of the present invention: the data bits of transmission is no longer influenced by the limitation of Wiegand protocol, realizes remote transmission data with arbitrary length, the different bar code of the various length of Adaptive Transmission.

Description

A kind of access control system and control method based on Wiegand protocol
Technical field
The present invention relates to a kind of access control system and control method based on Wiegand protocol, belong to access control system field.
Background technique
Wiegand agreement is standard unified in the world, is a kind of communication protocol suitable for access control system.It has Many formats, the 26-bit of standard are most common formats, and in addition there are the formats such as 34-bit, 36-bit.And standard 26-bit Format is an open format, open to all gate inhibition's IC card users, and almost all of access control system all receives mark Quasi- 26-Bit format.The 26-bit Wiegand output format of standard is as follows: E XXXX XXXX XXXX XXXX XXXX XXXX O, wherein the 1st and the 26th is check bit, 2-9 are producer's codes, and only 10-25 is that card number position can be used for transmitting information. In the Wiegand protocol of either 26-bit or extended formatting, in each data packet, the data volume for being used for transmission access permission is Fixed digit, and limited bits.
However, in existing access control system, not only wanting being capable of recognition access control system IC card, it is necessary to can identify bar code.In item Code identification industry, miscellaneous barcode types are numerous, and data length is different, transmit according to root agreement, then need according to every A kind of yard of information content formulates the Wiegand data format of corresponding digit, for example, for when carrying access permission information, as item The bar code of code must include temporal information, and authorization privilege, authorization ID or customer number etc., the data volume for needing to transmit is big, then Need the Wiegand data format of seniority top digit.Since the data volume of transmission gate inhibition's IC card is smaller, it is passed according to existing Wiegand Defeated mode, it is necessary to which, using the data transfer mode of two kinds of bit formats, this undoubtedly increases coding and access control at gate inhibition The decoding complex degree of device reduces decoding efficiency, and when the transmission information that access control system bar code changes or needs to carry changes (biography Transmission of data reduces or increases) when, and Wiegand data format must be modified again by the secondary development of peopleware.
Summary of the invention
In order to solve the above technical problem, the present invention provides a kind of access control system based on Wiegand protocol, the numbers of transmission The limitation of data format in Wiegand protocol is no longer influenced by according to digit, can either recognition access control system card can identify bar code again, additionally it is possible to It is complicated to reduce coding and decoding while realizing remote transmission data with arbitrary length for the different bar code of the various length of Adaptive Transmission Degree improves coding and decoding efficiency.
Technical solution of the present invention one is as follows:
A kind of access control system based on Wiegand protocol, the access controller including being set to monitoring center, the bar code at gate inhibition It distinguishes module and gate inhibition acts executive device, the bar code reading module includes camera, the first main control unit, Wiegand protocol Circuit, the camera scanning include the bar code of access permission information, and first main control unit is decoded to obtain to bar code For the authority information of access control movement executive device, it is encoded into binary number after then encrypting authority information, described two System number carries out data penetration transmission by the Wiegand protocol circuit, and the access controller receives the number from bar code reading module According to decoding decryption obtains authority information, and it is compared with the default access stored in access controller, if comparing logical It crosses, then notifies gate inhibition to act executive device and execute corresponding operating according to authority information.
More preferably, the bar code is generated in client, by the APP managing gate inhibition permission in client, generates the power The authority information is transmitted to access controller as the default access by limit information, and described in being generated according to authority information Bar code.
More preferably, the Wiegand protocol circuit include a metal-oxide-semiconductor Q1, a metal-oxide-semiconductor Q2 and two Transient Suppression Diode D1, D2, when first main control unit exports binary number 0, the I/O interface GP0 output pulse signal control of the first main control unit Metal-oxide-semiconductor Q1 conducting, metal-oxide-semiconductor Q1 externally transmit undersuing by data-interface TP1, the first main control unit output two into When making several 1, the I/O interface GP1 output pulse signal control metal-oxide-semiconductor Q2 conducting of the first main control unit, metal-oxide-semiconductor Q2 is connect by data Mouth TP2 externally transmits undersuing, realizes the transmission of binary number, and the data-interface TP1 connection transient state inhibits two Pole pipe D1, the data-interface TP2 connection Transient Suppression Diode D2.
More preferably, the access controller judge the data from bar code reading module whether the mode packet of end of transmission It includes: 1), presetting timeout threshold: after data are transmitted, not receiving new data in timeout threshold, then determine the number According to the end of transmission;2), preset termination character: recognizing apparatus sends preset termination character when completing data penetration transmission, works as gate inhibition When controller receives the termination character, the secondary the data transfer ends are determined.
More preferably, the access control system further includes access card identification module comprising coil and card reading unit, access card lean on When near line circle, the signal sensed is transmitted to the card reading unit by coil, and the card reading unit decodes to obtain card number information, so After send it to first main control unit, first main control unit is encoded into binary number after encrypting card number information, Data penetration transmission is carried out by the Wiegand protocol circuit, the access controller receives the data from bar code reading module, solution Code decryption obtains card number information, and it is compared with the corresponding default access of the card number stored in access controller, if Comparison passes through, then notifies gate inhibition to act executive device and execute corresponding operating according to authority information.
More preferably, the bar code is two dimensional code, one-dimension code, customized pattern or threedimensional model.
More preferably, the authority information include authorization ID number, the period of entrance, gate inhibition number, authorization object name and/ Or authorization details.
The present invention also provides a kind of access control methods based on Wiegand protocol.
Technical solution of the present invention two is as follows:
A kind of access control method based on Wiegand protocol, including identification decoding step, permission determination step and execution step:
The identification decoding step: the bar code reading module at gate inhibition passes through item of the camera scanning comprising access permission information Code, the bar code reading module obtain the authority information for access control movement executive device by being decoded to bar code, Then binary number is encoded into after authority information being encrypted, the binary number carries out data penetration transmission by Wiegand protocol circuit;
The permission determination step: set on the access controller of monitoring center, the data at gate inhibition is received, are decoded It is compared, passes through if comparing, into the execution with the default access stored in access controller to authority information, and by it Step;
The execution step: control signal of gate inhibition's movement executive device reception from access controller at gate inhibition, and according to The control signal executes corresponding operating.
More preferably, the bar code is generated in client, by the APP managing gate inhibition permission in client, generates the power The authority information is transmitted to access controller as the default access by limit information, and described in being generated according to authority information Bar code.
More preferably, the Wiegand protocol circuit include a metal-oxide-semiconductor Q1, a metal-oxide-semiconductor Q2 and two Transient Suppression Diode D1, D2, the authority information scrambled is at binary number, when transmitting binary number 0 to access controller, the conducting of metal-oxide-semiconductor Q1, Metal-oxide-semiconductor Q1 externally transmits undersuing by data-interface TP1, when transmitting binary number 1 to access controller, metal-oxide-semiconductor Q2 Conducting, metal-oxide-semiconductor Q2 externally transmits undersuing by data-interface TP2, completes the transmission of binary number, the data connect Mouthful TP1 connection Transient Suppression Diode D1, the data-interface TP2 connection Transient Suppression Diode D2 are prevented quiet Electricity and external voltage pass through data-interface TP1 and TP2 breakdown metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2.
More preferably, the access controller judges whether the mode of end of transmission includes: 1), in advance to the data at gate inhibition If timeout threshold: after data are transmitted, not receiving new data in timeout threshold, then determine the secondary data transmission knot Beam;2), preset termination character: gate inhibition, which is in, to complete to send preset termination character when data penetration transmission, when access controller receives When to the termination character, the secondary the data transfer ends are determined.
More preferably, the identification decoding step further include: access card, solution are distinguished by access card identification module at gate inhibition Code obtains the corresponding card number information of access card, is encoded into binary number after then encrypting card number information, is assisted by the Wiegand It discusses circuit and carries out data penetration transmission;
The permission determination step further include: set on the access controller of monitoring center, receive the data at gate inhibition, decoding Decryption obtains card number information, and it is compared with the corresponding default access of the card number stored in access controller, if than To passing through, into the execution step;
The execution step: control signal of gate inhibition's movement executive device reception from access controller at gate inhibition, and according to The control signal executes corresponding operating.
More preferably, the bar code is two dimensional code, one-dimension code, customized pattern or threedimensional model.
More preferably, the authority information include authorization ID number, the period of entrance, gate inhibition number, authorization object name and/ Or authorization details.
The invention has the following beneficial effects:
1, a kind of access control system and control method based on Wiegand protocol of the present invention, the permission that bar code reading module is identified are believed After breath is encrypted and is encoded into binary number, data penetration transmission is carried out by Wiegand protocol circuit, transmits random length at a distance Data, the adaptive different bar code of various length, meanwhile, distinctive data penetration transmission mode, which improves, cracks difficulty, data It transmits safer;
2, a kind of access control system and control method based on Wiegand protocol of the present invention, bar code can be generated in client, be used It is more convenient;
3, a kind of access control system and control method based on Wiegand protocol of the present invention, Wiegand protocol circuit structure is simple and pacifies Quan Xinggao reduces equipment cost;
4, a kind of access control system and control method based on Wiegand protocol of the present invention by setting timeout threshold or terminates word Symbol, that is, can determine whether data transmission finishes, easy realization easy to operate;
5, a kind of access control system and control method based on Wiegand protocol of the present invention, can be compatible with simultaneously access card and bar code this two Kind identification method does not need the Wiegand protocol data format using two kinds of bit numbers, no matter and access card after data penetration transmission Corresponding card number information and the corresponding authority information of bar code, whether the data length of the two is identical or data length is too long, door When taboo controller receives data, access control can be realized using a kind of identical decoding process, greatly reduce encoding and decoding Complexity, improve coding and decoding efficiency;
6, a kind of access control system and control method based on Wiegand protocol of the present invention, can be applied to various bar codes, application range Extensively;
7, a kind of access control system and control method based on Wiegand protocol of the present invention, wherein it is wide can to cover content for authority information, and The project that authorization message is included can be changed at any time, compared with existing access control system, and without changing institute according to actual needs The Wiegand protocol of use, it is not necessary to carry out secondary software exploitation.
Detailed description of the invention
Fig. 1 is a kind of frame diagram of the access control system based on Wiegand protocol of the present invention;
Fig. 2 is a kind of schematic diagram of the bar code identification module of the access control system based on Wiegand protocol of the present invention;
Fig. 3 is the schematic diagram of bar code identification module and gate inhibition's identification module in the present invention;
Fig. 4 is gate inhibition's identification module schematic diagram in the present invention comprising indicator light;
Fig. 5 is Wiegand protocol circuit diagram in the present invention;
Fig. 6 is that the present invention is based on the flow charts of the access control method of Wiegand protocol;
Fig. 7 is that the present invention is based on another flow charts of the access control method of Wiegand protocol.
Specific embodiment
It is next in the following with reference to the drawings and specific embodiments that the present invention will be described in detail.
Embodiment one
Please refer to Fig. 1 and Fig. 2, a kind of access control system based on Wiegand protocol, the access controller including being set to monitoring center, if Bar code reading module and gate inhibition at gate inhibition act executive device, and the bar code reading module includes camera, the first master control Unit processed, Wiegand protocol circuit, the camera scanning include the bar code of access permission information, and first main control unit is to item Code is decoded to obtain the authority information for access control movement executive device, is encoded into two after then encrypting authority information System number, the binary number carry out data penetration transmission by the Wiegand protocol circuit, and the data penetration transmission refers to the number of transmission It is packaged according to the data format not according still further to Wiegand protocol, but authority information is directly sent out;The access control Device receives the data from bar code reading module, decoding decryption obtains authority information, and by its with stored in access controller Default access is compared, and passes through if comparing, and notifies gate inhibition to act executive device and execute corresponding operating according to authority information.Institute It states bar code to generate in client, by the APP managing gate inhibition permission in client, the authority information is generated, by the permission Information is transmitted to access controller as the default access, and generates the bar code according to authority information.The client packet Include mobile terminal and computer.
IOTC09A0 main control chip can be selected in first main control unit.
The bar code identification module can also connect LED light and buzzer, whether remind user by LED light and buzzer It identifies successfully.
Referring to Fig. 5, the Wiegand protocol circuit includes a metal-oxide-semiconductor Q1, a metal-oxide-semiconductor Q2 and two Transient Suppression Diodes D1, D2, when first main control unit exports binary number 0, the I/O interface GP0 output pulse signal control of the first main control unit Metal-oxide-semiconductor Q1 conducting processed, metal-oxide-semiconductor Q1 externally transmit undersuing, the first main control unit output two by data-interface TP1 When system number 1, the I/O interface GP1 output pulse signal control metal-oxide-semiconductor Q2 conducting of the first main control unit, metal-oxide-semiconductor Q2 passes through data Interface TP2 externally transmits undersuing, realizes the transmission of binary number, and the data-interface TP1 connection transient state inhibits Diode D1, the data-interface TP2 connection Transient Suppression Diode D2.The present embodiment by Transient Suppression Diode with Metal-oxide-semiconductor combines, and prevents electrostatic and external voltage from puncturing metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2, circuit structure by data-interface TP1 and TP2 Simple and external interference resistance is strong.As shown in figure 5, the metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2 can select N-MOSFET, the institute State metal-oxide-semiconductor Q1 and connect power vd-L with the pole G of metal-oxide-semiconductor Q2, the pole D connects power vd-H, and VD-L(voltage value)≤VD-H(voltage Value).
The access controller judges whether the mode of end of transmission includes: 1), in advance to the data from bar code reading module If timeout threshold: after data are transmitted, not receiving new data in timeout threshold, then determine the secondary data transmission knot Beam;2), preset termination character: recognizing apparatus sends preset termination character when completing data penetration transmission, when access controller connects When receiving the termination character, the secondary the data transfer ends are determined.
Existing common bar code has two dimensional code, one-dimension code, and present invention can also apply to the bar codes of other forms, such as its Its customized pattern, threedimensional model etc..The bar code can be shared or print to authorized user's (i.e. authorization object).
The specific application example of this implementation is as follows:
Authority information is arranged by APP in client in step 1, user: the name of visitor, the visiting time, gate inhibition's number with And access permission be open, such as: wangxs, 8:00-12:00,1,1, wherein first 1 for gate inhibition number, second 1 expression door Prohibiting permission is to open in generation;
Those authority informations are sent to access controller preservation, while automatically generating bar code in APP application end by step 2, by this Bar code is shared with visitor;
Step 3, visitor scan the bar code in bar code reading module at gate inhibition, the decoding of bar code reading module generates permission Information " wangxs, 8:00-12:00,1,1 ";
Step 4 encrypts authority information, for example, using RSA1024 public key encryptions, after encryption are as follows: “IG3sNMdGiX5oKXGRJaezn0gxa+RGYHgCaEu9p4Jur6T8slmS3sRdyQYCTlUXWIcRjbCvZGSiDMF vpb1XSxe19vDLcwvBmsB+BAHru1Bk3B1xEPgiqQSPOsMp38/UPWahoDsNCHmO+ZXyrya9Ou7tmr/ g3VfQX33jlwmuKmgBwkc=”
Step 5, the authority information encrypted are according to ASCII character translation table at binary number (high position is in preceding low level rear): “0100 1001 0100 0111 0011 0011 0111 0011 …… 0110 1011 0110 0011 0011 1101”
Wiegand protocol circuit in step 6, bar code reading module carries out data penetration transmission (low level is in a preceding high position rear): " 1001 0010 1110 0010 1100 1100 1100 1110 …… 1101 0110 1100 0110 1011 1100";
Step 7, access controller receive data (low level is in a preceding high position rear): " 1,001 0,010 1,110 0,010 1,100 1100 1100 1110 …… 1101 0110 1100 0110 1011 1100";
Step 8, received data are arranged (high position is in preceding low level rear): " 0,100 1,001 0,100 0,111 0,011 0011 0111 0011 …… 0110 1011 0110 0011 0011 1101";
Step 9, the data received change into character string according to ASCII character conversion table: " IG3sNMdGiX5oKXGRJaezn0gxa+ RGYHgCaEu9p4Jur6T8slmS3sRdyQYCTlUXWIcRjbCvZGSiDMFvpb1XSxe19vDLcwvBmsB+ BAHru1Bk3B1xEPgiqQSPOsMp38/UPWahoDsNCHmO+ZXyrya9Ou7tmr/g3VfQX33jlwmuKmgBwkc =";
Above-mentioned character string RSA1024 private keys of progress are decrypted to obtain data by step 10: " wangxs, 8:00-12:00,1,1 ", It is compared with the default access stored in access controller, comparison passes through, and is numbered according to gate inhibition and controls corresponding gate inhibition Movement executive device is acted accordingly.
In the present embodiment, by the first main control unit by authority information scrambled at binary number after, pass through Wiegand (when output is 0, GP0 interface drags down a period of time to protocol circuit, exports when being 1, then GP1 interface drags down a period of time.Do not having When having data transmission, holding+5V high level) immediate data transparent transmission do not use any format limitation transmission number during transparent transmission According to digit, the data length for the authority information for no matter including in bar code have how long, can normal transmission, therefore, the present invention Access control system, the bar code reading module at gate inhibition is integrated with the functions such as barcode scanning, identification, data conversion, data penetration transmission, converts For binary number afterwards by Wiegand protocol circuit transmission, data capacity is unrestricted, can change at any time according to actual needs The authorization project that authority information is included, the data of elasticity transmission different length, the different bar code of adaptive various length.Together When, access control system of the present invention is based on Wiegand protocol and uses distinctive data transfer mode, improves and cracks difficulty, and data are transmitted more Safety.
Embodiment two
Fig. 3 and Fig. 4 are please referred to, the present embodiment is that the access control system of this implementation further includes door compared with the difference technology of embodiment one Prohibit card identification module comprising coil and card reading unit, when access card is close to coil, the signal sensed is transmitted to institute by coil Card reading unit is stated, the card reading unit decodes to obtain card number information, is then sent to first main control unit, described One main control unit is encoded into binary number after encrypting card number information, the binary number is carried out by the Wiegand protocol circuit Data penetration transmission, the access controller receive the data from bar code reading module, and decoding decryption obtains card number information, and by its It is compared with the corresponding default access of the card number stored in access controller, passes through if comparing, it is logical according to authority information Know that gate inhibition acts executive device and executes corresponding operating.
In the present embodiment, the second main control unit can also be added in access card identification module, what card reading unit decoded Card number information is forwarded to the first main control unit by the second main control unit, and second main control unit connects warning light, cue card Number whether effectively.STM32 main control chip can be selected in second main control unit, and FM17550 card reading can be selected in the card reading unit Chip.
The access control system of this implementation can be compatible with access card and bar code both identification methods simultaneously, pass through Wiegand When protocol circuit transmits data, due to using data penetration transmission mode, no matter the corresponding card number information of access card and bar code are corresponding Whether the data length of authority information, the two is identical or data length is too long, also no longer needs to be considered as two kinds of difference bit Several Wiegand data format, when access controller receives data, without judging that gate inhibition's control can be realized in corresponding decoding process System.
Embodiment three
It please refers to Fig. 1 and Fig. 2, a kind of access control method based on Wiegand protocol, including identification decoding step, permission and determines step Rapid and execution step:
The identification decoding step: at gate inhibition, bar code reading module passes through item of the camera scanning comprising access permission information Code, the bar code reading module are decoded bar code to obtain the authority information for access control movement executive device, then Binary number is encoded into after authority information is encrypted, the binary number carries out data penetration transmission by the Wiegand protocol circuit, The data penetration transmission refers to that the data of transmission are not packaged according still further to the data format of Wiegand protocol, but authority information is straight It connects and sends out;The permission determination step: set on the access controller of monitoring center, the data at gate inhibition, solution are received Code decryption obtains authority information, and it is compared with the default access stored in access controller, passes through if comparing, and enters The execution step;The execution step: the gate inhibition at gate inhibition acts executive device and receives the control letter from access controller Number, and corresponding operating is executed according to the control signal.The bar code is generated in client, manages door by the APP in client Prohibit permission, generates the authority information, the authority information is transmitted to access controller as the default access, and according to Authority information generates the bar code.The client includes mobile terminal and computer.
The bar code reading module further includes the first main control unit, and first main control unit is decoded bar code To the authority information for access control movement executive device, it is encoded into binary number after then encrypting authority information, is passed through The Wiegand protocol circuit carries out data penetration transmission.
More preferably, the Wiegand protocol circuit include a metal-oxide-semiconductor Q1, a metal-oxide-semiconductor Q2 and two Transient Suppression Diode D1, D2, the authority information scrambled is at binary number, when transmitting binary number 0 to access controller, the conducting of metal-oxide-semiconductor Q1, Metal-oxide-semiconductor Q1 externally transmits undersuing by data-interface TP1, when transmitting binary number 1 to access controller, metal-oxide-semiconductor Q2 Conducting, metal-oxide-semiconductor Q2 externally transmits undersuing by data-interface TP2, completes the transmission of binary number, the data connect Mouthful TP1 connection Transient Suppression Diode D1, the data-interface TP2 connection Transient Suppression Diode D2 are prevented quiet Electricity and external voltage pass through data-interface TP1 and TP2 breakdown metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2.The present embodiment is by Transient Suppression Diode In conjunction with metal-oxide-semiconductor, prevent electrostatic and external voltage from puncturing metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2, circuit knot by data-interface TP1 and TP2 Structure is simple and external interference resistance is strong.Specifically, when transmitting binary number to access controller, first main control unit is defeated Out when binary number 0, the I/O interface GP0 output pulse signal control metal-oxide-semiconductor Q1 conducting of the first main control unit, metal-oxide-semiconductor Q1 passes through Data-interface TP1 externally transmits undersuing, when first main control unit exports binary number 1, the first main control unit I/O interface GP1 output pulse signal controls metal-oxide-semiconductor Q2 conducting, and metal-oxide-semiconductor Q2 externally transmits negative pulse letter by data-interface TP2 Number.IOTC09A0 main control chip can be selected in first main control unit.The metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2 can select N- MOSFET。
The access controller judges whether 1) mode of end of transmission includes:, presets time-out the data at gate inhibition Threshold value: after data are transmitted, not receiving new data in timeout threshold, then determines the secondary the data transfer ends;2), Default termination character: gate inhibition, which is in, to complete to send preset termination character when data penetration transmission, when access controller receives the knot When beam character, the secondary the data transfer ends are determined.
Existing common bar code has two dimensional code, one-dimension code, and present invention can also apply to the bar codes of other forms, such as its Its customized pattern, threedimensional model etc..The bar code can be shared or print to authorized user's (i.e. authorization object).
The specific application example of this implementation is as follows:
Authority information is arranged by APP in client in step 1, user: the name of visitor, the visiting time, gate inhibition's number with And access permission be open, such as: wangxs, 8:00-12:00,1,1, wherein first 1 for gate inhibition number, second 1 expression door Prohibiting permission is to open in generation;
Those authority informations are sent to access controller preservation, while automatically generating bar code in APP application end by step 2, by this Bar code is shared with visitor;
Step 3, visitor scan the bar code in bar code reading module at gate inhibition, the decoding of bar code reading module generates permission Information " wangxs, 8:00-12:00,1,1 ";
Step 4 encrypts authority information, for example, using RSA1024 public key encryptions, after encryption are as follows: “IG3sNMdGiX5oKXGRJaezn0gxa+RGYHgCaEu9p4Jur6T8slmS3sRdyQYCTlUXWIcRjbCvZGSiDMF vpb1XSxe19vDLcwvBmsB+BAHru1Bk3B1xEPgiqQSPOsMp38/UPWahoDsNCHmO+ZXyrya9Ou7tmr/ g3VfQX33jlwmuKmgBwkc=”
Step 5, the authority information encrypted are according to ASCII character translation table at binary number (high position is in preceding low level rear): “0100 1001 0100 0111 0011 0011 0111 0011 …… 0110 1011 0110 0011 0011 1101”
Wiegand protocol circuit in step 6, bar code reading module carries out data penetration transmission (low level is in a preceding high position rear): " 1001 0010 1110 0010 1100 1100 1100 1110 …… 1101 0110 1100 0110 1011 1100";
Step 7, access controller receive data (low level is in a preceding high position rear): " 1,001 0,010 1,110 0,010 1,100 1100 1100 1110 …… 1101 0110 1100 0110 1011 1100";
Step 8, received data are arranged (high position is in preceding low level rear): " 0,100 1,001 0,100 0,111 0,011 0011 0111 0011 …… 0110 1011 0110 0011 0011 1101";
Step 9, the data received change into character string according to ASCII character conversion table: " IG3sNMdGiX5oKXGRJaezn0gxa+ RGYHgCaEu9p4Jur6T8slmS3sRdyQYCTlUXWIcRjbCvZGSiDMFvpb1XSxe19vDLcwvBmsB+ BAHru1Bk3B1xEPgiqQSPOsMp38/UPWahoDsNCHmO+ZXyrya9Ou7tmr/g3VfQX33jlwmuKmgBwkc =";
Above-mentioned character string RSA1024 private keys of progress are decrypted to obtain data by step 10: " wangxs, 8:00-12:00,1,1 ", It is compared with the default access stored in access controller, comparison passes through, and is numbered according to gate inhibition and controls corresponding gate inhibition Movement executive device is acted accordingly.
In the present embodiment, bar code identification module by authority information scrambled at binary number after, pass through Wiegand protocol (when output is 0, GP0 interface drags down a period of time to circuit, exports when being 1, then GP1 interface drags down a period of time.Do not counting When according to transmission, holding+5V high level) immediate data transparent transmission do not use any format limitation transmission data during transparent transmission Digit, the data length for the authority information for no matter including in bar code have how long, can normal transmission, therefore, door of the invention Access control system, the bar code reading module at gate inhibition is integrated with the functions such as barcode scanning, identification, data conversion, data penetration transmission, after conversion For binary number by Wiegand protocol circuit transmission, data capacity is unrestricted, can change permission at any time according to actual needs The authorization project that information is included, the data of elasticity transmission different length, the different bar code of adaptive various length.Meanwhile this Invention access control system is based on Wiegand protocol and uses distinctive data transfer mode, improves and cracks difficulty, and data transmission is safer.
Example IV
The present embodiment is that this implementation access control method supports recognition access card, in gate inhibition compared with the difference technology of embodiment three Place both can obtain access permission by access card, can also obtain access permission by bar code, and in data transmission procedure, It is specific as follows without using the Wiegand data format of two kinds of bit numbers according to transmitted data amount:
The identification decoding step: at gate inhibition, bar code reading module passes through item of the camera scanning comprising access permission information Code, the bar code reading module are decoded bar code to obtain the authority information for access control movement executive device, then Binary number is encoded into after authority information is encrypted, the binary number is carried out the binary number by Wiegand protocol circuit Data penetration transmission;Or access card is distinguished by access card identification module at gate inhibition, decoding obtains the corresponding card number information of access card, Then it is encoded into binary number after card number information being encrypted, data penetration transmission, the card number are carried out by the Wiegand protocol circuit It the encryption of information and is encoded into binary number and can be completed by the bar code identification module;
The permission determination step further include: set on the access controller of monitoring center, receive the data at gate inhibition, decoding Decryption obtains authority information or card number information, and it is compared with the default access stored in access controller, if comparing Pass through, into the execution step;
The execution step: control signal of gate inhibition's movement executive device reception from access controller at gate inhibition, and according to The control signal executes corresponding operating.
The access control method of this implementation can be compatible with access card and bar code both identification methods simultaneously, pass through Wiegand When protocol circuit transmits data, due to using data penetration transmission mode, no matter the corresponding card number information of access card and bar code are corresponding Whether the data length of authority information, the two is identical or data length is too long, it is no longer necessary to using the Wei of two kinds of difference bit numbers When access controller receives data, without corresponding decoding process is judged, gate inhibition's control is can be realized in root protocol data format System.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (14)

1. a kind of access control system based on Wiegand protocol, the access controller including being set to monitoring center, the item at gate inhibition Code recognition module and gate inhibition act executive device, it is characterised in that: the bar code reading module includes camera, the first main control Unit, Wiegand protocol circuit, the camera scanning include the bar code of access permission information, and first main control unit is to bar code Be decoded to obtain the authority information for access control movement executive device, be encoded into after then encrypting authority information two into Number processed, the binary number carry out data penetration transmission by the Wiegand protocol circuit, and the access controller, which receives, comes from bar code The data of module are distinguished, decoding decryption obtains authority information, and it is compared with the default access stored in access controller It is right, pass through if comparing, notifies gate inhibition to act executive device and execute corresponding operating according to authority information.
2. a kind of access control system based on Wiegand protocol according to claim 1, it is characterised in that: the bar code is in visitor Family end generates, and by the APP managing gate inhibition permission in client, generates the authority information, the authority information is transmitted to Access controller generates the bar code as the default access, and according to authority information.
3. a kind of access control system based on Wiegand protocol according to claim 1, it is characterised in that: the Wiegand protocol electricity Road includes that a metal-oxide-semiconductor Q1, a metal-oxide-semiconductor Q2 and two Transient Suppression Diode D1, D2, first main control unit export binary system When several 0, the I/O interface GP0 output pulse signal control metal-oxide-semiconductor Q1 conducting of the first main control unit, metal-oxide-semiconductor Q1 passes through data-interface TP1 externally transmits undersuing, when first main control unit exports binary number 1, the I/O interface of the first main control unit GP1 output pulse signal controls metal-oxide-semiconductor Q2 conducting, and metal-oxide-semiconductor Q2 externally transmits undersuing by data-interface TP2, realizes The transmission of binary number, the data-interface TP1 connection Transient Suppression Diode D1, data-interface TP2 connection institute State Transient Suppression Diode D2.
4. a kind of access control system based on Wiegand protocol according to claim 1, it is characterised in that: the access controller Judge whether 1) mode of end of transmission includes:, presets timeout threshold the data from bar code reading module: when data transfer Cheng Hou, does not receive new data in timeout threshold, then determines the secondary the data transfer ends;2) termination character, is preset: recognition Equipment sends preset termination character when completing data penetration transmission, and when access controller receives the termination character, determining should Secondary the data transfer ends.
5. a kind of access control system based on Wiegand protocol according to claim 1, it is characterised in that: further include that access card is known Other module comprising coil and card reading unit, when access card is close to coil, the signal sensed is transmitted to the card reading by coil Unit, the card reading unit decode to obtain card number information, are then sent to first main control unit, first master control Unit is encoded into binary number after encrypting card number information, carries out data penetration transmission, the gate inhibition by the Wiegand protocol circuit Controller receives the data from bar code reading module, and decoding decryption obtains card number information, and by its with deposited in access controller The corresponding default access of the card number of storage is compared, and passes through if comparing, and notifies gate inhibition that movement executes dress according to authority information Set execution corresponding operating.
6. a kind of access control system based on Wiegand protocol according to claim 1, it is characterised in that: the bar code is two dimension Code, one-dimension code, customized pattern or threedimensional model.
7. a kind of access control system based on Wiegand protocol according to claim 1, it is characterised in that: the authority information packet Include authorization ID number, the period of entrance, gate inhibition's number, authorization object name and/or authorization details.
8. a kind of access control method based on Wiegand protocol, which is characterized in that including identifying decoding step, permission determination step And execute step:
The identification decoding step: the bar code reading module at gate inhibition passes through item of the camera scanning comprising access permission information Code, the bar code reading module obtain the authority information for access control movement executive device by being decoded to bar code, Then binary number is encoded into after authority information being encrypted, the binary number carries out data penetration transmission by Wiegand protocol circuit;
The permission determination step: set on the access controller of monitoring center, the data at gate inhibition is received, are decoded It is compared, passes through if comparing, into the execution with the default access stored in access controller to authority information, and by it Step;The execution step: control signal of gate inhibition's movement executive device reception from access controller at gate inhibition, and according to The control signal executes corresponding operating.
9. a kind of access control method based on Wiegand protocol according to claim 8, it is characterised in that: the bar code exists Client generates, and by the APP managing gate inhibition permission in client, generates the authority information, the authority information is transmitted To access controller as the default access, and the bar code is generated according to authority information.
10. a kind of access control method based on Wiegand protocol according to claim 8, it is characterised in that: the Wiegand Protocol circuit includes a metal-oxide-semiconductor Q1, a metal-oxide-semiconductor Q2 and two Transient Suppression Diode D1, D2, the authority information scrambled At binary number, when transmitting binary number 0 to access controller, the conducting of metal-oxide-semiconductor Q1, metal-oxide-semiconductor Q1 passes through TP1 pairs of data-interface Outer transmission undersuing, when transmitting binary number 1 to access controller, the conducting of metal-oxide-semiconductor Q2, metal-oxide-semiconductor Q2 is connect by data Mouth TP2 externally transmits undersuing, completes the transmission of binary number, and the data-interface TP1 connection transient state inhibits two Pole pipe D1, the data-interface TP2 connection Transient Suppression Diode D2 prevent electrostatic and external voltage from passing through data-interface TP1 and TP2 punctures metal-oxide-semiconductor Q1 and metal-oxide-semiconductor Q2.
11. a kind of access control method based on Wiegand protocol according to claim 8, it is characterised in that: the gate inhibition Controller judges whether 1) mode of end of transmission includes:, presets timeout threshold the data at gate inhibition: when data transfer Cheng Hou, does not receive new data in timeout threshold, then determines the secondary the data transfer ends;2) termination character: gate inhibition, is preset It is in and completes to send preset termination character when data penetration transmission, when access controller receives the termination character, determine this time The data transfer ends.
12. a kind of access control method based on Wiegand protocol according to claim 8, it is characterised in that: the identification Decoding step further include: access card is distinguished by access card identification module at gate inhibition, decoding obtains the corresponding card number of access card Information is encoded into binary number after then encrypting card number information, carries out data penetration transmission by the Wiegand protocol circuit;
The permission determination step further include: set on the access controller of monitoring center, receive the data at gate inhibition, decoding Decryption obtains card number information, and it is compared with the corresponding default access of the card number stored in access controller, if than To passing through, into the execution step;
The execution step: control signal of gate inhibition's movement executive device reception from access controller at gate inhibition, and according to The control signal executes corresponding operating.
13. a kind of access control method based on Wiegand protocol according to claim 8, it is characterised in that: the bar code It is two dimensional code, one-dimension code, customized pattern or threedimensional model.
14. a kind of access control method based on Wiegand protocol according to claim 8, it is characterised in that: the permission Information includes authorization ID number, the period of entrance, gate inhibition's number, authorization object name and/or authorization details.
CN201910045521.1A 2019-01-17 2019-01-17 A kind of access control system and control method based on Wiegand protocol Pending CN109544769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910045521.1A CN109544769A (en) 2019-01-17 2019-01-17 A kind of access control system and control method based on Wiegand protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910045521.1A CN109544769A (en) 2019-01-17 2019-01-17 A kind of access control system and control method based on Wiegand protocol

Publications (1)

Publication Number Publication Date
CN109544769A true CN109544769A (en) 2019-03-29

Family

ID=65837958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910045521.1A Pending CN109544769A (en) 2019-01-17 2019-01-17 A kind of access control system and control method based on Wiegand protocol

Country Status (1)

Country Link
CN (1) CN109544769A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110222543A (en) * 2019-06-10 2019-09-10 北京意锐新创科技有限公司 Support the access control equipment reading method and device of Wiegand protocol
CN110287136A (en) * 2019-05-29 2019-09-27 广东天波信息技术股份有限公司 Equipment, method and the storage medium of a variety of Wiegand signal mechanism can be compatible with
CN112349007A (en) * 2020-09-28 2021-02-09 湖北民族大学 Offline gate authentication device and time synchronization method
CN112598830A (en) * 2020-12-10 2021-04-02 厦门四信通信科技有限公司 Intelligent terminal of gate
CN112820007A (en) * 2020-12-30 2021-05-18 广东赛诺科技股份有限公司 Method and system for distinguishing two-dimensional code and IC card signal based on Wiegand protocol
CN115169289A (en) * 2022-09-05 2022-10-11 南京理工科技园股份有限公司 Information compression coding and decoding method and device for security entrance guard
CN115297181A (en) * 2022-07-07 2022-11-04 杭州海康威视数字技术股份有限公司 Wiegand signal processing device and access control authority verification system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013009301A1 (en) * 2011-07-12 2013-01-17 Assa Abloy Ab Event driven second factor credential authentication
CN104732614A (en) * 2013-12-18 2015-06-24 同方锐安科技有限公司 Access device for encrypting wiegand protocol signal and encryption and decryption method thereof
US20180018839A1 (en) * 2016-05-23 2018-01-18 Yevgeny Levitov Card-Compatible Biometric Access Control System
US20180173907A1 (en) * 2016-12-16 2018-06-21 Assa Abloy Ab Methods to combine and auto-configure wiegand and rs485
CN108494650A (en) * 2018-02-07 2018-09-04 丽水博远科技有限公司 A kind of binary signaling protocol data link layer transmission frame format
CN109215177A (en) * 2017-07-03 2019-01-15 深圳市通达智科技有限公司 access control system and access control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013009301A1 (en) * 2011-07-12 2013-01-17 Assa Abloy Ab Event driven second factor credential authentication
CN104732614A (en) * 2013-12-18 2015-06-24 同方锐安科技有限公司 Access device for encrypting wiegand protocol signal and encryption and decryption method thereof
US20180018839A1 (en) * 2016-05-23 2018-01-18 Yevgeny Levitov Card-Compatible Biometric Access Control System
US20180173907A1 (en) * 2016-12-16 2018-06-21 Assa Abloy Ab Methods to combine and auto-configure wiegand and rs485
CN109215177A (en) * 2017-07-03 2019-01-15 深圳市通达智科技有限公司 access control system and access control method
CN108494650A (en) * 2018-02-07 2018-09-04 丽水博远科技有限公司 A kind of binary signaling protocol data link layer transmission frame format

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜庆伟: "《物联网通信》", 30 April 2015 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287136A (en) * 2019-05-29 2019-09-27 广东天波信息技术股份有限公司 Equipment, method and the storage medium of a variety of Wiegand signal mechanism can be compatible with
CN110222543A (en) * 2019-06-10 2019-09-10 北京意锐新创科技有限公司 Support the access control equipment reading method and device of Wiegand protocol
CN112349007A (en) * 2020-09-28 2021-02-09 湖北民族大学 Offline gate authentication device and time synchronization method
CN112598830A (en) * 2020-12-10 2021-04-02 厦门四信通信科技有限公司 Intelligent terminal of gate
CN112820007A (en) * 2020-12-30 2021-05-18 广东赛诺科技股份有限公司 Method and system for distinguishing two-dimensional code and IC card signal based on Wiegand protocol
CN115297181A (en) * 2022-07-07 2022-11-04 杭州海康威视数字技术股份有限公司 Wiegand signal processing device and access control authority verification system
CN115297181B (en) * 2022-07-07 2023-09-01 杭州海康威视数字技术股份有限公司 Wiegand signal processing equipment and access control authority verification system
CN115169289A (en) * 2022-09-05 2022-10-11 南京理工科技园股份有限公司 Information compression coding and decoding method and device for security entrance guard

Similar Documents

Publication Publication Date Title
CN109544769A (en) A kind of access control system and control method based on Wiegand protocol
AU2006203515B2 (en) Protection of Non-Promiscuous Data in an RFID Transponder
US4969188A (en) Process and apparatus for the protection of secret elements in a network of encrypting devices with open key management
US8322608B2 (en) Using promiscuous and non-promiscuous data to verify card and reader identity
US8332915B2 (en) Information processing system, information processing apparatus, mobile terminal and access control method
EP1760985A2 (en) Device authentication using a unidirectional protocol
CN101194274B (en) Method and device for increased rfid transmission security
CN1682242A (en) A method of secure transmission
CN102567614B (en) A kind of ultrasonic therapeutic apparatus consumable smart media management system and method
CN104268610B (en) One kind classification QR code generating methods and read method
CN107833317A (en) Control of bluetooth access control system and method
CN1221900C (en) User's identity authentication method of dynamic electron cipher equipment and its resources sharing system
CN110011993B (en) Two-dimensional code big data safety transmission device based on developments multistage encryption and decryption
CN103281299B (en) A kind of ciphering and deciphering device and information processing method and system
CN106296896A (en) A kind of gate control system based on LED visible light communication
CN109767535A (en) A kind of access control system and method for the adaptive bar code based on Wiegand protocol
CN112583833A (en) Data encryption processing method and device, electronic equipment and storage medium
CN101360101A (en) Data transmission method for remote meter reading system
CN112905965A (en) Financial big data processing system based on block chain
CN106780897B (en) Intelligent safety lock based on laser identification technology
US20050127172A1 (en) Access system
CN1378667A (en) Security arrangement
CN104715242A (en) Identity authentication system and method based on two-dimensional iris codes
CN108875879A (en) A kind of two-way authorization authentication method and device based on the close security algorithm of state
CN101226671B (en) Adversaria prompting method and apparatus

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190329