CN100505854C - Recording method based on set top box - Google Patents

Recording method based on set top box Download PDF

Info

Publication number
CN100505854C
CN100505854C CNB2004100310659A CN200410031065A CN100505854C CN 100505854 C CN100505854 C CN 100505854C CN B2004100310659 A CNB2004100310659 A CN B2004100310659A CN 200410031065 A CN200410031065 A CN 200410031065A CN 100505854 C CN100505854 C CN 100505854C
Authority
CN
China
Prior art keywords
recording
task
time
top box
parameter
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 - Lifetime
Application number
CNB2004100310659A
Other languages
Chinese (zh)
Other versions
CN1684512A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2004100310659A priority Critical patent/CN100505854C/en
Publication of CN1684512A publication Critical patent/CN1684512A/en
Application granted granted Critical
Publication of CN100505854C publication Critical patent/CN100505854C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A record method based on a set-top-box includes the following flows: a parameter setting flow: preserving input recorded parameter including the recording start time and a recording task mark expressing if all the recording tasks have been finished, a recording flow: starting the set-top-box directly or starting it by the basic input-output system based on the recorded parameter and judging if the recording is carried out based on the parameter. This invention does not need to attach any hardware and realizes management to multiple recording tasks.

Description

Method for recording based on set-top box
Technical field
The present invention relates to set-top box, refer to a kind of method for recording especially based on set-top box.
Background technology
1996, the internet transmitted mobile video and becomes a reality, and makes television set add new function again, and the WebTV that the TV that nationality is had by huge numbers of families enters the Internet arises at the historic moment, and becomes the focus that manufacturer and Internet service providers compete.But no matter being Digital Television or WebTV, substantially all is simulated color television because user side uses, can't receiving digital signals, and therefore need a kind of receiving system to take on bridge between the two, set-top box that Here it is (STB, Set Top Box).Set-top box claims top setting box again, is the visual plant of receiving terminal after broadcast medium's realization digitlization, generally places on the television set.Early stage set-top box is meant that spectators control watching of some charge program by remote controller or button.In recent years, along with developing rapidly of digital broadcasting and internet, set-top box develops into collected explanations or commentaries compression, web browsing, deciphering charge and is controlled to be the digitlization terminal equipment of one alternately from single deciphering charging device.
On set-top box, realize the function of recording TV program in the prior art, two kinds of methods are generally arranged: one, do not shut down, wait for the arrival of recording time, record again.This method is neither energy-conservation; Also not environmental protection is because the high radiation of STB meeting brings very important negative effect for consumer individual and living environment.Its two, increase special hardware, this method has improved cost, finally causes the STB fancy price to allow ordinary consumer hang back.Therefore seek reliable, the cheap television recording scheme of a cover for present STB market in the ascendant, have great importance.
Summary of the invention
The invention provides a kind of method for recording, to solve the problem that power consumption height, tool radiation pollution, cost increase in the existing method for recording based on set-top box.
For addressing the above problem, a kind of method for recording of the present invention based on set-top box, it is characterized in that, this method comprises following flow process: parameter is provided with flow process, the parameter of recording of input is kept in the nonvolatile storage, and the interrupt service routine that operating system OS calls basic input output system by the mode of interrupting carries out the parameter setting; Wherein, recording parameter comprises recording starting time and is used to represent the recording task sign whether all recording tasks are finished; Record flow process, under the state of set-top box shutdown, read the described parameter of recording by basic input output system, determine whether the starter motor top box according to the described parameter of recording, operating system OS reads and judges whether to carry out and record according to recording parameter; Record when judging to need to carry out, carry out recording operation according to the parameter of recording that reads.
The described parameter of recording also comprises the task number of corresponding each recording task and records the concluding time.
Described parameter is provided with flow process and may further comprise the steps: set-top box receives records parameter; Preserve task number, corresponding recording starting time, record the concluding time to task list; Corresponding task list generates the interface parameters table, and this interface parameters comprises general assignment number, current task sequence number and current task state; First recording task as current task, is preserved corresponding recording starting time of institute and recording task sign to nonvolatile storage; Produce system break, enter the interrupt service routine of basic input output system.
The described flow process of recording may further comprise the steps:
The scan interface parameter list; Judge whether all recording tasks are finished; If finishing, all recording tasks remove the recording task sign, if do not finish then judge whether current recording task is finished, if finish then judge once more whether all recording tasks are finished; If current recording task is not finished, then judged whether recording the concluding time of this recording task, if the current time has crossed and has recorded the concluding time then the current task state is set for finishing, if do not surpass and record the concluding time then carry out and record, forward to and judge once more whether all recording tasks are finished; If all recording tasks are finished, then remove the recording task sign, if do not finish all recording tasks, judge then whether the current time has crossed recording the concluding time of remaining recording task; If the current time has surpassed recording the concluding time of remaining recording task, then remove the recording task sign, if the current time surpasses recording the concluding time of remaining recording task, then relatively the recording starting time of current time and remaining recording task judge whether be record during; If during recording, then corresponding recording task is carried out and recorded; During recording, then with recording starting time the recording task of the most close current time as current task and revise current task number;
Preserve amended interface parameters table; The recording starting time of preservation current task and recording task sign are to nonvolatile storage; Produce system break, enter the interrupt service routine of basic input output system; Shutdown.
Described system break refers to system management interrupt or system's control interruption.
Record flow process and also comprise the set-top box setting up procedure, further may further comprise the steps: basic input output system judges whether the button start, if the button start then enters operating system; If not, the recording starting time of then more current system time and current task judges whether that recording starting time has arrived; If recording starting time does not arrive, then shutdown is waited for; If recording starting time has arrived, then enter operating system, forward scan interface parameter list step to.
Described interrupt service routine is carried out following steps: read the recording task sign from nonvolatile storage; Judge whether the recording task sign is removed; If do not remove then recording starting time and the recording task sign of reading and saving in nonvolatile storage; Recording starting time and recording task sign are write in the continuous CMOS assigned address of interrupt control unit; Open timing automatic power up function and outage back Auto Power On function; If the recording task sign is removed, timeing closing Auto Power On function and outage back Auto Power On function.
The described timing automatic power up function of opening is that the real-time clock warning is interrupted and the enable bit of set real-time clock realizes by opening; Timeing closing Auto Power On function is that the real-time clock warning is interrupted or removing real-time clock enable bit realizes by closing, real-time clock report to the police to interrupt be by be kept at CMOS that interrupt control unit links to each other in recording starting time trigger, opening or closing outage back Auto Power On function is to recover the control realization by the AC power of IOC.
Compared with prior art, the present invention has the following advantages:
1) method for recording that the present invention is based on set-top box does not need additional firmware, realizes the management of a plurality of recording tasks at an easy rate, saves cost;
2) have only recording starting time to arrive the program recording of just starting shooting; Record finish after automatically shutdown, energy-saving and environmental protection;
3) operation is very simple, and the user only need customize the program that oneself is liked, and other thing is finished by STB.
Description of drawings
Fig. 1 is the set-top box fundamental block diagram.
Fig. 2 the present invention is based on the flow chart of recording flow process in the method for recording of set-top box.
Fig. 3 the present invention is based on the set-top box setting up procedure flow chart of recording in the method for recording of set-top box in the flow process.
Fig. 4 the present invention is based on interrupt service routine flow chart in the method for recording of set-top box.
Embodiment
Please refer to shown in Figure 1, general set-top box comprises: central processing unit (CPU) 10, Memory Controller Hub (generally adopting north bridge chips) 11, IOC (generally adopting South Bridge chip) 12, internal memory 13, disk 14, basic input output system (BIOS) 15, video card 16, codec 17, from the external world obtain the input interface 18 of video/audio data and will handle after the video/audio data send the output interface 19 of display (for example, TV) to.In addition, this set-top box also comprises interrupt control unit 120, can be integrated with Memory Controller Hub 11, IOC 12, and certainly independent the existence.
Usually, CMOS (originally mean complementary metal oxide semiconductors (CMOS), but refer to a read-write RAM chip on mainboard) is used to write down the concrete parameter about system configuration, for example the date of system, time, hard disk praameter, floppy drive situation or other concrete parameter can not lost even shut down yet.BIOS 15 is EPROM or the eeprom chips on the mainboard, the important information of system is housed and system's setting program (BIOS Setup program) of system parameters is set, and this system's setting program can be read and write the concrete parameter among the CMOS.Therefore, the system's setting program among the BIOS 15 is to finish the means that the CMOS parameter is provided with; CMOS both can be the place of depositing of BIOS initialization system parameter, was again the result of BIOS 15 initialization system parameters.In addition, has interrupt service routine among the BIOS 15.
The present invention is based on the method for recording of set-top box, this method comprises following flow process:
Parameter is provided with flow process, preserves the parameter of recording of input, and this is recorded parameter and comprises recording starting time and be used to represent the recording task sign whether all recording tasks are finished;
Record flow process, directly the starter motor top box or by basic input output system according to recording parameter starter motor top box, and judge whether to carry out and record according to recording parameter.
Recording parameter when recording task is a plurality of also comprises the task number of corresponding each recording task and records the concluding time.
Described parameter is provided with flow process and may further comprise the steps:
Set-top box receives records parameter;
Preserve task number, corresponding recording starting time, record the concluding time to task list, it is task number 1 to 7 that 7 recording tasks are arranged in the present embodiment, sees Table 1;
Corresponding task list generates the interface parameters table, and this interface parameters comprises general assignment number, current task sequence number and current task state, sees Table 2, and described task list and interface parameters table are kept in the disk 14;
First recording task as current task, is preserved corresponding recording starting time of institute and recording task sign to nonvolatile storage (NVRAM can not lose even close the tester in power-down state data yet), for example flash memory, disk, CMOS etc.;
Produce system break, enter the interrupt service routine of basic input output system 15.
Table 1 task list
Task number Recording starting time Record the concluding time
1 10:00 11:30
2 13:00 15:00
3 18:10 21:00
...
7 23:20 23:35
Table 2 interface parameters table
Figure C200410031065D00091
Please refer to shown in Figure 2ly, the described flow process of recording may further comprise the steps:
Step 20, scan interface parameter list (referring to table 2);
Step 21 judges whether all recording tasks are finished, and whether equal the current task sequence number by the general assignment number and judge;
If all recording tasks finish (be the current task sequence number equal the general assignment number be 7 and the current task state be to finish) then execution in step 34, remove the recording task sign;
If do not finish, for example the general assignment number is 7 to be not equal to current task sequence number 1 in the table 2, so do not finish all recording tasks as yet, then execution in step 22, judge whether current recording task is finished,, judge once more whether all recording tasks are finished if finish then execution in step 26;
If current recording task is not finished, then execution in step 23, judged whether recording the concluding time of this recording task, if the current time has crossed and has recorded the concluding time then execution in step 25 is provided with the current task state for finishing, if do not surpass and record the concluding time then execution in step 24 is carried out and recorded, forward execution in step 26 to and judge once more whether all recording tasks are finished;
If all recording tasks are finished, then execution in step 34 is removed the recording task sign, if do not finish all recording tasks, then execution in step 27 judges whether the current time has crossed recording the concluding time of remaining recording task;
If the current time has surpassed recording the concluding time of remaining recording task, then execution in step 34, remove the recording task sign, if the current time does not surpass recording the concluding time of remaining recording task, then execution in step 28, relatively the recording starting time of current time and remaining recording task judge whether be record during;
If during recording, then forward step 24 pair corresponding recording task execution to and record;
During recording, then execution in step 29, with recording starting time the recording task of the most close current time as current task and revise current task number;
Step 30 is preserved amended interface parameters table;
Step 31, the recording starting time of preservation current task and recording task sign are to nonvolatile storage (NVRAM);
Step 32 produces system break, enters the interrupt service routine of basic input output system;
Step 33, shutdown.
Described system break is meant system management interrupt (SMI) or system's control interruption (SCI), and this interruption has limit priority in system; " shutdown " specially refers to allow STB be in minimum power consumption state, do not disconnect the STB power supply.
Please refer to shown in Figure 3ly, record flow process and also comprise the set-top box setting up procedure, further may further comprise the steps:
Step 35,36 basic input output systems are searched key-press status, judge whether the button start, if the button start then enters operating system (step 39);
If not, then execution in step 37, and the recording starting time of more current system time (being the current time) and current task judges whether that recording starting time has arrived (basic input output system obtains from nonvolatile storage);
If recording starting time does not arrive, then execution in step 38, and shutdown waits for that this situation may be an outage back incoming call Auto Power On;
If recording starting time has arrived (this situation may be outage back incoming call Auto Power On or arrive the recording time Auto Power On), then enter operating system, forward sweep parameter table step 20 to.
Please refer to shown in Figure 4ly, described interrupt service routine is carried out following steps:
Step 51 reads the recording task sign from nonvolatile storage, judges whether the recording task sign is removed;
If do not remove, then execution in step 53, recording starting time and the recording task sign of reading and saving in nonvolatile storage;
Step 54, recording starting time and recording task sign are write in the CMOS assigned address that is connected with interrupt control unit, as, write CMOS 7FH the moon, write CMOS 7EH day, time writes CMOS05H, divides and to write CMOS 03H, second write CMOS 01H place, and recording task be set be masked as 0AAH;
Step 55, open timing automatic power up function and outage back Auto Power On function, after described outage back incoming call Auto Power On function is meant that the power supply of STB is cut off, no matter which kind of state STB is in before this, in case power up, STB are with Auto Power On, after the timing start-up function is meant shutdown, deenergization not, STB can put Auto Power On at preset time;
If the recording task sign is removed, promptly recording task is masked as 0, writes in the CMOS assigned address that is connected with interrupt control unit as CMOS 36H place;
Step 52, timeing closing Auto Power On function and outage back Auto Power On function.
In addition, opening the timing automatic power up function is that RTC (real-time clock) warning is interrupted and the enable bit of set RTC realizes by opening; Timeing closing Auto Power On function is that the real-time clock warning is interrupted or removing RTC enable bit realizes by closing, and the recording starting time that is kept at CMOS is used to trigger real-time clock warning interruption.Can recover (AC RESUME) control realization by the AC power of IOC and open or close outage back Auto Power On function, such as the IOC that adopts SIS company, can utilize automatic power control (the Auto Power Control of IOC, be called for short APC) realize that prior art repeats no more.
Below the method for recording that the present invention is based on set-top box is used and be described, when the user needs TV programme that timed recording oneself likes, as long as import the recording starting time and the concluding time of each program by remote control panel (perhaps other loaders).Set-top box receives user's input, can note all demands of user, and the parameter of recording of first recording task is placed on (as CMOS) on the nonvolatile storage, and produces a system break (as SMI).Central processing unit response SMI enters this interrupt service routine, opens timing start-up function and outage back incoming call Auto Power On function.After user's shutdown, STB will no longer need user's intervention, just can finish recording task automatically.During STB start next time, basic input output system is judged the situation of various starts, whether enters into OS with decision.In case enter into OS, give memory (as CMOS) according to recording the parameter that parameter and interface parameters table judge whether to begin recording task and transmit a recording task.So circulation, thus realize all recording tasks.
The user has set and has wanted recorded program; During waiting for that recording time arrives, sudden power; Recover incoming call then through after a while.STB meeting this moment Auto Power On, basic input output system can judge whether current system time (being the current time) has passed through the recording time of recording task, whether enters into OS with decision.In case enter into OS, also need to judge whether to have passed through having recorded the concluding time of current recording task, whether begin to carry out recording of current task with decision, perhaps transmit the new parameter of recording and give memory (as CMOS), and send SMI.Central processing unit response SMI also enters interrupt service routine, determines to open or close timing start-up function and outage back incoming call Auto Power On function again according to recording parameter.Shutdown after interrupt service routine is finished.
The present invention is based on the method for recording of set-top box, can manage a plurality of recording task timed recording TV programme, do not need to add extra hardware.The user only need set the recording starting time and the concluding time of program, and STB just can finish user's requirement automatically.

Claims (9)

1. the method for recording based on set-top box is characterized in that, this method comprises following flow process:
Parameter is provided with flow process, and the parameter of importing of recording is kept in the nonvolatile storage, and the interrupt service routine that operating system OS calls basic input output system by the mode of interrupting carries out the parameter setting; The described parameter of recording comprises recording starting time and is used to represent the recording task sign whether all recording tasks are finished;
Record flow process, under the state of set-top box shutdown, read the described parameter of recording by basic input output system, determine whether to start described set-top box according to the described parameter of recording, operating system OS reads and judges whether to carry out and record according to the described parameter of recording;
Record when judging to need to carry out, carry out recording operation according to the parameter of recording that reads.
2. the method for recording of set-top box as claimed in claim 1 is characterized in that, records parameter and also comprises the task number of corresponding each recording task and record the concluding time.
3. the method for recording of set-top box as claimed in claim 2 is characterized in that, described parameter is provided with flow process and may further comprise the steps:
Set-top box receives records parameter;
Preserve task number, corresponding recording starting time, record the concluding time to task list;
Corresponding task list generates the interface parameters table, and this interface parameters comprises general assignment number, current task sequence number and current task state;
First recording task as current task, is preserved corresponding recording starting time of institute and recording task sign to nonvolatile storage;
Produce system break, enter the interrupt service routine of basic input output system.
4. the method for recording of set-top box as claimed in claim 3 is characterized in that, the described flow process of recording may further comprise the steps:
The scan interface parameter list;
Judge whether all recording tasks are finished;
If finishing, all recording tasks remove the recording task sign, if do not finish then judge whether current recording task is finished, if finish then judge once more whether all recording tasks are finished;
If all recording tasks are finished, then remove the recording task sign, if do not finish all recording tasks, judge then whether the current time has crossed recording the concluding time of remaining recording task;
If the current time has surpassed recording the concluding time of remaining recording task, then remove the recording task sign, if the current time surpasses recording the concluding time of remaining recording task, then relatively the recording starting time of current time and remaining recording task judge whether be record during;
If during recording, then corresponding recording task is carried out and recorded;
During recording, then with recording starting time the recording task of the most close current time as current task and revise current task number;
Preserve amended interface parameters table;
The recording starting time of preservation current task and recording task sign are to nonvolatile storage;
Produce system break, enter the interrupt service routine of basic input output system;
Shutdown.
5. the method for recording of set-top box as claimed in claim 4 is characterized in that, described system break refers to system management interrupt or system's control interruption.
6. the method for recording of set-top box as claimed in claim 4 is characterized in that, records flow process and also comprises the set-top box setting up procedure, further may further comprise the steps:
Basic input output system judges whether the button start, if the button start then enters operating system;
If not, the recording starting time of then more current system time and current task judges whether that recording starting time has arrived;
If recording starting time does not arrive, then shutdown is waited for;
If recording starting time has arrived, then enter operating system, forward scan interface parameter list step to
7. as the method for recording of any described set-top box of claim 3-5, it is characterized in that described interrupt service routine is carried out following steps:
Read the recording task sign from nonvolatile storage;
Judge whether the recording task sign is removed;
If do not remove then recording starting time and the recording task sign of reading and saving in nonvolatile storage;
Recording starting time and recording task sign are write in the continuous CMOS assigned address of interrupt control unit;
Open timing automatic power up function and outage back Auto Power On function;
If the recording task sign is removed, timeing closing Auto Power On function and outage back Auto Power On function.
8. the method for recording of set-top box as claimed in claim 7 is characterized in that, opening the timing automatic power up function is that the real-time clock warning is interrupted and the enable bit of set real-time clock realizes by opening; Timeing closing Auto Power On function is by closing that real-time clock report to the police to interrupt or remove the real-time clock enable bit and realize, real-time clock report to the police interrupt being by be kept at CMOS that interrupt control unit links to each other in the recording starting time triggering.
9. the method for recording of set-top box as claimed in claim 7 is characterized in that, opening or closing outage back Auto Power On function is to recover control by the AC power of IOC to realize.
CNB2004100310659A 2004-04-12 2004-04-12 Recording method based on set top box Expired - Lifetime CN100505854C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100310659A CN100505854C (en) 2004-04-12 2004-04-12 Recording method based on set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100310659A CN100505854C (en) 2004-04-12 2004-04-12 Recording method based on set top box

