Background technology
Along with the propelling day by day of global broadcast television digitization, Digital Television receiving card, digital TV set-top box and the digital TV integrated machine on the computer all becomes the different approaches of promoting Digital Television.And digital television broadcasting manufacturer provides increasing service, such as web page browsing, video request program, subscription and video recording, game on line or interactive TV etc.
Digital TV set-top box also will be from the transitional product of existing collocation simulated television, develops into from now on requisite digital product in the average family.In order to bring better service to the consumer, occurred PVR (Personal Video Recorder, personal video record) technology and digital TV set-top box in conjunction with and the PVR set-top box that produces has been brought digitized video recording playback and content interaction.PVR set-top box, its outstanding feature be with hard disk as storage medium, set up local magnanimity buffer zone and huge program storage storehouse, and utilize digital processing technology to realize control and management program.Therefore, digitizing and memory technology are the cores of PVR technology, can edit flexibly with recording playback program on this basis and control.The user can be by sending an instruction, as press " video recording key ", with in progress television program record to hard disk; Also can in needs, send other instruction,, be recorded in the program on the hard disk before appreciating as certain file of playback.
But in actual use, the user is recording a video and operation such as file playback all the time, and the overwhelming majority times only are to watch real-time TV programme.Usually, the PVR set-top box is in case no matter whether start have pair hard disk to carry out operation such as reading and writing, and hard disk remains on duty always, and there is following defective in this situation:
1, hard disk remains on duty always, will cause the hard disk consumed power too much, is unfavorable for energy-conservation and environmental protection;
2, hard disk remains on duty always, will cause reduce the serviceable life of hard disk, is unfavorable for protecting hard disk.
Summary of the invention
The objective of the invention is to propose a kind of method and system of monitoring hard disk dormancy in the digital television receiving apparatus, and a kind of digital television receiving apparatus with its hard disk sleep mode of monitoring, whether hard disk is operated the dormancy of controlling hard disk by basis, after PVR set-top box start in a single day in the solution prior art, hard disk will in running order always technical matters.
For solving technical matters of the present invention, the present invention discloses a kind of method of monitoring hard disk dormancy in the digital television receiving apparatus, comprise: by the current operand number of detection hard disk, and the numerical value of decision operation number of objects detects whether digital television receiving apparatus is current operates hard disk; Whether the decision operation number of objects is 0, if the operand number is 0, then is judged as and current hard disk do not operated, and the may command hard disk enters dormancy, otherwise, being judged as and current hard disk being operated, hard disk need continue to keep duty; And, if digital television receiving apparatus sends the instruction that hard disk is operated, then control the operand number of hard disk done and add 1 statistical operation, digital television receiving apparatus sends to be ended or the instruction of shut-down operation hard disk, otherwise control is done the operand number of hard disk and subtracted 1 statistical operation;
According to testing result to hard disk dormancy monitor: if current hard disk is not operated, then send steering order control hard disk and enter dormancy, if current hard disk is operated, then keep the duty of hard disk or send steering order hard disk is waken up to duty;
Describedly send the step that steering order control hard disk enters dormancy and comprise: be provided with and start a dormancy timer; When dormancy timer during, send the dormancy instruction to hard disk greater than default sleep threshold; Hard disk receives the dormancy instruction and enters dormancy.
More excellent, the described instruction that hard disk is operated comprises the instruction of the digital television program of recording a video, the instruction of playback video program and the instruction of playing video program for hard disk is carried out the instruction of read operation or write operation; And described to hard disk end or the instruction of shut-down operation for ending or stop hard disk being carried out the instruction of read operation or write operation.
In addition, the present invention also discloses a kind of system that monitors hard disk dormancy in the digital television receiving apparatus, comprise: dormancy monitor task module, be used for by the current operand number of detection hard disk, and the numerical value of decision operation number of objects detects whether digital television receiving apparatus is current operates hard disk; If the operand number is 0, then be judged as and current hard disk do not operated, otherwise, be judged as and current hard disk operated; And, if digital television receiving apparatus sends the instruction that hard disk is operated, then control the operand number of hard disk done and add 1 statistical operation, digital television receiving apparatus sends to be ended or the instruction of shut-down operation hard disk, otherwise control is done the operand number of hard disk and subtracted 1 statistical operation;
The dormancy control module, be connected with described dormancy monitor task module, be used for according to testing result to hard disk dormancy monitor: if current hard disk is not operated, then send steering order control hard disk and enter dormancy, if current hard disk is operated, then keep the duty of hard disk or send steering order hard disk is waken up to duty;
Described dormancy control module comprises and is used for being provided with and starting a dormancy timer, and when dormancy timer during greater than default sleep threshold, sends dormancy instruction control hard disk to hard disk and receives dormancy and instruct and enter the submodule of dormancy.
In addition, the present invention also discloses a kind of digital television receiving apparatus, comprise the hard disk that is used to store the video recording digital television program, and be used for detecting in real time current operation hard disk, and according to whether hard disk being operated the dormancy monitoring unit of monitoring the hard disk dormancy.
More excellent, described dormancy monitoring unit comprises: dormancy monitor task module, be used for by the current operand number of detection hard disk, and the numerical value of decision operation number of objects detects whether digital television receiving apparatus is current operates hard disk; If the operand number is 0, then be judged as and current hard disk do not operated, otherwise, be judged as and current hard disk operated; And, if digital television receiving apparatus sends the instruction that hard disk is operated, then control the operand number of hard disk done and add 1 statistical operation, digital television receiving apparatus sends to be ended or the instruction of shut-down operation hard disk, otherwise control is done the operand number of hard disk and subtracted 1 statistical operation;
The dormancy control module, be connected with described dormancy monitor task module, be used for according to testing result to hard disk dormancy monitor: if current hard disk is not operated, then send steering order control hard disk and enter dormancy, if current hard disk is operated, then keep the duty of hard disk or send steering order hard disk is waken up to duty;
Described dormancy control module comprises and is used for being provided with and starting a dormancy timer, and when dormancy timer during greater than default sleep threshold, sends dormancy instruction control hard disk to hard disk and receives dormancy and instruct and enter the submodule of dormancy.
Compared with prior art, the present invention has following beneficial effect:
Whether the present invention operates hard disk by real-time detection, and controls the dormancy of hard disk on this basis, realizing making hard disk enter dormancy when hard disk not being operated, and need operate hard disk the time, wakes hard disk up.Therefore, on the one hand, the present invention has reduced the consumption of hard disk electric energy, helps energy-conservation and environmental protection; On the other hand, the present invention has avoided digital television receiving apparatus to make hard disk in running order once starting shooting, thereby has helped improving the serviceable life of hard disk.
Embodiment
Whether the present invention operates hard disk by real-time detection digital television receiving apparatus, and control the dormancy of hard disk on this basis, realization is not when operating hard disk, make hard disk enter dormancy, and need operate hard disk the time, wake hard disk up, reach saves energy, prolong the hard disk purpose in serviceable life.
Please refer to shown in Figure 1ly, is the structural representation of a preferred embodiment of disclosed digital television receiving apparatus.
Digital television receiving apparatus of the present invention is a kind of PVR (Personal Video Recorder that adopted, personal video record) technology, the PVR set-top box of digital television techniques and the combination of hard disc recording technological perfectionism, comprising: the audio frequency and video load module 110 that is used to receive outside audio and video data streams; Be used for detecting in real time current operation to hard disk, and according to whether hard disk 150 being operated the dormancy monitoring unit 120 of monitoring the hard disk dormancy; Central processing unit (CPU) 130; Being used to receive the user utilizes input equipment such as telepilot digital television receiving apparatus to be produced user's input interface 140 of telecommand; Be used to store the hard disk 150 of video recording digital television program; Be used for the demoder 160 of audio and video data streams demultiplexing and the audio and video output interface 170 that is used for the Voice ﹠ Video data behind the demultiplexing are exported to Digital Television or other external devices.
The user can pass through telepilot, and receiving trap is sent operational order, as beginning performance recording, changing platform etc., after described user's input interface 140 receives operational orders, by system bus this operational order is sent to described central processing unit 130.And the audio and video data streams that described audio frequency and video input interface 110 obtains is transferred to described demoder 160 by system bus, by being transferred to described audio and video output interface 170 (this audio and video output interface 170 can be audio decoder and Video Decoder and coding output interface thereof) behind described demoder 160 demultiplexings; Also can output to described hard disk 150, this digital television program recording is got off, and the data in the described hard disk 150 can be transferred to described audio and video output interface 170 by system bus according to user's selection.
Wherein, described dormancy monitoring unit 120 comprises: be used to detect the current dormancy monitor task module 121 of whether hard disk being operated of digital television receiving apparatus; And dormancy control module 122, be connected with described dormancy monitor task module 121, be used for according to testing result to hard disk dormancy monitor: if current hard disk is not operated, then send steering order control hard disk and enter dormancy, if current hard disk is operated, then keep the duty of hard disk or send steering order hard disk is waken up to duty.
Whether described dormancy monitor task module 121 is monitored by the current operand number of detection hard disk and hard disk is operated: such as, if digital television receiving apparatus sends the instruction that hard disk is operated, then control the operand number of hard disk done and add 1 statistical operation; Digital television receiving apparatus sends to be ended or the instruction of shut-down operation hard disk, then controls the operand number of hard disk done to subtract 1 statistical operation.Therefore, described dormancy monitor task module 121 judges that current foundation of whether hard disk being operated is: if the operand number is 0, then is judged as and current hard disk do not operated, the may command hard disk enters dormancy; Otherwise, being judged as and current hard disk being operated, hard disk must not enter dormancy.
In addition, the described instruction that hard disk is operated comprises the instruction of the digital television program of recording a video, the instruction of playback video program and the instruction of playing video program for hard disk is carried out the instruction of read operation or write operation; And described to hard disk end or the instruction of shut-down operation for ending or stop hard disk being carried out the instruction of read operation or write operation.
Described dormancy control module 122 is according to the testing result of described dormancy monitor task module 121, as if current hard disk is not operated, then described dormancy control module 122 settings also start a dormancy timer, when dormancy timer during greater than default sleep threshold (be a time value of presetting according to actual needs), send the dormancy instruction to hard disk, hard disk receives the dormancy instruction and enters dormancy.As if current hard disk is operated, and hard disk has been in dormant state before, at this moment, owing to received the instruction of hard disk being done read or write, need wake hard disk up, the instruction that wakes hard disk up is sent in promptly described dormancy control module 122 controls, and hard disk wakes up to duty; If before hard disk in running order always, promptly the operand number of Zhi Qian hard disk is not 0, at this moment, the steering order that need not send dormancy or wake up hard disk, hard disk will be kept duty before.
Please refer to shown in Figure 2ly, is the schematic flow sheet of a specific embodiment of method for supervising of the present invention, in conjunction with Fig. 1, how the present invention is realized that the dormancy of monitoring hard disk in the digital television receiving apparatus does more detailed the elaboration.
The present invention includes following steps:
S210: monitor by detecting the current operand number of hard disk whether digital television receiving apparatus is current operates hard disk.
Step S220: whether the decision operation number of objects is 0, if the operand number is 0, then is judged as and current hard disk do not operated, and the may command hard disk enters dormancy, changes step S230 over to; Otherwise, being judged as and current hard disk being operated, hard disk need continue to keep duty, changes step S260 over to.
Step S230: be provided with and start a dormancy timer.
Step S240:, send the dormancy instruction to hard disk when dormancy timer during greater than default sleep threshold.Wherein, sleep threshold is a time value, can set according to actual needs fully, such as, it is 2 minutes that sleep threshold is set.
Step S250: hard disk receives the dormancy instruction and enters dormancy.
If digital television receiving apparatus receive the user send the video recording digital television program instruction, playback video program instruction and when playing the instruction of video program, in step S210 with the attended operation number of objects, promptly the operand number is done and added 1 processing, making current operand number is not 0, judges that in step S220 hard disk does not enter dormancy.In fact, there are two kinds of situations this moment: the one, hard disk has been in dormant state before, at this moment, owing to received the instruction of hard disk being done read or write, need wake hard disk up; The 2nd,, hard disk is in running order always before, promptly the operand number of Zhi Qian hard disk is not 0, at this moment, in step S210, the operand number done and add 1 and handle, after handling through the attended operation number of objects, the operand number still is not 0, therefore, the duty before hard disk continues to keep can not enter dormancy.
Step S260: whether hard disk is in dormant state before judging.The realization of this step is very simple in fact, if hard disk is in dormant state before, its operand number is 0 so, at this moment, owing to received the instruction of hard disk being done read or write, the operand number is done added 1 attended operation.Therefore, this step in fact only needs to judge whether current operand number is 1, if then hard disk is in dormant state before the expression, need be waken up, and changes step S270 over to; Otherwise hard disk is in running order before showing.
Step S270: the instruction that wakes hard disk up is sent in control, and hard disk wakes up to duty.
Even hard disk enters dormant state, do not influence the user watches digital television program by this digital television receiving apparatus function yet.
For example, after the user sent the telecommand that starts digital television program recording to digital television receiving apparatus, digital television receiving apparatus can check earlier whether current hard disk is in dormancy, if then send and wake instruction up hard disk is waken up; Then, open the file that to record, and the described operand number that digital television receiving apparatus is safeguarded done add 1 attended operation; Start recording task and carry out performance recording.
After the user sends the telecommand that stops digital television program recording to digital television receiving apparatus, digital television receiving apparatus will be closed video file, and the described operand number that digital television receiving apparatus is safeguarded done subtract 1 attended operation.
And for example, after the user sent the telecommand of video file playback to digital television receiving apparatus, digital television receiving apparatus can check earlier whether current hard disk is in dormancy, if then send and wake instruction up hard disk is waken up; Then, open the file of having recorded, and the described operand number that digital television receiving apparatus is safeguarded done add 1 attended operation; Start video file playback task and carry out file playback.
After the user sends the telecommand that stops the video file playback to digital television receiving apparatus, digital television receiving apparatus will be closed the video file of institute's playback, and the described operand number that digital television receiving apparatus is safeguarded done subtract 1 attended operation.
For another example, after the user sent the telecommand of disk format to digital television receiving apparatus, digital television receiving apparatus can check earlier whether current hard disk is in dormancy, if then send and wake instruction up hard disk is waken up; Then, digital television receiving apparatus is done the described operand number of being safeguarded and is added 1 attended operation; Secondly, call file system api hard disk is formatd.After the format task was finished, the operand number that digital television receiving apparatus is safeguarded was done and is subtracted 1 attended operation.
To sum up, whether the present invention operates hard disk by real-time detection, and controls the dormancy of hard disk on this basis, realizing making hard disk enter dormancy when hard disk not being operated, and need operate hard disk the time, wakes hard disk up.Therefore, on the one hand, the present invention has reduced the consumption of hard disk electric energy, helps energy-conservation and environmental protection; On the other hand, the present invention has avoided digital television receiving apparatus to make hard disk in running order once starting shooting, thereby helps improving the serviceable life of hard disk; On the one hand, the present invention has guaranteed that hard disk correctly enters dormant state, avoids producing mistake again.