CN108198326B - Method and device for transmitting paper money data, electronic equipment and storage medium - Google Patents

Method and device for transmitting paper money data, electronic equipment and storage medium Download PDF

Info

Publication number
CN108198326B
CN108198326B CN201711464266.1A CN201711464266A CN108198326B CN 108198326 B CN108198326 B CN 108198326B CN 201711464266 A CN201711464266 A CN 201711464266A CN 108198326 B CN108198326 B CN 108198326B
Authority
CN
China
Prior art keywords
paper money
received
signal
acquisition
mark
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
CN201711464266.1A
Other languages
Chinese (zh)
Other versions
CN108198326A (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 CN201711464266.1A priority Critical patent/CN108198326B/en
Publication of CN108198326A publication Critical patent/CN108198326A/en
Application granted granted Critical
Publication of CN108198326B publication Critical patent/CN108198326B/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/28Setting of parameters; Software updates

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The embodiment of the invention discloses a method and a device for transmitting paper money data, electronic equipment and a storage medium. The method comprises the following steps: when the paper money is placed in the collection area, detecting whether a line synchronization signal is received; if the line synchronization signal is received, sending a paper money acquisition signal to a sensor; detecting whether a new line synchronization signal is received within the current acquisition time length; if the new row synchronization signal is received, sending a paper money collection error message to an upper computer; and if the new row synchronization signal is not received, transmitting the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition time length to the upper computer. The method provided by the embodiment of the invention can detect whether the acquired banknote data is wrong or not in real time in the banknote data acquisition process, so that the possibility that the upper computer identifies the banknotes according to the wrong banknote data is reduced, and the banknote identification efficiency is improved.

Description

Method and device for transmitting paper money data, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for transmitting banknote data, electronic equipment and a storage medium.
Background
In financial devices such as a self-service teller machine, various data (such as banknote data including thickness data and image data) of banknotes are often acquired, and the authenticity or currency value of the banknotes is identified through the acquired banknote data.
At present, for identifying paper money, the lower computer generally collects paper money data, then the lower computer sends the collected paper money data to the upper computer, and the upper computer identifies the paper money according to the received paper money data.
However, in the above process, if the lower computer has an error in the process of acquiring the banknote data, the upper computer may recognize the banknote according to the received erroneous banknote data, and the efficiency of banknote recognition is low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for transmitting paper money data, electronic equipment and a storage medium, which are used for detecting whether the acquired paper money data is wrong or not in real time in the process of acquiring the paper money data, so that the possibility that an upper computer identifies paper money according to the wrong paper money data is reduced, and the efficiency of identifying the paper money is improved.
In a first aspect, an embodiment of the present invention provides a method for transmitting banknote data, where the method includes:
when the paper money is placed in the collection area, detecting whether a line synchronization signal is received;
if the line synchronization signal is received, sending a paper money acquisition signal to a sensor; detecting whether a new line synchronization signal is received within the current acquisition time length;
if the new row synchronization signal is received, sending a paper money collection error message to an upper computer; and if the new row synchronization signal is not received, transmitting the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition time length to the upper computer.
In a second aspect, an embodiment of the present invention further provides a device for transmitting banknote data, where the device includes:
the line synchronization signal detection module is used for detecting whether a line synchronization signal is received or not when the paper money is placed in the collection area;
the new line synchronizing signal detection module is used for sending a paper money collecting signal to the sensor if the line synchronizing signal is received; detecting whether a new line synchronization signal is received within the current acquisition time length;
the acquisition error message sending module is used for sending a paper money acquisition error message to the upper computer if the new row synchronization signal is received;
and the paper money data sending module is used for sending the paper money data collected by the sensor according to the paper money collecting signal in the current collecting time length to the upper computer if the new line synchronizing signal is not received.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a method for banknote data transmission provided by any of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a method for transmitting banknote data according to any of the embodiments of the present invention.
The embodiment of the invention detects whether the line synchronization signal is received or not when the paper money is placed in the collection area; if the line synchronization signal is received, sending a paper money acquisition signal to a sensor; detecting whether a new line synchronization signal is received within the current acquisition time length; if a new row of synchronous signals are received, sending a paper money collection error message to an upper computer; if the new-row synchronizing signal is not received, the paper money data acquired by the sensor in the current acquisition time according to the paper money acquisition signal is sent to the upper computer, the problem of low identification efficiency caused by the fact that the upper computer identifies the paper money according to the wrong paper money data is solved, whether the acquired paper money data is wrong or not is detected in real time in the acquisition process of the paper money data, and an acquisition error message is sent to the upper computer under the condition that the acquisition error is determined to occur, so that the possibility that the upper computer identifies the paper money according to the wrong paper money data is reduced, and the paper money identification efficiency is improved.
Drawings
FIG. 1 is a flow chart of a method for transmitting banknote data according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of an acquisition region according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a banknote being placed in a collection area according to a first embodiment of the present invention;
FIG. 4 is a timing diagram illustrating normal collection of banknote data according to a first embodiment of the present invention;
FIG. 5 is a schematic diagram of an abnormal banknote data collection timing sequence according to a first embodiment of the present invention;
FIG. 6 is a flow chart of a banknote data transmission method according to a second embodiment of the present invention;
fig. 7 is a block diagram of a banknote data transmission device according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a banknote data transmission method according to an embodiment of the present invention, where the embodiment is applicable to a situation where it is necessary to avoid identifying a banknote according to incorrect banknote data, and the method may be implemented by a banknote data transmission device, which may be composed of software and/or hardware, and may be generally integrated in a financial device. Referring to fig. 1, the method provided in this embodiment specifically includes the following steps:
step 110, when the paper money is placed in the collecting area, whether the line synchronization signal is received or not is detected.
The line synchronizing signal is a signal used for controlling the sensor to collect the paper money data.
Preferably, the lower computer generates a line synchronizing signal at intervals of a preset time interval when detecting that the paper money is placed in the collecting area, and the lower computer can detect that the line synchronizing signal is received every time the line synchronizing signal is generated until the number of the line synchronizing signals reaches a preset number.
Preferably, the lower computer sends a banknote collection signal to the sensor if detecting that the row synchronization signal is received, the sensor collects one row of banknote data in the current collection duration after receiving the banknote collection signal, and the lower computer sends the one row of banknote data collected by the sensor in the current collection duration to the upper computer when confirming that the current collection duration is finished. Therefore, the bank note data are collected line by line to obtain complete bank note data; and if the lower computer does not detect that the horizontal synchronizing signal is received, continuously detecting whether the horizontal synchronizing signal is received.
The current acquisition duration is a preset duration from the current receiving of the line synchronization signal, and is smaller than a preset time interval.
Specifically, the number of the line synchronization signals may be determined by a DPI (Dots Per Inch) of the banknote data to be collected, where the higher the DPI is, the larger the preset number is, and the lower the DPI is, the smaller the preset number is.
It should be noted that the sensor for collecting the banknote data may be composed of a plurality of sub-sensors, which is determined according to the actual banknote data to be collected. If the image data of the paper money needs to be collected, the sensor can comprise a plurality of image sensors; if the thickness data of the paper money needs to be collected, the sensor can comprise a plurality of thickness sensors; if the image data and the thickness data of the paper money need to be collected, the sensor may include a plurality of image sensors and a plurality of thickness sensors, which is not limited in this embodiment.
Fig. 2 is a schematic diagram of an acquisition region suitable for this embodiment. Referring to fig. 2, 10 is a collection area, 21 is an emission tube of an infrared sensor, 22 is a receiving tube of an infrared sensor, 30 is a sensor for collecting data of a bill, and 40 is a bill. Specifically, the paper money 40 passes through the collection area 10 from left to right, when the paper money 40 moves to the position shown in fig. 3, if the lower computer detects that the intensity of the infrared ray received by the receiving tube 22 is lower than the intensity of the infrared ray emitted by the emitting tube 21, it is determined that the paper money 40 is placed in the collection area 10, a line synchronization signal is generated at intervals of a preset time interval T until a preset number of line synchronization signals are generated, and the receipt of the line synchronization signal can be detected each time the line synchronization signal is generated. The lower computer sends a paper currency acquisition signal to the sensor 30 every time the lower computer detects that the row synchronization signal is received, the sensor 30 acquires one row of paper currency data of the paper currency 40 in the current acquisition time period Ts after receiving the paper currency acquisition signal, the lower computer sends the one row of paper currency data acquired by the sensor 40 in the current acquisition time period Ts to the upper computer when confirming that the current acquisition time period Ts is finished, and the lower computer repeatedly executes the steps if detecting that the row synchronization signal is received again. Therefore, the banknote data are acquired line by line to obtain complete banknote data of the banknotes 40, and the upper computer can identify the banknotes 40 according to the received banknote data.
Fig. 4 is a schematic diagram of a normal collection timing sequence of banknote data according to this embodiment. In fig. 4, 3 line synchronization signals (rising edges) are generated based on the acquisition regions shown in fig. 3. As shown in fig. 4, when the lower computer detects that the banknote 40 is placed in the collection area, a rising edge is generated at every preset time interval T, when the lower computer detects a first rising edge, a banknote collection signal is sent to the sensor 30, the sensor 30 collects one row of banknote data within the current collection time period Ts, and when the lower computer determines that the current collection time period Ts is over, one row of banknote data collected by the sensor 30 within the current collection time period Ts is sent to the upper computer. When the lower computer confirms that the distance between the lower computer and the first line synchronizing signal reaches a preset time interval T, a second rising edge is generated, and when the lower computer detects the second rising edge, the operations are repeated. Similarly, when the lower computer detects the third rising edge, the operations are repeated. Therefore, the lower computer sends the collected three-line paper money data to the upper computer.
Step 120, if a row synchronization signal is received, sending a paper currency acquisition signal to a sensor, and detecting whether a new row synchronization signal is received within the current acquisition time length; if a new line synchronization signal is received, go to step 130; if no line synchronization signal is received, step 140 is performed.
And step 130, sending a paper money collection error message to the upper computer.
And step 140, sending the paper money data acquired by the sensor in the current acquisition time length according to the paper money acquisition signal to an upper computer.
Because the function of setting the preset time interval between the adjacent lines of synchronization signals is generally implemented by hardware such as an encoder or a counter, in the process of collecting the banknote data, if the hardware for setting the preset time interval is abnormal, the time interval between two adjacent lines of synchronization signals is not the preset time interval, which may result in incomplete collected banknote data.
Fig. 5 is a schematic diagram of an abnormal banknote data collection timing sequence according to an embodiment of the present invention. In fig. 5, the upper part is the acquisition timing of the first line synchronizing signal, and the lower part is the acquisition timing of the second line synchronizing signal and the third line synchronizing signal. As shown in fig. 5, for the normal collection sequence shown in fig. 4, if the time interval T1 between the second rising edge and the first rising edge is smaller than the preset time interval T due to the hardware abnormality that realizes the preset time interval T, if the second rising edge is generated within the current collection time Ts corresponding to the first rising edge, when the lower computer detects the second rising edge, if the banknote collection signal is sent to the sensor 30, because the sensor 30 is collecting the banknote data at this time, no response is made to the received new banknote collection signal, so in this case, one row of banknote data required to be collected by the second rising edge is lost, and if the time interval between the third rising edge and the second rising edge is the preset time interval T, the banknote collection signal is sent to the sensor 30 after the lower computer detects the third rising edge, the sensor 30 collects one line of banknote data within the current collection duration Ts corresponding to the third rising edge, and thus, the lower computer only obtains two lines of banknote data after receiving the three line synchronization signals, resulting in incomplete collected banknote data.
Therefore, in this embodiment, after receiving the row synchronization signal, the lower computer sends a banknote acquisition signal to the sensor to control the sensor to acquire a row of banknote data, and meanwhile, determines whether the acquired banknote data is complete by detecting whether a new row synchronization signal is received within the current acquisition time length, and sends an acquisition error message to the upper computer if the new row synchronization signal is received within the current acquisition time length, and sends the banknote data acquired by the sensor within the current acquisition time length according to the banknote acquisition signal to the upper computer if the new row synchronization signal is not received within the current acquisition time length.
In a specific embodiment, each time the sensor acquires a line of banknote data, the sensor clears the banknote data in the cache, stores the acquired banknote data in the cache, further stores the newly acquired line of banknote data in the cache, and sends the banknote data in the cache to the upper computer when the lower computer confirms that the current acquisition duration is finished.
Preferably, after receiving the collection error message, the upper computer can give up performing recognition according to the received banknote data, so that the possibility of recognizing the banknote according to the wrong banknote data is reduced, and the banknote recognition efficiency is improved.
It will be appreciated by those skilled in the art that in other embodiments, after receiving the banknote collection signal, the sensor may collect a row of banknote data within the current collection duration, so as to collect the banknote data row by row to obtain complete banknote data.
The embodiment of the invention detects whether the line synchronization signal is received or not when the paper money is placed in the collection area; if the line synchronization signal is received, sending a paper money acquisition signal to a sensor; detecting whether a new line synchronization signal is received within the current acquisition time length; if a new row of synchronous signals are received, sending a paper money collection error message to an upper computer; if the new-row synchronizing signal is not received, the paper money data acquired by the sensor in the current acquisition time according to the paper money acquisition signal is sent to the upper computer, the problem of low identification efficiency caused by the fact that the upper computer identifies the paper money according to the wrong paper money data is solved, whether the acquired paper money data is wrong or not is detected in real time in the acquisition process of the paper money data, and an acquisition error message is sent to the upper computer under the condition that the acquisition error is determined to occur, so that the possibility that the upper computer identifies the paper money according to the wrong paper money data is reduced, and the paper money identification efficiency is improved.
Example two
Fig. 6 is a flowchart of a banknote data transmission method according to a second embodiment of the present invention. The method provided by the embodiment is further optimized on the basis of the embodiment. In this embodiment, before sending the banknote data acquired by the sensor according to the banknote acquisition signal within the current acquisition duration to the upper computer, the optimization further includes: receiving a data transmission signal, wherein the data transmission signal is generated when the current acquisition time length is finished; in the process of sending the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition time to the upper computer, the method further comprises the following steps: detecting whether a new data transmission signal is received; if a new data transmission signal is received, sending a paper money transmission error message to the upper computer; will send the collection error message to the host computer, optimize to include: setting the collection mark in the collection mark register as a collection error mark, and sending the address of the collection mark register to an upper computer; will send transmission error message to the host computer, optimize to include: setting a transmission mark in the transmission mark register as a transmission error mark, and sending the address of the transmission mark register to an upper computer; before detecting whether the line synchronization signal is received, optimizing to further comprise: the collection flag in the collection flag register is initialized to a collection correct flag, and the transmission flag in the transmission flag register is initialized to a transmission correct flag.
Specifically, referring to fig. 6, the method provided in this embodiment specifically includes the following steps:
step 210, detecting whether a line synchronization signal is received when the paper currency is placed in the collection area.
Step 220, if the row synchronization signal is received, sending a paper currency acquisition signal to a sensor, and detecting whether a new row synchronization signal is received within the current acquisition time length; if a new line synchronization signal is received, go to step 230; if no new line synchronization signal is received, step 240 is performed.
Step 210 and step 220 are described in detail in the above embodiments, and detailed description is not repeated in this embodiment, for details, please refer to the above embodiments.
And step 230, setting the acquisition mark in the acquisition mark register as an acquisition error mark, and sending the address of the acquisition mark register to the upper computer.
Preferably, if the lower computer detects that a new line synchronization signal is received within the current acquisition duration, the lower computer sets the acquisition mark in the acquisition mark register as an acquisition error mark and sends the address of the acquisition mark register to the upper computer.
Preferably, the upper computer reads the collection mark in the address of the collection mark register after receiving the address of the collection mark register, and if the collection mark is determined to be a collection error mark, the upper computer abandons the identification according to the received paper money data, so that the identification of the paper money according to the wrong paper money data is avoided, and the efficiency of paper money identification is improved.
For example, after the upper computer confirms the collection error flag of the collection flag bit, the upper computer further outputs a collection error code to log information, so that a researcher can confirm the cause of the error according to the collection error code.
Step 240, a data transmission signal is received.
Wherein the data transmission signal is generated at the end of the current acquisition duration.
Specifically, if the lower computer confirms that the current acquisition time length is finished, a data transmission signal is generated, and after the data transmission signal is generated, the lower computer can detect that the data transmission signal is received.
Step 250, sending the paper money data collected by the sensor in the current collection time length according to the paper money collection signal to an upper computer, and detecting whether a new data transmission signal is received or not in the process of sending the paper money data collected by the sensor in the current collection time length according to the paper money collection signal to the upper computer; if a new data transmission signal is received, go to step 260; if no new data transmission signal is received, other original operations are executed.
Preferably, after receiving the data transmission signal, the lower computer sends the paper money data acquired by the sensor in the current acquisition time period according to the paper money acquisition signal to the upper computer, and meanwhile, in the process of sending the paper money data acquired by the sensor in the current acquisition time period according to the paper money acquisition signal to the upper computer, whether a new data transmission signal is received or not is detected.
In a specific embodiment, because the size of the paper money data acquired by the sensor each time is a fixed value, when the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition duration is sent to the upper computer, the lower computer can monitor whether the paper money data sent to the upper computer reaches the fixed value, so as to determine whether the process of sending the paper money data to the upper computer is performed, and further detect whether a new data transmission signal is received or not in the process of sending the paper money data to the upper computer.
In another specific embodiment, if the speed of sending the paper money data to the upper computer by the lower computer is constant, the size of the paper money data collected by the sensor each time is a fixed value, so that the transmission time length required for sending the paper money data to the upper computer after the lower computer receives the data transmission signal each time can be determined, and further, if the lower computer receives the data transmission signal, whether a new data transmission signal is received or not can be detected in the current transmission time length so as to determine whether the new data transmission signal is received or not by the lower computer in the process of sending the paper money data to the upper computer, wherein the current transmission time length is the transmission time length from the data transmission signal being received.
In a specific embodiment, each time the sensor acquires a line of banknote data, the sensor clears the banknote data in the cache, stores the acquired banknote data in the cache, further stores the newly acquired line of banknote data in the cache, and sends the banknote data in the cache to the upper computer after the lower computer receives the data transmission signal.
For example, if the lower computer receives the data transmission signal again in the process of sending the banknote data to the upper computer after receiving the data transmission signal, the lower computer does not respond to the received new data transmission signal because the lower computer is currently in the process of sending the banknote data, and therefore, for two data transmission signals, the lower computer only sends the banknote data to the upper computer once, which results in incomplete banknote data sent to the upper computer.
Based on this, in this embodiment, through in the in-process of sending the paper currency data that the sensor was gathered according to paper currency collection signal in will gathering the duration at present to the host computer, detect whether receive new data transmission signal in order to confirm in the collection process of paper currency data, whether the paper currency data that send to the host computer is wrong.
Step 260, setting the transmission flag in the transmission flag register as a transmission error flag, and sending the address of the transmission flag register to the upper computer.
If a new data transmission signal is received, setting a transmission mark in the transmission mark register as a transmission error mark, and sending the address of the transmission mark register to the upper computer.
Preferably, the upper computer reads the transmission mark in the address of the transmission mark register after receiving the address of the transmission mark register, and if the transmission mark is determined to be a transmission error mark, the upper computer abandons the identification according to the received banknote data, so as to avoid the identification of the banknote according to the error banknote data, and improve the banknote identification efficiency.
For example, after the upper computer confirms that the transmission flag is the transmission error flag, the upper computer further outputs the transmission error code to log information, so that a researcher can confirm the cause of the error according to the transmission error code.
Preferably, before detecting whether the line synchronization signal is received, the method further includes: the collection mark in the collection mark register is initialized to be a collection correct mark, the transmission mark in the transmission mark register is initialized to be a transmission correct mark, and therefore before the collection of the paper money data is started, the collection mark and the transmission mark are respectively initialized to be the collection correct mark and the transmission correct mark, whether the paper money data collection is mistakenly detected or not is guaranteed, and the detection accuracy is improved.
For example, the acquisition correct flag and the transmission correct flag may both be 1, and the acquisition error flag and the transmission error flag may both be 0.
In the embodiment, by receiving the data transmission signal, in the process of sending the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition time period to the upper computer, whether the new data transmission signal is received or not is detected, if the new data transmission signal is received, a paper money transmission error message is sent to the upper computer, whether the paper money data acquired by the lower computer is incorrect or not is further confirmed by detecting whether a new line synchronization signal is received or not in the current acquisition time period, whether the paper money data sent by the upper computer is accurate or not is further confirmed, the detection accuracy is improved, further, the condition that the paper money data sent by the lower computer to the upper computer is incomplete is avoided, the upper computer identifies the paper money according to the received paper money data, and therefore the paper money identification efficiency is.
EXAMPLE III
Fig. 7 is a block diagram of a banknote data transmission device according to a third embodiment of the present invention. The device can be composed of software and/or hardware, and the device is generally integrated in financial equipment. Referring to fig. 7, the apparatus provided in this embodiment includes: a line synchronization signal detection module 310, a new line synchronization signal detection module 320, a collected error message transmission module 330, and a banknote data transmission module 340, wherein,
the line synchronization signal detection module is used for detecting whether a line synchronization signal is received or not when the paper money is placed in the collection area;
the new line synchronizing signal detection module is used for sending a paper money collecting signal to the sensor if the line synchronizing signal is received; detecting whether a new line synchronization signal is received within the current acquisition time length;
the acquisition error message sending module is used for sending a paper money acquisition error message to the upper computer if the new row synchronization signal is received;
and the paper money data sending module is used for sending the paper money data collected by the sensor according to the paper money collecting signal in the current collecting time length to the upper computer if the new line synchronizing signal is not received.
In the embodiment, when the paper money is placed in the acquisition area, the line synchronization signal detection module detects whether a line synchronization signal is received, if the line synchronization signal is received, the new line synchronization signal detection module sends a paper money acquisition signal to the sensor and detects whether a new line synchronization signal is received in the current acquisition time, if the new line synchronization signal is received, the acquisition error message sending module sends a paper money acquisition error message to the upper computer, if the new line synchronization signal is not received, the paper money data sending module sends the paper money data acquired by the sensor in the current acquisition time according to the paper money acquisition signal to the upper computer, so that the problem of low identification efficiency caused by the upper computer identifying the paper money according to the wrong paper money data is solved, whether the acquired paper money data is wrong in real time in the acquisition process of the paper money data is detected, and under the condition that the acquisition error is determined, and sending a collection error message to the upper computer, so that the possibility that the upper computer identifies the paper money according to the wrong paper money data is reduced, and the paper money identification efficiency is improved.
In the foregoing solution, optionally, the apparatus further includes:
the data transmission signal receiving module is used for receiving a data transmission signal, and the data transmission signal is generated when the current acquisition time length is finished;
the new data transmission signal detection module is used for detecting whether a new data transmission signal is received or not in the process of sending the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition duration to the upper computer;
and the transmission error message sending module is used for sending a paper money transmission error message to the upper computer if the new data transmission signal is received.
In the foregoing scheme, optionally, the banknote data sending module is specifically configured to:
if the new line synchronization signal is received, setting the acquisition mark in the acquisition mark register as an acquisition error mark, and sending the address of the acquisition mark register to an upper computer;
the transmission error message sending module is specifically configured to:
and if the new data transmission signal is received, setting a transmission mark in the transmission mark register as a transmission error mark, and sending the address of the transmission mark register to an upper computer.
In the foregoing solution, optionally, the apparatus further includes:
and the register initialization module is used for initializing the acquisition mark in the acquisition mark register to be an acquisition correct mark and initializing the transmission mark in the transmission mark register to be a transmission correct mark before detecting whether the line synchronization signal is received or not.
Example four
Fig. 8 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 8, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 8; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 8.
The memory 420 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the transmission method for banknote data in any embodiment of the present invention (e.g., the line synchronization signal detection module 310, the new line synchronization signal detection module 320, the collected error message transmission module 330, and the banknote data transmission module 340 in the transmission apparatus for banknote data). The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, that is, implements the operations for the electronic device described above.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 440 may include a display device such as a display screen.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the storage medium implements the method for transmitting banknote data according to any embodiment of the present invention.
Based on the understanding that the technical solutions of the present invention can be embodied in the form of software products, such as floppy disks, Read-Only memories (ROMs), Random Access Memories (RAMs), flash memories (F L ASHs), hard disks or optical disks of a computer, etc., and include instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to any embodiment of the present invention.
It should be noted that, in the embodiment of the above-mentioned transmission device for banknote data, the included units and modules are only divided according to the functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The device can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A method for transmitting banknote data, comprising:
when the paper money is placed in the collection area, detecting whether a line synchronization signal is received;
if the line synchronization signal is received, sending a paper money acquisition signal to a sensor; detecting whether a new line synchronization signal is received within the current acquisition time length;
if the new row synchronization signal is received, sending a paper money collection error message to an upper computer; if the new row synchronization signal is not received, transmitting the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition time length to the upper computer;
before the banknote data acquired by the sensor according to the banknote acquisition signal in the current acquisition time length is sent to an upper computer, the method further comprises the following steps:
receiving a data transmission signal, wherein the data transmission signal is generated when the current acquisition time length is finished;
in the process of sending the banknote data acquired by the sensor according to the banknote acquisition signal to the upper computer in the current acquisition time, the method further comprises the following steps:
detecting whether a new data transmission signal is received;
and if the new data transmission signal is received, sending a paper money transmission error message to the upper computer.
2. The method of claim 1, wherein sending acquisition error information to the upper computer comprises:
setting an acquisition mark in an acquisition mark register as an acquisition error mark, and sending an address of the acquisition mark register to the upper computer;
the sending of the transmission error message to the upper computer comprises:
and setting the transmission mark in the transmission mark register as a transmission error mark, and sending the address of the transmission mark register to the upper computer.
3. The method of claim 2, wherein prior to said detecting whether a row sync signal is received, further comprising:
initializing the collection mark in the collection mark register to be a collection correct mark, and initializing the transmission mark in the transmission mark register to be a transmission correct mark.
4. A transport device for banknote data, comprising:
the line synchronization signal detection module is used for detecting whether a line synchronization signal is received or not when the paper money is placed in the collection area;
the new line synchronizing signal detection module is used for sending a paper money collecting signal to the sensor if the line synchronizing signal is received; detecting whether a new line synchronization signal is received within the current acquisition time length;
the acquisition error message sending module is used for sending a paper money acquisition error message to the upper computer if the new row synchronization signal is received;
the paper money data sending module is used for sending the paper money data collected by the sensor according to the paper money collecting signal in the current collecting time length to the upper computer if the new row synchronizing signal is not received;
the data transmission signal receiving module is used for receiving a data transmission signal, and the data transmission signal is generated when the current acquisition time length is finished;
the new data transmission signal detection module is used for detecting whether a new data transmission signal is received or not in the process of sending the paper money data acquired by the sensor according to the paper money acquisition signal in the current acquisition duration to the upper computer;
and the transmission error message sending module is used for sending a paper money transmission error message to the upper computer if the new data transmission signal is received.
5. The apparatus according to claim 4, wherein the banknote data sending module is specifically configured to:
if the new line synchronization signal is received, setting the acquisition mark in the acquisition mark register as an acquisition error mark, and sending the address of the acquisition mark register to the upper computer;
the transmission error message sending module is specifically configured to:
and if the new data transmission signal is received, setting a transmission mark in a transmission mark register as a transmission error mark, and sending the address of the transmission mark register to the upper computer.
6. The apparatus of claim 5, further comprising:
and the register initialization module is used for initializing the acquisition mark in the acquisition mark register to be an acquisition correct mark and initializing the transmission mark in the transmission mark register to be a transmission correct mark before detecting whether the line synchronization signal is received or not.
7. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method for banknote data transmission according to any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method for banknote data transmission according to any one of claims 1-3.
CN201711464266.1A 2017-12-28 2017-12-28 Method and device for transmitting paper money data, electronic equipment and storage medium Active CN108198326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711464266.1A CN108198326B (en) 2017-12-28 2017-12-28 Method and device for transmitting paper money data, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711464266.1A CN108198326B (en) 2017-12-28 2017-12-28 Method and device for transmitting paper money data, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108198326A CN108198326A (en) 2018-06-22
CN108198326B true CN108198326B (en) 2020-07-24

Family

ID=62585262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711464266.1A Active CN108198326B (en) 2017-12-28 2017-12-28 Method and device for transmitting paper money data, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108198326B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389737B (en) * 2018-09-21 2021-09-28 上海古鳌电子科技股份有限公司 Currency detection method and system
CN113256870B (en) * 2020-12-19 2024-02-02 深圳市怡化时代科技有限公司 Method and device for detecting thickness abnormality of sheet medium, storage medium and equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55113158A (en) * 1979-02-26 1980-09-01 Sony Corp Recorder
US6169840B1 (en) * 1954-12-24 2001-01-02 Jerome H. Lemelson Image-modification methods
CN1471088A (en) * 2002-06-17 2004-01-28 ������������ʽ���� Optical recording medium continuous gap detection apparatus and method
CN103235254A (en) * 2013-04-25 2013-08-07 杭州和利时自动化有限公司 Detection method and detection system for programmable logic device
CN103440702A (en) * 2013-08-27 2013-12-11 华南理工大学 Multi-spectrum bill image collecting device based on CIS and processing method
CN103475890A (en) * 2013-09-02 2013-12-25 深圳Tcl新技术有限公司 3D (three-dimensional) glasses and anti-interference method thereof
CN105407274A (en) * 2015-11-02 2016-03-16 深圳怡化电脑股份有限公司 Method for achieving image acquisition by utilizing FPGA
CN106652175A (en) * 2016-09-26 2017-05-10 深圳怡化电脑股份有限公司 Method and apparatus for controlling banknote recognition units to collect information
CN106909086A (en) * 2017-03-30 2017-06-30 深圳怡化电脑股份有限公司 The detection method and its device of a kind of abnormal data
CN107170107A (en) * 2017-05-10 2017-09-15 深圳怡化电脑股份有限公司 Method, device, equipment and the storage medium of sensor gathered data

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6169840B1 (en) * 1954-12-24 2001-01-02 Jerome H. Lemelson Image-modification methods
JPS55113158A (en) * 1979-02-26 1980-09-01 Sony Corp Recorder
CN1471088A (en) * 2002-06-17 2004-01-28 ������������ʽ���� Optical recording medium continuous gap detection apparatus and method
CN103235254A (en) * 2013-04-25 2013-08-07 杭州和利时自动化有限公司 Detection method and detection system for programmable logic device
CN103440702A (en) * 2013-08-27 2013-12-11 华南理工大学 Multi-spectrum bill image collecting device based on CIS and processing method
CN103475890A (en) * 2013-09-02 2013-12-25 深圳Tcl新技术有限公司 3D (three-dimensional) glasses and anti-interference method thereof
CN105407274A (en) * 2015-11-02 2016-03-16 深圳怡化电脑股份有限公司 Method for achieving image acquisition by utilizing FPGA
CN106652175A (en) * 2016-09-26 2017-05-10 深圳怡化电脑股份有限公司 Method and apparatus for controlling banknote recognition units to collect information
CN106909086A (en) * 2017-03-30 2017-06-30 深圳怡化电脑股份有限公司 The detection method and its device of a kind of abnormal data
CN107170107A (en) * 2017-05-10 2017-09-15 深圳怡化电脑股份有限公司 Method, device, equipment and the storage medium of sensor gathered data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于组网的智能变电站采样同步问题探讨;高红亮等;《计算技术与自动化》;20171215;第36卷(第4期);第56页 *

Also Published As

Publication number Publication date
CN108198326A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN110851835B (en) Image model detection method and device, electronic equipment and storage medium
US9483895B2 (en) Paper money identification method and device
CN107331031B (en) A kind of recognition methods of note denomination, device, equipment and storage medium
WO2015188556A1 (en) Multi-cue fusion based ticket positioning recognition method and system
CN108198326B (en) Method and device for transmitting paper money data, electronic equipment and storage medium
CN103383789A (en) Method and system for detecting invoice authenticity
CN107301719A (en) A kind of bank note card paper money detection method, device and equipment
US20140244529A1 (en) Banknote Processing Apparatus for Detecting, Reporting, and Integrally Managing Counterfeit Banknotes and Method of Controlling the Same
CN104639760A (en) Mobile phone money detecting method
CN107274590A (en) A kind of monitoring system, method, device, financial machine and tool and storage medium
CN101719906A (en) Worm propagation behavior-based worm detection method
CN107527050A (en) A kind of acquisition method, device, equipment and the storage medium of tax reciept number
CN109766028B (en) Touch control sub-management system and method for infrared touch screen
US11435999B2 (en) Method and apparatus for upgrading software
CN108492443B (en) Method, device and equipment for detecting adhesive tape on paper money and storage medium
KR101869264B1 (en) Apparatus and method for detecting phishing sites
CN108040067B (en) Cloud platform intrusion detection method, device and system
CN106055693A (en) Information processing method and terminal
CN110853219A (en) Bill processing method, device, equipment and storage medium
TW201503062A (en) Banknote counting and authenticating machine system and method thereof
CN107958535B (en) Method and device for acquiring paper money information and terminal equipment
CN108573567B (en) Paper money identification method and device
CN107730705B (en) Method, device, equipment and storage medium for starting and stopping data and continuous data acquisition
JP2011113473A (en) Transaction processing system and information gathering method of the same
CN108877028B (en) Method, device and equipment for detecting paper money

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