CN1776706A - Wiegand signal automatic-identifying method - Google Patents
Wiegand signal automatic-identifying method Download PDFInfo
- Publication number
- CN1776706A CN1776706A CN 200510122942 CN200510122942A CN1776706A CN 1776706 A CN1776706 A CN 1776706A CN 200510122942 CN200510122942 CN 200510122942 CN 200510122942 A CN200510122942 A CN 200510122942A CN 1776706 A CN1776706 A CN 1776706A
- Authority
- CN
- China
- Prior art keywords
- low level
- level pulse
- wiegand signal
- signal
- controller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
After card reader sends out Weigen signal, controller carries out counting for number of bit of received impulse signal in low electrical level. That is to say when controller receives one bit of impulse signal in low electrical level, the counter adds 1, and then enters to waiting state. In waiting period, if impulse signal in low electrical level is coming, then number of bit is plus 1; otherwise, in waiting period no impulse signal in low electrical level is coming, the method considers that transmission is added. Based on number of bit, controller determines the signal is in which format automatically. Based on character of each format, the method does relevant process, and calculates number of card. The waiting time should be larger than upper limit value of width range between two impulse signals in low electrical level. The invention is capable of recognizing card reader automatically so as to solve issue of matching card reader and controller manually.
Description
Technical field
The present invention relates to a kind of automatic identifying method of Wiegand signal, be specifically related to the form automatic identifying method of Wiegand signal, promptly to receive what how correctly to discern card reader output behind the card number that card reader sends be the method for any Wei root form to controller.This method is mainly used in the Wiegand signal transmission between card reader and the controller, and controller is discerned the Wiegand signal form that card reader sends automatically, so that controller can correctly be handled the card number information that card reader sends.
Background technology
Wiegand signal is a kind of communication host-host protocol, be mainly used in the signal transmission between card reader and the controller, that is to say that card reader mails to controller to the card number read in the mode of Wei root, controller receives in the same way again, judges that then card number makes correct processing.
Wiegand signal transmits by D0 and two lines of D1, see shown in Figure 1, its feature is made up of one group of low level pulse, each low level pulse is represented the one digit number certificate, D0 and D1 are high level during no signal, when signal, as when on the D0 line low level pulse being arranged then data be " 0 ", otherwise when on the D1 line low level pulse being arranged then data be " 1 ".The width range of this low level pulse is 20~100 microseconds, and representative value is 50 microseconds, and the width range between two low level pulses is 0.2~4 millisecond, and representative value is 2 milliseconds.
The form of Wiegand signal has a variety of, comprises Wei root 26, Wei root 32, Wei root 34, Wei root 40, Wei root 50 or the like, wherein 26,32,34,40 and 50 respectively representative be the data bits that transmits.Use to such an extent that mainly contain three kinds of forms more widely at present, promptly the particular content of Wei root 26, Wei root 32 and 34, three kinds of forms of Wei Gen is as follows:
1, the composition of Wei root 26:
Preceding 12 even parity check of data accounts for the odd that 1+data account for after the 24+data 12 and accounts for 1.
2, the composition of Wei root 32:
32 of data.
3, the composition of Wei root 34:
Preceding 16 even parity check of data accounts for after the preceding 32+data of 1+data 16 odd and accounts for 1.
Card reader can transmit in order to last any form, and controller also can receive with any form, still a prerequisite must be arranged, and being exactly card reader must be arranged to identical form with controller when the communication.Otherwise controller will be done the processing that makes mistake after receiving, and cause card number to be made mistakes, and serious words also can cause controller misoperation or deadlock.With Wei root 26 for example, manually in advance controller is made as Wei root 26, card reader is made as Wei root 26, at ordinary times not during Card Reader, the two output signal line D0 and the D1 of card reader are high level, the input end D0 of controller and D1 also are high level, behind the card reader Card Reader, D0 or D1 just have a string low level pulse output, as shown in Figure 2, just store receive the low level of D0 when the controller CPU end after, change waiting status over to, stand-by period 〉=2 millisecond, in waiting status as the low level pulse signal is arranged on D0 or the D1, just storage again, and the like also do not have the low level pulse signal and just think and end of transmission (EOT) calculate corresponding data according to the setting of establishing in advance again until surpassing stand-by period D0 or D1.
If controller is made as Wei root 32, card reader is made as Wei root 26, will cause controller that Wei root 26 signals of receiving are used as Wei root 32 signal Processing, and data are made mistakes.Correct application should be that card reader also is made as Wei root 32 if controller is made as Wei root 32, but this process must not made mistakes by artificial participation and assurance before use.Understand according to the applicant, up to now, this setting of card reader and controller all must be carried out manually-operated by software or hardware.Because these require to make utilization Wiegand signal at present carry out the card reader of communication transmission and controller when installing at the scene, because mistake artificially is set, and the debugging of the system of giving brings difficulty.
Summary of the invention
The invention provides a kind of automatic identifying method of Wiegand signal, its objective is and make controller have the ability that automatic identification card reader is sent the Wiegand signal form, to solve artificial coupling card reader and controller Wei root form, may bring make mistakes, a series of problems such as inconvenience, request for utilization height, improve reliability, reduce request for utilization.
For achieving the above object, the technical solution used in the present invention is: a kind of Wiegand signal automatic-identifying method, and its content is:
(1), controller is receiving a string low level pulse Wiegand signal that D0 and two signal wires of D1 transmit simultaneously, each low level pulse that receives is counted by counter;
When (2), counting, from first low level pulse, whenever receive a low level pulse counter data figure place is added one, change waiting status then over to, stand-by period is greater than the higher limit of width range between two low level pulses of Wei root formal definition, promptly more than 4 milliseconds, if within the stand-by period, there is next low level pulse to transmit the counter data figure place is added one, and then change waiting status over to, the rest may be inferred, transmit until no low level pulse within the stand-by period, think that then a string low level pulse Wiegand signal transmits end;
(3), then the low level pulse number counted according to corresponding a string low level pulse Wiegand signal in the counter of controller which kind of Wei root form differentiates the Wiegand signal of being counted be, do corresponding processing according to the data characteristics of this corresponding Wei root form again, calculate card number.
Related content in the technique scheme is explained as follows:
1, in the such scheme, when a string low level pulse Wiegand signal was counted, the initial value of counter was zero, and after a string low level pulse Wiegand signal transmitted and finishes, the count value of counter was represented the number of current a string low level pulse.
2, in the such scheme, when a string low level pulse Wiegand signal was counted, after a string low level pulse Wiegand signal transmitted and finishes, the difference that the count value of counter deducts last count value was represented the number of current a string low level pulse.
3, the present invention is applicable to that all have the controller of Wiegand signal input.As access controller etc., can discern any Wei root form automatically with the Wiegand signal transmission.
Principle of work of the present invention is: after card reader sends Wiegand signal, controller is counted the low level pulse signal figure place that receives, specifically be exactly that controller whenever receives a low level pulse data counter and adds one, carry out waiting status then, if within the stand-by period, there is the low level pulse signal to come just the data figure place to be added one; Otherwise no signal is come within the stand-by period, just thinks to transmit and finishes.Which kind of form automatic differentiation is to controller according to data bits then, does corresponding processing according to the feature of each form again, calculates card number.These times for the treatment of should be greater than the higher limit of the width range between two low level pulses.For example: if counting is 26 to be exactly Wei root 26, counting is 32 to be exactly Wei root 32, and the rest may be inferred, so no matter to be which kind of Wei root form, also just can discern one by one.
Because the technique scheme utilization, the present invention compared with prior art has following advantage and effect:
1, the inventive method is simple, realizes easily, can discern the Wiegand signal of random length.
When 2, the present invention has overcome on-the-spot install because the artificial mistake that is provided with, and the difficulty that the debugging of system is brought, the good results are evident to solving the problem that Wei root formatting mistake appears in installation personnel and system debug personnel, reduced the requirement of installation personnel, also reduced the error rate when installing.
3, reduce the trouble that the manually-operated error is brought after adopting the present invention, need not know the output format of card reader, controller does not need to be provided with that just to determine what read automatically be the Wiegand signal of which kind of form yet again, carries out data processing according to form accordingly again.
Description of drawings
Accompanying drawing 1 is the Wiegand signal transmission synoptic diagram between card reader and the controller;
Accompanying drawing 2 is for being the set of pulses signal schematic representation of example with Wei root 26;
Accompanying drawing 3 is the automatic identification process figure of embodiment of the invention Wiegand signal.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described:
Embodiment:
If the controller among Fig. 1 is an access controller, card reader is the Wei root way of output, and whether the Wei root form that just need not check access controller and card reader after installation is provided with correctly and just can uses.The output Wiegand signal is to access controller behind the card reader Card Reader, access controller is differentiated Wei root form automatically according to the figure place of receiving after receiving Wiegand signal, and calculate corresponding card number, and then whether decision opens the door according to card number, its workflow is referring to shown in Figure 3.
Now illustrate: at ordinary times not during Card Reader with Wei root 26, the two output signal line D0 and the D1 of card reader are high level, the input end D0 of controller and D1 also are high level, behind the card reader Card Reader, D0 or D1 just have a string low level pulse output, as shown in Figure 2, just store receive the low level of D0 when the controller CPU end after, unison counter adds one, changes waiting status over to, stand-by period is 5 milliseconds, if in 5 milliseconds, on D0 or the D1 low level pulse signal is arranged, just storage again, unison counter adds one again, the rest may be inferred, wait for 5 milliseconds again, go up no low level pulse signal, just think end until surpassing 5 milliseconds of D0 or D1, and then according to counter meter in the controller CPU to number determine it is which kind of Wei root form, for example: if counting is 26 to be exactly Wei root 26, counting is 32 to be exactly Wei root 32, and the rest may be inferred, so no matter to be which kind of Wei root form, also just can to have discerned one by one.
The foregoing description only is explanation technical conceive of the present invention and characteristics, and its purpose is to allow the personage who is familiar with this technology can understand content of the present invention and enforcement according to this, can not limit protection scope of the present invention with this.All equivalences that spirit is done according to the present invention change or modify, and all should be encompassed within protection scope of the present invention.
Claims (3)
1, a kind of Wiegand signal automatic-identifying method is characterized in that:
(1), controller is receiving a string low level pulse Wiegand signal that D0 and two signal wires of D1 transmit simultaneously, each low level pulse that receives is counted by counter;
When (2), counting, from first low level pulse, whenever receive a low level pulse counter data figure place is added one, change waiting status then over to, stand-by period is greater than the higher limit of width range between two low level pulses of Wei root formal definition, promptly more than 4 milliseconds, if within the stand-by period, there is next low level pulse to transmit the counter data figure place is added one, and then change waiting status over to, the rest may be inferred, transmit until no low level pulse within the stand-by period, think that then a string low level pulse Wiegand signal transmits end;
(3), then the low level pulse number counted according to corresponding a string low level pulse Wiegand signal in the counter of controller which kind of Wei root form differentiates the Wiegand signal of being counted be, do corresponding processing according to the data characteristics of this corresponding Wei root form again, calculate card number.
2, Wiegand signal automatic-identifying method according to claim 1, it is characterized in that: when a string low level pulse Wiegand signal is counted, the initial value of counter is zero, after a string low level pulse Wiegand signal transmitted and finishes, the count value of counter was represented the number of current a string low level pulse.
3, Wiegand signal automatic-identifying method according to claim 1, it is characterized in that: when a string low level pulse Wiegand signal is counted, after a string low level pulse Wiegand signal transmitted and finishes, the difference that the count value of counter deducts last count value was represented the number of current a string low level pulse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510122942 CN1776706A (en) | 2005-12-05 | 2005-12-05 | Wiegand signal automatic-identifying method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510122942 CN1776706A (en) | 2005-12-05 | 2005-12-05 | Wiegand signal automatic-identifying method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1776706A true CN1776706A (en) | 2006-05-24 |
Family
ID=36766189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200510122942 Pending CN1776706A (en) | 2005-12-05 | 2005-12-05 | Wiegand signal automatic-identifying method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1776706A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101655994B (en) * | 2008-08-19 | 2012-02-15 | 深圳达实智能股份有限公司 | Multi-path Wiegand signal input method and device |
CN102890667A (en) * | 2012-09-17 | 2013-01-23 | 广州英码信息科技有限公司 | Device and method for processing wiegand data |
CN103941840A (en) * | 2014-04-28 | 2014-07-23 | 中央民族大学 | Multi-way power management system based on fingerprint recognition |
CN106570984A (en) * | 2016-10-19 | 2017-04-19 | 厦门中控生物识别信息技术有限公司 | Card number verification method, device and system capable of supporting various wiegand formats |
CN106960168A (en) * | 2016-01-11 | 2017-07-18 | 杭州海康威视数字技术股份有限公司 | A kind of card number data capture method and device |
CN115061960A (en) * | 2022-06-10 | 2022-09-16 | 睿云联(厦门)网络通讯技术有限公司 | Adaptive processing method and system for wiegend signal |
-
2005
- 2005-12-05 CN CN 200510122942 patent/CN1776706A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101655994B (en) * | 2008-08-19 | 2012-02-15 | 深圳达实智能股份有限公司 | Multi-path Wiegand signal input method and device |
CN102890667A (en) * | 2012-09-17 | 2013-01-23 | 广州英码信息科技有限公司 | Device and method for processing wiegand data |
CN103941840A (en) * | 2014-04-28 | 2014-07-23 | 中央民族大学 | Multi-way power management system based on fingerprint recognition |
CN106960168A (en) * | 2016-01-11 | 2017-07-18 | 杭州海康威视数字技术股份有限公司 | A kind of card number data capture method and device |
CN106960168B (en) * | 2016-01-11 | 2020-02-04 | 杭州海康威视数字技术股份有限公司 | Card number data acquisition method and device |
CN106570984A (en) * | 2016-10-19 | 2017-04-19 | 厦门中控生物识别信息技术有限公司 | Card number verification method, device and system capable of supporting various wiegand formats |
CN106570984B (en) * | 2016-10-19 | 2019-08-02 | 厦门中控智慧信息技术有限公司 | Support card number verification method, the apparatus and system of a variety of Wiegand formats |
CN115061960A (en) * | 2022-06-10 | 2022-09-16 | 睿云联(厦门)网络通讯技术有限公司 | Adaptive processing method and system for wiegend signal |
CN115061960B (en) * | 2022-06-10 | 2023-05-05 | 睿云联(厦门)网络通讯技术有限公司 | Wiegand signal self-adaptive processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1776706A (en) | Wiegand signal automatic-identifying method | |
DE102004009359B4 (en) | Electronic control unit for monitoring a microcomputer | |
CN1075580A (en) | The frame pocket transmission and the reception of parallel/serial | |
DE19845248B4 (en) | A universal serial bus hub and method of performing a universal serial bus transmission therein | |
DE10014671B4 (en) | Apparatus and method for detecting data communication properties | |
CN1097930C (en) | Data communication system and device for such a system | |
DE10225556A1 (en) | Networked system earthing testing method, especially for a motor vehicle CAN bus system, in which voltage levels are measured in an idle state and compared with threshold values, over a given and then a longer period if necessary | |
DE3433944C2 (en) | Endoscopic device | |
CN106250075A (en) | Video adapter alignment | |
CN1501247A (en) | Programmable glitch filter for asynchronous data communication interface | |
CN113223287B (en) | SPI-based communication method and system for intelligent electric energy meter and load identification module | |
CN102662902B (en) | Method, device and system for preventing I2C (inter-integrated circuit) bus locking | |
CA2313989C (en) | Method for the sampling of biphase coded digital signals | |
CN100343858C (en) | Transmission error resistant reader station | |
EP1215564A1 (en) | Ic card connector | |
DE4438836A1 (en) | Circuit arrangement | |
EP1153339B1 (en) | Method and device for function selection of a control unit | |
CN2725904Y (en) | Clock detector | |
CN110297794A (en) | Data communication system and method | |
CN109871342B (en) | Self-adaptive connection serial interface circuit and self-adaptive connection method thereof | |
JP4449332B2 (en) | IC card connection device | |
EP3771136A1 (en) | Installed module and method for operating an installed module | |
DE102022213770A1 (en) | ERROR RATE INTERRUPTIONS IN HARDWARE FOR FAST SIGNALING CONNECTION | |
CN117201366A (en) | Bode rate detection method and device based on LIN bus | |
CN102385836A (en) | Control method, control device and control system of backlight brightness |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |