A kind of energy-saving control method for video code flow playing terminal equipment
Technical field
The present invention relates to a kind of energy-saving control method, more particularly, to a kind of section for video code flow playing terminal equipment
Can control method.
Background technology
The emergence of nowadays huge user group, capacity increasing video and " integration of three networks " new business,
A large amount of deployment video flowings are needed to perform in a radio or TV programme terminal unit (such as Set Top Box etc.).But the backwardness and shortage due to energy-conserving control technology, its
The mainstream product in the market not using energy-conserving control technology or using " pseudo- standby " technology, causes video flowing to perform in a radio or TV programme terminal and sets substantially
The power consumption of standby (such as Set Top Box etc.) is far longer than the expection of people.
Power consumption cannot effective control, have following 4 points of adverse effects:
1st, the uncontrollable increasing for meaning power consumption of power consumption, nowadays lack of energy is extremely urgent, environmental problem exception
Seriously, it is global trend and national fundamental state policy to reduce waste of energy.
2nd, power consumption rises the rising along with heat, and for thousands of user group, it is shadow that heat is too high
The key of equipment life is rung, is also a kind of potential safety hazard.
3rd, power consumption is also a kind of loss, is advocating energy-saving and environment friendly, and today of enforcement step price, power consumption energetically
Control is undoubtedly a kind of big problem that is badly in need of and solving.
4th, the radiation of the bigger generation of power consumption is also bigger, although is not enough to produce harm to human body, but can also send out in the course of time
Life such as is had a dizzy spell at the untoward reaction.
By taking set-top box device as an example, it is assumed that a Set Top Box 0.023 degree of electricity of average standby two hours daily consumptions, domestic 2008
Year DTV STB recoverable amount 26,000,000,2.18 hundred million kilowatts of the standby power consumption of a year have exceeded a medium-sized firepower and have sent out
Power plant's generating total amount of a year.If completing DTV overall transformation, domestic cable set top box recoverable amount will be more than 1.52 hundred million
Platform (does not include the demand of second machine of family, and the appearance of the new highly energy-consuming Intelligent set top box of more than 10 watts of power consumption), 1 year
Standby power consumption will be up to 12.76 hundred million kilowatts.
Currently, the efficiency grade of China's DTV receiver product (such as Set Top Box) Energy Efficiency Standard is classified into 3 grades, 1 grade
It is desired value, the product for reaching 1 grade of requirement is advanced, high efficiency products, does not have in the market or only minority product can reach
Arrive;2 grades of Energy efficiency evaluation values for product, the product for reaching Energy efficiency evaluation value is also advanced, efficient product, in the market
Ratio is also few;3 grades then for product energy efficiency markets, less than the index product be obsolete product, it should forbid its produce
And sale.
Content of the invention
The purpose of the present invention is exactly to provide a kind of good energy-conserving effect, life to overcome the defect of above-mentioned prior art presence
Produce and the low-cost energy-saving control method for video code flow playing terminal equipment is installed.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of energy-saving control method for video code flow playing terminal equipment, described video flowing are performed in a radio or TV programme in terminal unit
It is provided with processor, Energy Saving Control processing module and the memorizer for supporting that dynamic power management and dynamic voltage frequency are adjusted, institute
The Energy Saving Control processing module that states is included for monitoring the monitoring list of current processor working condition and user's QoS service index
Unit, for obtaining the control unit of processor working state and the adjustment unit for adjusting processor working state, described
Energy-saving control method is comprised the following steps:
1) monitoring means user in real QoS service indication information and current processor work state information, and by this
A little information are sent to control unit;
2) control unit is obtained and active user's QoS service indication information phase according to active user's QoS service indication information
Corresponding processor working state information, and to adjustment unit transmission processe device working state control signal;
3) adjustment unit is adjusted to processor working state according to the control signal for receiving.
Described step 2) in acquisition corresponding with active user's QoS service indication information processor working state letter
The method of breath includes mapping table method or direct computing method,
Described mapping table method is specially:Enabling capabilities according to processor set up different user QoS service index
With the mapping table of processor working state, and mapping table is prestored in memory, control unit is according to memorizer
In mapping table obtain corresponding with the active user's QoS service indication information processor working state information;
Described direct computing method is specially:Active user's QoS service indication information is sent to processor by control unit,
Processor calculates the processor corresponding with user's QoS service indication information according to active user's QoS service indication information
Work state information.
The described concrete steps bag for setting up different user QoS service index and the mapping table of processor working state
Include:
201) enabling capabilities that evaluation and test dynamic power management and dynamic voltage frequency are adjusted, obtain multiple groups of processors work shape
State;
202) the corresponding relation sample between test different user QoS service index and processor working state;
203) mapping table between user's QoS service index and processor working state generated, and by corresponding relation
Table is preserved in memory.
Described processor working state includes the operating frequency size and running voltage size of processor.
The corresponding relation of described mapping table is the corresponding relatively low processor of relatively low user's QoS service index
Operating frequency and/or running voltage.
Described monitoring means obtain the mode of user's QoS service indication information to be included:The passive point broadcasting user that obtains is to point
The selection information and timing of broadcasting quality Q oS service indication actively capture the QoS service indication information of user's order video stream.
Described memorizer includes EROM or PROM.
Described processor includes central processing unit, digital signal processor or micro-control unit.
Described terminal unit includes DTV STB, hand-hold electronic equipments, panel computer, computer or mobile phone.
Compared with prior art, the present invention has advantages below:
1. small volume strong security, does not disturb existing business platform and user function to select, overall using plug-in pattern, and
And also the existing space of terminal unit and encapsulation requirement can be performed in a radio or TV programme according to video flowing, it is respectively mounted pure software mode, software and hardware mould
Formula, equipment monnolithic case are constant, are user-friendly to.
2. brand new technical, energy-saving effect are good, and low price is installed in production, and can video flowing to perform in a radio or TV programme terminal unit whole
Body life time, can significantly reduce the use cost of user.In general, solving the energy in this kind of embedded system of such as Set Top Box
During consumption problem, can realize etc. that many levels are carried out from operating system, compiling, architecture and electric power.But due to processor CPU
Energy consumption often accounts for the 50% of whole computer system energy consumption, is saved so reducing processor energy consumption and having become polycaryon processor in real time
The focus that can be designed, especially embedded system device step into many nuclear ages, and CPU energy consumption problems are more crucial.
Description of the drawings
Fig. 1 is the schematic flow sheet of method in the embodiment of the present invention 1;
Fig. 2 is the schematic flow sheet of method in the embodiment of the present invention 2.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment 1
As shown in figure 1, a kind of energy-saving control method for video code flow playing terminal equipment, the video codes of the present embodiment
Stream broadcasting terminal unit is DTV STB, is provided with support dynamic power management in the DTV STB
(Dynamic Power Management, referred to as " DPM ") and dynamic voltage frequency adjust (Dynamic Voltage and
Frequency Scaling, referred to as " DVFS ") processor, Energy Saving Control processing module and memorizer, described Energy Saving Control
Processing module is included for monitoring current processor working condition and user QoS (Quality of Service) service indication
Monitoring means, for obtaining the control unit of processor working state and the adjustment unit for adjusting processor working state.
Memorizer includes EROM (Eraseable Read Only Memory) or PROM (programmable read-only
Memory), data are not lost because of power-off.
During DTV STB use, Energy Saving Control, described energy-conservation are carried out to which by the inventive method
Control method is comprised the following steps:
In step S01, monitoring means user in real QoS service indication information and current processor working condition are believed
Breath, and control unit is transmitted these information to, the mode of described acquisition user's QoS service indication information includes:Passively obtain
Invocation point broadcasting user is taken to the QoS that the selection information of program request quality Q oS service indication actively captures user's order video stream with timing
Business indication information;
In step S02, control unit is obtained using mapping table method according to active user's QoS service indication information
The processor working state information corresponding with active user's QoS service indication information, and to adjustment unit transmission processe device work
Make state control signal;
In step S03, adjustment unit is adjusted to processor working state according to the control signal for receiving, can be with
It is that operating frequency is constant, individually adjustment running voltage, or running voltage are constant, individually adjusts operating frequency, it is also possible to
It is while adjusting running voltage and operating frequency.
Step 2 in the present embodiment) corresponding with active user's QoS service indication information using the acquisition of mapping table method
Processor working state information.DTV STB install first with system install link, first according to processor
Enabling capabilities set up the mapping table of different user QoS service index and processor working state, and mapping table is pre-
Deposit in memory, described to set up different user QoS service index concrete with the mapping table of processor working state
Step includes:
1) enabling capabilities that evaluation and test dynamic power management and dynamic voltage frequency are adjusted, obtain multiple groups of processors work shape
State, described processor working state include the operating frequency size and running voltage size of processor;
2) the corresponding relation sample between test different user QoS service index and processor working state;
3) generate the mapping table between user's QoS service index and processor working state, mapping table right
Should be related to for the corresponding relatively low processor working frequency of relatively low user's QoS service index and/or running voltage, high use
The corresponding high operating frequency of family QoS service index and/or running voltage.
It will be understood to those skilled in the art that in the present invention type of processor can be diversified, for example in
Central processor (Central Processing Unit, referred to as " CPU "), digital signal processor (Digital Signal
Processor, referred to as " DSP "), micro-control unit (Micro Controller Unit, referred to as " MCU ") etc..
Embodiment 2
As shown in Fig. 2 the video flowing of the present embodiment performs in a radio or TV programme terminal unit for computer, the energy-saving control method of the present embodiment
Comprise the following steps:
In step s 201, monitoring means real-time monitoring, acquisition user's QoS service indication information;
In step S202, control unit obtains corresponding processor work according to the user's QoS service indication information for obtaining
Make state, the corresponding relatively low operating frequency of wherein relatively low user's QoS service index and/or running voltage;
In step S203, adjustment unit adjusts the work of processor according to acquired operating frequency and/or running voltage
Working frequency and/or running voltage.
The method for obtaining corresponding processor working state in the present embodiment step S202 can be mapping table method or straight
Calculating method is connect, described mapping table method is specially:Enabling capabilities according to processor set up different user QoS service index
With the mapping table of processor working state, and mapping table is prestored in memory, control unit is according to memorizer
In mapping table obtain corresponding with the active user's QoS service indication information processor working state information;Described
Direct computing method is specially;Active user's QoS service indication information is sent to processor by control unit, and processor is according to current
User's QoS service indication information calculates the processor working state information corresponding with user's QoS service indication information.
When the operating frequency and/or running voltage of processor is adjusted, can be that operating frequency is constant, individually adjust work
Voltage, or running voltage are constant, individually adjustment operating frequency, or simultaneously adjustment running voltage and work frequency
Rate.According to operating frequency and/or running voltage that user's QoS service index adjusts processor, it is that relatively low QoS settings are relatively low
Operating frequency and/or running voltage, can greatly save the electric energy of the terminal unit for playing video code flow.
Embodiment 3
With reference to shown in Fig. 2, the present embodiment is substantially the same manner as Example 2, and difference is, the video flowing of the present embodiment is drilled
Terminal unit is broadcast for hand-hold electronic equipments, panel computer or mobile phone.
It should be noted that each unit that mentions in each embodiment of the invention is all logical block, and physically, one
Logical block can be a part for a physical location, or a physical location, can also be multiple physical locations
Combination realize that these logical blocks Physical realizations of itself is not most important, and these logical blocks are realized
The combination of function is only the key of the technical problem for solving proposed by the invention.Additionally, for the innovative part for projecting the present invention,
The unit less close with technical problem relation proposed by the invention is solved is not drawn by the respective embodiments described above of the present invention
Enter, this is not intended that the said equipment embodiment does not have other units.
Although by referring to some preferred embodiments of the present invention, the present invention is shown and described, this
The those of ordinary skill in field should be understood that can to which, various changes can be made in the form and details, without departing from the present invention
Spirit and scope.