Publications (2)

Publication Number Publication Date
CN1684512A CN1684512A (en) 2005-10-19
CN100505854C true CN100505854C (en) 2009-06-24

Family

ID=35263600

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100310659A Expired - Lifetime CN100505854C (en) 2004-04-12 2004-04-12 Recording method based on set top box

Country Status (1)

Country Link
CN (1) CN100505854C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100493166C (en) * 2006-07-14 2009-05-27 深圳创维-Rgb电子有限公司 Recording method of TV program
CN101364173B (en) * 2007-08-09 2010-09-29 华硕电脑股份有限公司 Method for recording image in electronic device
CN101340536B (en) * 2008-08-13 2011-04-20 中兴通讯股份有限公司 Mobile terminal and method for timed recording mobile phone television program
CN101662627B (en) * 2008-08-28 2012-08-08 华为技术有限公司 Additional data recording method and related device
GB2468923B (en) * 2009-03-27 2014-07-09 Sony Uk Ltd Television apparatus
WO2013086682A1 (en) * 2011-12-13 2013-06-20 Mediatek Singapore Pte. Ltd. Method for performing schedule control of a multichannel broadcasting program receiver, and associated apparatus
CN105162541A (en) * 2015-07-31 2015-12-16 上海斐讯数据通信技术有限公司 Frequency-modulated radio recording method and frequency-modulated radio recording system
JP6819042B2 (en) * 2016-01-14 2021-01-27 ソニー株式会社 Imaging control device, imaging control method, program
CN115396691A (en) * 2021-05-21 2022-11-25 北京金山云网络技术有限公司 Data stream processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN1684512A (en) 2005-10-19

