CN102221871A - Portable electronic device and power saving method thereof - Google Patents

Portable electronic device and power saving method thereof Download PDF

Info

Publication number
CN102221871A
CN102221871A CN2010101518787A CN201010151878A CN102221871A CN 102221871 A CN102221871 A CN 102221871A CN 2010101518787 A CN2010101518787 A CN 2010101518787A CN 201010151878 A CN201010151878 A CN 201010151878A CN 102221871 A CN102221871 A CN 102221871A
Authority
CN
China
Prior art keywords
portable electronic
animation
thread
function
electronic devices
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.)
Pending
Application number
CN2010101518787A
Other languages
Chinese (zh)
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2010101518787A priority Critical patent/CN102221871A/en
Publication of CN102221871A publication Critical patent/CN102221871A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a portable electronic device and a power saving method thereof. The power saving method comprises the following steps of: firstly, playing a cartoon; secondly, establishing a thread; and finally, checking the playing state of the cartoon after a preset time interval is waited in the thread. The portable electronic device comprises a cartoon playing unit, a thread establishing unit and a playing state checking unit, wherein the cartoon playing unit is used for playing the cartoon; the thread establishing unit is used for establishing the thread; and the playing state checking unit is used for checking the playing state of the cartoon after the preset time interval is waited in the thread.

Description

