CN115129142A - Control method, control device, electronic device, and storage medium - Google Patents

Control method, control device, electronic device, and storage medium Download PDF

Info

Publication number
CN115129142A
CN115129142A CN202110320954.0A CN202110320954A CN115129142A CN 115129142 A CN115129142 A CN 115129142A CN 202110320954 A CN202110320954 A CN 202110320954A CN 115129142 A CN115129142 A CN 115129142A
Authority
CN
China
Prior art keywords
electronic device
processor
power consumption
control method
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110320954.0A
Other languages
Chinese (zh)
Inventor
黎志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110320954.0A priority Critical patent/CN115129142A/en
Publication of CN115129142A publication Critical patent/CN115129142A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • 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

Landscapes

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

Abstract

The application discloses a control method for an electronic device, a control device, an electronic device and a storage medium. The control method comprises the following steps: confirming the running state of the electronic device; under the condition that the electronic device is not in the preset operation state, a first processor of the electronic device is controlled to stop operating and a second processor of the electronic device is controlled to operate, the power consumption of the electronic device in the preset operation state is larger than the preset power consumption, and the power consumption of the first processor is larger than that of the second processor. In the control method of the embodiment of the application, by adopting a mode that the dual processors operate the dual systems, when the first processor determines that the electronic device is not in the preset operation state with high power consumption, the first processor controls the first processor to stop operating, and controls the second processor with low power consumption to operate so as to display the basic information commonly used by the user, namely, the electronic device enters the deep standby mode. Therefore, the purpose of saving the power consumption of the electronic device to the maximum extent so as to prolong the endurance time can be achieved.

Description

Control method, control device, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a control method, a control apparatus, an electronic apparatus, and a storage medium.
Background
At present, along with a great amount of mobile terminal devices used in user life, the duration of the mobile terminal devices becomes an important consideration factor affecting user experience, and when the mobile terminal devices are in an idle state, even if the mobile terminal devices enter a standby mode, certain electric quantity consumption still exists, so that how to fully save the power consumption of the mobile terminal devices becomes a problem to be solved.
Disclosure of Invention
The application provides a control method, a control device, an electronic device and a storage medium.
The application provides a control method for an electronic device, the control method comprising:
confirming the running state of the electronic device;
under the condition that the electronic device is not in a preset operation state, a first processor of the electronic device is controlled to stop operating and a second processor of the electronic device is controlled to operate, power consumption of the electronic device in the preset operation state is larger than preset power consumption, and power consumption of the first processor is larger than that of the second processor.
The application provides a control method for an electronic device, wherein the electronic device comprises a first processor and a second processor, the power consumption of the first processor is larger than that of the second processor, and the control method comprises the following steps:
keeping the first processor running and keeping the second processor out of service;
detecting a current power consumption of the first processor;
and controlling the first processor to stop running and controlling the second processor to run under the condition that the current power consumption of the first processor is less than the preset power consumption.
The application provides a control device, the control device includes:
the confirming module is used for confirming the running state of the electronic device;
the control module is used for controlling a first processor of the electronic device to stop running and controlling a second processor of the electronic device to run under the condition that the electronic device is not in a preset running state, the power consumption of the electronic device in the preset running state is larger than the preset power consumption, and the power consumption of the first processor is larger than that of the second processor.
The present application provides an electronic device, which includes a first processor, a second processor and a memory, where the memory stores a computer program, and the first processor implements the steps of the control method according to any one of the above embodiments when executing the computer program.
In the control method, the control device and the electronic device in the embodiments of the present application, by adopting a mode of operating the dual system by the dual processor, when the first processor determines that the electronic device is not in the preset operating state with high power consumption, the first processor controls itself to stop operating, and controls the second processor with low power consumption to operate so as to display basic information commonly used by a user, that is, the electronic device enters a deep standby mode. Therefore, the purpose of saving the power consumption of the electronic device to the maximum extent so as to prolong the endurance time can be achieved.
In some embodiments, the present application provides a non-volatile computer-readable storage medium storing a computer program, which when executed by a first processor, implements the control method of any one of the above embodiments.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart diagram of a control method according to an embodiment of the present application;
FIG. 2 is a block schematic diagram of a control device according to an embodiment of the present application;
fig. 3 is a schematic perspective view of an electronic device according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a control method according to an embodiment of the present application
FIG. 5 is a schematic diagram of the screen of the dial being turned off when the dial enters a deep standby mode in the embodiment of the present application;
fig. 6 is a schematic view of a bright screen of a dial when the deep standby mode is entered in the embodiment of the present application;
fig. 7 is a schematic diagram of a partial hardware structure of an electronic device according to an embodiment of the present application;
FIG. 8 is a schematic flow chart diagram of a control method according to an embodiment of the present application;
fig. 9 is a schematic view of a bright screen of a dial when the deep standby mode is exited in the embodiment of the present application;
fig. 10 is a flowchart illustrating a control method according to an embodiment of the present application;
fig. 11 is a flowchart illustrating a control method according to an embodiment of the present application;
FIG. 12 is a schematic flow chart diagram of a control method according to an embodiment of the present application;
fig. 13 is a flowchart illustrating a control method according to an embodiment of the present application;
FIG. 14 is a schematic flow chart diagram of a control method according to an embodiment of the present application;
fig. 15 is a flowchart illustrating a control method according to an embodiment of the present application.
Description of the main elements and symbols:
the electronic device comprises an electronic device 100, a first processor 11, a second processor 12, a memory 13, an inter-core communication module 14, a control device 200, a confirmation module 21 and a control module 22.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
The following disclosure provides many different embodiments or examples for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Referring to fig. 1, an embodiment of the present application provides a control method for an electronic device 100 (shown in fig. 3), the control method includes:
step S10: confirming the operation state of the electronic device 100;
step S20: in the case that the electronic device 100 is not in the preset operation state, controlling the first processor 11 of the electronic device 100 to stop operating and controlling the second processor 12 of the electronic device 100 to operate, wherein the power consumption of the electronic device 100 in the preset operation state is greater than the predetermined power consumption, and the power consumption of the first processor 11 is greater than the power consumption of the second processor 12.
Referring to fig. 2, the present embodiment provides a control apparatus 200, and the control apparatus 200 includes a confirmation module 21 and a control module 22. The control method according to the embodiment of the present application can be realized by the control device 200 according to the embodiment of the present application. For example, step S10 may be implemented by the confirmation module 21 of the control apparatus 200, and step S20 may be implemented by the control module 22 of the control apparatus 200.
In other words, the confirming module 21 is used for confirming the operation state of the electronic device 100; the control module 22 is configured to control the first processor 11 of the electronic device 100 to stop operating and control the second processor 12 of the electronic device 100 to operate when the electronic device 100 is not in the preset operating state, where power consumption of the electronic device 100 in the preset operating state is greater than a predetermined power consumption, and power consumption of the first processor 11 is greater than power consumption of the second processor 12.
Referring to fig. 3, an electronic device 100 is further provided in the present embodiment, where the electronic device 100 includes a first processor 11, a second processor 12 and a memory 13. The memory 13 is used for storing a computer program written with a program for implementing the control method of the present application; the first processor 11 may execute a computer program stored in the memory 13 for confirming whether the electronic device 100 is in an operating state or not, and for controlling the first processor 11 of the electronic device 100 to stop operating and controlling the second processor 12 of the electronic device 100 to operate if the electronic device 100 is not in a preset operating state.
Specifically, the electronic device 100 in the embodiment of the present application may be a smart phone, a tablet computer, or a wearable device on a user's body, such as a smart watch and a smart bracelet. The present application does not limit the specific form of the electronic device 100, but the electronic device 100 can have a plurality of processors to implement any steps of the control method, so as to achieve the purposes of reducing the power consumption of the electronic device 100 and prolonging the standby time of the electronic device 100.
It will be readily understood that the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the embodiments of the present application, the electronic device 100 mentioned below may be taken as an example of a smart watch, that is, the method provided in the present application may be used to control a plurality of processors in the smart watch to selectively operate so as to achieve the effects of reducing power consumption of the smart watch and improving a duration of the smart watch.
It should be noted that the power consumption of the electronic device 100 refers to the amount of energy consumed per unit time. When the electronic device 100 is in the operating state, the power consumption of the electronic device 100 is greater than the power consumption of the electronic device 100 in the standby state.
Thanks to the increasing sophistication of modern technology, the smart watch has the functions of a traditional watch as a small-sized mobile terminal, and intelligent functions of monitoring sleep, conversation, video and the like are added. Correspondingly, in order to support the function implementation of the electronic device 100, the first processor adopted by the electronic device 100 has a high requirement on processing capability, for example, a cellcept processor may be selected to operate an android system. It can be easily understood that since the power consumption of such a processor is high, there is not little power consumption when the electronic device 100 is in the standby state.
In the method, the electronic device 100 employs a plurality of processors to operate cooperatively so as to save device power consumption as much as possible, and specifically, the electronic device 100 includes the first processor 11 and the second processor 12, so the electronic device 100 may have a hardware architecture based on two processor chips, that is, each processor may run an independent operating system, and two operating systems may interact with each other.
The first processor 11 is a processor with high processing capability and high power consumption, and is configured to support the electronic device 100 in a preset operating state, for example, a cellcept processor is used to operate an android operating system; the second processor 12 is used for running an operating system with low requirement on processing capacity, for example, a Micro Controller Unit (MCU) is used for running a real-time operating system. When the second processor 12 is running, it represents that the electronic apparatus 100 is not in the preset running state, and at this time, under the condition that the electronic apparatus 100 receives the user operation, only the page for displaying the basic information such as time, alarm clock, power information, etc. is reserved, that is, the electronic apparatus 100 enters the deep standby mode.
It can be easily understood that the second processor 12 has lower power consumption of the second processor 12 itself compared to the first processor 11, that is, when the first processor 11 and the second processor 12 simultaneously process the standby task, the power consumption of the first processor 11 may be greater than the power consumption of the second processor 12.
In addition, it should be noted that the preset operation state may be a state in which the electronic device 100 is updating data, charging, or performing voice and video communication. The specific required preset operation state of the electronic device 100 may be set in detail during development, for example, a predetermined power consumption may be set, and when the power consumption during operation of the electronic device 100 is significantly greater than the predetermined power consumption, the current state of the electronic device 100 may be considered as the preset operation state. In addition, the three specific states mentioned above are merely illustrative and are not to be construed as limiting the method.
In the method provided in the embodiment of the present application, step S10 may confirm the operating status of the electronic device 100. In step S20, in the case that the electronic device 100 is not in any of the preset operation states mentioned above, the first processor 11 of the electronic device 100 may control itself to stop operating and control the second processor 12 of the electronic device 100 to operate.
For example, in the case that it is determined that the electronic device 100 is idle or not being used via step S10, the first processor 11 for supporting and operating all functions of the electronic device 100 is deactivated, and the first processor 11 controls the second processor 12 to operate based on the inter-core communication mechanism, and the second processor 12 is used for displaying some basic information commonly used by the user.
In this way, since the power consumption of the processor is determined by the performance of the chip itself, on the premise that the power consumption of the first processor 11 is known to be larger than the power consumption of the second processor 12, the electronic device 100 is switched to be operated by the second processor 12 with low power consumption in the idle state, so that the endurance time of the electronic device 100 can be prolonged.
In the control method, the control device 200 and the electronic device 100 of the embodiment of the application, by adopting a mode that the dual processors operate the dual system, under the condition that the electronic device 100 is not in the preset operation state with high power consumption, the first processor 11 controls the self to stop operating, and the first processor 11 controls the second processor 12 with low power consumption to operate so as to display basic information commonly used by a user. Therefore, the power consumption of the electronic device 100 can be saved to the maximum extent to achieve the purpose of prolonging the endurance time.
In some embodiments, the predetermined operating state includes at least one of: the electronic device 100 is in a data downloading state, the electronic device 100 is in a call state, and the electronic device 100 is in a charging state.
Specifically, at least one state indicates that The electronic apparatus 100 can be in a plurality of preset operating states at The same time, for example, a user can use The electronic apparatus 100 in a charging state to perform a video call, and The background of The electronic apparatus 100 can update an application installed on The electronic apparatus 100, that is, an OTA (Over The Air) download may be involved, so that The electronic apparatus 100 in The above case is in a data download state, a call state, and a charging state at The same time. Of course, the preset operation state may also include other states, and the specific state may be increased by redesign according to actual requirements.
In addition, when the electronic device 100 is in the preset operation state, the electronic device 100 is operated by the first processor 11 with higher internal processing capability, and the power consumption of the electronic device 100 is higher than that of the electronic device operated by the second processor 12.
Referring to fig. 4, in some embodiments, in a case that the electronic device 100 is not in the preset operation state, controlling the first processor 11 of the electronic device 100 to stop operating and controlling the second processor 12 of the electronic device 100 to operate (step S20) includes:
step S21: confirming the current moment under the condition that the electronic device 100 is not in the preset running state;
step S22: in the case that the current time is within the preset period, the first processor 11 of the electronic device 100 is controlled to stop operating and the second processor 12 of the electronic device 100 is controlled to operate.
In some embodiments, the control module 22 is configured to confirm the current time when the electronic apparatus 100 is not in the preset operation state, and to control the first processor 11 of the electronic apparatus 100 to stop operating and the second processor 12 of the electronic apparatus 100 to operate when the current time is in the preset time period.
In some embodiments, the first processor 11 is configured to confirm the current time when the electronic apparatus 100 is not in the preset operation state, and to control the first processor 11 of the electronic apparatus 100 to stop operating and control the second processor 12 of the electronic apparatus 100 to operate when the current time is in the preset time period.
Specifically, in step S21, after the operation state of the electronic device 100 confirmed in step S10 is determined that the electronic device 100 is not in the above-mentioned three preset operation states, the current time, i.e., the time information displayed on the electronic device 100, can be confirmed by the first processor 11, and then further processed based on the specific time information.
In step S22, the preset time period may be set by default from 11 pm to 5 pm of the following day when the electronic device 100 is shipped, which is determined in consideration of the fact that the electronic device 100 is generally in an idle state not used by the user at night. Of course, the preset time period may also be set based on the user's own needs, for example, the user may set the preset time period from 2 am to 10 am according to the personal work schedule and the biological clock.
In the case where it is confirmed through steps S21 and S22 that the current time is within the preset time period, the first processor 11 controls itself to stop operating and controls the second processor 12 to start operating again based on the inter-core communication mechanism. At this time, the electronic device 100 enters a deep standby mode: that is, as shown in fig. 5, in the case of no user operation, the second processor 12 controls the electronic device 100 to turn off the screen; as shown in fig. 6, when receiving a user operation, the second processor 12 controls the electronic device 100 to display basic information such as time, alarm time, power, etc.
In addition, the electronic device 100 may further receive an instruction initiated by the user to exit the deep standby mode, where the instruction may be initiated by the user tapping a key set on a deep standby display page of the electronic device 100, and when the electronic device 100 receives the instruction, the second processor 12 wakes up the first processor 11 based on the inter-core communication mechanism, and the first processor 11 controls the second processor 12 to stop running and start running itself, so as to conveniently enter the intelligent mode.
Referring to fig. 7, fig. 7 shows a hardware structure of the electronic device 100. It can be seen that Data is exchanged between the first processor 11 and the second processor 12 via an inter-core communication module 14, such as a Data Communication Channel (DCC) and based on an inter-core communication mechanism.
Specifically, under the condition that the electronic device 100 is in the preset operation state and it is determined that the current time is at the preset time, the first processor 11 and the second processor 12 may communicate with each other through the inter-core communication module 14 in a memory sharing manner, that is, the first processor 11 may send an instruction to the second processor 12, and the second processor 12 receives and responds to the instruction to start operation. In the shared memory mode, the first processor 11 and the second processor 12 can access the same memory and coordinate synchronization through interrupts.
In this way, when the electronic device 100 is not in the preset operation state and at the preset time, the first processor 11 is controlled to stop operating while the second processor 12 is controlled to operate to enter the deep standby mode, so as to achieve the purpose of saving power consumption and prolonging the endurance time of the electronic device 100.
Referring to fig. 8, in some embodiments, the control method further includes:
step S23: in the case where the electronic device 100 is not in the preset period, the first processor 11 is kept running and the second processor 12 is kept out of running.
In some embodiments, the control module 22 is configured to keep the first processor 11 running and keep the second processor 12 stopped running if the electronic device 100 is not in the preset time period.
In some embodiments, the first processor 11 is configured to keep the first processor 11 running and keep the second processor 12 running if the electronic device 100 is not in the preset time period.
Specifically, in one scenario, the preset time period is a factory default time period, and in a case where the user falls asleep earlier than the preset time period, at this time, the electronic device 100 is not in the preset operation state, but at the same time, because the electronic device 100 is not in the preset time period, based on step S23, the electronic device 100 is in the standby state at this time, and the first processor 11 keeps running itself so as to respond to an operation that the user may perform on the electronic device 100, until in a case where the current time of the electronic device 100 is in the preset time period, the operation of step S22 is performed again to enter the deep standby mode.
In another scenario, the preset time period is also a factory default time period, and in the preset time period, based on step S22, the electronic device 100 enters the deep standby mode, that is, the first processor 11 of the electronic device 100 stops running and the second processor 12 is running. As shown in fig. 9, after the preset time period is exceeded, for example, the time of the electronic device 100 is five hours in the morning, at this time, based on step S23, in the case that the electronic device 100 is not in the preset time period, the first processor 11 of the electronic device 100 controls the electronic device 100 to automatically exit the deep standby mode in response to the wake-up instruction issued by the second processor 12, that is, the first processor 11 controls itself to operate and keeps the second processor 12 stopped operating.
In this way, in the case that the electronic device 100 is not in the preset time period, it may select to keep running the first processor 11 to wait for entering the preset time period to enter the deep standby mode or the second processor 12 wakes up the first processor 11 according to different scenarios in the actual situation, so that the first processor 11 controls itself to keep running and keeps the second processor 12 stopping running to exit the deep standby mode.
Referring to fig. 10, in some embodiments, before the step of confirming the operation state of the electronic device 100 (step S10), the control method includes:
step S00: confirming the screen-off time of the electronic device 100 when the electronic device 100 is in the screen-off state;
step S01: and entering a step of confirming the operation state of the electronic device 100 under the condition that the screen-off time is longer than the preset time.
In certain embodiments, steps S00 and S01 may be implemented by the confirmation module 21. That is, the confirming module 21 is configured to confirm the screen-off time of the electronic apparatus 100 when the electronic apparatus 100 is in the screen-off state, and to enter a step of confirming the operation state of the electronic apparatus 100 when the screen-off time is greater than a preset time length.
In some embodiments, the first processor 11 is configured to confirm a screen-off time of the electronic apparatus 100 when the electronic apparatus 100 is in the screen-off state, and enter a step of confirming an operation state of the electronic apparatus 100 when the screen-off time is greater than a preset time period.
Specifically, the preset time period may be set by a user according to requirements, for example, the user may set the preset time period to 30 minutes. In step S00, in case that the electronic apparatus 100 is detected to be in the screen-off state, the first processor 11 may record the screen-off time of the electronic apparatus 100 for the next comparison; in step S01, when the screen-off time confirmed through step S00 is longer than the preset time, the first processor 11 control proceeds to step S10, i.e., confirms the operation state of the electronic device 100, and then executes the remaining steps of the control method according to the specific operation state of the electronic device 100.
Thus, by determining whether the electronic device 100 is turned off and comparing the turn-off time with the preset time, it can be conveniently determined whether the electronic device 100 is in an idle state to enter the subsequent steps of the control method, and the user can flexibly set the preset time to conveniently adjust the conditions for entering the subsequent steps of the control method.
Referring to fig. 11, in some embodiments, before the step of confirming the operation state of the electronic device 100 (step S10), the control method includes:
step S02: confirming the physical posture of the electronic device 100;
step S03: if the electronic apparatus 100 is not worn, the process proceeds to a step of confirming the operation state of the electronic apparatus 100.
In some embodiments, the confirming module 21 is configured to confirm a physical posture of the electronic device 100, and to enter a step of confirming an operating state of the electronic device 100 when the electronic device 100 is in an unworn posture.
In some embodiments, the first processor 11 is configured to confirm a physical posture of the electronic apparatus 100, and to enter a step of confirming an operation state of the electronic apparatus 100 if the electronic apparatus 100 is in an unworn posture.
Specifically, in step S02, the first processor 11 may confirm the physical posture of the electronic apparatus 100. Wherein, the physical posture refers to a physical state of interaction between the electronic device 100 and the user, for example, in a case where the electronic device 100 is worn on any part of the body of the user, the electronic device 100 is considered to be in a worn posture; when the user takes off the worn electronic apparatus 100, the electronic apparatus 100 is in the unworn posture.
In step S03, if it is confirmed in step S02 that the electronic device 100 is in the unworn posture, the electronic device 100 may be considered to be in an idle state, and then the method proceeds to step S10 for the subsequent steps of the control method.
In addition, in the method provided by the present application, the step of determining the physical posture of the electronic device 100 may be combined with the comparison of the confirmed screen-off time with the preset time length mentioned above to more accurately control the electronic device 100 to enter the deep standby mode, that is, the steps S02 and S03 of the control method are combined with the steps S00 and S01 to determine whether the condition for entering the step S10 is satisfied.
For example, as shown in fig. 12, the physical posture of the electronic device 100 is confirmed via step S02, and then step S03 is performed, in the case that the physical position of the electronic apparatus 100 is the unworn position, before entering the step of confirming the operation state of the electronic apparatus 100, the step S00 may be further performed to confirm the specific screen-off time in the screen-off state of the electronic apparatus 100, and then the step S01 is performed, if the screen-off duration is longer than the preset duration, the control method proceeds to step S10, and after it is determined that the electronic device 100 is not in the data downloading, communication, and charging states, step S21 is executed to confirm whether the current time of the electronic device 100 is within the preset time period, in case the electronic device 100 is in the preset time period, step S22 is executed to enter the deep standby mode, in the case that the electronic device 100 is not in the preset time period, the corresponding processing is performed according to different situations according to step S23.
Referring to fig. 13, in some embodiments, the control method further includes:
step S04: confirming a sleep state of the user with the electronic device 100 in the worn posture;
step S05: if the user is in the sleep state, the process proceeds to confirm the operation state of the electronic apparatus 100.
In some embodiments, the confirming module 21 is configured to confirm the sleep state of the user when the electronic apparatus 100 is in the worn posture, and to enter a step of confirming the operation state of the electronic apparatus 100 when the user is in the sleep state.
In some embodiments, the first processor 11 is configured to confirm a sleep state of the user when the electronic apparatus 100 is in the worn posture, and to enter a step of confirming an operating state of the electronic apparatus 100 when the user is in the sleep state.
Specifically, in step S04, in a case where the electronic apparatus 100 is worn by the user, for example, worn on the wrist, the sleep monitoring function included in the electronic apparatus 100 may be utilized to confirm whether the user is in a sleep state, where the sleep state may be obtained by collecting data such as heart rate of the user through a sensor provided on the electronic apparatus 100 and analyzing the data by the first processor 11.
In step S05, when it is detected that the user is in the sleep state, the electronic device 100 may be considered to be in the idle state, and then the method proceeds to step S10 to perform the following steps of the control method.
In addition, in the method provided by the present application, in a case that the electronic apparatus 100 is in the worn posture, by determining whether the user enters the sleep state to determine whether the subsequent steps of the entry control method are satisfied, the above-mentioned comparison between the confirmed screen-off time and the preset time period may be combined to more accurately control the electronic apparatus 100 to enter the deep standby mode. That is, steps S04, S05 of the control method are combined with steps S00, S01 to determine whether the condition for proceeding to step S10 is satisfied.
For example, as shown in fig. 14, in the case where it is detected via step S04 that the physical posture of the electronic device 100 is the worn posture, the sleep state of the user is confirmed, and then step S05 is performed, in the case where the user is in the sleep state, before entering the step of confirming the operation state of the electronic apparatus 100, step S00 is performed to confirm a specific screen-off time in the state where the electronic apparatus 100 is screen-off, and then step S01 is performed, if the screen-off duration is longer than the preset duration, the method proceeds to step S10, and after it is determined that the electronic device 100 is not in the data downloading, communication, or charging state, step S21 is executed to confirm whether the current time of the electronic device 100 is within the preset time period, in case of the preset time period, step S22 is performed to enter the deep standby mode, and in case of no preset time period, the corresponding process is performed according to step S23.
It can be easily understood that the above is only an exemplary illustration of the combined use of some steps of the control method, and the steps S04 and S05 can also be combined with the steps S00 and S01 in other orders, which is not limited herein.
Referring to fig. 15, in some embodiments, the control method may further include:
step S30: keeping the first processor 11 running and keeping the second processor 12 out of operation;
step S40: detecting the current power consumption of the first processor 11;
step S50: in the case where the current power consumption of the first processor 11 is less than the predetermined power consumption, the first processor 11 is controlled to stop operating and the second processor 12 is controlled to operate.
In certain embodiments, steps S30 and S50 may be implemented by the control module 22 and step S40 may be implemented by the confirmation module 21. That is, the control module 22 is configured to keep the first processor 11 running and keep the second processor 12 stopped running, and is configured to control the first processor 11 to stop running and control the second processor 12 to run if the current power consumption of the first processor 11 is less than the predetermined power consumption; the validation module 21 is used to detect the current power consumption of the first processor 11.
In some embodiments, the first processor 11 is configured to keep the first processor 11 running and keep the second processor 12 stopped running, and is configured to detect the first processor 11, and to control the first processor 11 to stop running and control the second processor 12 to run if the current power consumption of the first processor 11 is less than a predetermined power consumption.
Specifically, in the control method provided by the present application, the relationship between the current power consumption of the first processor 11 and the predetermined power consumption may be compared, so as to determine whether to enter the deep standby mode. At this time, given that the power consumption of operating the first processor 11 in the standby state of the electronic apparatus 100 may be larger than the power consumption of operating the second processor 12, the predetermined power consumption may be set slightly larger than the power consumption of operating the first processor 11 in the standby state of the electronic apparatus 100.
Then in step S30 the first processor 11 keeps the first processor running while the electronic device 100 is in the smart mode, and at this time the second processor 12 stops running. In step S40, a comparison may be made between the current power consumption of the first processor 11 and the set predetermined power consumption. In step S50, upon detecting that the current power consumption of the first processor 11 is less than the predetermined power consumption, the first processor 11 controls itself to stop operating, and communicates with the second processor 12 through the inter-core communication mechanism, and controls the second processor 12 to start operating, at which point the electronic device 100 enters the deep standby mode.
In this way, by setting the predetermined power consumption slightly larger than the standby power consumption of the electronic device 100 when the first processor 11 is running, and then comparing the detected current power consumption of the first processor 11 with the predetermined power consumption, the processors running in the electronic device 100 can be conveniently switched, so that in the case of an idle state, the power consumption of the electronic device 100 can be saved to the greatest extent, thereby improving the endurance time of the electronic device 100.
The present embodiment provides a non-volatile computer-readable storage medium storing a computer program, which, when executed by a first processor 11, causes the first processor 11 to execute the control method of any one of the above embodiments.
For example, when the computer program is executed by the first processor 11, the first processor 11 may perform the steps of:
step S10: confirming the operation state of the electronic device 100;
step S20: in the case that the electronic device 100 is not in the preset operation state, controlling the first processor 11 of the electronic device 100 to stop operating and controlling the second processor 12 of the electronic device 100 to operate, wherein the power consumption of the electronic device 100 in the preset operation state is greater than the predetermined power consumption, and the power consumption of the first processor 11 is greater than the power consumption of the second processor 12.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a non-transitory computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
In the description herein, references to the description of the terms "one embodiment," "certain embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: numerous changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

Claims (11)

1. A control method for an electronic device, the control method comprising:
confirming the running state of the electronic device;
under the condition that the electronic device is not in a preset operation state, a first processor of the electronic device is controlled to stop operating and a second processor of the electronic device is controlled to operate, power consumption of the electronic device in the preset operation state is larger than preset power consumption, and power consumption of the first processor is larger than that of the second processor.
2. The control method according to claim 1, characterized in that the preset operation state comprises at least one of the following states:
the electronic device is in a data downloading state;
the electronic device is in a call state;
the electronic device is in a charging state.
3. The control method according to claim 1, wherein in a case where the electronic device is not in a preset operation state, controlling a first processor of the electronic device to stop operating and controlling a second processor of the electronic device to operate comprises:
confirming the current moment under the condition that the electronic device is not in a preset operation state;
and under the condition that the current moment is in a preset time period, controlling a first processor of the electronic device to stop running and controlling a second processor of the electronic device to run.
4. The control method according to claim 1, characterized by comprising:
and keeping the first processor running and keeping the second processor running under the condition that the electronic device is not in the preset time period.
5. The control method according to claim 1, wherein before the step of confirming the operation state of the electronic device, the control method comprises:
confirming screen off time of the electronic device under the condition that the electronic device is in a screen off state;
and entering the step of confirming the running state of the electronic device under the condition that the screen-off time is longer than the preset time.
6. The control method according to claim 1, wherein before the step of confirming the operation state of the electronic device, the control method comprises:
confirming a physical posture of the electronic device;
and entering the step of confirming the running state of the electronic device under the condition that the electronic device is not worn.
7. The control method according to claim 6, characterized by further comprising:
confirming a sleep state of a user when the electronic device is in a worn posture;
and entering the step of confirming the running state of the electronic device under the condition that the user is in the sleep state.
8. A control method for an electronic apparatus, the electronic apparatus including a first processor and a second processor, power consumption of the first processor being greater than power consumption of the second processor, the control method comprising:
keeping the first processor running and keeping the second processor out of service;
detecting a current power consumption of the first processor;
and controlling the first processor to stop running and controlling the second processor to run under the condition that the current power consumption of the first processor is less than the preset power consumption.
9. A control device, comprising:
the confirming module is used for confirming the running state of the electronic device;
the control module is used for controlling a first processor of the electronic device to stop running and controlling a second processor of the electronic device to run under the condition that the electronic device is not in a preset running state, the power consumption of the electronic device in the preset running state is larger than the preset power consumption, and the power consumption of the first processor is larger than that of the second processor.
10. An electronic device, characterized in that the electronic device comprises a first processor, a second processor and a memory, the memory storing a computer program which, when executed by the first processor, implements the control method of any of claims 1-8.
11. A non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a first processor, implements the control method according to any one of claims 1 to 8.
CN202110320954.0A 2021-03-25 2021-03-25 Control method, control device, electronic device, and storage medium Pending CN115129142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110320954.0A CN115129142A (en) 2021-03-25 2021-03-25 Control method, control device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110320954.0A CN115129142A (en) 2021-03-25 2021-03-25 Control method, control device, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN115129142A true CN115129142A (en) 2022-09-30

Family

ID=83373900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110320954.0A Pending CN115129142A (en) 2021-03-25 2021-03-25 Control method, control device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN115129142A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116667484A (en) * 2023-08-02 2023-08-29 浙江泰米电子科技有限公司 Wireless charging compatible system and method based on master-slave control logic

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116667484A (en) * 2023-08-02 2023-08-29 浙江泰米电子科技有限公司 Wireless charging compatible system and method based on master-slave control logic
CN116667484B (en) * 2023-08-02 2024-01-23 浙江泰米电子科技有限公司 Wireless charging compatible system and method based on master-slave control logic

Similar Documents

Publication Publication Date Title
US10317984B2 (en) System on chip, method of managing power thereof, and electronic device
US8286013B2 (en) Portable communication device with multi-tiered power save operation
KR101562448B1 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
TWI494857B (en) Method for performing wake-up event management, and associated apparatus and associated computer program product
EP3178146B1 (en) Power broker module
US7360106B2 (en) Power-saving processing unit, power-saving processing method and program record medium
CN108491065B (en) Portable electronic device and method of operation therein
KR102078180B1 (en) Appratus and method for controlling state mode in an wireless terminal
US7062303B2 (en) Synchronizing power conservation modes
CN108377484B (en) Bluetooth controller power consumption control method and device
CN115129142A (en) Control method, control device, electronic device, and storage medium
US10275007B2 (en) Performance management for a multiple-CPU platform
CN112486311B (en) Low-power consumption control method and system of embedded system and storage medium
CN111857841A (en) Awakening method of main control chip, storage medium and intelligent terminal
CN108804150B (en) Terminal standby process processing method and terminal
JP7513062B2 (en) Wireless communication device, terminal device, wireless communication system, communication connection control method and program
CN103257894A (en) Program management method and electronic terminal
JP2008217628A (en) Cpu power saving system and power saving method
CN111813531B (en) Clock scheduling method and system for operating system
JP2008197812A (en) Information processor
US7822999B2 (en) Computer system and method for controlling a processor thereof
US20200285300A1 (en) Activation control device, image forming apparatus, and method for controlling activation
CN117008980A (en) System dormancy method and device, and system wakeup method and device
CN117812682A (en) Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip
CN115033092A (en) Screen-off display control method and device, mobile equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination