CN104835238A - Betting method and electronic equipment - Google Patents

Betting method and electronic equipment Download PDF

Info

Publication number
CN104835238A
CN104835238A CN201510171223.9A CN201510171223A CN104835238A CN 104835238 A CN104835238 A CN 104835238A CN 201510171223 A CN201510171223 A CN 201510171223A CN 104835238 A CN104835238 A CN 104835238A
Authority
CN
China
Prior art keywords
lottery
electronic equipment
data
print
terminal
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
CN201510171223.9A
Other languages
Chinese (zh)
Other versions
CN104835238B (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.)
Beijing chunxinya Technology Co.,Ltd.
Original Assignee
Interactive Science And Technology Ltd Of Beijing Bole
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 Interactive Science And Technology Ltd Of Beijing Bole filed Critical Interactive Science And Technology Ltd Of Beijing Bole
Priority to CN201510171223.9A priority Critical patent/CN104835238B/en
Publication of CN104835238A publication Critical patent/CN104835238A/en
Application granted granted Critical
Publication of CN104835238B publication Critical patent/CN104835238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a betting method and electronic equipment. The method is applied to the first electronic equipment. The first electronic equipment is connected with a lottery machine and second electronic equipment respectively. The method comprises steps of: receiving a lottery printing signal characterizing a lottery to be printed from the second electronic equipment; based on the lottery printing signal, feeding back state information characterizing whether the first electronic equipment is in an idle state to the second electronic equipment; receiving the lottery data to be printed sent by the second electronic equipment based on the state information; parsing the lottery data; converting the lottery data into a data format that can be identified by the lottery machine; generating a print command; and sending the lottery data after format conversion and print command to the lottery machine, in order to control the lottery machine to print the lottery data. The method provided by the present invention solves the technical problem of low efficiency of lottery printing in the purchase of paper lottery of the prior art, and realizes the technical effect of the lottery printing efficiency of the paper lottery.

Description

A kind of color method of throwing and electronic equipment
Technical field
The present invention relates to and throw color technical field, particularly relate to a kind of color method of throwing and electronic equipment.
Background technology
Current, the buying pattern of lottery ticket mainly contains two kinds, and one is that lottery fan arrives the purchase of lottery ticket shop; One is that lottery fan buys on shopping website.
Lottery fan buys lottery ticket on shopping website, although efficiency is higher, can not obtain the lottery ticket of entity, cannot ensure the right of lottery fan.And lottery fan buys lottery ticket to lottery ticket shop, generally needed the lottery data bought by storekeeper by the manual input of keyboard, then printed by lottery tickets machine, when lottery fan is more, speed is comparatively slow, often needs guest to wait the long period, is unfavorable for that color shop attracts client.
That is, buy papery entity lottery ticket in prior art, often there is inefficient technical matters of drawing a bill.
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.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the process flow diagram throwing color method in the embodiment of the present application one;
Fig. 2 is that in the embodiment of the present application, LAN (Local Area Network) throws color system schematic;
Fig. 3 is that in the embodiment of the present application, color system schematic is thrown in internet;
Fig. 4 is the process flow diagram throwing color method in the embodiment of the present application two;
Fig. 5 is the structural representation of electronic equipment in the embodiment of the present application three.
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.

Claims (10)

1. throw a color method, be applied in the first electronic equipment, it is characterized in that, 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.
2. the color method of throwing as claimed in claim 1, is characterized in that, 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.
3. as claimed in claim 1 throw color method, it is characterized in that, after the described lottery data after sending 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.
4. as claimed in claim 1 throw color method, it is characterized in that, 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.
5. the throwing coloured silk method as described in as arbitrary in claim 1-4, is characterized in that:
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).
6. throw a color method, be applied in the second electronic equipment, it is characterized in that, 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.
7. the color method of throwing as claimed in claim 6, it is characterized in that, 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.
8. the color method of throwing as claimed in claim 7, it is characterized in that, 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.
9. the color method of throwing as claimed in claim 6, it is characterized in that, 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.
10. an electronic equipment, is specially the first electronic equipment, it is characterized in that, 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.
CN201510171223.9A 2015-04-10 2015-04-10 A kind of color method of throwing and electronic equipment Active CN104835238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510171223.9A CN104835238B (en) 2015-04-10 2015-04-10 A kind of color method of throwing and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510171223.9A CN104835238B (en) 2015-04-10 2015-04-10 A kind of color method of throwing and electronic equipment

Publications (2)

Publication Number Publication Date
CN104835238A true CN104835238A (en) 2015-08-12
CN104835238B CN104835238B (en) 2018-10-19

Family

ID=53813102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510171223.9A Active CN104835238B (en) 2015-04-10 2015-04-10 A kind of color method of throwing and electronic equipment

Country Status (1)

