The system that set-top box downloading document is unified updating and management
Technical field
The present invention relates to a kind of upgrading and broadcast the system that carries out unified management, relate in particular to a kind of upgrading and broadcast the system that carries out unified management set-top-box system software to software.
Background technology
Along with the development of Digital Television, the manufacturer and the version of digital TV set-top box also increase gradually in the network, and the set-top box software edition upgrading also becomes the major issue that digital TV network need face.Upgrading service, the software defect of opening new valued added applications and solving set-top box all need to carry out the software upgrading of set-top box.
Following three kinds of modes are mainly adopted in existing software upgrading to set-top box.First kind of mode is downloader (loader) broadcast system that each manufacturer all uses oneself, operator is if need carry out software upgrading to a new set-top box production firm in this case, then need to go again separately the loader broadcast system of purchasing this manufacturer, cause the increase of investing.The second way is that each manufacturer only provides code stream, but need insert the descriptor that oneself defines in network information table NIT (Network Information Table), and the descriptor between each manufacturer can not be general, so increased burden for the EPG system.To be each manufacturer broadcast by oneself CA system Third Way, and so just being difficult to requirement according to operator increases function according to the upgrading of set-top box batch number selectivity.
Summary of the invention
The objective of the invention is to address the above problem, a kind of system that set-top box loader file is unified updating and management is provided, it has determined unified loader technical specification, solve the software version management problem of the set-top box of different vendor in the network better, realized the function that different vendor's upgrading code stream is broadcast simultaneously.
Technical scheme of the present invention is: a kind of system that set-top box downloading document is unified updating and management, set-top box manufacturer provides separately downloading document to operator, use described system that all set-top box downloading documents are carried out unified management by described operator, scheduling and broadcasting, wherein, described system comprises that one is used for receiving, the storage downloading document is also according to the server that described downloading document upgrading is broadcasted in instruction of broadcasting that receives, one is used for the client of management and dispatching downloading document and the database of a storage downloader record, and described client comprises:
Configuration Manager is transferred to described downloading document in the described server and stores, and stores according to this downloading document be provided for upgrading downloader record of broadcasting and it is transferred in the described database simultaneously;
The playing and scheduling module, choose the downloading document of required upgrading broadcasting from described database be used for upgrading all downloaders records of broadcasting, the parameter of described downloading document upgrading broadcasting is set, and send to described server and to broadcast instruction, derive the descriptor of the downloading document of current upgrading simultaneously according to described parameter;
Defined general link Download Descriptor in the described system, arranged the parameter relevant with the upgrading scope with set-top box, those parameters make operator select the part set-top box arbitrarily to upgrade.
The system of above-mentioned unified updating and management wherein, comprises manufacturer's information, hardware version, software version, downloading document form, the memory location of downloading document in server in the described downloader record.
The system of above-mentioned unified updating and management, wherein, the parameter of described downloading document upgrading broadcasting comprises the beginning and ending time of manufacturer's name of upgrading, upgrading, the Packet Identifier and the bandwidth that scope is selected, the downloading document upgrading is used of upgrading.
The system of above-mentioned unified updating and management, wherein, the scope of described upgrading is set-top box sequence number, set-top box batch number or hardware-software version.
The system of above-mentioned unified updating and management, wherein, described system comprises that also the information of one business information/Program Specific Information broadcasts module, receive the current upgrading of deriving through described playing and scheduling module downloading document descriptor and broadcast.
The system of above-mentioned unified updating and management wherein, comprises a code stream package module in the described server, adopt default integrated system technology using standard with downloading document encapsulation packing.
The system of above-mentioned unified updating and management, wherein, described set-top box manufacturer also provides downloading document corresponding download device description document, and described Configuration Manager extracts the downloader recorded information of the broadcasting that is used to upgrade automatically from described downloader description document.
The system of above-mentioned unified updating and management, wherein, described Configuration Manager comprises downloader record management submodule and downloading document upgrading history management submodule, the downloader recorded information of preserving in described downloader record management submodule inquiry, interpolation, modification, the described database of deletion; Described downloading document upgrading history management submodule is inquired about the upgrading historical information of described playing and scheduling module records in described database.
The system of above-mentioned unified updating and management, wherein, described playing and scheduling module is by obtaining the parameter that current downloading document upgrading of broadcasting is broadcasted with described server communication.
The system of above-mentioned unified updating and management, wherein, described system also comprises an information interaction module, provides communication interface to realize communicating by letter of described system and external system.
The system of above-mentioned unified updating and management, wherein, the described parameter relevant with the upgrading scope comprises following information: upgrading set top box scope, upgrade area, upgrading colony number, upgrade version this shop, upgrading batch and upgrading manufacturer.
The system of above-mentioned unified updating and management, wherein, described link Download Descriptor comprises following parameter:
The descriptor tag value is described the sublist sign;
The descriptor length value, the total amount of byte in the circulation of expression link Download Descriptor;
Transport stream identification value, storage are downloaded the sign of the NIT table of frequency point information, QAM information and symbol rate information;
The original network identification value, the storage upgrading data packet is downloaded the national only network ident value of the primitive network of place channel;
The service identifiers value, the sign of expression data download stream is the program number of the PMT place channel of describing upgrading data packet;
The links category offset is fixed as 0X09;
OUI (Organization Unique Identifier), promptly national unified equipment vendors' unique number is used for vendor identification;
The length of the cycle value, the byte length value of the circulation behind the expression OUI;
The type of download value, definition software download form;
The area flag value, defined range addressing control sign;
Colony's value of statistical indicant, definition colony addressing control sign;
The labelled component value, the Packet Identifier that the upgrading of definition downloading document is used;
Hardware master version value is defined voluntarily by each receiver manufacturer;
Hardware time version value is defined voluntarily by each receiver manufacturer;
The software class offset, the software type of definition set-top box;
Software master version value is defined voluntarily by each manufacturer;
Software time version value is defined voluntarily by each manufacturer;
Control code, definition upgrading type;
Upgrading scope initial value, by batch when upgrading, this value storage set top box upgrading batch scope initial, when press the sequence number upgrading, this value is stored the initial of set top box upgrading sequence number range;
Upgrading end of extent (EOE) value, by batch upgrading the time, the end of this value storage set top box upgrading batch scope, when press the sequence number upgrading, this value is stored the end of set top box upgrading sequence number range;
The parameter retention keeps and carries and the relevant parameter of upgrading in the future;
The regional number code value, expression is stored in the area code in the set-top box;
Colony's number value, expression is stored in the colony's number in the set-top box.
The system of above-mentioned unified updating and management, wherein, described descriptor tag value is fixed as 0x4A.
The system of above-mentioned unified updating and management, wherein, described type of download value parameter further comprises:
Sequence number source, the pairing in the time of can being expressed as number of set-top box, smart card numbers and pairing number one of them;
Download sign, can identify automatic prompting downloading mode or manual downloading mode;
Transport stream format can represent that transport stream is that the DC mode encapsulates or privately owned form.
The system of above-mentioned unified updating and management, wherein, described software type value parameter further comprises:
Complete software classification, the complete integral body of expression systems soft ware and application software;
The drive software classification is represented minimum downloader upgrading and hardware diagnostic;
The test systems soft ware; And
The software module classification, the specific drivers of the additional peripheral devices equipment that provides for terminal;
The system of above-mentioned unified updating and management, wherein, described control code parameter further comprises following information:
Mandatory upgrade is not equal to the customer upgrade of software version in the current stream to software version;
Basic upgrading is lower than the customer upgrade of current playout software version to all;
By batch upgrading, in batch scope and software version be lower than the customer upgrade of current playout software version;
Press sequence number upgrading, in sequence number range and software version be lower than the customer upgrade of current playout software version.
The present invention contrasts prior art following beneficial effect: the client configuration administration module among the present invention is used for various network information and the system version information that the management system upgrade software need be provided with, server is as the server of digital video broadcasting DVB (Digital Video Broadcasting) front end transmitting system software upgrading code stream, by the order of standard traffic method reception from client playing and scheduling module, to be stored in system upgrade software (the being the loader file) packing of waiting to broadcast in the storehouse according to control command and send, and have certain fault-tolerance, alarm and journal function.The present invention has made things convenient for the problem of management of different updating set-top box software versions in the network, and realization different vendor upgrading code stream is broadcast simultaneously, and has alleviated the negative effect that the upgrading of set-top box large tracts of land brings to a certain extent.
Description of drawings
Fig. 1 is the network structure of one embodiment of the invention.
Fig. 2 is the system framework figure of one embodiment of the invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 shows the network configuration of one embodiment of the invention.As shown in Figure 1, in the network of front end, connect into unified loader system 100 by the network switch 104 by client 101, SSU (system software upgrading, System Software Upgrade) data server 102, SSU information database 103.Multiplexer 200 connects with SSU data server 102, and EPG (Electronic Program Guide) system 301 is connected with unification loader system 100 by the network switch 104 with OSS/SMS (Operational Support System/Subscriber Management System) system 302.
Fig. 2 shows the system framework of one embodiment of the invention.As shown in Figure 2, unify loader system 100 and can be divided into Configuration Manager 111, playing and scheduling module 112, SSU data server 102 and SSU information database 103.Wherein SSU data server 102 is deployed on the server that uses (SuSE) Linux OS, and all the other modules all are deployed on the client computer that uses Windows operating system.
The implementation procedure of each module in the unified loader system 100 is described below in conjunction with an example.In this example, certain set-top box production firm provides a loader file and corresponding loader description document.This loader description document thes contents are as follows: production firm's title: ABC, hardware version: 0082, software version: 0X44, download formats: privately owned form, file format: the TS file, and this loader file leaves the inferior information of D packing catalogue on the SSU data server 102 in.If upgrading, it is identical and a loader file that software version is higher is used for online upgrading generally to need to generate hardware version, thereby supposes that here its software version to be upgraded is 0X43.
Manufacturer after loader file that operator is provided for upgrading and corresponding loader description document, Configuration Manager 111 according to the loader description document with corresponding loader file transfer in the specified path of SSU data server 102.Simultaneously, the loader record of Configuration Manager 111 newly-increased correspondence in SSU information database 103, the form of this record is followed successively by: manufacturer's information, hardware version, software version, loader file format, the memory location of loader file on SSU server 102.Here, the record that increases newly is " ABC, 0082,0X44, TS file, D: ".The all corresponding different loader record of each different loader file, and a loader database of record formed in all loader record.
Certainly, Configuration Manager 111 can be not yet by extracting the loader description document information but directly manually add the loader record according to the relevant information that manufacturer provides.Whether Configuration Manager 111 also can detect the loader description document wrong, can judge whether the loader file can be used for upgrading broadcasting, if the loader file has been the TS file, can judge also whether its form satisfies the requirement of unified standard.Configuration Manager 111 can be subdivided into loader record management submodule and loader document upgrading history management submodule again.The loader recorded information in the loader database of record can be inquired about, adds, revises and be deleted to loader record management submodule.Loader document upgrading history management submodule can be inquired about playing and scheduling module 112 and be recorded in upgrading historical information in the database, comprises the information such as manufacturer, hardware version, software version, upgrading time started and upgrading concluding time of system upgrade software.
Then, playing and scheduling module 112 connects SSU data server 102.In above-mentioned Configuration Manager 111, a manufacturer can be arranged to a service (Service), will become the basic stream (Elementary Stream) under this service to loader file configuration that should manufacturer.Manufacturer's (promptly selecting service) that operator selects current needs to upgrade, select the current loader record (being the basic stream ES under the corresponding with service) that is used to upgrade, and the parameter that the loader file is broadcast information is set, such as the beginning and ending time that upgrading is set, PID that the scope that upgrading is set is selected, the loader document upgrading uses and bandwidth etc.After finishing, setting can send to SSU data server 102 with beginning the instruction that this loader document upgrading broadcasts.Playing and scheduling module 112 also can be by obtaining the parameter that current loader document upgrading of broadcasting is broadcasted with communicating by letter of SSU data server 102, also can with all playing and scheduling operation notes in SSU information database 103, use for Configuration Manager 111.
Wherein, the selection of the scope of upgrading can be according to set-top box sequence number, set-top box batch number or only select according to the hardware-software version of set-top box.The meaning of upgrading by set-top box sequence number or batch number or hardware-software version is, if upgrade at overall network, cable network is owing to the signal quality reason, and what break down on very big coverage rate may be just a lot, the situation that can cause operator to be difficult to deal with.And if upgrade by sequence number, batch number or hardware-software version, then the scope that influenced of upgrading can be limited to a relative small range, the number of faults of appearance will be lacked much relatively.So just can the set-top box in the whole network all be finished once upgrading by continuous small lot upgrading.
Playing and scheduling module 112 can derive the descriptor content of the description upgrade information of SI/PSI needs according to current loader document upgrading broadcasting, be currently to have which loader file of which manufacturer upgrading, their label Tag (also being PID) separately, the information such as selection of upgrading scope.SI/PSI information uses EPG system 301 to broadcast.EPG system 301 receives above-mentioned descriptor, and is inserted in the SI table of appointment, finishes the setting to NIT.As long as the SI/PSI information that guarantees 301 configurations of EPG system and broadcast is consistent with the information reconciliation that playing and scheduling module 112 is used, successfully carries out the loader document upgrading and just obtained guarantee.
SSU data server 102 receives the instruction of broadcasting of playing and scheduling module 112, and loader file and associated control information are transferred to equipment realization broadcasting such as multiplexer 200 by the ASI delivery outlet.
SSU data server 102 can receive transmission stream (TS, i.e. Transport Stream) file of following the packing of integrated system technology using standard, the loader file of not packing and the TS file of each vendor specific form.Code stream package module in the SSU data server 102 adopts different processing modes according to the type of the loader file that receives, and guarantees to send correct upgrade data code stream.Processing mode is as follows: when running into the TS file of vendor specific form, whether check earlier it be legal TS file, and remap according to the PID of appointment; When the loader file of the not packing that runs into the vendor specific form, become the TS file from the Section packing data according to the PID of appointment; And for the DC form not the packing the loader file, at first adopt the digital storage media order and control (DSM-CC, i.e. the Digital StorageMedia-Command﹠amp that use in the integrated system technology using standard; Control) two-layer data carousel (Data Carousel) agreement is carried out the encapsulation of data, and packing generates the TS file, and then row broadcasting.
After the loader file broadcasting, set-top box detects the variation that takes place among the NIT at any time, if carry above-mentioned descriptor among the NIT, set-top box will judge one by one in the loader file of current broadcast whether the loader file that meets it is arranged.Judgement is followed successively by identification of the manufacturer, hardware version, software version in proper order, if be provided with the upgrading scope then need judge also whether the upgrading scope meets self.If above-mentioned condition has all been passed through, then set-top box begins to receive the loader file with identical PID according to the Tag (PID) of appointment in the descriptor, receives the upgrading that the set-top box that resets automatically after also verification finishes is finished systems soft ware.
Whole unified loader system can also comprise an information interaction module, and this information interaction module is used to provide communication interface, realizes and the communicating by letter of external system by this interface.To 0SS, be used to provide the analysis data such as analysis interface before and after upgrading is provided.
In addition, unified loader system has also defined general link Download Descriptor (linkage downloaderdescriptor), has arranged to comprise the parameters relevant with the upgrading scope such as upgrading set top box scope, upgrade area, upgrading colony number, upgrade version this shop, upgrading batch and upgrading manufacturer with set-top box.The combination of these parameters guarantees that operator can select the part set-top box arbitrarily and upgrade, thus avoided owing to manufacturer, version number, batch the negative effect that brings of the set top box upgrading that causes of difference.Operator can carry out upgrading among a small circle earlier, carries out large batch of upgrading afterwards again, guarantees that the problem of user in escalation process is unlikely to break out quickly.
The concrete structure of link Download Descriptor is as shown in the table:
Syntax |
No.ofbits |
Identifier |
Linkage_Descriptor(){ Descriptor_tag =0x4A Descriptor_length Transport_stream_id Original_network_id Service_id Linkage_type =0x09 OUI_data_length for(I=0;I<N;I++){ OUI selector_length for(j=0;j<N;j++){ Update_ype Region_flag Colony_flag Component_tag Hardware_major_version Hardware_minor_version Software_type Software_major_version Software_minor_version Serial_number_start |
8 8 16 16 16 8 8 24 8 6 1 1 8 16 16 8 16 16 32 |
Uimsbf Uimsbf Uimsbf Uimsbf Bslbf Uimsbf Uimsbf Bslbf Uimsbf Bslbf Uimsbf Uimsbf Uimsbf Uimsbf Uimsbf Uimsbf Uimsbf Uimsbf Uimsbf |
Serial_number_end Control_code Private_data if(region_flag=0x1) region_no if(colony_flag==0x1) conlony_no } } For(I=0;I<N;I++) { private_data_byte } } |
32 8 32 16 16 8 |
Uimsbf Uimsbf Bslbf Bslbf Bslbf Bslbf |
Be description below to each field in the link Download Descriptor:
Descriptor_tag: descriptor Table I D, its value is decided to be 0x4A.
Descriptor_length: total amount of byte in the Descriptor circulation after this.
Transport_stream_id: deposit the download frequency point information, the ID of the NIT table of QAM information and symbol rate information.
Original_network_id: the storage upgrading data packet is downloaded the national only network ident value of the primitive network of place channel.
Service_id: the ID of data download stream, this value should be the program number of the PMT of description upgrading data packet at this channel, the corresponding manufacturer of Service_id of General Definition.
Linkage_type: its value is fixed as 0X09
0UI: be a standard definition, high byte is uncertain temporarily in the present embodiment, and low two bytes are used for vendor identification.
Selector_length: be the byte total length of following circulation.
Update_type: size is 6 (bit), and definition software download form is as follows:
Bit5 Bit4 Bit3~2 Bit1 Bit0
Serial_Number_Source |
Explanation |
00 |
Sequence number is a number of set-top box |
01 |
Sequence number is a smart card numbers |
10 |
Sequence number is the pairing in when pairing number |
11 |
Keep |
Region_flag:1bit, defined range addressing control sign, 0x0 are not according to regional addressing, and 0x1 is by regional addressing.
Colony_flag:1bit, colony's addressing control sign, 0x0 are not according to colony's addressing, and 0x1 is by colony's addressing.
Component_tag:8bit defines the Loader PID of this version, and pairing elementary stream must be with component descriptor (descriptor_tag=0x50) among the PMT of Service_id correspondence.
Hardware_major_version:16bit hardware key plate is originally defined voluntarily by each receiver manufacturer.
Hardware_minor_version:16bit hardware time version is defined voluntarily by each receiver manufacturer.
The Software_TYPE:8bit software type sees table.
The software classification |
The CODE value |
Remarks |
Complete software |
0X00 |
The complete integral body of systems soft ware and application software |
Drive software |
0X10 |
Miniload upgrading, hardware diagnostic etc. |
The test systems soft ware |
0X20 |
|
Software module |
0x30-0x7F |
Be the additional peripheral devices device-specific driver that terminal provides, each drive software sign indicating number (CODE) value needs to distribute separately in advance, for example USB |
Keep |
0X80~0XFF |
|
Software_major_version:16bit software key plate originally.Define voluntarily by manufacturer.
Software_minor_version:16bit software key plate originally.Define voluntarily by manufacturer.
The Control_code:8bit type definition of upgrading sees the following form.
The upgrading type |
The CODE value |
Remarks |
Mandatory upgrade |
0X00 |
Software version is not equal to the customer upgrade of software version in the current stream |
Basic upgrading |
0X01 |
All are lower than current customer upgrade of broadcasting software version |
By batch upgrading |
0X02 |
To in batch scope and software version be lower than current customer upgrade of broadcasting software version |
Press the sequence number upgrading |
0X03 |
To in sequence number range and software version be lower than current customer upgrade of broadcasting software version |
Keep |
0X4-FF |
Keep |
Serial_number_start: size is 32bit, may be defined as when needing:
When needing, be that the set-top box batch scope of this program of upgrading is initial by batch upgrading;
When needing to press the sequence number upgrading, be that the sequence number of set top box scope of this program of upgrading is initial.
Serial_number_end: size is 32bit, may be defined as when needing:
When needing, be the set-top box batch end of extent (EOE) of this program of upgrading by batch upgrading;
When needing to press the sequence number upgrading, be the sequence number of set top box end of extent (EOE) of this program of upgrading.
Private_data: be preserved for carrying and the relevant parameter of upgrading in the future:
Region_no:16bit is stored in the area code in the set-top box;
Colony_no:16bit is stored in the colony's number in the set-top box.
The foregoing description provides to those of ordinary skills and realizes or use of the present invention; those of ordinary skills can be under the situation that does not break away from invention thought of the present invention; the foregoing description is made various modifications or variation; thereby protection scope of the present invention do not limit by the foregoing description, and should be the maximum magnitude that meets the inventive features that claims mention.