Summary of the invention
The objective of the invention is for overcoming the weak point of prior art, the method that a kind of Digital Television realizes the channel ordering is proposed, can be under the prerequisite that does not increase digital TV front-end system and terminal system hardware input, realization has simple and feasible characteristics to the control of Digital Television initial channel order.
A kind of Digital Television that the present invention proposes realizes the method for channel ordering, and implementation step comprises:
A) data structure of setting contents of channel sorting descriptor (belonging to privately owned descriptor), adopt one by the numerical value of the common agreement of digital TV front-end system and terminal system label (tag), and determine table and the particular location that this channel sorting descriptor is inserted as this channel sorting descriptor;
B) set the initial ordering sequence number (determining) of each channel according to operation needs and user's use habit;
C) according to the data structure and the label of the described channel sorting descriptor of step a), the channel identication of each channel and the sequence number that initially sorts are loaded in the channel sorting descriptor, generate the channel sorting descriptor data;
D) in the digital TV front-end broadcast system, insert and broadcast described channel sorting descriptor;
E) the terminal receiving equipment finds and resolves channel sorting descriptor according to the definite table of step a), the position and the descriptor tag of agreement;
F) the terminal receiving equipment is regulated the initial sequence number of each channel according to the initial ordering sequence number that channel sorting descriptor provides.
Above-mentioned steps a) the data structure of described channel sorting descriptor can be the sequence that a plurality of bytes are formed, and this byte sequence can comprise: descriptor tag, descriptor length, channel identication, the initial sequence number that sorts.
Above-mentioned steps is the described table of determining that this channel sorting descriptor is inserted a), is
Refer to be inserted into a table in Program Map Table (PMT) in the digital TV front-end system, network information table (NIT), BAT bouquet association table (BAT), four kinds of tables of SDT Service Description Table (SDT).
Characteristics of the present invention and effect:
In the components of system as directed of MPEG II standard the Program Specific Information (PSI) that comprises in the system-level transport stream of MPEG II has been described.PSI has described the entrained content of transport stream, has comprised to the description of the basic stream that makes up each program with to the description of program itself.More receive the decode information needed in order to provide for the comprehensive decoder of set-top box (IRD), support more complicated application, DVB provides business information (SI) to assist PSI information.SI can be provided by each the professional technical characterictic that provided by a certain broadcaster and other information, by the help of SI, the user can be in transport stream selection business or incident, set-top box uses SI information can finish automatic configuration and automatic reception.The present invention has expanded PSI/SI information content loaded, has added the descriptor that channel order is controlled.
The present invention does not have the hardware input, and the mode by privately owned descriptor realizes, and is simple.
The present invention has controlled the initial ordering sequence number of channel effectively, makes set-top box users behind automatic channel search, and the initial channel of seeing is consistent in proper order, has realized the control of Digital Television to the channel initial order.
Embodiment
The method of the realization channel ordering that is used for Digital Television that the present invention proposes is described in detail as follows in conjunction with the embodiments:
Digital TV platform of the present invention is realized the method for channel ordering, and implementation step comprises:
A) data structure of setting contents of channel sorting descriptor (belonging to privately owned descriptor), adopt one by the numerical value of the common agreement of digital TV front-end system and terminal system label (tag), and determine table and the particular location that this channel sorting descriptor is inserted as this channel sorting descriptor;
B), set the initial ordering sequence number of each channel according to the operation needs;
C) according to the data structure and the label of the described channel sorting descriptor of step a), the channel identication of each channel and the sequence number that initially sorts are loaded in the channel sorting descriptor, generate the channel sorting descriptor data;
D) in the digital TV front-end broadcast system, insert and broadcast described channel sorting descriptor;
E) the terminal receiving equipment finds and resolves channel sorting descriptor according to the definite table of step a), the position and the descriptor tag of agreement;
F) the terminal receiving equipment is regulated the initial sequence number of each channel according to the initial ordering sequence number that channel sorting descriptor provides.
Above-mentioned steps is the data structure of mid band sorting descriptor and determining of label value a):
Comprise following element in the data structure of channel sorting descriptor of the present invention:
Descriptor sign: the ident value of descriptor (tag value).
Descriptor length: the byte number of follow-up data.
Channel identication: can determine certain channel uniquely.In a transport stream, each channel can uniquely be identified by channel number (service_id).In one network, each channel is then identified by transport stream numbering (ts_id) and channel number (service_id).
Initial ordering sequence number: the initial sequence number of channel.
In the digital television broadcasting Chinese business information standard of Chinese General Bureau of Radio, Film and TV issue, the user-defined descriptor tag value scope of suggestion is 0x80-0xFE in the 6th joint.The label value of channel sorting descriptor can adopt a value in the 0x80-0xFE scope, can not have with the label of other descriptor in the digital TV platform and conflict.
Above-mentioned steps b) determining of the initial ordering sequence number in
The initial ordering sequence number of each channel need be determined by operator.Operator is according to operation needs and popular custom, for each channel is specified an initial ordering sequence number.
Above-mentioned steps c) method that the channel sorting descriptor data in generate
According to the data structure of channel sorting descriptor, channel identication, the channel of each channel sequence number that initially sorts is loaded in the channel sorting descriptor, generate the channel sorting descriptor data.
Above-mentioned steps d) in the digital TV front-end broadcast system, the specific implementation method of inserting and broadcast above-mentioned channel sorting descriptor is:
Front end system and terminal system are determined the insertion position of channel sorting descriptor in the PSI/SI table jointly; Can be inserted in PMT, BAT, NIT, the SDT table, the insertion position can be ground floor circulation or second layer circulation in the table; As show shown in the 1-table 4:
Table 1 is the BAT table, and channel sorting descriptor has two selectable insertion position A1 that it is as shown in the table and B1.
Table 1
Table 2 is a pmt table, and channel sorting descriptor has two selectable insertion position A2 that it is as shown in the table and B2.
Table 2
Table 3 is the NIT table, and channel sorting descriptor has two selectable insertion position A3 that it is as shown in the table and B3.
Table 3
Table 4 is the SDT table, and channel sorting descriptor has an insertable position A4 that it is as shown in the table.
Table 4
A kind of implementation method embodiment of the inventive method may further comprise the steps:
The first step is determined the data structure and the descriptor tag value of channel sorting descriptor
Present embodiment mid band sorting descriptor label value is set at: 0x82
The data structure of the channel sorting descriptor of present embodiment is as shown in table 5:
Table 5 channel sorting descriptor data structure
Grammer |
Figure place |
Identifier |
ChannelOrderDescriptor(){ descriptor_tag descriptor_length for(i=0;i<N;i++){ service_id channel_i ndex_no } } |
8 8 16 16 |
uimsbf uimsbf uimsbf uimsbf |
In the table 5: descriptor_tag: the channel sorting descriptor label value.
Descriptor_length: what bytes are follow-up data length be.
Service_id: channel identication.
Channel_index_no: the channel sequence number that initially sorts.
Second step was set the initial ordering sequence number of each channel according to the operation needs, and is as shown in table 6.
The initial sequence number of table 6 setting contents of channel
Channel name |
Channel identication (service_id) |
Initial ordering sequence number (channel_index_no) |
CCTV3 |
1 |
3 |
CCTV5 |
2 |
5 |
CCTV6 |
3 |
6 |
CCTV8 |
4 |
8 |
CCTV1 |
5 |
1 |
CCTV2 |
6 |
2 |
CCTV7 |
7 |
7 |
ccTV4 |
8 |
4 |
The data structure and the label value of the channel sorting descriptor that the 3rd step was set according to first step are loaded into channel identication, the channel ordering initial sequence number of each channel in the channel sorting descriptor, generate the channel sorting descriptor data; Descriptor tag value: 0x82
Generate following channel sorting descriptor data according to second step data:
82200001000300020005000300060004000800050001000600020007000700080004
These data digital implication from left to right is described as follows successively:
82: descriptor tag value=0x82
20: descriptor subsequent byte length=32 bytes, 16 systems are expressed as 20
0,001 0003: channel identication: 1, sequence number initially sorts: 3
0,002 0005: channel identication: 2, sequence number initially sorts: 5
0,003 0006: channel identication: 3, sequence number initially sorts: 6
0,004 0008: channel identication: 4, sequence number initially sorts: 8
0,005 0001: channel identication: 5, sequence number initially sorts: 1
0,006 0002: channel identication: 6, sequence number initially sorts: 2
0,007 0007: channel identication: 7, sequence number initially sorts: 7
0,008 0004: channel identication: 8, sequence number initially sorts: 4
Above-mentioned channel sorting descriptor was inserted and broadcast to the 4th step in the digital TV front-end broadcast system;
In the present embodiment, require privately owned descriptor to import in the digital TV front-end broadcast system: if channel sorting descriptor is inserted into ground floor descriptor circulation in the BAT table with the form of the file of XML described in the table 7, then edit following XML file (black matrix partly is the channel sorting descriptor data), this document is imported to the front end broadcast system broadcast.
Table 7 comprises the XML file of channel sorting descriptor
<PSISIG_CUSTOM_DESCRIPTOR> <BAT bouquet_id=″1″> <DESCRIPTORS> <DESCRIPTOR name=″channel_order_descriptor″data ″8220000100030002000500030006000400080005000100060002000700070008000 </DESCRIPTORS> </BAT> </PSISIG_CUSTOM_DESCRIPTOR> |
The 5th step number word television terminal receiving equipment is according to the PSI/SI relevant criterion, and extraction, reconstruct BAT show information from transport stream, and finding label value in the circulation of BAT table ground floor descriptor is the channel sorting descriptor of 0x82.
The channel that the 6th step terminal receiving equipment provides according to the channel sorting descriptor sequence number that initially sorts sorts to each channel.
Terminal set top box is adjusted as follows according to the initial ordering sequence number of each channel and sound channel:
Channel identication is 1 channel, and initial sequence number is set at 3
Channel identication is 2 channel, and initial sequence number is set at 5
Each channel is all handled like this, repeats no more.