Summary of the invention
In view of this, the invention provides a kind of method and system of mechanical check lottery information, can realize that the stake information of inputting in lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket carries out mechanical check.
For solving the problems of the technologies described above, the technical solution used in the present invention is: a kind of method of mechanical check lottery information comprises:
Receive the lottery ticket print command, the described lottery ticket print command that receives is translated as lottery data;
Respond described lottery ticket print command;
Send described lottery data and described lottery ticket print command;
Receive described lottery data, the described lottery data and the stake information that receive are checked, the output checked result.
Preferably, the described described lottery ticket print command that will receive is translated as lottery data and is specially:
The byte-by-byte translation is carried out in described lottery ticket print command, removed the instruction character in the described print command, obtain the text message of lottery ticket;
From described text message, win main attribute data as lottery data.
Preferably, described main attribute data comprises: lottery ticket is played legitimate name, stake issue, mode of lottery, stake multiple, stake number and wager amounts.
Preferably, the print command of described reception lottery ticket, the step that the described lottery ticket print command that receives is translated as lottery data also comprises before:
Generate stake information, and send described stake information;
Receive described stake information, and according to the print command of described stake Information generation lottery ticket;
Send described lottery ticket print command.
Preferably, described generation stake information, and also comprise before sending the step of described stake information:
Generate the communication handshake agreement, and send described communication handshake agreement;
Receive and transmit described communication handshake agreement;
Receive and respond described communication handshake agreement.
A kind of system of mechanical check lottery information comprises: data collector, nuclear bill system and receipt printing machine; Wherein:
Described data collector receives and the print command of response lottery ticket, the byte-by-byte translation is carried out in the described lottery ticket print command that receives, remove the instruction character in the described print command, obtain the text message of lottery ticket, from described text message, win main attribute data as lottery data, and described lottery data is sent to connected nuclear bill system, the described lottery ticket print command that receives is sent to connected receipt printing machine;
Described nuclear bill system will receive described lottery data and stake information is checked, the output checked result.
Preferably, described main attribute data comprises: lottery ticket is played legitimate name, stake issue, mode of lottery, stake multiple, stake number and wager amounts.
Preferably, described system also comprises: the system of automatically buying a ticket and lottery ticket sales terminal; Wherein:
Described lottery ticket sales terminal generates the communication handshake agreement, and described communication handshake agreement is sent to coupled described data collector;
Described data collector receives described communication handshake agreement, and with described communication handshake protocol forward to coupled described receipt printing machine;
Described receipt printing machine receives and responds described communication handshake agreement;
After described receipt printing machine responded described communication handshake agreement, the described automatically system of buying a ticket generated described stake information, and described stake information is sent to connected described lottery ticket sales terminal and nuclear bill system;
Described lottery ticket sales terminal receives described stake information, according to the described lottery ticket print command of described stake Information generation, and described lottery ticket print command is sent to connected data collector.
Can find out from above-mentioned technical scheme, the method and system of a kind of mechanical check lottery information disclosed by the invention, by data collector the lottery ticket print command that receives is translated as lottery data, and lottery data is sent to the nuclear bill system, by the nuclear bill system lottery data and the stake information that receive are carried out mechanical check, and the output checked result, realized that the stake information of inputting in lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket checks automatically.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention discloses a kind of method and system of mechanical check lottery information, can realize that the stake information of inputting in lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket carries out mechanical check.
As shown in Figure 1, the method for a kind of mechanical check lottery information disclosed by the invention comprises:
S101, the print command of reception lottery ticket are translated as lottery data with the described lottery ticket print command that receives;
S102, the print command of response lottery ticket;
S103, the described lottery data of transmission and described lottery ticket print command;
S104, receive described lottery data, the described lottery data and the stake information that receive are checked, the output checked result.
In the above-described embodiments, by data collector the lottery data that the nucleation bill system can be identified is translated in the lottery ticket print command that receives, the print command that simultaneously data collector response receives, and the lottery data that will obtain after will translating by data collector is sent to the nuclear bill system.The nuclear bill system is checked the lottery data and the stake information that receive, and the output checked result, realized lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket in the stake information inputted carry out mechanical check.
As shown in Figure 2, the method for the disclosed a kind of mechanical check lottery information of another embodiment of the present invention comprises:
S201, generation communication handshake agreement, and send described communication handshake agreement;
S202, reception are also transmitted described communication handshake agreement;
S203, reception also respond described communication handshake agreement;
S204, generation stake information, and send described stake information;
S205, the described stake information of reception, and according to the print command of described stake Information generation lottery ticket;
S206, the described lottery ticket print command of transmission;
S207, the print command of reception lottery ticket are translated as lottery data with the described lottery ticket print command that receives;
S208, the print command of response lottery ticket;
S209, the described lottery data of transmission and described lottery ticket print command;
S210, reception also respond described lottery ticket print command, print paper lottery ticket;
S211, receive described lottery data, the described lottery data and the stake information that receive are checked, the output checked result.
In the above-described embodiments, generate the communication handshake agreement by the lottery ticket sales terminal, and the communication handshake agreement that generates be sent to connected data collector, data collector with the communication handshake protocol forward that receives to connected receipt printing machine; Receipt printing machine receives and the responding communication Handshake Protocol, after the receipt printing machine responding communication agreement, automatically the system of buying a ticket generates stake information, and the stake information that will generate is sent to connected lottery ticket sales terminal and nuclear bill system, the lottery ticket sales terminal is according to the stake Information generation lottery ticket print command that receives, and the lottery ticket print command that generates is sent to connected data collector, data collector receives and the print command of response lottery ticket, and the lottery ticket print command byte-by-byte that receives translated, obtain the text message of lottery ticket behind the print command instruction character in the middle of removing, from the text message of lottery ticket, win the main attribute data of lottery as lottery data, wherein, main attribute data comprises: lottery ticket is played legitimate name, the stake issue, mode of lottery, the stake multiple, stake number and wager amounts etc.Subsequently, the lottery data that data collector will obtain after will translating is sent to the nuclear bill system, and simultaneously, the lottery ticket print command before data collector will be translated is sent to receipt printing machine, and receipt printing machine receives and the print command of response lottery ticket, prints paper lottery ticket.The nuclear bill system is checked the lottery data and the stake information that receive, whether the lottery ticket object for appreciation legitimate name, stake issue, mode of lottery, stake multiple, the stake number that check both be all consistent with wager amounts, if above content is all consistent then show that the lottery ticket that receipt printing machine prints is correct, opposite then show that the lottery ticket that receipt printing machine prints is wrong, realized that the stake information of inputting in the lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket carries out mechanical check.
As shown in Figure 3, the system for a kind of mechanical check lottery information disclosed by the invention comprises: data collector 11, nuclear bill system 12 and receipt printing machine 13; Wherein:
Data collector 11 receives and the print command of response lottery ticket, the byte-by-byte translation is carried out in the described lottery ticket print command that receives, remove the instruction character in the described print command, obtain the text message of lottery ticket, from text message, win main attribute as lottery data, and described lottery data is sent to connected nuclear bill system 12, the described lottery ticket print command that receives is sent to connected receipt printing machine 13;
Receipt printing machine 13 receives and responds described lottery ticket print command, prints paper lottery ticket;
Nuclear bill system 12 will receive described lottery data and stake information is checked, the output checked result.
The principle of work of above-described embodiment is: by data collector 11 the byte-by-byte translation is carried out in the lottery ticket print command that receives, remove the instruction character in the described print command, obtain the text message of lottery ticket, from text message, win the lottery data that main attribute can be identified as nuclear bill system 12, and the lottery data that will obtain after will translating is sent to nuclear bill system 12, simultaneously, data collector 11 response lottery ticket print commands, and the lottery ticket print command before will translating is sent to receipt printing machine 13, receipt printing machine 13 receives and the print command of response lottery ticket, prints paper lottery ticket.Nuclear bill system 12 is checked the lottery data and the stake information that receive, and the output checked result, realized lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket in the stake information inputted carry out mechanical check.
Another embodiment of the present invention also discloses a kind of system of mechanical check lottery information, as shown in Figure 4, comprising: lottery ticket sales terminal 21, data collector 22, receipt printing machine 23, automatically buy a ticket system 24 and nuclear bill system 25; Wherein:
Lottery ticket sales terminal 21 generates the communication handshake agreement, and described communication handshake agreement is sent to coupled described data collector 22;
Data collector 22 receives described communication handshake agreement, and with described communication handshake protocol forward to coupled receipt printing machine 23;
Receipt printing machine 23 receives and responds described communication handshake agreement;
After the described communication handshake agreement of receipt printing machine 23 responses, the system of automatically buying a ticket 24 generates described stake information, and described stake information is sent to connected lottery ticket sales terminal 21 and nuclear bill system 25;
Lottery ticket sales terminal 21 receives described stake information, according to the print command of described stake Information generation lottery ticket, and described lottery ticket print command is sent to connected data collector 22;
Data collector 22 receives and the print command of response lottery ticket, and the byte-by-byte translation is carried out in the described lottery ticket print command that will receive, remove the instruction character in the described print command, obtain the text message of lottery ticket, from described text message, win main attribute data as lottery data, and described lottery data is sent to connected nuclear bill system 25, the described lottery ticket print command that receives is sent to connected receipt printing machine 23;
Receipt printing machine 23 receives and responds described lottery ticket print command, prints paper lottery ticket;
Nuclear bill system 25 will receive described lottery data and stake information is checked, the output checked result.
The principle of work of above-described embodiment is: generate the communication handshake agreement by lottery ticket sales terminal 21, and the communication handshake agreement that generates is sent to connected data collector 22, data collector 22 with the communication handshake protocol forward that receives to connected receipt printing machine 23; Receipt printing machine 23 receives and the responding communication Handshake Protocol, after the receipt printing machine 23 responding communication agreements, automatically the system of buying a ticket 24 generates stake information, and the stake information that will generate is sent to connected lottery ticket sales terminal 21 and nuclear bill system 25, lottery ticket sales terminal 21 is according to the stake Information generation lottery ticket print command that receives, and the lottery ticket print command that generates is sent to connected data collector 22, data collector 22 receives and the print command of response lottery ticket, and the byte-by-byte translation is carried out in the described lottery ticket print command that will receive, remove the instruction character in the described print command, obtain the text message of lottery ticket, from described text message, win the lottery data that main attribute data can be identified as nuclear bill system 25, wherein, main attribute data comprises: lottery ticket is played legitimate name, the stake issue, mode of lottery, the stake multiple, stake number and wager amounts.The lottery data that subsequent data harvester 22 will obtain after will translating is sent to nuclear bill system 25, simultaneously, lottery ticket print command before data collector 22 will be translated is sent to receipt printing machine 23, and receipt printing machine 23 receives and the print command of response lottery ticket, prints paper lottery ticket.Nuclear bill system 25 is checked the lottery data and the stake information that receive, whether the lottery ticket object for appreciation legitimate name, stake issue, mode of lottery, stake multiple, the stake number that check both be all consistent with wager amounts, if above content is all consistent then show that the lottery ticket that receipt printing machine prints is correct, opposite then show that the lottery ticket that receipt printing machine prints is wrong, realized that the stake information of inputting in the lottery ticket print command that receipt printing machine is got access to and the system of automatically buying a ticket carries out mechanical check.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, in other embodiments realization.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.