CN112764812A - Electronic device and control method thereof - Google Patents

Electronic device and control method thereof Download PDF

Info

Publication number
CN112764812A
CN112764812A CN202110035469.9A CN202110035469A CN112764812A CN 112764812 A CN112764812 A CN 112764812A CN 202110035469 A CN202110035469 A CN 202110035469A CN 112764812 A CN112764812 A CN 112764812A
Authority
CN
China
Prior art keywords
electronic device
application
event
switching
sleep state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110035469.9A
Other languages
Chinese (zh)
Other versions
CN112764812B (en
Inventor
张恩迪
刘戈峰
古全永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202110035469.9A priority Critical patent/CN112764812B/en
Publication of CN112764812A publication Critical patent/CN112764812A/en
Application granted granted Critical
Publication of CN112764812B publication Critical patent/CN112764812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)

Abstract

The application discloses an electronic device and a control method thereof, and belongs to the technical field of electronics. The electronic device includes a controller to: receiving a switching event creation instruction generated by an application in the process that the electronic equipment is in the first dormant state, wherein the switching event creation instruction is used for indicating the creation of a switching event, the switching event is set to be executed in the process that the electronic equipment is in the second dormant state, and the switching event is used for switching the electronic equipment from the second dormant state to the first dormant state after being executed; forbidding to execute the switching event creating instruction; the electronic equipment is turned off in the first dormancy state and the second dormancy state, a processor of the electronic equipment works in the first dormancy state, and the processor stops working in the second dormancy state. The application solves the problem that the power consumption of the electronic equipment is large. The method and the device are used for controlling the electronic equipment.

Description

