On set-top box, realize the method that lottery data information receives
Technical field
The present invention relates to data encapsulation, reception technique at set-top box.
Background technology
In recent years, the increase that lottery fan's quantity is rapid, and along with the increase of promotion efficiency, the playing method of lottery ticket is varied, and present pandemic China Sports lottery ticket just comprises, superly makes wild with joy greatly, arrange three, arrange five, seven-star coloured silk, football lottery victory or defeat, playing methods such as goal coloured silk, welfare lottery ticket is also released twin color ball, arranges three, playing methods such as 3D ball, the mode that the lottery fan is traditional all is to carry out the purchase of lottery ticket to the lottery ticket choosing and selling station of appointment, and not only efficient is lower, and has wasted cost.
Development along with Digital Television, the tremendous growth of blowout formula has appearred in the customer volume of Digital Television at present, the radio and TV operator is when paying close attention to the set-top box translation, the development of concern value-added service energetically, the important means of broadcasting and TV survival and development after it is considered as, requirement simultaneously is also more and more higher, visible attention to value-added service.
Summary of the invention
Technical problem to be solved by this invention is, proposes a kind ofly to put lottery ticket playing method and prize-winning information in order send to set-top box then method.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, realizes may further comprise the steps the method that lottery data information receives on set-top box:
A, server are classified to lottery information according to the lottery ticket playing method, and each class is distributed an identifier, and sets up the lottery information database; The lottery information of a corresponding class lottery ticket playing method correspondence of identifier; Described lottery information comprises lottery ticket title, lottery ticket play information, prize-winning information;
B, server are encapsulated in identifier, lottery information in privately owned section of DVB data, and the DVB data are sent to set-top box;
C, set-top box resolve privately owned section of the DVB data that receive, by identifier the lottery information classification are shown.
The invention has the beneficial effects as follows, show in the set-top box of putting and sending to the playing method and the prize-winning information of various lottery tickets in order user, expanded the value-added service of existing set-top box.
Embodiment
The data initialization step:
Existing lottery ticket playing method is added, management software by server end, the text message of the affiliated type of lottery ticket, title, play information added (for example the information of Tian Jiaing is: sports lottery ticket, make wild with joy greatly, play information), server end is searched the lottery information database, after affirmation does not have corresponding lottery ticket playing method, distribute unique identifier (comprising unique kind of class identifier and unique tableId) for this playing method, and in the lottery information database, add corresponding information.Lottery information comprises lottery ticket title, lottery ticket play information, prize-winning information.
The interpolation step of data:
Server is timed on the network prize-winning information of gathering various playing methods, and the prize-winning information of every kind of playing method current period is upgraded: contrast current day after date, confirmation is after the up-to-date data, prize-winning information to be added in the database.
The encapsulation step of data:
Server end is at the set time of every day reading database, at first read identifier in the lottery information database, produce the TS stream file of code table according to DVB (digital television broadcasting) standard according to the quantity of identifier, code table comprises, describe current lottery ticket playing method sum in the identifier code table, the kind class identifier of playing method and corresponding tableId information, then according to the lottery information of every kind of playing method in the identifier reading database, according to the DVB standard every kind of lottery information is encapsulated packing then, produce a plurality of TS stream files.
The forwarding step of data:
Server end reads the transmission configuration file of server end, read the transmission cycle and the transmission speed of every kind of data, in the TS stream catalogue of correspondence, find corresponding TS stream file then, the broadcast card of last Control Server end sends various data, and data are sent into HFC (hybrid fiber/coaxial) network at last through multiplexer, modulator, scrambling machine.
The analyzing step of data:
STB terminal is the code table information of reception server end transmission at first, after analyzing code table information, obtain and sent several data types in the current hfc plant altogether, the record corresponding identifier, and use identifier to send different lottery information reception requests, with various Data Receiving to the set-top box end, the lottery ticket analytical system of set-top box shows various Data Receiving to back branch playing method classification, also can produce multiple distribution map, for example number trend graph, number frequency diagram and value trend graph, odd even trend graph etc. according to requirement of client.