CN105933733B - Clock synchronizing method, device, set-top box and TV - Google Patents

Clock synchronizing method, device, set-top box and TV Download PDF

Info

Publication number
CN105933733B
CN105933733B CN201610332833.7A CN201610332833A CN105933733B CN 105933733 B CN105933733 B CN 105933733B CN 201610332833 A CN201610332833 A CN 201610332833A CN 105933733 B CN105933733 B CN 105933733B
Authority
CN
China
Prior art keywords
signal
clock
network
condition
wire
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.)
Active
Application number
CN201610332833.7A
Other languages
Chinese (zh)
Other versions
CN105933733A (en
Inventor
张晓东
张晓红
李小明
于芝涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201610332833.7A priority Critical patent/CN105933733B/en
Publication of CN105933733A publication Critical patent/CN105933733A/en
Application granted granted Critical
Publication of CN105933733B publication Critical patent/CN105933733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets

Abstract

The embodiment of the present invention provides a kind of clock synchronizing method, device, set-top box and TV, this method comprises: obtaining the signal condition of the wire signal and the network signal;Synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition;The present clock of TV is obtained, and judges whether the absolute value of the difference between the synchronised clock and the present clock is greater than preset threshold, if so, the present clock of the TV is updated to the synchronised clock.For improving the synchronous reliability of television clocks.

Description

Clock synchronizing method, device, set-top box and TV
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of clock synchronizing method, device, set-top box and TV.
Background technique
In order to enable TV can normal play digital television program, usually TV configure set-top box, or using tool The TV integrated machine of standby host set top box functions.
Currently, all set-top boxes of CHINA RFTCOM Co Ltd may be provided with line signal, so that TV can receive live telecast Program, in the prior art, after the set-top box for configuring CHINA RFTCOM Co Ltd for TV, which usually only passes through wire signal Clock information is obtained, and clock information is synchronized to TV, so that the clock information in TV is normal.However, working as wire signal When failure (such as wire cable failure or wire signal too poor), clock can not or be arrived by wire signal, so that TV In clock it is abnormal, the reliability for causing television clocks synchronous is lower.
Summary of the invention
The embodiment of the present invention provides a kind of clock synchronizing method, device, set-top box and TV, same for improving television clocks The reliability of step.
In a first aspect, the embodiment of the present invention provides a kind of clock synchronizing method, comprising:
Obtain the signal condition of the wire signal and the network signal;
Synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition;
The present clock of TV is obtained, and judges the absolute value of the difference between the synchronised clock and the present clock Whether preset threshold is greater than, if so, the present clock of the TV is updated to the synchronised clock.
In a kind of possible embodiment, the signal shape of a signal in the wire signal and the network signal State is normal condition, described to obtain synchronised clock, packet by wire signal and/or network signal that signal condition is normal condition It includes:
According to the signal condition of the signal condition of the wire signal and the network signal, in the wire signal and institute It states in network signal, determines that signal condition is the echo signal of normal condition;
The synchronised clock is obtained by the echo signal.
In alternatively possible embodiment, the signal condition of the wire signal and the network signal is normal State, it is described that synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition, comprising:
It obtains the wire signal corresponding first and obtains the moment, obtain the moment described first, pass through wired letter Number obtain synchronised clock;
It obtains the network signal corresponding second and obtains the moment, obtain the moment described second, believed by the network Number obtain synchronised clock.
In another possible embodiment, before the acquisition synchronised clock by the wire signal, also wrap It includes:
After getting signal source handover information, synchronised clock is obtained by the wire signal, wherein the signal Source handover information indicates that the signal source of the TV switches to broadcasting and TV signal source by non-broadcasting and TV signal source;
Before the acquisition synchronised clock by the network signal, further includes:
After getting network state handover information, synchronised clock is obtained by the network signal, it is described network-like The network state that state handover information is used to indicate the TV switches to normal condition by abnormality.
In alternatively possible embodiment, the signal condition of the wire signal and the network signal is normal State, it is described that synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition, comprising:
Obtain the wire signal and the corresponding priority of the network signal;
Pass through the signal acquisition synchronised clock of the highest priority.
In another possible embodiment, the signal acquisition synchronised clock by the highest priority it Before, further includes:
If the signal of the highest priority is the wire signal, after getting signal source handover information, lead to Cross the wire signal and obtain the synchronised clock, wherein the signal source handover information indicate the signal source of the TV by Non- broadcasting and TV signal source switches to broadcasting and TV signal source;
If the signal of the highest priority is the network signal, after getting network state handover information, The synchronised clock is obtained by the network signal, the network state handover information is used to indicate the network-like of the TV State switches to normal condition by abnormality.
In alternatively possible embodiment, the network signal includes Intranet signal and/or outer net signal.
Second aspect, the embodiment of the present invention provide a kind of clock synchronization apparatus, comprising:
First obtains module, for obtaining the signal condition of the wire signal and the network signal;
Second obtains module, same for being obtained by wire signal and/or network signal that signal condition is normal condition Walk clock;
Third obtains module, for obtaining the present clock of TV;
Judgment module, for judging whether the absolute value of the difference between the synchronised clock and the present clock is greater than Preset threshold;
Update module, for judging the difference between the synchronised clock and the present clock in the judgment module When absolute value is greater than preset threshold, the present clock of the TV is updated to the synchronised clock.
In a kind of possible embodiment, when the signal of a signal in the wire signal and the network signal When state is normal condition, the second acquisition module is specifically used for:
According to the signal condition of the signal condition of the wire signal and the network signal, in the wire signal and institute It states in network signal, determines that signal condition is the echo signal of normal condition;
The synchronised clock is obtained by the echo signal.
In alternatively possible embodiment, when the signal condition of the wire signal and the network signal is positive When normal state, the second acquisition module is specifically used for:
It obtains the wire signal corresponding first and obtains the moment, obtain the moment described first, pass through wired letter Number obtain synchronised clock;
It obtains the network signal corresponding second and obtains the moment, obtain the moment described second, believed by the network Number obtain synchronised clock.
In another possible embodiment, when described second obtains module and obtains synchronous by the wire signal Before clock, the second acquisition module is also used to get signal source handover information, and is getting the signal source switching letter After breath, synchronised clock is obtained by the wire signal, wherein the signal source handover information indicates the signal of the TV Source switches to broadcasting and TV signal source by non-broadcasting and TV signal source;
Before described second obtains module by network signal acquisition synchronised clock, described second obtains module also For getting network state handover information, and after getting the network state handover information, believed by the network Number synchronised clock is obtained, the network state that the network state handover information is used to indicate the TV switches to by abnormality Normal condition.
In alternatively possible embodiment, when the signal condition of the wire signal and the network signal is positive When normal state, the second acquisition module is specifically used for:
Obtain the wire signal and the corresponding priority of the network signal;
Pass through the signal acquisition synchronised clock of the highest priority.
In another possible embodiment, if the signal of the highest priority is the wire signal, described the Two acquisition modules are also used to get signal source handover information, and after getting the signal source handover information, pass through institute It states wire signal and obtains the synchronised clock, wherein the signal source handover information indicates the signal source of the TV by non-wide Electric signal source switches to broadcasting and TV signal source;
If the signal of the highest priority is the network signal, the second acquisition module is also used to get network State handover information, and after getting the network state handover information, the synchronization is obtained by the network signal Clock, the network state that the network state handover information is used to indicate the TV switch to normal condition by abnormality.
In alternatively possible embodiment, the network signal includes Intranet signal and/or outer net signal.
The third aspect, the embodiment of the present invention provide a kind of set-top box, and above-mentioned second aspect is provided in the set-top box and is appointed Clock synchronization apparatus described in one.
Fourth aspect, the embodiment of the present invention provide a kind of TV, any one of above-mentioned second aspect are provided in the TV The clock synchronization apparatus.
Clock synchronizing method, device, set-top box and TV provided in an embodiment of the present invention, when clock synchronization apparatus needs pair When the clock of TV synchronizes, clock synchronization apparatus obtains the signal condition of wire signal and network signal, and passes through signal State obtains synchronised clock for the wire signal and/or network signal of normal condition and then obtains the present clock of TV, and Judge whether the absolute value of the difference between synchronised clock and present clock is greater than preset threshold, if so, by the current of TV Clock is updated to synchronised clock, and in this process, clock synchronization apparatus not only can obtain clock by wire signal, can be with Clock is obtained by network signal, so that clock synchronization apparatus can still pass through at wire signal failure (abnormality) Network signal obtains clock, and synchronizes to the clock of TV, improves the synchronous reliability of television clocks, further, Before obtaining synchronised clock, the state of wire signal and network signal is first obtained, and same according to the signal acquisition of normal condition Clock is walked, ensure that the clock acquired is accurate clock, further improve the synchronous reliability of television clocks.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the synchronous application scenarios schematic diagram of clock provided by the invention;
Fig. 2 is the flow diagram of clock synchronizing method provided by the invention;
Fig. 3 is the flow diagram one provided by the invention for obtaining synchronised clock mode;
Fig. 4 is the flow diagram two provided by the invention for obtaining synchronised clock mode;
Fig. 5 is the structural schematic diagram of clock synchronization apparatus provided by the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the synchronous application scenarios schematic diagram of clock provided by the invention, please refers to Fig. 1, TV 101 configures organic top Box 102 is internally provided with clock synchronization apparatus in set-top box 102, and one end of set-top box 102 passes through connecting line A and connection respectively Line B is connect with TV 101, and the other end of set-top box 102 passes through connecting line C and connecting line D and CHINA RFTCOM Co Ltd server 103 respectively Connection, set-top box 102 obtain wire signal from CHINA RFTCOM Co Ltd server 103 by connecting line C, and will be wired by connecting line A Signal is transmitted to TV 101, and set-top box 102 obtains network signal from CHINA RFTCOM Co Ltd server 103 by connecting line D, and passes through Network signal is transmitted to TV 101 by connecting line B;It should be noted that clock synchronization apparatus can also be arranged in TV 101 Portion, to form TV integrated machine with TV 101.In embodiments of the present invention, clock synchronization apparatus can both pass through wire signal Synchronised clock is obtained from CHINA RFTCOM Co Ltd server 103, can also be obtained and be synchronized from CHINA RFTCOM Co Ltd server 103 by network signal Clock, and the synchronised clock that will acquire is synchronized in TV 101, to guarantee the correctness of clock in TV 101.In the following, By specific embodiment, technical solution shown in the application is described in detail.
Fig. 2 is the flow diagram of clock synchronizing method provided by the invention, and the executing subject of this method is synchronous for clock Device, referring to figure 2., this method may include:
S201, the signal condition for obtaining wire signal and network signal;
S202, synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition;
S203, the present clock for obtaining TV;
S204, judge whether the absolute value of the difference between synchronised clock and present clock is greater than preset threshold;
S205, if the determination result is YES, then be updated to synchronised clock for the present clock of TV.
In embodiments of the present invention, network signal may include Intranet signal and/or outer net signal,
In actual application, after television startup, clock synchronization apparatus can be immediately performed shown in Fig. 2 embodiment Accurate clock is arranged to be embodied as TV in technical solution, and in TV course of normal operation, clock synchronization apparatus can be real-time Or technical solution shown in Fig. 2 embodiment is periodically executed, to guarantee the correctness of clock during television operations, in the following, Respectively to clock synchronization apparatus carries out specifically the synchronous method of television clocks after television startup and during television operations It is bright.
It, may be without any clock, alternatively, the clock in TV is TV factory Shi Wei electricity in TV after television startup Depending on be arranged default clock, after guaranteeing television startup, the clock in TV be it is correct, then after television startup, clock Synchronizing device can be at once according to the wire signal or network signal that signal condition is effective status from CHINA RFTCOM Co Ltd server Synchronised clock is obtained, and the synchronised clock that will acquire is synchronized in TV, specific: if there is no any clock in TV, The synchronised clock that then clock synchronization apparatus directly will acquire saves on television, if in TV including default clock, when Default clock in TV is updated to the synchronised clock acquired by clock synchronizing device.
During television operations, clock synchronization apparatus obtains the signal condition of wire signal and the signal shape of network signal State, in actual application, the signal condition of wire signal and network signal includes normal condition and abnormality, specifically : when the corresponding physical circuit connection of wire signal is normal, and the signal quality of wire signal is greater than the first preset threshold, then The state of wire signal is normal condition, when network signal corresponding radiolink connection is normal, and the signal matter of network signal When amount is greater than the second preset threshold, then the state of network signal is that normal condition optionally can pass through the bit error rate table of signal Show the signal quality of wire signal and network signal.
After the signal condition that clock synchronization apparatus acquires wire signal and network signal, clock synchronization apparatus point Whether the signal condition for not judging wire signal and network signal is normal condition, and is the letter of normal condition by signal condition Number obtain synchronised clock, when the signal condition of wire signal be normal condition when, CHINA RFTCOM Co Ltd server can be in real time to set-top box Or TV send include clock information cable data, clock synchronization apparatus can be from CHINA RFTCOM Co Ltd server to set-top box or electricity Synchronised clock is obtained in clock information depending on the cable data sent, when the signal condition of network signal is normal condition, when Clock synchronizing device can be to CHINA RFTCOM Co Ltd server tranmitting data register solicited message, to obtain the synchronization of CHINA RFTCOM Co Ltd server transmission Clock;Specifically, when including that the feasible implementation of following two is synchronous by the signal acquisition that signal condition is normal condition Clock:
A kind of feasible implementation: the signal condition for only having a kind of signal in wire signal and network signal is normal shape State;
In this kind of feasible implementation, clock synchronization apparatus is according to the signal condition of wire signal and network signal Signal condition determines that signal condition is the echo signal of normal condition, and believe by target in wire signal and network signal Number obtain synchronised clock.
Another feasible implementation: the signal condition of wire signal and network signal is normal condition;
In this kind of feasible implementation, optionally, clock synchronization apparatus can pass through wire signal and network signal In any one obtain synchronised clock;Optionally, clock synchronization apparatus can also pass through wire signal and network signal simultaneously Synchronised clock is obtained simultaneously, at this point, clock synchronization apparatus is available to obtain two synchronised clocks.
After clock synchronization apparatus acquires synchronised clock, clock synchronization apparatus obtains the present clock of TV, and Judge to obtain to synchronised clock and present clock between the absolute value of difference whether be greater than preset threshold, if so, will The present clock of TV is updated to synchronised clock, if it is not, then explanation is then abandoned and obtained without being updated to the present clock of TV The synchronised clock obtained can be set according to actual needs the size of preset threshold in actual application;If clock is same Walk device and in synchronization acquire two synchronised clocks, then can judge respectively two synchronised clocks and present clock it Between the absolute value of difference whether needed with preset threshold if so, the present clock of TV is updated to synchronised clock greatly It is bright, since the clock in CHINA RFTCOM Co Ltd server is unified clock, when the signal shape of wire signal and network signal When state is normal condition, then clock synchronization apparatus is acquired by wire signal in synchronization clock and pass through network The clock that signal acquisition obtains is usually identical or difference very little.
Illustratively, during television operations, it is assumed that at current time, the present clock of TV is January 10 in 2016 Numbers 10 points 30 seconds 10 minutes, it is further assumed that preset threshold is 5 seconds.
At current time, clock synchronization apparatus obtains the signal condition of wire signal and network signal, it is assumed that wire signal Signal condition and the signal condition of network signal be normal condition, then clock synchronization apparatus passes through wire signal and net respectively Network signal acquisition synchronised clock, it is assumed that the synchronised clock that clock synchronization apparatus is acquired by wire signal are as follows: in January, 2016 No. 10 10 points 45 seconds 10 minutes, the synchronised clock that clock synchronization apparatus is acquired by network signal are as follows: 10 days 10 January in 2016 Point 10 minutes and 44 seconds, then synchronised clock (10 points of January 10 in 2016 that clock synchronization apparatus judges to acquire by wire signal 10 points 45 seconds) and the present clock (on January 10th, 2,016 10: 30 10 :) of TV between difference absolute value (15 seconds) Greater than preset threshold (5 seconds), then the present clock of TV is updated to 10 points of on January 10th, 2,016 10 minutes 45 by clock synchronization apparatus Second, then, synchronised clock that clock synchronization apparatus judges to acquire by network signal (10 minutes 10 points of on January 10th, 2016 44 seconds) and the present clock (on January 10th, 2,016 10: 45 10 :) of TV between difference be less than within absolute value (1 second) it is pre- If threshold value (5 seconds), then clock synchronization apparatus abandons the synchronised clock obtained by network signal, currently, in practical application mistake Cheng Zhong, the synchronised clock that clock synchronization apparatus can also first pass through network signal acquisition synchronize the clock of TV, this hair It is bright that this is not especially limited.
Clock synchronizing method provided in an embodiment of the present invention, when clock synchronization apparatus needs to synchronize the clock of TV When, clock synchronization apparatus obtains the signal condition of wire signal and network signal, and is having for normal condition by signal condition Line signal and/or network signal obtain synchronised clock and then obtain the present clock of TV, and judge synchronised clock and current Whether the absolute value of the difference between clock is greater than preset threshold, if so, the present clock of TV is updated to synchronised clock, In this process, clock synchronization apparatus not only can obtain clock by wire signal, when can also be obtained by network signal Clock, so that clock synchronization apparatus can still obtain clock by network signal at wire signal failure (abnormality), and The clock of TV is synchronized, the synchronous reliability of television clocks is improved, further, before obtaining synchronised clock, The state of wire signal and network signal is first obtained, and according to the signal acquisition synchronised clock of normal condition, ensure that and obtain The clock arrived is accurate clock, further improves the synchronous reliability of television clocks.
On the basis of embodiment shown in Fig. 2, when the signal condition of wire signal and network signal is normal condition, Clock synchronization apparatus can obtain synchronised clock by wire signal and network signal, and clock synchronization apparatus can also be by wired One of signal and network signal signal acquisition synchronised clock, in the following, can to this two kinds by Fig. 3-embodiment shown in Fig. 4 Capable implementation is described in detail.
Fig. 3 is the flow diagram one provided by the invention for obtaining synchronised clock mode, and referring to figure 3., this method can be with Include:
S301, the wire signal corresponding first acquisition moment is obtained;
S302, the moment is obtained first, synchronised clock is obtained by wire signal;
S303, the network signal corresponding second acquisition moment is obtained;
S304, the moment is obtained second, synchronised clock is obtained by network signal.
In the embodiment shown in fig. 3, there is no the sequencing in timing between S301-S302 and S303-S304, S301-S302 may be performed simultaneously with S303-S304, can also sequentially execute.
In actual application, clock synchronization apparatus can be respectively that wire signal and network signal determine preset obtain The moment is taken, optionally, clock synchronization apparatus can determine the first acquisition moment and by the feasible implementation of the following two kinds Two obtain the moment:
A kind of feasible implementation: clock synchronization apparatus is respectively wire signal and network signal setting predetermined period;
It is the first acquisition in the node time instance of the corresponding predetermined period of wire signal in this kind of feasible implementation Moment was the second acquisition moment in the node time instance of the corresponding predetermined period of network signal, for example, it is assumed that TV is in 8 o'clock sharps Booting, it is further assumed that clock synchronization apparatus is that be set as predetermined period be 1 hour to wire signal, then 9 o'clock sharps, 10 o'clock sharps etc. be Wire signal corresponding first obtains the moment, it is further assumed that clock synchronization apparatus is that the predetermined period of network signal setting is 40 points Clock, then 8 points 40 minutes, 9 points 20 minutes, 10 o'clock sharps etc. be that network signal corresponding second obtains the moment.
It should be noted that clock synchronization apparatus is that the predetermined period that wire signal and network signal are arranged can be identical, It can also be different, when the predetermined period being arranged for wire signal and network signal is identical, first, which obtains the moment and second, is obtained Moment is identical.
Another feasible implementation: when clock synchronization apparatus is wire signal and network signal setting preset acquisition It carves;
In this kind of feasible implementation, clock synchronization apparatus can set the predetermined time in one day to respectively One, which obtains the moment and second, obtains the moment, for example, clock synchronization apparatus can set even number moment hour in one day to the One obtains the moment, sets for the second acquisition moment for odd number moment hour in one day, then clock synchronization apparatus is by 0 o'clock sharp, 2 points Whole, 4 o'clock sharps etc. were determined as the first acquisition moment, and 1 o'clock sharp, 3 o'clock sharps etc. were determined as the second acquisition moment.
It should be noted that clock synchronization apparatus is the first of wire signal setting in this kind of feasible implementation It obtains the moment and may be the same or different for the second acquisition moment of network signal setting.
In the embodiment shown in fig. 3, when the signal condition of wire signal and network signal is normal condition, clock Synchronizing device can be the first acquisition moment of wire signal setting, be that network signal setting second obtains the moment, and obtains first It takes and synchronised clock is obtained by wire signal constantly, pass through network signal at the second acquisition moment and obtain synchronised clock, Jin Erti Height obtains the flexibility of synchronised clock.
On the basis of embodiment shown in Fig. 3, before clock synchronization apparatus obtains synchronizing information by wire signal, if Clock synchronization apparatus gets signal source handover information, and the signal source of the signal source handover information indication TV is by non-broadcasting and TV signal Source switches to broadcasting and TV signal source, and in order to guarantee the synchronous real-time of television clocks, then clock synchronization apparatus immediately passes through wired letter Number obtain synchronised clock;Further, before clock synchronization apparatus obtains synchronised clock by network signal, if clock is synchronous Device gets network state handover information, which is used to indicate the network state of TV by abnormality Normal condition is switched to, in order to guarantee the synchronous real-time of television clocks, then clock synchronization apparatus immediately passes through network signal and obtains Take synchronised clock.
Fig. 4 is the flow diagram two provided by the invention for obtaining synchronised clock mode, and referring to figure 4., this method can be with Include:
S401, wire signal and the corresponding priority of network signal are obtained;
S402, the signal acquisition synchronised clock by highest priority.
In the embodiment shown in fig. 4, the synchronous reliability of clock is carried out in order to improve clock synchronization apparatus to TV, when The signal stabilization of the available wire signal of clock synchronizing device and network signal in preset period of time, and according to wire signal The priority of signal stabilization the setting wire signal and network signal of network signal, specifically, signal stabilization is higher, signal Corresponding priority is higher, in actual application, can be periodically to the preferential grading of wire signal and network signal Row updates.
In actual application, when clock synchronization apparatus needs to obtain synchronised clock, clock synchronization apparatus is first obtained Wire signal and the corresponding priority of network signal, and pass through the signal acquisition synchronised clock of highest priority, when according to signal When the priority of stability setting wire signal and network signal, since priority is directly proportional to signal quality, then priority is high Signal stability it is higher so that the stability of the synchronous television clocks of clock synchronization apparatus is also higher.
On the basis of the embodiment shown in fig. 4, when clock synchronization apparatus is synchronous by the signal acquisition of highest priority It,, should when clock synchronization apparatus gets signal source handover information if the signal of highest priority is wire signal before clock The signal source of signal source handover information indication TV switches to broadcasting and TV signal source by non-broadcasting and TV signal source, then clock synchronization apparatus is vertical It carves and synchronised clock is obtained by wire signal;If the signal of highest priority is network signal, obtained in clock synchronization apparatus When to network state handover information, the network state which is used to indicate TV is switched to by abnormality Normal condition, clock synchronization apparatus immediately passes through network signal and obtains synchronised clock, and then guarantees that clock synchronization apparatus synchronizes electricity The real-time of apparent time clock.
Fig. 5 is the structural schematic diagram of clock synchronization apparatus provided by the invention, and referring to figure 5., which can To include:
First obtains module 501, for obtaining the signal condition of wire signal and network signal;
Second obtains module 502, for being obtained by wire signal and/or network signal that signal condition is normal condition Synchronised clock;
Third obtains module 503, for obtaining the present clock of TV;
Judgment module 504, for judging it is default whether the absolute value of the difference between synchronised clock and present clock is greater than Threshold value;
Update module 505, for judging that the absolute value of the difference between synchronised clock and present clock is big in judgment module When preset threshold, the present clock of TV is updated to synchronised clock.
Clock synchronization apparatus provided in an embodiment of the present invention can execute technical side shown in any of the above-described mode embodiment Case, realization principle and beneficial effect are similar, are no longer repeated herein.
In a kind of possible embodiment, when the signal condition of a signal in wire signal and network signal is positive When normal state, the second acquisition module 502 is specifically used for:
According to the signal condition of the signal condition of wire signal and network signal, in wire signal and network signal, really Determine the echo signal that signal condition is normal condition;
Synchronised clock is obtained by echo signal.
In alternatively possible embodiment, when the signal condition of wire signal and network signal is normal condition When, the second acquisition module 502 is specifically used for:
It obtains wire signal corresponding first and obtains the moment, the moment is obtained first, when obtaining synchronous by wire signal Clock;
It obtains network signal corresponding second and obtains the moment, the moment is obtained second, when obtaining synchronous by network signal Clock.
In another possible embodiment, second obtain module 502 by wire signal acquisition synchronised clock it Before, the second acquisition module 502 is also used to get signal source handover information, and after getting signal source handover information, leads to It crosses wire signal and obtains synchronised clock, wherein the signal source of signal source handover information indication TV is switched by non-broadcasting and TV signal source To broadcasting and TV signal source;
Before second obtains module 502 by network signal acquisition synchronised clock, the second acquisition module 502 is also used to obtain Network state handover information is got, and after getting network state handover information, synchronised clock is obtained by network signal, The network state that network state handover information is used to indicate TV switches to normal condition by abnormality.
In alternatively possible embodiment, when the signal condition of wire signal and network signal is normal condition When, the second acquisition module 502 is specifically used for:
Obtain wire signal and the corresponding priority of network signal;
Pass through the signal acquisition synchronised clock of highest priority.
In a kind of possible embodiment, if the signal of highest priority is wire signal, second obtains module 502 also For getting signal source handover information, and after getting signal source handover information, when obtaining synchronous by wire signal Clock, wherein the signal source of signal source handover information indication TV switches to broadcasting and TV signal source by non-broadcasting and TV signal source;
If the signal of highest priority is network signal, the second acquisition module 502 is also used to get network state switching Information, and after getting network state handover information, synchronised clock, network state handover information are obtained by network signal The network state for being used to indicate TV switches to normal condition by abnormality.
In any of the above-described possible embodiment, network signal includes Intranet signal and/or outer net signal.
Clock synchronization apparatus provided in an embodiment of the present invention can execute technical side shown in any of the above-described mode embodiment Case, realization principle and beneficial effect are similar, are no longer repeated herein.
The embodiment of the present invention also provides a kind of set-top box, includes the synchronous dress of clock shown in Fig. 5 embodiment in the set-top box Set, the structure of clock synchronization apparatus shown in the clock synchronization apparatus for including in the set-top box and Fig. 5 embodiment, realization principle, And accessible beneficial effect is similar, is no longer repeated herein.
The embodiment of the present invention also provides a kind of TV, which includes clock synchronization apparatus shown in Fig. 5 embodiment, the electricity It the structure of the clock synchronization apparatus for including depending in and clock synchronization apparatus shown in Fig. 5 embodiment, realization principle and can reach Beneficial effect it is similar, no longer repeated herein.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of clock synchronizing method characterized by comprising
Obtain the wire signal of TV and the signal condition of network signal;
Synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition, when the wire signal The connection of corresponding physical circuit is normal, and when the signal quality of the wire signal is greater than the first preset threshold, wired letter Number state be normal condition, when the network signal corresponding radiolink connection is normal, and the signal of the network signal When quality is greater than the second preset threshold, the state of the network signal is normal condition;
Obtain the present clock of TV, and judge difference between the synchronised clock and the present clock absolute value whether Greater than third predetermined threshold value, if so, the present clock of the TV is updated to the synchronised clock;
Synchronised clock is obtained by wire signal and/or network signal that signal condition is normal condition, comprising:
When the signal condition of the wire signal is normal condition, sent from CHINA RFTCOM Co Ltd server to set-top box or TV The synchronised clock is obtained in the clock information of cable data;And/or when the signal condition of the network signal is normal condition When, Xiang Suoshu CHINA RFTCOM Co Ltd server tranmitting data register solicited message, when obtaining synchronization that the CHINA RFTCOM Co Ltd server is sent Clock.
2. the method according to claim 1, wherein one in the wire signal and the network signal is believed Number signal condition be normal condition, it is described by signal condition be normal condition wire signal and/or network signal obtain Synchronised clock, comprising:
According to the signal condition of the signal condition of the wire signal and the network signal, in the wire signal and the net In network signal, determine that signal condition is the echo signal of normal condition;
The synchronised clock is obtained by the echo signal.
3. the method according to claim 1, wherein the signal condition of the wire signal and the network signal It is normal condition, it is described that synchronised clock, packet are obtained by wire signal and/or network signal that signal condition is normal condition It includes:
It obtains the wire signal corresponding first and obtains the moment, obtain the moment described first, obtained by the wire signal Take synchronised clock;
It obtains the network signal corresponding second and obtains the moment, obtain the moment described second, obtained by the network signal Take synchronised clock.
4. according to the method described in claim 3, it is characterized in that,
Before the acquisition synchronised clock by the wire signal, further includes:
After getting signal source handover information, synchronised clock is obtained by the wire signal, wherein the signal source is cut It changes information and indicates that the signal source of the TV switches to broadcasting and TV signal source by non-broadcasting and TV signal source;
Before the acquisition synchronised clock by the network signal, further includes:
After getting network state handover information, synchronised clock is obtained by the network signal, the network state is cut It changes information and is used to indicate the network state of the TV and normal condition is switched to by abnormality.
5. the method according to claim 1, wherein the signal condition of the wire signal and the network signal It is normal condition, it is described that synchronised clock, packet are obtained by wire signal and/or network signal that signal condition is normal condition It includes:
Obtain the wire signal and the corresponding priority of the network signal;
Pass through the signal acquisition synchronised clock of the highest priority.
6. according to the method described in claim 5, it is characterized in that, the signal acquisition by the highest priority is synchronous Before clock, further includes:
If the signal of the highest priority is that the wire signal passes through institute after getting signal source handover information It states wire signal and obtains the synchronised clock, wherein the signal source handover information indicates the signal source of the TV by non-wide Electric signal source switches to broadcasting and TV signal source;
If the signal of the highest priority is that the network signal passes through after getting network state handover information The network signal obtains the synchronised clock, the network state handover information be used to indicate the network state of the TV by Abnormality switches to normal condition.
7. method according to claim 1-6, which is characterized in that the network signal include Intranet signal and/ Or outer net signal.
8. a kind of clock synchronization apparatus characterized by comprising
First obtains module, for obtaining the signal condition of wire signal and network signal;
Second obtains module, when for obtaining synchronous by wire signal and/or network signal that signal condition is normal condition Clock, when the wire signal corresponding physical circuit connection is normal, and to be greater than first default for the signal quality of the wire signal When threshold value, the state of the wire signal is normal condition, when the corresponding radiolink connection of the network signal is normal, and institute When stating the signal quality of network signal greater than the second preset threshold, the state of the network signal is normal condition;
Third obtains module, for obtaining the present clock of TV;
Judgment module, for judging whether the absolute value of the difference between the synchronised clock and the present clock is greater than third Preset threshold;
Update module, for judging the absolute of the difference between the synchronised clock and the present clock in the judgment module When value is greater than the third predetermined threshold value, the present clock of the TV is updated to the synchronised clock;
The third obtains module and is specifically used for: when the signal condition of the wire signal is normal condition, from CHINA RFTCOM Co Ltd The synchronised clock is obtained in the clock information for the cable data that server is sent to set-top box or TV;And/or when the net When the signal condition of network signal is normal condition, Xiang Suoshu CHINA RFTCOM Co Ltd server tranmitting data register solicited message, described in obtaining The synchronised clock that CHINA RFTCOM Co Ltd server is sent.
9. a kind of set-top box, which is characterized in that be provided with clock synchronization apparatus shown in claim 8 in the set-top box.
10. a kind of TV, which is characterized in that be provided with clock synchronization apparatus according to any one of claims 8 in the TV.
CN201610332833.7A 2016-05-18 2016-05-18 Clock synchronizing method, device, set-top box and TV Active CN105933733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610332833.7A CN105933733B (en) 2016-05-18 2016-05-18 Clock synchronizing method, device, set-top box and TV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610332833.7A CN105933733B (en) 2016-05-18 2016-05-18 Clock synchronizing method, device, set-top box and TV

Publications (2)

Publication Number Publication Date
CN105933733A CN105933733A (en) 2016-09-07
CN105933733B true CN105933733B (en) 2019-09-17

Family

ID=56841932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610332833.7A Active CN105933733B (en) 2016-05-18 2016-05-18 Clock synchronizing method, device, set-top box and TV

Country Status (1)

Country Link
CN (1) CN105933733B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110736873B (en) * 2019-10-29 2022-02-25 宁波三星医疗电气股份有限公司 Clock repairing method, power terminal and power system
CN113923522A (en) * 2021-10-14 2022-01-11 深圳市华曦达科技股份有限公司 Time updating method and device for set top box and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2178300A1 (en) * 2008-10-16 2010-04-21 Industrial Technology Research Institute Group synchronization for rendering streaming services transmitted over RTP to mobile TV terminals.
CN102281409A (en) * 2010-06-11 2011-12-14 深圳Tcl新技术有限公司 Television capable of automatically calibrating time and time calibration method thereof
CN103888786A (en) * 2014-03-24 2014-06-25 Tcl集团股份有限公司 Clock calibration method and system
CN103945237A (en) * 2014-04-23 2014-07-23 海信集团有限公司 Clock synchronization method and system, digital television equipment and EPG server
CN103997658A (en) * 2014-06-11 2014-08-20 成都德芯数字科技有限公司 Clock synchronization device, method and system in digital television broadcasting
CN105516118A (en) * 2015-12-03 2016-04-20 Tcl集团股份有限公司 Time synchronization method and time synchronization system based on non-RTC smart television

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2178300A1 (en) * 2008-10-16 2010-04-21 Industrial Technology Research Institute Group synchronization for rendering streaming services transmitted over RTP to mobile TV terminals.
CN102281409A (en) * 2010-06-11 2011-12-14 深圳Tcl新技术有限公司 Television capable of automatically calibrating time and time calibration method thereof
CN103888786A (en) * 2014-03-24 2014-06-25 Tcl集团股份有限公司 Clock calibration method and system
CN103945237A (en) * 2014-04-23 2014-07-23 海信集团有限公司 Clock synchronization method and system, digital television equipment and EPG server
CN103997658A (en) * 2014-06-11 2014-08-20 成都德芯数字科技有限公司 Clock synchronization device, method and system in digital television broadcasting
CN105516118A (en) * 2015-12-03 2016-04-20 Tcl集团股份有限公司 Time synchronization method and time synchronization system based on non-RTC smart television

Also Published As

Publication number Publication date
CN105933733A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN102769626B (en) A kind of session information synchronous method, device and system
CN108184158B (en) Method and system for synchronously playing videos
CN107465474B (en) The clock synchronization system and method for digital control system bus apparatus
CN105306605B (en) A kind of double host server systems
CN104301140B (en) Service request response method, device and system
CN105933733B (en) Clock synchronizing method, device, set-top box and TV
CN106302700A (en) Distributed system consistent update method and system based on paxos algorithm
CN110138490A (en) A kind of method and apparatus of clock competition
CN101848193B (en) Method, system and network node for network synchronization
CN106412697A (en) Method and device for automatically acquiring time zone for smart television
CN107251456A (en) Method for carrying out time synchronized to the device in control network
CN107479426B (en) A kind of synchronous performance control system of robot and method
CN101883155B (en) WAN side information acquisition method and device of home gateway
CN105516118A (en) Time synchronization method and time synchronization system based on non-RTC smart television
CN102866698B (en) Human machine interface (HMI) redundant communication method for distributed control system controller
CN104166941A (en) Alarm information visualization method used for electrical network trend graph and system
WO2017045474A1 (en) Message parsing method and apparatus
CN102710356B (en) A kind of real time redundancy master station data synchronization method
CN103067649B (en) High precision synchronous broadcast control achieving method of channel broadcast system and channel packaging system
CN103236894B (en) Clock synchronizing method and device in a kind of seamless redundant network
CN106209480B (en) The method and device of synchronous configuration information
CN106100123B (en) Distribution equipment intelligent monitoring method based on video interlink
CN105607594B (en) The method that server memory based on smart home searches equipment
CN105357222B (en) A kind of distribution Session management middleware
CN104079440A (en) Synchronous configuration method of primary equipment and stand-by equipment and SNMP (Simple Network Management Protocol) system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant