CN112906023A - Method, device and system for integrity verification of printed lottery ticket - Google Patents

Method, device and system for integrity verification of printed lottery ticket Download PDF

Info

Publication number
CN112906023A
CN112906023A CN202110196491.1A CN202110196491A CN112906023A CN 112906023 A CN112906023 A CN 112906023A CN 202110196491 A CN202110196491 A CN 202110196491A CN 112906023 A CN112906023 A CN 112906023A
Authority
CN
China
Prior art keywords
printing
scanning
lottery
lottery ticket
printed
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.)
Granted
Application number
CN202110196491.1A
Other languages
Chinese (zh)
Other versions
CN112906023B (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 Sui Cai Technology Development Co ltd
Original Assignee
Shenzhen Sui Cai Technology Development Co ltd
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 Sui Cai Technology Development Co ltd filed Critical Shenzhen Sui Cai Technology Development Co ltd
Priority to CN202110196491.1A priority Critical patent/CN112906023B/en
Publication of CN112906023A publication Critical patent/CN112906023A/en
Application granted granted Critical
Publication of CN112906023B publication Critical patent/CN112906023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/006Generating random numbers; Lottery apparatus electronically
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a method, a device and a system for verifying the integrity of a printed lottery ticket. The method is applied to a lottery ticket sale terminal system comprising an upper computer and a lower computer, wherein the lower computer is a thermal printer with a scanning function, and a scanning imaging unit is integrated in a printer core of the thermal printer; the method comprises the following steps: the upper computer sends the image ID, the printing content and the instruction to the lower computer; the lower computer prints and synchronously starts a scanning function to realize printing, scanning and uploading simultaneously; synchronously obtaining a complete scanning image of the lottery ticket when the printing is finished and the printed lottery ticket is not separated from the paper roll; and storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the naming rule. The invention realizes printing, scanning and uploading simultaneously, provides a solution for the problem that the actual printing content of printing blank tickets, incomplete tickets, error tickets, compressed tickets and the like is inconsistent with the expected printing content, and greatly improves the security of lottery ticket sales.

Description

Method, device and system for integrity verification of printed lottery ticket
Technical Field
The invention relates to the technical field of lottery terminals, in particular to a method, a device and a system for carrying out integrity verification on a printed lottery.
Background
The traditional lottery terminal generally has the following risks and problems which are difficult to solve when the lottery is sold:
(1) the phenomenon that a printer prints a compressed ticket due to physical, structural or mechanical actions and the like;
(2) because of the printing data loss caused by a plurality of complex factors such as electromagnetic interference, electrostatic interference or other interference, the content actually printed by the lottery ticket is inconsistent with the expected printing content, and the phenomena of printing blank tickets, compressed tickets, missing tickets or error tickets occur;
(3) the dispute between lottery buyer and lottery selling site is caused by incomplete lottery printed content or other human reasons.
Wherein: the compressed ticket refers to two or more lines of printed contents of the lottery ticket, and the printed contents are pasted or stacked together again after being printed, so that the effect that the height of paper actually occupied by the printed contents is smaller than that of the paper to be occupied, and the compressed ticket is generally understood as being flattened; blank tickets refer to content-free lottery tickets with blank printed contents; missing tickets refer to lottery tickets that lack part of the intended content; the error ticket refers to a lottery ticket with the printed result of the key bet content inconsistent with the expectation, such as a digital error.
In order to solve the above problems, some lottery terminals in the foreign countries of the industry are often provided with a lottery image scanning device, usually a separate CCD or CMOS scanning imaging device is added, and the printed lottery is manually scanned into an image and stored in the storage medium of the lottery terminal. The mode has high cost due to the addition of an independent scanning imaging component, and is not generally equipped on the domestic lottery terminals. This approach also does not enable automatic modes such as automatic printing of revocation marks and the like. In addition, in the last years, a so-called scanning and scanning all-in-one machine is developed, and two independent components of a printer and a scanner are integrally connected together by adding an intermediate transmission mechanism, namely the so-called traditional scanning and scanning all-in-one machine. The mode can realize the automatic verification mode of the lottery theoretically, but the printing of the invalidation mark can only be carried out at the second printing head, and the equipment consists of a plurality of parts, and a mechanical transmission link is added in the middle, so that the cost is still high, the size is large, the desktop space is occupied, the work is unreliable, and the lottery printing machine cannot be popularized and adopted in the industry. The two schemes are firstly printing and then scanning, and the application effect in the lottery field is poor.
Further, as shown in the chinese patent with application number "201711239571.0", a method, apparatus and device for printing and verifying lottery tickets are disclosed, which uses a Charge Coupled Device (CCD) for scanning and verifying. However, because the CCD needs depth of field (due to refraction and reflection optical paths), if the CCD is integrated into the printer, the printing core is made to be very large, or the integration level is not high, the cost is higher than that of the CIS method, and the working method of the printing head and the CCD scanning head is difficult to solve the image distortion.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method, a device and a system for verifying the integrity of a printed lottery ticket so as to improve the security of lottery ticket sales.
In order to solve the technical problems, the invention adopts the following technical scheme.
In a first aspect, a method for verifying the integrity of a printed lottery ticket is provided, and the method is applied to a lottery ticket sales terminal system, and the system comprises an upper computer and a lower computer which work cooperatively.
The upper computer is a lottery terminal machine, has the common functions of a common lottery terminal machine, has image identification and processing functions, can carry out encryption storage and automatic identification on the image of the printed lottery, compares a plurality of characteristic information with expected printing contents, and controls the lower computer to execute preset safety guarantee operation according to the comparison result.
The lower computer is a scanning and printing all-in-one machine with scanning and printing functions, and the scanning and printing all-in-one machine can also be understood as a part or a part of the lottery terminal. More specifically, the lower computer is a thermal printer capable of synchronously obtaining a scanned image of the printed content, and a scanning imaging system is integrated in the lower computer. The scanning imaging system comprises a scanning imaging unit and a scanning control circuit for controlling the scanning imaging unit. The key point of the lower computer is that the scanning imaging unit is integrated in a printer core of the thermal printer, and the specific position of the scanning imaging unit is positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter (also called a paper cutter), so that a scanning image for printing lottery tickets can be synchronously obtained when the lottery tickets are printed and are about to be separated from a paper roll (not separated yet). The scanning control circuit is integrated in a printing control panel of the thermal printer and is designed integrally with a control circuit of the thermal printer and integrated together.
The working principle of the lower computer is as follows: when the lower computer receives the instruction of the upper computer, the lower computer starts the scanning function and simultaneously starts the printing and scanning of the lottery ticket. The printing content of a lottery ticket is composed of a plurality of printing point rows, when printing is finished by one point row (or a plurality of point rows) and the paper moving motor advances to the position of the next point row (or a plurality of point rows), the scanning imaging unit finishes scanning the printing content of the previous point row (or a plurality of point rows), simultaneously, the scanning image can be immediately and automatically uploaded to an upper computer (or can be stored in a lower computer optionally), until the lottery ticket printing is finished, a cutter is ready to cut paper, and the lottery ticket is ready to be separated from a paper roll, the paper moving motor stops rotating, the scanning imaging unit stops scanning, the scanning of all the printing content of one lottery ticket is finished, and at the moment, all the printing content of the lottery ticket is completely scanned. All the scanned images of the whole lottery ticket are spliced together to form the complete scanned image of the printed lottery ticket. And finally, according to the image ID sent by the upper computer in advance, the image ID is encrypted and stored according to a specified naming rule, and the image ID can be stored in a storage medium of the upper computer or selected to be stored in the lower computer.
The method comprises the following steps:
s01: when the lottery ticket is printed, the upper computer sends the image ID, the printing content and the related instruction to the lower computer.
When the upper computer sends printing contents and related instructions to the lower computer, the printed lottery tickets and the printed reports are treated differently: when the lottery ticket is printed, the upper computer sends a scanning image ID, printing contents and an instruction comprising a scanning starting instruction and a printing ending mark to the lower computer; when the statistical form is printed, the upper computer does not send a scanning opening instruction and an image ID to the lower computer because the image does not need to be scanned, and only sends printing content and an instruction including a printing ending mark to the lower computer. The two are treated differently, so that the purposes of automatically acquiring the scanned image when the lower computer prints the lottery ticket and not acquiring the scanned image when the report is printed are achieved.
S02: and after receiving the related instruction, the lower computer starts printing according to the printing content and synchronously starts a scanning function to realize printing, scanning and uploading.
The printed content of a lottery ticket is composed of M physical lines (M is a positive integer greater than or equal to 1) and M-1 line gaps (referring to a blank part between the two physical lines), each physical line and line gap are respectively composed of a plurality of dot lines, and the total number of the dot lines of the lottery ticket is assumed to be N (N is a positive integer greater than 1). The height of the physical lines and line gaps typically varies depending on the layout design, but the dot line height is constant and the thermal printer prints in units of dot line heating.
In a first mode, the printing while scanning and uploading refers to: and printing and scanning are synchronously started, when one dot row is printed, the paper feeding motor drives the paper roll to advance to the next dot row position, the scanning imaging unit finishes scanning the printed content of the previous dot row, and the scanned image is immediately and automatically uploaded to an upper computer.
In a second mode, the printing while scanning and uploading refers to: and synchronously starting printing and scanning, wherein each time P dot rows are printed, the scanning imaging unit finishes scanning the printing content of the P dot rows to obtain the scanning images of the P dot rows, and the scanning images are automatically uploaded to an upper computer. Wherein P is an integer greater than 1. It can be seen that the second approach is an extension of the first approach, which corresponds to a special case of the second approach when P is equal to 1.
The specific implementation manner of the second manner may be: after the lottery paper moves for a preset distance or preset time, the scanning control circuit controls the scanning imaging unit to move for the preset distance or preset time to scan to a preset position; the predetermined distance is P times the height of the dot row, thereby obtaining a scanned image of P dot rows.
Under the second mode, every time a dot row is printed, scanning is not carried out immediately, but scanning is carried out uniformly after P dot rows are printed, and the beneficial effects are that: by properly reducing the scanning frequency, the scanning head (namely, the scanning imaging unit) is prevented from working for a long time, and the working life of the scanning head and the working life of a scanning control circuit are prolonged.
S03: when the printing is finished and the lottery ticket is to be separated from the paper roll and is not separated yet, a complete scanning image of the printed lottery ticket is synchronously obtained.
When the printing is finished, the paper feeding motor drives the paper roll to advance to the position where the cutter is to cut paper, the paper feeding motor stops rotating, and the scanning of the printing contents of all N dot lines of the lottery ticket, including the scanning of the scanning dead zone, is finished. The "scan dead zone" refers to a region having a length S from the end of the lottery paper, S being the distance between the scan line and the print line. Thus, when the lottery ticket is to be separated from the paper roll, the complete scanned image of the printed lottery ticket is obtained by splicing together the scanned images of all the dot rows of the lottery ticket, i.e. simultaneously.
S04: and encrypting the complete scanned image of the stored lottery ticket according to the image ID and a specified naming rule.
Specifically, the complete scanned image of the lottery ticket can be encrypted and stored in the storage medium of the upper computer in a rolling manner or encrypted and stored in the storage medium of the lower computer in a rolling manner according to the image ID sent by the upper computer in advance, the specified naming rule, the printing sequence of the lottery ticket and a certain storage period (for example, according to the valid period of the prize exchange).
S05: and calling inquiry or automatic identification for the complete scanned image of the lottery ticket according to the image ID, comparing the printing content of the lottery ticket with the expected printing content according to the set characteristics, and verifying whether the result is consistent.
This step includes the following two alternative modes of operation.
a. Manual mode: as mentioned above, all the sales lottery tickets are stored in a rolling way in the storage medium of the upper computer or the lower computer within a certain storage time limit and a certain sequence, and the complete scanning images of the lottery tickets can be called and inquired manually and compared with the real printed lottery tickets in the lottery ticket buyer to provide evidence and basis for solving disputes when disputes occur in the effective lottery ticket exchange period, the lottery buyer and the sales site or other needs exist. This mode does not automatically identify and verify a complete scanned image of a printed lottery ticket. The mode has high lottery selling speed and certain advantages in practical use according to the preference of users.
b. Machine automatic identification mode: after printing of a lottery ticket is finished, the upper computer immediately calls the complete scanned image of the lottery ticket which is just printed to perform automatic identification and compares the complete scanned image with the expected printing content according to a plurality of set characteristics so as to verify whether the printing result is consistent with the expected printing content. The identification and comparison contents comprise one of the feature CODEs of the lottery tickets, two-dimensional CODEs (PDF417 CODEs, QR CODEs and the like) or bar CODEs (CODE128, ITF, UPC-A, UPC-E, EAN13, EAN8, CODE39, CODE93, CODABAR and the like) or dot matrix CODEs (patterns formed by combining black square matrixes), the betting contents (English letters and numbers) of the lottery tickets, some specific feature information and the like. If the comparison result is consistent, the lottery ticket is separated from the paper roll by controlling the cutter to complete paper cutting and then the lottery ticket selling is finished after the verification is passed; if the comparison result does not match, the process proceeds to step S06. This mode is safer and more advanced.
S06: and under the automatic machine identification mode, if the comparison results do not accord with each other, the preset safety guarantee operation is executed without passing the verification.
When the upper computer works in the automatic machine identification mode, if the printed content is found to be inconsistent with the expected printed content after comparison, any one or more contents including blank tickets, incomplete tickets, compressed tickets, error tickets and the like appear, the comparison result does not pass verification, and one of the following safety and security operations can be selected to be executed, wherein the operations are all used for ensuring the safety of the lottery selling process.
a. The upper computer or the lower computer sends error reporting information, subsequent printing is suspended, and manual intervention and processing are carried out by a salesman;
b. the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, finishes paper cutting after printing a waste mark on a lottery, and then carries out intervention processing on the work of reprinting the lottery by an operator;
c. and the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, finishes paper cutting after printing a waste mark on the lottery, and automatically reprints the lottery which is in line with the expected printing content.
As described above, the upper computer sends a scanning start instruction, a scanning image ID, a printing content, a printing end flag, and the like to the lower computer when printing a lottery ticket; and the lower computer starts printing according to the received printing content, synchronously starts scanning, simultaneously performs printing and scanning, and uploads, and synchronously obtains a complete scanning image for printing the lottery when the printing is finished and the lottery is to be separated from the paper roll. Wherein, the scanning imaging unit is integrated in a printer core of the thermal printer and is positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter; the scanning control circuit is integrated in a printing control board of the thermal printer. The invention is the most obvious characteristic of the invention which is different from the traditional sweeping and cleaning all-in-one machine or other sweeping and cleaning all-in-one machines.
Further, the lower computer uses the signal of the paper feeding motor of the printer and the signal of the cutter to coordinate and control the printing and scanning to synchronously and orderly work.
Further, the lower computer sets the time point when the cutter is about to cut paper after printing is finished at the time point when the scanning of the printing content is finished. Therefore, all the printed contents of one lottery ticket can be scanned, and the automatic roll-back of the paper roll when the voided mark needs to be printed is convenient to realize.
In a second aspect, a device for verifying the integrity of printed lottery tickets is provided, which is applied to a lottery ticket sales terminal system comprising an upper computer and a lower computer which work cooperatively. The upper computer is a lottery terminal. The lower computer is a thermal printer which is integrated with a scanning imaging system and has a scanning function, is a scanning and printing integrated machine, and more particularly is a scanning and printing integrated thermal printer which can synchronously obtain a scanned image of printed contents. The scanning imaging system comprises a scanning imaging unit and a scanning control circuit for controlling the scanning imaging unit, wherein the scanning imaging unit is integrated in a printer core of the thermal printer and is positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter; the scanning control circuit is integrated in a printing control panel of the thermal printer and integrated with a control circuit of the thermal printer. The device comprises: the instruction control module is used for enabling the upper computer to send the image ID, the printing content and the instruction to the lower computer when the lottery ticket needs to be printed; the printing control module is used for enabling the lower computer to print according to the printing content after receiving the instruction; the scanning control module is used for synchronously starting a scanning function when the lower computer prints, realizing printing and scanning as well as uploading, and synchronously obtaining a complete scanning image of a lottery ticket when the printing is finished and the printed lottery ticket is not separated from the roll paper; and the storage control module is used for storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the specified naming rule.
Further, the printed content of a lottery ticket is composed of a plurality of printing point rows, and the printing and scanning are as follows: and (3) synchronously starting printing and scanning, finishing scanning the printing content of the previous dot line or P dot lines every time one or P dot lines are printed, and automatically uploading the scanned image to an upper computer (or optionally storing the scanned image in a lower computer for the upper computer to call).
Further, the scan control module is specifically configured to: when printing is finished, the paper feeding motor drives the paper roll to rotate to the paper cutting position of the cutter, and scanning of all printed contents of the lottery ticket is finished, wherein scanning of a scanning dead zone with the distance S from the tail end of the lottery ticket paper is finished (S is the distance between a scanning line and a printing line). Thus, when the lottery ticket is to be separated from the paper roll, the scanning images of all the dot lines of the lottery ticket are spliced to synchronously obtain the complete scanning image of the printed lottery ticket.
Further, the storage control module is specifically configured to: and according to the image ID, according to a specified naming rule and the printing sequence of the lottery, within a certain storage period, encrypting and storing the complete scanned image of the lottery in a storage medium of an upper computer in a rolling mode, or encrypting and storing the complete scanned image of the lottery in a storage medium of a lower computer in a rolling mode.
Further, the apparatus further comprises: a comparison control module for: in the manual mode, the complete scanned image of the lottery ticket is called to inquire according to the image ID when needed; or, under the automatic identification mode of the machine, immediately carrying out image identification after printing of a lottery ticket is finished, comparing the identified printing content with the expected printing content according to the set characteristics to verify whether the result is consistent, and controlling the cutter to cut paper and separate the lottery ticket from the paper roll if the comparison result is consistent.
Further, the printing contents identified by the comparison control module comprise the feature codes of the printed lottery tickets and the lottery ticket betting contents; one of a two-dimensional code, a dot code and a bar code of the lottery ticket is also included.
Further, the apparatus further comprises: and the safety guarantee module is used for executing preset safety guarantee operation if the comparison results are not consistent under the automatic machine identification mode.
Further, the security module is specifically configured to: if the comparison shows that the printing content is inconsistent with the expected printing content, and a blank ticket, a defective ticket, a compressed ticket or an error ticket appears, one of the following safety and security operations is selected to be executed:
a. the upper computer or the lower computer sends error reporting information and suspends subsequent printing;
b. the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, and finishes paper cutting after printing a waste mark on a lottery;
c. and the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, finishes paper cutting after printing the waste mark on the lottery, and reprints the lottery conforming to the expected printing content.
Further, the scanning imaging unit is integrated in a printer core of the thermal printer and is positioned between a thermal sensitive sheet (also called a printing head sheet) and the cutter; the scanning control circuit is integrated in a printing control board of the thermal printer. The invention is the most obvious characteristic of the invention which is different from the traditional sweeping and cleaning all-in-one machine or other sweeping and cleaning all-in-one machines.
Furthermore, the lower computer adopts the signal of a paper feeding motor of the printer and the signal of a cutter to coordinate and control the printing and scanning to synchronously and orderly work.
Further, the lower computer sets the time point when the cutter is about to cut paper after printing is finished at the time point when the scanning of the printing content is finished. Therefore, all the printed contents of one lottery ticket can be scanned, and the automatic roll-back of the paper roll when the voided mark needs to be printed is convenient to realize.
Further, when the upper computer sends a printing instruction to the lower computer, the printed lottery ticket and the printed report are treated differently: when the lottery ticket is printed, a scanning starting instruction, a scanning image ID, printing contents, a printing ending mark and the like are sent to a lower computer; when the sales statistical form is printed, a scanning opening instruction and an image ID are not sent, but printing content and an instruction including a printing ending mark are sent to a lower computer. Therefore, the purposes that the scanning image is automatically acquired when the lower computer prints the lottery ticket and the scanning image is not acquired when the report is printed are achieved.
In a third aspect, a lottery sales terminal system is provided, which comprises an upper computer and a lower computer working in cooperation. The upper computer is a lottery terminal. The lower computer is a thermal printer which is integrated with a scanning imaging system and has a scanning function. The scanning imaging system comprises a scanning imaging unit and a scanning control circuit for controlling the scanning imaging unit, wherein the scanning imaging unit is integrated in a printer core of the thermal printer and is positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter; the scanning control circuit is integrated on a printing control board of the thermal printer. The upper computer is used for sending an image ID, printing contents and instructions to the lower computer when the lottery is printed; the lower computer is used for printing according to the printing content after receiving the instruction, synchronously starting a scanning function, realizing printing and scanning as well as uploading, and synchronously obtaining a complete scanning image of the lottery ticket when the printing is finished and the printed lottery ticket is not separated from the roll paper; and the upper computer is also used for storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the specified naming rule.
Further, the printing content of a lottery ticket is composed of a plurality of printing point rows, and the printing, scanning and uploading at the same time means that: and (3) synchronously starting printing and scanning, finishing scanning the printing content of the previous dot line or P dot lines every time one or P dot lines are printed, and automatically uploading the scanned image to an upper computer (or optionally storing the scanned image in a lower computer for the upper computer to call).
Further, when the printing is finished, the paper feeding motor drives the paper roll to rotate to the paper cutting position of the cutter, and the scanning of all printed contents of the lottery ticket is finished, wherein the scanning comprises scanning of a scanning dead zone with the length S from the tail end of the lottery ticket paper (S is the distance between a scanning line and a printing line). Thus, when the lottery ticket is to be separated from the paper roll, a complete scanning image of the printed lottery ticket can be synchronously obtained.
Further, the scanning imaging unit is integrated in the printer core and is positioned between the heat-sensitive sheet (also called printing head sheet) and the cutter; the scanning control circuit is integrated in the printing control board and is integrated with the control circuit in the printing control board. The invention is the most obvious characteristic of the invention which is different from the traditional sweeping and cleaning all-in-one machine or other sweeping and cleaning all-in-one machines.
Furthermore, the lower computer adopts the signal of a paper feeding motor of the printer and the signal of a cutter to coordinate and control the printing and scanning to synchronously and orderly work.
Further, the lower computer sets the time point when the cutter is about to cut paper after printing is finished at the time point when the scanning of the printing content is finished. Therefore, all the printed contents of one lottery ticket can be scanned, and the automatic roll-back of the paper roll when the voided mark needs to be printed is convenient to realize.
Further, when the upper computer sends a printing instruction to the lower computer, the printed lottery ticket and the printed report are treated differently: when the lottery ticket is printed, a scanning starting instruction, a scanning image ID, printing contents, a printing ending mark and the like are sent to a lower computer; and when the sales statistical form is printed, a scanning opening instruction and an image ID are not sent to the lower computer. Therefore, the purposes that the scanning image is automatically acquired when the lower computer prints the lottery ticket and the scanning image is not acquired when the report is printed are achieved.
According to the technical scheme, the invention has the following advantages:
the method of the invention utilizes a scanning and printing integrated machine which integrates a printing function and a scanning function, the scanning and printing integrated machine is a thermal printer integrated with a scanning and imaging system, a scanning and imaging unit is integrated in a printer core and positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter; the scanning control circuit is integrated in the printing control panel, and is designed integrally together with the thermal printer control circuit and integrated together. Meanwhile, the paper feeding motor signals are adopted to coordinate printing and scanning to be synchronously and orderly carried out, and the paper cutting time point of the cutter is used as the time point of finishing the image scanning. Therefore, the method realizes that the data of the scanned image is transmitted while the printing and the scanning are carried out, and the complete scanned image for printing the lottery ticket is synchronously obtained when the printing is finished and the cutter is to cut paper. The integrity verification can be carried out on the lottery ticket printing result more quickly, and the lottery ticket verification efficiency is improved. The automatic identification and printing of the invalidation mark can be easily realized by the scanning and printing all-in-one machine (or the thermal printer capable of synchronously obtaining the scanned image of the printing content). And meanwhile, printing and scanning are synchronously started and carried out, so that the problem of scanning image distortion caused by uneven speed of a paper feeding motor is solved.
The scanning and scanning integrated machine is different from the traditional scanning and scanning integrated machine, does not need separate scanning imaging equipment or integrates two independent components of a printer and a scanner together, and omits an intermediate mechanical transmission link, so that the scanning and scanning integrated machine has the advantages of high integration level, small volume, low cost, quick image scanning, high reliability, selectable automatic mode and manual mode and the like.
The method realizes synchronous completion of lottery printing and image scanning, printing, scanning and uploading, greatly improves the working efficiency compared with the traditional scanning and printing integrated machine (comprising a printer and a scanner, and the scanning is carried out after the printing), reduces the intermediate mechanical transmission and transmission links, and has more reliable work. The thermal printer and the scanning imaging system are highly integrated, and the defects of large size, space occupation, high cost and poor reliability of the traditional scanning and printing integrated machine are overcome. In addition, the lower computer solves the problems that a scanning and sweeping integrated machine adopting a printing head and CCD scanning working mode is difficult to highly integrate and scanned images are easy to distort.
The method has more important significance in that the method is applied to the field of lottery sales, the printing result of the lottery is verified, the problem that the actual printing content is inconsistent with the expected printing content is solved, a solution for the problem that the actual printing content such as printing blank tickets, incomplete tickets, error tickets, compressed tickets and the like is inconsistent with the expected printing content is provided, the security of the lottery sales is greatly improved, and disputes between lottery buyers and lottery sales stations caused by the problem of the lottery printing can be effectively reduced and avoided.
Drawings
In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following briefly introduces the embodiment and the drawings used in the description of the prior art.
FIG. 1 is an exploded view of a lower-level printer cartridge in an embodiment of the invention;
FIG. 2 is a schematic view of a combined structure of a printer core of a lower computer in the embodiment of the invention
FIG. 3 is a view showing a structure of a connection between a scanner image forming unit and a thermal sheet according to an embodiment of the present invention;
FIG. 4 is a view showing another connection structure of the scanner image forming unit and the thermal sheet according to the embodiment of the present invention;
FIG. 5 is a schematic circuit diagram of a lower computer in one embodiment of the present invention;
fig. 6 is a flow chart illustrating a method for integrity verification of a printed lottery ticket in accordance with an embodiment of the present invention;
FIG. 7 is a flow diagram of the underlying software control in one embodiment of the invention;
FIG. 8 is a flowchart of upper level software operation in one embodiment of the present invention;
fig. 9 is a schematic structural view of an apparatus for integrity verification of a printed lottery ticket according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a lottery ticket printing process in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following will explain details by way of specific examples.
The invention relates to a lottery ticket sale terminal system which mainly comprises an upper computer and a lower computer which work in a cooperative mode. The upper computer is a lottery terminal and comprises a host and a display, a touch screen, a keyboard, a ticket reader, a power supply and the like which are connected with the host, and a related software system is arranged in the host. In the embodiment of the invention, the lower computer is a scanning and printing integrated machine integrated with a printing function and a scanning function, in particular to a thermal printer integrated with a scanning imaging system and a scanning function, and used for printing lottery tickets according to instructions of the upper computer and scanning printed lottery ticket images.
Referring to fig. 1 to 4, the scanning and imaging integrated machine as a lower computer in the present invention includes a thermal printer and a scanning and imaging system, where the scanning and imaging system includes a scanning and imaging unit 11 and a scanning control circuit for controlling the scanning and imaging unit 11, the scanning and imaging unit 11 is integrated in a printer core 10 of the thermal printer, and the scanning control circuit is integrated in a printing control board of the thermal printer and is integrated with a control circuit of the thermal printer.
The printer core 10 includes a printhead chip 12 (also called a thermal sensitive chip) and a metal bracket 13 for bearing and fixing the printhead chip 12; the scanning imaging unit 11 is disposed above the metal bracket 13 and above the printhead chip 12. Specifically, the upper end of the metal bracket 13 may have two or more protruding portions 131, and the scan imaging unit 11 and the protruding portions 131 are fixedly connected together by screws 132.
The scanning imaging unit 11 may employ a Contact Image Sensor (CIS). The CIS is closely attached to the lottery paper during scanning, and the distance between the CIS and the lottery paper can be controlled within 0.5 mm. The lottery paper refers to paper used for printing lottery tickets, and is usually thermal paper which is installed in a thermal printer in the form of a paper roll.
The paper feeding side of the printer core 10 may be generally provided with a paper feeding channel 14 and a paper pressing device 16 located above the paper feeding channel 14, and the paper discharging side of the printer core 10 may be provided with a paper cutting device 15 (simply referred to as a cutter).
Preferably, the scanning control circuit is integrated with a control circuit of the thermal printer and is arranged in the printing control board.
Referring to fig. 5, a circuit structure diagram of the sweeping and cleaning all-in-one machine of the present invention is shown in some embodiments. The circuit structure comprises a control circuit of the printer and a scanning control circuit integrated with the control circuit, wherein the scanning control circuit is connected with and controls a scanning module (namely a scanning imaging unit).
Specifically, the control circuit may include a Central Processing Unit (CPU) and connected thereto: the printer comprises a first motor drive (used for connecting and controlling a paper feeding motor), a second motor drive (used for connecting and controlling a cutter motor), data sensors arranged on a printing head sheet (short for thermosensitive sheet), such as temperature, lifting rod, paper shortage and the like, an external crystal oscillator, a Flash memory (Flash), a Synchronous Dynamic Random Access Memory (SDRAM), a key indicator, sensors for paper exhaustion/paper jam/black mark/lifting rod detection and the like, a USB interface, a power module used for providing power for each part in a control circuit and the like. The scanning control circuit is connected with the CPU and receives the control of the CPU.
As shown in fig. 7(1), (2), (3), and (4), an example of a bottom-layer software control flow of the scanning and sweeping all-in-one machine is shown. The main process (1) may comprise: initializing, judging whether each state of the printer is normal, receiving printing data from an upper computer, analyzing a command, starting a scanning function if a scanning starting instruction is received, synchronously starting printing and scanning when a printing condition is met, judging whether the data needs to be uploaded after the printing interruption is executed, and uploading the data until the transmission is finished if the data needs to be uploaded. The receive data flow (2) may include receiving data and sending to a data buffer. The paper feeding interruption process (3) may include: controlling a motor to feed 1 dot line, scanning the 1 dot line by a scanning imaging unit (CIS), judging whether printing needs to be continued or not, inputting the next 1 dot line for printing if the printing needs to be continued, and stopping the printing if the printing does not need to be continued. The thermal printer printing interruption process (4) can comprise the following steps: and (5) closing heating, judging whether the next group of heating is needed, if so, starting the next group of heating for printing, and otherwise, ending the interruption.
Please refer to fig. 8, which is an example of the upper software control flow for the upper computer to print the lottery ticket in cooperation with the lower computer. Can include the following steps: sending a scanning starting instruction, setting an image ID and sending printing data; inquiring whether the lower computer has data to upload, and if so, reading the image data; judging whether the image data transmission is finished or not, judging whether unprinted data and data missing errors caused by paper missing and the like exist or not, if so, continuously inquiring and reading the image data, and if not, finishing the data transmission; judging whether the lottery ticket needs to be checked (the mode II is automatic identification), finishing the paper cutting operation if the lottery ticket does not need to be checked, and judging the lottery ticket by identification if the lottery ticket needs to be checked; and if the printing is incorrect, executing paper returning operation and printing the waste ticket mark, and ending after paper cutting, and if the printing is correct, ending after direct paper cutting.
The technical problem solved by the lower computer of the invention comprises: 1) the problem of motor over-step or out-of-step caused by the unmatched motor speed when the printer core and the scanning module are separated; 2) the problem of scanned image distortion caused by asynchronous printing and scanning when the printer core and the scanning module are separated. 3) Through software flow control and technical processing, the invention also solves the problem of image deletion caused by incomplete image data transmission in the paper-out state of the printer. The advantages include: the image scanning device has the advantages of simple structure, high integration level, small size, space and hardware cost saving, high image scanning speed, no distortion in image imaging, easy subsequent identification, easy realization of automatic processing, high reliability and the like.
Referring to fig. 6, an embodiment of the present invention provides a method for performing integrity verification on a printed lottery ticket, which is applied to the lottery sales terminal system as described above. The method mainly comprises the following steps:
and S01, when the lottery ticket is printed, the upper computer sends the image ID, the printing content and the related instruction to the lower computer.
The method specifically comprises the following steps: the printed lottery and the printed report are treated differently: when the lottery ticket is printed, the upper computer sends a scanning starting instruction, a scanning image ID, printing contents, a printing ending mark and the like to the lower computer; when the report is printed, the upper computer does not send a scanning starting instruction and a scanning image ID number to the lower computer, and only sends printing content and a printing ending mark to the lower computer. The two are treated differently, so that the purposes of automatically acquiring the scanned image when the lower computer prints the lottery ticket and not acquiring the scanned image when the report is printed are achieved.
And S02, the lower computer receives related instructions, starts printing according to the printing content, synchronously starts the scanning function, and realizes printing, scanning and uploading.
The method specifically comprises the following steps: when the lottery ticket is printed, the lower computer synchronously starts the printing and scanning functions after receiving the instruction of the upper computer, and uploads the lottery ticket while printing and scanning. The printing content of a lottery ticket is composed of N dot rows, when the paper feeding motor moves forward one step and reaches the next dot row or P dot row, the lower computer finishes scanning the printing content of the previous dot row or P dot row, and the printing and the scanning are synchronously and orderly carried out under the coordination control of the paper feeding motor signal and the cutter signal.
And S03, synchronously obtaining a complete scanning image of the printed lottery ticket when the lottery ticket is about to be separated from the paper roll and is not separated at the end of printing.
The method specifically comprises the following steps: when the printing content is finished and the paper feeding motor drives the paper roll to rotate to the point of cutting paper by the cutter, the scanning module finishes scanning the printing content of the previous point line when the paper feeding motor moves to the next point line position, and the scanning control circuit controls the scanning module to stop scanning until the cutter is about to cut the paper and the paper feeding motor stops rotating. This is done in order to complete the scanning of the printed content of the "scan dead zone" of length S (S being the distance between the print line and the scan line) from the end of the lottery ticket paper, which is done at extreme moments. Thus, when a ticket is printed, i.e., is to be separated from the roll by the cutter, a scanned image of the printed ticket is obtained simultaneously.
Referring to fig. 10, a lottery ticket printing process is illustrated. In the drawing, the left square box 100 represents a lottery ticket, and the right side of the lottery ticket 100 is sequentially a printing line 200, a scanning line 300, and a cutter line 400. The printing line 200, the scanning line 300 and the cutter line 400 are respectively located at the corresponding positions of the printing head sheet, the scanning imaging unit and the cutter component. The lottery ticket 100 advances from left to right in the arrow direction, sequentially passes through the printing line for printing, the scanning line for scanning, and the cutting line for cutting paper. Wherein the distance between the print line 200 and the scan line 300 is S.
S04: and encrypting the complete scanned image of the stored lottery ticket according to the image ID and a specified naming rule.
Specifically, the complete scanned image of the lottery ticket can be encrypted and stored in a storage medium of the upper computer in a rolling manner or selectively stored in the lower computer within a certain storage period (for example, within the valid period of the lottery ticket exchange) according to the image ID sent by the upper computer in advance and according to the specified naming rule and printing sequence.
In this step S04, when the upper computer stores the scanned image, an image buffer area is provided in the lower computer, and the scanned image is automatically uploaded to the upper computer. Or the lower computer can directly store the complete image in a storage medium of the lower computer, and the upper computer can retrieve the complete image of the printed lottery from the lower computer according to the requirement. In order to ensure safety, the image storage area can be optionally encrypted. By storing the images, the images can be conveniently called for inspection when disputes occur subsequently and the subsequent programs can be further identified and processed.
Optionally, the method further includes step S05: in the manual mode, calling and inquiring the scanned image according to the image ID when needed; or, in the automatic machine identification mode, after printing of a lottery ticket is finished, automatic identification is carried out immediately, and the identified printing content is compared with the expected printing content according to the set characteristics so as to verify whether the result is consistent.
This step includes the following two alternative modes of operation.
a. Manual mode: as described above, all the sales lottery tickets are stored in the storage medium of the upper computer or the lower computer in a rolling encryption manner within a certain storage time limit (for example, within the valid period of prize exchange) according to the specified storage time limit and printing sequence, and when disputes occur among lottery tickets, lottery players and sales sites or other needs occur, the complete scanned images of the lottery tickets can be manually called and inquired, and compared with the real printed lottery tickets in lottery players, so as to provide evidence and basis for solving the disputes. This mode does not automatically identify and verify a complete scanned image of a printed lottery ticket. The mode has high lottery selling speed and certain advantages in practical use according to the preference of users.
b. Machine automatic identification mode: after printing of a lottery ticket is finished, the upper computer immediately calls the complete scanned image of the lottery ticket which is just printed to automatically identify and compare the complete scanned image with the expected printed content according to a plurality of characteristics so as to verify whether the printed result is consistent with the expected printed content. The identification and comparison contents comprise one of the feature CODEs of the lottery tickets, two-dimensional CODEs (PDF417 CODEs, QR CODEs and the like) or bar CODEs (CODE128, ITF, UPC-A, UPC-E, EAN13, EAN8, CODE39, CODE93, CODABAR and the like) or dot matrix CODEs (patterns formed by combining black square matrixes), the betting contents (English letters and numbers) of the lottery tickets, some specific feature information and the like. If the comparison result is consistent, the cutter finishes paper cutting, the lottery is separated from the paper roll through the verification, and then the lottery selling is finished; and if the comparison result is not consistent, the preset safety and security operation is executed without passing the verification.
Optionally, the method further includes step S06: in the automatic machine identification mode, if the comparison results do not match, the preset safety guarantee operation (automatic machine identification mode) is executed when the comparison result does not pass the verification.
The method specifically comprises the following steps: if the identified content (print result) does not match the expected content, one of the following preset operation modes is performed without passing the verification:
a. sending error reporting information, suspending subsequent printing, and manually performing intervention processing;
b. sending error reporting information to suspend subsequent printing, controlling a paper feeding motor of a printer to retreat, driving lottery paper to retreat for a preset distance, printing a ticket discarding mark on the lottery, and manually processing to reprint the lottery;
c. and sending error reporting information to suspend subsequent printing, controlling a paper feeding motor of the printer to retreat, driving the lottery paper to retreat for a preset distance, printing a ticket discarding mark on the lottery, and then automatically reprinting the lottery which meets the expected content of the lottery by the lower computer.
The invention discloses a method for verifying the integrity of a printed lottery ticket. The method mainly comprises the steps that the lower computer prints the lottery ticket according to the image ID, the printing content and the related instructions sent by the upper computer, synchronously starts the scanning function, prints, scans and uploads the printed lottery ticket to obtain a complete scanned image, and the method also comprises the steps of storing and calling the image, identifying and processing the image, comparing the image with the expected content, executing according to a preset safety guarantee operation mode when the comparison is inconsistent, and the like.
As can be seen from the above description, in the printer cartridge of the lower machine of the present invention, the scanning imaging unit CIS is arranged side by side next to the thermal sensitive sheet (also called print head sheet), and both are completely integrated in one printer cartridge to form an integral component, and are located between the thermal sensitive sheet and the paper cutter (also called cutter), that is, arranged in the order of the printing line, the scanning line, and the cutter line. Originally, the control circuit and the scanning control circuit of the independent printer are also integrated into a circuit and arranged in the control panel of the printer. This is the most obvious feature of the lower computer of the present invention over the prior art.
As can be seen from the above, one of the features of the lower computer or the scanning all-in-one machine of the present invention is to use the signal of the paper feeding motor of the printer and the cutter signal to coordinate and control the printing and scanning to work synchronously and orderly.
As can be seen from the above, the time point when the scanning of the print content is finished is set as the time point when the cutter is about to cut paper after the printing is finished. Therefore, all the printed contents of one lottery ticket can be scanned, and the automatic roll-back of the paper roll when the voided mark needs to be printed is convenient to realize.
As can be seen from the above, the scanning and printing all-in-one machine of the invention is a thermal printer which can synchronously obtain the scanned images of the printed contents. The scanning image of the printed lottery ticket can be synchronously obtained when the cutter is about to cut paper.
The method is applied to the field of lottery sales, can solve the problem that actual printing content is inconsistent with expected printing content due to unexpected factors existing in the traditional lottery terminal, overcomes the troubles caused by printing compressed tickets, blank tickets, missing tickets, error tickets and the like due to some unexpected reasons, and greatly improves the safety of lottery sales. Meanwhile, prize exchange disputes between lottery players and lottery ticket selling sites caused by the problem of ticket printing can be effectively avoided.
Referring to fig. 9, an embodiment of the present invention further provides a device for performing integrity verification on a printed lottery ticket, which is applied to the lottery sales terminal system as described above. The device comprises:
the instruction control module 91 is used for enabling the upper computer to send the image ID, the printing content and the instruction to the lower computer when the lottery ticket needs to be printed;
the printing control module 92 is used for enabling the lower computer to print according to the printing content after receiving the instruction;
the scanning control module 93 is used for synchronously starting a scanning function when the lower computer prints, realizing printing and scanning as well as uploading, and synchronously obtaining a complete scanning image of a lottery ticket when the printing is finished and the printed lottery ticket is not separated from the roll paper;
and the storage control module 94 is used for storing the complete scanned image of the lottery ticket to the upper computer and/or the lower computer according to the image ID and the specified naming rule.
The printing content of one lottery ticket consists of a plurality of printing point rows, and the printing, scanning and uploading at the same time refers to the following steps: printing and scanning are synchronously started, when one or P dot rows are printed, the paper feeding motor drives the paper roll to advance to the next or P dot row position, the scanning of the printing content of the previous or P dot rows is finished, and the scanned image is automatically uploaded to an upper computer (or optionally stored in the lower computer for the upper computer to call).
Further, the scan control module 93 is specifically configured to: when the printing is finished, the paper feeding motor drives the paper roll to rotate to the position that the cutter is to cut paper, and the scanning of all printed contents of the lottery ticket is finished, wherein the scanning comprises the scanning of a scanning dead zone with the length S from the tail end of the lottery ticket paper (S is the distance between a scanning line and a printing line). Thus, when the lottery ticket is to be separated from the paper roll, a complete scanning image of the printed lottery ticket can be synchronously obtained.
Further, the storage control module 94 is specifically configured to: and according to the image ID, according to a specified naming rule and the printing sequence of the lottery, within a certain storage period, encrypting and storing the complete scanned image of the lottery in a storage medium of an upper computer in a rolling mode, or encrypting and storing the complete scanned image of the lottery in a storage medium of a lower computer in a rolling mode.
Further, the apparatus further comprises: a comparison control module 95 configured to: in the manual mode, the complete scanned image of the lottery ticket is called to inquire according to the image ID when needed; or, under the automatic identification mode of the machine, immediately carrying out image identification after printing of a lottery ticket is finished, comparing the identified printing content with the expected printing content according to the set characteristics to verify whether the result is consistent, and controlling the cutter to cut paper and separate the lottery ticket from the paper roll if the comparison result is consistent.
Further, the print content identified by the comparison control module 95 includes the feature code of the printed lottery ticket and the lottery ticket betting content, and further includes one of the two-dimensional code, the dot matrix code and the barcode of the lottery ticket.
Further, the apparatus further comprises: and the safety guarantee module is used for executing preset safety guarantee operation if the comparison results do not conform to each other.
Further, the security module 96 is specifically configured to: if the comparison shows that the printing content is inconsistent with the expected printing content, and a blank ticket, a defective ticket, a compressed ticket or an error ticket appears, one of the following safety and security operations is selected to be executed:
a. the upper computer or the lower computer sends error reporting information and suspends subsequent printing;
b. the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, and finishes paper cutting after printing a waste mark on a lottery;
c. and the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, finishes paper cutting after printing the waste mark on the lottery, and reprints the lottery conforming to the expected printing content.
In the lower computer, a scanning imaging unit is integrated in a printer core of the thermal printer and is positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter; the scan control circuit is integrated within the print control board. The invention is the most obvious characteristic of the invention which is different from the traditional sweeping and cleaning all-in-one machine or other sweeping and cleaning all-in-one machines.
The lower computer adopts the signal of the paper feeding motor of the printer and the signal of the cutter to coordinate and control the printing and scanning to synchronously and orderly work.
And the lower computer sets the time point of paper cutting which is about to cut by the cutter after printing is finished when the scanning of the printed content is finished. Therefore, all the printed contents of one lottery ticket can be scanned, and the automatic roll-back of the paper roll when the voided mark needs to be printed is convenient to realize.
Further, when the upper computer sends a printing instruction to the lower computer, the printed lottery ticket and the printed report are treated differently: when the lottery ticket is printed, a scanning starting instruction, a scanning image ID, printing contents, a printing ending mark and the like are sent to a lower computer; when the sales statistical form is printed, a scanning opening instruction and an image ID are not sent, but printing content and an instruction including a printing ending mark are sent to a lower computer. Therefore, the purposes that the scanning image is automatically acquired when the lower computer prints the lottery ticket and the scanning image is not acquired when the report is printed are achieved.
The invention further provides a lottery ticket sale terminal system which comprises an upper computer and a lower computer which work cooperatively. The upper computer is a lottery terminal. The lower computer is a thermal printer which is integrated with a scanning imaging system and has a scanning function. The scanning imaging system comprises a scanning imaging unit CIS and a scanning control circuit for controlling the scanning imaging unit, wherein the scanning imaging unit CIS is integrated in a printer core of the thermal printer and is positioned between a thermal sheet and a paper cutter (also called a cutter), and the scanning control circuit is integrated in a printing control board of the thermal printer; wherein,
the upper computer is used for sending an image ID, printing contents and related instructions to the lower computer when the lottery ticket is printed;
the lower computer is used for starting printing according to the received printing content after receiving the instruction, synchronously starting a scanning function, realizing printing while scanning and uploading, and synchronously obtaining a complete scanning image of the printed lottery when the printing is finished, paper is cut by a cutter and the printed lottery is not separated from the roll paper;
and the upper computer is also used for storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the specified naming rule.
The printing content of one lottery ticket consists of a plurality of printing point rows, and the printing, scanning and uploading at the same time refers to the following steps: printing and scanning are synchronously started, when one or P dot rows are printed, the paper feeding motor drives the paper roll to advance to the next or P dot row position, the scanning of the printing content of the previous or P dot rows is finished, and the scanned image is automatically uploaded to an upper computer (or optionally stored in the lower computer for the upper computer to call). When printing is finished, the paper feeding motor drives the paper roll to rotate to the paper cutting position of the cutter, and scanning of all printed contents of the printed lottery ticket is finished, wherein the scanning contents comprise contents of a scanning dead zone with the length S from the tail end of the lottery ticket paper (S is the distance between a scanning line and a printing line). This allows for the simultaneous acquisition of a complete scanned image of the printed ticket as it is about to be separated from the paper roll.
The lower computer is integrated in a printer core of the thermal printer and is positioned between a thermal sensitive sheet (also called a printing head sheet) and a cutter; the scanning control circuit is integrated in a printing control board of the thermal printer. The invention is the most obvious characteristic of the invention which is different from the traditional sweeping and cleaning all-in-one machine or other sweeping and cleaning all-in-one machines.
The lower computer adopts the signal of the paper feeding motor of the printer and the signal of the cutter to coordinate and control the printing and scanning to synchronously and orderly work.
And the lower computer sets the time point of paper cutting which is about to cut by the cutter after printing is finished when the scanning of the printed content is finished. Therefore, all the printed contents of one lottery ticket can be scanned, and the automatic roll-back of the paper roll when the voided mark needs to be printed is convenient to realize.
Further, when the upper computer sends a printing instruction to the lower computer, the printed lottery ticket and the printed report are treated differently: when the lottery ticket is printed, a scanning starting instruction, a scanning image ID, printing contents, a printing ending mark and the like are sent to a lower computer; and when the sales statistical form is printed, a scanning opening instruction and an image ID are not sent to the lower computer, and only the printing content and the printing ending mark are sent to the lower computer. Therefore, the purposes that the scanning image is automatically acquired when the lower computer prints the lottery ticket and the scanning image is not acquired when the report is printed are achieved.
The technical solution of the present invention is explained in detail by the specific embodiments above. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
It should be understood that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same. The technical solutions described in the above embodiments can be modified or part of the technical features can be equivalently replaced by those skilled in the art; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and the scope of the technical solutions of the embodiments of the present invention.

