WO2022040989A1 - Electronic device and control method - Google Patents

Electronic device and control method Download PDF

Info

Publication number
WO2022040989A1
WO2022040989A1 PCT/CN2020/111461 CN2020111461W WO2022040989A1 WO 2022040989 A1 WO2022040989 A1 WO 2022040989A1 CN 2020111461 W CN2020111461 W CN 2020111461W WO 2022040989 A1 WO2022040989 A1 WO 2022040989A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
main system
power
detection
mode
Prior art date
Application number
PCT/CN2020/111461
Other languages
French (fr)
Chinese (zh)
Inventor
吴军
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN202080035636.3A priority Critical patent/CN113853585A/en
Priority to PCT/CN2020/111461 priority patent/WO2022040989A1/en
Publication of WO2022040989A1 publication Critical patent/WO2022040989A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3296Power saving characterised by the action undertaken by lowering the supply or operating voltage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Definitions

  • the present application relates to the field of electronic technology, and in particular, to an electronic device, a control method, a computer-readable storage medium, and a computer program product containing instructions.
  • Option 1 Reduce the functions and codes of electronic products, and adopt a more simplified system such as no operating system or a simple real-time operating system to achieve fast startup from power-off to power-on.
  • the disadvantage of this solution is that it needs to abandon the development efficiency and build the entire system from scratch; or reduce the amount of system code by tailoring a large number of system functions. It can be seen that, with this solution, although the product starts faster, it is often necessary to lose or limit product functions.
  • Option 2 First, make the whole electronic product enter a certain low power consumption and memory self-refresh standby sleep mode, and then wake up the electronic product from the standby sleep mode when the user presses the button, so as to achieve the purpose of fast startup.
  • the disadvantage of this approach is that the entire system of the electronics is actually consuming power even during low power standby.
  • the embodiments of the present application provide an electronic device and a control method, which can realize fast startup from power-off to power-on without reducing the functions and codes of the electronic product.
  • the main system can be controlled to be completely powered off, but the control and detection system is in a low-power running state where it is always powered on.
  • the detection system detects that the user really wants to use the electronic product, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly).
  • the main system in the standby mode is woken up, so as to achieve the purpose of fast startup, thereby reducing power consumption.
  • an embodiment of the present application provides an electronic device, including: a main system; and a detection system, which is in a power-on state and has a detection component and a control component, wherein: the detection component is at least used to detect whether the electronic device is The main system startup condition is met; the control component is at least used to control the main system to power on and enter the standby mode in response to the detection component detecting that the electronic device meets the main system startup condition.
  • the embodiments of the present application further provide another electronic device, including: a main system; and a detection system, which is in an always-on state and has a detection component and a control component, wherein: the detection component is at least used to detect that the system is in a standby state. Whether the electronic device in the mode or normal working mode meets the shutdown condition of the main system; the control component is at least used to control the main system to power off and enter the shutdown mode in response to the detection component detecting that the electronic device meets the shutdown condition of the main system.
  • an embodiment of the present application further provides a control method, which is applied to an electronic device, including: making the detection system of the electronic device in a power-on state; The following operations are performed: detecting whether the electronic device meets the power-on condition of the main system; in response to detecting that the electronic device meets the power-on condition of the main system, control the main system to power on and enter the standby mode.
  • the embodiments of the present application further provide another control method, which is applied to an electronic device, including: making the detection system of the electronic device in a power-on state; The system performs the following operations: detecting whether the electronic device in standby mode or normal working mode meets the main system shutdown condition; in response to detecting that the electronic device meets the main system shutdown condition, controlling the main system to power off and enter the shutdown mode.
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method of any embodiment of the present application.
  • an embodiment of the present application provides a computer program product including instructions, which, when the instructions are executed on a computer, cause the computer to execute the method of any one of the embodiments of the present application.
  • the embodiments of the present application provide an electronic device and a control method.
  • the control main system Before the user really wants to use the electronic product, the control main system is completely powered off, but the control and detection system is in a low power consumption running state that is always powered on.
  • the detection system detects that the user really wants to use the electronic product, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly).
  • the main system in the standby mode is woken up, so as to achieve the purpose of fast startup, thereby reducing power consumption, avoiding the reduction of product functions and codes, and improving the user's operating experience.
  • FIG. 1 schematically shows a structural diagram of an electronic device according to an embodiment of the present application
  • FIGS. 2A to 2C schematically show structural diagrams of detection components according to embodiments of the present application.
  • FIGS. 3A-3B schematically show structural diagrams of an electronic device according to another embodiment of the present application.
  • FIG. 4 schematically shows a flowchart of a control method according to an embodiment of the present application
  • FIG. 5 schematically shows a flowchart of a control method according to another embodiment of the present application.
  • the inventive concept of the present application is to find a quick system startup method between the above two traditional solutions that can not only maintain the complexity of the system, but also avoid excessive power consumption caused by the long-term standby of the whole machine.
  • the electronic device and the control method provided by the embodiments of the present application can be applied to any application scenario that requires a quick start of an electronic product.
  • the control method can be specifically performed by an electronic device, and more specifically, can be performed by a detection system of the electronic device that is independent of the main system.
  • the control main system before the user really wants to use the electronic product, the control main system is completely powered off, but the control detection system is in a low power consumption running state where the power is always on.
  • the detection system detects that the user really wants to use the electronic product, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly).
  • the standby mode ie, controls the main system to start implicitly.
  • the main system in the standby mode is woken up, so as to achieve the purpose of fast startup. As a result, power consumption can be reduced, while reducing product functions and codes can be avoided, and the user's operating experience can be improved.
  • the main system when the user does not actually use the electronic product, the main system is controlled to be powered off, but the control and detection system is in a low power consumption running state where the power is always on, and the This minimizes power consumption.
  • the detection system detects that the user wants to use the electronic product again, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly).
  • the main system in the standby mode is woken up, so as to achieve the purpose of fast startup.
  • the electronic devices provided in the embodiments of the present application may include various types of electronic products that are hand-held or convenient for users to carry in other ways, for example, may include various types of camera products.
  • the control methods provided by the embodiments of the present application can be used to control various camera products to start quickly without reducing system functions and codes and minimizing power consumption, so that users can use camera functions immediately.
  • the control method provided by the embodiment of the present application can also control various camera products to power off quickly when the user no longer uses the camera function, so as to save power consumption as much as possible.
  • the electronic devices provided in the embodiments of the present application may also include other types of portable electronic devices, which are not limited in this application.
  • the embodiment of the present application provides an electronic device, which can realize the rapid startup of the system while maintaining the complexity of the system, save power consumption, and improve the user's operating experience.
  • FIG. 1 schematically shows a structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device may include, for example, a main system 10 and a detection system 20 .
  • the main system 10 may include various operating systems, various application systems and various hardware device drivers.
  • the detection system 20 is in a power-on state, and has a detection part 201 and a control part 202 .
  • the detection component 201 is at least used to detect whether the electronic device complies with the power-on condition of the main system.
  • control part 202 is at least used to control the main system 10 to be powered on and enter the standby mode in response to the detection part 201 detecting that the electronic device meets the power-on condition of the main system.
  • the above-mentioned electronic device may be a camera.
  • the detection system 20 is in a power-on state, and whether the main system 10 needs to be powered on or needs to be powered off is controlled by the detection system 20 .
  • the detection system 20 can use the detection component 201 to detect whether the electronic device complies with the main system power-on condition.
  • the control unit 202 controls the main system 10 to be powered on.
  • the detection system 20 since the detection system 20 detects and controls the power-on of the main system 10 without the user's perception, it belongs to the implicit silent startup of the main system 10, so the main system can be controlled first after startup 10 enters a low-power self-refresh standby mode instead of directly controlling the main system 10 to enter a normal operating mode.
  • the main system 10 When the user operates the electronic device (eg, when pressing any key), the main system 10 is woken up from the standby mode to directly enter the normal working mode, which can increase the user's experience of being able to boot quickly.
  • the detection system 20 can also detect whether the electronic device complies with the main system shutdown condition through the detection component 201, and respond to the detection component 201. It is detected that the electronic device complies with the shutdown condition of the main system, and then the control unit 202 controls the main system 10 to power down and enter the shutdown mode. In this way, the power consumption caused by the device still in standby for a long time without the user's intention to use it can be avoided; or the power consumption caused by the device still running normally when the user does not use the device can be avoided.
  • the main system 10 before controlling the main system 10 to power on, that is, before controlling the main system 10 to enter the standby mode, only the small system (detection system 20 ) may be in a powered-on state in the electronic device.
  • the large system (the main system 10 ) is controlled to enter the standby mode only when at least one of the following conditions is met (that is, when it is detected that the user intends to use the electronic device): the electronic device is moved and /or is vibrating; there is a user approaching and/or touching the electronic device.
  • the whole system is directly controlled to enter the standby mode regardless of whether the user has the intention to use.
  • the power consumption of the detection system 20 in the working mode may be smaller than the power consumption of the main system 10 in the standby mode within the same time period.
  • the small system (detection system 20 ) especially the control components in the small system (detection system 20 ) can be implemented by using a single-chip microcomputer and a dedicated chip with lower power consumption. Therefore, in this embodiment of the present application, even if the detection system 20 enters and remains in the working mode as soon as it is powered on, since other systems of the entire device are completely powered off and do not consume any power, the electronic device actually does not consume any power during the entire process. Power consumption is also extremely low.
  • the "main system power-on condition" may be set to at least one of the following: the electronic device is moved and/or vibrated; a user approaches and/or contacts the electronic device.
  • the detection component may be designed into different structures.
  • the detection component 201 may only include the first detection module 201A.
  • the detection component 201 may only include the second detection module 201B.
  • the detection component 201 may include a first detection module 201A and a second detection module 201B at the same time.
  • the first detection module 201A is used to detect whether the electronic device is moved and/or vibrated, so as to determine whether the electronic device meets the power-on condition of the main system; the second detection module 201B is used to detect whether a user approaches or contacts the electronic device, so as to Determines if the electronics are eligible for the main system power-on.
  • the first detection module may include, but is not limited to, an inertial measurement unit and/or a motion sensor and other devices that can be used to detect whether the electronic device is moved and/or vibrated.
  • the second detection module may include, but is not limited to, a device that can be used to detect whether a user approaches or contacts an electronic device, such as a biological monitoring device for detecting human thermal radiation.
  • the detection system is configured to be independent of other inertial measurement units, motion sensors, and biological monitoring devices in the electronic device, and is exclusively used to detect whether the electronic device meets the power-on or power-off condition of the main system.
  • the detection system can also determine whether to control the main system to power down or enter the normal working mode by detecting whether there is a user operation.
  • the detection component is further configured to detect whether there is a user operation on the electronic device in response to the main system being in the standby mode, and the control component is further configured to respond to the standby time of the main system reaching a preset value (for example, 2 minutes), and the detection component has not detected that there is a user operation for the electronic device, control the main system to power off and enter the shutdown mode.
  • the control component is further configured to control the main system to enter a normal working mode in response to the standby time of the main system not reaching a preset value and the detection component having detected that there is a user operation on the electronic device.
  • the longest standby time of the main system may be set to 2 minutes, and during this process, the detection component may detect whether the user presses the power button. Once the user presses the power button, the action of waking up the main system from the standby self-refresh mode is performed, so that the main system quickly enters a full-speed running state (normal working mode). If the user has not pressed the power button, and the standby time of the main system has reached the set maximum value, the detection system closes the power supply path of the main system to make it enter the shutdown state.
  • the electronic device may further include: a battery and/or an energy harvesting component, wherein the detection system may be powered on by the battery and/or the energy harvesting component to implement power-on and enter a power-on detection mode.
  • the detection system when the user inserts the battery into the electronic device, the detection system can be powered on immediately and enter the power-on and power-off detection modes. Or, in another embodiment, when the energy is collected in the energy collection component, the detection system can be powered on immediately and enter the power-on and power-off detection modes. Or, in another embodiment, when the electronic device includes both a battery and an energy harvesting component, the detection system can preferentially use the energy collected in the energy harvesting component to power on and enter a power-on and power-off detection mode.
  • the electronic device may further include: a power switch.
  • a power switch with a control end and two connection ends, one of the two connection ends is connected to the output end of the battery and/or the energy collection part, the other is connected to the input end of the main system, and the control end is connected to the control part;
  • control The component outputs a power-on signal to the control terminal in response to the electronic device meeting the power-on condition of the main system, so that the power switch electrically connects the output terminal of the battery and/or the energy harvesting component with the input terminal of the main system based on the power-on signal.
  • FIG. 3A Exemplarily, when the electronic device is only powered by the battery 301A, the connection relationship between the various components (including the battery 301A, the power switch 30, the main system 10 and the detection system 20) is shown in FIG. 3A .
  • FIG. 3B Exemplarily, when the electronic device is powered only by the energy harvesting component 301B, the connection relationship between the components (including the energy harvesting component 301B, the power switch 30, the main system 10 and the detection system 20) is shown in FIG. 3B .
  • the detection system detects possible movement, vibration, contact and approach with a small power consumption, so as to power on the main system in advance.
  • the main system is in a standby state after implicit startup, for example, when the user really presses the power button, the main system is quickly controlled to enter a full-speed running state, so as to achieve the purpose of fast startup.
  • the embodiment of the present application further provides another electronic device, which can quickly shut down the system while maintaining the complexity of the system, so as to save power consumption.
  • the electronic device may include: a main system and a detection system.
  • the detection system is always powered on and has detection components and control components.
  • the detection component is at least used to detect whether the electronic device in standby mode or normal working mode meets the shutdown condition of the main system;
  • the control component is at least used to control the main system to power down and control the main system to be powered off in response to the detection component detecting that the electronic device meets the shutdown condition of the main system. Enter shutdown mode.
  • the main system may include various operating systems, various application systems, and various hardware device drivers.
  • the above-mentioned electronic device may be a camera.
  • the detection system is in a power-on state, and whether the main system needs to be powered on or needs to be powered off is controlled by the detection system.
  • the detection system when the main system is in a power-on state (including in a standby mode and a normal working mode), the detection system can also detect whether the electronic device meets the shutdown condition of the main system through the detection component, and in response to the detection component detecting that the electronic device meets the shutdown condition The main system shutdown condition, and then control the main system to power down and enter the shutdown mode through the control component. In this way, the power consumption caused by the device still in standby for a long time without the user's intention to use it can be avoided; or the power consumption caused by the user not using the device but the device is still running normally can be avoided.
  • the inventor found that: sometimes, the user approaches and/or touches the electronic product for some reason, and even sometimes moves the electronic product, but the user actually With no intention of use, this situation requires not only waking up the electronic device from standby mode, but also controlling the shutdown of the main system in a timely manner in order to save energy.
  • the inventor also found that: under normal circumstances, when a user really wants to use an electronic device, he/she will perform relevant user operations on it, such as pressing the power-on button, continuously touching the electronic device, and the like.
  • the detection system can also determine whether to control the main system to power down or enter or enter or not by detecting whether there is a user operation. Keep normal working mode.
  • the inventor also found that: before actually using the electronic product, the user usually needs to approach and/or touch the electronic product, and sometimes moves the electronic product, and the moving electronic device may cause the electronic device to vibrate.
  • the shutdown condition of the main system may be set to include at least one of the following: when the standby time of the main system reaches a preset value; When the main system’s standby time reaches the preset value, and no user approaches or touches the electronic device; when the main system’s standby time reaches the preset value, and the electronic device does not move or vibrate; the main system is working normally mode, and there is no user approaching or touching the electronic device during the continuous first preset time period; the main system is in the normal working mode, and there is no user for the electronic device during the continuous second preset time period During operation; when the main system is in the normal working mode, and the electronic device does not move or vibrate for the third preset time period.
  • the first preset time period, the second preset time period, and the third preset time period may be equal in duration or unequal in duration, which is not limited in this embodiment of the present application.
  • the duration of each of the three time periods may be 5 minutes.
  • the standby time reaches a preset value. (eg 2min) can automatically control the main system to power down and enter shutdown mode.
  • the longest standby time of the main system can be set to 2 minutes.
  • the detection component can detect whether the user presses the power button during this process. Once the user presses the power button, the action of waking up the main system from the standby self-refresh mode is performed, so that the main system quickly enters a full-speed running state (normal working mode). If the user has not pressed the power button and the standby time of the main system has reached the set maximum value, the detection system will turn off the power supply path of the main system and make it enter the shutdown state.
  • the detection component can detect whether a user approaches or contacts the electronic device within a continuous period of time (such as 5 minutes), whether the electronic device has Movement or vibration, whether there is user operation behavior for electronic equipment, etc. If none of the above conditions are satisfied, the main system of the control electronic device is powered off and enters a shutdown mode.
  • the detection system detects possible movement, vibration, contact and approach with a small power consumption, so as to timely control the main system to power down, so as to save power consumption.
  • the embodiments of the present application also provide a control method for an application and an electronic device, which can achieve a rapid system startup while maintaining the complexity of the system, and save power consumption at the same time.
  • FIG. 4 schematically shows a flowchart of a control method according to an embodiment of the present application.
  • the execution body of this embodiment may be an electronic device, and specifically may be a detection system of the electronic device.
  • the method may include, for example, operations S401 to S404.
  • the detection system of the electronic device is kept in a power-on state.
  • operation S404 in response to detecting that the electronic device meets the power-on condition of the main system, the main system is controlled to be powered on and enter a standby mode.
  • detecting whether the electronic device meets the main system power-on condition includes at least one of the following: detecting whether the electronic device is moved and/or vibrating; detecting whether a user approaches or contacts the electronic device.
  • the method further includes: in response to the main system being in a standby mode, detecting whether there is a user operation for the electronic device; and in response to the standby time of the main system reaching a preset value, and no existence has been detected yet For user operation of electronic equipment, control the main system to power down and enter shutdown mode.
  • the method further includes: in response to the standby time of the main system not reaching a preset value and detecting that there is a user operation on the electronic device, controlling the main system to enter a normal working mode.
  • making the detection system of the electronic device in the always-on state includes at least one of the following: the detection system is powered on and enters the power-on detection mode by connecting the battery to the electronic device; using the energy harvesting component The harvested energy powers up the detection system and enters a power-on detection mode.
  • the electronic device further includes: a power switch, which has a control end and two connection ends, one of the two connection ends is connected to the output end of the battery and/or the energy collection component, and the other is connected to the main The input end of the system is connected, and the control end is connected to the control part; the method further includes: in response to the electronic equipment meeting the power-on condition of the main system, outputting a power-on signal to the control end through the control part, so that the power switch enables the battery and/or energy to collect based on the power-on signal The output of the component is electrically connected to the input of the main system.
  • the power consumption of the detection system in the working mode is smaller than the power consumption of the main system in the standby mode within the same time period.
  • the electronic device before the main system is in the standby mode, the electronic device only detects that the system is in a power-on state.
  • the embodiment of the present application also provides another control method, which can realize rapid shutdown of the system while maintaining the complexity of the system, so as to save power consumption.
  • FIG. 5 schematically shows a flowchart of a control method according to another embodiment of the present application.
  • the execution body of this embodiment may be an electronic device, and specifically may be a detection system of the electronic device.
  • the method may include, for example, operations S501 to S502.
  • the detection system of the electronic device is kept in a power-on state.
  • Operation S504 in response to detecting that the electronic device meets the shutdown condition of the main system, control the main system to power down and enter a shutdown mode.
  • detecting whether the electronic device in the standby mode meets the shutdown condition of the main system includes performing any one of the following operations: detecting whether the standby duration of the main system reaches a preset value; detecting the standby duration of the main system Whether the preset value is reached, and whether there is a user operation on the electronic device before the standby time reaches the preset value; Detect whether the standby time of the main system reaches the preset value, and detect whether there is a user before the standby time reaches the preset value. Approach or touch the electronic device; detect whether the standby time of the main system reaches the preset value, and detect whether the electronic device moves or vibrates before the standby time reaches the preset value.
  • detecting whether the electronic device in the normal working mode meets the shutdown condition of the main system includes performing any one of the following operations when the main system is in the normal working mode: Set whether there is a user approaching or touching the electronic device within a set time period; detect whether there is a user operation on the electronic device within a continuous second preset time period; detect whether the electronic device has moved or shock.
  • the embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when run on a computer, enable the computer to execute any method of any of the embodiments of the present application, which are not described herein again.
  • the embodiments of the present application also provide a computer program product including instructions, when the instructions are run on the computer, the computer executes the method of any one of the embodiments of the present application, and details are not described herein again.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • Computer instructions may be sent from one website site, computer, server, or data center to another website site, computer, via wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , server or data center for transmission.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)

