Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of message recording method of digital TV set-top box, be intended to solve in the prior art when TV audience rating is added up, the statistics cost is higher, and automaticity is not enough, and there is the problem of bigger error in statistics.
The embodiment of the invention is achieved in that a kind of message recording method of digital TV set-top box, said method comprising the steps of:
Connect the access authentication server, and the SOAP/HTTP interface that provides by this access authentication server obtains the rating parameter, wherein, described rating parameter comprises: rating participates in switch, is used for identifying user and whether participates in viewership statistics;
Note digital cable customers and browse the information parameter of channel;
The user of record is browsed and uploads to the viewership statistics service equipment after the channel information parameter is encapsulated into the SOAP packet.
Another purpose of the embodiment of the invention is to provide a kind of digital TV set-top box, and described set-top box comprises:
The rating parameter acquisition module, be used to connect the access authentication server, and the SOAP/HTTP interface that provides by this access authentication server obtains the rating parameter, wherein, described rating parameter comprises: rating participates in switch, is used for identifying user and whether participates in viewership statistics;
User's browsing information reference record module is used to note the information parameter that digital cable customers is browsed channel; And
Transmission module on the packet, the user who is used for writing down browses and uploads to statistical server after the channel information parameter is encapsulated into the SOAP packet.
Another purpose of the embodiment of the invention is to provide a kind of accepting vision statistics service system, comprises the TV programme single database, described system further comprise a rating sampling database and
The access authentication server is used to provide the rating parameter, and wherein, described rating parameter comprises: rating participates in switch, is used for identifying user and whether participates in viewership statistics;
The viewership statistics service equipment, described viewership statistics service equipment comprises:
The packet receiver module is used for the packet that the user browses the channel information parameter that comprises that the receiving digital television set-top box sends;
The user browses channel information parameter processing module, is used for browsing the channel information parameter according to the user that described packet comprises and generates sampled data, and the sampled data that generates is stored to the rating sampling database; And
Audience ratings tendency curve chart generation module is used for generating audience ratings tendency curve chart according to the programme of sampled data that generates and TV programme single database.
The embodiment of the invention is by noting the information parameter that digital cable customers is browsed channel in digital TV set-top box, the user of record is browsed and uploads to the viewership statistics service equipment after the channel information parameter is encapsulated into the SOAP packet, after the viewership statistics service equipment receives and to comprise the packet that the user browses the channel information parameter, generate sampled data, and according to sampled data that generates and the generation of the programme in TV programme client database audience ratings tendency curve chart, solved in the prior art when TV audience rating is added up, the statistics cost is higher, automaticity is not enough, and there is the problem of bigger error in statistics.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is by noting the information parameter that digital cable customers is browsed channel in digital TV set-top box, the user of record is browsed and uploads to the viewership statistics service equipment after the channel information parameter is encapsulated into the SOAP packet, after the viewership statistics service equipment receives and to comprise the packet that the user browses the channel information parameter, generate sampled data, generate audience ratings tendency curve chart according to sampled data that generates and the programme in the TV programme client database.
Fig. 1 shows the flow process of the message recording method of digital TV set-top box that the embodiment of the invention provides, and details are as follows.
In step S101, connect the access authentication server, after passing through the authentication of certificate server, Simple Object Access Protocol (the Simple Object Access Protocol that provides by this certificate server, SOAP) or HTML (Hypertext Markup Language) (Hypertext Transfer Protocol, HTTP) interface obtains the rating parameter.
Wherein, soap protocol be disperse or distributed environment in exchange message and carry out the agreement of remote procedure call, be one based on (the Extensible Markup Language of autgmentability identifiable language, XML) agreement of exchanges data, soap protocol can not only be used as the bottom bearing protocol with HTTP, can also use Microsoft's message queue (MicroSoft Message Queue, MSMQ), Simple Mail Transfer protocol (SimpleMail Transfer Protocol, SMTP), (TransmissionControl Protocol/Internet Protocol, TCP/IP) etc. agreement realizes transmission control protocol/iso-ip Internetworking protocol ISO-IP.Use SOAP, need not consider any specific host-host protocol, can allow the object or the code of any kind, on any platform, intercom mutually with any language.
SOAP comprises four part: SOAP encapsulation (envelop), and this envelop encapsulation has defined the content in the describing message, transmit leg, the framework that receives processing side and how to handle; The coding rule of SOAP (encoding rules), this encoding rules represents the example of the data type that application program need be used; The SOAP remote procedure call (Remote Procedure Calls, RPC), this RPC represents remote procedure call and the agreement of replying; SOAP binds (binding), and this binding is to use underlying protocol to come exchange message.
Embodiment
Certainly, in specific implementation process, need at first to guarantee that viewership statistics service equipment system clock and television broadcasting time are consistent.
As embodiments of the invention, the rating parameter that the SOAP/HTTP interface that set-top box provides by this access authentication server obtains comprises:
Rating participates in switch (FunctionOpen), and this FunctionOpen is used for identifying user and whether participates in viewership statistics, and wherein, this FunctionOpen is a Boolean type, when FunctionOpen is a true time, shows that the user selects to participate in the statistics of this audience ratings.
Viewership statistics server interface information (RatingLogServer), this RatingLogServer is used to identify the interface configuration of viewership statistics service equipment, makes digital TV set-top box data can be reported to the viewership statistics service equipment exactly.
Minimum effectively viewing time (MinIntevalOfValidLog), this MinIntevalOfValidLog is used to identify the minimum time length of effectively watching record, when time that the user watches a certain program during, then watch action not note down to this less than time of MinIntevalOfValidLog sign.
Report the time interval (IntevalOfUploadLog), this IntevalOfUploadLog is used to identify and regularly reports the time interval of watching record.
In step S102, note the information parameter that Digital Television is browsed channel at every turn according to predetermined rule in the rating parameter of obtaining.
In step S103, the user of record is browsed and uploads to the viewership statistics service equipment after the channel information parameter is encapsulated into the SOAP packet.
The embodiment of the invention adopts the method for regularly uploading record according to the time that reports time interval sign in the rating parameter, has effectively reduced the concurrent of Digital Television statistical system, has saved the performance resource of Digital Television statistical system.
As embodiments of the invention, this information parameter comprise on this call time, shift time, viewing time length and channel information.
Wherein, in embodiments of the present invention, hybrid network (the Hybrid Fiber-Coaxial that adopts bidirectional optical fiber and coaxial cable to combine, HFC) communicate, comprise two channels among this two-way HFC: One-to-All Broadcast channel and data interaction channel, the One-to-All Broadcast channel is used for the TV transmission audio, video data; The data interaction channel has interactive function, front-end server and bi-directional set-top box (Set Top Box, STB) mainly utilize the data interaction channel to carry out instruction interaction, come the transmission of control of video data, and the data interaction channel can the less business datum of transmitted data amount.
In step S104, delete the record data in the internal memory.
Fig. 2 shows the internal structure of the digital TV set-top box that the embodiment of the invention provides.
Rating parameter acquisition module 11 connects the access authentication server, and after passing through the authentication of this access authentication server, the SOAP/HTTP interface that provides by this access authentication server obtains the rating parameter.Wherein, the details of this rating parameter are stated at preamble, just repeat no more herein.
User's browsing information reference record module 12 is noted the information parameter that digital cable customers is browsed channel according to predetermined rule in the rating parameter of obtaining, and transmission module 13 is browsed the user who writes down and uploaded to the viewership statistics service equipment after the channel information parameter is encapsulated into the SOAP packet on the packet.
After packet was uploaded to the viewership statistics service equipment, record data removing module 14 was deleted the record data in the internal memory.
Fig. 3 shows the flow process of the terminal audience statistics method that the embodiment of the invention provides, and details are as follows.
In step S201, the receiving digital television set-top box sends comprises the packet that the user browses the channel information parameter.
In step S202, the user who comprises according to the packet that receives browses channel information parameter generation sampled data, and the sampled data that generates is stored to the rating sampling database.
In specific implementation process, at first the user that packet is comprised browses the channel information parameter and carries out time adjustment/calculating, for example, (UploadTime) and server deviation time are bigger if correction calculation obtains calling time, with adopting the server current time is the time that benchmark generates every daily record, otherwise uses the UploadTime time to generate.
After carrying out time adjustment/calculating, the user after the correction/calculating is browsed the channel information parameter analyzes classification, last, be stored in the corresponding tables of data analyzing the result who sorts out, and with these data table stores to the rating sampling database.
In step S203, when the audience ratings of each TV programme is added up, generate audience ratings tendency curve chart according to sampled data that generates and the programme in the TV programme client database.
Fig. 4 shows the structure of the viewership statistics service equipment that the embodiment of the invention provides.
Wherein, packet receiver module 21 receiving digital television set-top box send comprises the packet that the user browses the channel information parameter, the user browses user that channel information parameter processing module 22 comprises according to this packet and browses the channel information parameter and generate sampled data, and the sampled data that generates is stored to the rating sampling database.
As embodiments of the invention, Fig. 5 shows the structure that the user browses channel information parameter processing module 22.
221 couples of users that receive of time adjustment/computing module browse the channel information parameter and carry out time adjustment/calculating, user after 222 pairs of correction/calculating of analysis classifying module browses the channel information parameter and analyzes classification, after analyze sorting out memory module 223 as a result and will analyzing the result of classification and be stored in corresponding tables of data, data table stores module 224 with these data table stores to the rating sampling database.
When the audience ratings of each TV programme was analyzed, audience ratings tendency curve chart generation module 23 generated audience ratings tendency curve chart according to sampled data that generates and the programme in the TV programme single database.
Fig. 6 shows the structure of the accepting vision statistics service system that the embodiment of the invention provides.
Wherein, digital TV set-top box 31 connects access authentication server 32, and after passing through the authentication of access authentication server, digital television set-top box 31 is obtained the rating parameter by the SOAP/HTTP interface that this access authentication server 32 provides.After digital cable customers begins to watch program, note the information parameter that this user browses channel according to this rating parameter predetermined rule, and the user of record is browsed and uploads to viewership statistics service equipment 33 after the channel information parameter is encapsulated into the SOAP packet.
Viewership statistics service equipment 33 receiving digital television set-top box 31 send comprises the packet that the user browses the channel information parameter, the user who comprises according to this packet browses channel information parameter generation sampled data, and the sampled data that generates is stored to rating sampling database 34.
When each TV program audience rating is added up, generate audience ratings tendency curve chart according to the sampled data and the programme in the TV programme client database 35 that are stored in the rating sampling database 34.
The embodiment of the invention is by noting the information parameter that digital cable customers is browsed channel in digital TV set-top box, the user of record is browsed and uploads to the viewership statistics server after the channel information parameter is encapsulated into the SOAP packet, after the viewership statistics server receives and to comprise the packet that the user browses the channel information parameter, generate sampled data, and according to sampled data that generates and the generation of the programme in TV programme client database audience ratings tendency curve chart, solved in the prior art when TV audience rating is added up, the statistics cost is higher, automaticity is not enough, and there is the problem of bigger error in statistics.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.