Country Link
CN (1) CN104835238B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106558138A (en) * 2016-11-23 2017-04-05 中体彩科技发展有限公司 Lottery ticket sales are carried out with the method and lottery point-of-sale terminal of re-authentication
CN106559483A (en) * 2016-11-08 2017-04-05 英泰伟业科技(北京)有限公司 Lottery ticket choosing and selling system and the information processing method based on the lottery ticket choosing and selling system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060160602A1 (en) * 2005-01-18 2006-07-20 Chad Blythe Flexible online instant lottery game
CN201364606Y (en) * 2009-02-17 2009-12-16 陈树谦 Novel lottery selling device
CN102402812A (en) * 2010-09-10 2012-04-04 广州市智益信息技术有限公司 Automatic lottery ticket printing method and system thereof
CN102729661A (en) * 2011-04-13 2012-10-17 苏州乐盈科技有限公司 Lottery printing method for carrying out automatic detection during issuing the lottery
CN103116481A (en) * 2013-03-11 2013-05-22 北京八七彩科技有限公司 Auxiliary system, device and method of note printing
CN103530927A (en) * 2012-07-04 2014-01-22 深圳市奥彩瑞信息科技有限公司 Lottery betting system and lottery betting method based on POS (point of sales) machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060160602A1 (en) * 2005-01-18 2006-07-20 Chad Blythe Flexible online instant lottery game
CN201364606Y (en) * 2009-02-17 2009-12-16 陈树谦 Novel lottery selling device
CN102402812A (en) * 2010-09-10 2012-04-04 广州市智益信息技术有限公司 Automatic lottery ticket printing method and system thereof
CN102729661A (en) * 2011-04-13 2012-10-17 苏州乐盈科技有限公司 Lottery printing method for carrying out automatic detection during issuing the lottery
CN103530927A (en) * 2012-07-04 2014-01-22 深圳市奥彩瑞信息科技有限公司 Lottery betting system and lottery betting method based on POS (point of sales) machine
CN103116481A (en) * 2013-03-11 2013-05-22 北京八七彩科技有限公司 Auxiliary system, device and method of note printing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559483A (en) * 2016-11-08 2017-04-05 英泰伟业科技(北京)有限公司 Lottery ticket choosing and selling system and the information processing method based on the lottery ticket choosing and selling system
CN106558138A (en) * 2016-11-23 2017-04-05 中体彩科技发展有限公司 Lottery ticket sales are carried out with the method and lottery point-of-sale terminal of re-authentication

Also Published As

Publication number Publication date
CN104835238B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN104331296B (en) transaction information processing method, device and system
CN103116481B (en) The aid system of printed tickets, Apparatus and method for
CN104035734A (en) System and method for automatic printing of user side remote multi-selection printing terminals
CN102799690A (en) Method for verifying page input by using database technology
CN105760159A (en) Website developing method and system
CN107113341A (en) The system of the high-throughput processing of affairs in the Distributed Relation Database Management System divided for data
CN102541630A (en) Inter-thread data communications in a computer processor
CN110930011B (en) Industrial control system and method, electronic equipment and storage medium
CN106909327A (en) A kind of display control unit for industrial control equipment
CN112131559A (en) Role-based authority control method, device, equipment and medium
CN103914266A (en) Method for distributing cloud data and actively printing cloud data by group printing end
CN110222323A (en) A kind of voucher generation method, device, readable storage medium storing program for executing and terminal device
CN104835238A (en) Betting method and electronic equipment
CN102456004A (en) Query control method and system of page data
CN109818710A (en) A kind of data transmission method and corresponding intrument
CN107315784A (en) A kind of data access method and browser
CN104616620A (en) Remote control system for outdoor LED card
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
US9760326B2 (en) Print facilitation
CN104202233B (en) A kind of information interacting method, terminal, server and system
WO2020219485A1 (en) Operating method of self-service terminal and self-service terminal
CN107180525A (en) Bluetooth control method, device, system and the relevant device of a kind of physical equipment
CN103473379A (en) Method, device and system used for electronic map
CN103618746A (en) Pushed instruction-based communication method for client server
CN105808628A (en) Webpage transcoding method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200511

Address after: Room 205, floor 2, building 4, courtyard 5, Shangdi East Road, Haidian District, Beijing 100000

Patentee after: Beijing Qiumi Technology Co., Ltd

Address before: 100000 Beijing Haidian District leader new Silicon Valley D District 44 101

Patentee before: BEIJING BOLEHUDONG SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220112

Address after: No. 416, floor 4, No. 9, No. 9, shangdijiu street, Haidian District, Beijing 100085

Patentee after: Qilin Xinsi (Beijing) Education Technology Co.,Ltd.

Address before: 100000 room 205, floor 2, building 4, yard 5, Shangdi East Road, Haidian District, Beijing

Patentee before: Beijing Qiumi Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220130

Address after: 100000 b03-a9, 12th floor, No. 88 Yongding Road, Haidian District, Beijing

Patentee after: Beijing chunxinya Technology Co.,Ltd.

Address before: No. 416, floor 4, No. 9, No. 9, shangdijiu street, Haidian District, Beijing 100085

Patentee before: Qilin Xinsi (Beijing) Education Technology Co.,Ltd.

TR01 Transfer of patent right