Abstract

An electronic device, comprising: a main system; and a detection system which is in a normally-powered-on state and is provided with a detection component and a control component, wherein the detection component is at least used for detecting whether the electronic device satisfies a start-up condition of the main system; and the control component is at least used for controlling, in response to the detection component detecting that the electronic device satisfies the start-up condition of the main system, the main system to be powered on and enter a standby mode. On the basis of maintaining system complexity of the electronic device, embodiments of the present application still can achieve the purpose of rapidly starting the electronic device. Moreover, according to the present application, before controlling the main system of the electronic device to be powered on and enter the standby mode, the detection system of the electronic device can be powered on and detects whether the main system needs to be controlled to be powered on; and compared with the main system, the detection system consumes less power under the condition that the detection system and the main system run for the same time. Therefore, excessive power loss caused by long-time standby of the main system can be avoided.

Description

电子设备和控制方法Electronic device and control method 技术领域technical field
本申请涉及电子技术领域,尤其涉及一种电子设备、一种控制方法、一种计算机可读存储介质、一种包含指令的计算机程序产品。The present application relates to the field of electronic technology, and in particular, to an electronic device, a control method, a computer-readable storage medium, and a computer program product containing instructions.
背景技术Background technique
现今如数码照相机等移动电子产品的功能越来越复杂,导致其软件代码越来越冗长,进而导致电子产品上电启动时间通常过长,用户无法即时使用产品功能。这个问题长期存在于各种类型的移动电子产品中。Nowadays, the functions of mobile electronic products such as digital cameras are becoming more and more complex, resulting in more and more verbose software codes, which in turn lead to long time for electronic products to be powered on and start up, and users cannot use the product functions immediately. This problem has long existed in various types of mobile electronic products.
为了提升用户的使用体验,快速响应用户的使用需求,相关技术中通常采用以下两种快速开关机方案:In order to improve the user's experience and quickly respond to the user's needs, the following two fast switching schemes are usually used in related technologies:
方案1,缩减电子产品的功能和代码,采用更加简化的系统如无操作系统或者简单的实时操作系统,达到从掉电到上电的快速启动。这种方案的缺点在于,需要舍弃开发效率,从头开始搭建整个系统;或者通过大量裁剪系统功能来减小系统代码量。可见,采用这种方案,虽然产品启动速度较快,但往往需要损失或者限制产品功能。Option 1: Reduce the functions and codes of electronic products, and adopt a more simplified system such as no operating system or a simple real-time operating system to achieve fast startup from power-off to power-on. The disadvantage of this solution is that it needs to abandon the development efficiency and build the entire system from scratch; or reduce the amount of system code by tailoring a large number of system functions. It can be seen that, with this solution, although the product starts faster, it is often necessary to lose or limit product functions.
方案2,先使电子产品整机进入某种低功耗、存储器自刷新的待机休眠模式,当用户按下按钮后再从待机休眠模式唤醒电子产品,达到快速启动的目的。这种方案的缺点在于,即使在低功耗待机时电子产品的整个系统实际上都在消耗电量。Option 2: First, make the whole electronic product enter a certain low power consumption and memory self-refresh standby sleep mode, and then wake up the electronic product from the standby sleep mode when the user presses the button, so as to achieve the purpose of fast startup. The disadvantage of this approach is that the entire system of the electronics is actually consuming power even during low power standby.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种电子设备和控制方法,可以在不缩减电子产品的功能和代码的基础上,实现从掉电到上电的快速启动。并且,在使用者真正想要使用电子产品之前,可以控制主系统完全掉电,但控制检测系统处于常上电的低功耗运行状态。当检测系统检测到使用者真正想要使用电子产品 时,再控制主系统上电并进入待机模式(即控制主系统隐含性启动)。而当用户操作电子产品时,再将待机模式下的主系统唤醒,从而达到快速启动的目的,由此可以减少电源消耗。The embodiments of the present application provide an electronic device and a control method, which can realize fast startup from power-off to power-on without reducing the functions and codes of the electronic product. In addition, before the user really wants to use the electronic product, the main system can be controlled to be completely powered off, but the control and detection system is in a low-power running state where it is always powered on. When the detection system detects that the user really wants to use the electronic product, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly). When the user operates the electronic product, the main system in the standby mode is woken up, so as to achieve the purpose of fast startup, thereby reducing power consumption.
第一方面,本申请实施例提供了一种电子设备,包括:主系统;以及检测系统,处于常上电状态,具有检测部件和控制部件,其中:上述检测部件至少用于检测上述电子设备是否符合主系统开机条件;上述控制部件至少用于响应于上述检测部件检测到上述电子设备符合上述主系统开机条件,控制上述主系统上电并进入待机模式。In a first aspect, an embodiment of the present application provides an electronic device, including: a main system; and a detection system, which is in a power-on state and has a detection component and a control component, wherein: the detection component is at least used to detect whether the electronic device is The main system startup condition is met; the control component is at least used to control the main system to power on and enter the standby mode in response to the detection component detecting that the electronic device meets the main system startup condition.
第二方面,本申请实施例还提供了另一种电子设备,包括:主系统;以及检测系统,处于常上电状态,具有检测部件和控制部件,其中:上述检测部件至少用于检测处于待机模式或正常工作模式的上述电子设备是否符合主系统关机条件;上述控制部件至少用于响应于上述检测部件检测到上述电子设备符合上述主系统关机条件,控制上述主系统掉电并进入关机模式。In a second aspect, the embodiments of the present application further provide another electronic device, including: a main system; and a detection system, which is in an always-on state and has a detection component and a control component, wherein: the detection component is at least used to detect that the system is in a standby state. Whether the electronic device in the mode or normal working mode meets the shutdown condition of the main system; the control component is at least used to control the main system to power off and enter the shutdown mode in response to the detection component detecting that the electronic device meets the shutdown condition of the main system.
第三方面,本申请实施例还提供了一种控制方法,应用于电子设备,包括:使上述电子设备的检测系统处于常上电状态;响应于上述检测系统处于上电状态,通过上述检测系统执行以下操作:检测上述电子设备是否符合主系统开机条件;响应于检测到上述电子设备符合上述主系统开机条件,控制上述主系统上电并进入待机模式。In a third aspect, an embodiment of the present application further provides a control method, which is applied to an electronic device, including: making the detection system of the electronic device in a power-on state; The following operations are performed: detecting whether the electronic device meets the power-on condition of the main system; in response to detecting that the electronic device meets the power-on condition of the main system, control the main system to power on and enter the standby mode.
第四方面,本申请实施例还提供了另一种控制方法,应用于电子设备,包括:使上述电子设备的检测系统处于常上电状态;响应于上述检测系统处于上电状态,通过上述检测系统执行以下操作:检测处于待机模式或正常工作模式的上述电子设备是否符合主系统关机条件;响应于检测到上述电子设备符合上述主系统关机条件,控制上述主系统掉电并进入关机模式。In a fourth aspect, the embodiments of the present application further provide another control method, which is applied to an electronic device, including: making the detection system of the electronic device in a power-on state; The system performs the following operations: detecting whether the electronic device in standby mode or normal working mode meets the main system shutdown condition; in response to detecting that the electronic device meets the main system shutdown condition, controlling the main system to power off and enter the shutdown mode.
第五方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得所述计算机执行本申请任一实施例的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method of any embodiment of the present application.
第六方面,本申请实施例提供了一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使得所述计算机执行本申请任一实施例的方法。In a sixth aspect, an embodiment of the present application provides a computer program product including instructions, which, when the instructions are executed on a computer, cause the computer to execute the method of any one of the embodiments of the present application.
本申请实施例提供了一种电子设备和控制方法,采用在使用者真正想要使用电子产品之前,控制主系统完全掉电,但控制检测系统处于常上电的低功耗运行状态。当检测系统检测到使用者真正想要使用电子产品时,再控制主系统上电并进入待机模式(即控制主系统隐含性启动)。当用户操作电子 产品时,再将待机模式下的主系统唤醒,从而达到快速启动的目的,由此可以减少电源消耗,同时可以避免缩减产品功能和代码,并且提升用户的操作体验感。The embodiments of the present application provide an electronic device and a control method. Before the user really wants to use the electronic product, the control main system is completely powered off, but the control and detection system is in a low power consumption running state that is always powered on. When the detection system detects that the user really wants to use the electronic product, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly). When the user operates the electronic product, the main system in the standby mode is woken up, so as to achieve the purpose of fast startup, thereby reducing power consumption, avoiding the reduction of product functions and codes, and improving the user's operating experience.
附图说明Description of drawings
图1示意性示出了根据本申请实施例的电子设备的结构图;FIG. 1 schematically shows a structural diagram of an electronic device according to an embodiment of the present application;
图2A~图2C示意性示出了根据本申请实施例的检测部件的结构图;2A to 2C schematically show structural diagrams of detection components according to embodiments of the present application;
图3A~图3B示意性示出了根据本申请另一实施例的电子设备的结构图;3A-3B schematically show structural diagrams of an electronic device according to another embodiment of the present application;
图4示意性示出了根据本申请实施例的控制方法的流程图;FIG. 4 schematically shows a flowchart of a control method according to an embodiment of the present application;
图5示意性示出了根据本申请另一实施例的控制方法的流程图。FIG. 5 schematically shows a flowchart of a control method according to another embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
需要说明的是,在实现本申请实施例的过程中,发明人发现:随着系统功能日趋复杂,电子设备往往需要运行大尺寸的应用程序代码以及复杂的硬件设备驱动程序代码。并且初始化电子设备需要将大量代码从外部存储器加载到内存,因而需要消耗大量时间。比如,典型的基于Android系统的电子设备需要花费近1分钟时间完成启动。It should be noted that, in the process of implementing the embodiments of the present application, the inventor finds that as the system functions become increasingly complex, electronic devices often need to run large-sized application code and complex hardware device driver code. And initializing the electronic device requires loading a large amount of code from the external memory into the internal memory, which consumes a lot of time. For example, a typical Android-based electronic device takes nearly 1 minute to start up.
而相关技术中在解决上述问题时,要么提出缩减系统功能和代码,要么提出整机待机方案,导致实现系统快速启动要么需要牺牲系统功能,要么需要牺牲电源功耗。In the related art, when solving the above problems, it is either proposed to reduce system functions and codes, or to propose a complete machine standby solution, which leads to either sacrificing system functions or power consumption to achieve rapid system startup.
基于此,本申请的发明构思在于,希望能够在以上两种传统方案之间寻找到一种既可以保持系统复杂性,又可以避免整机长期待机而造成电源消耗过多的系统快速启动方法。Based on this, the inventive concept of the present application is to find a quick system startup method between the above two traditional solutions that can not only maintain the complexity of the system, but also avoid excessive power consumption caused by the long-term standby of the whole machine.
本申请实施例提供的电子设备和控制方法可以应用于任何需要快速启动电子产品的应用场景。该控制方法具体可以由电子设备执行,更具体地可以由电子设备的独立于主系统之外的检测系统执行。The electronic device and the control method provided by the embodiments of the present application can be applied to any application scenario that requires a quick start of an electronic product. The control method can be specifically performed by an electronic device, and more specifically, can be performed by a detection system of the electronic device that is independent of the main system.
一方面,本申请实施例提供的电子设备和控制方法,采用在使用者真正想要使用电子产品之前,控制主系统完全掉电,但控制检测系统处于常上电 的低功耗运行状态。当检测系统检测到使用者真正想要使用电子产品时,再控制主系统上电并进入待机模式(即控制主系统隐含性启动)。当用户操作电子产品时,再将待机模式下的主系统唤醒,从而达到快速启动的目的。由此可以减少电源消耗,同时可以避免缩减产品功能和代码,并且提升用户的操作体验感。On the one hand, in the electronic device and control method provided by the embodiments of the present application, before the user really wants to use the electronic product, the control main system is completely powered off, but the control detection system is in a low power consumption running state where the power is always on. When the detection system detects that the user really wants to use the electronic product, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly). When the user operates the electronic product, the main system in the standby mode is woken up, so as to achieve the purpose of fast startup. As a result, power consumption can be reduced, while reducing product functions and codes can be avoided, and the user's operating experience can be improved.
另一方面,本申请实施例提供的电子设备和控制方法,还采用在使用者没有真正使用电子产品时,控制主系统掉电,但控制检测系统处于常上电的低功耗运行状态,由此可以尽量减少电源消耗。当检测系统检测到使用者再次想要使用电子产品时,再控制主系统上电并进入待机模式(即控制主系统隐含性启动)。当用户操作电子产品时,再将待机模式下的主系统唤醒,从而达到快速启动的目的。On the other hand, in the electronic device and the control method provided by the embodiments of the present application, when the user does not actually use the electronic product, the main system is controlled to be powered off, but the control and detection system is in a low power consumption running state where the power is always on, and the This minimizes power consumption. When the detection system detects that the user wants to use the electronic product again, it controls the main system to power on and enter the standby mode (ie, controls the main system to start implicitly). When the user operates the electronic product, the main system in the standby mode is woken up, so as to achieve the purpose of fast startup.
需要说明的是,本申请实施例提供的电子设备可以包括各类手持或者以其他方式便于用户携带的电子产品,例如可以包括各类相机产品。本申请实施例提供的控制方法可以用于在不缩减系统功能和代码的基础上,并在尽量减少电源消耗的情况下,控制各类相机产品快速启动,使得用户可以即时使用相机功能。并且,本申请实施例提供的控制方法还可以在用户不再使用相机功能时控制各类相机产品快速下电,以便尽可能节约电源消耗。It should be noted that, the electronic devices provided in the embodiments of the present application may include various types of electronic products that are hand-held or convenient for users to carry in other ways, for example, may include various types of camera products. The control methods provided by the embodiments of the present application can be used to control various camera products to start quickly without reducing system functions and codes and minimizing power consumption, so that users can use camera functions immediately. In addition, the control method provided by the embodiment of the present application can also control various camera products to power off quickly when the user no longer uses the camera function, so as to save power consumption as much as possible.
此外,本申请实施例提供的电子设备还可以包括其他类别的便携电子设备,本申请在此不做限定。In addition, the electronic devices provided in the embodiments of the present application may also include other types of portable electronic devices, which are not limited in this application.
下面结合附图,对本申请实施例的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some implementations of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
本申请实施例提供了一种电子设备,能够在保持系统复杂性的同时实现系统快速启动,同时节约电源消耗,并且提升用户的操作体验感。The embodiment of the present application provides an electronic device, which can realize the rapid startup of the system while maintaining the complexity of the system, save power consumption, and improve the user's operating experience.
图1示意性示出了根据本申请实施例的电子设备的结构图。如图1所示,该电子设备例如可以包括:主系统10和检测系统20。FIG. 1 schematically shows a structural diagram of an electronic device according to an embodiment of the present application. As shown in FIG. 1 , the electronic device may include, for example, a main system 10 and a detection system 20 .
主系统10可以包括各种操作系统、各种应用系统和各种硬件设备驱动程序。The main system 10 may include various operating systems, various application systems and various hardware device drivers.
检测系统20处于常上电状态,具有检测部件201和控制部件202。The detection system 20 is in a power-on state, and has a detection part 201 and a control part 202 .
其中,检测部件201至少用于检测电子设备是否符合主系统开机条件。Wherein, the detection component 201 is at least used to detect whether the electronic device complies with the power-on condition of the main system.
其中,控制部件202至少用于响应于检测部件201检测到电子设备符合主 系统开机条件,控制主系统10上电并进入待机模式。Wherein, the control part 202 is at least used to control the main system 10 to be powered on and enter the standby mode in response to the detection part 201 detecting that the electronic device meets the power-on condition of the main system.
具体地,在本申请的一个实施例中,上述电子设备可以是相机。Specifically, in an embodiment of the present application, the above-mentioned electronic device may be a camera.
在本申请实施例中,检测系统20处于常上电状态,而主系统10是否需要上电或者是否需要下电则受检测系统20控制。In the embodiment of the present application, the detection system 20 is in a power-on state, and whether the main system 10 needs to be powered on or needs to be powered off is controlled by the detection system 20 .
在一个实施例中,当主系统10处于关机状态时,检测系统20可以通过检测部件201检测电子设备是否符合主系统开机条件,响应于检测部件201检测到该电子设备符合主系统开机条件,再通过控制部件202控制主系统10上电。In one embodiment, when the main system 10 is in a shutdown state, the detection system 20 can use the detection component 201 to detect whether the electronic device complies with the main system power-on condition. The control unit 202 controls the main system 10 to be powered on.
应该理解,在本申请实施例中,由于检测系统20是在用户无感知的情况下检测并控制主系统10上电的,属于隐含性静默启动主系统10,因而启动后可以先控制主系统10进入低功耗自刷新待机模式,而不是直接控制主系统10进入正常工作模式。而待到用户操作电子设备时(如按下任意按键时)再从待机模式唤醒主系统10,使其直接进入正常工作模式,可以给用户增加能够快速开机的体验感。It should be understood that in the embodiment of the present application, since the detection system 20 detects and controls the power-on of the main system 10 without the user's perception, it belongs to the implicit silent startup of the main system 10, so the main system can be controlled first after startup 10 enters a low-power self-refresh standby mode instead of directly controlling the main system 10 to enter a normal operating mode. When the user operates the electronic device (eg, when pressing any key), the main system 10 is woken up from the standby mode to directly enter the normal working mode, which can increase the user's experience of being able to boot quickly.
或者,在一个实施例中,当主系统10处于开机状态(包括处于待机模式和正常工作模式)时,检测系统20还可以通过检测部件201检测电子设备是否符合主系统关机条件,响应于检测部件201检测到该电子设备符合主系统关机条件,再通过控制部件202控制主系统10掉电并进入关机模式。由此可以避免用户没有使用意图但是设备依然长期待机而造成的电源消耗;或者可以避免用户没有使用设备但设备却仍在正常运行而造成的电源消耗。Or, in one embodiment, when the main system 10 is in a power-on state (including in a standby mode and a normal working mode), the detection system 20 can also detect whether the electronic device complies with the main system shutdown condition through the detection component 201, and respond to the detection component 201. It is detected that the electronic device complies with the shutdown condition of the main system, and then the control unit 202 controls the main system 10 to power down and enter the shutdown mode. In this way, the power consumption caused by the device still in standby for a long time without the user's intention to use it can be avoided; or the power consumption caused by the device still running normally when the user does not use the device can be avoided.
需要说明的是,在实现本申请实施例的过程中,发明人还发现:相关技术中在实现快速启动电子设备时,不管用户是否有使用意图,都需要预先控制整个系统全部进入存储器自刷新的待机模式,导致长期待机时需要消耗过多的电源电量。It should be noted that, in the process of implementing the embodiments of the present application, the inventor also found that: in the related art, when realizing the quick start of the electronic device, regardless of whether the user has the intention to use it, it is necessary to control the entire system in advance to enter the memory self-refresh mode. Standby mode, resulting in excessive power consumption during long-term standby.
因而,在本申请实施例中,在控制主系统10开机之前,即在控制主系统10进入待机模式之前,电子设备中可以仅使小系统(检测系统20)处于上电状态。并且,在本申请实施例中,在符合以下条件中的至少之一时(即在检测到用户对电子设备有使用意图时)才控制大系统(主系统10)进入待机模式:电子设备被移动和/或在震动;有用户靠近和/或接触电子设备。Therefore, in this embodiment of the present application, before controlling the main system 10 to power on, that is, before controlling the main system 10 to enter the standby mode, only the small system (detection system 20 ) may be in a powered-on state in the electronic device. Moreover, in this embodiment of the present application, the large system (the main system 10 ) is controlled to enter the standby mode only when at least one of the following conditions is met (that is, when it is detected that the user intends to use the electronic device): the electronic device is moved and /or is vibrating; there is a user approaching and/or touching the electronic device.
这与相关技术中为了快速启动电子设备,不管用户是否有使用意图就直接控制整个系统进行待机模式相比,本申请实施例采用的方式无需主系统10 长时间待机,显然更节能。Compared with the related art, in order to quickly start the electronic device, the whole system is directly controlled to enter the standby mode regardless of whether the user has the intention to use.
为了进一步达到节能目的,在本申请实施例中,可以使在相同时间段内检测系统20处于工作模式的功耗小于主系统10处于待机模式的功耗。具体地,为了实现上述目的,在本申请实施例中,小系统(检测系统20),尤其是小系统(检测系统20)中的控制部件,可以采用功耗更小的单片机和专用芯片实现。因此,在本申请实施例中,即使检测系统20一上电便进入并保持在工作模式,但由于整个设备的其他系统完全处于掉电状态,不消耗任何电力,因而电子设备在整个过程中实际消耗的电源功耗也极低。In order to further achieve the purpose of energy saving, in the embodiment of the present application, the power consumption of the detection system 20 in the working mode may be smaller than the power consumption of the main system 10 in the standby mode within the same time period. Specifically, in order to achieve the above purpose, in the embodiment of the present application, the small system (detection system 20 ), especially the control components in the small system (detection system 20 ), can be implemented by using a single-chip microcomputer and a dedicated chip with lower power consumption. Therefore, in this embodiment of the present application, even if the detection system 20 enters and remains in the working mode as soon as it is powered on, since other systems of the entire device are completely powered off and do not consume any power, the electronic device actually does not consume any power during the entire process. Power consumption is also extremely low.
此外,需要说明的是,在实现本申请实施例的过程中,发明人还发现:在真正使用电子产品之前,使用者通常都需要靠近和/或接触电子产品,有时还会移动电子产品,而移动电子设备可能使电子设备产生震动。因而在本申请实施例中可以将“主系统开机条件”设置为以下至少之一:电子设备被移动和/或在震动;有用户靠近和/或接触电子设备。In addition, it should be noted that in the process of implementing the embodiments of the present application, the inventor also found that: before actually using the electronic product, the user usually needs to approach and/or touch the electronic product, and sometimes move the electronic product, while Moving electronic equipment may cause vibrations in electronic equipment. Therefore, in this embodiment of the present application, the "main system power-on condition" may be set to at least one of the following: the electronic device is moved and/or vibrated; a user approaches and/or contacts the electronic device.
进一步,在本申请实施例中,基于不同的主系统开机条件,检测部件可以设计成不同的结构。示例性的,如图2A所示,检测部件201可以仅包括第一检测模块201A。或者,示例性的,如图2B所示,检测部件201可以仅包括第二检测模块201B。或者,示例性的,如图2C所示,检测部件201可以同时包括第一检测模块201A和第二检测模块201B。其中,第一检测模块201A用于检测电子设备是否被移动和/或在震动,以便确定电子设备是否符合主系统开机条件;第二检测模块201B用于检测是否有用户靠近或接触电子设备,以便确定电子设备是否符合主系统开机条件。Further, in this embodiment of the present application, based on different main system power-on conditions, the detection component may be designed into different structures. Exemplarily, as shown in FIG. 2A , the detection component 201 may only include the first detection module 201A. Or, exemplarily, as shown in FIG. 2B , the detection component 201 may only include the second detection module 201B. Or, exemplarily, as shown in FIG. 2C , the detection component 201 may include a first detection module 201A and a second detection module 201B at the same time. Wherein, the first detection module 201A is used to detect whether the electronic device is moved and/or vibrated, so as to determine whether the electronic device meets the power-on condition of the main system; the second detection module 201B is used to detect whether a user approaches or contacts the electronic device, so as to Determines if the electronics are eligible for the main system power-on.
具体地,在本申请实施例中,第一检测模块可以包括但不限于:惯性测量单元和/或运动传感器等能够用于检测电子设备是否被移动和/或在震动的器件。Specifically, in this embodiment of the present application, the first detection module may include, but is not limited to, an inertial measurement unit and/or a motion sensor and other devices that can be used to detect whether the electronic device is moved and/or vibrated.
具体地,在本申请实施例中,第二检测模块可以包括但不限于:用于检测人体热辐射的生物监测设备等能够用于检测否有用户靠近或接触电子设备的器件。Specifically, in this embodiment of the present application, the second detection module may include, but is not limited to, a device that can be used to detect whether a user approaches or contacts an electronic device, such as a biological monitoring device for detecting human thermal radiation.
进一步,在本申请实施例中,检测系统被配置为独立于电子设备中的其他惯性测量单元、运动传感器和生物监测设备,而专门用于检测电子设备是否符合主系统开机或者关机条件。Further, in this embodiment of the present application, the detection system is configured to be independent of other inertial measurement units, motion sensors, and biological monitoring devices in the electronic device, and is exclusively used to detect whether the electronic device meets the power-on or power-off condition of the main system.
此外,需要说明的是,在实现本申请实施例的过程中,发明人还发现:有些时候,用户仅仅是由于某些原因靠近和/或接触了电子产品,甚至有时还移动了电子产品,但用户实际上并没有使用意图,这种情况不需要将电子设备从待机模式唤醒。发明人还发现:通常情况下,用户真正想要使用电子设备时,都会对其执行相关用户操作,如按下开机按键等。因而,在本申请实施例中,在控制主系统上电并进入待机模式后,检测系统还可以通过检测是否有用户操作来决定控制主系统掉电还是进入正常工作模式。In addition, it should be noted that in the process of implementing the embodiments of the present application, the inventor also found that: sometimes, the user approaches and/or touches the electronic product for some reason, and even sometimes moves the electronic product, but The user has no actual intent to use, and this situation does not require waking the electronic device from standby mode. The inventor also found that: under normal circumstances, when the user really wants to use the electronic device, he will perform relevant user operations on it, such as pressing the power-on button. Therefore, in the embodiment of the present application, after controlling the main system to power on and enter the standby mode, the detection system can also determine whether to control the main system to power down or enter the normal working mode by detecting whether there is a user operation.
具体地,在本申请实施例中,检测部件还用于响应于主系统处于待机模式,检测是否存在针对电子设备的用户操作,控制部件还用于响应于主系统的待机时长达到预设值(如2min),且检测部件尚未检测到存在针对电子设备的用户操作,控制主系统掉电并进入关机模式。控制部件还用于响应于主系统的待机时长尚未达到预设值,且检测部件已检测到存在针对电子设备的用户操作,控制主系统进入正常工作模式。Specifically, in this embodiment of the present application, the detection component is further configured to detect whether there is a user operation on the electronic device in response to the main system being in the standby mode, and the control component is further configured to respond to the standby time of the main system reaching a preset value ( For example, 2 minutes), and the detection component has not detected that there is a user operation for the electronic device, control the main system to power off and enter the shutdown mode. The control component is further configured to control the main system to enter a normal working mode in response to the standby time of the main system not reaching a preset value and the detection component having detected that there is a user operation on the electronic device.
示例性的,可以设定主系统的最长待机时长为2min,在此过程中,检测部件可以检测用户是否按下电源按钮。一旦用户按下电源按钮,则执行从待机自刷新模式唤醒主系统的动作,使得主系统快速进入全速运行状态(正常工作模式)。如果用户一直没有按下电源按钮,并且主系统的待机时长已达到设定的最大值,则检测系统关闭主系统的供电通路,使其进入关机状态。Exemplarily, the longest standby time of the main system may be set to 2 minutes, and during this process, the detection component may detect whether the user presses the power button. Once the user presses the power button, the action of waking up the main system from the standby self-refresh mode is performed, so that the main system quickly enters a full-speed running state (normal working mode). If the user has not pressed the power button, and the standby time of the main system has reached the set maximum value, the detection system closes the power supply path of the main system to make it enter the shutdown state.
在本申请实施例中,该电子设备还可以包括:电池和/或能量收集部件,其中,检测系统可以通过电池和/或能量收集部件供电而实现上电并进入开机检测模式。In this embodiment of the present application, the electronic device may further include: a battery and/or an energy harvesting component, wherein the detection system may be powered on by the battery and/or the energy harvesting component to implement power-on and enter a power-on detection mode.
具体地,在一个实施例中,当用户将电池插入电子设备时,检测系统可以立刻上电并进入开机、关机检测模式。或者,在另一个实施例中,能量收集部件中收集到能量时,检测系统可以立刻上电并进入开机、关机检测模式。或者,在另一个实施例中,当该电子设备同时包括电池和能量收集部件时,检测系统可以优先利用能量收集部件中收集到能量上电并进入开机、关机检测模式。Specifically, in one embodiment, when the user inserts the battery into the electronic device, the detection system can be powered on immediately and enter the power-on and power-off detection modes. Or, in another embodiment, when the energy is collected in the energy collection component, the detection system can be powered on immediately and enter the power-on and power-off detection modes. Or, in another embodiment, when the electronic device includes both a battery and an energy harvesting component, the detection system can preferentially use the energy collected in the energy harvesting component to power on and enter a power-on and power-off detection mode.
进一步,在本申请实施例中,该电子设备还可以包括:电源开关。电源开关,具有控制端和两个连接端,两个连接端中的一个与电池和/或能量收集 部件的输出端连接,另一个与主系统的输入端连接,控制端与控制部件连接;控制部件响应于电子设备符合主系统开机条件,向控制端输出开机信号,以便电源开关基于开机信号使电池和/或能量收集部件的输出端与主系统的输入端电连接。Further, in this embodiment of the present application, the electronic device may further include: a power switch. A power switch, with a control end and two connection ends, one of the two connection ends is connected to the output end of the battery and/or the energy collection part, the other is connected to the input end of the main system, and the control end is connected to the control part; control The component outputs a power-on signal to the control terminal in response to the electronic device meeting the power-on condition of the main system, so that the power switch electrically connects the output terminal of the battery and/or the energy harvesting component with the input terminal of the main system based on the power-on signal.
示例性的,电子设备仅由电池301A供电时,各部件之间(包括电池301A、电源开关30、主系统10和检测系统20)的连接关系如图3A所示。示例性的,电子设备仅由能量收集部件301B供电时,各部件之间(包括能量收集部件301B、电源开关30、主系统10和检测系统20)的连接关系如图3B所示。Exemplarily, when the electronic device is only powered by the battery 301A, the connection relationship between the various components (including the battery 301A, the power switch 30, the main system 10 and the detection system 20) is shown in FIG. 3A . Exemplarily, when the electronic device is powered only by the energy harvesting component 301B, the connection relationship between the components (including the energy harvesting component 301B, the power switch 30, the main system 10 and the detection system 20) is shown in FIG. 3B .
应该理解,采用本申请提供的电子设备后,能够有效地平衡快速启动与复杂系统以及电源功耗之间的矛盾。并且检测系统以较小的电量消耗检测可能发生的运动、震动、接触和靠近等,从而提前给主系统上电。主系统隐含性启动后处于待机状态,例如当用户真正按下电源按钮时快速控制主系统进入全速运行状态,从而达到快速启动的目的。It should be understood that, after using the electronic device provided by the present application, the contradiction between fast startup, complex system and power consumption can be effectively balanced. And the detection system detects possible movement, vibration, contact and approach with a small power consumption, so as to power on the main system in advance. The main system is in a standby state after implicit startup, for example, when the user really presses the power button, the main system is quickly controlled to enter a full-speed running state, so as to achieve the purpose of fast startup.
本申请实施例还提供了另一种电子设备,能够在保持系统复杂性的同时实现系统快速关机,以节约电源消耗。The embodiment of the present application further provides another electronic device, which can quickly shut down the system while maintaining the complexity of the system, so as to save power consumption.
在本申请实施例中,该电子设备可以包括:主系统和检测系统。该检测系统处于常上电状态,具有检测部件和控制部件。其中,检测部件至少用于检测处于待机模式或正常工作模式的电子设备是否符合主系统关机条件;控制部件至少用于响应于检测部件检测到电子设备符合主系统关机条件,控制主系统掉电并进入关机模式。In this embodiment of the present application, the electronic device may include: a main system and a detection system. The detection system is always powered on and has detection components and control components. The detection component is at least used to detect whether the electronic device in standby mode or normal working mode meets the shutdown condition of the main system; the control component is at least used to control the main system to power down and control the main system to be powered off in response to the detection component detecting that the electronic device meets the shutdown condition of the main system. Enter shutdown mode.
在本申请实施例中,主系统可以包括各种操作系统、各种应用系统和各种硬件设备驱动程序。In this embodiment of the present application, the main system may include various operating systems, various application systems, and various hardware device drivers.
具体地,在本申请的一个实施例中,上述电子设备可以是相机。Specifically, in an embodiment of the present application, the above-mentioned electronic device may be a camera.
在本申请实施例中,检测系统处于常上电状态,而主系统是否需要上电或者是否需要下电则受检测系统控制。In the embodiment of the present application, the detection system is in a power-on state, and whether the main system needs to be powered on or needs to be powered off is controlled by the detection system.
在一个实施例中,当主系统处于开机状态(包括处于待机模式和正常工作模式)时,检测系统还可以通过检测部件检测电子设备是否符合主系统关机条件,响应于检测部件检测到该电子设备符合主系统关机条件,再通过控制部件控制主系统掉电并进入关机模式。由此可以避免用户没有使用意图但是设备依然长期待机而造成的电源消耗;或者可以避免用户没有使用设备但 设备却仍在正常运行而造成的电源消耗。In one embodiment, when the main system is in a power-on state (including in a standby mode and a normal working mode), the detection system can also detect whether the electronic device meets the shutdown condition of the main system through the detection component, and in response to the detection component detecting that the electronic device meets the shutdown condition The main system shutdown condition, and then control the main system to power down and enter the shutdown mode through the control component. In this way, the power consumption caused by the device still in standby for a long time without the user's intention to use it can be avoided; or the power consumption caused by the user not using the device but the device is still running normally can be avoided.
需要说明的是,在实现本申请实施例的过程中,发明人发现:有些时候,用户仅仅是由于某些原因靠近和/或接触了电子产品,甚至有时还移动了电子产品,但用户实际上并没有使用意图,这种情况不仅需要将电子设备从待机模式唤醒,而且还需要及时控制主系统关机,以便节约能耗。发明人还发现:通常情况下,用户真正想要使用电子设备时,都会对其执行相关用户操作,如按下开机按键,不断触摸电子设备等。因而,在本申请实施例中,在控制主系统上电并进入待机模式后或者控制主系统进入正常工作模式后,检测系统还可以通过检测是否有用户操作来决定控制主系统掉电还是进入或保持正常工作模式。发明人还发现:在真正使用电子产品之前,使用者通常都需要靠近和/或接触电子产品,有时还会移动电子产品,而移动电子设备可能使电子设备产生震动。It should be noted that, in the process of implementing the embodiments of the present application, the inventor found that: sometimes, the user approaches and/or touches the electronic product for some reason, and even sometimes moves the electronic product, but the user actually With no intention of use, this situation requires not only waking up the electronic device from standby mode, but also controlling the shutdown of the main system in a timely manner in order to save energy. The inventor also found that: under normal circumstances, when a user really wants to use an electronic device, he/she will perform relevant user operations on it, such as pressing the power-on button, continuously touching the electronic device, and the like. Therefore, in the embodiment of the present application, after controlling the main system to power on and enter the standby mode or after controlling the main system to enter the normal working mode, the detection system can also determine whether to control the main system to power down or enter or enter or not by detecting whether there is a user operation. Keep normal working mode. The inventor also found that: before actually using the electronic product, the user usually needs to approach and/or touch the electronic product, and sometimes moves the electronic product, and the moving electronic device may cause the electronic device to vibrate.
因此,在本申请实施例中,主系统关机条件可以设定为包括以下至少之一:主系统的待机时长达到预设值时;主系统的待机时长达到预设值,且不存在针对电子设备的用户操作时;主系统的待机时长达到预设值,且没有用户靠近或接触电子设备时;主系统的待机时长达到预设值,且电子设备没有移动或震动时;主系统处在正常工作模式下,且在持续的第一预设时间段内没有用户靠近或接触电子设备时;主系统处在正常工作模式下,且在持续的第二预设时间段内不存在针对电子设备的用户操作时;主系统处在正常工作模式下,且在持续的第三预设时间段内电子设备没有移动或震动时。其中,第一预设时间段、第二预设时间段和第三预设时间段彼此可以等时长或者不等时长,本申请实施例在此不做限定。例如,三个时间段的时长均可以为5min。Therefore, in this embodiment of the present application, the shutdown condition of the main system may be set to include at least one of the following: when the standby time of the main system reaches a preset value; When the main system’s standby time reaches the preset value, and no user approaches or touches the electronic device; when the main system’s standby time reaches the preset value, and the electronic device does not move or vibrate; the main system is working normally mode, and there is no user approaching or touching the electronic device during the continuous first preset time period; the main system is in the normal working mode, and there is no user for the electronic device during the continuous second preset time period During operation; when the main system is in the normal working mode, and the electronic device does not move or vibrate for the third preset time period. Wherein, the first preset time period, the second preset time period, and the third preset time period may be equal in duration or unequal in duration, which is not limited in this embodiment of the present application. For example, the duration of each of the three time periods may be 5 minutes.
示例性的,在一个实施例中,当电子设备的主系统处于待机模式后,无论是否有用户靠近或者接触或者移动电子设备,只要没有接收到用户发出的操作指令,则待机时长达到预设值(如2min)可以自动控制主系统掉电并进入关机模式。Exemplarily, in one embodiment, when the main system of the electronic device is in the standby mode, no matter whether a user approaches or contacts or moves the electronic device, as long as no operation instruction issued by the user is received, the standby time reaches a preset value. (eg 2min) can automatically control the main system to power down and enter shutdown mode.
或者,在另一个实施例中,可以设定主系统的最长待机时长为2min,当电子设备的主系统处于待机模式后,在此过程中,检测部件可以检测用户是否按下电源按钮。一旦用户按下电源按钮,则执行从待机自刷新模式唤醒主系统的动作,使得主系统快速进入全速运行状态(正常工作模式)。如果用户一直没有按下电源按钮,并且主系统的待机时长已达到设定的最大值,则 检测系统关闭主系统的供电通路,使其进入关机状态。Or, in another embodiment, the longest standby time of the main system can be set to 2 minutes. When the main system of the electronic device is in standby mode, the detection component can detect whether the user presses the power button during this process. Once the user presses the power button, the action of waking up the main system from the standby self-refresh mode is performed, so that the main system quickly enters a full-speed running state (normal working mode). If the user has not pressed the power button and the standby time of the main system has reached the set maximum value, the detection system will turn off the power supply path of the main system and make it enter the shutdown state.
示例性的,在另一个实施例中,当主系统进入正常工作模式后,在此过程中,检测部件可以检测在连续时间段内(如5min)是否有用户靠近或接触电子设备、电子设备是否有移动或震动、是否存在针对电子设备的用户操作行为等。如果上述条件均不满足,则控制电子设备的主系统掉电并进入关机模式。Exemplarily, in another embodiment, after the main system enters the normal working mode, during this process, the detection component can detect whether a user approaches or contacts the electronic device within a continuous period of time (such as 5 minutes), whether the electronic device has Movement or vibration, whether there is user operation behavior for electronic equipment, etc. If none of the above conditions are satisfied, the main system of the control electronic device is powered off and enters a shutdown mode.
应该理解,采用本申请提供的电子设备后,能够有效地平衡快速启动与复杂系统以及电源功耗之间的矛盾。并且检测系统以较小的电量消耗检测可能发生的运动、震动、接触和靠近等,从而及时控制主系统掉电,以便节约电源能耗。It should be understood that, after using the electronic device provided by the present application, the contradiction between fast startup, complex system and power consumption can be effectively balanced. And the detection system detects possible movement, vibration, contact and approach with a small power consumption, so as to timely control the main system to power down, so as to save power consumption.
本申请实施例还提供了一种应用与电子设备的控制方法,能够在保持系统复杂性的同时实现系统快速启动,同时节约电源消耗。The embodiments of the present application also provide a control method for an application and an electronic device, which can achieve a rapid system startup while maintaining the complexity of the system, and save power consumption at the same time.
图4示意性示出了根据本申请实施例的控制方法的流程图。本实施例的执行主体可以为电子设备,具体可以为电子设备的检测系统。如图4所示,该方法例如可以包括操作S401~操作S404。FIG. 4 schematically shows a flowchart of a control method according to an embodiment of the present application. The execution body of this embodiment may be an electronic device, and specifically may be a detection system of the electronic device. As shown in FIG. 4 , the method may include, for example, operations S401 to S404.
在操作S401,使电子设备的检测系统处于常上电状态。In operation S401, the detection system of the electronic device is kept in a power-on state.
在操作S402,响应于检测系统处于上电状态,通过检测系统执行以下操作S403~S404。In operation S402, in response to the detection system being in a power-on state, the following operations S403-S404 are performed by the detection system.
操作S403,检测电子设备是否符合主系统开机条件。In operation S403, it is detected whether the electronic device meets the booting condition of the main system.
操作S404,响应于检测到电子设备符合主系统开机条件,控制主系统上电并进入待机模式。In operation S404, in response to detecting that the electronic device meets the power-on condition of the main system, the main system is controlled to be powered on and enter a standby mode.
作为一种可以选的实施例,检测电子设备是否符合主系统开机条件,包括以下至少之一:检测电子设备是否被移动和/或在震动;检测是否有用户靠近或接触电子设备。As an optional embodiment, detecting whether the electronic device meets the main system power-on condition includes at least one of the following: detecting whether the electronic device is moved and/or vibrating; detecting whether a user approaches or contacts the electronic device.
作为一种可选的实施例,该方法还包括:响应于主系统处于待机模式,检测是否存在针对电子设备的用户操作;以及响应于主系统的待机时长达到预设值,且尚未检测到存在针对电子设备的用户操作,控制主系统掉电并进入关机模式。As an optional embodiment, the method further includes: in response to the main system being in a standby mode, detecting whether there is a user operation for the electronic device; and in response to the standby time of the main system reaching a preset value, and no existence has been detected yet For user operation of electronic equipment, control the main system to power down and enter shutdown mode.
作为一种可选的实施例,该方法还包括:响应于主系统的待机时长尚未达到预设值,且检测到存在针对电子设备的用户操作,控制主系统进入正常 工作模式。As an optional embodiment, the method further includes: in response to the standby time of the main system not reaching a preset value and detecting that there is a user operation on the electronic device, controlling the main system to enter a normal working mode.
作为一种可选的实施例,使电子设备的检测系统处于常上电状态,包括以下至少之一:通过将电池接入电子设备而使检测系统上电并进入开机检测模式;利用能量收集部件收集的能量使检测系统上电并进入开机检测模式。As an optional embodiment, making the detection system of the electronic device in the always-on state includes at least one of the following: the detection system is powered on and enters the power-on detection mode by connecting the battery to the electronic device; using the energy harvesting component The harvested energy powers up the detection system and enters a power-on detection mode.
作为一种可选的实施例,电子设备还包括:电源开关,具有控制端和两个连接端,两个连接端中的一个与电池和/或能量收集部件的输出端连接,另一个与主系统的输入端连接,控制端与控制部件连接;方法还包括:响应于电子设备符合主系统开机条件,通过控制部件向控制端输出开机信号,以便电源开关基于开机信号使电池和/或能量收集部件的输出端与主系统的输入端电连接。As an optional embodiment, the electronic device further includes: a power switch, which has a control end and two connection ends, one of the two connection ends is connected to the output end of the battery and/or the energy collection component, and the other is connected to the main The input end of the system is connected, and the control end is connected to the control part; the method further includes: in response to the electronic equipment meeting the power-on condition of the main system, outputting a power-on signal to the control end through the control part, so that the power switch enables the battery and/or energy to collect based on the power-on signal The output of the component is electrically connected to the input of the main system.
作为一种可选的实施例,在相同时间段内检测系统处于工作模式的功耗小于主系统处于待机模式的功耗。As an optional embodiment, the power consumption of the detection system in the working mode is smaller than the power consumption of the main system in the standby mode within the same time period.
作为一种可选的实施例,在主系统处于待机模式之前,电子设备中仅检测系统处于上电状态。As an optional embodiment, before the main system is in the standby mode, the electronic device only detects that the system is in a power-on state.
应该理解,本申请方法部分的实施例与对应的装置部分的实施例相同或者类似,所达到的技术效果,以及所解决的技术问题也对应相同或者类似,在此不再赘述。It should be understood that the embodiments of the method part of the present application are the same or similar to the embodiments of the corresponding device part, and the technical effects achieved and the technical problems solved are correspondingly the same or similar, and are not repeated here.
本申请实施例还提供了另一种控制方法,能够在保持系统复杂性的同时实现系统快速关机,以节约电源消耗。The embodiment of the present application also provides another control method, which can realize rapid shutdown of the system while maintaining the complexity of the system, so as to save power consumption.
图5示意性示出了根据本申请另一实施例的控制方法的流程图。本实施例的执行主体可以为电子设备,具体可以为电子设备的检测系统。如图5所示,该方法例如可以包括操作S501~操作S502。FIG. 5 schematically shows a flowchart of a control method according to another embodiment of the present application. The execution body of this embodiment may be an electronic device, and specifically may be a detection system of the electronic device. As shown in FIG. 5 , the method may include, for example, operations S501 to S502.
操作S501,使电子设备的检测系统处于常上电状态。In operation S501, the detection system of the electronic device is kept in a power-on state.
操作S502,响应于检测系统处于上电状态,通过检测系统执行以下操作S503~S504。In operation S502, in response to the detection system being in the power-on state, the following operations S503-S504 are performed by the detection system.
操作S503,检测处于待机模式或正常工作模式的电子设备是否符合主系统关机条件。In operation S503, it is detected whether the electronic device in the standby mode or the normal working mode meets the shutdown condition of the main system.
操作S504,响应于检测到电子设备符合主系统关机条件,控制主系统掉电并进入关机模式。Operation S504, in response to detecting that the electronic device meets the shutdown condition of the main system, control the main system to power down and enter a shutdown mode.
作为一种可选的实施例,检测处于待机模式的电子设备是否符合主系统 关机条件,包括执行以下操作中的任意一个:检测主系统的待机时长是否达到预设值;检测主系统的待机时长是否达到预设值,且检测在待机时长达到预设值之前是否存在针对电子设备的用户操作;检测主系统的待机时长是否达到预设值,且检测在待机时长达到预设值之前是否有用户靠近或接触电子设备;检测主系统的待机时长是否达到预设值,且检测在待机时长达到预设值之前电子设备是否有移动或震动。As an optional embodiment, detecting whether the electronic device in the standby mode meets the shutdown condition of the main system includes performing any one of the following operations: detecting whether the standby duration of the main system reaches a preset value; detecting the standby duration of the main system Whether the preset value is reached, and whether there is a user operation on the electronic device before the standby time reaches the preset value; Detect whether the standby time of the main system reaches the preset value, and detect whether there is a user before the standby time reaches the preset value. Approach or touch the electronic device; detect whether the standby time of the main system reaches the preset value, and detect whether the electronic device moves or vibrates before the standby time reaches the preset value.
作为一种可选的实施例,检测处于正常工作模式的电子设备是否符合主系统关机条件,包括在主系统处在正常工作模式下,执行以下操作中的任意一个:检测在持续的第一预设时间段内是否有用户靠近或接触电子设备;检测在持续的第二预设时间段内是否存在针对电子设备的用户操作;检测在持续的第三预设时间段内电子设备是否有移动或震动。As an optional embodiment, detecting whether the electronic device in the normal working mode meets the shutdown condition of the main system includes performing any one of the following operations when the main system is in the normal working mode: Set whether there is a user approaching or touching the electronic device within a set time period; detect whether there is a user operation on the electronic device within a continuous second preset time period; detect whether the electronic device has moved or shock.
应该理解,本申请方法部分的实施例与对应的装置部分的实施例相同或者类似,所达到的技术效果,以及所解决的技术问题也对应相同或者类似,在此不再赘述。It should be understood that the embodiments of the method part of the present application are the same or similar to the embodiments of the corresponding device part, and the technical effects achieved and the technical problems solved are correspondingly the same or similar, and are not repeated here.
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行本申请实施例任一项的方法,本申请在此不再赘述。The embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when run on a computer, enable the computer to execute any method of any of the embodiments of the present application, which are not described herein again.
本申请实施例还提供了一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行本申请实施例任一项的方法,本申请在此不再赘述。The embodiments of the present application also provide a computer program product including instructions, when the instructions are run on the computer, the computer executes the method of any one of the embodiments of the present application, and details are not described herein again.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者通过计算机可读存储介质进行传输。计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含 一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted over a computer-readable storage medium. Computer instructions may be sent from one website site, computer, server, or data center to another website site, computer, via wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , server or data center for transmission. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. Scope.

Claims (28)

  1. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    主系统;以及main system; and
    检测系统,处于常上电状态,具有检测部件和控制部件,The detection system, which is always powered on, has detection components and control components,
    其中:in:
    所述检测部件至少用于检测所述电子设备是否符合主系统开机条件;The detection component is at least used to detect whether the electronic device meets the power-on condition of the main system;
    所述控制部件至少用于响应于所述检测部件检测到所述电子设备符合所述主系统开机条件,控制所述主系统上电并进入待机模式。The control component is at least configured to control the main system to power on and enter a standby mode in response to the detection component detecting that the electronic device meets the power-on condition of the main system.
  2. 根据权利要求1所述的电子设备,其特征在于,所述检测部件包括以下至少之一:The electronic device according to claim 1, wherein the detection component comprises at least one of the following:
    第一检测模块,用于检测所述电子设备是否被移动和/或在震动,以便确定所述电子设备是否符合主系统开机条件;a first detection module, configured to detect whether the electronic device is moved and/or vibrated, so as to determine whether the electronic device meets the power-on condition of the main system;
    第二检测模块,用于检测是否有用户靠近或接触所述电子设备,以便确定所述电子设备是否符合主系统开机条件。The second detection module is used for detecting whether a user approaches or contacts the electronic device, so as to determine whether the electronic device meets the power-on condition of the main system.
  3. 根据权利要求1或2所述的电子设备,其特征在于:The electronic device according to claim 1 or 2, characterized in that:
    所述检测部件还用于响应于所述主系统处于待机模式,检测是否存在针对所述电子设备的用户操作;以及The detection component is further configured to detect whether there is a user operation for the electronic device in response to the main system being in the standby mode; and
    所述控制部件还用于响应于所述主系统的待机时长达到预设值,且所述检测部件尚未检测到存在针对所述电子设备的用户操作,控制所述主系统掉电并进入关机模式。The control component is further configured to control the main system to power off and enter a shutdown mode in response to the standby time of the main system reaching a preset value and the detection component has not detected that there is a user operation on the electronic device .
  4. 根据权利要求3所述的电子设备,其特征在于,所述控制部件还用于响应于所述主系统的待机时长尚未达到所述预设值,且所述检测部件已检测到存在针对所述电子设备的用户操作,控制所述主系统进入正常工作模式。The electronic device according to claim 3, wherein the control component is further configured to respond that the standby time of the main system has not reached the preset value, and the detection component has detected that there is a The user operation of the electronic device controls the main system to enter the normal working mode.
  5. 根据权利要求1所述的电子设备,其特征在于,还包括:电池和/或能量收集部件,其中,The electronic device according to claim 1, further comprising: a battery and/or an energy harvesting component, wherein,
    所述检测系统通过所述电池和/或所述能量收集部件供电而实现上电并进入开机检测模式。The detection system is powered on by the battery and/or the energy harvesting component and enters a power-on detection mode.
  6. 根据权利要求5所述的电子设备,其特征在于,还包括:The electronic device according to claim 5, further comprising:
    电源开关,具有控制端和两个连接端,所述两个连接端中的一个与所述电池和/或所述能量收集部件的输出端连接,另一个与所述主系统的输入端连 接,所述控制端与所述控制部件连接;a power switch, having a control end and two connection ends, one of the two connection ends is connected to the output end of the battery and/or the energy harvesting component, and the other is connected to the input end of the main system, the control terminal is connected with the control component;
    所述控制部件响应于所述电子设备符合所述主系统开机条件,向所述控制端输出开机信号,以便所述电源开关基于所述开机信号使所述电池和/或所述能量收集部件的输出端与所述主系统的输入端电连接。The control unit outputs a power-on signal to the control terminal in response to the electronic device meeting the power-on condition of the main system, so that the power switch enables the battery and/or the energy harvesting unit based on the power-on signal. The output terminal is electrically connected to the input terminal of the main system.
  7. 根据权利要求1至6中任一项所述的电子设备,其特征在于,所述电子设备包括:相机。The electronic device according to any one of claims 1 to 6, wherein the electronic device comprises: a camera.
  8. 根据权利要求1至7中任一项所述的电子设备,其特征在于,在相同时间段内所述检测系统处于工作模式的功耗小于所述主系统处于待机模式的功耗。The electronic device according to any one of claims 1 to 7, wherein the power consumption of the detection system in the working mode is smaller than the power consumption of the main system in the standby mode in the same time period.
  9. 根据权利要求1所述的电子设备,其特征在于,在所述主系统处于所述待机模式之前,所述电子设备中仅所述检测系统处于上电状态。The electronic device according to claim 1, wherein before the main system is in the standby mode, only the detection system in the electronic device is in a power-on state.
  10. 根据权利要求2所述的电子设备,其特征在于,所述第一检测模块包括:惯性测量单元和/或运动传感器。The electronic device according to claim 2, wherein the first detection module comprises: an inertial measurement unit and/or a motion sensor.
  11. 根据权利要求2所述的电子设备,其特征在于,所述第二检测模块包括:用于检测人体热辐射的生物监测设备。The electronic device according to claim 2, wherein the second detection module comprises: a biological monitoring device for detecting human thermal radiation.
  12. 根据权利要求10或11所述的电子设备,其特征在于,所述检测系统被配置为独立于所述电子设备中的其他惯性测量单元、运动传感器和生物监测设备。11. The electronic device of claim 10 or 11, wherein the detection system is configured independently of other inertial measurement units, motion sensors and bio-monitoring devices in the electronic device.
  13. 根据权利要求1所述的电子设备,其特征在于,所述控制部件包括:单片机。The electronic device according to claim 1, wherein the control component comprises: a single-chip microcomputer.
  14. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    主系统;以及main system; and
    检测系统,处于常上电状态,具有检测部件和控制部件,The detection system, which is always powered on, has detection components and control components,
    其中:in:
    所述检测部件至少用于检测处于待机模式或正常工作模式的所述电子设备是否符合主系统关机条件;The detection component is at least used to detect whether the electronic device in the standby mode or the normal working mode complies with the shutdown condition of the main system;
    所述控制部件至少用于响应于所述检测部件检测到所述电子设备符合所述主系统关机条件,控制所述主系统掉电并进入关机模式。The control component is at least configured to control the main system to power down and enter a shutdown mode in response to the detection component detecting that the electronic device meets the shutdown condition of the main system.
  15. 根据权利要求14所述的电子设备,其特征在于,所述主系统关机条件包括以下至少之一:The electronic device according to claim 14, wherein the main system shutdown condition includes at least one of the following:
    所述主系统的待机时长达到预设值时;When the standby time of the main system reaches a preset value;
    所述主系统的待机时长达到预设值,且不存在针对所述电子设备的用户操作时;When the standby time of the main system reaches a preset value, and there is no user operation for the electronic device;
    所述主系统的待机时长达到预设值,且没有用户靠近或接触所述电子设备时;When the standby time of the main system reaches a preset value, and no user approaches or touches the electronic device;
    所述主系统的待机时长达到预设值,且所述电子设备没有移动或震动时;When the standby time of the main system reaches a preset value, and the electronic device does not move or vibrate;
    所述主系统处在正常工作模式下,且在持续的第一预设时间段内没有用户靠近或接触所述电子设备时;when the main system is in the normal working mode, and no user approaches or touches the electronic device for a continuous first preset time period;
    所述主系统处在正常工作模式下,且在持续的第二预设时间段内不存在针对所述电子设备的用户操作时;When the main system is in the normal working mode, and there is no user operation for the electronic device within a second preset time period;
    所述主系统处在正常工作模式下,且在持续的第三预设时间段内所述电子设备没有移动或震动时。The main system is in the normal working mode, and the electronic device does not move or vibrate for a third preset time period.
  16. 一种控制方法,应用于电子设备,其特征在于,A control method, applied to electronic equipment, characterized in that:
    使所述电子设备的检测系统处于常上电状态;making the detection system of the electronic device in a constant power-on state;
    响应于所述检测系统处于上电状态,通过所述检测系统执行以下操作:In response to the detection system being powered on, the following operations are performed by the detection system:
    检测所述电子设备是否符合主系统开机条件;Detecting whether the electronic device complies with the power-on conditions of the main system;
    响应于检测到所述电子设备符合所述主系统开机条件,控制所述主系统上电并进入待机模式。In response to detecting that the electronic device meets the power-on condition of the main system, the main system is controlled to be powered on and enter a standby mode.
  17. 根据权利要求16所述的方法,其特征在于,所述检测所述电子设备是否符合主系统开机条件,包括以下至少之一:The method according to claim 16, wherein the detecting whether the electronic device meets the booting condition of the main system comprises at least one of the following:
    检测所述电子设备是否被移动和/或在震动;detect whether the electronic device is moved and/or vibrated;
    检测是否有用户靠近或接触所述电子设备。It is detected whether a user is approaching or touching the electronic device.
  18. 根据权利要求16所述的方法,其特征在于,还包括:The method of claim 16, further comprising:
    响应于所述主系统处于待机模式,检测是否存在针对所述电子设备的用户操作;以及in response to the host system being in a standby mode, detecting whether there is a user operation with respect to the electronic device; and
    响应于所述主系统的待机时长达到预设值,且尚未检测到存在针对所述电子设备的用户操作,控制所述主系统掉电并进入关机模式。In response to the standby time length of the main system reaching a preset value and no user operation for the electronic device has been detected, the main system is controlled to power down and enter a shutdown mode.
  19. 根据权利要求18所述的方法,其特征在于,还包括:The method of claim 18, further comprising:
    响应于所述主系统的待机时长尚未达到所述预设值,且检测到存在针对所述电子设备的用户操作,控制所述主系统进入正常工作模式。In response to the standby time period of the main system not reaching the preset value and detecting that there is a user operation on the electronic device, the main system is controlled to enter a normal working mode.
  20. 根据权利要求16所述的方法,其特征在于,所述使所述电子设备的 检测系统处于常上电状态,包括以下至少之一:The method according to claim 16, characterized in that, making the detection system of the electronic device in a normally powered-on state comprises at least one of the following:
    通过将电池接入所述电子设备而使所述检测系统上电并进入开机检测模式;Power up the detection system and enter a power-on detection mode by connecting a battery to the electronic device;
    利用能量收集部件收集的能量使所述检测系统上电并进入开机检测模式。The detection system is powered up and enters a power-on detection mode using the energy collected by the energy harvesting components.
  21. 根据权利要求20所述的方法,其特征在于:The method of claim 20, wherein:
    所述电子设备还包括:电源开关,具有控制端和两个连接端,所述两个连接端中的一个与所述电池和/或所述能量收集部件的输出端连接,另一个与所述主系统的输入端连接,所述控制端与所述控制部件连接;The electronic device further comprises: a power switch with a control end and two connection ends, one of the two connection ends is connected to the output end of the battery and/or the energy collection component, and the other is connected to the The input end of the main system is connected, and the control end is connected with the control component;
    所述方法还包括:The method also includes:
    响应于所述电子设备符合所述主系统开机条件,通过所述控制部件向所述控制端输出开机信号,以便所述电源开关基于所述开机信号使所述电池和/或所述能量收集部件的输出端与所述主系统的输入端电连接。In response to the electronic device meeting the power-on condition of the main system, outputting a power-on signal to the control terminal through the control unit, so that the power switch enables the battery and/or the energy harvesting unit based on the power-on signal The output terminal is electrically connected to the input terminal of the main system.
  22. 根据权利要求16所述的方法,其特征在于,在相同时间段内所述检测系统处于工作模式的功耗小于所述主系统处于待机模式的功耗。The method according to claim 16, wherein the power consumption of the detection system in the working mode is smaller than the power consumption of the main system in the standby mode in the same time period.
  23. 根据权利要求16所述的方法,其特征在于,在所述主系统处于所述待机模式之前,所述电子设备中仅所述检测系统处于上电状态。The method according to claim 16, wherein before the main system is in the standby mode, only the detection system in the electronic device is in a power-on state.
  24. 一种控制方法,应用于电子设备,其特征在于,包括:A control method, applied to electronic equipment, is characterized in that, comprising:
    使所述电子设备的检测系统处于常上电状态;making the detection system of the electronic device in a constant power-on state;
    响应于所述检测系统处于上电状态,通过所述检测系统执行以下操作:In response to the detection system being powered on, the following operations are performed by the detection system:
    检测处于待机模式或正常工作模式的所述电子设备是否符合主系统关机条件;Detecting whether the electronic device in the standby mode or the normal working mode complies with the shutdown condition of the main system;
    响应于检测到所述电子设备符合所述主系统关机条件,控制所述主系统掉电并进入关机模式。In response to detecting that the electronic device complies with the main system shutdown condition, the main system is controlled to power down and enter a shutdown mode.
  25. 根据权利要求24所述的方法,其特征在于,所述检测处于待机模式的所述电子设备是否符合主系统关机条件,包括执行以下操作中的任意一个:The method according to claim 24, wherein the detecting whether the electronic device in the standby mode meets the shutdown condition of the main system comprises performing any one of the following operations:
    检测所述主系统的待机时长是否达到预设值;Detecting whether the standby duration of the main system reaches a preset value;
    检测所述主系统的待机时长是否达到预设值,且检测在待机时长达到所述预设值之前是否存在针对所述电子设备的用户操作;Detecting whether the standby duration of the main system reaches a preset value, and detecting whether there is a user operation on the electronic device before the standby duration reaches the preset value;
    检测所述主系统的待机时长是否达到预设值,且检测在待机时长达到所 述预设值之前是否有用户靠近或接触所述电子设备;Detecting whether the standby duration of the main system reaches a preset value, and detecting whether a user approaches or contacts the electronic device before the standby duration reaches the preset value;
    检测所述主系统的待机时长是否达到预设值,且检测在待机时长达到所述预设值之前所述电子设备是否有移动或震动。Detecting whether the standby time of the main system reaches a preset value, and detecting whether the electronic device moves or vibrates before the standby time reaches the preset value.
  26. 根据权利要求24所述的方法,其特征在于,所述检测处于正常工作模式的所述电子设备是否符合主系统关机条件,包括在所述主系统处在正常工作模式下,执行以下操作中的任意一个:The method according to claim 24, wherein the detecting whether the electronic device in the normal operation mode meets the shutdown condition of the main system comprises performing one of the following operations when the main system is in the normal operation mode anyone:
    检测在持续的第一预设时间段内是否有用户靠近或接触所述电子设备;Detecting whether a user approaches or contacts the electronic device within a continuous first preset time period;
    检测在持续的第二预设时间段内是否存在针对所述电子设备的用户操作;Detecting whether there is a user operation on the electronic device within a continuous second preset time period;
    检测在持续的第三预设时间段内所述电子设备是否有移动或震动。Detecting whether the electronic device moves or vibrates during a third preset time period.
  27. 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得所述计算机执行如权利要求16-26中任一项所述的方法。A computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 16-26.
  28. 一种包含指令的计算机程序产品,其特征在于,当所述指令在计算机上运行时,使得所述计算机执行如权利要求16-26中任一项所述的方法。A computer program product comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 16-26.
