The means of communication in the digital TV network between terminal set top box and central office terminal's top box management system
Technical field
The present invention relates to networking technology area, particularly digital TV network technical field specifically is meant the means of communication between terminal set top box and central office terminal's top box management system in a kind of digital TV network.
Background technology
Digital video switching box (STB), box on so-called STB or the machine is an equipment that connects television set and outside source.It can change into television content with compressed digital signal, and on television set, shows.Signal can be from wire cable, satellite antenna, broadband network and terrestrial broadcasting.The image that the content that STB receives can provide except simulated television, the sound, more be to receive data content, comprise electronic program guides, internet webpage, captions or the like.Make the user on existing television set, watch digital television program, and can carry out interactive digital amusement, education and commercialization activity through network.In order to realize that remote set-top box is managed and upgraded, need be at the realization communication function between STB and the STB management system.
At present, the TR-069 agreement is often adopted in the communication between STB and the STB management system.TR-069 is one of technical specification of being developed by DSL forum, and its full name is " a CPE wide area network management agreement ".It provides the general framework and the agreement of home network device in the next generation network being carried out administration configuration, is used for from network side equipment such as the gateway of home network, router, STB being carried out the remote centralized management.With the alarm is example, and the reciprocal process of TR-069 agreement is as shown in Figure 1.In the whole reciprocal process, need to accomplish two complete transmitting-receiving processes between STB and the STB management system.
Under the interactive mode of TR-069, all data all adopt the SOAP mode to encode, and therefore all data of transmission all are the XML forms, and the mode of typical SOAP coding is following:
Through the interactive mode of TR-069, STB and box end management system can well be carried out communication, but the efficient of this interactive mode is also low relatively.At first, a simple data interaction needs two complete HTTP interaction flows, because the set-top box CPU data-handling capacity is lower, response speed is slow, causes whole reciprocal process long, has significantly reduced the quantity of separate unit management system supervisor top box; Secondly, the coded system of XML relatively expends cpu resource, and the data volume behind the coding is bigger.These all for all relatively limited STB of internal memory and cpu resource duty ratio bigger.
Simultaneously, JSON (Java Script Object Notation) is the simplification coding method of a kind of XML, is used for accomplishing at the network two ends serializing and the unserializing process of object.SOAP is a kind of data interchange format of lightweight, is easy to the people and reads and write, and also is easy to machine simultaneously and resolves and generate.SOAP is based on JavaScript Programming Language, the sub-set of Standard ECMA-262 3rd Edition-December 1999.JSON adopts the text formatting that is totally independent of language, but has also used the custom (comprising C, C++, C#, Java, JavaScript, Perl, Python etc.) that is similar to the C family of language.These characteristics make JSON become desirable exchanges data language.
JSON to as if unordered " ' name/value ' a to " set.An object finishes with " { " (left bracket) beginning, " } " (right parenthesis).": " (colon) of each " title " heel; Use ", " (comma) to separate between " ' name/value ' to ".
Above-mentioned typical SOAP code conversion becomes the JSON format content following:
{″category″:″classifieds″}。
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art; A kind of internal memory and cpu load that can effectively reduce STB is provided; The efficient of data interaction is provided, and then increases the quantity of management system supervisor top box, and application mode is simple; With low cost, range of application is the means of communication between terminal set top box and central office terminal's top box management system in the digital TV network comparatively widely.
In order to realize above-mentioned purpose, the means of communication in the digital TV network of the present invention between terminal set top box and central office terminal's top box management system may further comprise the steps:
(1) described terminal set top box initiate with described central office terminal top box management system between HTTP protocol be connected;
(2) the JSON format encoded is carried out in the request that will send of described terminal set top box;
(3) described terminal set top box will be sent to described central office terminal top box management system through the request of JSON format encoded;
(4) described central office terminal top box management system is carried out handled according to described request, and obtains result;
(5) described central office terminal top box management system is carried out the JSON format encoded with described result;
(6) described central office terminal top box management system will be sent to described terminal set top box through the result of JSON format encoded.
In the means of communication in this digital TV network between terminal set top box and central office terminal's top box management system, described method is further comprising the steps of afterwards in step (6):
(7) described terminal set top box judges whether this communication finishes, if, then get into step (8), if not, then return step (2);
(8) HTTP protocol cut off between described and the central office terminal top box management system of described terminal set top box is connected.
In the means of communication in this digital TV network between terminal set top box and central office terminal's top box management system; The JSON format encoded is carried out in the request that described terminal set top box will send, and is specially: described terminal set top box is the request msg of JSON coded format with the SOAP mode XML formatted request data transaction that forms of encoding.
Adopted the means of communication between terminal set top box and central office terminal's top box management system in the digital TV network of this invention, the request that terminal set top box will send is carried out being sent to described central office terminal top box management system after the JSON format encoded; And central office terminal's top box management system is also carried out the JSON format encoded with the processing of request result, then is sent to described terminal set top box.Thereby under the prerequisite that keeps the former protocols having versatility of XML coded system, opening, legibility; Adopt the mutual replacement of single secondary of the prior art mutual; Thereby reduce the operand of STB encoding and decoding greatly, improved code efficiency, practiced thrift the cpu resource of system; And the coding after data volume also dwindle greatly, reduced internal memory and network overhead; Simultaneously, directly can realize data upload alternately, avoid the repeatedly data interaction between STB and the server to wait for, the communication efficiency between terminal set top box and central office terminal's top box management system is greatly improved through single.And the application mode of the means of communication in the digital TV network of the present invention between terminal set top box and central office terminal's top box management system is simple, with low cost, and range of application is comparatively extensive.
Description of drawings
Fig. 1 is the sketch map that employing TR-069 agreement traditional X-ray ML form of the prior art is realized warning information reciprocal process.
Fig. 2 is the flow chart of steps of the means of communication between terminal set top box and central office terminal's top box management system in the digital TV network of the present invention.
Fig. 3 realizes the sketch map of warning information reciprocal process for adopting the means of communication of the present invention between STB and STB management system.
Embodiment
In order more to be expressly understood the technological page of the present invention, the special following examples of lifting specify.
See also shown in Figure 2ly, be the flow chart of steps of the means of communication between terminal set top box in the digital TV network of the present invention and central office terminal's top box management system.
In one embodiment, the means of communication between terminal set top box and central office terminal's top box management system may further comprise the steps in this digital TV network:
(1) described terminal set top box initiate with described central office terminal top box management system between HTTP protocol be connected;
(2) the JSON format encoded is carried out in the request that will send of described terminal set top box;
(3) described terminal set top box will be sent to described central office terminal top box management system through the request of JSON format encoded;
(4) described central office terminal top box management system is carried out handled according to described request, and obtains result;
(5) described central office terminal top box management system is carried out the JSON format encoded with described result;
(6) described central office terminal top box management system will be sent to described terminal set top box through the result of JSON format encoded.
In a kind of more preferably execution mode, as shown in Figure 2, described method is further comprising the steps of afterwards in step (6):
(7) described terminal set top box judges whether this communication finishes, if, then get into step (8), if not, then return step (2);
(8) HTTP protocol cut off between described and the central office terminal top box management system of described terminal set top box is connected.
In preferred execution mode; The JSON format encoded is carried out in the request that described step (2) terminal set top box will send, and is specially: described terminal set top box is the request msg of JSON coded format with the SOAP mode XML formatted request data transaction that forms of encoding.
In an application of the invention, adopt http protocol to carry out communication between terminal set top box and the central office terminal's top box management system usually.Communication is initiated by STB, and direct junctor top box management system.HTTP connects after the foundation, and the content that STB will send is encoded through the JSON form, and the result that will encode is through sending to the STB management system in the http protocol.The STB management system receives after the request of STB transmission, directly handles, and process result is carried out the JSON coding, returns to STB through http protocol then.STB is received after the result, if think that this communication does not finish as yet, then proceeds next step communication; If the fruit STB thinks that this communication finishes, then interrupt HTTP and connect, finish this communication.In this way, can realize that the active that STB generates data reports.With the alarm is example, adopts the reciprocal process of the means of communication of the present invention as shown in Figure 3.
Adopted the means of communication between terminal set top box and central office terminal's top box management system in the digital TV network of this invention, the request that terminal set top box will send is carried out being sent to described central office terminal top box management system after the JSON format encoded; And central office terminal's top box management system is also carried out the JSON format encoded with the processing of request result, then is sent to described terminal set top box.Thereby under the prerequisite that keeps the former protocols having versatility of XML coded system, opening, legibility; Adopt the mutual replacement of single secondary of the prior art mutual; Thereby reduce the operand of STB encoding and decoding greatly, improved code efficiency, practiced thrift the cpu resource of system; And the coding after data volume also dwindle greatly, reduced internal memory and network overhead; Simultaneously, directly can realize data upload alternately, avoid the repeatedly data interaction between STB and the server to wait for, the communication efficiency between terminal set top box and central office terminal's top box management system is greatly improved through single.And the application mode of the means of communication in the digital TV network of the present invention between terminal set top box and central office terminal's top box management system is simple, with low cost, and range of application is comparatively extensive.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.