Portable electronic devices and electricity saving method thereof
Technical field
The present invention relates to a kind of portable electronic devices and electricity saving method thereof, the electricity saving method that particularly a kind of portable electronic devices and animation thereof are play.
Background technology
The flash engine of traditional portable electronic devices is when playing animation, its flash engine is carried out function T imer () and is transmitted an instruction in each time interval, to carry out flash engine function d oplay (), use the state that obtains the up-to-date playing animation of flash engine.
Yet the above-mentioned time interval is very of short duration, and the instruction of function T imer () is sent in the execution sequence (queue) of master routine of flash engine, therefore significantly takies the execution resource of master routine, causes a large amount of electricity consumption of portable electronic devices consumption.Learn that through experiment the power consumption of traditional portable electronic devices broadcast flash animation can reach the height of 110mA.
In addition, when the power consumption of portable electronic devices surpassed 100mA, the operating system of portable electronic devices thought that portable electronic devices is busy and can't enter park mode (suspend mode) by mistake.
Summary of the invention
Technical matters to be solved by this invention provides a kind of portable electronic devices and electricity saving method thereof that has than low power consumption.
To achieve these goals, the invention provides a kind of electricity saving method of portable electronic devices, wherein, comprising:
Play an animation;
Set up a thread; And
In this thread, every wait one Preset Time is the broadcast state of this animation of back inspection at interval.
Above-mentioned electricity saving method, wherein, before setting up this step of this thread, this electricity saving method also comprises:
Load a function;
Wherein in this step of the broadcast state of checking this animation, also comprise:
Check the broadcast state of this animation according to this function.
Above-mentioned electricity saving method, wherein, this function is the built-in function of an operating system.
Above-mentioned electricity saving method, wherein, this function is WaitForSingleObject ().
Above-mentioned electricity saving method, wherein, this Preset Time is spaced apart 65 milliseconds.
In order to realize above-mentioned purpose better, the present invention also provides a kind of portable electronic devices, wherein, comprising:
One animation broadcast unit is in order to play an animation;
One thread is set up the unit, in order to set up a thread; And
One broadcast state inspection unit is used to the back at interval broadcast state of checking this animation of every wait one Preset Time in this thread.
Above-mentioned portable electronic devices, wherein, this broadcast state inspection unit is also in order to load a function and to check the broadcast state of this animation according to this function.
Above-mentioned portable electronic devices, wherein, this function is the built-in function of an operating system.
Above-mentioned portable electronic devices, wherein, this function is WaitForSingleObject ().
Above-mentioned portable electronic devices, wherein, this Preset Time is spaced apart 65ms.
The present invention relates to a kind of portable electronic devices and electricity saving method thereof, the broadcast state that portable electronic devices is set up a thread and an animation is checked in back, every Preset Time interval in this thread.Carry out in this thread owing to check the broadcast state of this animation,, can significantly reduce the execution resource of the master routine of flash engine so can not take the execution sequence of the master routine of flash engine.
A kind of electricity saving method of portable electronic devices is proposed according to an aspect of the present invention.Electricity saving method may further comprise the steps.Play an animation; Set up a thread (thread); And the broadcast state of this animation is checked in back, every wait one Preset Time interval in this thread.
According to a further aspect in the invention, a kind of portable electronic devices is proposed.Portable electronic devices comprises that an animation broadcast unit, a thread set up a unit and a broadcast state inspection unit.The animation broadcast unit is in order to play an animation.Thread is set up the unit in order to set up a thread.The broadcast state inspection unit is used to the broadcast state of back inspection this animation in every wait one Preset Time interval in this thread.
Technique effect of the present invention is: overcome the bigger defective of portable electronic devices power consumption in the prior art, solved the power saving problem of portable electronic devices effectively, saved the energy.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the functional block diagram of the portable electronic devices of preferred embodiment of the present invention;
Fig. 2 for the animation of the portable electronic devices of preferred embodiment of the present invention play the electricity saving method process flow diagram.
Wherein, Reference numeral
100 portable electronic devices
102 animation broadcast units
104 control modules
106 threads are set up the unit
108 broadcast state inspection units
110 flash animations
112 threads
114 application programs
116 functions
The S102-S106 step
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
Please refer to Fig. 1, it is the functional block diagram of the portable electronic devices of preferred embodiment of the present invention.Portable electronic devices 100 comprises animation broadcast unit 102 and control module 104.Animation broadcast unit 102 for example is the flash engine, and control module 104 can comprise that thread sets up unit 106 and broadcast state inspection unit 108.Portable electronic devices 100 for example be mobile phone (cell phone) or individual digital secretary (personaldigital assistant, PDA).
Animation broadcast unit 102 is in order to play flash animation 110.Behind control module 104 loading application programs 114, thread is set up unit 106 and is set up thread (thread) 112, and the broadcast state of flash animation 110 is checked in broadcast state inspection unit 108 back, every wait one Preset Time interval in thread 112.For example, broadcast state inspection unit 108 is carried out the function d oplay () of animation broadcast unit 102 in each back, Preset Time interval, to obtain the broadcast state of flash animation 110.
Above-mentioned Preset Time is about 65 milliseconds (ms) at interval, but this is not in order to restriction the present invention, and in other embodiments, this Preset Time can be other any number at interval.
Comprise the execution of a function 116 in the application program 114.When the operating system of portable electronic devices 100 adopted mobile window, function 116 can be the built-in function WaitForSingleObject () in the mobile window operating system.WaitForSingleObject () is performed by broadcast state inspection unit 108.
The function of WaitForSingleObject () can make program implementation be in waiting status in Preset Time interval.Say further, function according to WaitForSingleObject (), after broadcast state inspection unit 108 waits for that this Preset Time at interval, broadcast state inspection unit 108 jumps out of waiting status and continues the follow-up program code of executive utility 114, for example be the function d oplay () that carries out in the animation broadcast unit 102, to check the broadcast state of flash animation 110.Afterwards, broadcast state inspection unit 108 returns the execution of WaitForSingleObject (), promptly waits for the function d oplay () that goes again to carry out after this Preset Time at interval in the animation broadcast unit 102 again, and so circulation is gone down.
Special one what carry is that WaitForSingleObject () carries out in thread 112 and the execution sequence (queue) of the master routine of unoccupied animation broadcast unit 102.And, the every 65ms of WaitForSingleObject () just the escape waiting status remove to carry out animation broadcast unit 102 function d oplay () once, the execution of remaining time application program 114 all is in waiting status, so it is quite few to take the execution resource of application program 114, the power consumption in the time of therefore can significantly reducing application program 114 execution.
When the power consumption of portable electronic devices 100 was reduced to 100mA (milliampere), the operating system of portable electronic devices 100 judged that portable electronic devices 100 is in the duty of low power consuming, therefore enters park mode.Thus, reduced the power consumption of portable electronic devices 100 again, the power consumption of portable electronic devices 100 can significantly be reduced to below the 60mA.
Though the function of the broadcast state of the inspection flash animation 110 of present embodiment is that example explains with WaitForSingleObject (), so this is non-in order to restriction the present invention, in other embodiments, this function of the broadcast state of inspection flash animation 110 also can be other function that is similar to WaitForSingleObject () function.
Below explanation is according to the electricity saving method of the animation broadcast of portable electronic devices 100 of the present invention.Please refer to Fig. 2, its for the animation of the portable electronic devices of preferred embodiment of the present invention play the electricity saving method process flow diagram.
In step S102, animation broadcast unit 102 is play flash animation 110.
Then, in step S104, behind control module 104 loading application programs 114, thread is set up unit 106 and is set up thread 112.
In addition, set up before unit 106 sets up thread 112 at thread, the function of broadcast state inspection unit 108 first loading application programs 114 for example is WaitForSingleObject ().
Then, in step S106, broadcast state inspection unit 108 is according to the function of function WaitForSingleObject (), and every 65ms checks the broadcast state of flash animation 110.
Disclosed portable electronic devices of the above embodiment of the present invention and electricity saving method thereof, the newly-built thread of portable electronic devices and the back at interval broadcast state of checking animation of every Preset Time in this thread.Carry out in this thread owing to check the broadcast state of animation, so can not take the execution sequence of the master routine of flash engine, the resource in the time of can significantly reducing the application program execution.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1. the electricity saving method of a portable electronic devices is characterized in that, comprising:
Play an animation;
Set up a thread; And
In this thread, every wait one Preset Time is the broadcast state of this animation of back inspection at interval.
2. electricity saving method as claimed in claim 2 is characterized in that, before setting up this step of this thread, this electricity saving method also comprises:
Load a function;
Wherein in this step of the broadcast state of checking this animation, also comprise:
Check the broadcast state of this animation according to this function.
3. electricity saving method as claimed in claim 2 is characterized in that, this function is the built-in function of an operating system.
4. electricity saving method as claimed in claim 2 is characterized in that, this function is WaitForSingleObject ().
5. electricity saving method as claimed in claim 1 is characterized in that, this Preset Time is spaced apart 65 milliseconds.
6. a portable electronic devices is characterized in that, comprising:
One animation broadcast unit is in order to play an animation;
One thread is set up the unit, in order to set up a thread; And
One broadcast state inspection unit is used to the back at interval broadcast state of checking this animation of every wait one Preset Time in this thread.
7. portable electronic devices as claimed in claim 6 is characterized in that, this broadcast state inspection unit is also in order to load a function and to check the broadcast state of this animation according to this function.
8. portable electronic devices as claimed in claim 7 is characterized in that, this function is the built-in function of an operating system.
9. portable electronic devices as claimed in claim 7 is characterized in that, this function is WaitForSingleObject ().
10. portable electronic devices as claimed in claim 6 is characterized in that this Preset Time is spaced apart 65ms.
CN2010101518787A 2010-04-19 2010-04-19 Portable electronic device and power saving method thereof Pending CN102221871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101518787A CN102221871A (en) 2010-04-19 2010-04-19 Portable electronic device and power saving method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101518787A CN102221871A (en) 2010-04-19 2010-04-19 Portable electronic device and power saving method thereof

