CN106570984A - Card number verification method, device and system capable of supporting various wiegand formats - Google Patents

Card number verification method, device and system capable of supporting various wiegand formats Download PDF

Info

Publication number
CN106570984A
CN106570984A CN201610910130.8A CN201610910130A CN106570984A CN 106570984 A CN106570984 A CN 106570984A CN 201610910130 A CN201610910130 A CN 201610910130A CN 106570984 A CN106570984 A CN 106570984A
Authority
CN
China
Prior art keywords
card number
wiegand
target
card
character string
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.)
Granted
Application number
CN201610910130.8A
Other languages
Chinese (zh)
Other versions
CN106570984B (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.)
Xiamen Entropy Technology Co., Ltd
Original Assignee
Xiamen Zhongkong Biological Recognition 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 Xiamen Zhongkong Biological Recognition Information Technology Co Ltd filed Critical Xiamen Zhongkong Biological Recognition Information Technology Co Ltd
Priority to CN201610910130.8A priority Critical patent/CN106570984B/en
Publication of CN106570984A publication Critical patent/CN106570984A/en
Application granted granted Critical
Publication of CN106570984B publication Critical patent/CN106570984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/08Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
    • G07F7/10Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means together with a coded signal, e.g. in the form of personal identification information, like personal identification number [PIN] or biometric data
    • G07F7/1016Devices or methods for securing the PIN and other transaction-data, e.g. by encryption

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

The embodiment of the invention discloses a card number verification method capable of supporting various wiegand formats. The card number verification method includes: reading card-reading information of an entrance guard card when it is detected that the entrance guard card is near; acquiring a card number digit number and a card number character string of the card-reading information; searching a wiegand format corresponding to the card number digit number in a preset wiegand format database to be used as a target wiegand format; analyzing the card number character string according to the target wiegand format, and acquiring a target card number corresponding to the card-reading information; and performing identity authentication according to the target number card. In addition, the embodiment of the invention also discloses a card number verification device and system capable of supporting various wiegand formats. The card number verification method, device and system can improve the compatibility of card number verification based on the wiegand formats.

Description

