Summary of the invention
The objective of the invention is to develop the implementation method of a kind of set-top box according to the change dynamics display menu of system time.One-way transmission network in Digital Television, on the set-top box of common configuration, utilize the public standard of existing digital television broadcasting, need not existing digital television network is carried out any transformation, by reception and analyzing and processing to the network system temporal information, judge current system time, thereby realize the dynamic user interface that shows different-style.
The present invention is by making part: interface manufacture server unit, dispensing device, digital tv network and receiving unit: remote controller, set-top box, television set are realized; A kind of set-top box of the present invention comprises according to the specific implementation step of the implementation method of the change dynamics display menu of system time:
Obtain current accurately system time;
Set up the incidence relation of current system time and specific picture group;
According to incidence relation, extract specific picture to menu display interface according to system time;
Wherein, described specific picture group is the multi-picture of the representative different time set according to different time.
Described multiple picture is to send to set-top box after being made by the interface manufacture server unit to be stored in an assigned address; It also can be the fixing picture of storage in set-top box.
The current accurately system time of described acquisition is: the data of set top box receiver module filters out the segment data after date table and the TOT Time Offset Table encapsulation from TS stream, preserving in the segment data section of the being placed on tabulation, the set-top box task of resolving reads date table and TOT Time Offset Table data and resolves and obtain system time real-time in the code stream from the section tabulation.
The current accurately system time of described acquisition is: set-top box reads the time data in the CPU time system, sets up a real-time time database in CPU, and the real-time time initialization is finished by the time processing module that is arranged on the set-top box.
The invention has the beneficial effects as follows:
It is very simple to make that the change menu display interface changes in time, need not existing digital television network is carried out any transformation; The user can find that in using the set-top box process look ﹠ feel can change according to the time, except conveniently understanding the current time by the graphic color visual effect, also can bring fresh and new sensation to the user.
Below in conjunction with drawings and Examples the present invention is made a detailed description.
Embodiment
Embodiment 1:
A kind of set-top box is according to the embodiment of the implementation method of the change dynamics display menu of system time, referring to Fig. 1, present embodiment is by making part: interface manufacture server unit, dispensing device, digital tv network and receiving unit: remote controller, set-top box, television set are realized; Described method specific implementation step comprises:
Obtain current accurately system time;
Set up the incidence relation of current system time and specific picture group;
According to incidence relation, extract specific picture to menu display interface according to system time;
Wherein, described specific picture group is the multi-picture of the representative different time set according to different time.
Described multiple picture is to send to set-top box after being made by the interface manufacture server unit to be stored in an assigned address; Also can be that back storage in set-top box is fixing well for the specific picture making that will represent different time; Preceding a kind of method can be changed picture dynamically, and a kind of picture in back is changeless.
The current accurately system time of described acquisition is: the data of set top box receiver module filters out section (Section) data after date table (TDT) and TOT Time Offset Table (TOT) encapsulation from TS stream, preserving in the segment data section of the being placed on tabulation (Section PoolList), the set-top box task of resolving reads date table and TOT Time Offset Table data and resolves and obtain system time real-time in the code stream from the section tabulation.
As shown in Figure 1, whole task handling flow process comprises Demuxdata reception module 1, section and resolvescontrol task module 2, set-top boxtime maintenance module 3,time judgment module 4, interface display and handle 5 five modules.
Concrete operation is:
The reception of digital TV network system temporal information; Set-top box starts the section filtering module of demux, obtains the TDT and the TOT table of broadcasting in the digital TV network;
Section parsing control task reads TDT from Section Pool List and the TOT data are resolved; TDT Time and Date Table TDT only transmits UTC time and date information, and TOT Time Offset Table TOT table is described the dynamic change of local zone time with respect to the UTC time; Therefore can obtain the current time accurately by receiving these two tables, thereby obtain system time real-time in the code stream.
Section resolves control task and will represent the UTC_time field of UTC time and date information in the TDT table, and the local_time_offset_descriptor descriptor obtains the offset information of UTC time and local time and reads in the TOT table, issues time maintenance module and handles; Time maintenance module receives that Section resolves the UTC time and date information that control task sends, and after the dynamic change value of relative UTC time of local system.Calculate the current system time of preparation, time maintenance module is safeguarded and is upgraded the set-top-box system time then, guarantees consistent with the local real time.
Time judgment module reads current system time, and carries out corresponding judgment, as day and night, spring, summer, autumn and winter etc.Then judged result is returned to the interface display processing module.The result that the interface display processing module provides according to time judgment module select to show different menus according to demand, as daytime or night, and the perhaps system interface of different-style such as spring, summer, autumn and winter.
Be one section TDT table data below: (demonstration of 16 systems)
70?70?05?C0?79?08?31?03
And the local_time_offset_descriptor data of corresponding TOT table are
43?48?4E?00?00?00?08?00
According to the syntactic definition of TDT table, analyze data and can know:
table_id=0x70;
section_syntax_indicator=0;
reserved_future_use=1;
reserved=3;
section_length=0x05;
UTC_time=0xC079083103;
After obtaining the UTC_time data, according to the semanteme of UTC_time, in 40 the field, high 16 is the MJD date code, and all the other 24 by 4 BCD coding, the time that 6 numerals are concrete hour, minute and second 6 numerals; As 0x083103 is exactly 8: 31: 03.And the time of representing by calculating 0xC079 date is: on October 13rd, 1993.That is to say that the UTC current time is 8: 31: 03 on the 13rd October in 1993.
Analyze the local_time_offset_descriptor data of TOT table then
Country_code=0x 43 48 4E. promptly represent CHN, are writing a Chinese character in simplified form of China
Country_region_id=0. represent and do not have the time difference in the country
reserved=1
Local_time_offset_polarity=0. represent local zone time early than the UTC time
The time difference of local_time_offset=0x08 00. representative and UTC is 8 hours.
In conjunction with the UTC current time that TDT calculates, 8 hours local time differences that deduction TOT table obtains, local zone time is 16: 31: 03 on the 13rd October in 1993 so.
Set-top-box system judges it is daytime now according to the time of calculating then, handles and show the user interface of style on daytime.
Present embodiment is based on the standard that ready-made reliable system time is arranged in the standard of digital television broadcasting.That is to say the system time of real-time update information all can be arranged in each digital TV network.By receive handling the system time information in the digital TV network, can be easily and obtain current system time accurately.And the data message in the set-top box receiving digital television network is public standard and uses common configuration.Need not consider to use other method like this, thereby cause that the variation in the top-set hardware configuration is not had versatility.
Embodiment 2:
A kind of set-top box is according to another embodiment of the implementation method of the change dynamics display menu of system time, referring toembodiment 1, aspect the obtaining of current system time, also adopts other mode; As, do not use the system time of broadcasting in the current digital TV network, but the mode by Network Transmission, system time is sent to set-top box, or obtain from set-top box itself, therefore present embodiment, the current accurately system time of described acquisition is: set-top box reads the time data in system itself CPU time; In set-top box CPU, set up a real-time time database, the real-time time initialization is finished by the time processing module that is arranged on the set-top box, just set-top box is provided with the time button, and the time processing module is finished the real-time time initialization by reading the data of setting button.