Summary of the invention
The present invention throws color method and electronic equipment by providing a kind of, solves in prior art and buys papery entity lottery ticket, the inefficient technical matters of drawing a bill of existence.
On the one hand, the embodiment of the present application provides following technical scheme:
A kind of color method of throwing, be applied in the first electronic equipment, described first electronic equipment is connected with lottery tickets machine; Described first electronic equipment is connected by network with the second electronic equipment, and described method comprises:
The sign receiving described second electronic equipment transmission needs the lottery ticket print signal of print lottery tickets;
Based on described lottery ticket print signal, feed back and whether be in the status information of idle condition to described second electronic equipment for characterizing described first electronic equipment;
Receive the lottery data that described second electronic equipment prints based on the need that described status information sends;
Resolve described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify;
Generate print command; Send the described lottery data after format transformation and described print command extremely described lottery tickets machine, print described lottery data to control described lottery tickets machine.
Optionally, the described lottery data of described parsing; And described lottery data is converted to the data layout that described lottery tickets machine can identify, be specially: resolve described lottery data, to determine the type of described lottery data; When described type is traditional lottery, be the data layout of simulating keyboard value by the Data Format Transform of described lottery data; When described type is competing coloured silk, be hexadecimal data layout by the Data Format Transform of described lottery data.
Optionally, after sending the described lottery data after format transformation and described print command to described lottery tickets machine, also comprise: receive the print result data that described lottery tickets machine returns; Send described print result data to described second electronic equipment.
Optionally, after the lottery data that described second electronic equipment of described reception sends based on described status information, also comprise: store described lottery data and receive the time data of described lottery data.
Optionally, when described second electronic equipment is terminal, when described first electronic equipment is connected by LAN (Local Area Network) with described terminal, described first electronic equipment and described second electronic equipment carry out data communication by User Datagram Protoco (UDP); When described second electronic equipment is Website server, when described first electronic equipment is connected with described terminal through internet, described first electronic equipment and described second electronic equipment carry out data communication by HTML (Hypertext Markup Language).
On the other hand, also provide a kind of and throw color method, be applied in the second electronic equipment, described second electronic equipment is connected by network with the first electronic equipment, and described first electronic equipment is connected with lottery tickets machine, and described method comprises:
Sending to characterize needs the lottery ticket print signal of print lottery tickets to described first electronic equipment;
Receive described first electronic equipment based on described lottery ticket print signal, the status information whether being in idle condition for characterizing described first electronic equipment of feedback;
When described status information shows that described first electronic equipment is in idle condition, send lottery data extremely described first electronic equipment that need print, control described lottery tickets machine to make described first electronic equipment and print described lottery data.
Optionally, when described second electronic equipment is Website server, when described first electronic equipment is connected by internet with described Website server, described Website server is connected with buyer terminal and storekeeper's terminal respectively, before described transmission characterizes and needs the lottery ticket print signal of print lottery tickets to described first electronic equipment, also comprise: receive the lottery ticket purchase information that described buyer terminal sends, and described lottery ticket purchase information is sent to described storekeeper's terminal; Wherein, described lottery ticket purchase information comprises N number of lottery data, and N is natural number; Receive the lottery data of the need determined from the described N number of lottery data printing that described storekeeper's terminal sends; Based on the described lottery data that need print, generate described lottery ticket print signal.
Optionally, when described second electronic equipment is Website server, when described first electronic equipment is connected with described terminal through internet, described second electronic equipment is connected with buyer terminal and storekeeper's terminal respectively, after the lottery data that described transmission need print to described first electronic equipment, also comprise: receive the print result data that described second electronic equipment sends; Send described print result data to buyer terminal and/or storekeeper's terminal, get the lottery ticket printed to point out user.
Optionally, when described second electronic equipment is storekeeper's terminal, when described first electronic equipment is connected by LAN (Local Area Network) with described storekeeper's terminal, described storekeeper's terminal is connected with buyer terminal, described transmission also comprises before characterizing and needing the lottery ticket print signal of print lottery tickets to described first electronic equipment: receive the lottery ticket purchase information that described buyer terminal sends, wherein, described lottery ticket purchase information comprises N number of lottery data, and N is natural number; Receive one and select operation; Based on described selection operation, from described N number of lottery data, determine the lottery data that need print; Based on the described lottery data that need print, generate described lottery ticket print signal.
Again on the one hand, also provide a kind of electronic equipment, be specially the first electronic equipment, described first electronic equipment is connected with lottery tickets machine, and described first electronic equipment is connected by network with the second electronic equipment, and described first electronic equipment comprises:
Transceiver, the sign sent for receiving described second electronic equipment needs the lottery ticket print signal of print lottery tickets; Based on described lottery ticket print signal, feed back and whether be in the status information of idle condition to described second electronic equipment for characterizing described first electronic equipment; Receive the lottery data that described second electronic equipment sends based on described status information;
Processor, is connected with transceiver, for resolving described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify; Generate print command, and send the described lottery data after format transformation and described print command extremely described lottery tickets machine by described transceiver, print described lottery data to control described lottery tickets machine.
The one or more technical schemes provided in the embodiment of the present application, at least have following technique effect or advantage:
1, the method and apparatus that provides of the embodiment of the present application, when the first electronic equipment is idle, the lottery data of the need printing that the second electronic equipment sends can be received, do not require that storekeeper must use input through keyboard lottery data, and control lottery tickets machine again after automatically lottery data being converted to the data layout that lottery tickets machine can identify and print described lottery data, and the lottery data of set form need not be inputted, achieve the technique effect of the efficiency of drawing a bill improving papery entity lottery ticket.
2, the method and apparatus that provides of the embodiment of the present application, can gather the print result data receiving described lottery tickets machine and return; And send described print result data to described second electronic equipment, and whether successful to remind storekeeper or lottery fan to print, whether can get tickets, achieve the technique effect improving Consumer's Experience.
3, the method and apparatus that provides of the embodiment of the present application, can store the lottery data printed, prevent lottery data from losing, and is convenient to lottery fan and storekeeper carries out historical query to lottery ticket.
4, the method and apparatus that provides of the embodiment of the present application, when the first electronic equipment is idle, the second electronic equipment just sends lottery data to the first electronic equipment, avoids print data to disturb, and prevents lottery data from makeing mistakes.
5, the method and apparatus that provides of the embodiment of the present application, the first electronic equipment can be mutual with Website server, received the lottery data that need print by internet, also can with terminal interaction, accept the lottery data that LAN (Local Area Network) domestic demand prints, achieve multiple lottery, print the mode of entity lottery ticket.
Embodiment
The present invention throws color method and electronic equipment by providing a kind of, solves in prior art and buys papery entity lottery ticket, the inefficient technical matters of drawing a bill of existence.Achieve the technique effect of the efficiency of drawing a bill improving papery entity lottery ticket.
For solving the problems of the technologies described above, the embodiment of the present application provides the general thought of technical scheme as follows:
The application provides a kind of and throws color method, and be applied in the first electronic equipment, described first electronic equipment is connected with lottery tickets machine; Described first electronic equipment is connected by network with the second electronic equipment, and described method comprises:
The sign receiving described second electronic equipment transmission needs the lottery ticket print signal of print lottery tickets;
Based on described lottery ticket print signal, feed back and whether be in the status information of idle condition to described second electronic equipment for characterizing described first electronic equipment;
Receive the lottery data that described second electronic equipment prints based on the need that described status information sends;
Resolve described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify;
Generate print command; Send the described lottery data after format transformation and described print command extremely described lottery tickets machine, print described lottery data to control described lottery tickets machine.
Can be found out by foregoing, when the first electronic equipment is idle, the lottery data of the need printing that the second electronic equipment sends can be received, do not require that storekeeper must use input through keyboard lottery data, and control lottery tickets machine again after automatically lottery data being converted to the data layout that lottery tickets machine can identify and print described lottery data, and the lottery data of set form need not be inputted, achieve the technique effect of the efficiency of drawing a bill improving papery entity lottery ticket.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail, the specific features being to be understood that in the embodiment of the present invention and embodiment is the detailed description to technical scheme, instead of the restriction to technical scheme, when not conflicting, the technical characteristic in the embodiment of the present application and embodiment can combine mutually.
Embodiment one
In the present embodiment, provide a kind of color method of throwing, be applied in the first electronic equipment, described first electronic equipment is connected with lottery tickets machine; Described first electronic equipment is connected by network with the second electronic equipment, please refer to Fig. 1, and Fig. 1 is the process flow diagram of the throwing coloured silk method of the embodiment of the present application one, and as shown in Figure 1, described method comprises:
Step S101, the sign receiving described second electronic equipment transmission needs the lottery ticket print signal of print lottery tickets;
Step S102, based on described lottery ticket print signal, feeds back and whether is in the status information of idle condition to described second electronic equipment for characterizing described first electronic equipment;
Step S103, receives the lottery data that described second electronic equipment prints based on the need that described status information sends;
Step S104, resolves described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify;
Step S105, generates print command; Send the described lottery data after format transformation and described print command extremely described lottery tickets machine, print described lottery data to control described lottery tickets machine.
In specific implementation process, different according to the connected mode of the second electronic equipment and the first electronic equipment, the method that the present embodiment provides can be divided into two kinds of situations, and one is in LAN (Local Area Network), and one is internet, is described respectively below:
The first, described second electronic equipment can be terminal, and described first electronic equipment is connected by LAN (Local Area Network) with described terminal.
Below for concrete lottery process, the service condition of scheme in LAN (Local Area Network) that the application provides is described:
Please refer to Fig. 2, the system schematic of lottery in the LAN (Local Area Network) that Fig. 2 provides for the embodiment of the present application, this system comprises multiple first electronic equipment 201, the lottery tickets machine 202 be connected one by one with multiple first electronic equipment 201, the storekeeper's terminal 203 be connected by LAN (Local Area Network) with multiple first electronic equipment 201, the multiple buyer terminals 204 be connected by LAN (Local Area Network) with storekeeper's terminal 203.
In specific implementation process, described first electronic equipment 201 and described second electronic equipment, i.e. storekeeper's terminal 203, by UDP (User Datagram Protocol in LAN (Local Area Network), user datagram) agreement carries out data communication, and added the proof procedure of definition in the communications.
When lottery ticket bought by needs, the buyer comes the lottery ticket shop of storekeeper, when enter the first electronic equipment place LAN (Local Area Network) region time, with the App (Application that buyer terminal 204 is installed, application) carry out selection and the purchase of lottery ticket, wherein, corresponding App can be downloaded and be installed to buyer terminal 204 by the first electronic equipment 201, and register buyer's account; Further, the first electronic equipment 201 can also obtain the App of latest edition from internet by transceiver;
After the buyer buys lottery ticket by buyer terminal 204, corresponding lottery ticket purchase information can be gathered by LAN (Local Area Network) and is sent to storekeeper's terminal 203, wherein, described lottery ticket purchase information comprises corresponding lottery data, and described lottery data comprises types of lottery ticket and lottery number;
After storekeeper is logged in by storekeeper's account of registration, storekeeper's terminal 203 receives the lottery ticket purchase information that multiple buyer terminal 204 sends, the lottery data that storekeeper can select needs to print in the lottery ticket purchase information gathered, a selection operation is received to make storekeeper's terminal 203, with based on described selection operation, from the lottery data of described multiple lottery ticket purchase information, determine the lottery data that need print;
Subsequently, storekeeper's terminal 203, based on the described lottery data that need print, generates described lottery ticket print signal, and is sent to multiple first electronic equipment 201;
Multiple first electronic equipment 201, based on described lottery ticket print signal, feeds back and whether is in the status information of idle condition to storekeeper's terminal 203 for characterizing described first electronic equipment;
Storekeeper's selection mode information displaying is in the first electronic equipment 201 of idle condition, and is sent the lottery data that need print the first electronic equipment 201 to idle condition by storekeeper's terminal 203;
First electronic equipment 201 receives the lottery data of the need printing that storekeeper's terminal 203 sends; Resolve described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify; Generate print command; Send the described lottery data after format transformation and described print command extremely described lottery tickets machine, print described lottery data to control described lottery tickets machine.
Further, the first electronic equipment 201 can receive the print result data that described lottery tickets machine returns; And send described print result data to storekeeper's terminal 203, get tickets to remind storekeeper and lottery fan.
Further, storekeeper's terminal can also arrange multiple young waiter in a wineshop or an inn's terminal for 203 times to carry out the print management of lottery data, and young waiter in a wineshop or an inn's terminal also can send lottery data to the first electronic equipment 201 that need print, to reduce the processing pressure of storekeeper's terminal 203 by LAN (Local Area Network).
In the first case, the groundwork process of the first electronic equipment 201 is: complete and the data communication in LAN (Local Area Network) and data interaction.The passive inquiry request accepting storekeeper's terminal 203, does not have ticket at local data base, when the first electronic equipment 201 is in halted state simultaneously, notifies that storekeeper's terminal 203 can send print data.The data received are stored in local database.Realize the function of data back simultaneously, by the data feedback that printed to client's software of storekeeper's terminal 203, be shown to user and check.
The second, described second electronic equipment is Website server, and described first electronic equipment is connected with described terminal through internet.
Same for concrete lottery process below, the service condition of scheme in internet that the application provides is described:
Please refer to Fig. 3, the system schematic of lottery in the internet that Fig. 3 provides for the embodiment of the present application, this system comprises multiple first electronic equipment 201, the lottery tickets machine 202 be connected one by one with multiple first electronic equipment 201, the Website server 301 be connected by internet with multiple first electronic equipment 201, the multiple buyer terminals 204 be connected by internet with Website server 301 and storekeeper's terminal 203, described first electronic equipment 201 can pass through WIF (Wireless Fidelity, Wireless Fidelity) accessing Internet, also can be accessed by netting twine, this is not restricted.
In specific implementation process, described first electronic equipment 201 and described second electronic equipment, i.e. storekeeper's terminal 203, carry out data communication by HTTP (Hyper Text Transfer Protocol, Hyper text transfer) agreement in LAN (Local Area Network).
When lottery fan needs lottery, only need to log in lottery website by buyer account, and select lottery ticket to bet, and by multiple buyer terminal 204, lottery ticket purchase information transmission is gathered to Website server 301; Wherein, described lottery ticket purchase information comprises corresponding lottery data, and described lottery data comprises types of lottery ticket and lottery number;
When storekeeper's terminal 203 is logged in by storekeeper's account, receive multiple lottery datas that described Website server 301 sends, the lottery data that storekeeper can select needs to print in the multiple lottery datas gathered, a selection operation is received to make storekeeper's terminal 203, with based on described selection operation, from the lottery data of described multiple lottery ticket purchase information, determine the lottery data that need print; Storekeeper's terminal 203 sends the lottery data that need print to Website server 301;
Website server 301, based on the described lottery data that need print received, generates described lottery ticket print signal, and is sent to multiple first electronic equipment 201;
Multiple first electronic equipment 201, based on described lottery ticket print signal, feeds back and whether is in the status information of idle condition to Website server 301 for characterizing described first electronic equipment;
Website server 301 selection mode information displaying is in the first electronic equipment 201 of idle condition, and sends the lottery data that need print the first electronic equipment 201 to idle condition;
Certainly, also can be that Website server 301 sends status information to storekeeper's terminal 203, storekeeper's terminal 203 selection mode information displaying is in the first electronic equipment 201 of idle condition, and is sent the lottery data that need print the first electronic equipment 201 to idle condition by Website server 301;
Specifically, Website server 301 and the first electronic equipment 201 are undertaken alternately by http protocol, have each second a heartbeat mutual.When storekeeper's terminal 203 submits the stake list needing to print to by website, click " confirmation " button, Website server 301 notifies that the first electronic equipment 201 has stake single needs to draw a bill, and the first electronic equipment 201 has resource to print, and so feeds back " free time " information.Website server 301 receives " free time " information, and will the stake single transmit of printing be needed to the first electronic equipment 201, each first electronic equipment 201 has oneself exclusive numbering.Storekeeper selects the lottery tickets machine that will draw a bill according to this numbering.
First electronic equipment 201 receives the lottery data of the need printing that Website server 301 sends; Resolve described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify; Generate print command; Send the described lottery data after format transformation and described print command extremely described lottery tickets machine, print described lottery data to control described lottery tickets machine.
Further, the first electronic equipment 201 can receive the print result data that described lottery tickets machine returns; And sending described print result data to Website server 301, Website server 301 sends described print result data to buyer terminal 204 and/or storekeeper's terminal 203, gets the lottery ticket printed to point out user.
Further, storekeeper's terminal can also arrange multiple young waiter in a wineshop or an inn's terminal for 203 times to carry out the print management of lottery data, young waiter in a wineshop or an inn's terminal also can send lottery data to the first electronic equipment 201 that need print, to reduce the processing pressure of storekeeper's terminal 203 by Website server 301.
Further, lottery ticket prints successfully, first electronic equipment 201 can send the additional informations such as odds to Website server 301, and additional information is sent to buyer terminal 204 and shows by Website server 301 again, and when solving long-range drawing a bill, lottery fan cannot understand the problem of lottery ticket in detail.Simultaneously lottery fan can take the entity ticket of oneself at any time, avoids in net purchase because of all disputes that entity ticket does not cause under oneself controls.
In the second situation, the groundwork process of the first electronic equipment 201 is: complete and the communication of Website server 301 and data interaction.First the data of monitoring net site server 301, and contact heartbeat is provided.When Website server 301 has lottery ticket to need to print, when first electronic equipment 201 is idle, notice Website server 301 can send betting statistics, accepts the lottery ticket content of Website server 301 transmission and it is stored in local data base according to the tandem received.And the data printed are sent to Website server 301 by http.
In specific implementation process, the first electronic equipment 201 can realize above-mentioned the first and the second situation simultaneously, storekeeper's terminal 203 can be selected to be drawn a bill by LAN (Local Area Network) or internet, when data database storing, the data obtained for differentiation HTTP and UDP obtain data, data add a zone bit, the convenient feedback direction distinguishing the data after having printed.
In the embodiment of the present application, no matter be the first situation above-mentioned, or the second situation, the described lottery data of described parsing; And described lottery data is converted to the data layout that described lottery tickets machine can identify, be specially:
Resolve described lottery data, to determine the type of described lottery data;
When described type is traditional lottery, be the data layout of simulating keyboard value by the Data Format Transform of described lottery data;
When described type is competing coloured silk, be hexadecimal data layout by the Data Format Transform of described lottery data.
Specifically, being the header file according to arranging in lottery data, determining the type of every bar lottery data, belong to traditional lottery or competing coloured silk; Then determine that the concrete coloured silk of this lottery data is planted according to the data in protocol entity.
Specifically, traditional lottery comprise common to make wild with joy greatly, arrange, seven-star are color; Competing coloured silk comprises competing color basketball and competing color football etc.
Further, after the lottery data that described second electronic equipment of described reception sends based on described status information, also comprise:
Store the time data of described lottery data and the described lottery data of reception, to prevent loss of data, be convenient to search history stake information, reduce dispute.
In specific implementation process, described first electronic equipment can also accept manual operation, realizes controlling lottery tickets machine print lottery tickets, the automatic ticket of network control and manually draw a bill and only can perform, prevents data interference from causing wrong ticket.
Based on design on the one hand, from the angle of the second electronic equipment embodiment one, provide embodiment two.
Embodiment two
In the present embodiment, provide a kind of color method of throwing, be applied in the second electronic equipment, described second electronic equipment is connected by network with the first electronic equipment, and described first electronic equipment is connected with lottery tickets machine, please refer to Fig. 4, and described method comprises:
Step S401, sending to characterize needs the lottery ticket print signal of print lottery tickets to described first electronic equipment;
Step S402, receives described first electronic equipment based on described lottery ticket print signal, the status information whether being in idle condition for characterizing described first electronic equipment of feedback;
Step S403, when described status information shows that described first electronic equipment is in idle condition, sends lottery data extremely described first electronic equipment that need print, controls described lottery tickets machine print described lottery data to make described first electronic equipment.
In the embodiment of the present application, when described second electronic equipment is Website server, when described first electronic equipment is connected by internet with described Website server, described Website server is connected with buyer terminal and storekeeper's terminal respectively, described transmission also comprises before characterizing and needing the lottery ticket print signal of print lottery tickets to described first electronic equipment:
Receive the lottery ticket purchase information that described buyer terminal sends, and described lottery ticket purchase information is sent to described storekeeper's terminal; Wherein, described lottery ticket purchase information comprises N number of lottery data, and N is natural number;
Receive the lottery data of the need determined from the described N number of lottery data printing that described storekeeper's terminal sends;
Based on the described lottery data that need print, generate described lottery ticket print signal.
In the embodiment of the present application, when described second electronic equipment is Website server, when described first electronic equipment is connected with described terminal through internet, described second electronic equipment is connected with buyer terminal and storekeeper's terminal respectively, after the lottery data that described transmission need print to described first electronic equipment, also comprise:
Receive the print result data that described second electronic equipment sends;
Send described print result data to buyer terminal and/or storekeeper's terminal, get the lottery ticket printed to point out user.
In the embodiment of the present application, when described second electronic equipment is storekeeper's terminal, when described first electronic equipment is connected by LAN (Local Area Network) with described storekeeper's terminal, described storekeeper's terminal is connected with buyer terminal, described transmission also comprises before characterizing and needing the lottery ticket print signal of print lottery tickets to described first electronic equipment:
Receive the lottery ticket purchase information that described buyer terminal sends, wherein, described lottery ticket purchase information comprises N number of lottery data, and N is natural number;
Receive one and select operation; Based on described selection operation, from described N number of lottery data, determine the lottery data that need print;
Based on the described lottery data that need print, generate described lottery ticket print signal.
The throwing coloured silk method provided in the throwing coloured silk method provided in the present embodiment two and embodiment one, based on the aspect of two under same inventive concept, detailed description is done to implementation process above, so those skilled in the art can according to the implementation process of the method in aforementioned understanding the present embodiment be described clearly, succinct in order to instructions, has just repeated no more at this.
Based on design on the one hand, from the structural point of the first electronic equipment embodiment one, provide embodiment three.
Embodiment three
In embodiment three, provide a kind of electronic equipment, be specially the first electronic equipment, described first electronic equipment is connected with lottery tickets machine, described first electronic equipment is connected by network with the second electronic equipment, please refer to Fig. 5, as shown in Figure 5, described first electronic equipment comprises:
Transceiver 501, the sign sent for receiving described second electronic equipment needs the lottery ticket print signal of print lottery tickets; Based on described lottery ticket print signal, feed back and whether be in the status information of idle condition to described second electronic equipment for characterizing described first electronic equipment; Receive the lottery data that described second electronic equipment sends based on described status information;
Processor 502, is connected with transceiver 501, for resolving described lottery data; And described lottery data is converted to the data layout that described lottery tickets machine can identify; Generate print command, and send the described lottery data after format transformation and described print command extremely described lottery tickets machine by described transceiver 501, print described lottery data to control described lottery tickets machine.
In the embodiment of the present application, described processor 502 also for:
Resolve described lottery data, to determine the type of described lottery data;
When described type is traditional lottery, be the data layout of simulating keyboard value by the Data Format Transform of described lottery data;
When described type is competing coloured silk, be hexadecimal data layout by the Data Format Transform of described lottery data.
In the embodiment of the present application, described transceiver 501 also for:
Receive the print result data that described lottery tickets machine returns;
Send described print result data to described second electronic equipment.
In the embodiment of the present application, described first electronic equipment, also comprises:
Storer is connected with transceiver, for storing the time data of described lottery data and the described lottery data of reception.
In specific implementation process, the first electronic equipment can be provided with multiple button, control the duty of the first electronic equipment with this locality.
Such as: speed of drawing a bill is quick, middling speed, at a slow speed three buttons, selects three speed of drawing a bill; Work and stopping two states, control color station assistant's state.Duty is: after receiving the signal having ticket needs to print of the second electronic equipment transmission, mainly get the data needing to print from the second electronic equipment, and control lottery tickets machine by data-printing out.Halted state is: receive the signal that ticket needs to print, ignore this signal, do not fetch data from the second electronic equipment, and check the data of local data, unprinted data are also had if local, then give the second electronic equipment by all data feedbacks, facilitate lottery fan's real time inspection to every lottery ticket shop state.
The security made to draw a bill, the first electronic device works state is consecutive hours, and will shield the equipment that lottery tickets machine is outside all, namely the keyboard, ticket readout unit etc. of lottery tickets machine cannot use.When preventing automatic ticket, print lottery tickets is caused to be made mistakes because of external units such as operation keyboards.
The connected mode of the first electronic equipment and lottery tickets machine is: USB (Universal Serial Bus, USB (universal serial bus)) interface, com (cluster communication port, serial communication end) mouth or keyboard mouth connect.
The throwing coloured silk method provided in the electronic equipment provided in the present embodiment three and embodiment one, based on the aspect of two under same inventive concept, detailed description is done to implementation process above, so those skilled in the art can according to the structure of the equipment in aforementioned understanding the present embodiment be described clearly, succinct in order to instructions, has just repeated no more at this.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
1, the method and apparatus that provides of the embodiment of the present application, when the first electronic equipment is idle, the lottery data of the need printing that the second electronic equipment sends can be received, do not require that storekeeper must use input through keyboard lottery data, and control lottery tickets machine again after automatically lottery data being converted to the data layout that lottery tickets machine can identify and print described lottery data, and the lottery data of set form need not be inputted, achieve the technique effect of the efficiency of drawing a bill improving papery entity lottery ticket.
2, the method and apparatus that provides of the embodiment of the present application, can gather the print result data receiving described lottery tickets machine and return; And send described print result data to described second electronic equipment, and whether successful to remind storekeeper or lottery fan to print, whether can get tickets, achieve the technique effect improving Consumer's Experience.
3, the method and apparatus that provides of the embodiment of the present application, can store the lottery data printed, prevent lottery data from losing, and is convenient to lottery fan and storekeeper carries out historical query to lottery ticket.
4, the method and apparatus that provides of the embodiment of the present application, when the first electronic equipment is idle, the second electronic equipment just sends lottery data to the first electronic equipment, avoids print data to disturb, and prevents lottery data from makeing mistakes.
5, the method and apparatus that provides of the embodiment of the present application, the first electronic equipment can be mutual with Website server, received the lottery data that need print by internet, also can with terminal interaction, accept the lottery data that LAN (Local Area Network) domestic demand prints, achieve multiple lottery, print the mode of entity lottery ticket.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Specifically, the computer program instructions that two kinds of information processing methods in the embodiment of the present application are corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.