Electronic device and control method thereof
Technical Field
The present disclosure relates to electronic technologies, and in particular, to an electronic device and a control method thereof.
Background
With the development of electronic technology, the functions of electronic equipment are more and more abundant, and the power consumption of electronic equipment is faster and faster, so how to save the power of electronic equipment becomes a relatively important research direction.
In the related art, when the electronic device is not used for a long time, the electronic device may be in a deep sleep (idle) state, in which a processor in the electronic device is in a stop state for a majority of time, so as to reduce power consumption of the electronic device.
However, when the electronic device is in a sleep state, the application installed in the electronic device may also intermittently wake up the processor of the electronic device, so that the processor in the electronic device intermittently operates, which causes the power consumption of the electronic device to increase, and the power consumption of the electronic device is still large when the electronic device is not used for a long time.
Disclosure of Invention
The application provides electronic equipment and a control method thereof, which can solve the problem that the electric quantity is greatly consumed when the electronic equipment is not used for a long time. The technical scheme is as follows:
in one aspect, an electronic device is provided, which includes: a controller; the controller is configured to:
receiving a switching event creating instruction generated by an application in the process that the electronic equipment is in a first dormant state, wherein the switching event creating instruction is used for indicating the creation of a switching event, the switching event is set to be executed in the process that the electronic equipment is in a second dormant state, and the switching event is used for switching the electronic equipment from the second dormant state to the first dormant state after being executed;
prohibiting execution of the handover event creation instruction;
the electronic equipment is turned off in the first sleep state and the second sleep state, a processor of the electronic equipment works in the first sleep state, and the processor stops working in the second sleep state.
In another aspect, a method for controlling an electronic device is provided, the method including:
receiving a switching event creating instruction generated by an application in the process that the electronic equipment is in a first dormant state, wherein the switching event creating instruction is used for indicating the creation of a switching event, the switching event is set to be executed in the process that the electronic equipment is in a second dormant state, and the switching event is used for switching the electronic equipment from the second dormant state to the first dormant state after being executed;
prohibiting execution of the handover event creation instruction;
the electronic equipment is turned off in the first sleep state and the second sleep state, a processor of the electronic equipment works in the first sleep state, and the processor stops working in the second sleep state.
The beneficial effect that technical scheme that this application provided brought includes at least:
in the electronic device provided by the application, when the electronic device is in the first sleep state, the execution of the switching event creation instruction generated by the application can be prohibited, so that the increase of power consumption caused by switching to the first sleep state (namely, the processor is awakened) when the electronic device is in the second sleep state can be reduced, and further the electric quantity of the electronic device can be saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another control method for an electronic device according to an embodiment of the present disclosure;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
At present, electronic devices (such as mobile phones and tablet computers) can be installed with multiple applications to support the electronic devices to implement various functions. For example, a video application may be installed on the electronic device, and when the electronic device runs the video application, the video resource may be acquired and played. And if the electronic equipment is provided with a map application, the electronic equipment can display a map and realize functions of route planning and the like when running the map application. The electronic equipment comprises a processor, and each function of the electronic equipment can be executed by the processor through corresponding instructions and drives other devices in the electronic equipment to perform corresponding work so as to realize the function. The processors in the electronic device may include an Application Processor (AP) and a Baseband Processor (BP), which may be two separate chips in the electronic device. An operating system, a user interface and an application program in the electronic equipment run on the AP, and radio frequency communication control software in the electronic equipment runs on the BP.
The sleep state of the electronic device may include two types of a first sleep state and a second sleep state. The electronic equipment is turned off in the first dormancy state and the second dormancy state, the processor in the electronic equipment works in the first dormancy state, and the processor in the electronic equipment stops working in the second dormancy state.
In the embodiment of the application, the electronic device may enter the second sleep state when the operation triggered by the user is not detected within the target duration, the electronic device is turned off in the second sleep state, and both the AP and the BP in the electronic device may stop operating. In some cases, when the electronic device is in the second sleep state, the BP or a part of modules in the BP may still operate, and the embodiment of the present application is not limited. The electronic equipment further comprises a crystal oscillator unit, the crystal oscillator unit still works when the electronic equipment is in the second dormant state, and the electric quantity consumed by the work of the crystal oscillator unit is less. The crystal oscillator unit may manage a switching event of the electronic device, and execute the switching event at a switching time indicated by the switching event managed by the crystal oscillator unit to switch the electronic device from the second sleep state to the first sleep state in which the AP and the BP in the electronic device start to operate. The switching event is equivalent to a starting event of a processor of the electronic device, the switching event may also be referred to as a wake-up event of the processor, and the executing of the switching event is to start the processor of the electronic device, so that the electronic device is in the first sleep state. The time length of the electronic device in the first sleep state each time is short, for example, the time length is ten seconds, then the AP and the BP in the electronic device are forced to stop running, and the electronic device is switched from the first sleep state to the second sleep state again. Alternatively, the electronic device being in the first sleep state or the second sleep state may be referred to as the electronic device being in the deep sleep state.
The electronic device can further comprise a detection unit, and when the electronic device is turned off, the detection unit can trigger the electronic device to turn on the screen and enter the working state again when detecting the operation triggered by the user. For example, when the detecting unit detects that a key of the electronic device is pressed, a display screen of the electronic device is touched, or the electronic device is moved, or the like, the detecting unit may trigger the display screen of the electronic device to light up, and trigger both the AP and the BP to start operating, so that the electronic device enters an operating state again.
A plurality of applications may be installed in the electronic device, a reference application in the current electronic device may trigger a processor of the electronic device to create a switching event when the electronic device is in a working state, where the switching event may also be referred to as a wake-up alarm clock, and the reference application may be any application installed in the electronic device. The wake-up alarm clock created by the processor is managed by the crystal oscillator unit, when the electronic device is in the second sleep state and the time indicated by the wake-up alarm clock is determined to be reached, the crystal oscillator unit triggers the processor to start working, the electronic device is switched from the second sleep state to the first sleep state, then the reference application can trigger the processor of the electronic device again to create a switching event, and the steps are repeated in a circulating mode. The electronic device creates the switching event again after switching from the second sleep state to the first sleep state every time, and then the electronic device is triggered to enter the second sleep state and then can be switched to the first sleep state again.
Illustratively, while the electronic device is in the active state, a reference application in the electronic device triggers the processor to create a wake-up alarm that wakes up five minutes later, and then the electronic device enters a second sleep state one minute later. The crystal oscillator unit may start the processor of the electronic device four minutes after the electronic device enters the second sleep state, for example, start the AP and BP of the electronic device, so that the electronic device is switched from the second sleep state to the first sleep state. At this point, the reference application continues to execute on the AP, triggering the processor (e.g., AP) to again create a wake-up alarm that wakes up five minutes later. And after the electronic equipment is in the first dormancy state for ten seconds, stopping the work of the AP and the BP, and switching the electronic equipment from the first dormancy state to the second dormancy state. And after the crystal oscillator unit determines that the electronic equipment is in the second sleep state for five minutes, the electronic equipment is switched from the second sleep state to the first sleep state again, and then the processor creates the wake-up alarm clock again under the trigger of the reference application. And circulating the steps until the electronic equipment enters the working state again based on the operation triggered by the user.
Fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present application. The method may be used for a controller of an electronic device, which may include a processor in the electronic device. As shown in fig. 1, the method may include:
step 101, receiving a switching event creating instruction generated by an application when the electronic device is in a first dormant state, wherein the switching event creating instruction is used for indicating the creation of a switching event, the switching event is configured to be executed when the electronic device is in a second dormant state, and the switching event is used for switching the electronic device from the second dormant state to the first dormant state after being executed.
The electronic equipment is turned off in the first dormancy state and the second dormancy state, the processor in the electronic equipment works in the first dormancy state, and the processor in the electronic equipment stops working in the second dormancy state.
And 102, forbidding to execute the switching event creating instruction.
In the embodiment of the application, the controller prohibits execution of the switching event creating instruction, that is, after receiving the switching event creating instruction, the controller does not create the switching event, for example, the controller may ignore the switching event creating instruction.
To sum up, in the control method of the electronic device provided in the embodiment of the present application, when the electronic device is in the first sleep state, the execution of the switching event creation instruction generated by the application may be prohibited, so that an increase in power consumption caused by switching to the first sleep state (i.e., the processor is awakened) when the electronic device is in the second sleep state may be reduced, and further, the electric quantity of the electronic device may be saved.
Fig. 2 is a flowchart of another control method for an electronic device according to an embodiment of the present disclosure. The method may be used for a controller of an electronic device, and the controller may include a device capable of independently controlling devices in the electronic device, for example, the controller may include a processor and a crystal oscillator unit in the electronic device. Optionally, the processor and the crystal oscillation unit may be integrated into a whole as a controller, or the processor and the crystal oscillation unit may also be independent of each other, which is not limited in this embodiment of the application. As shown in fig. 2, the method may include:
step 201, when the electronic device is in a working state, receiving a first switching event creation instruction generated by a first application installed in the electronic device. Step 202 is performed.
When the electronic device is in the working state, the display screen of the electronic device is lighted, the processors in the electronic device are all in the working state, and the instructions generated by the application installed in the electronic device can be all executed by the processors of the electronic device. The first application, as installed in the electronic device, may generate a switching event creation instruction, which in turn triggers the processor to execute the switching event creation instruction to create a switching event, where the switching event is to be executed when the electronic device is in the second hibernation state, and the electronic device may be switched from the second hibernation state to the first hibernation state after the switching event is executed. The first application may be any application installed in the electronic device.
Optionally, the switching event creating instruction generated by the application may carry switching time and indication information of an event to be executed after the electronic device is switched to the first sleep state. The switching time is used for indicating the time when the switching event created by the electronic equipment is executed, and the indication information of the event to be executed is used for indicating: the event that the electronic device needs to execute after the switching event is executed to switch the electronic device to the first dormant state. The event to be executed may include at least one of an event of transferring information through a network, an event of determining a location of the electronic device, an event of collecting information of an environment in which the electronic device is located, and an event of information interaction with other electronic devices, for example. Optionally, the event to be executed may also include any other event executable by the electronic device, and the embodiment of the present application is not limited.
Illustratively, there is a wake-up alarm clock service in the electronic device. The first application may invoke the wake-up alarm clock service and set accordingly to generate a switch event creation instruction. The controller may determine that a handover event creation instruction generated by the first application is received when a call instruction of the first application to the wake-up alarm clock service is received. The call instruction of the wake-up alarm clock service may carry switching time and indication information of an event to be executed when the electronic device is switched to the first sleep state, and the call instruction is used for calling the wake-up alarm clock service to trigger the processor to create the switching event.
For convenience of distinction, in the embodiment of the present application, a switching event creation instruction generated by a first application when an electronic device is in an operating state is referred to as a first switching event creation instruction, and a switching event creation instruction generated by the first application when a subsequent electronic device is in a first dormant state is referred to as a second switching event creation instruction. Optionally, step 201 may be specifically executed by a processor in the electronic device.
Step 202, execute a first switching event creation instruction to create a first switching event. Step 203 is performed.
In the embodiment of the application, when the electronic device is in a working state, after the processor receives a first switching event creation instruction generated by a first application, the processor may directly execute the first event creation instruction to create a first switching event. The first switching event carries switching time, namely the execution time of the first switching event; and indication information of an event to be executed by the electronic equipment after the first switching event is executed to enable the electronic equipment to be switched to the first dormant state is also carried.
For convenience of distinction, in the embodiment of the present application, a switching event created by the controller executing the first switching event creation instruction is referred to as a first switching event, and a switching event created by the controller executing the second switching event creation instruction is referred to as a second switching event. Alternatively, step 202 may be specifically executed by a processor in the electronic device.
And step 203, when the operation aiming at the electronic equipment is not detected in the target time length, switching the electronic equipment from the working state to the second dormant state. Step 204 is performed.
The operation on the electronic device may refer to an operation on the electronic device by a user. The operation may include a user operation on a key on the electronic device, such as a key operation on the electronic device being pressed; or an operation directed to the display screen of the electronic device, such as an operation of touching on the display screen of the electronic device. When the controller of the electronic device does not detect an operation for the electronic device for the target duration, the controller may determine that the user does not use the electronic device for a longer time, and then the controller may control the electronic device to enter the second sleep state. That is, the processor in the electronic device is stopped, for example, power is stopped from being supplied to the processor, so as to reduce power consumption of the electronic device when the electronic device is not used by a user. For example, the target time period may be twenty minutes, thirty minutes, or another value, and the target time period may be set by a worker before the electronic device leaves a factory, or may be set by a user, which is not limited in this embodiment of the application.
Optionally, the controller may start timing when the electronic device is turned off, and control the electronic device to be in the second sleep state when it is determined that the operation on the electronic device is not detected within the target duration after the electronic device is turned off. Optionally, the controller may also control the electronic device to turn off the screen when the electronic device is turned on and the operation for the electronic device is not detected within the first time period; and when the operation aiming at the electronic equipment is not detected within a second time length after the electronic equipment is turned off, controlling the electronic equipment to be in a second dormant state. The sum of the first duration and the second duration may be a target duration. If the first time period is five minutes and the second time period is thirty minutes, the first time period and the second time period may also be other values, which is not limited in the embodiment of the present application.
Step 204, executing a first switching event to switch the electronic device from the second sleep state to the first sleep state. Step 205 is performed.
The first switching event is a switching event created by the controller when the electronic device is in the working state, and the controller can execute the first switching event after the electronic device is in the second dormant state for the first time. When the electronic device is in the second sleep state, the crystal oscillator unit in the electronic device works, and the crystal oscillator unit manages the switching event which is created in the electronic device. The crystal oscillator unit can execute the first switching event when the switching time carried by the first switching event is reached, so as to switch the electronic equipment from the second dormant state to the first dormant state, and enable the processor in the electronic equipment to start running briefly. For example, the crystal oscillator unit may control the power supply to supply power to the processor to trigger the processor to start running. Alternatively, step 204 may be performed by a crystal unit in the electronic device.
And step 205, receiving a second switching event creating instruction generated by the first application. Step 206 is performed.
When the electronic device is in the first sleep state, the operation condition of the devices inside the electronic device is similar to that when the electronic device is in the working state, and at this time, the processor in the electronic device works but the electronic device still turns off the screen. The application in the electronic device may start running, for example, the first application may call the wake-up alarm clock service again, and then the processor is triggered to receive a second handover event creation instruction generated by the first application to instruct the processor to create the handover event. It should be noted that, in the step 205, the process of generating the second switching event creating instruction by the first application may refer to the related description of generating the first switching event creating instruction by the first application in the step 201, and details of the embodiment of the present application are not described again.
Step 206, determine whether the first application is a target application. If the first application is the target application, execute step 207; when the first application is not the target application, step 208 is performed.
The target application may be an application other than a system application in the electronic device. The system application in the electronic device is installed in the electronic device when the electronic device leaves a factory, and the system application is used for providing necessary functions of the electronic device, for example, the system application of the electronic device includes a telephone application, a short message application, and the like. Optionally, the system applications of the electronic device may also include applications that are not exposed to the user, but only run in the background of the electronic device.
For example, a system application in the electronic device may have a specified identification, and the processor may determine whether an application is a system application based on the specified identification. The instruction generated by the system application can also carry the specified identifier, and the processor can judge whether the application generating the instruction is the system application by judging whether the instruction carries the specified identifier or not when receiving a certain instruction. For example, the processor may determine whether the first application is an application other than the system application installed in the electronic device, that is, whether the first application is a target application, by determining whether the second handover event creation instruction carries the designated identifier. When it is determined that the second switching event creation instruction carries the specified identifier, determining that the first application is a system application installed in the electronic device, and the first application is not a target application, and then executing step 208; when it is determined that the second handover event creating instruction does not carry the specified identifier, it is determined that the first application is an application other than the system application installed in the electronic device, and the first application is a target application, and then step 207 is performed.
It should be noted that, in order to ensure normal use of the electronic device, there is a situation that the system application still needs to work when the user does not operate the electronic device for a long time. In the embodiment of the application, the target application is an application other than a system application in the electronic device, and the controller may determine whether the first application is an application other than a system application, and then allow the system application to trigger the controller to create the switching event in a process that the electronic device is in the first sleep state based on the determination result, and prohibit a third party application other than the system application from triggering the controller to create the switching event, so that a situation that the system application cannot normally work may be avoided.
In this embodiment, steps 201 to 203 may be performed by a system service in the electronic device, and step 204 and the following steps may be performed by a wake-up alarm service in the electronic device. Optionally, when it is determined that the first application is an application other than a system application installed in the electronic device, the wake alarm clock service may further detect whether the current electronic device is in the first sleep state or the second sleep state, that is, determine whether the electronic device is in the sleep state. When it is determined that the electronic device is in the hibernation state, step 207 is executed again; upon determining that the electronic device is not in the hibernation state, step 208 is performed. Since the wake-up alarm clock service may be run when the electronic device is in a sleep state or a working state, the wake-up alarm clock service may determine subsequent execution steps based on the current state of the electronic device. For example, when the electronic device is in a sleep state (e.g., in a first sleep state or a second sleep state), a target flag bit may exist in system services of the electronic device, and the wake-up alarm clock service may determine whether the electronic device is in the sleep state by detecting whether the target flag bit exists in the system services.
Step 207, prohibiting execution of the second switching event creation instruction. Step 212 is performed.
In this embodiment, when the controller determines that the first application is an application other than the system application, that is, when it determines that the received second handover event creating instruction is generated by an application other than the system application, the controller may prohibit the second handover event creating instruction from being executed. The controller inhibits execution of the second switching event creation command, i.e., the controller does not create a switching event based on the second switching event creation command, e.g., the controller may ignore the second switching event creation command. Therefore, the electronic equipment can not be switched to the first dormant state from the second dormant state due to the first application, the times of the electronic equipment entering the first dormant state are reduced, the electric quantity consumed by a processor in the electronic equipment is saved, and the electric quantity consumption of the electronic equipment when the electronic equipment is not used by a user for a long time can be reduced.
In an optional example, the controller determines an event to be executed after the electronic device indicated by the second switching event creating instruction is switched to the first sleep state, and then determines whether to execute the second switching event creating instruction by determining whether the event to be executed is an event that the electronic device is prohibited from executing in the first sleep state. For example, since the electronic device consumes a large amount of power for information transfer via the network, especially when the network quality of the electronic device is poor, the event for information transfer via the network may be set as an event that is prohibited from being executed in the first sleep state. After receiving the second switching event creating instruction, the controller may determine whether an event to be executed, indicated by the indication information carried by the second switching event creating instruction, is an event for information transfer through a network; and when the event to be executed is determined to be the event for information transmission through the network, forbidding to execute the second switching event creating instruction. Optionally, the event that is prohibited from being executed may also be another preset event, and the embodiment of the present application is not limited. For example, the other event may be a positioning event, that is, an event of acquiring the position of the electronic device.
Alternatively, the step of determining the event to be executed may be performed before step 206, and step 206 is performed when it is determined that the event to be executed is an event for information transfer over a network. Alternatively, the step may be performed when it is determined in step 206 that the first application is not a system application installed in the electronic device, and when it is determined that the event to be performed is an event for information transfer through a network, step 207 may be performed. In this way, the controller prohibits execution of the second handover event creation instruction when the first application is not a system application and the second handover event creation instruction indicates that the electronic device performs information transfer via the network after switching to the first sleep state.
Alternatively, the step of determining the event to be executed is performed before step 206, and if the event to be executed is an event for information transmission via a network, the controller may not perform step 206 but directly perform step 207. In this way, the controller prohibits the second handover event creation instruction from being executed when the second handover event creation instruction indicates that the electronic device performs information transfer via the network after switching to the first dormant state, regardless of whether the first application is a system application.
In another optional example, the controller may also determine whether to prohibit execution of the second handover event creation instruction generated by the first application in conjunction with the authority the first application has. For example, the controller may prohibit the second handover event creation instruction from being executed when the first application is not a system application, the event to be executed indicated by the second handover event creation instruction is an event for information transfer over a network, and the first application does not have a networking right. Optionally, the controller may also directly prohibit the second handover event creating instruction from being executed when the event to be executed indicated by the second handover event creating instruction is an event for information transfer over a network and the first application does not have networking right, regardless of whether the first application is a system application.
For example, the controller may obtain the networking right information of the first application after determining that the first application is not a system application and the event to be executed indicated by the second handover event creation instruction is an event for information transfer over a network. Then, the controller judges whether the networking authority information of the first application indicates that the first application forbids networking when the electronic equipment is in a first dormant state; and if the networking authority information of the first application indicates that the first application is forbidden to be networked when the electronic equipment is in the first dormant state, forbidding execution of the second switching event creating instruction. It should be noted that, the execution sequence of the step of determining whether the first application is a system application and the step of determining whether the event to be executed is an event for information transfer through a network may refer to the related description in the previous optional example, and details of the embodiment of the present application are not described again. If the controller determines that the networking permission information of the first application indicates that the first application allows networking when the electronic device is in the first sleep state, the controller may execute a second switching event creating instruction, such as the following step 209.
It should be noted that, the operating system of the electronic device may have a set networking policy, where the networking policy specifies that the networking right of the application is modified to prohibit networking when the electronic device enters the second sleep state; and after the electronic equipment enters the working state, modifying the networking permission of the application into permission for networking. The networking authority of the application can be reflected by the networking authority information of the application, and the modification of the networking authority of the application is a modification of a parameter in the networking authority information of the application. For example, when the electronic device is in the first sleep state, the networking permission information of the first application acquired by the controller may indicate that the first application is prohibited from networking, that is, an instruction for prohibiting the electronic device from executing the first application trigger through the network. The networking policy may be only a networking policy for an application other than the system application, or may also be a networking policy for all applications, and the embodiment of the present application is not limited. Optionally, the user may also make self-changes to the networking policy of the operating system, for example, the user may modify the networking authority of an application to always prohibit networking or modify the networking authority to always allow networking.
In this optional example, if the event to be executed indicated by the switching event creating instruction needs to consume a large amount of power, the controller prohibits execution of the switching event creating instruction, for example, prohibits execution of the switching event creating instruction that indicates that the electronic device is switched to the first sleep state and then performs information transmission through networking, and allows execution of other switching event creating instructions that indicate that the event to be executed consumes less power. Therefore, the necessary operation of the application in the electronic equipment can be ensured as much as possible on the basis of saving the electric quantity of the electronic equipment, and the user is prevented from missing important messages.
In yet another alternative example, the controller may also determine a target number of times the electronic device enters the first sleep state after the electronic device is turned off, i.e., the number of times the processor of the electronic device has been turned on. The maximum number of times the electronic device is allowed to enter the first sleep state after one screen-off may be equal to the number threshold. In step 205, when the second switching event creating instruction is received, if the target number of times that the electronic device enters the first sleep state after the screen is turned off exceeds the threshold number of times, the second switching event creating instruction is prohibited from being executed. Therefore, after the electronic equipment is turned off, the application can be operated as far as possible while the power consumption is ensured to be low. In addition, the shorter the time for the electronic device to turn off the screen is, the higher the correlation between the operation executed by the electronic device triggered by the application and the operation executed by the electronic device triggered by the user through the application when the electronic device is in the working state is. According to the embodiment of the application, the switching event creating instruction in the first sleep state for the previous times after the electronic equipment is turned off is allowed to be executed, so that the risk that the operation which is more important for a user is not executed after the electronic equipment is turned off can be reduced, and the operation of the electronic equipment is ensured to better meet the requirements of the user.
Alternatively, the threshold number of times may be determined based on the amount of power the electronic device is allowed to consume after being turned off. The staff can set the electric quantity allowed to be consumed after the electronic equipment is turned off every time in advance, or the user can set the electric quantity allowed to be consumed after the electronic equipment is turned off every time. The controller may determine the time threshold, which may be a rounded down value of a ratio of the allowed power consumption to the maximum power consumption, based on the allowed power consumption and the maximum power consumption in the first sleep state after the electronic device switches to the first sleep state each time.
And step 208, executing a second switching event creating instruction to create a second switching event of the electronic equipment. Step 209 is performed.
It should be noted that, in step 208, reference may be made to the related description of executing the first switching event creating instruction in step 202, and details of the embodiment of the present application are not described again.
Step 209, the electronic device is switched from the first sleep state to the second sleep state. Step 210 is performed.
In this embodiment, once the electronic device enters the first sleep state, the controller may start timing to determine a duration that the electronic device has been in the first sleep state. When the duration reaches the duration threshold, the processor of the electronic device may stop working, so that the electronic device is switched from the first sleep state to the second sleep state. For example, when the electronic device enters the first sleep state from the second sleep state in step 204, the controller may start timing, and switch the electronic device from the first sleep state to the second sleep state when determining that the duration of the electronic device in the first sleep state is equal to the duration threshold.
Optionally, the duration threshold may be ten seconds, where the duration threshold is the maximum duration of the electronic device in the first sleep state each time. Optionally, the duration threshold may also be five seconds, fifteen seconds, or another value, which is not limited in this embodiment of the application. It should be noted that, if the electronic device detects the operation of the user on the electronic device when being in the first sleep state, the controller directly stops timing even if the duration of the electronic device being in the first sleep state is less than the duration threshold, and switches the electronic device from the first sleep state to the operating state.
Step 210, executing a second switching event at the switching time indicated by the second switching event to switch the electronic device from the second sleep state to the first sleep state. Step 211 is performed.
It should be noted that, in step 210, reference may be made to the related description of executing the first switching event in step 204, and details of the embodiment of the present application are not described again.
And step 211, executing the event to be executed indicated by the second switching event. Step 212 is performed.
In the process that the electronic device is in the first sleep state, a processor in the electronic device operates, and the processor may determine an event to be executed after the electronic device indicated by the indication information carried by the second switching event is switched to the first sleep state, and then execute the event to be executed. For example, the event to be executed is to send information to a server connected to the electronic device through a network, and after the electronic device is in the first sleep state, the processor may send the information to be sent to the server based on a communication interface of the electronic device. In another example, the event to be executed is determining a location of the electronic device, and after the electronic device is in the first sleep state, the processor may determine, through a positioning unit in the electronic device, a current location of the electronic device, and store information of the location of the electronic device.
Step 212, the electronic device is switched from the first sleep state to the second sleep state.
It should be noted that step 212 may refer to step 209, and the embodiment of the present application is not described again.
In this embodiment of the application, the steps 201 to 203, the steps 205 to 209, the steps 211 and 212 may be specifically executed by a processor in the controller, and the steps 204 and 210 may be specifically executed by a crystal oscillator unit in the controller.
The above embodiment of the present application is explained by taking the first application as any application installed in the electronic device, and the target application in step 206 is an application other than the system application installed in the electronic device as an example. Optionally, the first application may be an application installed in the electronic device, or may be an application installed in another device other than the electronic device; the target application may not be an application other than the system application installed in the electronic device, and three other alternative implementations of the target application are described below.
In a first alternative implementation, the target application may be an application installed in the electronic device. When the electronic equipment is in the first dormant state, if a controller of the electronic equipment receives a switching event creation instruction generated by an application installed in the electronic equipment, the controller prohibits execution of the switching event creation instruction. In this alternative implementation, in the second sleep state of the electronic device, the processor is prohibited from being woken up by applications installed in the electronic device, and is allowed to be woken up by applications installed in devices other than the electronic device. When the electronic device is in the first sleep state, if an instruction sent by the other device is received, the possibility that the instruction is generated by the other device and triggered by a user is high, and the instruction indicates that an operation executed by the electronic device is important for the user. Therefore, in this alternative implementation, the application with lower importance to the user may be prohibited from waking up the processor of the electronic device, and the application with higher importance to the user may be allowed to wake up the processor of the electronic device to perform more important operations. Therefore, the execution of the operation which is important for the user can be considered on the basis of ensuring that the power consumption of the electronic equipment is low, and the using effect of the electronic equipment is improved.
In a second alternative implementation, the target application may be an application installed in a device other than the electronic device, and the other device may be connected to the electronic device, such as a wired connection or a wireless connection (e.g., a bluetooth connection). The other device may have a binding relationship with the electronic device established in advance. For example, the electronic device may be a smart phone, the other device may be a smart band connected to the smart phone via bluetooth, and the first application may be an application installed in the smart band. When the smart phone is in a first dormant state, a first application in the smart bracelet may send a handover event creation instruction to the smart phone. The smart phone may directly prohibit execution of the switching event creation instruction when receiving the switching event creation instruction.
Alternatively, the target application may be an application other than a system application installed in a device other than the electronic device. For example, the smartphone may determine whether the first application is a system application in the other device; if the first application is determined to be the system application in the intelligent bracelet, a switching event creating instruction generated by the first application can be executed; if the first application is determined to be an application other than the system application in the smart band, the switching event creating instruction generated by the first application may be prohibited from being executed.
In a third alternative implementation, the target application may be an application other than the preset application. Thus, when the electronic device is in the first dormant state, the switching event creation instruction generated by the preset application can be executed by the controller of the electronic device, and the switching event creation instruction generated by the application other than the preset application is prohibited from being executed by the controller. For example, when the electronic device leaves the factory, a worker may set the preset application in advance, or a user may set the preset application by himself. For example, the user may set the application which is frequently used and is of higher interest as the preset application, so as to ensure that the preset application can be intermittently operated even if the electronic device is in a sleep state, and reduce the probability that the user misses the message of higher interest.
For the above three alternative implementations of the target application, the controller of the electronic device may still execute the steps in fig. 2, and may determine whether to prohibit the execution of the handover event creation instruction based on various alternative ways in the above embodiments. For example, the controller may still determine whether to prohibit execution of the handover event creation instruction based on an event that the electronic device is prohibited from being executed in the first sleep state, networking right information of the first application, a target number of times that the electronic device enters the first sleep state after being turned off, and the like.
In the embodiment of the application, the electronic device can execute the control method provided by the embodiment under the condition of network disconnection or network continuous connection, and the method has a wide application range and is relatively in line with the current use situation of the electronic device. In the embodiment of the application, when the first application tries to trigger the processor to set the wake-up Alarm clock (namely, create the switching event), the first application directly intercepts the first application and forbids the processor to set the wake-up Alarm clock, so that the interception efficiency of the wake-up Alarm clock is ensured, and the Alarm clock (English: Alarm) resource of a system of the electronic equipment is saved. In addition, in the embodiment of the application, the first application is prohibited from triggering the electronic device to transmit information through the network when the electronic device is in the first dormant state based on the networking authority information of the first application; therefore, even if the wake-up alarm clock is not intercepted due to interception errors, the electronic equipment is forbidden to transmit information through the network after the wake-up alarm clock explodes to enable the electronic equipment to be switched from the second sleep state to the first sleep state, and the power consumption of the electronic equipment is reduced. In addition, whether the first application is the system application or not can be judged in the embodiment of the application, and if the first application is the system application, the establishment of the switching event of the first application trigger processor is not limited, so that the normal realization of the necessary functions of the electronic equipment is ensured.
To sum up, in the control method of the electronic device provided in the embodiment of the present application, when the electronic device is in the first sleep state, the execution of the switching event creation instruction generated by the application may be prohibited, so that the increase of power consumption caused by switching to the first sleep state (i.e., the processor is awakened) when the electronic device is in the second sleep state may be reduced, and further, the electric quantity of the electronic device may be saved.
Fig. 3 is a block diagram of another electronic device according to an embodiment of the present disclosure. As shown in fig. 3, the electronic device 10 may include: radio Frequency (RF) circuit 150, audio circuit 160, wireless fidelity (Wi-Fi) module 170, bluetooth module 180, power supply 190, camera 1032, processor 1101, and crystal oscillator unit 120.
Camera 1032 may be used, among other things, to capture still pictures or video. The object generates an optical picture through the lens and projects the optical picture to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensitive elements convert the light signals into electrical signals which are then passed to the processor 1101 for conversion into digital picture signals.
The processor 1101 is a control center of the electronic device 10, connects various parts of the entire terminal with various interfaces and lines, and performs various functions of the electronic device 10 and processes data by running or executing software programs stored in the memory 140 and calling data stored in the memory 140. In some embodiments, processor 1101 may include one or more processing units; the processor 1101 may also integrate an Application Processor (AP), which mainly handles operating systems, user interfaces, application programs, etc., and a Baseband Processor (BP), which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1101. In this application, the processor 1101 may run an operating system and an application program, may control a user interface to display, and may implement the control method of the electronic device provided in this application embodiment. In addition, the processor 1101 is coupled with the input unit and the touch display screen 130.
The touch display 130 may be used to receive input numeric or character information and generate signal inputs related to user settings and function control of the electronic device 10, and optionally, the touch display 130 may also be used to display information input by or provided to the user and a Graphical User Interface (GUI) of various menus of the electronic device 10. The touch display screen 130 may include a display screen disposed on a front side of the electronic device 10. The display screen may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The touch display screen may be used to display various graphical user interfaces described herein.
The touch display screen 130 includes: a display screen and a touch screen arranged on the front side of the electronic device 10. The display screen may be used to display preview pictures. The touch screen may collect touch operations on or near the touch screen by the user, such as clicking a button, dragging a scroll box, and the like. The touch screen may cover the display screen, or the touch screen and the display screen may be integrated to implement the input and output functions of the electronic device 10, and the integrated touch screen may be referred to as the touch display screen for short.
Memory 140 may be used to store software programs and data. The processor 1101 executes various functions and data processing of the electronic device 10 by executing software programs or data stored in the memory 140. The memory 140 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 140 stores an operating system that enables the electronic device 10 to operate. The memory 140 may store an operating system and various application programs, and may also store codes for executing the control method of the electronic device provided in the embodiments of the present application.
The RF circuit 150 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then deliver the received downlink data to the processor 1101 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and the electronic device 10. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The electronic device 10 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the RF circuit 150 to be transmitted to, for example, another terminal or outputs the audio data to the memory 140 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi is a short-range wireless transmission technology, and the electronic device 10 can help a user send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband Internet access for the user.
And the Bluetooth module 180 is used for performing information interaction with other Bluetooth devices with Bluetooth modules through a Bluetooth protocol. For example, the electronic device 10 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) that is also equipped with a bluetooth module via the bluetooth module 180, thereby performing data interaction.
The electronic device 10 also includes a power supply 190 (e.g., a battery) that powers the various components. The power supply may be logically coupled to the processor 1101 through a power management system to manage charging, discharging, and power consumption functions through the power management system. The electronic device 10 may also be configured with power buttons for powering the terminal on and off, and for locking the screen.
The electronic device 10 may include at least one sensor 1110, such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. The electronic device 10 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the electronic device and each device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 4 is a block diagram of a software structure of an electronic device according to an embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into four layers, an application layer, an application framework layer, an android runtime (android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 4, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 4, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, pictures, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions for the electronic device 10. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the communication terminal vibrates, and an indicator light flashes.
The android runtime comprises a core library and a virtual machine. The android runtime is responsible for scheduling and management of the android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still picture files, etc. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, picture rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the method for controlling an electronic device provided in the foregoing embodiment, for example, the method shown in fig. 1 or fig. 2.
Embodiments of the present application further provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method for controlling an electronic device, such as the method shown in fig. 1 or fig. 2, provided by the foregoing method embodiments.
It should be noted that, the method embodiments provided in the embodiments of the present application can be mutually referred to corresponding apparatus embodiments, and the embodiments of the present application do not limit this. The sequence of the steps of the method embodiments provided in the embodiments of the present application can be appropriately adjusted, and the steps can be correspondingly increased or decreased according to the situation, and any method that can be easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be covered by the protection scope of the present application, and therefore, the details are not repeated.
The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship. In the case of calculations involving mathematical formulas, the character "/" represents the operator "divide. The term "at least one of a and B" in the application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, at least one of a and B may mean: a exists alone, A and B exist simultaneously, and B exists alone. Similarly, "A, B and at least one of C" indicates that there may be seven relationships that may indicate: seven cases of A alone, B alone, C alone, A and B together, A and C together, C and B together, and A, B and C together exist. In this application "plurality" means "two or more".
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An electronic device, comprising a controller; the controller is configured to:
receiving a switching event creating instruction generated by an application in the process that the electronic equipment is in a first dormant state, wherein the switching event creating instruction is used for indicating the creation of a switching event, the switching event is set to be executed in the process that the electronic equipment is in a second dormant state, and the switching event is used for switching the electronic equipment from the second dormant state to the first dormant state after being executed;
prohibiting execution of the handover event creation instruction;
the electronic equipment is turned off in the first sleep state and the second sleep state, a processor of the electronic equipment works in the first sleep state, and the processor stops working in the second sleep state.
2. The electronic device of claim 1, wherein the application is an application installed in the electronic device.
3. The electronic device of claim 2, wherein the application is an application other than a system application installed in the electronic device.
4. The electronic device according to claim 2 or 3, wherein the switching event creating instruction carries indication information of an event to be executed after the electronic device is switched to the first sleep state, and the prohibiting execution of the switching event creating instruction includes:
acquiring networking authority information of the application;
and when the networking authority information of the application indicates that the application is in the first dormant state, networking is prohibited, and when the indication information indicates that the event to be executed is information transmission through a network, the switching event creating instruction is prohibited from being executed.
5. The electronic device according to claim 1, wherein the switching event creating instruction carries indication information of an event to be executed after the electronic device switches to the first sleep state, and the prohibiting execution of the switching event creating instruction includes:
and when the indication information indicates that the event to be executed is information transmission through a network, forbidding to execute the switching event creating instruction.
6. The electronic device of claim 1, wherein the inhibiting execution of the handover event creation instruction comprises:
determining the target times of the electronic equipment entering the first sleep state after the electronic equipment is turned off;
and when the target times exceed a time threshold, prohibiting the execution of the switching event creating instruction.
7. The electronic device of any of claims 1-3 and 5-6, wherein receiving a handover event creation instruction comprises:
determining that the switching event creation instruction is received when a call instruction for a wake-up alarm clock service in the electronic device is received;
the call instruction carries switching time, the call instruction is used for calling the awakening alarm clock service to create the switching event, and the switching event is used for being executed at the switching time.
8. The electronic device of claim 2, wherein the inhibiting execution of the handover event creation instruction comprises:
prohibiting execution of the switching event creation instruction when the application is an application other than a system application installed in the electronic device;
the method further comprises the following steps:
when the application is a system application installed in the electronic device, executing the switching event creating instruction to create the switching event, wherein the switching event creating instruction carries switching time and indication information of an event to be executed after the electronic device is switched to the first dormant state;
switching the electronic device from the first sleep state to the second sleep state;
executing the switching event at the switching time to switch the electronic device from the second sleep state to the first sleep state;
executing the event to be executed;
switching the electronic device from the first sleep state to the second sleep state.
9. A method of controlling an electronic device, characterized in that, for a controller of the electronic device, the method comprises:
receiving a switching event creating instruction generated by an application in the process that the electronic equipment is in a first dormant state, wherein the switching event creating instruction is used for indicating the creation of a switching event, the switching event is set to be executed in the process that the electronic equipment is in a second dormant state, and the switching event is used for switching the electronic equipment from the second dormant state to the first dormant state after being executed;
prohibiting execution of the handover event creation instruction;
the electronic equipment is turned off in the first sleep state and the second sleep state, a processor of the electronic equipment works in the first sleep state, and the processor stops working in the second sleep state.
10. The method of claim 9, wherein the application is an application other than a system application installed in the electronic device.
CN202110035469.9A 2021-01-12 2021-01-12 Electronic device and control method thereof Active CN112764812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110035469.9A CN112764812B (en) 2021-01-12 2021-01-12 Electronic device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110035469.9A CN112764812B (en) 2021-01-12 2021-01-12 Electronic device and control method thereof

Publications (2)

Publication Number Publication Date
CN112764812A true CN112764812A (en) 2021-05-07
CN112764812B CN112764812B (en) 2022-08-16

Family

ID=75701550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110035469.9A Active CN112764812B (en) 2021-01-12 2021-01-12 Electronic device and control method thereof

Country Status (1)

Country Link
CN (1) CN112764812B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115019494A (en) * 2022-06-02 2022-09-06 武汉领普科技有限公司 Wireless switch, processing method of wireless switch and control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336572A (en) * 2013-06-26 2013-10-02 深圳天珑无线科技有限公司 Intelligent terminal and power saving method thereof
CN108446010A (en) * 2018-03-30 2018-08-24 联想(北京)有限公司 Information processing method and electronic equipment
CN109976504A (en) * 2019-04-01 2019-07-05 联想(北京)有限公司 A kind of electronic equipment and control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336572A (en) * 2013-06-26 2013-10-02 深圳天珑无线科技有限公司 Intelligent terminal and power saving method thereof
CN108446010A (en) * 2018-03-30 2018-08-24 联想(北京)有限公司 Information processing method and electronic equipment
CN109976504A (en) * 2019-04-01 2019-07-05 联想(北京)有限公司 A kind of electronic equipment and control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115019494A (en) * 2022-06-02 2022-09-06 武汉领普科技有限公司 Wireless switch, processing method of wireless switch and control system
CN115019494B (en) * 2022-06-02 2024-02-06 武汉领普科技有限公司 Wireless switch, processing method and control system of wireless switch

Also Published As

Publication number Publication date
CN112764812B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN111741502B (en) Mobile terminal and mobile communication network switching method thereof
CN112114733B (en) Screen capturing and recording method, mobile terminal and computer storage medium
CN110865837A (en) Method and terminal for upgrading system
CN112764812B (en) Electronic device and control method thereof
CN112350406B (en) Electronic device and control method thereof
CN107766218A (en) system optimization method, device, storage medium and terminal device
CN112000932A (en) Mobile terminal and application control method thereof
CN114816031B (en) Power saving method for terminal equipment, terminal equipment and medium
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
CN112351144A (en) Mobile terminal and state prompting method thereof
CN114610202A (en) Silence help seeking method and terminal equipment
CN111787157A (en) Mobile terminal and operation response method thereof
CN112114883A (en) Terminal awakening method, terminal and computer storage medium
CN111385416B (en) Electronic equipment and alarm clock processing method
CN112954622A (en) Mobile terminal and short message sending method thereof
CN113079332A (en) Mobile terminal and screen recording method thereof
CN112328135A (en) Mobile terminal and application interface display method thereof
CN113760164A (en) Display device and response method of control operation thereof
CN106681845B (en) Method and device for managing communication messages
CN111225113A (en) Communication terminal and starting method thereof
CN112804616B (en) Mobile terminal and audio playing method thereof
CN113285500B (en) Mobile terminal and charging method thereof
CN112000409B (en) Mobile terminal and display method thereof
CN116708647B (en) Notification message reply method and electronic equipment
CN114339591A (en) Method for positioning based on ultra-wideband chip and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder