Electronic equipment control method and device, equipment and storage medium

By obtaining the status information of electronic devices, dynamically adjusting the operating mode, and using dual-system switching, the problem of mobile devices' battery life and response delay in ultra-low power consumption is solved, the performance and power consumption balance is achieved, and the equipment's Use time.

CN119065483APending Publication Date: 2024-12-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411203534.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Mobile electronic devices have poor battery life. The existing technology reduces power consumption through dual-system collaboration, but there is a response delay problem in ultra-low power consumption, making it difficult to balance performance and power consumption.

Method used

By obtaining the status information of the electronic device, dynamically adjusting the operating mode, and using the switching between the first processor and the second processor, reasonable performance and power consumption balance are achieved, including switching to the ultra-low power consumption state and standby state.

Benefits of technology

Without affecting the user experience, it effectively reduces the power consumption of electronic devices, improves performance, extends battery life, and reduces the burden on the equipment due to frequent mode switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065483A_ABST
    Figure CN119065483A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic equipment control method and device, equipment and a storage medium, and belongs to the field of electronic equipment. The method comprises the steps that state information corresponding to the electronic equipment is obtained, the state information comprises first state information and / or second state information, the first state information is related to the state of a using object of the electronic equipment, and the second state information is related to the state of the electronic equipment; controlling the operation mode of the electronic equipment to enter a first mode or exit from the first mode according to the state information; wherein the first mode is a mode in which the first system is in a running state or a standby state and the second system is in an ultra-low power consumption state, the ultra-low power consumption state is different from the standby state and the shutdown state, the first system is run by the first processor, and the second system is run by the second processor. The performance and the power consumption of the electronic equipment can be reasonably balanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic equipment, and in particular to a control method, device, equipment and storage medium for electronic equipment. Background Art

[0002] Mobile electronic devices (such as wearable devices) have the advantage of being easy to carry and use, but are limited by their size and usually have poor battery life.

[0003] In order to improve the battery life of electronic devices, it is necessary to reduce the power consumption of electronic devices. In the related art, by setting up a dual system for the electronic device, a first processor with a weaker performance runs the first system with a lower complexity, and a second processor with a stronger performance runs the second system with a higher complexity. Through the cooperation of the two systems, the power consumption of the electronic device can be reduced.

[0004] In the process of cooperation between the two systems, the power consumption of the electronic device can be reduced to a greater extent by making the second system enter an ultra-low power consumption state with lower power consumption than the running state. However, when the second system is in the ultra-low power consumption state, there is a large delay in responding to user operations. Summary of the invention

[0005] The present application provides a control method, device, equipment and storage medium of an electronic device, which can reasonably balance the performance and power consumption of the electronic device. The technical solution is as follows:

[0006] According to one aspect of the present application, a control method of an electronic device is provided, the method comprising:

[0007] Acquire status information corresponding to the electronic device, the status information including first status information and / or second status information, the first status information is related to the status of an object using the electronic device, and the second status information is related to the status of the electronic device;

[0008] According to the state information, controlling the operation mode of the electronic device to enter a first mode or exit the first mode;

[0009] Among them, the first mode is a mode in which the first system is in a running state or a standby state, and the second system is in an ultra-low power consumption state, the ultra-low power consumption state is different from the standby state and the shutdown state, the first system is run by a first processor, and the second system is run by a second processor.

[0010] According to another aspect of the present application, a control device for an electronic device is provided, the device comprising:

[0011] an acquisition module, configured to acquire status information corresponding to the electronic device, the status information comprising first status information and / or second status information, the first status information being related to a status of an object using the electronic device, and the second status information being related to a status of the electronic device;

[0012] A control module, configured to control the operation mode of the electronic device to enter a first mode or exit the first mode according to the state information;

[0013] Among them, the first mode is a mode in which the first system is in a running state or a standby state, and the second system is in an ultra-low power consumption state, the ultra-low power consumption state is different from the standby state and the shutdown state, the first system is run by a first processor, and the second system is run by a second processor.

[0014] In an optional design, the control module is used to control the operating mode of the electronic device to switch between the first mode and the second mode according to the status information; wherein the second mode is a mode in which the first system is in the operating state or the standby state, and the second system is in the standby state, the power consumption of the second system in the ultra-low power consumption state is lower than that in the standby state and higher than that in the shutdown state, and / or the wake-up time of the second system in the ultra-low power consumption state is greater than that in the standby state and less than that in the shutdown state; and / or, according to the status information, control the operating mode of the electronic device to switch between the first mode and the third mode; wherein the third mode is a mode in which the first system is in the operating state or the standby state, and the second system is in the operating state.

[0015] In an optional design, the control module is used to switch the operating mode of the electronic device from the second mode to the first mode when the status information satisfies a first switching condition and the operating mode of the electronic device is in the second mode; and / or, when the status information satisfies a second switching condition and the operating mode of the electronic device is in the first mode, switch the operating mode of the electronic device from the first mode to the second mode; and / or, when the status information satisfies a third switching condition and the operating mode of the electronic device is in the third mode, switch the operating mode of the electronic device from the third mode to the first mode; and / or, when the status information satisfies a fourth switching condition and the operating mode of the electronic device is in the first mode, switch the operating mode of the electronic device from the first mode to the third mode.

[0016] In an optional design, the status information includes the first status information, and the first status information includes sleeping status information; the control module is used to switch the operating mode of the electronic device from the second mode to the first mode when the sleeping status information indicates that the user is in the sleeping state and the operating mode of the electronic device is in the second mode; and / or, the first status information includes waking up status information; the control module is used to switch the operating mode of the electronic device from the first mode to the second mode when the waking up status information indicates that the user is in the waking up state and the operating mode of the electronic device is in the first mode.

[0017] In an optional design, the status information includes the first status information and the second status information, the first status information includes wearing status information, and the second status information includes screen off duration; the control module is used to switch the operating mode of the electronic device from the second mode to the first mode when the screen off duration reaches a first duration and the wearing status information indicates that the electronic device is not worn, and the operating mode of the electronic device is in the second mode.

[0018] In an optional design, the status information includes the first status information, and the first status information includes wearing status information; the control module is used to switch the operating mode of the electronic device from the first mode to the second mode when the wearing status information indicates that the electronic device is changed from a non-worn state to a worn state and the operating mode of the electronic device is in the first mode.

[0019] In an optional design, the status information includes the second status information, and the second status information includes operation information on the electronic device; the control module is used to switch the operating mode of the electronic device from the first mode to the second mode when the operation indicated by the operation information is a prerequisite operation of a trigger operation and the operating mode of the electronic device is in the first mode, and the trigger operation is an operation for triggering the running of an application in the second system.

[0020] In an optional design, the status information includes the second status information, the second status information includes a first duration between a first moment and a second moment, the first moment is the moment when the user exits the sleeping state, and the second moment is the moment when the electronic device lights up the screen for the first time after the first moment; the control module is used to switch the operating mode of the electronic device from the first mode to the second mode when the first duration is less than the second duration and the operating mode of the electronic device is in the first mode.

[0021] In an optional design, the status information includes the second status information, the second status information includes timing information, and the timing information is used to indicate the triggering time of the scheduled task; the control module is used to switch the operating mode of the electronic device from the first mode to the second mode when the duration between the current moment and the triggering moment is less than a third duration and the operating mode of the electronic device is in the first mode.

[0022] In an optional design, the control module is used to switch the operating mode of the electronic device from the second mode to the first mode when the second duration is greater than a fourth duration; wherein the second duration is used to reflect the duration of no operation on the electronic device starting from a third moment, and the third moment is the moment when the operating mode of the electronic device is switched from the first mode to the second mode.

[0023] In an optional design, the control module is used to control the operating mode of the electronic device to switch from the first mode to the third mode and then to the second mode; and / or, to control the operating mode of the electronic device to switch from the second mode to the third mode and then to the first mode; and / or, to control the operating mode of the electronic device to switch from the first mode to the second mode and then to the third mode; and / or, to control the operating mode of the electronic device to switch from the third mode to the second mode and then to the first mode.

[0024] According to another aspect of the present application, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the control method of the electronic device as described above.

[0025] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the control method of the electronic device as described above.

[0026] According to another aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the control method of the electronic device provided in the above aspect.

[0027] The beneficial effects of the technical solution provided by this application include at least:

[0028] By acquiring the status information corresponding to the electronic device, the current usage scenario of the electronic device can be known according to the status information. By controlling the operation mode of the electronic device according to the status information, the current operation mode of the electronic device can be reasonably controlled according to the primary and secondary relationship between the performance requirements and energy-saving requirements of the electronic device according to the current usage scenario of the electronic device, thereby achieving a reasonable balance between the performance and power consumption of the electronic device without affecting the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 is a schematic diagram of a process of switching an operating mode of an electronic device provided by an exemplary embodiment of the present application;

[0031] Figure 2 is a flowchart of a control method of an electronic device provided by an exemplary embodiment of the present application;

[0032] Figure 3 is a flowchart of a control method of an electronic device provided by an exemplary embodiment of the present application;

[0033] Figure 4 is a schematic diagram of an operating mode provided by an exemplary embodiment of the present application;

[0034] Figure 5 is a dual system architecture diagram provided by an exemplary embodiment of the present application;

[0035] Figure 6 is a schematic diagram of a process of switching operating modes provided by an exemplary embodiment of the present application;

[0036] Figure 7is a schematic structural diagram of a control device of an electronic device provided by an exemplary embodiment of the present application;

[0037] Figure 8 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application.

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] First, the nouns involved in this application are introduced:

[0041] Dual System: The same electronic device has two processors and two different systems. For example, the electronic device has a first processor and a second processor, the first processor is used to run the first system, and the second processor is used to run the second system. In some embodiments, the first processor and the second processor may be two independently packaged chips; in some embodiments, the first processor and the second processor may be packaged in the same chip. In some embodiments, the program running on the processor can be understood as a system, including but not limited to an operating system; in some embodiments, the dual system can be two operating systems.

[0042] Deep Sleep (DS): For chips, deep sleep is a state / operating mode that electronic devices enter in order to save power. In some embodiments, deep sleep is a state of suspending to memory. When an electronic device is in a deep sleep state, most central processing units (CPUs) and hardware processes are suspended, device functions are reduced, and network connections may also be disconnected. Only the key hardware of an electronic device can interrupt the deep sleep state, such as waking up the electronic device when receiving a call or pressing the power button of the device to exit the deep sleep state. Compared with the normal standby state, the deep sleep state can reduce battery consumption (power consumption) more. For dual-system electronic devices, deep sleep is a state that one or more systems can enter. In some embodiments, when one system of a dual-system electronic device enters a deep sleep state, its corresponding processor and hardware processes are suspended, the overall function of the device is reduced, and the corresponding network connection of the system may also be disconnected. Due to design differences, different chips may have different deep sleep situations, so the modules closed in deep sleep, power consumption, etc. may be different. The above definition is only for example and is not limited to this.

[0043] Normal Standby Mode: For chips, normal standby mode (also called standby state) is a state in which some electronic components of an electronic device are turned off. In this state, some modules can be turned off to save power consumption, and they can be awakened quickly to respond to business needs. Different chips may have different designs for which modules are turned off and which modules are retained, and this is not limited. In some embodiments, the standby state may be a state entered when no business is processed, and some background processes can be kept running at this time. In some embodiments, the standby state can also be understood as a dormant state and / or a sleep state. In some embodiments, when in the standby state, the screen of the electronic device may be turned off, and the network connection may be disconnected, allowing background tasks to run. In some embodiments, for electronic devices with dual systems, the standby state may be a state that one or more systems can enter. In some embodiments, when one system of an electronic device with dual systems enters the standby state, the system will disconnect from the network and keep the background process running. Compared with the deep sleep state, the standby state turns off fewer modules, and / or the power consumption of the system in the standby state is higher than that in the deep sleep state.

[0044] Wearable devices: Wearable devices are portable electronic devices that are worn directly on the user or integrated into the user's clothing or accessories. Wearable devices not only provide hardware devices, but also provide powerful functions through the support of the software (such as operating system) set in them, combined with data interaction and cloud interaction. For example, wearable devices support monitoring health indicators, making and receiving calls, providing information notifications, etc.

[0045] Smartwatch: A smartwatch is a wearable device that combines the form of a watch with an intelligent system. Smartwatches can realize functions such as data processing, information display, and interactive control through built-in systems (such as operating systems), processors, memory and other components. Smartwatches not only have the basic function of indicating time, but can also synchronize calls, text messages, emails, photos, music, etc. in other electronic devices (such as mobile phones), and collect activity data and physiological data of users through various sensors (such as accelerometers, gyroscopes, heart rate sensors, etc.), and connect to mobile phones or other electronic devices through wireless communication technology to realize functions such as message synchronization and health management.

[0046] The following is an example of the power consumption in deep sleep state:

[0047] In the deep sleep state, since only the memory can be retained and other hardware is turned off, when exiting the deep sleep state to start the electronic device and putting the electronic device into the running state, the information can be loaded directly from the memory. When the electronic device is completely turned off, that is, when the electronic device is in the off state, it takes a long time to restart. In one possible case, it takes about 600ms to start the electronic device in the deep sleep state, and it takes about 30s to start the electronic device in the off state. Therefore, starting an electronic device from a deep sleep state is faster than starting from the off state. In addition, since the deep sleep state turns off more functions than the standby state, the power consumption is lower than the standby state, but the time required to wake up from the deep sleep state to enter the running state is longer than the time required to wake up from the standby state to enter the running state.

[0048] In a possible practical example, a wearable device includes a small-core processor and a large-core processor. The small-core processor can be a microcontroller unit (MCU), and the large-core processor is a CPU with stronger performance than the small-core processor. The small-core processor can run an embedded system (small-core system), and the large-core processor runs an Android system (large-core system). The small-core system has a low operating power consumption, for example, about 0.95mA, and the power consumption of the large-core system varies according to the operating mode / state. For example, the power consumption of the shutdown state (off state) is 0mA, the power consumption of the deep sleep state is about 0.5mA, and the power consumption of the standby state is about 2.2mA. Therefore, compared with the standby state, the power consumption of the device in the shutdown state and deep sleep state will be significantly reduced. If the large-core system can be in the shutdown state or deep sleep state for as much time as possible, it will significantly extend the use time of the electronic device.

[0049] Since electronic devices under the small core system can only support some functions, such as sleep monitoring, heart rate monitoring, etc., they cannot support some functions provided by the large core system, such as being unable to run applications under the Android system. Therefore, if the large core system enters the shutdown state, it is necessary to restart the large core system / wearable device in order to use the application of the Android system. According to the previous content, in some embodiments, it often takes about 30 seconds to start the large core system, so for application scenarios that require frequent use of wearable devices, it is impossible to meet the requirements of the user. Compared with restarting in the shutdown state, exiting the deep sleep state can greatly save the startup time of the large core system. According to the previous content, in some embodiments, it can be exited in about 600ms to enter the Android system. However, for scenarios where real-time switching between dual systems is required, it may not meet the requirements of real-time switching of the user object. In addition, if the large core system frequently enters and exits the deep sleep state, it will increase the processor load, but will have no positive effect on saving power consumption. In addition, since exiting the deep sleep state will occupy a certain amount of processor resources, this will also result in limited resources when running applications, resulting in the large core system starting applications more slowly.

[0050] In the related art, for electronic devices that support dual systems, the user usually selects the operation mode of the electronic device to determine whether one processor is currently running or two processors are running at the same time. When the small core system is running, the large core system is in a standby state or the large core system can be directly turned off to save power. Since the user usually cannot reasonably control the operation mode of the electronic device, this will cause the electronic device to have high power consumption or poor performance.

[0051] The method provided in this application can control the large core system to automatically enter or exit the ultra-low power consumption state according to the state of the user of the electronic device and / or the state of the electronic device. By reasonably setting the corresponding trigger conditions, it is possible to select the best time to enter and exit the ultra-low power consumption state according to the current usage scenario, which not only reduces the power consumption of the electronic device, but also ensures that the performance of the electronic device avoids affecting the user experience of the user, thereby achieving a reasonable balance between the performance and power consumption of the electronic device without affecting the user experience of the user.

[0052] It should be noted that in some embodiments of the present application, the ultra-low power state, standby state, and shutdown state reflect the different power consumption states of the device, system, or processor, and further, the wake-up time of different states may be different; for example, the power consumption in the ultra-low power state is lower than that in the standby state but higher than that in the shutdown state, and for example, the wake-up time of the ultra-low power state is longer than that in the standby state but shorter than that in the shutdown state. It is understandable that the ultra-low power state and standby state of different chips may be different, and this is not limited.

[0053] Figure 1 FIG. 1 is a schematic diagram of a process of switching an operating mode of an electronic device provided by an exemplary embodiment of the present application. Figure 1 As shown, the operation mode of the electronic device includes but is not limited to one or more of operation mode 101 (first mode), operation mode 102 (second mode) and operation mode 103 (third mode). Among them, operation mode 101 is a mode in which the first system of the electronic device is in operation or standby state, and the second system of the electronic device is in ultra-low power consumption state. In this mode, the display screen of the electronic device is controlled by the first system. Operation mode 102 is a mode in which the first system is in operation or standby state, and the second system is in standby state. In this mode, the display screen displayed by the electronic device is controlled by the first system. Operation mode 103 is a mode in which the first system is in operation or standby state, and the second system is in operation. In this mode, the display screen of the electronic device is controlled by the first system or the second system. The first system is operated by the first processor of the electronic device, and the second system is operated by the second processor of the electronic device. Optionally, the complexity of the second system is higher than that of the first system, and the performance of the second processor is stronger than that of the first processor.

[0054] In some embodiments, the ultra-low power consumption state includes a deep sleep state. Of course, it can also be other ultra-low power consumption states similar to the deep sleep state, or different chips have different deep sleep states, and their ultra-low power consumption states may also be different. For example, the power consumption in the ultra-low power consumption state is higher than the power consumption in the shutdown state but lower than the power consumption in the standby state. For example, the wake-up time in the ultra-low power consumption state is shorter than the wake-up time in the shutdown state but longer than the wake-up time in the standby state. In the process of adjusting the operating mode of the electronic device, the state information 104 corresponding to the electronic device is obtained. Among them, the state information includes first state information and / or second state information. The first state information is related to the state of the user of the electronic device, for example, the first state information can reflect whether the user is asleep, whether the user is wearing an electronic device, etc. The second state information is related to the state of the electronic device, for example, the second state information can reflect the screen-off time of the electronic device, indicate the operation of the electronic device, etc. The electronic device can determine the operating mode that the electronic device currently needs to enter based on the state information 104 combined with the pre-set switching conditions. For example, when the state information 104 satisfies the first switching condition and the operation mode of the electronic device is in the operation mode 102, the operation mode of the electronic device is switched from the operation mode 102 to the operation mode 101. By switching from the operation mode 102 to the operation mode 101, the power consumption of the electronic device can be reduced. And / or, when the state information 104 satisfies the second switching condition and the operation mode of the electronic device is in the operation mode 101, the operation mode of the electronic device is switched from the operation mode 101 to the operation mode 102. By switching from the operation mode 101 to the operation mode 102, the performance of the electronic device can be improved and the response delay of the electronic device to the user operation can be reduced. And / or, when the state information 104 satisfies the third switching condition and the operation mode of the electronic device is in the operation mode 103, the operation mode of the electronic device is switched from the operation mode 103 to the operation mode 101. By switching from the operation mode 103 to the operation mode 101, the power consumption of the electronic device can be reduced. And / or, when the state information 104 satisfies the fourth switching condition and the operation mode of the electronic device is in the operation mode 101, the operation mode of the electronic device is switched from the operation mode 101 to the operation mode 103. Switching from the operation mode 101 to the operation mode 103 can improve the performance of the electronic device and reduce the response delay of the electronic device to the user operation.

[0055] By acquiring the status information corresponding to the electronic device, the current usage scenario of the electronic device can be known according to the status information. By controlling the operation mode of the electronic device according to the status information, the current operation mode of the electronic device can be reasonably controlled according to the primary and secondary relationship between the performance requirements and energy-saving requirements of the electronic device according to the current usage scenario of the electronic device, thereby achieving a reasonable balance between the performance and power consumption of the electronic device without affecting the user experience.

[0056] Figure 2 FIG. 1 is a flow chart of a control method of an electronic device provided by an exemplary embodiment of the present application. The method can be used in electronic devices. Figure 2 As shown, the method includes:

[0057] Step 202: Obtain status information corresponding to the electronic device.

[0058] The status information includes first status information and / or second status information. The first status information is related to the status of the user of the electronic device, and the user of the electronic device includes the user of the electronic device. Optionally, the first status information includes one or more of information used to reflect whether the user is in a sleeping state, information used to reflect whether the user is wearing the electronic device, and information used to reflect the activity of the user. The second status information is related to the status of the electronic device. Optionally, the second status information includes one or more of information used to reflect the screen-off duration of the electronic device when the screen is off, information used to reflect the operation of the electronic device by the user, information used to reflect the screen-on time of the electronic device, and information used to reflect the scheduled tasks of the electronic device.

[0059] Optionally, the electronic device acquires status information in real time, or acquires status information periodically, or acquires status information according to a preset time, and this application does not impose any restrictions on this.

[0060] In some embodiments, the electronic device includes a wearable device, for example, the electronic device includes a smart watch.

[0061] The electronic device supports dual systems, and a first system and a second system are provided in the electronic device. Optionally, the relationship between the first system and the second system includes one or more of the following relationships: the complexity of the second system is higher than that of the first system, the functions of the second system are more than those of the first system, and the power consumption of running the second system is higher than that of the first system. In some embodiments, the first system is an embedded system, and the second system is a non-embedded system, for example, the second system is an Android system. It should be noted that in addition to supporting the first system and the second system, the electronic device can also support systems other than the first system and the second system, and this application does not limit this.

[0062] When the electronic device is powered on, if both the first system and the second system are in operation, the user interface displayed by the electronic device is provided by the operating first system or by the operating second system. If the first system is in operation and the second system is not in operation, the user interface displayed by the electronic device is provided by the operating first system. If the first system is not in operation and the second system is in operation, the user interface displayed by the electronic device is provided by the operating second system. The second system is not in operation, including the second system being in one or more of a standby state, a shutdown state, and an ultra-low power consumption state. The ultra-low power consumption state is different from the standby state and the shutdown state. In some embodiments, the ultra-low power consumption state refers to a deep sleep state.

[0063] In some embodiments, when the first system controls the display screen (the first system may be in standby state or running state at this time), the second system may be in running state or standby state or ultra-low power consumption state; for example, when the second system controls the display screen (the second system may be in standby state or running state at this time), the first system may be in running state or standby state or ultra-low power consumption state.

[0064] In some embodiments, the power consumption of the first system (first processor) is lower than the power consumption of the second system (second processor). In this case, when the second system is in operation, the first system must also be in operation. The following is an exemplary introduction to different states of the system: In some embodiments, from the perspective of energy saving, the power consumption of the system in the operation state is higher than that in the standby state, and the power consumption of the system in the standby state is higher than that in the ultra-low power consumption state, and the power consumption of the system in the ultra-low power consumption state is higher than that in the shutdown state. In some embodiments, the standby state can also be understood as a dormant state and / or a sleep state, and the shutdown state can also be understood as a closed state. In some embodiments, the power consumption of the system in the shutdown state is 0, but when a shutdown timer task is set, such as a shutdown alarm, the power consumption of the system in the shutdown state is greater than 0. In terms of the functions provided by the system, the system provides more functions in the operation state than in the standby state, and the system provides more functions in the standby state than in the ultra-low power consumption state, and the system provides more functions in the ultra-low power consumption state than in the shutdown state. For example, from the perspective of the activation of electronic components corresponding to the system, the system has more electronic components activated in the running state than in the standby state, and the system has more electronic components activated in the standby state than in the ultra-low power state, and the system has more electronic components activated in the ultra-low power state than in the shutdown state. For example, from the perspective of the wake-up time dimension for waking up the system to the running state, the wake-up time for waking up the system from the standby state to the running state is less than that of the ultra-low power state, and the wake-up time for waking up the system from the ultra-low power state to the running state is less than that of the shutdown state. In some embodiments, in the running state, the system-related hardware works normally; in the standby state, most of the system-related hardware will be turned off; in the ultra-low power state, most of the system-related hardware will be turned off, and only the most basic system functions will be provided; in the shutdown state, all the system-related hardware will be turned off, or only the scheduled task function will be provided. For example, the processor will be powered off in the shutdown state.

[0065] Step 204: According to the status information, control the operation mode of the electronic device to enter the first mode or exit the first mode.

[0066] The operation mode of the electronic device is related to the power consumption of the electronic device, and the power consumption of the electronic device is different in different operation modes. The first mode is a mode in which the first system is in an operation state or a standby state, and the second system is in an ultra-low power consumption state. The first system is operated by a first processor, and the second system is operated by a second processor. The ultra-low power consumption state is different from the standby state and the shutdown state. In some embodiments, the ultra-low power consumption state refers to a deep sleep state.

[0067] Optionally, the relationship between the first processor and the second processor includes one or more of the following relationships: the performance of the second processor is stronger than that of the first processor, the power consumption of the second processor is higher than that of the first processor when providing the same computing performance, the power consumption of the second processor when running the second system is higher than that of the first processor when running the first system, and the energy efficiency of the second processor is stronger than that of the first processor. In some embodiments, the first processor is an MCU and the second processor is a CPU.

[0068] In some embodiments, the operation mode of the electronic device has other modes besides the first mode. The electronic device entering the first mode refers to switching the operation mode of the electronic device from a mode other than the first mode to the first mode, and the electronic device exiting the first mode refers to switching the operation mode of the electronic device from the first mode to a mode other than the first mode. In some embodiments, except for the second system being turned off, the power consumption of the electronic device after entering the first mode is lower than the power consumption of the electronic device before entering the first mode, and the power consumption of the electronic device after exiting the first mode is higher than the power consumption of the electronic device before exiting the first mode.

[0069] Optionally, the electronic device may determine whether the electronic device currently needs to enter the first mode or exit the first mode based on the state information combined with a preset switching condition. For example, if the state information satisfies the switching condition set for entering the first mode, the electronic device may be triggered to enter the first mode. If the state information satisfies the switching condition set for exiting the first mode, the electronic device may be triggered to exit the first mode.

[0070] In some embodiments, when the electronic device enters the first mode or exits the first mode, that is, changes the current operating mode, the electronic device will not notify the user, such as displaying prompt information corresponding to switching the operating mode, that is, the user cannot perceive that the electronic device has switched the operating mode.

[0071] In summary, the method provided in this embodiment can realize the current usage scenario of the electronic device according to the status information by acquiring the status information corresponding to the electronic device. By controlling the operation mode of the electronic device according to the status information, it is possible to reasonably control the current operation mode of the electronic device according to the primary and secondary relationship between the performance requirements and energy-saving requirements of the electronic device according to the current usage scenario of the electronic device, thereby realizing a reasonable balance between the performance and power consumption of the electronic device without affecting the user experience.

[0072] Figure 3 FIG. 1 is a flow chart of a control method of an electronic device provided by an exemplary embodiment of the present application. The method can be used in electronic devices. Figure 3 As shown, the method includes:

[0073] Step 302: Obtain status information corresponding to the electronic device.

[0074] The status information includes first status information and / or second status information. The first status information is related to the status of the user of the electronic device, and the user of the electronic device includes the user of the electronic device. Optionally, the first status information includes one or more of information used to reflect whether the user is in a sleeping state, information used to reflect whether the user is wearing the electronic device, and information used to reflect the activity of the user. The second status information is related to the status of the electronic device. Optionally, the second status information includes one or more of information used to reflect the screen-off duration of the electronic device when the screen is off, information used to reflect the operation of the electronic device by the user, information used to reflect the screen-on time of the electronic device, and information used to reflect the scheduled tasks of the electronic device.

[0075] In some embodiments, the electronic device includes a wearable device, for example, the electronic device includes a smart watch. The electronic device supports dual systems, and the electronic device is provided with a first system and a second system. In some embodiments, the first system is an embedded system, and the second system is a non-embedded system. It should be noted that in addition to supporting the first system and the second system, the electronic device can also support systems other than the first system and the second system, and this application does not limit this.

[0076] When the electronic device is powered on, if both the first system and the second system are in operation, the user interface displayed by the electronic device is provided by the operating first system or by the operating second system. If the first system is in operation and the second system is not in operation, the user interface displayed by the electronic device is provided by the operating first system. If the first system is not in operation and the second system is in operation, the user interface displayed by the electronic device is provided by the operating second system. The second system is not in operation, including the second system being in one or more of a standby state, an off state, and an ultra-low power consumption state. In some embodiments, the ultra-low power consumption state refers to a deep sleep state.

[0077] Step 304: Control the electronic device to switch the operating mode according to the status information.

[0078] The operation mode of the electronic device is related to the power consumption of the electronic device, and the power consumption of the electronic device is different in different operation modes. Optionally, the operation mode of the electronic device includes one or more of the first mode, the second mode and the third mode. Among them, the first mode is a mode in which the first system is in an operation state or a standby state, and the second system is in an ultra-low power consumption state. The second mode is a mode in which the first system is in an operation state or a standby state, and the second system is in a standby state. The third mode is a mode in which the first system is in an operation state or a standby state, and the second system is in an operation state. The ultra-low power consumption state is a state other than the operation state, and the ultra-low power consumption state is different from the standby state and the shutdown state. In some embodiments, the power consumption of the second system in the ultra-low power consumption state is lower than that in the standby state and higher than that in the shutdown state, and / or the wake-up time of the second system in the ultra-low power consumption state is greater than that in the standby state and less than that in the shutdown state, and the wake-up time is the time required to wake up the second system from the current state to the operation state. For the introduction of the operation state, the standby state, the ultra-low power consumption state and the shutdown state, refer to the relevant content in the previous text, and this embodiment will not be repeated here. In some embodiments, the standby state can also be understood as a dormant state and / or a sleep state. In some embodiments, the ultra-low power consumption state refers to a deep sleep state. According to the state information, the operation mode of the electronic device can be controlled to switch between any two modes of the first mode, the second mode and the third mode.

[0079] In some embodiments, when the electronic device is in the first mode, the display screen of the electronic device is controlled by the first system, for example, the screen of the electronic device is controlled to light up and / or display content provided by the first system, and / or the screen of the electronic device is controlled to turn off. When the electronic device is in the second mode, the display screen of the electronic device is controlled by the first system, for example, the screen of the electronic device is controlled to light up and / or display content provided by the first system, and / or the screen of the electronic device is controlled to turn off. When the electronic device is in the third mode, the display screen of the electronic device is controlled by the first system and / or the second system.

[0080] The first system is run by the first processor, and the second system is run by the second processor. Optionally, the relationship between the first processor and the second processor includes one or more of the following relationships: the performance of the second processor is stronger than that of the first processor, the power consumption of the second processor is higher than that of the first processor when providing the same computing performance, the power consumption of the second processor when running the second system is higher than that of the first processor when running the first system, and the energy efficiency of the second processor is stronger than that of the first processor. In some embodiments, the first processor is an MCU, and the second processor is a CPU.

[0081] For example, Figure 4 FIG. 1 is a schematic diagram of an operating mode provided by an exemplary embodiment of the present application. Figure 4As shown, the operation modes of the electronic device include mode 1 (third mode), mode 2 (second mode) and mode 3 (first mode). In mode 1, the electronic device is in a state of large and small core hybrid + large core user interface (User Interface, UI), indicating that the large core system (second system) is in operation, and the small core system (first system) is in operation or standby. Mode 1 can realize that part of the application runs on the large core system and part of the application runs on the small core system. The UI provided by the electronic device to the user object is provided by the large core system or by the small core system. In mode 2, the electronic device is small core UI + large core standby, indicating that the UI provided by the electronic device to the user object is completely provided by the small core system, and the large core system is in standby. At this time, the large core system can reduce the CPU usage frequency, but there are still some background processes running, so as to ensure that the large core system can be woken up in real time when the large core system needs to run and enter the running state. In mode 3, the electronic device has a small-core UI + a large-core DS, which means that the UI provided by the electronic device to the user is completely provided by the small-core system, and the large-core system is in a deep sleep state, that is, the large-core system shuts down all subsystems and peripherals, and only maintains power supply to the memory to keep information refreshed, ensuring that the large-core system consumes extremely low power while meeting the requirement of waking up the large-core system as quickly as possible to enter the standby state or running state.

[0082] Switching between the first mode and the second mode of operation of the control electronics:

[0083] In some embodiments, the operation mode of the electronic device can be controlled to switch between the first mode and the second mode according to the state information, for example, the operation mode of the electronic device is switched from the second mode to the first mode, and / or the operation mode of the electronic device is switched from the first mode to the second mode. In some embodiments, the process of controlling the operation mode of the electronic device to switch between the first mode and the second mode includes: when the state information satisfies the first switching condition and the operation mode of the electronic device is in the second mode, the operation mode of the electronic device is switched from the second mode to the first mode; and / or, when the state information satisfies the second switching condition and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the second mode. Among them, the first switching condition is set for the state information that satisfies the condition of switching the operation mode of the electronic device from the second mode to the first mode, and the second switching condition is set for the state information that satisfies the condition of switching the operation mode of the electronic device from the first mode to the second mode. Optionally, the above-mentioned first switching condition and the second switching condition are set by the developer of the electronic device.

[0084] In some embodiments, the process of switching the operating mode of the electronic device between the first mode and the second mode includes but is not limited to one or more of the following situations:

[0085] Case 1: The state information includes first state information, the first state information includes sleeping state information, and the sleeping state information is used to reflect whether the user of the electronic device is currently in a sleeping state. Optionally, the sleeping state information is determined by monitoring one or more of the user's heart rate, blood oxygen, pressure, body temperature, and activity. When the sleeping state information indicates that the user is in a sleeping state and the operation mode of the electronic device is in the second mode, the operation mode of the electronic device will be switched from the second mode to the first mode. And / or, the state information includes first state information, the first state information includes waking up state information, and the waking up state information is used to reflect whether the user of the electronic device is currently changing from a sleeping state to a waking up state, that is, whether the user is currently awake. The waking up state information is determined by monitoring one or more of the user's heart rate, blood oxygen, pressure, body temperature, and activity. When the waking up state information indicates that the user is in a waking up state and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device will be switched from the first mode to the second mode.

[0086] For example, a smartwatch uses built-in sensors to detect the user's sleeping state, so as to determine the timing of entering and exiting the ultra-low power consumption state of the large-core system. When it is detected that the user has fallen asleep, after the smartwatch enters the second mode, it can immediately trigger the smartwatch to enter the first mode. In this case, the large-core system enters an ultra-low power consumption state, and the small-core system can be responsible for recording basic user behavior and user information, such as heart rate, blood oxygen, body temperature, etc. When it is detected that the user has fallen asleep, if the smartwatch is in the first mode, it can immediately trigger the smartwatch to switch to the second mode to increase the speed of responding to user operations.

[0087] Case 2: The status information includes first status information and second status information, the first status information includes wearing status information, and the second status information includes screen-off duration. The wearing status information is used to reflect whether the electronic device is worn by the user. Optionally, the wearing status information is determined by data monitored by sensors of the electronic device, such as a distance sensor, a heart rate sensor, and the like. The screen-off duration is used to reflect the duration from the last time the screen of the electronic device was turned off to the current time. When the screen-off duration reaches the first duration and the wearing status information indicates that the electronic device is not being worn, and the operating mode of the electronic device is in the second mode, the operating mode of the electronic device will be switched from the second mode to the first mode. The first duration is pre-set or set by the user, and this application does not impose any restrictions on this.

[0088] For example, when the screen of a smart watch is off for a long time and the smart watch is currently off the wrist, after the smart watch enters the second mode, the smart watch can be immediately triggered to enter the first mode.

[0089] The state information includes first state information, and the first state information includes wearing state information. The wearing state information is used to reflect that the electronic device changes from being worn by a non-user to being worn by a user, and / or the electronic device changes from being worn by a user to being worn by a non-user. When the wearing state information indicates that the electronic device changes from a non-worn state to a worn state, and the operation mode of the electronic device is in a first mode, the operation mode of the electronic device is switched from the first mode to the second mode. The above-mentioned moment of executing the operation mode switching of the electronic device may be the moment when the electronic device changes from a non-worn state to a worn state.

[0090] For example, when the smart watch changes from an off-wrist state to a worn state, if the smart watch is in the first mode at this time, it can return to the second mode in advance, so that the user can get a quick response to the operation after wearing the smart watch.

[0091] Case 3: The state information includes the second state information, and the second state information includes the operation information of the electronic device. The operation information of the electronic device includes one or more of the operation information of operating the screen of the electronic device, the operation information of operating the physical buttons of the electronic device, and the operation information of operating the posture of the electronic device. When the operation indicated by the operation information belongs to the pre-operation of the trigger operation, and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device will be switched from the first mode to the second mode. Among them, the trigger operation is an operation for triggering the operation of the second system, for example, an operation for triggering the operation of an application in the second system. The pre-operation is an operation that is located before the trigger operation and has a logical association with the trigger operation. Optionally, the trigger operation and the pre-operation belong to multiple continuous operations, the pre-operation is located before the trigger operation in the multiple continuous operations, and there is a logical association between two adjacent operations in the multiple continuous operations, and the types of each operation in the multiple continuous operations can be completely the same, partially the same, or completely different. Optionally, the multiple continuous operations are set by the developer of the electronic device, or are determined based on multiple continuous operations of the user object in the past. The multiple continuous operations of the user object in the past include multiple operations that the user object has performed in the past, and the time interval between two adjacent operations is less than the interval threshold. In some embodiments, the operation indicated by the operation information is an operation before the last operation in multiple consecutive operations, and the next operation corresponding to the operation indicated by the operation information in the multiple consecutive operations is a trigger operation, which is an operation performed on the second system or processed by the second system. For example, the trigger operation is used to trigger the running of an application in the second system.

[0092] For example, for some scenarios with multiple steps, including but not limited to the status bar scenario, the operation mode can be switched by predicting the user's operation in advance. For example, if the user needs to operate a switch on the status bar, the first step must be to pull out the status bar page from under the smart watch dial. At this time, when the first step is received, the smart watch is in the first mode, and it can return to the second mode in advance, so that when the user clicks the button, it can quickly trigger the switch to the first mode and respond to the user's operation in time.

[0093] Case 4: The state information includes the second state information, and the second state information includes the first duration between the first moment and the second moment. The first moment is the moment when the user exits the sleeping state, and the second moment is the moment when the electronic device lights up the screen for the first time after the first moment. Optionally, the first duration is determined by data monitored by sensors of the electronic device. For example, a heart rate sensor, a body temperature sensor, etc. can be used to determine changes in the sleeping state of the user, thereby determining the moment of exiting the sleeping state. The timer can start timing after the first moment to determine the second moment. When the first duration is less than the second duration and the operating mode of the electronic device is in the first mode, the operating mode of the electronic device will be switched from the first mode to the second mode. The second duration is pre-set or set by the user, and this application does not limit this.

[0094] Case 5: The status information includes second status information, and the second status information includes timing information. In some embodiments, the timing information is used to indicate the triggering moment of the scheduled task, and the timing information is determined according to the triggering moment of the scheduled task. The scheduled task is set by the user in the electronic device, for example, it is set by the user through the second system of the electronic device. Scheduled tasks include, but are not limited to, one or more of an alarm clock, a timer, a stopwatch, a sleep reminder, a water drinking reminder, and a medicine taking reminder. When the duration between the current moment and the triggering moment is less than the third duration, and the operating mode of the electronic device is in the first mode, the operating mode of the electronic device will be switched from the first mode to the second mode. The third duration is pre-set or set by the user, and this application does not limit this.

[0095] For example, when a smart watch turns on certain functions that will be triggered at a preset time, a timer earlier than the preset time can be set to trigger the smart watch to exit the first mode in advance before the function is triggered to ensure subsequent performance.

[0096] In some embodiments, the timing information is determined according to the switching moment. Optionally, the switching moment is customized by the user, such as when the user's device wakes up and / or at the end of a lunch break; and / or, the switching moment is determined according to the moment when the user switches from a sleeping state to a waking state, which can be understood as the waking moment of the user. Optionally, the switching moment from the sleeping state to the waking state is determined according to the historical sleep data of the user, for example, the switching moment is predicted according to the historical sleep data of the user. The corresponding historical sleep data includes the period of time when the user was in the sleeping state and / or the period of time when the user was in the waking state detected by the electronic device. For example, if the historical sleep data indicates that the user woke up at 8:00 every day in the past week, 8:00 will be determined as the switching moment. When the duration between the current moment and the switching moment is less than the third duration, and the operating mode of the electronic device is in the first mode, the operating mode of the electronic device will be switched from the first mode to the second mode. The third duration is preset or set by the user, and this application does not limit this.

[0097] It should be noted that the above cases 1 and 2 can be regarded as determining the operation mode switching of the electronic device according to the usage status of the user object. The above cases 3-5 can be regarded as determining the operation mode switching of the electronic device according to the current usage scenario of the electronic device.

[0098] In some embodiments, after the operation mode of the electronic device is switched from the first mode to the second mode, when the second duration is greater than the fourth duration, the operation mode of the electronic device is switched from the second mode to the first mode. The second duration is used to reflect the duration of the operation of the electronic device not being received from the third moment, and the third moment is the moment when the operation mode of the electronic device is switched from the first mode to the second mode according to the first duration. The fourth duration is preset or set by the user, and this application does not limit this.

[0099] For example, when the user wakes up from sleep, if the smart watch triggers the screen to turn on within a short period of time and is currently in the first mode, the smart watch can be returned to the second mode in advance, so that the user can get a quick response to the operation of the smart watch after waking up. Afterwards, if the user does not operate the smart watch for a long time, the smart watch will enter the first mode again.

[0100] In addition, for the case of switching the operating mode of the electronic device from the first mode or the second mode to the third mode, the trigger condition can refer to the introduction of the ultra-low power consumption state and the standby state, and the present application does not limit this. For example, when the electronic device receives a call, receives the pressing of a physical button, and triggers the running of an application in the second system, it can switch to the first mode. For the case of switching the operating mode of the electronic device from the first mode to the second mode, the present application does not limit the trigger condition. For example, the trigger condition can be that the duration of the screen of the electronic device is off for a fifth duration, or the duration from the moment the electronic device last received an operation to the current moment reaches the sixth duration. The fifth duration and the sixth duration are preset or set by the user, and the present application does not limit this.

[0101] In some embodiments, the electronic device will also record the time periods during which the user performs operations every day in the historical period, and determine one or more time periods during which the operations are performed most frequently as target time periods. Thereafter, when the current moment is in the target time period or the time length from the start time of the target time period is less than the seventh time length, the electronic device will trigger a switch from the first mode to the second mode. For example, the electronic device records that the user operated the electronic device at 14:00-14:10 on the first day, at 18:00-18:05 on the first day, at 14:00-14:15 on the second day, and at 14:00-14:10 on the third day, the electronic device will determine 14:00-14:10 as the target time period.

[0102] In some embodiments, the process of switching the operating mode of the electronic device from the first mode to the second mode includes: controlling the operating mode of the electronic device to switch from the first mode to the third mode and then to the second mode. In this case, the second system does not support direct switching between the ultra-low power consumption state and the standby state, for example, the second processor of the second system does not support it. Therefore, it is necessary to first switch the second system from the ultra-low power consumption state to the operating state (i.e., switching from the first mode to the third mode), and then switch the second system from the operating state to the standby state (i.e., switching from the third mode to the second mode). In some embodiments, the process of switching the operating mode of the electronic device from the second mode to the first mode includes: controlling the operating mode of the electronic device to switch from the second mode to the third mode and then to the first mode. In this case, the second system does not support direct switching between the ultra-low power consumption state and the standby state, for example, the second processor of the second system does not support it. Therefore, it is necessary to first switch the second system from the standby state to the operating state (i.e., switching from the second mode to the third mode), and then switch the second system from the operating state to the ultra-low power consumption state (i.e., switching from the third mode to the first mode).

[0103] In some embodiments, when the second system supports direct switching between an ultra-low power consumption state and a standby state, there is also a situation where the operating mode of the electronic device is controlled to switch from a first mode to a third mode and then to the second mode, and / or a situation where the operating mode of the electronic device is controlled to switch from the second mode to the third mode and then to the first mode. These two situations can also be triggered according to the status information.

[0104] Regarding the case of controlling the operating mode of the electronic device to switch from the first mode to the third mode and then to the second mode: In some embodiments, the state information includes second state information, and the second state information includes operation information, and the operation information is used to reflect the operation of the electronic device by the user. Optionally, the operation information is used to trigger the operation of the application in the second system. According to the operation information, the operating mode of the electronic device will be controlled to switch from the first mode to the third mode. If no user operation is detected within a preset time, the electronic device will be controlled to switch from the third mode to the second mode. After switching to the second mode, the operating mode of the electronic device can also be switched from the second mode to the first mode. The implementation process can refer to the relevant content in the previous text.

[0105] In some embodiments, the state information includes second state information, and the second state information includes sleep information of the user, and the sleep information includes one or more of sleep state, sleep posture detection information, and sleep duration. Optionally, the sleep state is used to reflect the switching of the user between the falling asleep state and the waking up state, and / or to reflect the sleep depth of the user, such as deep sleep and / or light sleep. According to the sleep information, the operation mode of the electronic device can be controlled to switch from the first mode to the third mode. For example, when the sleep state reflects that the user changes from the falling asleep state to the waking up state, and / or the sleep state reflects that the user changes from deep sleep to light sleep, and / or the sleep posture detection information reflects that the activity amplitude of the user is greater than the preset amplitude, and / or the sleeping duration is greater than the sleep duration set by the user, the operation mode of the electronic device will be controlled to switch from the first mode to the third mode. After that, if no user operation is detected within the preset time, and / or the sleep state reflects that the user changes from the waking up state to the falling asleep state, and / or the sleep state reflects that the user changes from light sleep to deep sleep, the electronic device will be controlled to switch from the third mode to the second mode again. After switching to the second mode, the operation mode of the electronic device can also be switched from the second mode to the first mode. The implementation process can refer to the relevant content in the above text.

[0106] Regarding the case of controlling the operation mode of the electronic device to switch from the second mode to the third mode and then to the first mode: In some embodiments, the state information includes second state information, and the second state information includes operation information, and the operation information is used to reflect the operation of the electronic device by the user. Optionally, the operation information is used to trigger the operation of the application in the second system. According to the operation information, the operation mode of the electronic device will be controlled to switch from the second mode to the third mode. After that, if no user operation is detected within a preset time, and / or the remaining power of the electronic device is lower than the first power threshold, and / or the electronic device has no business operation, for example, when no application is running, the electronic device will be controlled to switch from the third mode to the first mode. After switching to the first mode, the operation mode of the electronic device can also be switched from the first mode to the second mode. The implementation process can refer to the relevant content in the previous text.

[0107] In some embodiments, when the electronic device is in the second mode, the operation mode of the electronic device can be controlled to switch from the second mode to the first mode and then to the third mode according to the state information. For example, when the electronic device is in the second mode and has not been touched by the user for a preset time when not worn, it enters the first mode from the second mode, and when the electronic device detects that the user triggers to start an application of the second system in the first mode, it enters the third mode from the first mode; in some embodiments, when the electronic device detects that it is being worn in the first mode, it switches from the first mode to the second mode.

[0108] The operating mode of the control electronics is switched between the first mode and the third mode:

[0109] In some embodiments, the operation mode of the electronic device can be controlled to switch between the first mode and the third mode according to the state information, for example, the operation mode of the electronic device is switched from the third mode to the first mode, and / or the operation mode of the electronic device is switched from the first mode to the third mode. In some embodiments, the process of controlling the operation mode of the electronic device to switch between the first mode and the third mode includes: when the state information satisfies the third switching condition and the operation mode of the electronic device is in the third mode, the operation mode of the electronic device is switched from the third mode to the first mode; and / or, when the state information satisfies the fourth switching condition and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the third mode. Among them, the third switching condition is set for the state information that satisfies the condition of switching the operation mode of the electronic device from the third mode to the first mode, and the fourth switching condition is set for the state information that satisfies the condition of switching the operation mode of the electronic device from the first mode to the third mode. Optionally, the third switching condition and the fourth switching condition are set by the developer of the electronic device.

[0110] In some embodiments, the process of switching the operating mode of the electronic device between the first mode and the third mode includes but is not limited to one or more of the following situations:

[0111] Case 1: The state information includes first state information, the first state information includes sleep information of the user, and the sleep information includes sleep state and / or sleep duration. Optionally, the sleep state is used to reflect the switching of the user between the falling asleep state and the waking up state. According to the sleep information, the operation mode of the electronic device can be controlled to switch from the first mode to the third mode. For example, when the sleep state reflects that the user changes from the falling asleep state to the waking up state, and / or the sleeping duration is greater than the sleeping duration set by the user, the operation mode of the electronic device will be controlled to switch from the first mode to the third mode.

[0112] Case 2: The state information includes the second state information, and the second state information includes the motion information of the user. The motion information is used to reflect whether the electronic device is in a state of recording the motion of the user, such as in a state of recording running, in a state of recording mountain climbing, in a state of recording cycling, etc. When the motion information reflects that the electronic device is in a state of recording the motion of the user, the operation mode of the electronic device is controlled to switch from the first mode to the third mode. Since the user may frequently operate the electronic device during the process of recording the motion, entering the third mode can improve the response speed to the user's operation.

[0113] Case 3: The state information includes second state information, and the second state information includes operation information, and the operation information is used to reflect the operation of the electronic device by the user. According to the operation information, the operation mode of the electronic device can be controlled to switch from the first mode to the third mode. For example, when the electronic device is in the first mode, when the user triggers the operation of an application of the second system in the user interface provided by the first system, the operation mode of the electronic device is switched from the first mode to the third mode, and the corresponding application is run. And / or, when the electronic device is in the first mode and the first system is in the standby state, when the user triggers the physical buttons and / or crown of the electronic device, such as performing a long press operation on the physical buttons and / or crown, the operation mode of the electronic device is switched from the first mode to the third mode. Optionally, after switching to the third mode, the electronic device can display an application list and / or display the user interface of the application running by the second system.

[0114] Case 4: The state information includes the second state information, and the second state information includes the remaining power of the electronic device. When the remaining power is less than the second power threshold, the operation mode of the electronic device is switched from the third mode to the first mode to reduce the power consumption of the electronic device and extend the battery life of the electronic device.

[0115] Case 5: The state information includes second state information, and the second state information includes operation information, and the operation information is used to reflect the operation of the electronic device by the user. According to the operation information, the operation mode of the electronic device can be controlled to switch from the third mode to the first mode. For example, when the electronic device is in the third mode, the user controls the electronic device to enter the first mode from the third mode through a mode switching operation. Optionally, the mode switching operation is triggered by a physical button of the electronic device and / or a control displayed on the display screen of the electronic device.

[0116] In some embodiments, the process of switching the operating mode of the electronic device from the first mode to the third mode includes: controlling the operating mode of the electronic device to switch from the first mode to the second mode and then to the third mode. In this case, the second system does not support direct switching between the ultra-low power state and the operating state, for example, the second processor of the second system does not support it. Therefore, it is necessary to first switch the second system from the ultra-low power state to the standby state (i.e., switching from the first mode to the second mode), and then switch the second system from the standby state to the operating state (i.e., switching from the second mode to the third mode). In some embodiments, the process of switching the operating mode of the electronic device from the third mode to the first mode includes: controlling the operating mode of the electronic device to switch from the third mode to the second mode and then to the first mode. In this case, the second system does not support direct switching between the ultra-low power state and the operating state, for example, the second processor of the second system does not support it. Therefore, it is necessary to first switch the second system from the operating state to the standby state (i.e., switching from the third mode to the second mode), and then switch the second system from the standby state to the ultra-low power state (i.e., switching from the second mode to the first mode).

[0117] In some embodiments, when the second system supports direct switching between an ultra-low power consumption state and an operating state, there is also a situation where the operating mode of the electronic device is controlled to switch from a first mode to a second mode and then to a third mode, and / or the operating mode of the electronic device is controlled to switch from a third mode to a second mode and then to the first mode. These two situations can also be triggered according to the status information.

[0118] For the case where the operation mode of the electronic device is controlled to switch from the first mode to the second mode and then to the third mode: In some embodiments, the state information includes the first state information, the first state information includes the sleep information of the user, and the sleep information includes one or more of the sleep state, the sleep posture detection information, and the duration of falling asleep. Optionally, the sleep state is used to reflect the switching of the user between the falling asleep state and the waking up state, and / or to reflect the sleep depth of the user, such as deep sleep and / or shallow sleep. According to the sleep information, the operation mode of the electronic device can be controlled to switch from the first mode to the second mode. For example, when the sleep state reflects that the user changes from deep sleep to shallow sleep, and / or the sleep posture detection information reflects that the activity amplitude of the user is greater than the preset amplitude, and / or the duration of falling asleep is greater than the sleep duration set by the user, the operation mode of the electronic device will be controlled to switch from the first mode to the second mode. Afterwards, when the sleep state reflects that the user changes from the falling asleep state to the waking up state, the electronic device will be controlled to switch from the second mode to the third mode. And / or, when the sleep state reflects that the user object changes from a falling asleep state to a waking up state, the electronic device is controlled to switch from the first mode to the second mode, and then, when user operation information of the user object is received, the electronic device is controlled to switch from the second mode to the third mode. In some embodiments, the user operation information is used to trigger the running of an application in the second system.

[0119] Regarding the case of controlling the operating mode of the electronic device to switch from the third mode to the second mode and then to the first mode: In some embodiments, the status information includes first status information and / or second status information, the first status information includes wearing status information, and the second status information includes business operation information of the electronic device. The wearing status information is used to reflect whether the electronic device is worn / held by the user. The business operation information is used to reflect whether the electronic device has any business operation, such as whether an application is running. In the case where the business operation information reflects that the electronic device has no business operation, the operating mode of the electronic device will be controlled to switch from the third mode to the second mode. Thereafter, when the wearing status information indicates that the electronic device is not worn by the user and no operation information from the user is received within a preset time, the electronic device will be controlled to switch from the second mode to the first mode again.

[0120] In some embodiments, when the electronic device is in the third mode, the operating mode of the electronic device can be controlled to switch from the third mode to the first mode and then to the second mode according to the status information. For example, when the wearing status information of the electronic device indicates that the time period during which the electronic device has not been worn by the user reaches a non-wearing time threshold, the electronic device will be controlled to switch from the third mode to the first mode. Thereafter, when the wearing status information of the electronic device indicates that the electronic device has changed from a state of not being worn by the user to a state of being worn by the user, the electronic device will be controlled to switch from the first mode to the second mode. For other implementations of switching between the third mode and the first mode, and switching between the first mode and the second mode, reference can also be made to the relevant descriptions in the foregoing text.

[0121] It should be noted that the above-mentioned implementation schemes for the switching process between any two modes of the first mode, the second mode, and the third mode can be implemented separately. In addition, in the case of two or more mode switching, the schemes used for each mode switching can be combined to implement a scheme applied to two or more mode switching.

[0122] For the interaction process between the two systems during the process of switching the operation mode of the electronic device. For example, Figure 5 FIG. 1 is a dual system architecture diagram provided by an exemplary embodiment of the present application. Figure 5As shown, supporting dual systems means that the electronic device supports both the small core system (first system) 501 and the large core system (second system) 502. Among them, the dual-core communication between the small core system (MCU of the small core system) 501 and the large core system (CPU of the large core system) 502 is implemented based on interfaces such as the Serial Peripheral Interface (SPI), the Universal Asynchronous Receiver / Transmitter (UART) or the Universal Serial Bus (USB), which is responsible for carrying the conventional business interaction between the small core system 501 and the large core system 502. For example, the small core system 501 and the large core system 502 interact with deep sleep-related instructions through the deep sleep control channel, which can be implemented based on interfaces such as the InterIntegrated Circuit (I2C) or the General Purpose Input / Output (GPIO). The small core system 501 controls the opening and closing of the deep sleep state of the large core system 502, and receives the status notification of the deep sleep state of the large core system 502. The small core system 501 and the large core system 502 share the peripherals 503 of the electronic device, such as a screen, buttons, and other peripherals. The electronic device switches between the small core system 501 and the large core system 502 through a switch, which can be a hardware electronic switch or a software simulation switch. In some embodiments, Figure 5 The dual system architecture shown is implemented as a dual-core smart wearable device, for example, a dual-core smart watch. It can be understood that the deep sleep state can be a kind of ultra-low power consumption state.

[0123] For example, Figure 6 FIG. 1 is a schematic diagram of a process of switching operating modes provided by an exemplary embodiment of the present application. Figure 6 As shown, in step S1 of the behavior monitoring process, the electronic device collects the behavior of the object being used. In step S2, the electronic device analyzes and predicts the collected behavior to determine the status information corresponding to the electronic device, thereby determining whether to trigger the operation mode switch. In step S3, when it is determined that the operation mode switch is triggered, a mode switch notification is triggered, and the mode switch notification enters the message queue in step S4. In step S4 of the mode switching process, when the message queue is updated, a new message is notified. In step S5, when the electronic device is in an idle state, it waits for new messages. In step S6, after receiving new information, the message queue is checked. In step S7, if the message queue is an empty queue, the idle state is entered again. In step S8, if the message queue is not an empty queue, the new message is processed, thereby triggering the operation mode switch.

[0124] In summary, the method provided in this embodiment can realize the current usage scenario of the electronic device according to the status information by acquiring the status information corresponding to the electronic device. By controlling the operation mode of the electronic device according to the status information, it is possible to reasonably control the current operation mode of the electronic device according to the primary and secondary relationship between the performance requirements and energy-saving requirements of the electronic device according to the current usage scenario of the electronic device, thereby realizing a reasonable balance between the performance and power consumption of the electronic device without affecting the user experience.

[0125] The method provided in this embodiment also reasonably controls the timing of the second system entering the ultra-low power consumption state according to the state information, avoids frequent entry and exit of the ultra-low power consumption state, and ensures the power consumption performance of the electronic device. By selecting the best time to enter and exit the first mode according to the state of the user object and the state of the electronic device, the waiting time of the user object in the mode switching process can be reduced, the user object's perception of the mode switching can be reduced, and the user experience can be improved. By sorting out the specific usage scenarios, the mode switching strategy is optimized based on the behavior of the user object, the effectiveness of each switch is guaranteed as much as possible, the impact on the power consumption of the electronic device is reduced, and the user experience of the user object is taken into account. By switching the electronic device between the first mode and the second mode, since the first mode has low energy consumption and the second mode can ensure that the wake-up time to enter the running state is short, it is possible to achieve a balance between the performance and power consumption of the electronic device. By setting the corresponding switching conditions for the state information, the operation mode of the electronic device can be triggered by judging the switching conditions, thereby improving the efficiency of switching the operation mode.

[0126] It should be noted that before collecting relevant user data (such as status information in this application) and during the process of collecting relevant user data, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0127] It should be noted that the sequence of the method steps provided in the embodiments of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated here.

[0128] Figure 7 FIG. 1 is a schematic diagram of a control device for an electronic device provided by an exemplary embodiment of the present application. Figure 7 As shown, the device comprises:

[0129] An acquisition module 701 is used to acquire status information corresponding to the electronic device, where the status information includes first status information and / or second status information, where the first status information is related to the status of an object using the electronic device, and the second status information is related to the status of the electronic device;

[0130] A control module 702, configured to control the operation mode of the electronic device to enter a first mode or exit the first mode according to the state information;

[0131] Among them, the first mode is a mode in which the first system is in a running state or a standby state, and the second system is in an ultra-low power consumption state, the ultra-low power consumption state is different from the standby state and the shutdown state, the first system is run by a first processor, and the second system is run by a second processor.

[0132] In an optional design, the control module 702 is used to control the operating mode of the electronic device to switch between the first mode and the second mode according to the status information; wherein the second mode is a mode in which the first system is in the operating state or the standby state, and the second system is in the standby state, the power consumption of the second system in the ultra-low power consumption state is lower than that in the standby state and higher than that in the shutdown state, and / or the wake-up time of the second system in the ultra-low power consumption state is greater than that in the standby state and less than that in the shutdown state; and / or, according to the status information, control the operating mode of the electronic device to switch between the first mode and the third mode; wherein the third mode is a mode in which the first system is in the operating state or the standby state, and the second system is in the operating state.

[0133] In an optional design, the control module 702 is used to switch the operating mode of the electronic device from the second mode to the first mode when the status information satisfies a first switching condition and the operating mode of the electronic device is in the second mode; and / or, when the status information satisfies a second switching condition and the operating mode of the electronic device is in the first mode, switch the operating mode of the electronic device from the first mode to the second mode; and / or, when the status information satisfies a third switching condition and the operating mode of the electronic device is in the third mode, switch the operating mode of the electronic device from the third mode to the first mode; and / or, when the status information satisfies a fourth switching condition and the operating mode of the electronic device is in the first mode, switch the operating mode of the electronic device from the first mode to the third mode.

[0134] In an optional design, the status information includes the first status information, and the first status information includes sleeping status information; the control module 702 is used to switch the operating mode of the electronic device from the second mode to the first mode when the sleeping status information indicates that the user is in the sleeping state and the operating mode of the electronic device is in the second mode; and / or, the first status information includes waking up status information; the control module 702 is used to switch the operating mode of the electronic device from the first mode to the second mode when the waking up status information indicates that the user is in the waking up state and the operating mode of the electronic device is in the first mode.

[0135] In an optional design, the status information includes the first status information and the second status information, the first status information includes wearing status information, and the second status information includes screen-off duration; the control module 702 is used to switch the operating mode of the electronic device from the second mode to the first mode when the screen-off duration reaches a first duration and the wearing status information indicates that the electronic device is not worn, and the operating mode of the electronic device is in the second mode.

[0136] In an optional design, the status information includes the first status information, and the first status information includes wearing status information; the control module 702 is used to switch the operating mode of the electronic device from the first mode to the second mode when the wearing status information indicates that the electronic device is changed from a non-worn state to a worn state and the operating mode of the electronic device is in the first mode.

[0137] In an optional design, the status information includes the second status information, and the second status information includes operation information on the electronic device; the control module 702 is used to switch the operating mode of the electronic device from the first mode to the second mode when the operation indicated by the operation information is a prerequisite operation of a trigger operation and the operating mode of the electronic device is in the first mode, and the trigger operation is an operation for triggering the running of an application in the second system.

[0138] In an optional design, the status information includes the second status information, the second status information includes a first duration between a first moment and a second moment, the first moment is the moment when the user exits the sleeping state, and the second moment is the moment when the electronic device lights up the screen for the first time after the first moment; the control module 702 is used to switch the operating mode of the electronic device from the first mode to the second mode when the first duration is less than the second duration and the operating mode of the electronic device is in the first mode.

[0139] In an optional design, the status information includes the second status information, the second status information includes timing information, and the timing information is used to indicate the triggering time of the scheduled task; the control module 702 is used to switch the operating mode of the electronic device from the first mode to the second mode when the duration between the current moment and the triggering moment is less than a third duration and the operating mode of the electronic device is in the first mode.

[0140] In an optional design, the control module 702 is used to switch the operating mode of the electronic device from the second mode to the first mode when the second duration is greater than a fourth duration; wherein the second duration is used to reflect the duration of time during which no operation on the electronic device is received starting from a third moment, and the third moment is the moment when the operating mode of the electronic device is switched from the first mode to the second mode.

[0141] In an optional design, the control module 702 is used to control the operating mode of the electronic device to switch from the first mode to the third mode and then to the second mode; and / or, control the operating mode of the electronic device to switch from the second mode to the third mode and then to the first mode; and / or, control the operating mode of the electronic device to switch from the first mode to the second mode and then to the third mode; and / or, control the operating mode of the electronic device to switch from the third mode to the second mode and then to the first mode.

[0142] It should be noted that the control device of the electronic device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the control device of the electronic device provided in the above embodiment and the control method embodiment of the electronic device belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0143] An embodiment of the present application also provides an electronic device, which includes: a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the control method of the electronic device provided by the above-mentioned method embodiments.

[0144] For example, Figure 8 FIG. 1 is a schematic diagram of a terminal provided by an exemplary embodiment of the present application. In some embodiments, the terminal is implemented as an electronic device, such as a wearable device.

[0145] Typically, the terminal 800 includes a processor 801 and a memory 802 .

[0146] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0147] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, which is used to be executed by the processor 801 to implement the control method of the electronic device provided in the method embodiment of the present application.

[0148] In some embodiments, the terminal 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807 and a power supply 808.

[0149] The peripheral device interface 803 can be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral device interface 803 can be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.

[0150] The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0151] The display screen 805 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on the surface or above the surface of the display screen 805. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 805 can be one, and the front panel of the terminal 800 is set; in other embodiments, the display screen 805 can be at least two, which are respectively set on different surfaces of the terminal 800 or are folded; in some other embodiments, the display screen 805 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 800. Even, the display screen 805 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode) and the like.

[0152] The camera assembly 806 is used to capture images or videos. Optionally, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal 800, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0153] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 801 for processing, or input them into the radio frequency circuit 804 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 800. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 807 may also include a headphone jack.

[0154] The power supply 808 is used to power various components in the terminal 800. The power supply 808 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 808 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0155] In some embodiments, the terminal 800 further includes one or more sensors 809 , including but not limited to: an acceleration sensor 810 , a gyroscope sensor 811 , a pressure sensor 812 , an optical sensor 813 , and a proximity sensor 814 .

[0156] The acceleration sensor 810 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 800. For example, the acceleration sensor 810 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 801 can control the touch display screen 805 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 810. The acceleration sensor 810 can also be used for collecting game or user motion data.

[0157] The gyro sensor 811 can detect the body direction and rotation angle of the terminal 800, and the gyro sensor 811 can cooperate with the acceleration sensor 810 to collect the user's 3D actions on the terminal 800. The processor 801 can implement the following functions based on the data collected by the gyro sensor 811: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0158] The pressure sensor 812 can be set on the side frame of the terminal 800 and / or the lower layer of the touch display screen 805. When the pressure sensor 812 is set on the side frame of the terminal 800, it can detect the user's holding signal of the terminal 800, and the processor 801 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 812. When the pressure sensor 812 is set on the lower layer of the touch display screen 805, the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0159] The optical sensor 813 is used to collect the ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the touch display screen 805 according to the ambient light intensity collected by the optical sensor 813. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 805 is reduced. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 813.

[0160] The proximity sensor 814, also called a distance sensor, is usually arranged on the front panel of the terminal 800. The proximity sensor 814 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 814 detects that the distance between the user and the front of the terminal 800 is gradually decreasing, the processor 801 controls the touch display screen 805 to switch from the screen-on state to the screen-off state; when the proximity sensor 814 detects that the distance between the user and the front of the terminal 800 is gradually increasing, the processor 801 controls the touch display screen 805 to switch from the screen-off state to the screen-on state.

[0161] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the terminal 800, and the terminal 800 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0162] A computer-readable storage medium is also provided in an embodiment of the present application, in which at least one instruction, at least one program, code set or instruction set is stored. When the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor of an electronic device, the control method of the electronic device provided by the above-mentioned method embodiments is implemented.

[0163] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the control method of the electronic device provided by each of the above method embodiments.

[0164] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned readable storage medium may be a read-only memory, a disk or an optical disk, etc.

[0165] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A control method for an electronic device, characterized in that: The method comprises: Acquire status information corresponding to the electronic device, the status information including first status information and / or second status information, the first status information is related to the status of an object using the electronic device, and the second status information is related to the status of the electronic device; According to the state information, controlling the operation mode of the electronic device to enter a first mode or exit the first mode; Among them, the first mode is a mode in which the first system is in a running state or a standby state, and the second system is in an ultra-low power consumption state, the ultra-low power consumption state is different from the standby state and the shutdown state, the first system is run by a first processor, and the second system is run by a second processor.

2. The method according to claim 1, characterized in that The controlling the operation mode of the electronic device to enter the first mode or exit the first mode according to the state information includes: According to the state information, controlling the operation mode of the electronic device to switch between the first mode and the second mode; The second mode is a mode in which the first system is in the running state or the standby state, and the second system is in the standby state, the power consumption of the second system in the ultra-low power consumption state is lower than that in the standby state and higher than that in the shutdown state, and / or the wake-up time of the second system in the ultra-low power consumption state is longer than that in the standby state and shorter than that in the shutdown state; and / or, The controlling the operation mode of the electronic device to enter the first mode or exit the first mode according to the state information includes: According to the state information, controlling the operation mode of the electronic device to switch between the first mode and the third mode; The third mode is a mode in which the first system is in the running state or the standby state, and the second system is in the running state.

3. The method according to claim 2, characterized in that The step of controlling the operation mode of the electronic device to switch between the first mode and the second mode according to the state information includes: When the state information satisfies the first switching condition and the operation mode of the electronic device is in the second mode, switching the operation mode of the electronic device from the second mode to the first mode; and / or, When the state information satisfies a second switching condition and the operation mode of the electronic device is in the first mode, switching the operation mode of the electronic device from the first mode to the second mode; and / or, The step of controlling the operation mode of the electronic device to switch between the first mode and the third mode according to the state information includes: When the state information satisfies a third switching condition and the operation mode of the electronic device is in the third mode, switching the operation mode of the electronic device from the third mode to the first mode; and / or, When the state information satisfies a fourth switching condition and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the third mode.

4. The method according to claim 3, characterized in that The state information includes the first state information, and the first state information includes sleeping state information; when the state information satisfies a first switching condition and the operation mode of the electronic device is in the second mode, switching the operation mode of the electronic device from the second mode to the first mode includes: When the sleeping state information indicates that the user is in a sleeping state and the operation mode of the electronic device is in the second mode, switching the operation mode of the electronic device from the second mode to the first mode; and / or, The first state information includes waking up state information; and when the state information satisfies a second switching condition and the operation mode of the electronic device is in the first mode, switching the operation mode of the electronic device from the first mode to the second mode includes: When the waking up state information indicates that the user is in a waking up state and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the second mode.

5. The method according to claim 3, characterized in that: The state information includes the first state information and the second state information, the first state information includes the wearing state information, and the second state information includes the screen off duration; when the state information satisfies the first switching condition and the operation mode of the electronic device is in the second mode, switching the operation mode of the electronic device from the second mode to the first mode includes: When the screen-off duration reaches a first duration and the wearing status information indicates that the electronic device is not worn, and the operating mode of the electronic device is in the second mode, the operating mode of the electronic device is switched from the second mode to the first mode.

6. The method according to claim 3, characterized in that The state information includes the first state information, and the first state information includes wearing state information; when the state information satisfies a second switching condition and the operation mode of the electronic device is in the first mode, switching the operation mode of the electronic device from the first mode to the second mode includes: When the wearing state information indicates that the electronic device changes from a non-worn state to a worn state, and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the second mode.

7. The method according to claim 3, characterized in that The state information includes the second state information, and the second state information includes operation information of the electronic device; when the state information satisfies the second switching condition and the operation mode of the electronic device is in the first mode, switching the operation mode of the electronic device from the first mode to the second mode includes: When the operation indicated by the operation information is a prerequisite operation of a trigger operation and the operating mode of the electronic device is in the first mode, the operating mode of the electronic device is switched from the first mode to the second mode, and the trigger operation is an operation for triggering the running of an application in the second system.

8. The method according to claim 3, characterized in that The state information includes the second state information, the second state information includes a first duration between a first moment and a second moment, the first moment is the moment when the user exits the sleeping state, and the second moment is the moment when the screen of the electronic device is first lit after the first moment; when the state information satisfies the second switching condition and the operation mode of the electronic device is in the first mode, switching the operation mode of the electronic device from the first mode to the second mode includes: When the first duration is shorter than the second duration and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the second mode.

9. The method according to claim 3, characterized in that: The state information includes the second state information, the second state information includes timing information, and the timing information is used to indicate a triggering time of the timed task; when the state information satisfies a second switching condition and the operation mode of the electronic device is in the first mode, switching the operation mode of the electronic device from the first mode to the second mode includes: When the duration between the current moment and the trigger moment is less than a third duration and the operation mode of the electronic device is in the first mode, the operation mode of the electronic device is switched from the first mode to the second mode.

10. The method according to any one of claims 3 to 9, characterized in that: After switching the operation mode of the electronic device from the first mode to the second mode, the method further includes: When the second duration is greater than a fourth duration, switching the operation mode of the electronic device from the second mode to the first mode; The second duration is used to reflect the duration of time during which no operation on the electronic device is received starting from a third moment, and the third moment is the moment when the operating mode of the electronic device is switched from the first mode to the second mode.

11. The method according to any one of claims 2 to 9, characterized in that: The controlling the operation mode of the electronic device to switch between the first mode and the second mode includes: Controlling the operation mode of the electronic device to switch from the first mode to the third mode and then to the second mode; and / or, Controlling the operation mode of the electronic device to switch from the second mode to the third mode and then to the first mode; and / or, The step of controlling the operation mode of the electronic device to switch between the first mode and the third mode comprises: Controlling the operation mode of the electronic device to switch from the first mode to the second mode and then to the third mode; and / or, The operation mode of the electronic device is controlled to switch from the third mode to the second mode and then to the first mode.

12. A control device for an electronic device, characterized in that: The device comprises: an acquisition module, configured to acquire status information corresponding to the electronic device, the status information comprising first status information and / or second status information, the first status information being related to a status of an object using the electronic device, and the second status information being related to a status of the electronic device; A control module, configured to control the operation mode of the electronic device to enter a first mode or exit the first mode according to the state information; Among them, the first mode is a mode in which the first system is in a running state or a standby state, and the second system is in an ultra-low power consumption state, the ultra-low power consumption state is different from the standby state and the shutdown state, the first system is run by a first processor, and the second system is run by a second processor.

13. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the control method of the electronic device as claimed in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the control method of the electronic device according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the control method of an electronic device as described in any one of claims 1 to 11.

Citation Information

Cited By

  • Electronic device control method and apparatus, device, and storage medium

    WO2026046335A1

  • Control method and apparatus for electronic device, device, and storage medium

    WO2026145263A1