Similar Documents

Publication Publication Date Title
CN100596189C (en) Portable terminal device
CN101615152B (en) Method and device for detecting hot plug fault of storage card
CN100505854C (en) Recording method based on set top box
WO2015176448A1 (en) Method and apparatus for intelligent screen splitting of terminal
CN106507180A (en) A kind of method of Video processing and terminal
CN103716535A (en) Method for switching photographing mode, and electronic device
CN103873921A (en) Seamless video play method and player
CN104503828A (en) Process management method and terminal
CN103618920A (en) Advertisement insertion method and player
CN102780933B (en) A kind of method and television set gathering user profile
CN106126335A (en) The Media Survey method of terminal unit and terminal unit
CN110032429A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN103702115A (en) Method and device for reporting TV fault information
CN102314403A (en) Device and method for identifying I2C (Inter-Integrated Circuit) bus signal by taking MCU (Micro Control Unit) as slave device
CN103746835A (en) Data downloading method and apparatus
CN101094247A (en) Intelligent screen protection method for multimedia interaction type terminals
CN104469466A (en) Television data management method based on linux system
CN103037153A (en) Monitoring method based on camera and electronic device with camera
CN104239780A (en) User terminal, security set selection method, and user terminal program
CN101399937A (en) Method for television menu automatically ordering
CN100518274C (en) Media record device and method
CN105611407A (en) Method and system for restoring television to factory settings on basis of user behavior analysis
CN103581723A (en) Method for information processing and electronic equipment
CN101123704A (en) An accompanied audio playing method for video terminal and a video terminal
CN110515736B (en) Method, device, terminal and storage medium for limiting background object

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20090624