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.