Summary of the invention
The objective of the invention is to propose the method for recording of a kind of recordable TV set and TV programme, solve the awkward problem of recordable TV set in the prior art.
For this reason, recordable TV set of the present invention comprises the recordable TV set module, it is characterized in that, also comprises system clock module, time management device, record task list and record task manager, and described system clock module is used for providing temporal information to system; Record task list is used for store user preset record task; The time management device is used for comparison task time started and current system time, and the record task manager is used for carrying out the relevant action of record task of storing with record task list during near system time in the record task time started.
Preferably,
Described record task manager comprises that also the task brush selects device and video recording event handler, described task brush selects device to be used to judge the type of task and brushes the task that be the same day task time of selecting, found the task from the immediate task of system time from the same day then, be made as activate a task; Described video recording event handler be used to monitor the recordable TV set module various state feedback and with the user's of television set interaction.
Described record task list comprises one or more in the following parameter, is provided with for the user: input type,
Subscription channel, reservation type, day settings, time started, concluding time, whether close screen, video recording finishes the action that carry out the back.
The present invention also comprises a kind of method for recording of TV programme, it is characterized in that the input that comprises the steps: A, accept the user record task list being provided with; B, record task task manager are found out from immediate task of current time in system, and it is made as current task; C, carry out the relevant action of record task of being stored during near system time with record task list (3) when the record task time started.
Preferably,
Described at least one that is provided with in the following parameter that record task list setting is comprised: input type, subscription channel, reservation type, day settings, time started, concluding time, whether close screen, video recording finishes the action that carry out the back.
The action that the record task that described and record task list are stored is relevant comprises: C1, at first predetermined instant of task before the time started, the record task manager can judge whether system is in holding state, if television set is to be in holding state, the record task list manager can activate television set and make its start; C2, task second predetermined instant before the time started, the various piece of recordable TV set all starts, judges whether current input is consistent with task setting with channel, and is consistent with task if not then switching to; C3, when the task time started then, the task manager calling task is carried out the function part, if state is all correctly then begin video recording; C4, the 3rd predetermined instant after beginning to record a video, if the user sets task parameters " screen " for closing, then system turns off screen automatically.
The action that the record task that described and record task list are stored is relevant also comprises: C5, in closing the screen video process, press the remote controller any key, and television set can reopen screen automatically, and sound also recovers normal.
The action that the record task that described and record task list are stored is relevant also comprises: C6, with the user interaction of television set, comprise: C6-1, according to user's input and according to the different conditions feedback of recordable TV set module, the video recording event handler different OSD menus can occur and show with the prompting user, informs the state of current video recording system; C6-2, come the operation of process user by the video recording event handler, and mask can influence the button of record task.
Among the step C1,, be to be in mute state when making television boot-strap if system activates from holding state.
Apparatus and method of the present invention such as same clever assistant, help the user to record down them and want the TV programme seen, need not the user take a lot of trouble to go or stay the many playing programs time of meaning, do not need user user at the midnight record TV programme of from dream, making a return journey yet, more help the user when record TV programme midnight, not influence user's rest by various intelligence operations, and the valuable electricity charge have been saved greatly, record task list has brought huge convenience for the user's of recordable television set use, is a very hommization, intelligentized new function.
Embodiment
Component software part of the present invention and hardware components.Be specifically described below in conjunction with accompanying drawing.
Fig. 1 is a recordable TV set block diagram of the present invention.Among the figure, system's real-time clock chip 1 and recordable TV set module 5 are hardware components;Time management device 2,record task list 3 andrecord task manager 4 are realized by software that all whereinrecord task manager 4 comprises that also the task brush selectsdevice 41 and 42 two submodules of video recording event handler.
The present invention utilizes at present very ripe professional real-time timepiece chip 1 to provide to comprise second, divides, hour, week, year, month, day equal time information, and can guarantee not the losing of temporal information, accurately for a long time, one of support as necessary hardware with this.
The present invention is based on the recordable TV set module of integrating intelevision set 2, this module can be to video and the audio signal Real Time Compression coding and the storage of input, and this is two of the necessary hardware support.
The TV set software part, be intended to solve the software that recordable TV set cooperates, set up a record task table function, make television set have the ability of the execution user operation commands of plan, memory, intelligence, can allow the user carry out by record task list: recording functions such as instantaneous recording, subscription and video recording, backstage video recording have great convenience for the user.
Fig. 2 shows the interface when record task list is provided with each record task.Record task list provides following task parameters to be provided with for the user:
1) input type.Can select TV or AV, the program of selecting TV to indicate to record a video is a TV programme, and the program of selecting AV to indicate to record a video is the video input, is primarily aimed at the set-top box users of watching Digital Television and designs.
1) subscription channel.Refer to that the user wants the channel of the program seen.
2) reservation type.Comprise every day, weekly, once, " every day " represents that this task needs all carry out every day, at the TV programme of playing every day; " weekly " cycle of expression task is a week, at several programs that will play weekly; " once " expression task is only carried out once, can play once program at resembling film one class certain time afterwards.This three types have covered all types that the user may run into program basically, can satisfy user's needs fully.
3) day settings.According to the user type that the user selects, need respectively to set: " every day " need not set the date; " weekly " need what day is set; " once " need to set month and date.
4) time started.Set the time started that record task is carried out.
5) concluding time.Set the time that record task finishes.
6) screen.Whether television set turns off screen when being set in subscription and video recording, if select to close, television set then can not opened the screen power supply in video recording so.
7) video recording finishes.Be set in the action of record task end back television set, the user can set video recording back television set, and whether standby is with electrical energy saving.
In addition, as shown in Figure 3, record task list can also increase newly arbitrarily, revises, delete, and the user can operate record task list at any time as required.
Record task list is set by the user beginning, after the user operates/revises a task at every turn, gives task manager and handles, and refreshes all tasks in the task list, finds out from immediate that task of current time in system, and it is made as current task.The record task manager is in charge of all tasks in the task list.The record task manager can be recycled in the major cycle of systems soft ware, in case current task and system time mate, that record task manager will call the execution function of record task, judge whether whether various states correctly (connect hard disk, whether system is in the state of can recording, whether signal is arranged, whether be in nearly 20 states such as input that to record), if state correctly then carry out the action of current task, finish whole task, calculate next then from the immediate task of current system time, if not then wait for that the user imports, enter next circulation if having then activate it.
More specifically: after the user configured task, task will videoed task manager and handle, and calculates a nearest task.In preceding two minutes (system start-up needs certain hour) of task time started, the record task manager can judge whether system is in holding state (user need not allow television set be in open state for the record task of reservation always), if television set is to be in holding state, the record task manager can activate television set and make its start (system boot process need tens seconds), if system activates from holding state, be to be in mute state (television set is standby before the task start in the time of television boot-strap, mean that then the television set startup can not have influence on the user and have a rest, because this task start state means it is to be in midnight probably, the user is having a rest, so quiet particularly important), the state when other states all are normal the startup; Last minute of task time started, the various piece of recordable TV set all starts, judges whether current input is consistent with task setting with channel, and is consistent with task if not then switching to; When the task time started then, the task manager calling task is carried out the function part, if state is all correctly then begin video recording; Begin to record a video after ten seconds, if the user sets task parameters " screen " for closing, then system turns off screen automatically, can save 80% electric power (is example with LCD) with this, and so far whole video recording formally begins.In closing the screen video process, press the remote controller any key, television set can reopen screen (watching video state to make things convenient for the user) automatically, and sound also recovers normally, certainly the user checked also can continue behind the state by press remote controller by television set come back to close shield, quiet video state.Whole process flow diagram as shown in Figure 4.
More specifically, the record task manager is made up of two parts, and one of them also is a core, is exactly that the task brush selects device (this example realizes for software).As shown in Figure 5, its judges the type of task: every day, weekly, once, brush is selected the task that be the same day task time earlier, finds the task from the immediate task of system time from the same day then, is made as activate a task.
About to the judgement of time and the arrangement of structure type.Because one day time can add 59 minutes by 24 hours and represent, therefore can come information memory time with the variable of a WORD type, for example 22:10 can be expressed as 2210, and 1:45 can be expressed as 145, can store with this form temporal information.All temporal informations comprise system time, video recording time started, video recording concluding time, switching on and shutting down time etc. in the software, all represent with this form, so the comparison between the time variable all are easy to realize with judging from software.For information such as the moon, day, year, weeks then is to realize with the types of variables of enumerating.The information of each task is represented by a structure, this structure comprises: information such as type of task, temporal information, subscription channel number, and wherein temporal information is divided the information of two-layer meaning, and ground floor is concrete temporal information, as 1145, promptly be 11: 45 task time; The second layer is a date and time information, refers to the date on the same day of task." every day ", the task of type did not have date and time information, because it needs all carry out every day; " weekly " as long as task of type promptly has concrete temporal information, and date and time information is arranged again, and " what day " date and time information only comprise, because by judging that what day just can know the date of task execution; " which date " date and time information of the task of " once " type be.
Emphasize a bit: the system's real-time clock chip, provide to MCU by system's I2C bus and to have comprised " second, minute, hour, day, month, year, week " these temporal informations, systems soft ware will read the temporal information that real-time timepiece chip provides every a second, and system time is refreshed.
We judge that the core of record task is exactly see this record task the most approaching from system time, according to arrangement to the structure variable of record task, same this judged the two-layer judgement of branch, at first judge " my god " other degree of closeness of level, be " concrete time " other degree of closeness of level then.The judgement of first level:, directly can enter second level and judge if " every day " type illustrates that then this task sky all needs to carry out; If " week " type, the week of directly judging task whether with the week data consistent of system time, if then enter the second layer; The task of " once " type judges earlier then whether the task date is consistent with the date of system time, if consistent then judge whether the month of task is consistent with the month of system time, judges if then enter second level.The judgement of second level: mainly be judgement to time variable, the time variable of record task and system time are compared, if the record task time less than system time the task that illustrates passed through the time, mission failure, if task time greater than system time the task that illustrates also be not performed, will preserve the time of the task of current judgement in this time.After having judged all record task, find out that of record task time started minimum from the time variable of preserve again, that is exactly from the immediate record task of system time (this is the most approaching to be comprise date, month, hour, minute the most approaching).We have just obtained the record task that override need be carried out thus.
The record task manager one other component event handler of recording a video exactly.This a part of program mainly is to be responsible for the various state feedback of monitoring video module and user's input of television set, different conditions feedback according to the recordable TV set module, the video recording event handler different OSD menus can occur and show with the prompting user, inform the state of current video recording system, in addition when television set is in the video recording pattern, to come the operation of process user by the video recording event handler, for example: when closing screen, can open screen and sound by the remote controller any key; Mask can influence the button etc. of record task.
After the record task that has obtained carrying out at first, the time management device of television software system (is managed various time variables, in major cycle, constantly be performed) continuous comparison task time started of meeting and current system time, in case the record task time started, the record task manager will be carried out above-mentioned a series of actions near system time (two minutes).
Had after the record task manager, recordable TV set has just had powerful software support, make the user can enjoy instantaneous recording, the backstage video recording, recording functions such as subscription and video recording, give an example, if want to see football match in morning, the user only need set the time that ball match is broadcasted before sleep, and the time that finishes, shutdown sleep then, the recordable TV set that has the record task manager will help the user to record down excellent ball match automatically, do not influence simultaneously user's rest again, and the electricity charge that can saves valuable, the user just can see oneself setting recorded program in second day, therefore have after the record task manager, recordable TV set is more further strengthened, makes more hommization of TV, intellectuality is for the user provides better services.
Because the present invention has realized the function of a record task list by software, the user can freely add, revise, delete the task in the TV task list, these tasks can help the user to plan the plan of TV reception, remember the reproduction time of user's interest TV programme, and correct time carry out correct action make the user record under this program.Record task list has been arranged, when running into a TV guide, the task of user in immediately just can a newly-built record task list, set the parameter such as time started, concluding time of channel, the playing programs of program, record task list will switch to default channel at setting-up time automatically and finish this record task.
Record task list has great intelligence and human oriented design, configuring after the record task user can standby, it can start television set and recording function module automatically before program begins, quietly begin video recording, and can be in video recording screen of TV set and sound be turned off automatically and do not influence the user and have a rest, recorded the later record task list of program and will close all modules and enter holding state; It also supports the backstage video recording, allows the user when watching program one program two be recorded a video.
Thus, record task list such as same clever assistant, help the user to record down them and want the TV programme seen, need not the user take a lot of trouble to go or stay the many playing programs time of meaning, do not need user user at the midnight record TV programme of from dream, making a return journey yet, more help the user when record TV programme midnight, not influence user's rest by various intelligence operations, and the valuable electricity charge have been saved greatly, record task list has brought huge convenience for the user's of recordable television set use, is a very hommization, intelligentized new function.