CN107958535B - Method and device for acquiring paper money information and terminal equipment - Google Patents

Method and device for acquiring paper money information and terminal equipment Download PDF

Info

Publication number
CN107958535B
CN107958535B CN201711058475.6A CN201711058475A CN107958535B CN 107958535 B CN107958535 B CN 107958535B CN 201711058475 A CN201711058475 A CN 201711058475A CN 107958535 B CN107958535 B CN 107958535B
Authority
CN
China
Prior art keywords
information
paper money
banknote
queue
paper
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.)
Active
Application number
CN201711058475.6A
Other languages
Chinese (zh)
Other versions
CN107958535A (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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201711058475.6A priority Critical patent/CN107958535B/en
Publication of CN107958535A publication Critical patent/CN107958535A/en
Application granted granted Critical
Publication of CN107958535B publication Critical patent/CN107958535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/20Controlling or monitoring the operation of devices; Data handling
    • G07D11/22Means for sensing or detection
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/10Mechanical details
    • G07D11/16Handling of valuable papers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/20Controlling or monitoring the operation of devices; Data handling
    • G07D11/32Record keeping

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention is suitable for the technical field of financial industry information processing, and provides a method, a device and a terminal device for acquiring paper money information, wherein the method comprises the following steps: monitoring whether paper money enters a money detecting mechanism or not in a preset state; if the situation that paper money enters the money detecting mechanism is monitored, establishing a paper money information queue, and determining whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue; if the banknote information reported by the banknote checking mechanism is received within the first preset time for establishing the banknote information queue, writing the reported banknote information into the banknote information queue; the problems that in the prior art, the ATM machine core module is low in communication efficiency and high in system resource occupancy rate, and communication data cannot be effectively acquired are solved.

Description

Method and device for acquiring paper money information and terminal equipment
Technical Field
The invention belongs to the technical field of information processing in financial industry, and particularly relates to a method and a device for acquiring paper money information and terminal equipment.
Background
With the advancement of technology, automation equipment is increasingly occupying the market. ATM (Automatic Teller Machine) machines have been widely used as a representative of automated devices in the financial industry. In an ATM machine core module, a main control module needs to communicate with a currency detector in real time so as to obtain the information of each paper currency after passing through the paper currency, including information of true and false paper currency, serial number and the like.
The prior art has some defects, firstly, the communication efficiency is low, two times of communication are needed to obtain the information of each paper currency, and when a large amount of paper currency and other information are processed, a main control module or a currency detector module needs to occupy more system resources; secondly, communication data is not effectively guaranteed, and when communication information is lost (a command sent by the main control module is lost or a paper money information result returned by the currency detector is lost) at a certain time, the current paper money information cannot be correctly obtained.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a terminal device for acquiring banknote information, so as to solve the problems in the prior art that the communication efficiency of an ATM core module is low, the system resource occupancy rate is high, and it cannot be guaranteed that communication data is effectively acquired.
A first aspect of an embodiment of the present invention provides a method for acquiring banknote information, including:
monitoring whether paper money enters a money detecting mechanism or not in a preset state;
if the situation that paper money enters the money detecting mechanism is monitored, establishing a paper money information queue, and determining whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue;
and if the banknote information reported by the banknote checking mechanism is received within the first preset time for establishing the banknote information queue, writing the reported banknote information into the banknote information queue.
A second aspect of the embodiments of the present invention provides an apparatus for acquiring banknote information, including:
the monitoring unit is used for monitoring whether paper money enters the money detecting mechanism or not in a preset state;
the device comprises an establishing unit, a receiving unit and a processing unit, wherein the establishing unit is used for establishing a paper money information queue if the fact that paper money enters a money detecting mechanism is monitored, and confirming whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue;
and the first writing unit is used for writing the reported paper money information into the paper money information queue if the paper money information reported by the currency detecting mechanism is received within first preset time for establishing the paper money information queue.
A third aspect of the present embodiment provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method provided in the first aspect of the present embodiment when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by one or more processors, performs the steps of the method provided by the first aspect of embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the invention monitors whether paper money enters the money detecting mechanism or not in a preset state; if the situation that paper money enters the money detecting mechanism is monitored, establishing a paper money information queue, and determining whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue; if the banknote information reported by the banknote checking mechanism is received within the first preset time for establishing the banknote information queue, writing the reported banknote information into the banknote information queue; by the method, the currency detecting mechanism in the ATM can actively report the information of the paper currency without receiving the instruction of the main control module, so that the communication efficiency of the core module is improved, and the occupancy rate of system resources is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of a method for acquiring banknote information according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a method for acquiring banknote information according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a banknote information acquisition device provided in an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device provided in an embodiment of the present invention;
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic flow chart of an implementation of a method for acquiring banknote information according to an embodiment of the present invention, where as shown in the figure, the method includes the following steps:
step S101, in a preset state, whether paper money enters a money detecting mechanism or not is monitored.
In practical applications, the predetermined state may be a preset active reporting mode of the banknote checking mechanism. In the mode, after the currency detecting mechanism identifies the current paper currency, the identification result is actively reported to the main control module.
In practical application, a sensor (such as an optical sensor) can be arranged to monitor whether paper money enters the currency examining mechanism. For example, a sensor is installed at a coin inlet of the currency detecting mechanism, when the paper money passes through the coin inlet, the sensor is triggered, and at the moment, the main control module can receive information that the paper money enters the currency detecting mechanism.
Step S102, if the situation that paper money enters the money detecting mechanism is monitored, a paper money information queue is established, and whether the paper money information reported by the money detecting mechanism is received or not is confirmed within first preset time for establishing the paper money information queue.
Wherein the bill information queue includes: the paper money enters a sequence number, a paper money information mark position and a paper money information data domain;
the banknote information includes: the serial number of the paper money identification sequence, the information of the paper money authenticity and the serial number of the paper money.
In practical application, the banknote information marking position may be used to mark whether the banknote information of the current banknote has been reported to the main control module. The banknote information flag bit may be set as a default, or may be set as a default, for example, when a banknote information queue is established, the banknote information flag bit is set to 0, and after the banknote information of the current banknote is reported to the main control module, the banknote information flag bit is set to 1. And the paper money information data field is empty by default, and the main control module writes the paper money information into the paper money information data field after receiving the paper money information reported by the currency detecting mechanism.
Further, before monitoring whether paper money enters the currency examining mechanism, the method further comprises the following steps:
setting the paper currency entering sequence number and the paper currency identification sequence number as initial values;
the establishing of the paper money information queue comprises the following steps:
adding 1 to the serial number of the paper money entering sequence;
after the note passes through the validator mechanism, the note identification sequence number is incremented by 1.
In practical applications, the initial value may be 0, or may be other natural numbers other than 0. The serial number of the paper money entering sequence is added with 1, and the serial number of the paper money entering sequence can also be subtracted with 1 or added with a preset numerical value. The serial number of the paper money identification sequence is added with 1, and the serial number of the paper money identification sequence can also be subtracted with 1 or added with a preset numerical value. Note that, as long as the order of entering the banknotes and the order of identifying the banknotes can be numbered, how to number is not particularly limited.
Illustratively, after the banknote checking module is started to actively report the working mode, the banknote entering sequence number and the banknote identification sequence number are set to be 0 (namely, the banknote sequence number and the banknote identification sequence number are reset every time the banknote checking mechanism is restarted, so that the number of banknotes for checking each time can be accurately counted, and the correctness of the number is ensured), and when the banknote entering sequence number is monitored every time the banknote checking mechanism is started, the banknote entering sequence number is added with 1; and after each time of paper currency passing through the currency detecting mechanism, namely after the paper currency is identified, adding 1 to the paper currency identification sequence number.
In practical applications, the first predetermined time may be preset manually. The banknote entering sequence number may be a number of banknotes in the sequence in which the banknotes enter the banknote validating mechanism. The banknote recognition order number may be a number that is given to the banknotes in the order in which the banknotes are recognized. When the currency detecting mechanism works normally and all the paper currency identification results are normal, the paper currency entering sequence number and the paper currency identification sequence number are consistent; when the bill checking mechanism is out of order or the identification of a certain bill is in trouble, the entering sequence number of the bill and the identification sequence number of the bill may be inconsistent.
Step S103, if the banknote information reported by the banknote checking mechanism is received within the first preset time for establishing the banknote information queue, the reported banknote information is written into the banknote information queue.
Further, before writing the reported banknote information into the banknote information queue, the method further includes:
setting a paper money information marking position in the paper money information queue as preset information, and judging whether the current paper money entering sequence number is consistent with the current paper money identification sequence number or not;
if the current paper currency entering sequence number is consistent with the current paper currency identification sequence number, writing the reported paper currency information into a paper currency information data field in the paper currency information queue;
and if the current paper currency entering sequence number is not consistent with the current paper currency identification sequence number, deleting the currently reported paper currency information.
The preset information may be manually preset, and the preset information may be a specific numerical value, a certain symbol (such as a #, a #), or a letter, as long as the preset information is different from the content of the banknote information mark bit in the initially established banknote information queue, and is not specifically limited herein. Illustratively, the banknote information marking position in the banknote information queue is empty, and if the banknote information reported by the banknote checking mechanism is received within a first preset time period during which the banknote information queue is established, the banknote information marking position is set to 1.
In practical application, if the current banknote entering sequence number is consistent with the current banknote identification sequence number, the current banknote checking mechanism works normally, and the current banknote identification result is normal, and at the moment, the reported banknote information is written into the banknote information data field in the banknote information queue; if the current paper currency entering sequence number is not consistent with the current paper currency identification sequence number, the current paper currency detection mechanism is abnormal in work, or the current paper currency identification is in fault, at the moment, the reported paper currency information is possibly incorrect, so the currently reported paper currency information needs to be deleted, and the processing is stopped to search the reason.
The embodiment of the invention monitors whether paper money enters the money detecting mechanism or not in a preset state; if the situation that paper money enters the money detecting mechanism is monitored, establishing a paper money information queue, and determining whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue; if the banknote information reported by the banknote checking mechanism is received within the first preset time for establishing the banknote information queue, writing the reported banknote information into the banknote information queue; by the method, the currency detecting mechanism in the ATM can actively report the information of the paper currency without receiving the instruction of the main control module, so that the communication efficiency of the core module is improved, and the occupancy rate of system resources is reduced; when the currency detecting mechanism does not report the information of the paper currency actively, the main control module can also confirm through actively acquiring the command, and the accuracy and the validity of the communication data are ensured.
Fig. 2 is a schematic flow chart of an implementation of a method for acquiring banknote information according to another embodiment of the present invention, as shown in the figure, the method includes the following steps:
step S201, in a predetermined state, monitoring whether there is a banknote entering the banknote checking mechanism.
The step is the same as step S101, and reference may be made to step S101, which is not described herein again.
Step S202, if the situation that paper money enters the money detecting mechanism is monitored, a paper money information queue is established, and whether the paper money information reported by the money detecting mechanism is received or not is confirmed within the first preset time for establishing the paper money information queue.
The step is the same as step S102, and reference may be made to step S102, which is not described herein again.
Step S203, if the banknote information reported by the banknote checking mechanism is not received within the first preset time of establishing the banknote information queue, whether the information that the banknote passes through the banknote checking mechanism is received or not is confirmed through a sensor.
In practical application, a triggering sensor is usually installed at a coin outlet of the currency detecting mechanism, when a paper currency passes through the currency detecting mechanism and the coin outlet of the currency detecting mechanism, the triggering sensor can be triggered, and the main control module can receive the information that the paper currency passes through the currency detecting mechanism.
In practical application, if the main control module does not receive the banknote information reported by the banknote checking mechanism, whether the current banknote passes through the banknote checking mechanism or not needs to be confirmed, so that whether the banknote is identified or not is judged, and further, whether the banknote identification is in a problem or the banknote checking mechanism is in a fault can be judged. For example, if a current banknote has passed through the validator mechanism, it may be that current banknote identification is problematic; if the current note has passed through the validator mechanism, it may be that the validator mechanism is malfunctioning.
And step S204, if the information that the paper money passes through the money detecting mechanism is received through the sensor, emptying the information in the current paper money information queue.
Further, before emptying the information in the current banknote information queue, the method further comprises the following steps:
confirming whether a paper money information mark position in the paper money information queue is set as preset value information;
if the paper money information mark position in the paper money information queue is set as preset value information, emptying the information in the current paper money information queue;
and if the banknote information mark position in the banknote information queue is not set with preset value information, sending an instruction for acquiring the banknote information to the banknote checking mechanism.
Exemplarily, after receiving the information that the paper money passes through the money detecting mechanism, determining whether a paper money information flag bit in the paper money information queue is set as preset information, if the paper money information flag bit in the paper money information queue is set as preset information, it indicates that the paper money information of the current paper money has been reported to the main control module, and the paper money information of the current paper money has been written into a paper money information data field in the paper money information queue, at this time, the main control module processes the current paper money according to the paper money information, and after the processing is completed, the information in the current paper money information queue needs to be emptied so as to process the next paper money; if the note information mark position in the note information queue is not set as the preset information, it indicates that the note information of the current note is not reported to the main control module, and the note information of the current note is not written into the note information data field in the note information queue, at this time, the main control module needs to actively acquire the note information from the note checking mechanism, that is, an instruction for acquiring the note information is sent to the note checking mechanism.
Wherein the processing of the current banknote may be: if the current paper currency crown word number is correct and the paper currency is true, the paper currency passes through the paper currency smoothly; and if the banknote information shows that the crown word number of the current banknote is incorrect or the banknote is a counterfeit banknote, rejecting the banknote and sending a counterfeit banknote report signal. It should be noted that the above is only an example of processing the current banknote, and does not limit the method of processing the current banknote.
Further, after sending the instruction for acquiring the banknote information to the banknote checking mechanism, the method further includes:
if the banknote information sent by the banknote checking mechanism is received, writing the banknote information into a banknote information data field in the banknote information queue, and processing the current banknote according to the banknote information;
and if the banknote information sent by the banknote checking mechanism is not received, generating an abnormal information log.
Exemplarily, the banknote checking mechanism judges whether the identification task of the current banknote is finished after receiving a banknote information acquisition instruction sent by the main control module, if so, the banknote information of the current banknote is sent to the main control module, and the main control module receives the banknote information sent by the banknote checking mechanism, writes the banknote information into a banknote information data field in the banknote information queue, and processes the current banknote according to the banknote information; if the processing is not finished, the identification task is stopped, default abnormal result information is sent to the main control module, the main control module does not receive the paper money information sent by the money detecting mechanism, but receives the default result information, and an abnormal information log is generated so that a worker can analyze the reason. The default result information may be preset information used for indicating that the currency detection result is abnormal.
In practical application, if the information that the paper money passes through the money detecting mechanism is not received, the main control module can continue to wait for the money detecting mechanism to actively report the information of the paper money; or in the preset time, the main control module continuously waits for the banknote checking mechanism to actively report the banknote information, and if the preset time is exceeded, the banknote checking is stopped, and a fault alarm is sent out. Wherein the predetermined time may be preset manually.
The invention monitors whether paper money enters the money detecting mechanism or not in a preset state; if the situation that paper money enters the money detecting mechanism is monitored, establishing a paper money information queue, and determining whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue; if the banknote information reported by the banknote checking mechanism is not received within the first preset time for establishing the banknote information queue, whether the information that the banknote passes through the banknote checking mechanism is received or not is confirmed; and if the information that the paper money passes through the money detecting mechanism is received through the sensor, emptying the information in the current paper money information queue. By the method, when the main control module does not receive the paper money information actively reported by the money detecting mechanism, the main control module can judge the current recognition condition of the paper money by confirming whether the paper money passes through the money detecting mechanism, and the accuracy and the validity of communication data are ensured.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 3 is a schematic diagram of a banknote information acquiring apparatus according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of explanation.
The banknote information acquiring apparatus 3 includes:
and the monitoring unit 31 is used for monitoring whether paper money enters the currency examining mechanism or not in a preset state.
The establishing unit 32 is configured to establish a banknote information queue if it is monitored that a banknote enters the banknote checking mechanism, and determine whether banknote information reported by the banknote checking mechanism is received within a first predetermined time period for establishing the banknote information queue.
The first writing unit 33 is configured to, if the banknote information reported by the banknote checking mechanism is received within a first predetermined time period during which the banknote information queue is established, write the reported banknote information into the banknote information queue.
Wherein the bill information queue includes: the paper money enters a sequence number, a paper money information mark position and a paper money information data domain;
the banknote information includes: the serial number of the paper money identification sequence, the information of the paper money authenticity and the serial number of the paper money.
Further, the apparatus 3 further comprises:
and the setting unit is used for setting the marking position of the paper money information in the paper money information queue as preset information before writing the reported paper money information into the paper money information queue, and judging whether the entering sequence number of the current paper money is consistent with the identification sequence number of the current paper money.
And the second writing unit is used for writing the reported paper money information into a paper money information data field in the paper money information queue if the current paper money entering sequence number is consistent with the current paper money identification sequence number.
And the deleting unit is used for deleting the currently reported paper money information if the current paper money entering sequence number is inconsistent with the current paper money identification sequence number.
Further, the apparatus 3 further comprises:
and the confirming unit is used for confirming whether the information of the paper money reported by the paper money detecting mechanism is received or not within the first preset time for establishing the paper money information queue, and confirming whether the information that the paper money passes through the paper money detecting mechanism is received or not through a sensor if the information of the paper money reported by the paper money detecting mechanism is not received within the first preset time for establishing the paper money information queue.
And the first emptying unit is used for emptying the information in the current paper money information queue if the information that the paper money passes through the money detecting mechanism is received.
Further, the apparatus 3 further comprises:
and the setting confirmation unit is used for confirming whether the paper money information mark position in the paper money information queue is set as preset information or not before the information in the current paper money information queue is emptied.
And the second emptying unit is used for emptying the information in the current paper money information queue if the paper money information mark position in the paper money information queue is set as preset information.
And the sending unit is used for sending an instruction for acquiring the paper money information to the money detecting mechanism if the paper money information mark position in the paper money information queue is not set as preset information.
Further, the apparatus 3 further comprises:
and the third writer unit is used for writing the paper money information into a paper money information data field in the paper money information queue and processing the current paper money according to the paper money information after sending the instruction for acquiring the paper money information to the paper money checking mechanism and receiving the paper money information sent by the paper money checking mechanism.
And the recording unit is used for generating an abnormal information log if the banknote information sent by the banknote checking mechanism is not received.
Further, the apparatus 3 further comprises:
and the initialization unit is used for setting the paper currency entering sequence number and the paper currency identification sequence number as initial values before monitoring whether paper currency enters the currency detecting mechanism.
The establishing unit 32 includes:
and the sequence numbering module is used for adding 1 to the sequence number of the paper money.
The device 3 further comprises:
and the identification number unit is used for adding 1 to the serial number of the paper currency identification sequence after the paper currency passes through the currency examination mechanism.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the above-described embodiments of the method for acquiring banknote information, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 31 to 34 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into a monitoring unit, a building unit, a first writing unit, and a first clearing unit, and each unit has the following specific functions:
and the monitoring unit is used for monitoring whether paper money enters the money detecting mechanism or not in a preset state.
The establishment unit is used for establishing a paper money information queue if the fact that paper money enters the money detection mechanism is monitored, and confirming whether the paper money information reported by the money detection mechanism is received or not within first preset time for establishing the paper money information queue.
And the first writing unit is used for writing the reported paper money information into the paper money information queue if the paper money information reported by the currency detecting mechanism is received within first preset time for establishing the paper money information queue.
Wherein the bill information queue includes: the paper money enters a sequence number, a paper money information mark position and a paper money information data domain;
the banknote information includes: the serial number of the paper money identification sequence, the information of the paper money authenticity and the serial number of the paper money.
Further, the apparatus further comprises:
and the setting unit is used for marking the banknote information in the banknote information queue as preset information before writing the reported banknote information into the banknote information queue, and judging whether the current banknote entering sequence number is consistent with the current banknote identification sequence number.
And the second writing unit is used for writing the reported paper money information into a paper money information data field in the paper money information queue if the current paper money entering sequence number is consistent with the current paper money identification sequence number.
And the deleting unit is used for deleting the currently reported paper money information if the current paper money entering sequence number is inconsistent with the current paper money identification sequence number.
Further, the apparatus further comprises:
and the confirming unit is used for confirming whether the information that the paper money passes through the paper money detecting mechanism is received or not through a sensor if the paper money information reported by the paper money detecting mechanism is not received within the first preset time for establishing the paper money information queue.
And the first emptying unit is used for emptying the information in the current paper money information queue if the information that the paper money passes through the money detecting mechanism is received.
Further, the apparatus further comprises:
and the setting confirmation unit is used for confirming whether the paper money information mark position in the paper money information queue is set as preset information or not before the information in the current paper money information queue is emptied.
And the second emptying unit is used for emptying the information in the current paper money information queue if the paper money information mark position in the paper money information queue is set as preset information.
And the sending unit is used for sending an instruction for acquiring the paper money information to the money detecting mechanism if the paper money information mark position in the paper money information queue is not set as preset information.
Further, the apparatus further comprises:
and the third writer unit is used for writing the paper money information into a paper money information data field in the paper money information queue and processing the current paper money according to the paper money information after sending the instruction for acquiring the paper money information to the paper money checking mechanism and receiving the paper money information sent by the paper money checking mechanism.
And the recording unit is used for generating an abnormal information log if the banknote information sent by the banknote checking mechanism is not received.
Further, the apparatus further comprises:
and the initialization unit is used for setting the paper currency entering sequence number and the paper currency identification sequence number as initial values before monitoring whether paper currency enters the currency detecting mechanism.
The establishing unit includes:
and the sequence numbering module is used for adding 1 to the sequence number of the paper money.
The device further comprises:
and the identification number unit is used for adding 1 to the serial number of the paper currency identification sequence after the paper currency passes through the currency examination mechanism.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A method for acquiring banknote information, comprising:
monitoring whether paper money enters a money detecting mechanism or not in a preset state; the preset state indicates that the currency detecting mechanism works in an active reporting working mode, and in the active reporting working mode, after the currency detecting mechanism identifies the current paper currency, the identification result is actively reported to the main control module;
if the situation that paper money enters the money detecting mechanism is monitored, establishing a paper money information queue, and determining whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue;
if the banknote information reported by the banknote checking mechanism is received within the first preset time for establishing the banknote information queue, writing the reported banknote information into the banknote information queue;
wherein the bill information queue includes: the paper money enters a sequence number, a paper money information mark position and a paper money information data domain;
the banknote information includes: identifying sequence number of paper money, information of true and false of paper money and serial number of paper money;
the note information marking position is used for marking whether the note information of the current note is reported to the main control module;
before writing the reported banknote information into the banknote information queue, the method further includes:
setting a paper money information marking position in the paper money information queue as preset information, and judging whether the current paper money entering sequence number is consistent with the current paper money identification sequence number or not;
if the current paper currency entering sequence number is consistent with the current paper currency identification sequence number, writing the reported paper currency information into a paper currency information data field in the paper currency information queue;
and if the current paper currency entering sequence number is not consistent with the current paper currency identification sequence number, deleting the currently reported paper currency information.
2. The method for acquiring banknote information according to claim 1, wherein after confirming whether the banknote information reported by the banknote validating mechanism is received within a first predetermined time of establishing the banknote information queue, the method further comprises:
if the banknote information reported by the banknote checking mechanism is not received within the first preset time of establishing the banknote information queue, determining whether the information that the banknote passes through the banknote checking mechanism is received or not through a sensor;
and if the information that the paper money passes through the money detecting mechanism is received, emptying the information in the current paper money information queue.
3. The method for acquiring banknote information according to claim 2, further comprising, before emptying the information in the current banknote information queue:
confirming whether a paper money information mark position in the paper money information queue is set as preset value information;
if the paper money information mark position in the paper money information queue is set as preset value information, emptying the information in the current paper money information queue;
and if the note information mark position in the note information queue is not set as preset value information, sending an instruction for acquiring the note information to the currency detecting mechanism.
4. The method for acquiring banknote information according to claim 3, further comprising, after sending an instruction for acquiring the banknote information to the banknote validating mechanism:
if the banknote information sent by the banknote checking mechanism is received, writing the banknote information into a banknote information data field in the banknote information queue, and processing the current banknote according to the banknote information;
and if the banknote information sent by the banknote checking mechanism is not received, generating an abnormal information log.
5. The method for acquiring banknote information according to any one of claims 1 to 4, wherein before monitoring whether a banknote enters the banknote validating mechanism, the method further comprises:
setting the paper currency entering sequence number and the paper currency identification sequence number as initial values;
the establishing of the paper money information queue comprises the following steps:
adding 1 to the serial number of the paper money entering sequence;
after the note passes through the validator mechanism, the note identification sequence number is incremented by 1.
6. An acquisition apparatus of banknote information, characterized by comprising:
the monitoring unit is used for monitoring whether paper money enters the money detecting mechanism or not in a preset state; the preset state indicates that the currency detecting mechanism works in an active reporting working mode, and in the active reporting working mode, after the currency detecting mechanism identifies the current paper currency, the identification result is actively reported to the main control module;
the device comprises an establishing unit, a receiving unit and a processing unit, wherein the establishing unit is used for establishing a paper money information queue if the fact that paper money enters a money detecting mechanism is monitored, and confirming whether the paper money information reported by the money detecting mechanism is received or not within first preset time for establishing the paper money information queue;
the first writing unit is used for writing the reported paper money information into the paper money information queue if the paper money information reported by the currency detecting mechanism is received within first preset time for establishing the paper money information queue;
wherein the bill information queue includes: the method comprises the following steps that paper money enters a sequence number, a paper money information marking position and a paper money information data domain, wherein the paper money information marking position is used for marking whether paper money information of current paper money is reported to a main control module; the banknote information includes: identifying sequence number of paper money, information of true and false of paper money and serial number of paper money;
wherein the apparatus further comprises: the setting unit is used for setting the marking position of the paper money information in the paper money information queue as preset information before writing the reported paper money information into the paper money information queue, and judging whether the entering sequence number of the current paper money is consistent with the identification sequence number of the current paper money;
the second writing unit is used for writing the reported paper money information into a paper money information data field in the paper money information queue if the current paper money entering sequence number is consistent with the current paper money identification sequence number;
and the deleting unit is used for deleting the currently reported paper money information if the current paper money entering sequence number is inconsistent with the current paper money identification sequence number.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201711058475.6A 2017-11-01 2017-11-01 Method and device for acquiring paper money information and terminal equipment Active CN107958535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711058475.6A CN107958535B (en) 2017-11-01 2017-11-01 Method and device for acquiring paper money information and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711058475.6A CN107958535B (en) 2017-11-01 2017-11-01 Method and device for acquiring paper money information and terminal equipment

Publications (2)

Publication Number Publication Date
CN107958535A CN107958535A (en) 2018-04-24
CN107958535B true CN107958535B (en) 2020-08-18

Family

ID=61964489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711058475.6A Active CN107958535B (en) 2017-11-01 2017-11-01 Method and device for acquiring paper money information and terminal equipment

Country Status (1)

Country Link
CN (1) CN107958535B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109741518B (en) * 2019-03-01 2021-10-22 聚龙股份有限公司 Paper money information processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997030422A1 (en) * 1996-02-15 1997-08-21 Cummins-Allison Corp. Method and apparatus for document identification
KR20070045450A (en) * 2005-10-27 2007-05-02 주식회사 카스모아이티 Bill counting device
CN103778711A (en) * 2012-10-24 2014-05-07 日立欧姆龙金融系统有限公司 Sheet processing device, sheet sorting device and sheet sorting system
CN105513220A (en) * 2015-11-24 2016-04-20 深圳怡化电脑股份有限公司 Currency examination data fault tolerance processing method based on ATM
CN106846612A (en) * 2016-12-16 2017-06-13 恒银金融科技股份有限公司 A kind of finance device channel status detection method and device
CN107180481A (en) * 2017-04-01 2017-09-19 深圳怡化电脑股份有限公司 A kind of finance self-help traction equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958804B (en) * 2010-09-20 2014-05-28 中兴通讯股份有限公司 Method for promoting warning processing efficiency, server and system
CN103166827A (en) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 Method and system for user behavior data reporting
CN103413264A (en) * 2013-08-28 2013-11-27 庄葵 Fire-fighting equipment information processing system and method based on PDA (Personal Digital Assistant)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997030422A1 (en) * 1996-02-15 1997-08-21 Cummins-Allison Corp. Method and apparatus for document identification
KR20070045450A (en) * 2005-10-27 2007-05-02 주식회사 카스모아이티 Bill counting device
CN103778711A (en) * 2012-10-24 2014-05-07 日立欧姆龙金融系统有限公司 Sheet processing device, sheet sorting device and sheet sorting system
CN105513220A (en) * 2015-11-24 2016-04-20 深圳怡化电脑股份有限公司 Currency examination data fault tolerance processing method based on ATM
CN106846612A (en) * 2016-12-16 2017-06-13 恒银金融科技股份有限公司 A kind of finance device channel status detection method and device
CN107180481A (en) * 2017-04-01 2017-09-19 深圳怡化电脑股份有限公司 A kind of finance self-help traction equipment

Also Published As

Publication number Publication date
CN107958535A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN107636741B (en) Fault early warning method of financial terminal, terminal equipment and storage medium
US7199714B2 (en) Verification method of goods using IC tags and equipment using the method
CN107909747B (en) Method and device for acquiring paper money information and terminal equipment
CN109635564A (en) A kind of method, apparatus, medium and equipment detecting Brute Force behavior
CN111179066B (en) Batch processing method and device for business data, server and storage medium
CN110599670A (en) Abnormal detection method and system for number of paper money in money box, server and financial equipment
CN105243301A (en) Keyboard input abnormality detection method and apparatus as well as security prompt method and apparatus
CN103514092A (en) Method for automatic testing of software system of ATM
CN107958535B (en) Method and device for acquiring paper money information and terminal equipment
CN108133540B (en) Detection method and detection device for abnormal number of paper money in paper money box and electronic equipment
CN103679961A (en) Automated trade device and bill processing method
CN109598837B (en) Financial machine and detection method, system and detection server for identification capability of financial machine
CN108230546B (en) Banknote thickness abnormality detection method and device, terminal device and storage medium
CN107358717B (en) A kind of Paper Currency Identification, system and its terminal device
CN108648330B (en) Deposit and withdrawal management method, deposit and withdrawal management device and self-service terminal
CN111176975B (en) Test method, device, equipment and computer readable storage medium
CN114595765A (en) Data processing method and device, electronic equipment and storage medium
CN113255672B (en) Paper money identification method and device and terminal equipment
CN114187116A (en) Method and apparatus for managing account information
CN110599668B (en) Abnormal detection method and system for number of paper money in money box, server and financial equipment
CN113868137A (en) Method, device and system for processing buried point data and server
CN113220598A (en) System test method, apparatus, device, medium, and program product
CN108470404B (en) Gate control method and device for card reader, financial equipment and storage medium
CN107680245B (en) paper money image processing method, paper money image processing device and electronic equipment
CN112116450A (en) Risk early warning method and device

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
GR01 Patent grant
GR01 Patent grant