PCT/CN2020/111461 2020-08-26 2020-08-26 Electronic device and control method WO2022040989A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080035636.3A CN113853585A (en) 2020-08-26 2020-08-26 Electronic apparatus and control method
PCT/CN2020/111461 WO2022040989A1 (en) 2020-08-26 2020-08-26 Electronic device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/111461 WO2022040989A1 (en) 2020-08-26 2020-08-26 Electronic device and control method

Publications (1)

Publication Number Publication Date
WO2022040989A1 true WO2022040989A1 (en) 2022-03-03

Family

ID=78973093

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/111461 WO2022040989A1 (en) 2020-08-26 2020-08-26 Electronic device and control method

Country Status (2)

Country Link
CN (1) CN113853585A (en)
WO (1) WO2022040989A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106637805A (en) * 2015-10-30 2017-05-10 青岛海尔滚筒洗衣机有限公司 Internet of Things washing machine control method and control system and washing machine
CN106940590A (en) * 2017-02-08 2017-07-11 华为技术有限公司 A kind of terminal unit status changing method and device
US20180088660A1 (en) * 2014-10-08 2018-03-29 Apple Inc. Methods and apparatus for recovering errors with an inter-processor communication link between independently operable processors
CN109445563A (en) * 2018-10-19 2019-03-08 合肥享淘科技有限公司 A kind of power-economizing method and computer system of computer system
CN109491573A (en) * 2014-01-07 2019-03-19 宏达国际电子股份有限公司 Electronic apparatus control method and the electronic device for executing the method
CN110908719A (en) * 2018-09-17 2020-03-24 梅特勒-托利多(常州)测量技术有限公司 Dynamic power consumption management and awakening method and application system thereof
CN111227319A (en) * 2020-03-20 2020-06-05 深圳市康泓威科技有限公司 Electronic cigarette capable of controlling starting and adjusting power through touch pressure sensor and control method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101632053A (en) * 2007-04-03 2010-01-20 深圳Tcl新技术有限公司 Carry out the system and method for system power dissipation mode switch according to motion detection
CN108196887A (en) * 2017-12-27 2018-06-22 深圳Tcl新技术有限公司 Fast starting method, device and computer readable storage medium
CN111562836B (en) * 2020-05-28 2023-07-04 深圳市鑫瑞智实业有限公司 Power saving method, device, equipment and storage medium applied to electronic equipment
CN212694372U (en) * 2020-08-26 2021-03-12 深圳市大疆创新科技有限公司 Electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491573A (en) * 2014-01-07 2019-03-19 宏达国际电子股份有限公司 Electronic apparatus control method and the electronic device for executing the method
US20180088660A1 (en) * 2014-10-08 2018-03-29 Apple Inc. Methods and apparatus for recovering errors with an inter-processor communication link between independently operable processors
CN106637805A (en) * 2015-10-30 2017-05-10 青岛海尔滚筒洗衣机有限公司 Internet of Things washing machine control method and control system and washing machine
CN106940590A (en) * 2017-02-08 2017-07-11 华为技术有限公司 A kind of terminal unit status changing method and device
CN110908719A (en) * 2018-09-17 2020-03-24 梅特勒-托利多(常州)测量技术有限公司 Dynamic power consumption management and awakening method and application system thereof
CN109445563A (en) * 2018-10-19 2019-03-08 合肥享淘科技有限公司 A kind of power-economizing method and computer system of computer system
CN111227319A (en) * 2020-03-20 2020-06-05 深圳市康泓威科技有限公司 Electronic cigarette capable of controlling starting and adjusting power through touch pressure sensor and control method thereof

