CN101963938A - System and method for recording running time of digital set top box - Google Patents
System and method for recording running time of digital set top box Download PDFInfo
- Publication number
- CN101963938A CN101963938A CN 201010524950 CN201010524950A CN101963938A CN 101963938 A CN101963938 A CN 101963938A CN 201010524950 CN201010524950 CN 201010524950 CN 201010524950 A CN201010524950 A CN 201010524950A CN 101963938 A CN101963938 A CN 101963938A
- Authority
- CN
- China
- Prior art keywords
- time
- top box
- digital machine
- module
- current
- 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.)
- Granted
Links
Images
Landscapes
- Time Recorders, Dirve Recorders, Access Control (AREA)
Abstract
The invention discloses a system for recording running time of a digital set top box (STB), which relates to an embedded technology, aims to overcome the defects caused by the fact that the running time of the digital STB can not be recorded in traditional techniques, and helps to ensure the legitimate rights and interests of the users. The key points of the technical scheme is characterized in that the time-running recording system of the STB comprises an initialization module, a system time acquisition module, a data analysis and processing module, a storage module, a data export module and a data display module, wherein the initialization module, the system time acquisition module and the data analysis and processing module are sequentially connected with the storage module; and the data export module and the data display module are both connected with the storage module. In addition, the invention also discloses a method for recording the running time of the digital STB. In the invention, through recording and displaying the actual running time of a digital STB, the users is guided to use the digital STB correctly so as to prolong the service time of the digital STB; and objective data is provided for defining the time of after-sales service, thereby safeguarding the rights and interests of the users.
Description
Technical field
The present invention relates to embedded technology, relate to top box of digital machine operating time log system and recording method specifically.
Background technology
At present, aspect the operating time log, also there is not corresponding techniques to occur for top box of digital machine; On the one hand be because for the value of record top box of digital machine working time by user and developer's approval, on the other hand, at present to set-top box defining of service time (as: guarantee period) after sale, depend on the time buying merely, lack scientific and fair and reasonable property.Its common drawback has: 1, present after sale service for top box of digital machine, generally be just to begin to enjoy after sale service from that time of buying top box of digital machine, but some zone often appears because front end is built, upgraded or safeguards the situation that causes the user normally to use, so, the user's that this is regional after sale service term of validity has just been shortened much virtually, and proper rights and interests just can't be protected; 2, well-known, be limited the serviceable life of top box of digital machine, in case surpass its normal term of life, various faults and risk problem because of reasons such as machine line is aging initiation will appear, but at present to the calculating of this valid period or to define be to add some time limits from buying to count day singlely, the user can't understand the true service time (being the running time of top box of digital machine) of every machine, and is just little to user's instruction meaning like this.Therefore,, just can overcome the problems referred to above, and also not have a kind of system or recording method that top box of digital machine is write down working time to occur in the conventional art if can carry out record to the working time of top box of digital machine.
Summary of the invention
Technical matters to be solved by this invention is: propose a kind of top box of digital machine operating time log system and recording method, overcome in the conventional art owing to writing down the drawback of bringing working time, help ensureing user's just rights and interests top box of digital machine.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: top box of digital machine operating time log system comprises that initialization module, system time acquisition module, data analysis processing module, memory module, data derive module and data disaply moudle; Described initialization module, system time acquisition module, data analysis processing module are connected successively with memory module; Described data derive module, data disaply moudle all connects memory module; Initialization module is used for all signs of overall importance of initialization, the storage area of configuration and initialization memory module; The system time acquisition module is used to obtain the current UTC time of system, and the time that gets access to is carried out verification and is converted into local zone time; The data analysis processing module is used for system time format processing, operation duration calculation and accumulation process, and data are put in order by storage format; Memory module is stored the data of data analysis processing module output; Data derive module and are used for the data of memory module are derived; Data disaply moudle is used to show local zone time and adds up to move duration.
Top box of digital machine operating time log method may further comprise the steps:
A. top box of digital machine powers on, and this start of register system is ST0 and this boot system UCT time UT0 constantly;
B. register system current time ST1, current system UTC time UT1 in the top box of digital machine operational process;
C. constantly calculate this current operation duration Δ ST according to the current time ST1 of system and this start of system;
D. inquire about time operation duration of working as of the each top box of digital machine start of this start of writing down in the memory module to shutdown;
E. to each top box of digital machine start this start to the adding up when time operation duration of shutdown, obtain this start before system's accumulative total move duration;
F. system accumulative total before this start is moved duration and current operation duration Δ ST adds up, obtain current accumulative total and move duration T;
G. this boot system UCT time UT0 is converted to local zone time, shows this local zone time, and show that this current operation duration Δ ST and current accumulative total moves duration T;
H. at this shutdown moment of set-top box power down moment register system ST2 and this shutdown UTC of system time UT2;
I. in memory module, set up this logout of top box of digital machine.
In the step I, described this logout comprises: this boot system UTC time UT0, this shutdown UTC of system time UT2, this top box of digital machine start are to time operation duration of working as that shuts down.
In the described step I, this top box of digital machine start to the computing method when inferior operation duration of shutdown are:
I1. judge this shutdown UTC of system time UT2 and this boot system UCT time UT0 whether on the same day, if execution in step i2 then, otherwise execution in step i3;
I 2. these top box of digital machine starts are to time operation duration=ST2-ST0 that works as of shutdown;
I3. calculate this shutdown UTC of system time UT2 and this boot system UCT time UT0 number of days different n, then this top box of digital machine start to shutdown when time moving duration=(ST2-ST0)+(n*24 hour).
Among the described step c, the computing method of this current operation duration Δ ST are:
C1. judge current system UTC time UT1 and this boot system UCT time UT0 whether on the same day, if execution in step c2 then, otherwise execution in step c3;
C2. this current operation duration Δ ST=ST1-ST0;
C3. calculate current system UTC time UT1 and this boot system UCT time UT0 number of days different m, then this current operation duration Δ ST=(ST1-ST0)+(m*24 hour).
Among the step b, in the top box of digital machine operational process, register system current time ST1, current system UTC time UT1 at regular intervals.
Described certain hour is 1 minute.
In the described step g, when the UTC time, UT0 was converted to local zone time with this boot system according to the year-moon-Ri-time-minute form change.
Among the described step a, this start of system ST0 constantly is the moment of top box of digital machine CPU internal bus clock when system boot.
The invention has the beneficial effects as follows: by record and demonstration to the top box of digital machine actual run time, guides user is correctly used, and helps prolonging its serviceable life, and defines objective data are provided for the time of after sale service, ensures user's rights and interests.
Description of drawings
Fig. 1 is the top box of digital machine operating time log system architecture diagram among the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
The present invention proposes a kind of top box of digital machine operating time log system and recording method, by the top box of digital machine actual run time being write down and showing, overcome in the conventional art owing to writing down the drawback of bringing working time, help ensureing user's just rights and interests top box of digital machine.
As shown in Figure 1, the top box of digital machine operating time log system among the present invention comprises that initialization module, system time acquisition module, data analysis processing module, memory module, data derive module and data disaply moudle; Described initialization module, system time acquisition module, data analysis processing module are connected successively with memory module; Described data derive module, data disaply moudle all connects memory module.
In the division of labor of each functional module, initialization module is used for all signs of overall importance of initialization, the storage area of configuration and initialization memory module; The system time acquisition module is used to obtain the current UTC time of system, and the time that gets access to is carried out verification and is converted into local zone time; The data analysis processing module is used for system time format processing, operation duration calculation and accumulation process, and data are put in order by storage format; Memory module is stored the data of data analysis processing module output; Data derive module and are used for the data of memory module are derived; Data disaply moudle is used to show local zone time and adds up to move duration.
Embodiment:
This example has provided the method for top box of digital machine operating time log, and it specifically adopts following steps to realize:
A. top box of digital machine powers on, and this start of register system is ST0 (being the moment of top box of digital machine CPU internal bus clock when system boot) and this boot system UCT (tuning universal time) time UT0 constantly;
B. register system current time ST1 (being the current time of top box of digital machine CPU internal bus clock), current system UTC time UT1 in the top box of digital machine operational process;
C. constantly calculate this current operation duration Δ ST (till promptly powering on current time from this top box of digital machine, the duration of system's operation) according to the current time ST1 of system and this start of system, its concrete account form is as follows:
C1. judge current system UTC time UT1 and this boot system UCT time UT0 whether on the same day, if execution in step c2 then, otherwise execution in step c3;
C2. this current operation duration Δ ST=ST1-ST0;
C3. calculate current system UTC time UT1 and this boot system UCT time UT0 number of days different m, then this current operation duration Δ ST=(ST1-ST0)+(m*24 hour).
D. (the each extremely shutdown of starting shooting of top box of digital machine all can be set up a logout in memory module to time operation duration of working as that shuts down to inquire about this each top box of digital machine start of starting shooting of writing down in the memory module, make things convenient for statistics and later the transferring of working time to consult, for example: this is the n time start operation of top box of digital machine, just can find out top box of digital machine so in the record of memory module starts shooting for the first time to the operation duration T1 of shutdown, start for the second time is to the operation duration T2 of shutdown, and start is to the operation duration T3 of shutdown for the third time ... the n-1 time start is to the operation duration T (n-1) of shutdown);
E. the work as time operation duration of the each top box of digital machine start of this start to shutdown added up, system's accumulative total is moved duration (soon before this start before obtaining this start, adding up in each bar logout of storing in the memory module when time working time, describe with the example in the steps d: the work as time operation duration of the each top box of digital machine start of this (that is the n time) start to shutdown added up, and is exactly with T1, T2, T3 ... T (n-1) adds up);
F. system accumulative total before this start is moved duration and current operation duration Δ ST adds up, obtain current accumulative total and move duration T;
G. this boot system UCT time UT0 is converted to local zone time (for example form is certain year some time branch in such a month, and on such a day), show this local zone time, and show and this current operation duration Δ ST and current accumulative total move duration T (demonstration that moves duration T of this current operation duration Δ ST and current accumulative total can be formatted as consolidation form, days X hour X branch of X X month X, for example: moving duration T through the current accumulative total in format back is 0 year 10 hours 10 minutes January, promptly represents top box of digital machine to use by current actual motion 1 month 10 hours 10 minutes duration from start for the first time);
H. at this shutdown moment of set-top box power down moment register system ST2 and this shutdown UTC of system time UT2;
I. set up this logout of top box of digital machine in memory module, this logout comprises: this boot system UTC time UT0, this shutdown UTC of system time UT2, this top box of digital machine start are to time operation duration of working as that shuts down;
Wherein, this top box of digital machine start to the computing method when inferior operation duration of shutdown are:
I1. judge this shutdown UTC of system time UT2 and this boot system UCT time UT0 whether on the same day, if execution in step i2 then, otherwise execution in step i3;
I2. this top box of digital machine start is to time operation duration=ST2-ST0 that works as of shutdown;
I3. calculate this shutdown UTC of system time UT2 and this boot system UCT time UT0 number of days different n, then this top box of digital machine start to shutdown when time moving duration=(ST2-ST0)+(n*24 hour).
In step g, the demonstration that this boot system UCT time UT0 is converted to local zone time is (being to be a definite value this on time) of fixing, and move duration T for this current operation duration Δ ST and current accumulative total, what realize is dynamic demonstration, do correlation computations and influence other work for fear of top box of digital machine CPU is continual always, can be set among the step b every interval certain hour (such as 1 minute) register system current time ST1, current system UTC time UT1; So its operation end product be exactly on the display screen of top box of digital machine (such as 1 minute) change at regular intervals once this current operation duration Δ ST and current accumulative total are moved duration T (the computation process time of program run is Millisecond, can ignore).
All being based on the moment number of top box of digital machine CPU internal bus clock among the present invention for the calculating of operation duration, is in order to embody the set-top-box system actual run time more accurately.
Claims (9)
1. top box of digital machine operating time log system is characterized in that: comprise that initialization module, system time acquisition module, data analysis processing module, memory module, data derive module and data disaply moudle; Described initialization module, system time acquisition module, data analysis processing module are connected successively with memory module; Described data derive module, data disaply moudle all connects memory module; Initialization module is used for all signs of overall importance of initialization, the storage area of configuration and initialization memory module; The system time acquisition module is used to obtain the current UTC time of system, and the time that gets access to is carried out verification and is converted into local zone time; The data analysis processing module is used for system time format processing, operation duration calculation and accumulation process, and data are put in order by storage format; Memory module is stored the data of data analysis processing module output; Data derive module and are used for the data of memory module are derived; Data disaply moudle is used to show local zone time and adds up to move duration.
2. top box of digital machine operating time log method is characterized in that: may further comprise the steps:
A. top box of digital machine powers on, and this start of register system is ST0 and this boot system UCT time UT0 constantly;
B. register system current time ST1, current system UTC time UT1 in the top box of digital machine operational process;
C. constantly calculate this current operation duration Δ ST according to the current time ST1 of system and this start of system;
D. inquire about time operation duration of working as of the each top box of digital machine start of this start of writing down in the memory module to shutdown;
E. to each top box of digital machine start this start to the adding up when time operation duration of shutdown, obtain this start before system's accumulative total move duration;
F. system accumulative total before this start is moved duration and current operation duration Δ ST adds up, obtain current accumulative total and move duration T;
G. this boot system UCT time UT0 is converted to local zone time, shows this local zone time, and show that this current operation duration Δ ST and current accumulative total moves duration T;
H. at this shutdown moment of set-top box power down moment register system ST2 and this shutdown UTC of system time UT2;
I. in memory module, set up this logout of top box of digital machine.
3. top box of digital machine operating time log method as claimed in claim 2, it is characterized in that: in the step I, described this logout comprises: this boot system UTC time UT0, this shutdown UTC of system time UT2, this top box of digital machine start are to time operation duration of working as that shuts down.
4. top box of digital machine operating time log method as claimed in claim 3 is characterized in that: in the described step I, this top box of digital machine start to the computing method when inferior operation duration of shutdown are:
I1. judge this shutdown UTC of system time UT2 and this boot system UCT time UT0 whether on the same day, if execution in step i2 then, otherwise execution in step i3;
I2. this top box of digital machine start is to time operation duration=ST2-ST0 that works as of shutdown;
I3. calculate this shutdown UTC of system time UT2 and this boot system UCT time UT0 number of days different n, then this top box of digital machine start to shutdown when time moving duration=(ST2-ST0)+(n*24 hour).
5. top box of digital machine operating time log method as claimed in claim 2 is characterized in that: among the described step c, the computing method of this current operation duration Δ ST are:
C1. judge current system UTC time UT1 and this boot system UCT time UT0 whether on the same day, if execution in step c2 then, otherwise execution in step c3;
C2. this current operation duration Δ ST=ST1-ST0;
C3. calculate current system UTC time UT1 and this boot system UCT time UT0 number of days different m, then this current operation duration Δ ST=(ST1-ST0)+(m*24 hour).
6. top box of digital machine operating time log method as claimed in claim 2 is characterized in that: among the step b, and in the top box of digital machine operational process, register system current time ST1, current system UTC time UT1 at regular intervals.
7. top box of digital machine operating time log method as claimed in claim 6 is characterized in that: described certain hour is 1 minute.
8. top box of digital machine operating time log method as claimed in claim 2 is characterized in that: in the described step g, when the UTC time, UT0 was converted to local zone time with this boot system, according to the year-moon-Ri-time-minute form change.
9. top box of digital machine operating time log method as claimed in claim 2 is characterized in that: among the described step a, this start of system ST0 constantly is the moment of top box of digital machine CPU internal bus clock when system boot.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010524950 CN101963938B (en) | 2010-10-29 | 2010-10-29 | System and method for recording running time of digital set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010524950 CN101963938B (en) | 2010-10-29 | 2010-10-29 | System and method for recording running time of digital set top box |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101963938A true CN101963938A (en) | 2011-02-02 |
CN101963938B CN101963938B (en) | 2012-12-05 |
Family
ID=43516812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010524950 Active CN101963938B (en) | 2010-10-29 | 2010-10-29 | System and method for recording running time of digital set top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101963938B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082694A (en) * | 2011-03-04 | 2011-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Application evaluation method and application server |
CN103020721A (en) * | 2012-11-08 | 2013-04-03 | 中国电力科学研究院 | Method for evaluating real-time data processing efficiency of power grid dispatching automation system |
CN110659456A (en) * | 2019-09-09 | 2020-01-07 | 北京优炫软件股份有限公司 | Application software product use control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1416270A (en) * | 2002-09-29 | 2003-05-07 | 上海广电信息产业股份有限公司 | Device for making set-top box possess function of recording first time of use and recording method |
CN1832544A (en) * | 2006-01-21 | 2006-09-13 | 康佳集团股份有限公司 | Method for using time accumulation and sort recording of TV. receiver |
CN1972373A (en) * | 2006-12-11 | 2007-05-30 | 中山大学 | An optimized set-top-box opening device and method |
US7725028B1 (en) * | 2001-07-30 | 2010-05-25 | At&T Intellectual Property I, Lp | Method for flexible multiple broadcast service delivery over a WDM passive optical network based on RF block-conversion of RF service bands with wavelength bands |
-
2010
- 2010-10-29 CN CN 201010524950 patent/CN101963938B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7725028B1 (en) * | 2001-07-30 | 2010-05-25 | At&T Intellectual Property I, Lp | Method for flexible multiple broadcast service delivery over a WDM passive optical network based on RF block-conversion of RF service bands with wavelength bands |
CN1416270A (en) * | 2002-09-29 | 2003-05-07 | 上海广电信息产业股份有限公司 | Device for making set-top box possess function of recording first time of use and recording method |
CN1832544A (en) * | 2006-01-21 | 2006-09-13 | 康佳集团股份有限公司 | Method for using time accumulation and sort recording of TV. receiver |
CN1972373A (en) * | 2006-12-11 | 2007-05-30 | 中山大学 | An optimized set-top-box opening device and method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082694A (en) * | 2011-03-04 | 2011-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Application evaluation method and application server |
CN103020721A (en) * | 2012-11-08 | 2013-04-03 | 中国电力科学研究院 | Method for evaluating real-time data processing efficiency of power grid dispatching automation system |
CN103020721B (en) * | 2012-11-08 | 2016-01-20 | 中国电力科学研究院 | A kind of method assessing automation system for the power network dispatching real time data processing efficiency |
CN110659456A (en) * | 2019-09-09 | 2020-01-07 | 北京优炫软件股份有限公司 | Application software product use control method and device |
CN110659456B (en) * | 2019-09-09 | 2021-10-15 | 北京优炫软件股份有限公司 | Application software product use control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101963938B (en) | 2012-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100419709C (en) | System and method for counting use time | |
CN107577140B (en) | A kind of synchronised clock management module based on FPGA | |
CN102597990B (en) | Automatic correction and predictive maintenance system | |
CN102929735B (en) | A kind of method and apparatus of clock correction | |
CN101963938B (en) | System and method for recording running time of digital set top box | |
US11400382B2 (en) | Method and device of displaying a progress bar, computing device, and readable storage medium | |
CN101770557B (en) | Method for calculating service time of software in system | |
CN101853166A (en) | Application-oriented method and system for indicating use time of intelligent mobile phone battery | |
CN109410993A (en) | Storage system and its operating method | |
CN103136280A (en) | System and method of automatically searching hot point video | |
CN102006522A (en) | Advertisement scheduling method and system | |
CN114384787B (en) | Method and device for calibrating clock of electric energy meter | |
CN100574217C (en) | A kind of method and system of adding up the veneer reliability index | |
CN105389637A (en) | Effective workday construction method for monthly electricity consumption prediction model | |
CN107066361A (en) | The method and apparatus that a kind of utilization BMC disables corrupted internal memory | |
Hibino et al. | A synchronization mechanism with shared storage model for distributed manufacturing simulation systems | |
Nosier | Estimating the international tourism demand for Egypt:'an econometric approach' | |
US10680731B2 (en) | Methods and apparatus to facilitate local time-based digital audio measurement | |
CN101290621A (en) | Safe digital card memory search method | |
CN106647699A (en) | Nonvolatile memory-based motor hour recording method and apparatus | |
CN103137168A (en) | Code stream fixed point searching method, device and player | |
Yarberry | Lubridate: date and time processing | |
WO2021077588A1 (en) | Method and apparatus for controlling cold startup of receiver, and terminal device and medium | |
CN102650941A (en) | Image off-line programming system and method | |
CN109255579B (en) | Data index determination method and device |
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 |