Claims (23)

1. A method for carrying out integrity verification on printed lottery is characterized in that the method is applied to a lottery sales terminal system, and the system comprises an upper computer and a lower computer which work cooperatively;
the lower computer is a thermal printer which is integrated with a scanning imaging system and has a scanning function, the scanning imaging system comprises a scanning imaging unit and a scanning control circuit for controlling the scanning imaging unit, the scanning imaging unit is integrated in a printer core of the thermal printer, and the scanning control circuit is integrated in a printing control panel of the thermal printer;
the method comprises the following steps:
s01: when the lottery ticket is printed, the upper computer sends an image ID, printing content and an instruction to the lower computer;
s02: after receiving the instruction, the lower computer prints according to the printing content and synchronously starts a scanning function to realize printing, scanning and uploading simultaneously;
s03: synchronously obtaining a complete scanning image of the lottery ticket when the printing is finished and the printed lottery ticket is not separated from the paper roll;
s04: and storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the specified naming rule.
2. The method of claim 1, wherein the printed content of a lottery ticket comprises a plurality of rows of printed dots, and wherein printing while scanning and uploading comprises: and synchronously starting printing and scanning, finishing scanning the printing content of the previous or P dot lines after printing one or P dot lines, and uploading a scanned image to an upper computer, wherein P is an integer larger than 1.
3. The method according to claim 2, wherein step S03 specifically includes:
when the printing is finished, the paper feeding motor drives the paper roll to rotate to the paper cutting position of the cutter, and the scanning of all the dot line printing contents of the lottery ticket, including the scanning of the contents of the scanning dead zone, is finished; thus, when the lottery ticket is to be separated from the paper roll, the complete scanning image of the printed lottery ticket is synchronously obtained by splicing the scanning images of all the dot lines of the lottery ticket.
4. The method according to claim 1, wherein step S04 specifically comprises:
and according to the image ID, according to a specified naming rule and the printing sequence of the lottery, within a certain storage period, encrypting and storing the complete scanned image of the lottery in a storage medium of an upper computer in a rolling mode, or encrypting and storing the complete scanned image of the lottery in a storage medium of a lower computer in a rolling mode.
5. The method of claim 1, further comprising:
s05: and in the manual mode, calling and inquiring the complete scanned image of the lottery ticket according to the image ID when needed, or in the automatic machine identification mode, immediately carrying out image identification after printing of one lottery ticket is finished, comparing the identified printing content with the expected printing content according to the set characteristics to verify whether the result is consistent, and if the comparison result is consistent, controlling the cutter to cut paper and separating the lottery ticket from the paper roll.
6. The method as claimed in claim 5, wherein the printed contents identified in step S05 include the feature codes of the printed lottery ticket and the lottery betting contents, and further include one of a two-dimensional code, a dot code and a bar code on the lottery ticket.
7. The method of claim 5, further comprising:
s06: and under the automatic machine identification mode, if the comparison results do not accord with each other, executing preset safety guarantee operation.
8. The method according to claim 7, wherein step S06 specifically includes:
if the comparison shows that the printing content is inconsistent with the expected printing content, and a blank ticket, a defective ticket, a compressed ticket or an error ticket appears, one of the following safety and security operations is selected to be executed:
a. the upper computer or the lower computer sends error reporting information and suspends subsequent printing;
b. the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, and finishes paper cutting after printing a waste mark on a lottery;
c. and the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, finishes paper cutting after printing the waste mark on the lottery, and reprints the lottery conforming to the expected printing content.
9. The method according to claim 1, wherein step S01 specifically comprises:
the printed lottery and the printed report are treated differently: when the lottery ticket needs to be printed, the upper computer sends an image ID, printing contents and instructions including a scanning starting instruction and a printing ending mark to the lower computer; and when the report needs to be printed, the upper computer only sends the printing content and the printing end mark to the lower computer.
10. The method according to any one of claims 1 to 9,
the scanning imaging unit is specifically arranged between a heat-sensitive sheet and a cutter of the printer core; the scan control circuitry is integrated with control circuitry within the print control board.
11. A device for carrying out integrity verification on printed lottery tickets is characterized in that the device is applied to a lottery ticket sales terminal system, and the system comprises an upper computer and a lower computer which work cooperatively;
the lower computer is a thermal printer which is integrated with a scanning imaging system and has a scanning function, the scanning imaging system comprises a scanning imaging unit and a scanning control circuit for controlling the scanning imaging unit, the scanning imaging unit is integrated in a printer core of the thermal printer, and the scanning control circuit is integrated in a printing control panel of the thermal printer;
the device comprises:
the instruction control module is used for enabling the upper computer to send the image ID, the printing content and the instruction to the lower computer when the lottery ticket needs to be printed;
the printing control module is used for enabling the lower computer to print according to the printing content after receiving the instruction;
the scanning control module is used for synchronously starting a scanning function when the lower computer prints, realizing printing and scanning as well as uploading, and synchronously obtaining a complete scanning image of a lottery ticket when the printing is finished and the printed lottery ticket is not separated from the roll paper;
and the storage control module is used for storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the specified naming rule.
12. The apparatus of claim 11, wherein the printed content of a lottery ticket comprises a plurality of rows of printed dots, and wherein the printing and scanning are uploaded by: and synchronously starting printing and scanning, finishing scanning the printing content of the previous or P dot lines after printing one or P dot lines, and uploading a scanned image to an upper computer, wherein P is an integer larger than 1.
13. The apparatus of claim 12,
the scanning control module is specifically configured to: when the printing is finished, the paper feeding motor drives the paper roll to rotate to the paper cutting position of the cutter, and the scanning of all the dot line printing contents of the lottery ticket, including the scanning of the contents of the scanning dead zone, is finished; thus, when the lottery ticket is to be separated from the paper roll, the complete scanning image of the printed lottery ticket is synchronously obtained by splicing the scanning images of all the dot lines of the lottery ticket.
14. The apparatus of claim 11,
the storage control module is specifically configured to: and according to the image ID, according to a specified naming rule and the printing sequence of the lottery, within a certain storage period, encrypting and storing the complete scanned image of the lottery in a storage medium of an upper computer in a rolling mode, or encrypting and storing the complete scanned image of the lottery in a storage medium of a lower computer in a rolling mode.
15. The apparatus of claim 11, further comprising:
a comparison control module for: in the manual mode, the complete scanned image of the lottery ticket is called to inquire according to the image ID when needed; or, under the automatic identification mode of the machine, immediately carrying out image identification after printing of a lottery ticket is finished, comparing the identified printing content with the expected printing content according to the set characteristics to verify whether the result is consistent, and controlling the cutter to cut paper and separate the lottery ticket from the paper roll if the comparison result is consistent.
16. The apparatus of claim 15,
the printing contents identified by the comparison control module comprise the characteristic codes of the printed lottery tickets, the lottery ticket betting contents and one of the two-dimensional codes, the dot matrix codes and the bar codes of the lottery tickets.
17. The apparatus of claim 15, further comprising:
and the safety guarantee module is used for executing preset safety guarantee operation if the comparison results are not consistent under the automatic machine identification mode.
18. The apparatus of claim 17,
the safety guarantee module is specifically used for: if the comparison shows that the printing content is inconsistent with the expected printing content, and a blank ticket, a defective ticket, a compressed ticket or an error ticket appears, one of the following safety and security operations is selected to be executed:
a. the upper computer or the lower computer sends error reporting information and suspends subsequent printing;
b. the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, and finishes paper cutting after printing a waste mark on a lottery;
c. and the upper computer or the lower computer sends error reporting information to suspend subsequent printing, controls a paper feeding motor of the lower computer to retreat, drives a lottery paper roll to retreat for a preset distance, finishes paper cutting after printing the waste mark on the lottery, and reprints the lottery conforming to the expected printing content.
19. The apparatus of claim 11,
the instruction control module is specifically used for distinguishing the printed lottery ticket from the printed report: when the lottery ticket needs to be printed, the upper computer sends an image ID, printing contents and instructions including a scanning starting instruction and a printing ending mark to the lower computer; and when the report needs to be printed, the upper computer only sends the printing content and the printing end mark to the lower computer.
20. The apparatus of any one of claims 11 to 19,
the scanning imaging unit is specifically arranged between a heat-sensitive sheet and a cutter of the printer core; the scan control circuitry is integrated with control circuitry within the print control board.
21. A lottery ticket sale terminal system is characterized by comprising an upper computer and a lower computer which work cooperatively;
the lower computer is a thermal printer which is integrated with a scanning imaging system and has a scanning function, the scanning imaging system comprises a scanning imaging unit and a scanning control circuit for controlling the scanning imaging unit, the scanning imaging unit is integrated in a printer core of the thermal printer, and the scanning control circuit is integrated in a printing control panel of the thermal printer;
the upper computer is used for sending an image ID, printing contents and instructions to the lower computer when the lottery is printed;
the lower computer is used for printing according to the printing content after receiving the instruction, synchronously starting a scanning function, realizing printing and scanning as well as uploading, and synchronously obtaining a complete scanning image of the lottery ticket when the printing is finished and the printed lottery ticket is not separated from the roll paper;
and the upper computer is also used for storing the complete scanned image of the lottery ticket into the upper computer and/or the lower computer according to the image ID and the specified naming rule.
22. The system of claim 21, wherein the printed content of a lottery ticket comprises a plurality of rows of printed dots, and wherein printing while scanning and uploading comprises: and synchronously starting printing and scanning, finishing scanning the printing content of the previous or P dot lines after printing one or P dot lines, and uploading a scanned image to an upper computer, wherein P is an integer larger than 1.
23. The system of claim 21,
the scanning imaging unit is specifically arranged between a heat-sensitive sheet and a cutter of the printer core; the scan control circuitry is integrated with control circuitry within the print control board.
CN202110196491.1A 2021-02-22 2021-02-22 Method, device and system for integrity verification of printed lottery ticket Active CN112906023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110196491.1A CN112906023B (en) 2021-02-22 2021-02-22 Method, device and system for integrity verification of printed lottery ticket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110196491.1A CN112906023B (en) 2021-02-22 2021-02-22 Method, device and system for integrity verification of printed lottery ticket

Publications (2)

Publication Number Publication Date
CN112906023A true CN112906023A (en) 2021-06-04
CN112906023B CN112906023B (en) 2022-10-28

Family

ID=76124299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110196491.1A Active CN112906023B (en) 2021-02-22 2021-02-22 Method, device and system for integrity verification of printed lottery ticket

Country Status (1)

Country Link
CN (1) CN112906023B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051079A (en) * 2021-09-26 2022-02-15 南京奥拓电子科技有限公司 Method and system for electronic archiving after printing
CN114312004A (en) * 2022-03-07 2022-04-12 中体彩印务技术有限公司 Lottery printing quality monitoring method and system
CN115686395A (en) * 2022-11-04 2023-02-03 广州洛图终端技术有限公司 Lottery printing control method and system
CN116466897A (en) * 2023-02-21 2023-07-21 深圳市思乐数据技术有限公司 Lottery ticket checking method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060012806A1 (en) * 2004-07-16 2006-01-19 Francesc Subirada Method and apparatus for assessing nozzle health
CN201816281U (en) * 2010-01-29 2011-05-04 山东新北洋信息技术股份有限公司 Printer
US20130038905A1 (en) * 2010-04-09 2013-02-14 Qiangzi Cong Scanning-printing integrated machine for lotter ticket printing and cashing
CN103660596A (en) * 2012-09-25 2014-03-26 精工爱普生株式会社 Dot matrix printer and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060012806A1 (en) * 2004-07-16 2006-01-19 Francesc Subirada Method and apparatus for assessing nozzle health
CN201816281U (en) * 2010-01-29 2011-05-04 山东新北洋信息技术股份有限公司 Printer
US20130038905A1 (en) * 2010-04-09 2013-02-14 Qiangzi Cong Scanning-printing integrated machine for lotter ticket printing and cashing
CN103660596A (en) * 2012-09-25 2014-03-26 精工爱普生株式会社 Dot matrix printer and control method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051079A (en) * 2021-09-26 2022-02-15 南京奥拓电子科技有限公司 Method and system for electronic archiving after printing
CN114051079B (en) * 2021-09-26 2024-01-12 南京奥拓电子科技有限公司 Method and system for electronic archiving after printing
CN114312004A (en) * 2022-03-07 2022-04-12 中体彩印务技术有限公司 Lottery printing quality monitoring method and system
CN114312004B (en) * 2022-03-07 2022-06-17 中体彩印务技术有限公司 Lottery printing quality monitoring method and system
CN115686395A (en) * 2022-11-04 2023-02-03 广州洛图终端技术有限公司 Lottery printing control method and system
CN116466897A (en) * 2023-02-21 2023-07-21 深圳市思乐数据技术有限公司 Lottery ticket checking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112906023B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CN112906023B (en) Method, device and system for integrity verification of printed lottery ticket
AU769590B2 (en) Automatic barcode creation for data transfer and retrieval
US8994991B2 (en) Printing control method, printer and printing system
EP3373189B1 (en) Systems and methods for barcode verification
US9473663B2 (en) Control device, method of controlling a multifunction device, and a storage medium storing a program executed by a control unit that controls a recording device
JP6765858B2 (en) Image processing methods, programs, and image processing equipment
US11548293B2 (en) Processing device and platen
US10618314B2 (en) Non-transitory storage medium storing instructions readable by information processing apparatus, and code creating system
EP3846430B1 (en) Methods, apparatuses, and systems for batch print voiding
JP2001096872A (en) Printer and printed product inspecting device
CN103963483A (en) Unique code printing screening industrial fool-proofing device and printing method thereof
CN100438558C (en) Image reading apparatus and method of controlling same
JP2024123166A (en) Method, apparatus, and computer program product for verifying a printed indicium - Patents.com
US5988898A (en) Label printer having integrated optical scanner module
CN214475229U (en) Scanning and printing integrated machine and lottery terminal
CN217213708U (en) Lottery ticket reader
JP2007334517A (en) Bar code printing device and bar code printing method
CN115583114A (en) Plate printing method and related equipment thereof
KR20040101755A (en) On-line lottery ticket terminal
JP2021160252A (en) Printer
IL147169A (en) Automatic barcode creation for data transfer and retrieval

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