Also Published As

Publication number Publication date
CN113853585A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
US20210271306A1 (en) Apparatus and method for waking up a processor
KR101562448B1 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
WO2019015435A1 (en) Speech recognition method and apparatus, and storage medium
US7472291B2 (en) Method and apparatus for integrating ACPI functionality and power button functionality into a single power key
TW200532429A (en) Computer system power policy adjustment in response to an affirmative indication from a user
WO2015081664A1 (en) Method, apparatus, device and system for controlling wireless network to be switched on/off
WO2014117500A1 (en) Touch screen terminal and working method thereof
US8719609B2 (en) Using latched events to manage sleep/wake sequences on computer systems
US11385701B2 (en) Power-on processing method and apparatus of terminal device, and terminal device
TWI431464B (en) Computer system with power control and power control method
JPH09237463A (en) Hard disk control method and information processing device
CN111510901B (en) Power adjusting method, device, storage medium and terminal
CN107515668B (en) Control method and device
WO2019128977A1 (en) Terminal device and control method applied to terminal device
WO2022040989A1 (en) Electronic device and control method
KR102245049B1 (en) Computer power saving method and computer waking method
WO2021077260A1 (en) Power consumption information processing method, device, electronic apparatus and storage medium
CN212694372U (en) Electronic device
US9710286B2 (en) Enhanced wakeup mode
CN111538391A (en) Temperature control method and device, storage medium and terminal
US20120260116A1 (en) External power-saving usb mass storage device and power-saving method thereof
US9207742B2 (en) Power saving operating method for an electronic device by disabling a connection port to a touch device before the touch device enters power-saving mode
JP2004164530A (en) Battery condition reading method by operation system of portable computer
KR102417186B1 (en) Method for operating a notebook computer
CN112114649B (en) Temperature adjusting method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20950661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20950661

Country of ref document: EP

Kind code of ref document: A1