Support card number verification method, the apparatus and system of various Wiegand forms
Technical field
The present invention relates to field of computer technology, more particularly to a kind of card number verification method for supporting various Wiegand forms, Apparatus and system.
Background technology
Wiegand protocol is a kind of communication transport protocols, main to apply and the signal transmission between card reader and controller, That is, the card number read is sent to controller by card reader in the way of Wiegand, and controller is done in the same fashion again reception, Then judge card number and make corresponding process.General Wiegand form has various, except the 26-bit of standard, also uses what is commonly used 34-bit, 37-bit, 66-bit, wherein 26,34,37,66 represent respectively be transmission data bits.In the process for using In, card reader can carry out signal transmission using any one form, and controller can also be believed using any one reception of beacons Number, but on condition that, card reader must necessarily be located identical form with controller in communication, and otherwise, controller is receiving letter The process for making mistake will be made number afterwards, cause card number to malfunction, it is serious if also result in controller misoperation or deadlock.
In prior art, because each regional use habit is differed, for example, domestic user's great majority use 26-bit And the card number form of 34-bit, using the card number form of 64-bit more than the ground such as Southeast Asia and Japan, and in the ground such as the U.S., area It is very universal that bit code (site-code) is used, cause domestic market related software cannot market circulation in overseas, overseas market Related product also cannot circulate at home, that is to say, that because each different software reading and the checking of card number mistake Cheng Zhong because the card number of Wiegand form that cannot be under compatible multiple format, result in card number reading and checking exist it is compatible Property difference problem.
The content of the invention
It is to solve the compatibility that the reading and checking of the card number based on Wiegand protocol in conventional art are present based on this Not enough technical problem, in a first aspect of the present invention, spy proposes a kind of card number verification method for supporting various Wiegand forms.
A kind of card number verification method for supporting various Wiegand forms, including:
Detect access card near when, read the Card Reader information of the access card;
Obtain the card number digit and card number character string of the Card Reader information;
Wiegand form corresponding with the card number digit is searched in default Wiegand form database as target Wiegand Form;
The card number character string is parsed according to the target Wiegand form, is obtained corresponding with the Card Reader information Target card number;
Authentication is carried out according to the target card number.
Optionally, in one embodiment, the card number character string of the access card contains region-position code information and card number letter Breath;
It is described that Wiegand form corresponding with the card number digit is searched in default Wiegand form database as target The step of Wiegand form, is specially:
Wiegand form corresponding with the card number digit is searched in the default Wiegand form database, if searching Arrive, then obtain described at least one Wiegand form that finds alternately Wiegand form;
The region-position code information is determined according to the card number character string;
Target region-position code corresponding with the region-position code information is obtained, is determined and the mesh in the alternative Wiegand form The Wiegand form of mark region-position code matching is used as target Wiegand form.
Optionally, in one embodiment, it is described to determine in the alternative Wiegand form and the target region-position code The Wiegand form matched somebody with somebody is used as also including after the step of target Wiegand form:
The card number information is determined according to the card number character string;
The card number information is parsed according to the target Wiegand form, obtains mesh corresponding with the card number information Mark card number.
Optionally, in one embodiment, the card number digit for obtaining the Card Reader information and card number character string Also include after step:
Even-odd check is carried out to the card number character string, if verification passes through, is performed described in default Wiegand form number The step of according to Wiegand form corresponding with the card number digit is searched in storehouse as target Wiegand form, if verification does not pass through, Generate the information of authentication failed.
Optionally, in one embodiment, it is described the card number character string is solved according to the target Wiegand form Also include before the step of analysis:
Determine whether the target Wiegand form is provided with card number reversion, if so, then the card number character string carried out instead Turn and using the character string that obtains of inverting as card number character string, and perform it is described according to the target Wiegand form to described The step of card number character string is parsed.
Optionally, in one embodiment, the step of acquisition target card number corresponding with the Card Reader information is also wrapped Include:
When the card number digit is 64, the target card number is converted into store after 16 systems.
Optionally, in one embodiment, methods described also includes:
Receive the Wiegand form configuration-direct that management terminal sends;
Obtain the Wiegand form that includes in the Wiegand form configuration-direct and store to the Wiegand form database.
Additionally, the compatibility that the reading and checking of the card number based on Wiegand protocol in solve conventional art are present is not The technical problem of foot, in a second aspect of the present invention, spy proposes a kind of card number checking device for supporting various Wiegand forms.
It is a kind of to support that the card number of various Wiegand forms verifies device, including:
Card Reader information reading module, for detect access card near when, read the Card Reader information of the access card;
Card Reader data obtaining module, for obtaining the card number digit and card number character string of the Card Reader information;
Target Wiegand format determination module, for searching in default Wiegand form database and the card number digit pair The Wiegand form answered is used as target Wiegand form;
Card number parsing module, for being parsed to the card number character string according to the target Wiegand form, obtain with The corresponding target card number of the Card Reader information;
Authentication module, for carrying out authentication according to the target card number.
Optionally, in one embodiment, the card number character string of the access card contains region-position code information and card number letter Breath;
The target Wiegand format determination module be additionally operable to be searched in the default Wiegand form database with it is described The corresponding Wiegand form of card number digit, if finding, obtain described at least one Wiegand form that finds alternately Wei Root form;The region-position code information is determined according to the card number character string;Obtain target area corresponding with the region-position code information Bit code, determines the Wiegand form matched with the target region-position code as target Wiegand form in the alternative Wiegand form.
Optionally, in one embodiment, the card number parsing module is additionally operable to determine institute according to the card number character string State card number information;The card number information is parsed according to the target Wiegand form, is obtained corresponding with the card number information Target card number.
Optionally, in one embodiment, described device also includes parity check module, for the card number character string Even-odd check is carried out, if verification passes through, the target Wiegand format determination module is called, if verification does not pass through, generation is tested The information of card failure.
Optionally, in one embodiment, described device also includes that card number inverts correction verification module, for determining the target Whether Wiegand form is provided with card number reversion, if so, then the card number character string carried out inverting it is optional, in one embodiment In, the card number parsing module is additionally operable to when the card number digit is 64, optionally, in one embodiment, the dress Put and also include Wiegand form configuration module, for receiving the Wiegand form configuration-direct of management terminal transmission;Obtain the Wiegand The Wiegand form that includes in form configuration-direct is simultaneously stored to the Wiegand form database.
In a third aspect of the present invention, it is also proposed that a kind of card number checking system for supporting various Wiegand forms, including this The card number checking device of the various Wiegand forms of support that inventive embodiments second aspect is provided.
In a fourth aspect of the present invention, it is also proposed that a kind of card number checking system for supporting various Wiegand forms, for holding The card number verification method of the various Wiegand forms of support that row embodiment of the present invention first aspect is provided.
Implement the embodiment of the present invention, will have the advantages that:
After employing card number verification method, the apparatus and system of the various Wiegand forms of above-mentioned support, user can basis The demand of oneself is configured to the Wiegand form supported in each terminal, that is to say, that each terminal can be supported many Kind of Wiegand form, also, during terminal carries out Card Reader, it is right that the digit of the related card number information obtained according to Card Reader determines The applicable target Wiegand form answered, then according to the setting of the corresponding related Wiegand form of the target Wiegand form to reading The related card number information that card is obtained carries out parsing and obtains target card number, finally carries out authentication to the target card number.Namely Say, it is only necessary to cause the terminal to adapt to various Wiegand forms by being configured to terminal in management terminal, improve Wiegand The compatibility of the card number checking under form.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 is a kind of composition schematic diagram of the card number checking system for supporting various Wiegand forms in one embodiment;
Fig. 2 is a kind of schematic flow sheet of the card number verification method for supporting various Wiegand forms in one embodiment;
Fig. 3 supports that the card number of various Wiegand forms verifies the structural representation of device for a kind of in one embodiment;
Fig. 4 is the computer equipment that the aforementioned card number verification method for supporting various Wiegand forms is run in one embodiment Structural representation.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The compatibility deficiency that the reading and checking of the card number based on Wiegand protocol in solve conventional art is present Technical problem, in the present embodiment, spy proposes a kind of card number checking system for supporting various Wiegand forms, as shown in figure 1, this System includes reader device 10 and management terminal 20, and reader device 10 can be mounted in the terminal of door control terminal and set Standby, management terminal 20 is to establish the terminal unit of communication connection with reader device 10, and management terminal 20 can be to card reader Equipment 10 is configured, managed.
In the present embodiment, it is also proposed that a kind of card number verification method for supporting various Wiegand forms, the method is to be based on The reader device 10 of the card number checking system of the various Wiegand forms of above-mentioned support, the realization of the method can be dependent on computer journey Sequence, the computer program can run on the computer system based on von Neumann system, and the computer program can be door Prohibit the control program of safety-protection system or the Authority Verification program of entrance guard security system, for example, the Card Reader and card number of access card The program of checking.The computer system can run the computer terminal of above computer program.
Specifically, as shown in Fig. 2 the card number verification method of the various Wiegand forms of above-mentioned support comprises the steps:
Step S102:Detect access card near when, read the Card Reader information of the access card.
In specific embodiment, access card is between the reader device included in radio-frequency card, i.e. access card and reader device It is by RFID (Radio Frequency Identification, Chinese:RF identification) technology communicated.
Reader device detect access card near when, the related letter of the access card is obtained by REID Breath, in the present embodiment, i.e. the Card Reader information of access card.
It should be noted that in the present embodiment, the process of the Card Reader information of the access card of acquisition is complete by reader device Into, complete related data is activation to the control device of reader device, and complete follow-up by control device Decoding and the process of authentication.
In the present embodiment, being sent to the Card Reader information of control device can be transmitted according to Wiegand protocol, that is, Say, corresponding Card Reader information can be transmitted by DATA0 and DATA1 both threads.It should be noted that in the present embodiment, because Under Wiegand protocol, the transmission of data can only be transmitted by DATA0 and the data lines of DATA1 two, also, output valve is 0 Or 1.Specifically, when there is negative pulse on DATA0 lines, export " 0 ", when there is negative pulse on DATA1 lines, export " 1 ". That is, after Card Reader information is got, the data that Card Reader information can be converted under Wiegand protocol, i.e. " 0 " and " 1 " Combination, the control device being then forwarded in reader device.
Step S104:Obtain the card number digit and card number character string of the Card Reader information.
Specifically, according to the particular content of Card Reader information, wherein corresponding card number digit is obtained.In the present embodiment, because It is transmitted according to Wiegand protocol for Card Reader information, that is, obtains the corresponding Card Reader information correspondence sent under Wiegand protocol Card number digit.For example, in general, binary number of 4 digits can represent the unitss under a decimal scale, and The Card Reader information transmitted under Wiegand protocol is the binary array represented with " 0 " and " 1 ", according to binary array The card number digit included in digit, it may be determined that the digit of the array under corresponding decimal scale, as Card Reader information.
Further, in the present embodiment, card number character string as by the containing of reader device transmission " 0 " and The character string of " 1 ", after the Card Reader information for obtaining access card, obtains the card number character string included in Card Reader information.
Step S106:Wiegand form conduct corresponding with the card number digit is searched in default Wiegand form database Target Wiegand form.
It should be noted that in the present embodiment, management terminal needs to carry out corresponding Wei for reader device in advance The configuration of root form, specifically, in the present embodiment, said method also includes:The Wiegand form for receiving management terminal transmission is matched somebody with somebody Put instruction;Obtain the Wiegand form that includes in the Wiegand form configuration-direct and store to the Wiegand form database.
User can carry out the relevant configuration of Wiegand form in management terminal to reader device, in the present embodiment Red, Wiegand form can be made up of following 5 part:Parity check bit, region-position code (SITE CODE), CID (card number), equipment generation Code (Facility CODE) and vendor code (Manufactory CODE), naturally it is also possible to arrange by above-mentioned 5 part Part constitutes, and for example, can arrange Wiegand form and only include two parts of region-position code and card number.
User needs the Wiegand to being supported during the Wiegand form supported reader device is configured The digit of form is determined, and determines above-mentioned parity check bit, region-position code (SITE CODE), CID (card number), equipment generation Code (Facility CODE) and vendor code (Manufactory CODE) etc. parts are shared specific in Wiegand form Position, for example, in wiegand26, odd parity bit is the 1st, and even parity bit is the 14th, and card number is 2-13 and 15- 26.That is, including in the configuring request for the Wiegand form of reader device that is input in management terminal of user Need the digit and corresponding arrange parameter of the Wiegand form of configuration, management terminal receive user input request it Afterwards, corresponding Wiegand form configuration-direct is generated according to the request and is sent to reader device.
Reader device is matched somebody with somebody after the Wiegand form configuration-direct for receiving management terminal transmission according to the Wiegand form Putting instruction carries out the configuration of correlation, and the Wiegand form that will be included in Wiegand form configuration-direct and the configuration parameter of correlation are protected In there is Wiegand form database, for using during follow-up Card Reader and card number checking.
Because the Wiegand form that reader device is supported and corresponding digit are stored in Wiegand form database, After Card Reader information and card number digit, card number character string is got, it is possible to determine the access card according to corresponding flow process Corresponding specific Wiegand form, in the present embodiment, the Wiegand form is target Wiegand form, and target Wiegand form with Access card is corresponding.
In the present embodiment, in various Wiegand forms that reader device is supported, each Wiegand form correspondence one Individual corresponding card number digit, for example, the corresponding card number digits of Wiegand form wiegand26 are 26, Wiegand form wiegand64 pair The card number digit answered is 64.
It should be noted that in one embodiment, management terminal is configuring corresponding Wiegand form to reader device During, the Wiegand form that can be arranged under each unitss can only configure one kind, that is to say, that under same card number digit Wiegand form only exists one kind, for example, it is impossible to while supporting two kinds of Wiegand forms of wiegand26 and wiegand26a.Here Kind in the case of, according to the card number digit included in Card Reader information can determine that target Wiegand form and with the target Wiegand form Corresponding related parameter setting etc..
Optionally, in another embodiment, management terminal is configuring the mistake of corresponding Wiegand form to reader device Cheng Zhong, can configure multiple with the Wiegand form under one digit number, and can pass through between card number digit identical Wiegand form Region-position code is making a distinction.
Specifically, the card number character string of the access card contains region-position code information and card number information;It is described default The step of Wiegand form corresponding with the card number digit is searched in Wiegand form database as target Wiegand form is specially: Wiegand form corresponding with the card number digit is searched in the default Wiegand form database, if finding, is obtained At least one Wiegand form for finding alternately Wiegand form;The region-position code is determined according to the card number character string Information;Target region-position code corresponding with the region-position code information is obtained, is determined and the target in the alternative Wiegand form The Wiegand form of region-position code matching is used as target Wiegand form.
That is, the Wiegand form under same card number digit potentially included it is multiple, it is determined that corresponding with access card Target Wiegand form during, it is necessary first to it is determined that the Wiegand form of configuration corresponding with card number digit include which, Target Wiegand form is included in above-mentioned Wiegand form, in the present embodiment, by what is found in Wiegand form database Wiegand form corresponding with card number digit alternately Wiegand form.
After alternative Wiegand form determines, it is possible to further to determine target Wiegand form.If alternative Wiegand form Only one of which, then the alternative Wiegand form is exactly target Wiegand form.If alternative Wiegand form more than one, such as three, then It is accomplished by further determining target Wiegand form in alternative Wiegand form.In the present embodiment, card number digit identical Wiegand Can be made a distinction by region-position code between form, that is to say, that if carrying out the mistake of the configuration of Wiegand form in management terminal Cheng Zhong, is configured with multiple Wiegand forms under same card number digit, just must be provided with corresponding Wiegand form and supports region-position code Checking, and be by the different making a distinction of region-position code between Wiegand form and Wiegand form.
In the parameter setting of Wiegand form, the digit of the corresponding region-position code of multiple Wiegand forms under same card number digit It is certain, that is to say, that the character string of corresponding position and digit directly can be read in card number character string, and is carried out Parsing, what is obtained is the corresponding region-position code of the access card.
Step S108:Card Reader information is parsed according to the target Wiegand form, is obtained and the Card Reader information pair The target card number answered.
As it was previously stated, during management terminal carries out the configuration of Wiegand form to reader device, for each The Wiegand form of configuration, can arrange the corresponding setting rule of its corresponding region-position code, card number, parity check bit, therefore, at this In embodiment, known to target Wiegand form and Card Reader information it is also known that in the case of, according to corresponding with the target Wiegand form Related region-position code, card number, parity check bit are isoparametric arranges rule, it may be determined that each included in Card Reader information Corresponding concrete meaning.Further, according to card number analytic method corresponding with the target Wiegand form, Wiegand protocol is issued The Card Reader information sent is parsed, and is obtained and is parsed the information for obtaining as target card number.It should be noted that in the present embodiment In, target card number refers to the related data represented with binary system or " 0 " and " 1 " under non-Wiegand protocol, but to commonly use The card number information that metric form shows, as target card number.
Further, in the present embodiment, before target card number is parsed, not only need to carry out school to region-position code Test, in addition it is also necessary to which parity bit is verified.
Specifically, in general, odd even bit check is it is determined that before target Wiegand form, being sent to check Card Reader information in the phenomenon lost with the presence or absence of information of the card number character string that includes.Specifically, the above-mentioned acquisition Card Reader letter Also include after the step of card number digit and card number character string of breath:Even-odd check is carried out to the card number character string, if school Test and pass through, then Wiegand form conduct corresponding with the card number digit is searched in default Wiegand form database described in execution The step of target Wiegand form, if verification does not pass through, generate the information of authentication failed.
According to the setting of specific position of the default parity bit check code in card number, in obtaining the card number character string Odd parity bit and even parity bit, and carry out corresponding even-odd check, and obtain the result of corresponding even-odd check.In this reality In applying example, only in the case where even-odd check passes through, just proceed other verifications, such as position code check etc. is otherwise tested Card does not pass through, and generates corresponding prompting message and show user.
It should be noted that in the present embodiment, when the checking message of verification failure is shown, the content of displaying not only may be used Including the result of authentication failed, can also include the principle of authentication failed, for example, even-odd check failure or position code check lose Lose.
Further, in the present embodiment, user, can be with during the design parameter for arranging Wiegand form is arranged Card number reversion is arranged to the card number of Wiegand form, that is to say, that during parsing to card number, it is necessary to which card number is carried out Reversion can just obtain final correct card number, so as to improve the safety of corresponding card number checking.
Specifically, it is above-mentioned the step of parsed to the card number character string according to the target Wiegand form before also wrap Include:Determine whether the target Wiegand form is provided with card number reversion, if so, then the card number character string inverted and incite somebody to action The character string that obtains of inverting as card number character string, and perform it is described according to the target Wiegand form to the card number word The step of symbol string is parsed.
It should be noted that in the present embodiment, the not parsing to being directed to target card number arranges card number reversion, may be used also To be also carried out card number reversion for information such as region-position codes.
Further, because in the present embodiment, during the card number information to access card is stored, it is contemplated that The card number digit of conventional Wiegand form, can be set to 8 bytes by the memory space of card number, therefore, in Wiegand form In the case that card number digit is 64, the storage of corresponding card number occurs the situation of memory space inadequate, therefore, in this kind of feelings Under condition, the target card number that parsing is obtained is converted into into 16 systems and is stored.
In the present embodiment, according to the relevant portion included in target Wiegand form, for example, target Wiegand form is contained In the case of region-position code part and card number part, the Card Reader information of its corresponding access card then include region-position code information and Card number information, during big form is parsed to Card Reader information according to target, it is necessary first to according to target Wiegand lattice Formula determines the occurrence of the region-position code information and card number information included in Card Reader information, then according to corresponding decoding process pair Region-position code information and card number information are parsed, and obtain corresponding parsing region-position code and parsing card number, and by parsing area Bit code and parsing card number obtain final target card number.
Step S110:Authentication is carried out according to the target card number.
In specific embodiment, during access card of the management terminal under to some reader device carries out hair fastener, The relevant information such as Wiegand form, card number that the access card is set is needed, and related card number information is stored in into corresponding use In user data storehouse.In the process that authentication is carried out to target card number, search and target card number as in customer data base The user for matching somebody with somebody, if finding, the authentication for judging access card corresponding with target card number passes through, conversely, then authentication Do not pass through.
In a specific embodiment, as shown in table 1, the card number digit included in Card Reader information is got and card After sign character string, can according to described in table 1 the step of verified.
Table 1
For example, in the specific embodiment shown in use-case 7, parity bit is verified first, in the situation that verification passes through Under, proceed the determination of card number digit, it is determined that alternative Wiegand form corresponding with card number digit, then because acquiescence check field The option of bit code is yes, then need to verify region-position code.Specifically, it is first determined whether carried out card number reversion, then Parse specific region-position code and carry out region-position code verification, in the case where verification passes through, specific card number is parsed, so Carry out specific collection to card number afterwards to offend the eye, if card number verification bronze drum, illustrates that final proof of identity passes through.
Further, in the present embodiment, user can also be known corresponding with access card specific by TEST functions The setting of Wiegand form, but, user needs to know the corresponding original card number of the access card, that is, need to know the access card correspondence Region-position code and target card number.In this case, system can be by the side such as backward inference of above-mentioned card number checking procedure Formula, obtains the relevant informations such as the corresponding card number position of the card number, even-odd check form, card verification form.
Additionally, the compatibility that the reading and checking of the card number based on Wiegand protocol in solve conventional art are present is not The technical problem of foot, in one embodiment, as shown in Figure 3, it is also proposed that a kind of to support that the card number of various Wiegand forms is verified Device, including Card Reader information reading module 102, Card Reader data obtaining module 104, target Wiegand format determination module 106, card number Parsing module 108 and authentication module 110, wherein:
Card Reader information reading module 102, for detect access card near when, read the Card Reader letter of the access card Breath;
Card Reader data obtaining module 104, for obtaining the card number digit and card number character string of the Card Reader information;
Target Wiegand format determination module 106, for searching in default Wiegand form database and the card number position The corresponding Wiegand form of number is used as target Wiegand form;
Card number parsing module 108, for being parsed to the card number character string according to the target Wiegand form, obtains Target card number corresponding with the Card Reader information;
Authentication module 110, for carrying out authentication according to the target card number.
Optionally, in one embodiment, the card number character string of the access card contains region-position code information and card number letter Breath;The target Wiegand format determination module 106 is additionally operable to be searched and the card in the default Wiegand form database Number corresponding Wiegand form of digit, if finding, obtain described at least one Wiegand form that finds alternately Wiegand Form;The region-position code information is determined according to the card number character string;Obtain target position corresponding with the region-position code information Code, determines the Wiegand form matched with the target region-position code as target Wiegand form in the alternative Wiegand form.
Optionally, in one embodiment, the card number parsing module 108 is additionally operable to be determined according to the card number character string The card number information;The card number information is parsed according to the target Wiegand form, is obtained and the card number information pair The target card number answered.
Optionally, in one embodiment, as shown in figure 3, said apparatus also include parity check module 112, for right The card number character string carries out even-odd check, if verification passes through, the target Wiegand format determination module 106 is called, if school Test and do not pass through, then generate the information of authentication failed.
Optionally, in one embodiment, as shown in figure 3, said apparatus also include that card number inverts correction verification module 114, uses In it is determined that whether the target Wiegand form is provided with card number reversion, if so, then the card number character string inverted and incite somebody to action The character string for obtaining that inverts calls the card number parsing module 108 as card number character string.
Optionally, in one embodiment, it is 64 that the card number parsing module 108 is additionally operable in the card number digit When, the target card number is converted into store after 16 systems.
Optionally, in one embodiment, as shown in figure 3, said apparatus also include Wiegand form configuration module 116, use In the Wiegand form configuration-direct for receiving management terminal transmission;Obtain the Wiegand form included in the Wiegand form configuration-direct And store to the Wiegand form database.
Additionally, the compatibility that the reading and checking of the card number based on Wiegand protocol in solve conventional art are present is not The technical problem of foot, in one embodiment, it is also proposed that a kind of card number checking system for supporting various Wiegand forms, the system Device is verified including the card number of the various Wiegand forms of above-mentioned support.
In another embodiment, it is also proposed that another kind supports the card number checking system of various Wiegand forms, the system For performing the card number verification method of the various Wiegand forms of above-mentioned support.
Implement the embodiment of the present invention, will have the advantages that:
After employing card number verification method, the apparatus and system of the various Wiegand forms of above-mentioned support, user can basis The demand of oneself is configured to the Wiegand form supported in each terminal, that is to say, that each terminal can be supported many Kind of Wiegand form, also, during terminal carries out Card Reader, it is right that the digit of the related card number information obtained according to Card Reader determines The applicable target Wiegand form answered, then according to the setting of the corresponding related Wiegand form of the target Wiegand form to reading The related card number information that card is obtained carries out parsing and obtains target card number, finally carries out authentication to the target card number.Namely Say, it is only necessary to cause the terminal to adapt to various Wiegand forms by being configured to terminal in management terminal, improve Wiegand The compatibility of the card number checking under form.
In one embodiment, as shown in figure 4, Fig. 4 illustrates a kind of card number of the various Wiegand forms of the above-mentioned support of operation The terminal of the computer system based on von Neumann system of verification method.Specifically, it may include connected by system bus Outer input interface 1001, processor 1002, memorizer 1003 and output interface 1004.Wherein, outer input interface 1001 can That what is selected can at least include network interface 10012.Memorizer 1003 may include external memory 10032 (such as hard disk, CD or floppy disk Deng) and built-in storage 10034.Output interface 1004 can at least include the grade equipment of display screen 10042.
In the present embodiment, the operation of this method is based on computer program, and the program file of the computer program is stored in In the external memory 10032 of the aforementioned computer system based on von Neumann system, built-in storage is operationally loaded into In 10034, then it is compiled as being transferred to be performed in processor 1002 after machine code, so that being based on von Neumann system Computer system in form Card Reader information reading module 102, Card Reader data obtaining module 104, target Wiegand lattice in logic Formula determining module 106, the authentication module 110 of card number parsing module 108, parity check module 112, card number reversion correction verification module 114 and Wiegand form configuration module 116.And in the card number verification method implementation procedure of the various Wiegand forms of above-mentioned support, The parameter of input is received by outer input interface 1001, and is transferred to be cached in memorizer 1003, is then input to process Processed in device 1002, the result data of process or be cached in memorizer 1003 is subsequently processed, or is passed to Output interface 1004 is exported.
Above disclosed is only present pre-ferred embodiments, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (16)

