CN101272193B - Method and device for maintaining network time and timing broadcast method - Google Patents
Method and device for maintaining network time and timing broadcast method Download PDFInfo
- Publication number
- CN101272193B CN101272193B CN2008100969946A CN200810096994A CN101272193B CN 101272193 B CN101272193 B CN 101272193B CN 2008100969946 A CN2008100969946 A CN 2008100969946A CN 200810096994 A CN200810096994 A CN 200810096994A CN 101272193 B CN101272193 B CN 101272193B
- Authority
- CN
- China
- Prior art keywords
- time
- crystal oscillator
- network
- current
- reference time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Electric Clocks (AREA)
Abstract
The invention discloses a method and device for maintaining a network time and a timing play method; wherein, the method for maintaining the network time comprises: a terminal in a set period obtains the system time from one received multiplexing frame to save as a system reference time and obtains the current time of the crystal oscillator of the terminal to save as a crystal oscillator reference time; at any time in the period, the terminal generates the current network time by obtaining the current time of the crystal oscillator and combing the saved system reference time and the crystal oscillator reference time. The invention can maintain an accurate network time on a movable broadcast network so as to lead a movable terminal to be capable of utilizing the network time to carry out timing play and can ensure the accuracy of the network time after a mobile phone TV application is quitted or the mobile phone is turned off.
Description
Technical Field
The invention relates to the field of mobile phone televisions or other digital televisions, in particular to a method and a device for maintaining network time and a timing playing method.
Background
Mobile multimedia broadcasting is a multimedia broadcasting technology which is recently popularized, a handheld terminal can receive broadcast signals in a mobile state, can watch television programs after being processed by the terminal, receives program viewing guides, and can display program lists on the terminal, so that a user can selectively watch the programs. In addition, the technology also supports the broadcasting of other multimedia data, and realizes the real-time stock information and other information watching on the mobile terminal.
The timed playing is an important function in the mobile multimedia broadcasting. The user can set the timing playing time for the favorite program, and the terminal can automatically play the program after the set time. The difficulty in implementing the timed play on the mobile multimedia broadcasting terminal is that accurate network time is required. Since the start play time in the timed play must be referenced to the network time on the multimedia broadcast network.
The network time on the mobile multimedia broadcast network is from the system time in the network information table. The conventional mobile terminal only uses the network time to ensure the synchronization of the playing time and the encoder, and does not apply the network time to the timing playing and the timing recording. And after the mobile phone television application is quitted or the mobile phone television application is turned off, the network time is simply replaced by the mobile phone time, and the accuracy of the network time cannot be ensured.
As described above, the general mobile terminal has the following disadvantages: network time is not applied to the timed play; after the mobile phone television application is quitted or the mobile phone television application is turned off, the accuracy of the network time cannot be guaranteed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for maintaining network time and a timing playing method, which can maintain accurate network time on a mobile broadcast network, so that a mobile terminal can perform timing playing by using the network time, and can also ensure the accuracy of the network time after exiting a mobile television application or being turned off.
In order to solve the above problems, the present invention provides a method for maintaining network time, in which a terminal parses a network information table from a received multiplexing frame in a set period, reads system time from the network information table and saves the system time as system reference time; acquiring the current time of the crystal oscillator of the terminal and storing the current time as the reference time of the crystal oscillator;
at any time in the period, generating current network time by acquiring the current time of the crystal oscillator and combining the stored system reference time and the crystal oscillator reference time;
in the process of generating the current network time: the current network time is numerically equal to the system reference time plus the difference between the current crystal oscillator time and the crystal oscillator reference time.
Further, the terminal acquires the system time from the received first multiplexing frame; the set period is before the mobile television application is entered next time.
In order to solve the above problem, the present invention further provides a network time maintenance apparatus, including: the device comprises a reference time acquisition module, a storage module and a network time generation module; wherein,
the reference time acquisition module is used for analyzing a network information table from a received multiplexing frame in a set period, acquiring system time from the network information table, acquiring the current time of the crystal oscillator of the terminal, and respectively sending the current time to the storage module to be stored as the system reference time and the crystal oscillator reference time;
the storage module is used for storing the system reference time and the crystal oscillator reference time;
the network time generation module is used for acquiring the current time of the crystal oscillator at any time in the set period and generating the current network time by combining the system reference time and the crystal oscillator reference time in the storage module; and the current network time is equal to the sum of the system reference time and the difference between the current crystal oscillator time and the crystal oscillator reference time.
Further, the network time generating module generates the current network time, which is equal to the sum of the system reference time and the difference between the current crystal oscillator time and the crystal oscillator reference time.
Further, the reference time acquisition module acquires the system time from the received first multiplexing frame, where the set period is from the current mobile television application to the next mobile television application.
Further, the reference time acquisition module analyzes a network information table from the received multiplexing frame, and reads the system time from the network information table.
In order to solve the above problems, the present invention further provides a method for playing regularly by using network time, wherein a terminal analyzes a network information table from a received multiplexing frame in a set period, reads system time from the network information table and stores the system time as system reference time, and obtains current time of a crystal oscillator of the terminal and stores the current time as crystal oscillator reference time; wherein the current network time is equal to the system reference time plus the difference between the current crystal oscillator time and the crystal oscillator reference time;
at any time in the period, the terminal acquires the current time of the crystal oscillator, and generates the current network time by combining the stored system reference time and the crystal oscillator reference time;
and after the user selects the program to be played at the pending time by triggering the menu option and sets the playing time, and when the terminal detects that the playing time is equal to the network time, starting a playing process corresponding to the selected program.
Further, the current network time is equal to the system reference time plus the difference between the current crystal oscillator time and the crystal oscillator reference time.
Further, the terminal acquires the system time from the received first multiplexing frame; the set period is before the mobile television application is entered next time.
Further, the terminal analyzes a network information table from the received multiplexing frame and reads the system time from the network information table.
Compared with the prior art, the invention maintains accurate network time on a mobile broadcast network in the background to be used as reference time for timing play. The user can set the playing time for the favorite program according to the program list, when the time reaches the playing time set by the user, the set program is automatically played, and the network time is still effective after the mobile phone television application is quitted or the mobile phone television application is turned off.
Drawings
Fig. 1 is a flowchart of a terminal updating a network reference time in an embodiment of the present invention;
FIG. 2 is a flow chart of an implementation of a network time acquisition interface in an embodiment of the present invention;
FIG. 3 is a diagram of a network time maintenance apparatus according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a user customizing a time-playing program according to an embodiment of the present invention;
fig. 5 is a structural diagram of a timing playback device in an embodiment of the present invention.
Detailed Description
In order to solve the drawbacks of the conventional technical solutions, the method and apparatus for maintaining network time and the timing playing method according to the present invention are further illustrated by the following specific embodiments, which are described in detail below, but are not to be construed as limitations of the present invention.
Fig. 1 is a flowchart illustrating a terminal updating a network reference time according to an embodiment of the present invention, where the network reference time includes a system reference time and a crystal reference time.
Step 100, when entering into television application, when a terminal receives a multiplexing frame on a mobile broadcast network for the first time, a network information table is analyzed from the frame; reading the system time in the network information table and storing the system time as a system reference time (T1);
when the mobile phone television or the digital television application is accessed, the multiplexing frame containing the network information table is received, and new system reference time acquisition is carried out, which is a process of updating and synchronizing the system reference time by a terminal;
in addition, when the television application is accessed each time, the system reference time is updated once, so that the resource consumption caused by frequently acquiring the multiplexing frame of the network information table can be avoided;
and 101, acquiring the current time of the crystal oscillator in the terminal, and storing the current time as the reference time of the crystal oscillator (T2).
There is no strict sequence for the execution of the steps 100 and 101, and in another embodiment, the crystal oscillator reference time is obtained first, and then the system reference time is obtained.
Note that: and updating and storing the system reference time after the system reference time is acquired after the television application is started every time, wherein the network time maintained by the system reference time is used until the television application is quitted and the television application is entered next time in the process of using the television application.
In this example, the system reference time is described as being updated each time the television application is entered, but the present invention is not limited to this, and the system reference time may be updated once in a set period as needed, and this period may be before the next entering of the television application from the current entering of the television application, or may be other periods.
In addition, in this example, it is also described that the multiplexed frame is received for the first time upon entering the television application, i.e., the system reference time is updated. However, the present invention is not limited thereto, and in other embodiments, other times after entering the tv application may be selected to update the system reference time, if desired.
As shown in fig. 2, which is a flowchart illustrating an implementation of a network time obtaining interface according to an embodiment of the present invention, a terminal obtains maintained network time through the interface, and the terminal calls the interface to obtain network time when needing to know current network time. For example, in the present invention, when the terminal determines that the timing playing time is not reached, the interface is called to obtain the network time, and the network time is compared with the program time set by the user. Other applications, such as timed recordings, filtering non-current program listings, etc., also require this interface.
Step 200, the terminal calls a network time acquisition interface;
step 201, the terminal reads the current time of the crystal oscillator (T3);
step 202, reading the previously stored system reference time (T1) and crystal oscillator reference time (T2);
step 203, the network time acquisition interface returns the network time (T);
the network time (T) — the system reference time (T1) + (current crystal oscillation time (T3) — crystal oscillation reference time (T2)).
There is no strict sequence for the execution of the above steps 201, 202, in another embodiment, the previously saved system reference time (T1) and the crystal reference time (T2) are read first, and then the current time (T3) of the crystal is read.
As can be seen from the flows of fig. 1 and fig. 2, the present solution maintains the network time by means of the crystal oscillator time of the terminal. Since the crystal oscillation time is maintained by the crystal oscillator of the terminal and cannot be modified by the user, the crystal oscillation time is still effective when the television application is quitted and the television is turned off. The network time maintenance scheme can ensure the validity of the network time after the user exits the television application or is powered off.
As shown in fig. 3, the structure of the network time maintenance apparatus in the embodiment of the present invention includes: the system comprises a reference time acquisition module A, a storage module B and a network time generation module C; wherein,
the reference time acquisition module A is used for analyzing a network information table from a received multiplexing frame in a set period, reading the system time in the network information table, acquiring the current time of the crystal oscillator of the terminal, and respectively sending the current time to the storage module to be stored as the system reference time and the crystal oscillator reference time;
the storage module B is used for storing the system reference time and the crystal oscillator reference time;
the network time generating module C is configured to obtain the current time of the crystal oscillator at any time within the set period, and generate the current network time (the value is equal to the sum of the system reference time and the difference between the current crystal oscillator time and the crystal oscillator reference time) by combining the system reference time and the crystal oscillator reference time in the storage module B.
In this embodiment, when the network time generation module C generates the current network time, the network time generation module C is triggered by the mobile terminal where the network time generation module C is located, and when the mobile terminal needs to know the current network time, the network time acquisition interface is called to acquire the network time from the network time generation module;
the set period can be from the current television application to the next television application, or other periods;
the reference time acquisition module a may analyze the network information table from the first received multiplexing frame to obtain the system reference time, and may also analyze the network information table from any other multiplexing frame to obtain the system reference time.
In practice, the network time maintenance method and device can be used for performing timed playing and timed recording. The following describes the flow of the timed playing and the corresponding device, and the similar flow of the timed recording and the corresponding device will not be described again.
Fig. 4 is a flowchart illustrating a user customizing a timer playing program according to an embodiment of the present invention.
Step 300, the terminal provides a menu option for playing at regular time for each program, and the user sets the regular playing of one program by selecting the menu;
step 301, the terminal prompts the user to input the start time of the timed playing;
step 302, a user inputs effective timing play start time according to a current program list;
step 303, the terminal verifies the validity of the time input by the user, if the time input by the user is valid, step 304 is executed, otherwise, step 301 is executed;
the validity of the time can be defined according to the requirements of different manufacturers, for example, the time within the next few days is defined as valid;
step 304, after the play start time is set, the terminal waits for the automatic play to be executed, and meanwhile, the user can perform other normal operations;
step 305, circularly detecting the network time, and executing step 306 if the network time maintained by the terminal reaches the play start time set by the user; otherwise, returning to the step 304;
step 306, starting the corresponding playing process of the selected program, and the terminal automatically plays the program set by the user.
As shown in fig. 5, the mobile terminal for a user to play a program at regular time includes a terminal body 1 and a regular play device 2, where the regular play device 2 further includes: the system comprises a storage module 20, a playing module 40, a timing playing management module 30, a task customizing module 10, a network time generating module 50 and a reference time collecting module 60; wherein:
the task customizing module 10 is configured to select a program to be played at a fixed time, set a fixed-time playing time of the program, and send an identifier of the program to be played and the fixed-time playing time to the storage module 20;
the reference time acquisition module 60 is configured to analyze a network information table from a received multiplexing frame in a set period, read a system time therein, send the system time to the storage module 20, store the system time as the system reference time, acquire the current time of the crystal oscillator of the terminal, and send the current time to the storage module 20, and store the current time as the crystal oscillator reference time;
the network time generating module 50 is configured to obtain the current time of the crystal oscillator at any time in the set period, and combine the system reference time and the crystal oscillator reference time in the storage module 20 to generate the current network time (the value is equal to the sum of the system reference time and the difference between the current crystal oscillator time and the crystal oscillator reference time), and send the current network time to the timed playback management module 30;
the storage module 20 is configured to store the program identifier selected to be played by the task customizing module 10 and the corresponding timing playing time in a playing chain table, and is further configured to store the system reference time and the crystal oscillator reference time sent by the reference time acquiring module 60;
the timing playing management module 30 circularly detects the timing playing time of the program to be played stored in the playing chain table in the storage module 20 according to the current network time sent by the network time generation module 50, starts the playing process of the program and informs the playing module 40 when the network time is equal to the timing playing time of the program to be played;
the playing module 40 plays the program of which the timing playing time is up according to the notification of the timing playing management module 30.
The set period can be from the current television application to the next television application, or other periods;
the reference time acquisition module 60 may analyze the network information table from the first received multiplexing frame to obtain the system reference time, and may also analyze the network information table from any other multiplexing frame to obtain the system reference time.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it is therefore intended that all such changes and modifications as fall within the true spirit and scope of the invention be considered as within the following claims.
Claims (10)
1. A method of maintaining network time, characterized in that,
the terminal analyzes a network information table from the received multiplexing frame in a set period, reads the system time from the network information table and stores the system time as the system reference time; acquiring the current time of the crystal oscillator of the terminal and storing the current time as the reference time of the crystal oscillator;
at any time in the period, generating current network time by acquiring the current time of the crystal oscillator and combining the stored system reference time and the crystal oscillator reference time;
in the process of generating the current network time: the current network time is numerically equal to the system reference time plus the difference between the current crystal oscillator time and the crystal oscillator reference time.
2. The method of claim 1,
the terminal acquires the system time from the received first multiplexing frame;
the set period is before the mobile television application is entered next time.
3. A network time maintenance apparatus, comprising: the device comprises a reference time acquisition module, a storage module and a network time generation module; wherein,
the reference time acquisition module is used for analyzing a network information table from a received multiplexing frame in a set period, acquiring system time from the network information table, acquiring the current time of the crystal oscillator of the terminal, and respectively sending the current time to the storage module to be stored as the system reference time and the crystal oscillator reference time;
the storage module is used for storing the system reference time and the crystal oscillator reference time;
the network time generation module is used for acquiring the current time of the crystal oscillator at any time in the set period and generating the current network time by combining the system reference time and the crystal oscillator reference time in the storage module; and the current network time is equal to the sum of the system reference time and the difference between the current crystal oscillator time and the crystal oscillator reference time.
4. The apparatus of claim 3,
the network time generating module generates the current network time, which is equal to the sum of the system reference time and the difference between the current crystal oscillator time and the crystal oscillator reference time.
5. The apparatus of claim 3,
the reference time acquisition module acquires system time from the received first multiplexing frame, wherein the set period is before the application of the mobile television entering this time is applied to the next application of the mobile television entering.
6. The apparatus of claim 3 or 5,
the reference time acquisition module analyzes a network information table from the received multiplexing frame and reads the system time from the network information table.
7. A method for playing regularly by using network time is characterized in that,
the terminal analyzes a network information table from a received multiplexing frame in a set period, reads system time from the network information table and stores the system time as system reference time, and acquires the current time of a crystal oscillator of the terminal and stores the current time as crystal oscillator reference time;
at any time in the period, the terminal acquires the current time of the crystal oscillator, and generates the current network time by combining the stored system reference time and the crystal oscillator reference time; wherein the current network time is equal to the system reference time plus the difference between the current crystal oscillator time and the crystal oscillator reference time;
and after the user selects the program to be played at the pending time by triggering the menu option and sets the playing time, and when the terminal detects that the playing time is equal to the network time, starting a playing process corresponding to the selected program.
8. The method of claim 7,
the current network time is numerically equal to the system reference time plus the difference between the current crystal oscillator time and the crystal oscillator reference time.
9. The method of claim 7,
the terminal acquires the system time from the received first multiplexing frame;
the set period is before the mobile television application is entered next time.
10. The method of claim 7 or 9,
the terminal analyzes a network information table from the received multiplexing frame and reads the system time from the network information table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100969946A CN101272193B (en) | 2008-05-14 | 2008-05-14 | Method and device for maintaining network time and timing broadcast method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100969946A CN101272193B (en) | 2008-05-14 | 2008-05-14 | Method and device for maintaining network time and timing broadcast method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101272193A CN101272193A (en) | 2008-09-24 |
CN101272193B true CN101272193B (en) | 2010-06-16 |
Family
ID=40005919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100969946A Expired - Fee Related CN101272193B (en) | 2008-05-14 | 2008-05-14 | Method and device for maintaining network time and timing broadcast method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101272193B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103369399A (en) * | 2013-07-08 | 2013-10-23 | 深圳创维数字技术股份有限公司 | Method and device for timing control of digital television |
CN104902297B (en) * | 2015-05-20 | 2018-05-08 | 无锡天脉聚源传媒科技有限公司 | The method and device that a kind of program plays |
CN105227755A (en) * | 2015-08-25 | 2016-01-06 | 努比亚技术有限公司 | The output control method of a kind of mobile terminal and multi-medium data |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1812598A (en) * | 2005-01-27 | 2006-08-02 | 株式会社东芝 | Telephone exchange and communication terminal |
CN1859567A (en) * | 2006-03-07 | 2006-11-08 | 华为技术有限公司 | Digital TV decoding method and system |
US20070133612A1 (en) * | 2005-12-09 | 2007-06-14 | Mitsubishi Denki Kabushiki Kaisha | Communication system |
-
2008
- 2008-05-14 CN CN2008100969946A patent/CN101272193B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1812598A (en) * | 2005-01-27 | 2006-08-02 | 株式会社东芝 | Telephone exchange and communication terminal |
US20070133612A1 (en) * | 2005-12-09 | 2007-06-14 | Mitsubishi Denki Kabushiki Kaisha | Communication system |
CN1859567A (en) * | 2006-03-07 | 2006-11-08 | 华为技术有限公司 | Digital TV decoding method and system |
Also Published As
Publication number | Publication date |
---|---|
CN101272193A (en) | 2008-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8463104B2 (en) | Digital broadcast receiving apparatus and method for controlling the same | |
CN102123323B (en) | Method for rapidly updating television program of single-tuner set top box | |
CN109474839B (en) | Method and device for displaying EPG user interface during broadcasting program | |
CN103702145A (en) | Program playing reminding method, program playing reminding system and display device | |
US20110131603A1 (en) | Television recever, automatic channel search apparatus and method thereof | |
EP1701539A2 (en) | Television program alert device and method | |
CN102088627A (en) | Program data information updating system and data updating method | |
CN101272193B (en) | Method and device for maintaining network time and timing broadcast method | |
CN101771779A (en) | Electronic photo frame with mode switching function and mode switching method | |
CN101753907A (en) | Program reminding method | |
CN105959805B (en) | Television program playing method and device | |
CN101662618B (en) | Information processing apparatus and operation setting method | |
EP2487938A1 (en) | Method and apparatus for downloading files | |
US20020194599A1 (en) | Television program display information | |
CN105554556A (en) | Method of set-top box program appointment reminding | |
CN102474672B (en) | Program information retrieval device | |
JP2004080194A (en) | Epg predictive information preparing device, receiver, epg predictive information preparing method, epg predictive information preparing program | |
CN109302633B (en) | Television program scheduled recording method and device, smart television and readable storage medium | |
JP2010154349A (en) | Digital broadcast receiving device and method, and program | |
CN101500141B (en) | Mobile phone television program customizing method | |
EP1936930A1 (en) | Device and method for executing reserved function in mobile communication terminal | |
CN101296343A (en) | Video-recording programming apparatus and video-recording programming method | |
JP2008028901A (en) | Content receiving and reproducing apparatus, view history information recording program and content preference tendency discriminating method | |
JP2015027044A (en) | Information processor, information processing method and program | |
JP5432570B2 (en) | Program information retrieving apparatus and television receiving apparatus using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100616 Termination date: 20200514 |
|
CF01 | Termination of patent right due to non-payment of annual fee |