This application claims the priority of Chinese Patent Application No. 201110406846.1, entitled “PAPER-TYPE DETECTION DEVICE AND DETECTION METHOD”, filed with State Intellectual Property Office of PRC on Dec. 8, 2011, which is hereby incorporated by reference in its entirety.
The present invention relates to the field of financial technology, and in particular to a paper currency detection apparatus and a paper currency detection method for an anti-interference detection of a damaged paper currency or a paper material foreign matter in an Automatic Teller Machine (abbreviated as ATM).
Detecting transmission states of a paper currency in a channel by using an optical sensor is a method generally used in an ATM. A detection apparatus for a paper currency and the like in the prior art usually includes an optical sensor, a control unit and a storage unit. A group of sensor state sequences representing information of paper currencies may be generated under triggering of a given clock when a group of paper currencies pass through the optical sensor in sequence, and the group of the sensor state sequences, after being binarized by the sensor unit, may be described as time sequence logical states shown in Table 1:
The transformation among the logical states of the paper currency is implemented by the control unit, the employed method is shown in
According to the record method of Table 2, normally only one “paper currency arrival” state and only one “paper currency leave” state can occur to the control unit during the whole collection period when a complete paper currency passes through the optical sensor, and therefore an piece of unique paper currency record information corresponds to the paper currency.
However, paper currencies of various counties in the world are different in design, and paper currencies of some counties themselves have features such as holes and gaps; moreover, the paper currency is easy to be damaged during circulation and is worsened gradually. So several “paper currency arrival” states and several “paper currency leave” states might occur when the worsened paper currency passes through the optical sensor (for example, the damaged paper currency has gaps), and thus several pieces of record information are generated for one paper currency. As a result, the state machine shown in
Embodiments of the present invention provide a paper currency detection apparatus and a paper currency detection method, which can effectively eliminate interferences due to the worsened paper currencies and ensure that the record sequence of the paper currency information is the same as the transmission sequence of the paper currency.
An embodiment of the present invention provides a paper currency detection apparatus, which includes:
In addition, an embodiment of the present invention further provides a paper currency detection method, which includes the following steps:
The embodiments of the present invention have the following beneficial effects:
a-2b are structural diagram of a paper currency detection apparatus provided by the present invention;
The technical solutions of the embodiments of the present disclosure will be described clearly and completely in conjunction with the drawings. Apparently, the described embodiments are only some rather than all embodiments of the present disclosure. Any other embodiments obtained from the embodiments of the present disclosure by those skilled in the art without any inventive labor fall within the scope of the invention.
Referring to
The sensor unit 10 is used for detecting a transmission state of a paper currency 100 on a transmission channel 2 according to a fixed clock period, and binarizing the detected signal to represent whether the paper currency 100 appears.
The storage unit 20 is used for collecting the signal detected by the sensor unit 10, acquiring paper currency information in the signal and storing the paper currency information in sequence.
The control unit 30 includes a first state counter and a second state counter. When the time sequence state of the signal detected by the sensor unit 10 represents that the paper currency appears and the count value of the second state counter is 0 or reaches or exceeds a preset threshold, the control unit 30 suspends the counting of the second state counter, and meanwhile resets and starts counting of the first state counter according to the fixed clock period; when the count value of the first state counter reaches or exceeds the preset threshold, the control unit 10 suspends the counting of the first state counter, and adjusts a pointer in the storage unit for recording paper currency information to make it point to a next storage location of paper currency information; when the time sequence state of the signal detected by the sensor unit 10 represents that the paper currency disappears and the count value of the first state counter is 0 or reaches or exceeds the preset threshold, the control unit 30 suspends the counting of the first state counter, and meanwhile resets and starts the counting of the second state counter according to the fixed clock period; when the count value of the second state counter reaches or exceeds the preset threshold, the control unit 30 suspends the counting of the second state counter, and controls the storage unit 20 to store the acquired paper currency information into the storage location pointed by the pointer.
The clock unit 40 is used for providing the fixed clock period.
The preset threshold is determined by the following equation:
P=[K·W/(V·T)];
Referring to
A specific process flow of the paper currency detection method of the present invention is further described below in connection with
It can be known from an analysis that in the existing paper currency detection method, the transformation of logical states of the paper currency would be interfered when a worsened paper currency passes through the optical sensor, and the essence of such interference is that there are several time sequences of “shielded (D)−>lighted (L)” and “lighted (L)−>shielded” (i.e., Q0 Q1==LD or Q0 Q1==DL). In order to eliminate such interference in the time sequences, in the control unit 30 according to the present invention, the following improvements are made based on the state machine of the prior art shown in
After the improvement, the new logical states of the paper currency of the present invention are shown in Table 3:
From the logical states of the paper currency shown in
Referring to
The paper currency detection apparatus and paper currency detection method of the present invention are described by a specific embodiment below in connection with
In the present embodiment, the clock unit 40 outputs clocks of a fixed period; the sensor unit 10 collects the signal of the sensor according to the period and converts the signal to a binarization state; the control unit 30 determines the time sequence state of the sensor unit 10 and the values of the first state counter CNT1 and the second state counter CNT0 according to the clock period, and performs corresponding processes.
When a paper currency C05 with a hole is transmitted on a paper currency transmission channel (provided that the width of the hole H02 is within P clock periods and is larger than 1 clock period), the initial logical state is the paper currency nonexistence state (S1), and the control unit 30 determines the following two conditions when the paper currency arrives at the sensor unit 10 (which is an optical sensor 10 in the present embodiment):
The two conditions are both satisfied for the paper currency C05, so the logical state of the paper currency is changed to the paper currency temporal arrival state (S5) (step 1 in
During the paper currency temporal arrival state (S5), the control unit 30 resets the first state counter CNT1 and restarts the CNT1 to count; the CNT1 accumulates according to the clock period, while the value of the second state counter CNT0 is unchanged; the storage unit 20 begins to collect the state sequence of the optical sensor 10.
The logical state of the paper currency is changed to the paper currency arrival state (S4) when the control unit 30 detects that the following two conditions are satisfied (step 2 in
The paper currency arrival state (S4) is maintained for only one clock period, and the control unit 30 adjusts the paper currency record pointer in the storage unit 20 to point to the next record location (step 2 in
During the paper currency existence state (S3), the first state counter CNT1 keeps on accumulating according to the clock period, while the value of the second state counter CNT0 is unchanged; the storage unit keeps on collecting the state sequence of the optical sensor 10.
The control unit 30 performs judgment according to the following two conditions when the hole H02 arrives at the optical sensor 10:
These two conditions are both satisfied for the paper currency C05, so the logical state of the paper currency is changed to the paper currency temporal leave state (S6) (step 4 in
During the paper currency temporal leave state (S6), the control unit 30 resets the second state counter CNT0 and restarts the CNT0 to count; the CNT0 begins to accumulate according to the clock period, while the value of the first state counter CNT1 is unchanged; the storage unit 20 keeps on collecting the state sequence of the optical sensor 10.
When the hole H02 leaves the optical sensor 10, the control unit 30 judges according to the condition (1) and the condition (2), and determines that the condition (2) is not satisfied because the last state is the paper currency temporal leave state (S6) but not the paper currency nonexistence state (S1), so the logical state of the paper currency is unchanged even though the hole H02 leaves the optical sensor 10 (step 5 in the
Subsequently, the control unit 30 changes the state to the paper currency existence state (S3) (step 6 in
When the paper currency leaves the optical sensor 10 actually, the control unit 30 determines the condition (5) and the condition (6) are both satisfied, and changes the state to the paper currency temporal leave state (S6) again (step 7 in
The logical state of the paper currency is changed to the paper currency leave state (S2) when the control unit 30 detects that the following two conditions are satisfied (step 8 in
The paper currency leave state (S4) is also maintained for only one clock period, and the storage unit 20 calculates the paper currency information and stores the paper currency information into the location pointed by the record pointer. Until now, the detection and record of the paper currency is accomplished.
The present invention is not limited to the above embodiments and can be implemented with various variations. For example, in the embodiments of the present invention the paper currency detection is implemented with the optical sensor, however, in a same way, other types of sensors (such as a thickness detection sensor, an image detection sensor) are applicable, as long as the signal from the sensors can be binarized and can be represented as an appearance state or a disappearance state of the paper currency.
In addition, in the embodiments of the present invention description is mainly made with reference to how to eliminate the interference due to the worsened paper currency, and in a same way, the interference to the sensor's signal itself and the interference due to the paper material foreign matter (for example, scrap paper and fragmental paper) can also be eliminated by the present method.
What described above are preferable embodiments of the present invention. It should be noted that some improvements and modifications may be made by those ordinary skilled in the art without departing from the principle of the present invention, and these improvements and modifications are regarded as falling within the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201110406846.1 | Dec 2011 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN2012/083604 | 10/26/2012 | WO | 00 | 3/28/2014 |