This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2012-009288, filed on Jan. 19, 2012; the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a control device, a control method, a computer program product, and an electronic device.
In the past, various techniques have been proposed to reduce the power consumption of an electronic device. For example, there is a technique in which data in a main memory or a processor is saved in a nonvolatile storage device when there is no input from the outside within a predetermined period of time, and power supply to the main memory or the processor is stopped so as to let an electronic device go into a sleep mode (low power mode). In the technique, when an input (for example, a wakeup event signal of exiting the sleep condition such as a touch operation of a panel or a mouse) is received from the outside in the sleep mode, the data saved in the nonvolatile storage device is returned into the main memory or the processor, and the electronic device is returned to a state before the electronic device goes into the sleep conditions as to restart a process.
In the traditional technique, when exiting the sleep mode, the electronic device goes into the same state as the state before the electronic device goes into the sleep mode, and thus an equivalent of power before the electronic device goes into the sleep mode is necessary. However, depending on states of a power source, the equivalent of the power before the electronic device goes into the sleep mode may not be obtained.
According to an embodiment, a power control device includes a storage unit, a monitor, a determining unit, and a controller. The storage device stores therein a look-up table, which includes relationship between needed power consumptions and start-up conditions of an electronic device including a plurality of modules. The start-up condition of the electronic device is determined from the needed power consumption in the look-up table and specifies a power on/off status of the modules included in the electronic device. The monitor monitors a voltage or available power supplied by a power source when the electronic device is activated. The determining unit determines a start-up condition corresponding to the needed power consumption, which corresponds to the voltage or available power monitored by the monitor, with reference to the look-up table. The controller sets a start-up condition of the electronic device to start up the electronic device in the start-up condition determined by the determining unit.
Hereinafter, various embodiments will be described in detail with reference to the accompanying drawings.
The processor 10 reads data (for example, an OS or application software of the electronic device 100) from the main memory 20 and executes the programs, thereby controlling the entire operation of the electronic device 100. The processor 10 includes a central processing unit (CPU) and registers (not illustrated). In addition, a cache memory (not illustrated), which stores a command or data that is frequent to be accessed by the processor 10, is provided between the processor 10 and the main memory 20. In the embodiment, the cache memory includes a first cache storing frequently used data and a secondary cache memory storing an overflow of data from the first cache memory. That is, the cache memory of the embodiment consists of two levels. The first cache memory is placed closer to the processor 10 in relation to the secondary cache memory.
The nonvolatile storage 30 consists of nonvolatile memories. The nonvolatile storage 30 can hold internal data even when power supply to the nonvolatile storage 30 is stopped.
The input device 40 is a device used for various inputs, and may be configured as, for example, a mouse or a keyboard.
The sleep control unit 50 changes a state of the electronic device 100 to a sleep mode when a predetermined condition is satisfied. Herein, the predetermined condition indicates that an input through the input device 40 is not performed for a predetermined period of time. However, the predetermined condition is not limited thereto, and may be arbitrarily set.
In the embodiment, when an input through the input device 40 is not performed for a predetermined period of time, the sleep control unit 50 saves data stored in the main memory 20 or the register inside the processor 10 into the nonvolatile storage 30, and then controls the power source 70 such that power supply to the main memory 20 or the processor 10 is stopped. In this way, a state of the electronic device 100, which has a predetermined limited number of modules to be supplied with power, goes into the sleep mode. It may be considered that the sleep mode is a state in which the electronic device 100 is temporarily stopped. Here, in the embodiment, power supply to the power control device 60 continues even in the sleep mode. When a process of changing a state to the sleep mode is completed, the sleep control unit 50 informs the power control device 60 that changing of a state to the sleep mode is completed. In this way, the power control device 60 monitors that a state of the electronic device 100 has gone into to the sleep mode.
The power control device 60 controls the electronic device 100 such that an operation is performed according to a state of the power source 70. Detailed description of the power control device 60 will be made below. The function of communication device 66 is an exchange of data with an external device.
The power source 70 supplies power to each module included in the electronic device 100. For example, the power source 70 includes a power generation module such as a solar cell, and a battery that saves power generated by the power generation module.
The storage unit 61 stores therein a power consumption table (a look-up table) that includes relationship between needed power consumptions and start-up conditions of the electronic device 100. The start-up condition of the electronic device 100 indicates a condition in which the electronic device 100 starts up, and may include a condition in which an operation is stopped (for example, the sleep mode).
Returning back to
The control unit 64 sets a start-up condition to start up the electronic device 100 in the star-up condition determined by the determining unit 63. For example, when the start-up condition determined by the determining unit 63 is the first condition, the control unit 64 controls the power source 70 such that power is supplied to the entire modules included in the electronic device 100, and sets an operating clock of the processor 10 to a normal value. In addition, when the start-up condition determined by the determining unit 63 is the second condition, the control unit 64 controls the power source 70 such that power supply to the cache is stopped, and power is supplied to each module other than the cache, and sets an operating clock of the processor 10 to a smaller value than the normal value.
Specifically, the power control device 60 (the control unit 64) commands the power source 70 to supply a voltage value to the processor 10 and the main memory 20 depending on a type of condition (start-up condition stored in the power consumption table) determined by the determining unit 63, and commands the power source 70 to supply a voltage value to the communication device 66 so that the communication device 66 operates. Further, the power control device 60 reports an operating clock when activating the processor 10, and an operating clock of a clock supplied to the main memory 20. Herein, depending on conditions, power that is necessary to use the communication device 66 is not enough. In this case, the power control device 60 requests the power source 70 not to supply power to the communication device 66.
The receiving unit 65 receives a wakeup event signal of cancelling the sleep mode. In the embodiment, when a user operates the input device 40 (including a touch operation), the input device 40 sends a signal corresponding to the operation to the power control device 60. In the embodiment, the signal from the input device 40 is the wakeup event signal. However, the embodiment is not limited thereto, and the wakeup event signal may be arbitrarily set.
When a signal is received from the input device 40 in the sleep mode, the power control device 60 changes a condition of the electronic device 100 from the sleep mode to a start up condition corresponding to available power supplied by the power source 70 at the point in time (this process is referred to as “change process”).
As illustrated in
Specifically, according to the determined condition, the power control device 60 (control unit 64) informs the power source 70 of a voltage supplied to the processor 10 and the main memory 20, and commands an operating clock when the processor 10 is activated, and a frequency of a clock supplied to the main memory 20. For example, in the start-up condition determined in step S3, when power enough to perform communication using the communication device 66 is present, the power source 70 is commanded to supply power to the communication device 66 so as to operate the communication device 66. On the other hand, when power that is necessary to communicate using the communication device 66 is not enough, the power source 70 is commanded not to supply power to the communication device 66. That is, in this case, when returning from the sleep mode, the electronic device 100 is activated without communicating with an external device.
As described in the foregoing, when a wakeup event signal is received in the sleep mode, the power control device 60 according to the embodiment controls the electronic device 100 to operate in a start-up condition feasible with available power supplied by the power source 70 at a point in time when the wakeup event signal is received. Accordingly, it is possible to operate the electronic device 100 within a range of available energy (power). That is, according to the embodiment, after exiting the sleep mode, the electronic device 100 may be set to an appropriate operating state (condition).
As an modification, when the electronic device 100 is operating (or in an operable state), the power control device 60 may monitor available power supplied by the power source 70 at predetermined intervals, and set the start-up condition of the electronic device 100 to start up the electronic device 100 in the start-up condition feasible with the monitored power. In this case, the control by the power control device 60 is referred to as a condition control, and
As illustrated in
Specifically, according to the determined condition, the power control device 60 (control unit 64) informs the power source 70 of a voltage supplied to the processor 10 and the main memory 20, and commands an operating clock when the processor 10 is activated, and a frequency of a clock supplied to the main memory 20. For example, in the start-up condition determined in step S11, when power enough to perform communication using the communication device 66 is present, the power source 70 is commanded to supply power to the communication device 66 so as to operate the communication device 66. On the other hand, when power that is necessary to communicate using the communication device 66 is not enough, the power source 70 is commanded not to supply power to the communication device 66. The power control device 60 repeatedly performs the above-described condition control at predetermined intervals.
In addition, for example, the processor 10 may perform a checking process of checking a current condition of the electronic device 100 at predetermined intervals. In this way, the processor 10 may not inquire the power control device 60 about the current condition of the electronic device 100. In addition, for example, the power control device 60 informs the processor 10 of a changed condition each time the electronic device 100 is changed to a determined condition. In this case, the processor 10 may perform the above-described checking process.
The above-described power control device 60 has a central processing unit (CPU), a ROM, a RAM, and a communication I/F device. A function of each of the above-described units (the monitor 62, the determining unit 63, the control unit 64, and the receiving unit 65) is implemented by a program, which is stored in a ROM. In addition, the invention is not limited thereto, and at least some of the functions of the respective units (the monitor 62, the determining unit 63, the control unit 64, and the receiving unit 65) may be implemented by a separate circuit (hardware).
Further, in the above-described embodiment, the power control device 60 and the processor 10 are constructed on separate chips. However, the invention is not limited thereto. For example, the above-described embodiment is implemented by using a system on chip (SoC) which includes the power control device 60 and the processor 10.
In addition, a program executed by the above-described power control device 60 may be stored in a computer connected to a network such as the Internet, and be provided by downloading the program via the network. In addition, a program executed by the above-described power control device 60 may be provided or distributed via a network such as the Internet. In addition, a program executed by the power control device 60 according to the embodiments and modifications may be incorporated into a ROM in advance, and be provided.
The above-described embodiment may be applied, for example, when an available power of a battery is decreasing due to a self-discharge, or when an equivalent of power before the state change to the sleep mode may not be generated since a solar cell is being used. In particular, since a power generation of the solar cell varies in response to an external environment, it may be more likely to fail to obtain an equivalent of an available power before the state goes into the sleep mode. The above-described embodiment is effective in such a case.
In addition, for example, in a case where an available power (available power supplied by the power source 70) which is present at a point in time when an electronic device is to be returned from the sleep mode is less than power before the electronic device goes into the sleep mode, and the available power is exhausted when a returning process of returning the electronic device 100 from the sleep mode is ended or when the returning process is being performed, the electronic device 100 may be in an inoperative state. The above-described embodiment is also effective in such a case.
Further, a type or the number of conditions stored in the power consumption table may be arbitrarily set. For example, the sleep mode and the power may be associated with each other in the power consumption table. In this configuration, when the power monitored by the monitor 62 indicates a sufficiently small value in step S2 of
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2012-009288 | Jan 2012 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5483656 | Oprescu | Jan 1996 | A |
5563469 | Takamura et al. | Oct 1996 | A |
6609208 | Farkas et al. | Aug 2003 | B1 |
7058480 | Kawanishi et al. | Jun 2006 | B1 |
7581130 | Carroll et al. | Aug 2009 | B2 |
8369721 | Yamada | Feb 2013 | B2 |
8433931 | Burg | Apr 2013 | B2 |
20020024332 | Gardner | Feb 2002 | A1 |
20040158878 | Ratnakar | Aug 2004 | A1 |
20040215986 | Shakkarwar | Oct 2004 | A1 |
20050048960 | Yamauchi et al. | Mar 2005 | A1 |
20060082222 | Pincu | Apr 2006 | A1 |
20070159235 | Fukui et al. | Jul 2007 | A1 |
20080307240 | Dahan et al. | Dec 2008 | A1 |
20090193276 | Shetty et al. | Jul 2009 | A1 |
20100210322 | Kim | Aug 2010 | A1 |
20110016336 | Mori | Jan 2011 | A1 |
20110040418 | Kalen | Feb 2011 | A1 |
20110154007 | Juvonen | Jun 2011 | A1 |
20110231026 | Yaoyama | Sep 2011 | A1 |
20120023351 | Wakrat | Jan 2012 | A1 |
20120117399 | Chan | May 2012 | A1 |
20120246356 | Shibata et al. | Sep 2012 | A1 |
20120246390 | Kanai et al. | Sep 2012 | A1 |
20120246458 | Jain | Sep 2012 | A1 |
20120246501 | Haruki et al. | Sep 2012 | A1 |
20120246503 | Fujisaki et al. | Sep 2012 | A1 |
20120330473 | Meredith et al. | Dec 2012 | A1 |
20130073812 | Kanai et al. | Mar 2013 | A1 |
20130080812 | Shirota et al. | Mar 2013 | A1 |
20130080813 | Tarui et al. | Mar 2013 | A1 |
20130091372 | Kimura et al. | Apr 2013 | A1 |
20130191670 | Haruki et al. | Jul 2013 | A1 |
20130254773 | Kimura et al. | Sep 2013 | A1 |
20130268781 | Kanai et al. | Oct 2013 | A1 |
20130270911 | Baba | Oct 2013 | A1 |
20130318372 | Osborn | Nov 2013 | A1 |
20130339770 | Tu | Dec 2013 | A1 |
Number | Date | Country |
---|---|---|
101720120 | Jun 2010 | CN |
1 139 206 | Oct 2001 | EP |
2001-273055 | Oct 2001 | JP |
2002-062955 | Feb 2002 | JP |
2006-48630 | Feb 2006 | JP |
2011-013836 | Jan 2011 | JP |
2011-034381 | Feb 2011 | JP |
2011-227820 | Nov 2011 | JP |
Entry |
---|
Office Action of Notification of Reason(s) for Refusal for Japanese Patent Application No. 2012-009288 Dated Nov. 4, 2014, 5 pages. |
Japanese Office Action for Japanese Patent Application No. 2015-122100 mailed on Aug. 4, 2015. |
Office Action for Chinese Patent Application No. 201310016337.7 Dated Feb. 27, 2015, 19 pages. |
Office Action of Notice of Rejection for Japanese Patent Application No. 2012-009288 Dated Apr. 7, 2015, 11 pages. |
“Daemon (software)”, online. Retrieved from “Wikipedia, the free encyclopedia” from Nov. 18, 2011. Accessed at: https://web.archive.org/web/20111118201619/http://ja.wikipedia.org/wiki/%E3%83%87%E3%83%BC%E3%83%A2%E3%83%B3 %28%E3%82 %BD%E3%83%95% E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%29. |
Japanese Office Action for Japanese Patent Application No. 2015-122100 mailed on Jan. 5, 2016. |
Chinese Office Action for Chinese Patent Application No. 201310016337.7 mailed on Nov. 3, 2015. |
Number | Date | Country | |
---|---|---|---|
20130219203 A1 | Aug 2013 | US |