1. a kind of card number verification method for supporting various Wiegand forms, it is characterised in that include:
Detect access card near when, read the Card Reader information of the access card;
Obtain the card number digit and card number character string of the Card Reader information;
Wiegand form corresponding with the card number digit is searched in default Wiegand form database as target Wiegand form;
The card number character string is parsed according to the target Wiegand form, obtains target corresponding with the Card Reader information Card number;
Authentication is carried out according to the target card number.
2. the card number verification method for supporting various Wiegand forms according to claim 1, it is characterised in that the access card Card number character string contain region-position code information and card number information;
It is described that Wiegand form corresponding with the card number digit is searched in default Wiegand form database as target Wiegand The step of form, is specially:
Wiegand form corresponding with the card number digit is searched in the default Wiegand form database, if finding, The alternately Wiegand form of at least one Wiegand form that finds described in obtaining;
The region-position code information is determined according to the card number character string;
Target region-position code corresponding with the region-position code information is obtained, is determined and the target area in the alternative Wiegand form The Wiegand form of bit code matching is used as target Wiegand form.
3. the card number verification method for supporting various Wiegand forms according to claim 2, it is characterised in that described described Wiegand form match with the target region-position code is determined in alternative Wiegand form as after the step of target Wiegand form and also Including:
The card number information is determined according to the card number character string;
The card number information is parsed according to the target Wiegand form, obtains object card corresponding with the card number information Number.
4. the card number verification method for supporting various Wiegand forms according to claim 1, it is characterised in that the acquisition institute Also include after the step of stating the card number digit and card number character string of Card Reader information:
Even-odd check is carried out to the card number character string, if verification passes through, is performed described in default Wiegand form database It is middle the step of search corresponding with card number digit Wiegand form as target Wiegand form, if verification does not pass through, generate The information of authentication failed.
5. the card number verification method for supporting various Wiegand forms according to claim 1, it is characterised in that described according to institute Also include before stating the step of target Wiegand form is parsed to the card number character string:
Determine whether the target Wiegand form is provided with card number reversion, if so, then the card number character string inverted simultaneously Using the character string that obtains of inverting as card number character string, and perform it is described according to the target Wiegand form to the card number The step of character string is parsed.
6. the card number verification method for supporting various Wiegand forms according to claim 1, it is characterised in that the acquisition with The step of Card Reader information corresponding target card number, also includes:
When the card number digit is 64, the target card number is converted into store after 16 systems.
7. the card number verification method for supporting various Wiegand forms according to claim 1, it is characterised in that methods described is also Including:
Receive the Wiegand form configuration-direct that management terminal sends;
Obtain the Wiegand form that includes in the Wiegand form configuration-direct and store to the Wiegand form database.
8. it is a kind of to support that the card number of various Wiegand forms verifies device, it is characterised in that to include:
Card Reader information reading module, for detect access card near when, read the Card Reader information of the access card;
Card Reader data obtaining module, for obtaining the card number digit and card number character string of the Card Reader information;
Target Wiegand format determination module, it is corresponding with the card number digit for searching in default Wiegand form database Wiegand form is used as target Wiegand form;
Card number parsing module, for being parsed to the card number character string according to the target Wiegand form, obtain with it is described The corresponding target card number of Card Reader information;
Authentication module, for carrying out authentication according to the target card number.
9. it is according to claim 8 to support that the card number of various Wiegand forms verifies device, it is characterised in that the access card Card number character string contain region-position code information and card number information;
The target Wiegand format determination module is additionally operable to be searched and the card number in the default Wiegand form database The corresponding Wiegand form of digit, if finding, obtain described at least one Wiegand form that finds alternately Wiegand lattice Formula;The region-position code information is determined according to the card number character string;Target region-position code corresponding with the region-position code information is obtained, Determine the Wiegand form matched with the target region-position code as target Wiegand form in the alternative Wiegand form.
10. it is according to claim 9 to support that the card number of various Wiegand forms verifies device, it is characterised in that the card number Parsing module is additionally operable to determine the card number information according to the card number character string;According to the target Wiegand form to the card Number information is parsed, and obtains target card number corresponding with the card number information.
The 11. card number checking devices for supporting various Wiegand forms according to claim 8, it is characterised in that described device Also include parity check module, for carrying out even-odd check to the card number character string, if verification passes through, call the target Wiegand format determination module, if verification does not pass through, generates the information of authentication failed.
The 12. card number checking devices for supporting various Wiegand forms according to claim 8, it is characterised in that described device Also include that card number inverts correction verification module, for determining whether the target Wiegand form is provided with card number reversion, if so, then to institute State card number character string to be inverted and using the character string for obtaining that inverts as card number character string, and call the card number to parse Module.
The 13. card number checking devices for supporting various Wiegand forms according to claim 8, it is characterised in that the card number Parsing module is additionally operable to when the card number digit is 64, and the target card number is converted into store after 16 systems.
The 14. card number checking devices for supporting various Wiegand forms according to claim 8, it is characterised in that described device Also include Wiegand form configuration module, for receiving the Wiegand form configuration-direct of management terminal transmission;Obtain the Wiegand lattice The Wiegand form that includes in formula configuration-direct is simultaneously stored to the Wiegand form database.
15. a kind of card number checking systems for supporting various Wiegand forms, it is characterised in that including any one of claim 8~14 The card number checking device of the various Wiegand forms of described support.
A kind of 16. card number checking systems for supporting various Wiegand forms, it is characterised in that the card number checking system perform claim Require the card number verification method of the various Wiegand forms of support described in 1~7 any one.
CN201610910130.8A 2016-10-19 2016-10-19 Support card number verification method, the apparatus and system of a variety of Wiegand formats Active CN106570984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610910130.8A CN106570984B (en) 2016-10-19 2016-10-19 Support card number verification method, the apparatus and system of a variety of Wiegand formats

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610910130.8A CN106570984B (en) 2016-10-19 2016-10-19 Support card number verification method, the apparatus and system of a variety of Wiegand formats

