Method for reducing power consumption of electronic device, and apparatus
11604506 · 2023-03-14
Assignee
Inventors
Cpc classification
H04W52/0274
ELECTRICITY
H04W52/0225
ELECTRICITY
G06F1/3287
PHYSICS
Y02D30/70
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H04W52/0293
ELECTRICITY
G06F1/3212
PHYSICS
G06F1/266
PHYSICS
H04W52/0251
ELECTRICITY
H04W52/0254
ELECTRICITY
H04W52/0261
ELECTRICITY
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
G06F1/3287
PHYSICS
Abstract
An electronic device supporting power consumption reduction can be operated in a power saving mode or in an active mode, and the electronic device includes a first processor and a second processor. The first processor is configured to be powered off when the electronic device is in the power saving mode. The second processor is configured to, when the electronic device is in the power saving mode, control peripheral hardware associated with a local bus of the first processor. The peripheral hardware includes at least one of the following: a display unit, an input unit, a BLUETOOTH unit, and a sensing unit.
Claims
1. An electronic device, comprising: a first processor configured to be powered off in response to the electronic device being in a power saving mode; and a second processor coupled to the first processor and configured to control peripheral hardware associated with a local bus in response to the electronic device being in the power saving mode, wherein the peripheral hardware comprises at least one of a display, an input, a Bluetooth® receiver, or a sensor, and wherein the electronic device supports a function of displaying step count information in the power saving mode, wherein, in response to the electronic device being in the power saving mode and being charged using a power adapter, the electronic device restarts and the first processor is further configured to: power on and switch the electronic device to an active mode; and prohibit a user from causing the electronic device to enter the power saving mode by prohibiting selection of a displayed power saving mode option in response to the electronic device being in the active mode and being charged using the power adapter.
2. The electronic device of claim 1, wherein the electronic device further comprises a mobile industry processor interface (MIPI), and wherein the first processor is further configured to control, using the MIPI, the display in response to the electronic device being in the active mode.
3. The electronic device according to claim 1, wherein the electronic device further comprises a serial peripheral interface (SPI), and wherein the second processor is further configured to control, using the SPI, the display in response to the electronic device being in the power saving mode.
4. The electronic device of claim 1, wherein the electronic device further comprises the display, and wherein the displayed power saving mode option is displayed on the display.
5. The electronic device of claim 1, wherein the second processor is further configured to enable a backlight of the display in response to the electronic device being in the power saving mode and in response to detecting a wrist raising action of the user.
6. The electronic device of claim 1, wherein the second processor is further configured to control a battery electricity quantity of the electronic device in response to the battery electricity quantity of the electronic device reaching a battery electricity quantity threshold by controlling the peripheral hardware.
7. The electronic device of claim 4, wherein prohibiting selection of the displayed power saving mode option comprises disabling the displayed power saving mode option.
8. The electronic device of claim 4, wherein the second processor is further configured to restart the electronic device in response to detecting a charging event in the power saving mode.
9. The electronic device of claim 1, wherein the electronic device is a wearable device.
10. The electronic device of claim 7, wherein disabling the displayed power saving mode option comprises graying out the displayed power saving mode option on the display.
11. The electronic device of claim 1, wherein the first processor is further configured to obtain step count information from the second processor in response to the electronic device changing from the power saving mode to the active mode.
12. The electronic device of claim 1, wherein the second processor is further configured to control, in response to a temperature of the electronic device reaching a specified temperature threshold, the temperature by controlling the peripheral hardware.
13. The electronic device of claim 1, wherein the second processor is further configured to enable the power saving mode in response to receiving a setting instruction from the user.
14. A method performed by an electronic device, the method comprising: operating the electronic device in an active mode; switching a mode of the electronic device from the active mode to a power saving mode in response to detecting a first preset event, wherein a first processor of the electronic device is powered off while the electronic device is in the power saving mode; controlling, by a second processor of the electronic device while the electronic device is in the power saving mode, peripheral hardware associated with a local bus, wherein the peripheral hardware comprises at least one of a display, an input, a Bluetooth® receiver, or a sensor, and wherein the electronic device supports a function of displaying step count information in the power saving mode; in response to the electronic device being in the power saving mode and being charged using a power adapter: restarting the electronic device; powering on, by the first processor, the electronic device; and switching the electronic device to the active mode; prohibiting, by the first processor, a user from causing the electronic device to enter the power saving mode by prohibiting selection of a displayed power saving mode option in response to the electronic device being in the active mode and being charged using the power adapter.
15. The method of claim 14, further comprising enabling a backlight of the display in response to the electronic device operating in the power saving mode and detecting a wrist raising action of the user.
16. The method of claim 14, wherein the electronic device is a wearable device.
17. The method of claim 14, further comprising restarting the electronic device after the electronic device enters the power saving mode and in response to the electronic device being charged using the power adapter.
18. The method of claim 14, wherein the first preset event comprises at least one of the following: a battery electricity quantity of the electronic device reaching a battery electricity quantity threshold; a temperature of the electronic device reaching a specified temperature threshold; or receiving a setting instruction from the user to enable the power saving mode.
19. The method of claim 14, further comprising obtaining, by the second processor, step count information in response to the electronic device changing from the power saving state to an active state.
20. The method of claim 14, further comprising controlling, using a serial peripheral interface (SPI) of the electronic device, the display in response to the electronic device being in the power saving mode.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) To describe the technical solutions in the embodiments of this application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of this application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DESCRIPTION OF EMBODIMENTS
(12) The following clearly and completely describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Apparently, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of this application without creative efforts shall fall within the protection scope of this application.
(13) In descriptions of this application, it should be understood that terms “first”, “second”, “third”, and the like are merely used for a description purpose, cannot be understood as representing a primary/secondary relationship, and therefore, cannot be understood as a limitation on this application.
(14) An electronic device described in this specification may include a mobile phone, a smartphone, a laptop computer, a digital broadcast terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a GPS navigation system, and a wearable device (such as a smartwatch or a smart band). However, it is obvious for a person skilled in the art that, in addition to a portable terminal and the wearable device, a configuration according to the embodiments of this application may be further applied to a fixed terminal, such as a digital TV and a desktop computer.
(15)
(16) In a specific embodiment, the electronic device 100 may include an input element 106 (such as a push button or a rotation button). In a specific embodiment, the electronic device 100 may include an element 108 surrounding the display. As used in this specification, the element 108 surrounding the display includes a rotatable element surrounding a main body of the display. In an example, the element 108 may be an outer ring 108 surrounding the circular display 104. In a specific embodiment, the element 108 surrounding the display may move relative to the display 104 or the main body. For example, the outer ring 108 may rotate in a clockwise or anticlockwise direction relative to the main body of the device 100. In a specific embodiment, the device 100 may include a watch band 110 attached to the main body 102.
(17)
(18) Referring to
(19) The fingerprint sensor 202 is usually disposed over, under, or beside a home button (home button) on the electronic device 200. In some embodiments, the fingerprint sensor 202 may be disposed on a side of a body of the electronic device 200, or may be disposed on a back of a body of the electronic device 200. This is not limited in this embodiment of this application.
(20) The camera 203 includes a lens system, a drive unit, and an image sensor, and may further include a flash memory and the like. The camera 203 converts, into an electrical image signal or data, an optical signal entered (or captured) by using the lens system, and outputs the signal or data. A user may use the camera 16 to capture a moving image or a still image. In other words, the camera 203 forms an optical image of an object and detects the formed optical image as an electrical signal.
(21) Optionally, the electronic device 200 further includes a microphone (not shown) and a memory (not shown). The microphone is configured to: receive voice or sound input and generate an electrical signal. The memory is configured to store a software program and/or an instruction set.
(22) The touch-sensitive display screen 201 is sometimes referred to as a “touchscreen”, and may be considered as or referred to as a touch-sensitive display system. The touchscreen is configured to: display an image, and generate a key touch interruption when a user input apparatus such as a finger or a stylus touches a surface of the touchscreen.
(23)
(24) As shown in
(25) The electronic device 300 can work in various power management modes (such as an active mode and a power saving mode), to save power in some cases. If the electronic device 300 is a smartwatch, the power saving mode of the electronic device 300 may also be referred to as a wristband mode. For example, the electronic device 300 may be configured to be switched from the active mode to the power saving mode when the electronic device 300 receives some instructions entered by a user. When the electronic device is switched to the power saving mode, the device may disable at least some components (such as the first processor 370, the radio communications unit 330, and the GPS unit 390). In some embodiments, when the electronic device 300 works in the power saving mode, the sensing unit 350 (such as a motion sensor) may keep at least some components enabled. In this way, the device may still detect some user motion events. In some embodiments, when the electronic device 300 works in the power saving mode, a unit that keeps working includes at least one of the following units: the display unit 310, the input unit 320, the Bluetooth unit 340, and the sensing unit 350. For example, in the power saving mode, the sensing unit 350 may be used as a pedometer for continuously detecting walking motion events of the user. The user may also learn of current time and current step quantity information by using the display unit 310.
(26) The first processor 370 may be responsible for executing various software programs (such as an application program and an operating system), to provide calculation and processing operations used for the electronic device 300. The first processor 370 may be a central processing unit (CPU) or an application processor (AP). If the first processor 370 is requested to enter the power saving mode, the first processor 370 notifies the second processor 380 of a mode switching event (namely, an event of performing switching from the active mode to the power saving mode), and then enters the power saving mode. In an implementation, the first processor 370 is powered off when the electronic device is in the power saving mode.
(27) The second processor 380 is mainly responsible for detecting data of the sensing unit 350. The second processor 380 includes any one of the following: a low-power processor, a low-power microprocessor (MPU), or an MCU. The second processor 380 runs proper software or a combination of a hardware element and a software element. The second processor 380 is configured to: when the electronic device is in the power saving mode, control peripheral hardware (such as the Bluetooth unit 340, the input unit 320, and the display unit 310) associated with a local bus of the first processor 370.
(28) The display unit 310 is configured to display a graph, an image, or data to the user. The display unit 310 is configured to provide various screens associated with an operation of the electronic device 300. The display unit 310 provides a home screen, a message writing screen, a phone call screen, a game screen, a music playing screen, and a video playing screen. The display unit 310 may be implemented by using a flat display panel (such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), and an active-matrix OLED (AMOLED)).
(29) The display unit 310 is connected to the first processor 370 and the second processor 380. The first processor 370 and the display unit 310 may be configured to communicate with each other by using an interface such as (but is not limited to) the following: an RGB interface, an MDDI (mobile display digital interface), and an MIPI (mobile industry processor interface). The second processor 380 and the display unit 310 may be configured to communicate with each other by using an interface such as (hut is not limited to) the following: an SPI (serial peripheral interface) or an I2C (inter-integrated circuit). The first processor 370 and the display unit 310 are connected by using the MIPI, the MDDI, or the RGB, so that a requirement of the first processor 370 for the display unit 310 on a large data volume can be met. The second processor 380 and the display unit 310 are connected by using the SPI or the I2C interface, so that this solution is suitable for a power saving mode scenario with a relatively small volume of displayed data.
(30) If the electronic device 300 is in the active mode, the first processor 370 directly communicates with the display unit 310, so that the first processor 370 controls the display unit 310. Otherwise, if the electronic device 300 is in the power saving mode, the second processor 380 directly communicates with the display unit 310, so that the second processor 380 controls the display unit 310.
(31) When the display unit 310 is implemented in a form of a touchscreen, the display unit 310 may serve as an input apparatus for working. When the display unit 310 is implemented in the form of a touchscreen, the display unit 310 includes a touch panel configured to detect a touch gesture. The touch panel is configured to convert, into an electrical input signal, pressure exerted on a specific location of the display unit 310 or a capacitance change in a specific area of the display unit 310. The touch panel may be implemented in either an add-on (add-on) manner or an on-cell (or in-cell) manner.
(32) The touch panel may be implemented as one of the following panels: a resistive touch panel, a capacitive touch panel, an electromagnetic induction touch panel, and a pressure-type touch panel. The touch panel is configured to detect touch pressure, a touched location, and a touched area. If a touch gesture is made on the touch panel, a corresponding input signal is generated to the first processor 370. Then, the first processor 370 checks touch input information of the user to execute a corresponding function.
(33) The input unit 320 includes a module associated with input to the electronic device 300. The input unit 320 receives user input associated with a configuration and control of a function of the electronic device 300, and generates a corresponding input signal to the first processor 370. The input unit 320 may be implemented by using at least one of the following: a touch panel, a touchscreen, a common keyboard, a QWERTY keyboard, and a special function button (such as a power button or a volume button).
(34) The input unit 320 is connected to the first processor 370 and the second processor 380. If the electronic device 300 is in the active mode, the first processor 370 directly communicates with the input unit 320. Otherwise, if the electronic device 300 is in the power saving mode, the second processor 380 directly communicates with the input unit 320. When the input unit 320 is implemented by using the special function button (such as the power button), if the electronic device 300 is in the power saving mode, the user may still light up a screen by pressing the power button. The user can perform different operations based on a lasting time for which the power button is pressed or a quantity of times the power button is pressed. For example, the user may perform a power-off operation by pressing the power button for a lasting time that is up to 3 seconds, and the user may perform a restart operation by pressing the power button for a lasting time that is up to 10 seconds.
(35) The radio communications unit 330 is responsible for a communication function of the electronic device. The radio communications unit 330 establishes a communications channel with a supportable mobile communications network to implement a voice call, a video conference, and data communication. The radio communications unit 330 includes a radio frequency (RF) transmitter and an RF receiver. The RF transmitter is configured to perform up-conversion and amplification on a transmitted signal. The RF receiver is configured to perform low noise amplification and down-conversion on a received signal. The radio communications unit 330 includes a cellular communications module (such as a third generation (3G) cellular communications module and/or a 4G cellular communications module) and a digital broadcast module.
(36) The Global Positioning System (GPS) unit 390. The GPS unit 390 receives a satellite GPS signal from a GPS satellite, and transfers the GPS signal to the first processor 370. The first processor 370 is configured to calculate a current location of the electronic device based on the satellite GPS signal.
(37) The sensing unit 350 is connected to the second processor 380, detects a change in location information of the electronic device 300 or a change in an ambient environment, and sends sensed information to the second processor 380. Specifically, the sensing unit 350 includes at least one of the following: a gyro sensor configured to detect a rotation, a rotation movement, an angular displacement, a tilt, or any other non-linear motion, a tri-axis acceleration sensor configured to sense acceleration in one or more directions, a barometer configured to measure a pressure altitude, an ambient light sensor configured to sense ambient light, and an infrared (IR) sensor and a proximity sensor that are configured to sense a gesture. The sensing unit 350 performs an operation under control of the second processor 380.
(38) The electronic device 300 may receive motion sensor data generated by a motion sensor (such as the gyro sensor or the acceleration sensor) in the sensing unit 350, so as to generate a specific motion event (such as a walking event or a wobbling event) of the motion sensor data. The electronic device 300 may process the generated motion sensor data by using a motion sensing application. For example, a processor running the motion sensing application may analyze the motion sensor data, so as to distinguish a motion event of a specific type.
(39) Optionally, the sensing unit 350 may be separately connected to the first processor 370 and the second processor 380. In this case, if the first processor 370 is in the active mode, the first processor 370 is directly connected to the sensing unit 350, so that the first processor 370 processes the sensed information. Otherwise, if the first processor 370 is in the power saving mode, the second processor 380 is directly connected to the sensing unit 350, so that the second processor 380 processes the sensed information.
(40) The first processor 370 and the second processor 380 may be configured to communicate with each other by using an interface such as (but is not limited to) the following: one or more universal serial bus (USB) interfaces, a micro-USB interface, a universal asynchronous receiver/transmitter (UART) interface, and a general purpose input/output (GPIO) interface.
(41) The electronic device 300 may further include another processor, and may be further implemented as that the first processor 370 and the second processor 380 are located in a dual-core chip, a multi-core chip, or the like on a single chip. To be specific, the first processor 370 and the second processor 380 are disposed in a same integrated circuit chip, or may be respectively disposed in different integrated circuit chips.
(42) The storage unit 360 is configured to store various data that is executed and processed in the electronic device 300, and an operating system (OS) and various applications of the electronic device. The storage unit 360 is implemented by using at least one of the following: a RAM, a ROM, a flash memory, a volatile memory, an EPROM, and an EEPROM. The present invention is not limited thereto. The storage unit 360 includes a data area and a program area. The data area of the storage unit 360 stores data generated in the electronic device 300 and externally downloaded data.
(43) The program area of the storage unit 360 stores an application program required for booting the operating system (OS), a navigation function, a video and audio playback function, and an image display function of the electronic device under control of the first processor 370. The program area is further configured to store an application program required by a broadcast and playback function, an audio recording function, a calculator function, a calendar function, and the like. For a description purpose, the storage unit 360 is shown in a manner of being separated from the first processor 370, and is located outside the first processor 370. However, in various embodiments, a part or all of the storage unit 360 may be integrated on a same integrated circuit as the first processor 370.
(44) A storage area of the storage unit 360 further includes an extra storage area controlled by the second processor 380. Access to the extra storage area controlled by the second processor 380 is allowed even if the first processor 370 is in the power saving mode. The extra storage area controlled by the second processor 380 may be integrated on a same integrated circuit as the second processor 380. However, the present invention is not limited thereto.
(45) The Bluetooth unit 340 is responsible for performing short range communication with another Bluetooth communications apparatus (such as a tablet computer or a smartphone). The Bluetooth unit 340 may be any hardware and/or software element configured to transmit (for example, send and/or receive) data by using one or more wired and/or wireless protocols. The Bluetooth unit 340 mainly transmits data by using a Bluetooth protocol.
(46) The Bluetooth unit 340 is connected to the first processor 370 and the second processor 380. If the electronic device 300 is in the active mode, the first processor 370 directly communicates with the Bluetooth unit 340, so that the first processor 370 controls the Bluetooth unit 340. Otherwise, if the electronic device 300 is in the power saving mode, the second processor 380 directly communicates with the Bluetooth unit 340, so that the second processor 380 controls the Bluetooth unit 340.
(47)
(48) After the electronic device 300 is powered on for the first time or is restarted, the electronic device 300 may start to work in an active mode. For example, in step 402, the electronic device 300 may work in the active mode. In some embodiments, when the electronic device 300 works in the active mode, a power supply supplies power to some or all of components of the electronic device 300. For example, in
(49) When the electronic device 300 works in the active mode, the first processor 370 may run one or more applications, such as an application loaded from the storage unit 360 into the first processor 370. As described above, the first processor 370 may be configured to run an operating system, an instant message application, a media playing application, a media editing application, or any other application.
(50) At some moments, the electronic device 300 may be switched from the active mode to a power saving mode. In step 404, if the electronic device 300 detects a first preset event, the electronic device 300 is switched from the active mode to the power saving mode (step 406), and then the electronic device 300 works in the power saving mode (step 408). The first preset event includes at least one of the following: a quantity of electricity in the battery supplying power to the electronic device 300 reaches a battery electricity quantity threshold a temperature of the electronic device 300 reaches a specified temperature threshold; and the electronic device 300 receives a setting instruction entered by a user to enable the power saving mode.
(51) In some embodiments, in the power saving mode, the electronic device 300 may stop supplying power to the first processor 370, or disable at least some cores of the first processor 370. For example, the first processor 370 has a plurality of cores, and a single-core mode may be set for the first processor 370.
(52) For example, the electronic device 300 determines whether a quantity of remaining electricity in the battery is less than a predetermined value (for example, 8% of a whole battery capacity). When the quantity of remaining electricity in the battery is less than the predetermined value, the electronic device 300 is switched from the active mode to the power saving mode. However, this is merely an example.
(53) In an implementation, when the quantity of remaining electricity in the battery is less than a first threshold (for example, 8% of the whole battery capacity), the electronic device generates a pop-up menu to prompt the user to enter a selection command for one of several menu options. Selecting an option of “enter the power saving mode” may enable the electronic device 300 to be switched from the active mode to the power saving mode. Selecting a menu option of “reject” allows the electronic device 300 to continue to be in the active mode.
(54) In another implementation, when the quantity of remaining electricity in the battery is less than a second threshold (for example, 2% of the whole battery capacity), if the electronic device 300 has not entered the power saving mode (for example, when the quantity of remaining electricity in the battery is less than the first threshold, the user selects the menu option of “reject”, and the electronic device 300 continues to be in the active mode), the electronic device 300 is switched from the active mode to the power saving mode. In this way, the electronic device can enter the power saving mode without confirmation of the user.
(55) In some embodiments, after receiving the setting instruction entered by the user to enable the power saving mode, the electronic device 300 enters the power saving mode. For example, when the user directly touches a corresponding icon used to enable the “power saying mode”, the electronic device 300 receives the setting instruction entered by the user to enable the power saving mode, to switch the electronic device 300 from the active mode to the power saving mode.
(56) At some moments, the electronic device 300 may be switched from the power saving mode to the active mode. In step 410, if the electronic device 300 detects a second preset event, the electronic device 300 is switched from the power saving mode to the active mode (step 412). The second preset event includes at least one of the following: it is detected that the electronic device 300 is charged by using a power adapter; and the electronic device 300 receives a setting instruction entered by the user to exit the power saving mode. The electronic device 300 may be switched to the active mode when power input is detected on an input port (such as a micro-USB port or a Type-C port), or may be switched to the active mode when power input is sensed in a wireless charging manner.
(57) The setting instruction entered by the user to exit the power saving mode may be triggered by tapping a corresponding icon, or may be triggered by using a button operation. For example, the electronic device 300 is in the power saving mode at the beginning, the user performs a restart operation by pressing a power button for a time period, and the electronic device 300 enters the active mode.
(58) In some embodiments, when the battery of the electronic device 300 is charged by using an eternal source (such as the power adapter), the electronic device 300 is prohibited from entering the power saving mode. The power adapter may receive AC power from a wall plug, an in-vehicle charger, or another power source, and provide DC power used to charge the battery. For example, when the battery of the electronic device 300 is charged by using the power adapter, GUI display of the electronic device is modified, for example, an icon button corresponding to the “power saving mode” is grayed, so as to prohibit selection of a “power saving mode” option. For another example, when the battery of the electronic device 300 is charged by using the power adapter, when the setting instruction entered by the user to enable the power saving mode is received, the setting instruction is discarded, and an operation of performing switching from the active mode to the power saving mode is not performed.
(59) In some embodiments, the battery of the electronic device 300 may be wirelessly charged in a wireless charging manner. Wireless charging technologies may be roughly classified into an electromagnetic induction solution using a coil, a resonance solution using a resonance, and a radio frequency (RF)/microwave radiation solution in which electric energy is transferred by converting the electric energy into a microwave. A distance between a wireless power transmitter and a wireless power receiver is relatively small (for example, is 10 centimeters or shorter) in the electromagnetic induction solution. However, when the resonance solution or the microwave radiation solution is used, a distance between the wireless power transmitter and the wireless power receiver may be up to tens of meters. For example, an electronic device having a capability to receive induction electric energy may be placed near a transmitter generating induction electric energy. In these systems, a transmitting coil in the transmitter may generate a time-varying magnetic flux, so that a current can be induced in a receiving coil in the electronic device. A received current may be used by the electronic device to supplement a charge of the battery.
(60) As shown in
(61) Optionally, an induction electric energy transmitter device and a receiver device may be placed opposite to each other by using one or more alignment mechanisms. In an example, one or more magnetic devices may be included in the transmitter device and/or the receiver device, and may be configured to align the transmitter device and the receiver device opposite to each other.
(62) Referring to
(63) The electronic device 300 receives wireless power from the wireless power transmitter 601, and charges the battery installed in the electronic device 300. The electronic device 300 sends, to the wireless power transmitter 601, at least one of a signal used to request to transfer wireless power, information required for receiving wireless power, and status information of the electronic device 300. The wireless power transmitter 601 performs a charging operation on the electronic device 300 placed in a charging area (to be specific, the electronic device 300 is located within an effective distance to the charging area of the wireless power transmitter 601) of the wireless power transmitter 601.
(64) In
(65) In an implementation, as shown in
(66) In another implementation, as shown in
(67) When the battery is charged by using an external source, the electronic device 300 is prohibited from entering the power saving mode, and the electronic device 300 in the active mode may execute various functions (such as a calling function and a function of receiving a notification message from another electronic device (such as a mobile phone) by using Bluetooth), thereby preventing the user from missing a relatively important incoming call and notification message during charging.
(68) After the electronic device 300 enters the power saving mode, the second processor 380 of the electronic device 300 may receive motion sensor data generated by a motion sensor in the sensing unit 350, so as to generate specific motion information (such as step quantity information) of the motion sensor data, and store the step quantity information into an extra storage area that is in the storage unit 360 and that is controlled by the second processor 380. After the electronic device 300 enters the power saving mode, if the electronic device 300 is restarted (for example, a restart operation is performed by pressing a power button for a time period, or a restart operation is performed when the battery of the electronic device 300 is charged by using the power adapter), the first processor 370 of the electronic device 300 obtains, from the second processor 380, the step quantity information of the electronic device 300 in the power saving mode.
(69) After the electronic device 300 enters the power saving mode, the motion sensor in the sensing unit 350 generates motion data, and detects whether the user performs a wrist raising action. When the wrist raising action of the user is detected, the second processor 380 controls lighting of the display unit of the electronic device (enables backlight of the display unit of the electronic device).
(70) If the battery of the electronic device 300 is charged by using the power adapter, the electronic device 300 is restarted and is switched from the power saving mode to the active mode. After the electronic device 300 is restarted, the electronic device 300 enters the active mode. The electronic device 300 in the active mode may execute various functions (such as a calling function and a function of receiving a notification message from another electronic device (such as a mobile phone) by using Bluetooth), thereby preventing the user from missing a relatively important incoming call and notification message during charging.
(71) The first processor 370 performs the following operations. Referring to
(72) In step 804, if the first processor 370 detects a first preset event, the electronic device 300 is switched from the active mode to the power saving mode. The first preset event includes at least one of the following: a quantity of electricity in the battery supplying power to the electronic device 300 reaches a battery electricity quantity threshold; a temperature of the electronic device 300 reaches a specified temperature threshold; and the electronic device 300 receives a setting instruction entered by the user to enable the power saving mode.
(73) If the first preset event is detected, in step 806, the first processor 370 notifies the second processor 380 that the electronic device 300 is to enter the power saving mode. Specifically, the first processor 370 may notify, by using a UART interface or an SPI interface, the second processor 380 that the electronic device 300 is to enter the power saving mode. After receiving a notification that the electronic device 300 is to enter the power saving mode, the second processor 380 makes some preparations, for example, disconnecting the first processor 370 from the input unit 320 (such as the power button), and taking the place of the first processor 370 to control the input unit 320.
(74) In step 808, if the first processor 370 detects that the second processor 380 is ready, the first processor 370 is powered off in step 810. The first processor 370 is operated in the power saving mode, and power consumed by the electronic device 300 is minimized in the power saving mode. After the first processor 370 is powered off, to maintain some necessary functions (such as a step count function and a clock function) of the electronic device 300, the peripheral hardware associated with the local bus of the first processor 370 may be controlled by using the second processor 380. The second processor 380 in the power saving mode is configured to perform at least one of the following: communicating with the Bluetooth unit 340 to process Bluetooth communication data; controlling a power-on operation, a power-off operation, a screen lighting operation, and a restart operation of the electronic device 300 by using the input unit 320; and controlling the display unit 310 by using the serial peripheral interface (SPI). For example, the electronic device 300 in the active mode may receive, by using the Bluetooth unit 340, an event such as a phone call or a message sent by another electronic apparatus (such as a mobile phone or a tablet computer), and provide a notification service of instructing the user to receive the event. The electronic device 300 in the power saving mode cannot support local area network communication, voice, data communication, and cellular phone communication by using the radio communications unit 330, and also cannot obtain geographical location information of the electronic device 300 by using the Global Positioning System (GPS) unit. After the first processor 370 is powered off, the second processor 380 detects that the first processor 370 is powered off, and the second processor 380 initializes the display unit 310 and the Bluetooth unit 340.
(75) In step 812, when the first processor 370 is powered on, the electronic device 300 performs a restart operation, the first processor 370 is switched to the active mode (step 814), and the electronic device 300 also enters the active mode.
(76) Specifically, referring to
(77) In step 904, the first processor 370 reports a power-on event to the second processor 380. Then, the second processor 380 stores motion data (such as step quantity information) into the extra storage area that is in the storage unit 360 and that is controlled by the second processor 380, and the second processor 380 disables the display unit 310. In this case, the second processor is ready.
(78) In step 906, the first processor 370 detects that the second processor 380 is ready, and the first processor 370 resets the second processor 380 (step 908). Specifically, the first processor 370 may determine, by detecting that a voltage on a configuration pin is pulled up or down, whether the first processor is ready. For example, after the second processor 380 is ready, a voltage on a configuration pin of the second processor 380 is pulled up. If the first processor 370 detects that a level of the configuration pin of the second processor is a high level, it indicates that the second processor 380 is ready.
(79) In step 910, the first processor 370 obtains the step quantity information of the electronic device 300 from the second processor 380.
(80) The second processor 380 performs the following operations. Referring to
(81) In step 1004, the second processor 380 makes some preparations, for example, disconnecting the first processor 370 from the input unit 320 (such as the power button), and taking the place of the first processor 370 to control the input unit 320. After preparing to control the input unit 320, the second processor notifies the first processor 370 that the second processor is ready.
(82) In step 1006, the second processor 380 detects that the first processor 370 is powered off, the second processor 380 initializes the display unit 310 and the Bluetooth unit 340 (step 1008), and then the electronic device 300 enters the power saving mode. Specifically, the second processor 380 may determine, by detecting that a voltage on a configuration pin is pulled up or down, whether the first processor is powered off. In the power saving mode, after the first processor 370 is powered off, to maintain some necessary functions (such as a step count function and a clock function) of the electronic device 300, peripheral hardware associated with a local bus of the first processor 370 may be controlled by using the second processor 380. The second processor 380 in the power saving mode is configured to perform at least one of the following: communicating with the Bluetooth unit 340 to process Bluetooth communication data; controlling a power-on operation, a power-off operation, a screen lighting operation, and a restart operation of the electronic device 300 by using the input unit 320; and controlling the display unit 310 by using the serial peripheral interface (SPI). For example, the electronic device 300 in the power saving mode may receive, by using the Bluetooth unit 340, an event such as a phone call or a message sent by another electronic apparatus (such as a mobile phone or a tablet computer), and provide a notification service of instructing the user to receive the event. The electronic device 300 in the power saving mode cannot support local area network communication, voice, data communication, and cellular phone communication by using the radio communications unit 330, and also cannot obtain geographical location information of the electronic device 300 by using the Global Positioning System (GPS) unit.
(83) In step 1010, when the second processor 380 detects that the first processor 370 is powered on, the electronic device 300 performs a restart operation, and the electronic device 300 is switched to the active mode. Specifically, when the battery of the electronic device 300 is charged the using the power adapter, the first processor 370 is powered on, and the first processor 370 reports a power-on event to the second processor 380. In step 1012, the second processor 380 stores motion data (such as step quantity information) into the extra storage area that is in the storage unit 360 and that is controlled by the second processor 380 and the second processor 380 disables the display unit 310. Then, in step 1014, the second processor is reset and performs initialization. Specifically, the second processor 380 performs initialization after detecting a reset signal from the first processor 370. The first processor 370 obtains, from the second processor 380, the step quantity information of the electronic device 300 in the power saving mode.
(84) The processor configured to perform the embodiments of this application may be a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor may implement or execute various examples of logical blocks, modules, and circuits that are described with reference to content disclosed in this application. Alternatively, the processor may be a combination of processors for implementing a calculation function, for example, a combination including one or more microprocessors or a combination of a DSP and a microprocessor.
(85) Method or algorithm steps described in combination with the content disclosed in this application may be implemented by hardware, or may be implemented by the processor by executing a software instruction. The software instruction may be formed by a corresponding software module. The software module may be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable magnetic disk, a CD-ROM, or a storage medium of any other form known in the art. For example, a storage medium is coupled to the processor, so that the processor can read information from the storage medium and can write information into the storage medium. Certainly, the storage medium may be a component of the processor. The processor and the storage medium may be located in the ASIC. In addition, the ASIC may be located in user equipment. Certainly, the processor and the storage medium may exist in the user equipment as discrete components.
(86) A person skilled in the art should be aware that in the foregoing one or more examples, functions described in this application may be implemented by hardware, software, firmware, or any combination thereof. A person of ordinary skill in the art should easily be aware that, in combination with the examples described in the embodiments disclosed in this specification, units, algorithms steps may be implemented by hardware or a combination of hardware and computer software. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application. When the present invention is implemented by software, the foregoing functions may be stored in a computer-readable medium or transmitted as one or more instructions or code in the computer-readable medium. The computer-readable medium includes a computer storage medium and a communications medium. The communications medium includes any medium that enables a computer program to be transmitted from one place to another. The storage medium may be any available medium accessible to a general purpose or dedicated computer.
(87) The objectives, technical solutions, and beneficial effects of this application are further described in detail in the foregoing specific embodiments. It should be understood that the foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any modification, equivalent replacement, or improvement made based on the technical solutions of this application shall fall within the protection scope of this application.