Publications (1)

Publication Number Publication Date
CN102221871A true CN102221871A (en) 2011-10-19

Family

ID=44778439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101518787A Pending CN102221871A (en) 2010-04-19 2010-04-19 Portable electronic device and power saving method thereof

Country Status (1)

Country Link
CN (1) CN102221871A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166452A (en) * 2013-05-20 2014-11-26 深圳市快播科技有限公司 Electricity saving method and system for video playing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725197A (en) * 2004-07-24 2006-01-25 鸿富锦精密工业(深圳)有限公司 Audio-visual broadcast information display system and method
CN101098429A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Power source management method and device for video play of palm-type electric product
CN101150698A (en) * 2007-09-04 2008-03-26 浙江大学 Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device
TWI315817B (en) * 2006-04-28 2009-10-11 Hon Hai Prec Ind Co Ltd The portable electronic apparatus with power saving and implementing method thereof
CN101668206A (en) * 2009-09-15 2010-03-10 武汉大学 Multichannel video decoding display method and system based on H.264

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725197A (en) * 2004-07-24 2006-01-25 鸿富锦精密工业(深圳)有限公司 Audio-visual broadcast information display system and method
TWI315817B (en) * 2006-04-28 2009-10-11 Hon Hai Prec Ind Co Ltd The portable electronic apparatus with power saving and implementing method thereof
CN101098429A (en) * 2006-06-30 2008-01-02 佛山市顺德区顺达电脑厂有限公司 Power source management method and device for video play of palm-type electric product
CN101150698A (en) * 2007-09-04 2008-03-26 浙江大学 Dynamic voltage adjustment and frequency modulation energy-saving method applicable to MP4 palm video playing device
CN101668206A (en) * 2009-09-15 2010-03-10 武汉大学 Multichannel video decoding display method and system based on H.264

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166452A (en) * 2013-05-20 2014-11-26 深圳市快播科技有限公司 Electricity saving method and system for video playing device

Similar Documents

Publication Publication Date Title
CN104486510A (en) Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal
EP2749988B1 (en) Method and device for application program operation, mobile terminal
CN102917095A (en) Method and device for testing terminal based on Android
CN102123084B (en) Resource scheduling method and system in cloud computing operating system
CN103365691B (en) SCA component charger and loading method based on distributed storage
CN102789409A (en) Embedded system automation module test method on basis of data communication monitoring
CN106878395A (en) A kind of charging electric vehicle monitoring system based on mobile terminal
CN103684495A (en) Circuit arrangement and method for low power mode management
CN102761946A (en) Mobile communication terminal and power supply management method thereof
CN105242917A (en) Method and apparatus for Android device to use WiFi module compatibly
WO2009001957A1 (en) Wireless communication terminal device and communication system catching control method
CN104345861A (en) Data processing method and device as well as electronic equipment
CN105744034A (en) Screen brightness output method and device
CN106200866B (en) A kind of application freezing method and mobile terminal
CN111148052B (en) State determination method, system, medium, and electronic device
CN107506286A (en) CPU and memory block automatically upper inserting method and system
CN1668130A (en) Mobile data terminal and communication method therefor
CN102221871A (en) Portable electronic device and power saving method thereof
CN105279077A (en) Method and device for automated testing
CN104063316A (en) Application testing method and device
CN103324526A (en) Method for calling sensor
CN103544108A (en) System and method for testing embedded software integration strength
CN105188077A (en) Communication module test method and system
CN109756960A (en) Timer setting method, apparatus and Internet of things system
CN109951364B (en) Charging control management system and method for electric vehicle charging pile

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111019