Publications (2)

Publication Number Publication Date
CN106570984A true CN106570984A (en) 2017-04-19
CN106570984B CN106570984B (en) 2019-08-02

Family

ID=58533886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610910130.8A Active CN106570984B (en) 2016-10-19 2016-10-19 Support card number verification method, the apparatus and system of a variety of Wiegand formats

Country Status (1)

Country Link
CN (1) CN106570984B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107093246A (en) * 2017-05-23 2017-08-25 广州市宏大欣电子科技有限公司 A kind of gate control system card reader and its method of work
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
CN113065367A (en) * 2021-03-29 2021-07-02 新疆爱华盈通信息技术有限公司 IC card reading method, IC card reading device, electronic device, and storage medium
CN113407395A (en) * 2021-06-08 2021-09-17 深圳市海清视讯科技有限公司 Testing method and device of face recognition equipment
CN114492305A (en) * 2022-01-26 2022-05-13 深圳市爱深盈通信息技术有限公司 Card reader data output format adapting method, device, equipment and storage medium
CN115297181A (en) * 2022-07-07 2022-11-04 杭州海康威视数字技术股份有限公司 Wiegand signal processing device and access control authority verification system
CN116612572A (en) * 2023-06-14 2023-08-18 厦门万安智能有限公司 Building access control management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1361490A (en) * 2000-12-24 2002-07-31 冯振周 Safety techn for E-business system
CN1776706A (en) * 2005-12-05 2006-05-24 苏州精达毅力电子有限公司 Wiegand signal automatic-identifying method
CN102323914A (en) * 2011-04-27 2012-01-18 杭州晟元芯片技术有限公司 Controller interface capable of automatically detecting WGIN input and control method
CN102693568A (en) * 2012-05-21 2012-09-26 中船重工(武汉)凌久高科有限公司 Method of multipath Wiegand data acquisition in access controller
US20130315394A1 (en) * 2012-05-25 2013-11-28 Wistron Corporation Data encryption method, data verification method and electronic apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1361490A (en) * 2000-12-24 2002-07-31 冯振周 Safety techn for E-business system
CN1776706A (en) * 2005-12-05 2006-05-24 苏州精达毅力电子有限公司 Wiegand signal automatic-identifying method
CN102323914A (en) * 2011-04-27 2012-01-18 杭州晟元芯片技术有限公司 Controller interface capable of automatically detecting WGIN input and control method
CN102693568A (en) * 2012-05-21 2012-09-26 中船重工(武汉)凌久高科有限公司 Method of multipath Wiegand data acquisition in access controller
US20130315394A1 (en) * 2012-05-25 2013-11-28 Wistron Corporation Data encryption method, data verification method and electronic apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁洪玮: "白云机场门禁控制系统的设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107093246A (en) * 2017-05-23 2017-08-25 广州市宏大欣电子科技有限公司 A kind of gate control system card reader and its method of work
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
CN113065367A (en) * 2021-03-29 2021-07-02 新疆爱华盈通信息技术有限公司 IC card reading method, IC card reading device, electronic device, and storage medium
CN113065367B (en) * 2021-03-29 2022-08-26 新疆爱华盈通信息技术有限公司 IC card reading method, IC card reading device, electronic device, and storage medium
CN113407395A (en) * 2021-06-08 2021-09-17 深圳市海清视讯科技有限公司 Testing method and device of face recognition equipment
CN113407395B (en) * 2021-06-08 2022-06-17 深圳市海清视讯科技有限公司 Testing method and device of face recognition equipment
CN114492305A (en) * 2022-01-26 2022-05-13 深圳市爱深盈通信息技术有限公司 Card reader data output format adapting method, device, equipment and storage medium
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
CN116612572A (en) * 2023-06-14 2023-08-18 厦门万安智能有限公司 Building access control management system
CN116612572B (en) * 2023-06-14 2024-03-19 厦门万安智能有限公司 Building access control management system

Also Published As

Publication number Publication date
CN106570984B (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN106570984B (en) Support card number verification method, the apparatus and system of a variety of Wiegand formats
EP3163793B1 (en) Tag, related method and system for identifying and/or authenticating objects
CN105512881B (en) A kind of method and terminal for completing payment based on two dimensional code
CN104185141B (en) The detecting system and method for user area residence time based on Bluetooth beacon equipment
EP3534584B1 (en) Service implementation method and apparatus
CN104320375B (en) A kind of method and apparatus for preventing from illegally registering
CN104252613B (en) A kind of virtual objects acquisition methods, device and terminal
CN106201288A (en) Storage method, device and the mobile terminal of a kind of finger print information
CN102375941A (en) Method and system for validating chip validity by utilizing graphical chip
CN108288008B (en) Card activation method and device
CN207867484U (en) Smart lock upgrade-system
CN101896916A (en) Interaction between secured and unsecured environments
EP2816497A1 (en) Matrix obtaining method, character display device and system and electronic signature tool
CN103001934B (en) The method and system that terminal applies logs in
CN107957871B (en) Front-end and back-end synchronous regular checking method based on JSR303
CN105184337A (en) Intelligent card application detection method and system for NFC equipment
CN111191252A (en) Encryption and decryption method and device for smart card operating system and storage medium
CN105956861B (en) Information code reading system
CN107612915A (en) The method and apparatus of the anti-password cracking of double secure forms based on checking code conversion
CN207164210U (en) A kind of test device of smart card
CN107437997B (en) Radio frequency communication device and method
CN109041049A (en) A kind of addressing method of mobile terminal, device for addressing and terminal device
CN109635552A (en) Electronic equipment identity information verification method and device
CN113395273A (en) Login identity verification method, device, equipment and storage medium
CN101639883B (en) Method for checking PIN code and intelligent key equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20190620

Address after: Room No.8,2001, Chengyi North Street, Phase III, Xiamen Software Park, Fujian Province

Applicant after: Xiamen Central Intelligent Information Technology Co., Ltd.

Address before: 361000 software park, Siming District, Xiamen City, Fujian Province, Unit 02, Unit 403, No. 32 Guanri Road, Phase II

Applicant before: XIAMEN ZHONGKONG BIOLOGICAL RECOGNITION INFORMATION TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 1301, No.132, Fengqi Road, phase III, software park, Xiamen City, Fujian Province

Patentee after: Xiamen Entropy Technology Co., Ltd

Address before: 361000, Xiamen three software park, Fujian Province, 8 North Street, room 2001

Patentee before: XIAMEN ZKTECO BIOMETRIC IDENTIFICATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address