CN117311484A - Method for adjusting power consumption of equipment and electronic equipment - Google Patents

Method for adjusting power consumption of equipment and electronic equipment Download PDF

Info

Publication number
CN117311484A
CN117311484A CN202210726906.6A CN202210726906A CN117311484A CN 117311484 A CN117311484 A CN 117311484A CN 202210726906 A CN202210726906 A CN 202210726906A CN 117311484 A CN117311484 A CN 117311484A
Authority
CN
China
Prior art keywords
data
processor
electronic device
memory
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210726906.6A
Other languages
Chinese (zh)
Inventor
田亦鸽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210726906.6A priority Critical patent/CN117311484A/en
Priority to PCT/CN2023/101413 priority patent/WO2023246783A1/en
Publication of CN117311484A publication Critical patent/CN117311484A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/32Handling requests for interconnection or transfer for access to input/output bus using combination of interrupt and burst mode transfer

Abstract

The embodiment of the application provides a method for adjusting equipment power consumption and electronic equipment, and relates to the technical field of electronics. The method for adjusting the power consumption of the device can reduce the power consumption of the electronic device by reducing the voltage and/or the frequency of the processor. The method for adjusting the power consumption of the equipment provided by the embodiment of the application comprises the following steps: firstly, after the processor receives an interrupt initiated by a network card or a sensor, the processor is not directly configured into higher voltage and/or frequency, but is configured into lower voltage and/or frequency, and the DMA controller copies data into a memory, so that the operation capability waste of the processor is reduced, and the power consumption of the processor is also reduced; and secondly, after the data is copied to the memory, the processor is configured to be of higher voltage and/or frequency, so that the processor can rapidly process the data without affecting the normal experience of a user.

Description

Method for adjusting power consumption of equipment and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method for adjusting power consumption of an apparatus and an electronic apparatus.
Background
With the development of electronic technology, the functions of electronic devices are continuously enhanced, and the electronic devices are more and more frequently participated in the daily life of consumers. The electronic devices represented by the wearable electronic devices are different from those of mobile phones, tablet personal computers and other electronic devices in use habits, product forms and product purposes of consumers, and therefore the wearable electronic devices are required to have stronger cruising ability.
Under the condition that the battery capacity on the electronic equipment is unchanged, the cruising ability of the electronic equipment can be improved by reducing the power consumption of the electronic equipment. One method for reducing the power consumption of the electronic device is to determine which type of core (such as one a77 large core, three a77 middle cores, four a55 small cores of kylin 9000) needs to be called according to various parameters of a task, a load and the like which are currently running, and call the number of cores, so that the power consumption of the electronic device is reduced by reducing the power consumption of a CPU. Wherein the energy consumption curves of different cores are different. For example, in a low-load scenario such as browsing news, the electronic device mainly invokes the middle core and the small core; in high-load scenes such as games, the electronic equipment can call a big core, so that the power consumption of the electronic equipment is reduced under the condition that the user experience is not reduced.
However, this method is mainly dependent on the architecture of the CPU, and does not achieve a good effect on many electronic devices. For example, in the case where the electronic device is an electronic device that mounts a plurality of CPUs having the same or similar energy efficiency, or the electronic device is an embedded type electronic device, the benefit of the method is small.
Disclosure of Invention
The embodiment of the application provides a method for adjusting power consumption of equipment and electronic equipment. The method for adjusting the power consumption of the device can reduce the power consumption of the electronic device by reducing the voltage and/or the frequency of the processor. The method for adjusting the power consumption of the equipment provided by the embodiment of the application comprises the following steps: firstly, after the processor receives an interrupt initiated by the data acquisition device, the processor is not directly configured to be higher in voltage and/or frequency, but is configured to be lower in voltage and/or frequency, and the DMA controller copies data into the memory, so that the operation capability waste of the processor is reduced, and the power consumption of the processor is also reduced; and secondly, after the data is copied to the memory, the processor is configured to be of higher voltage and/or frequency, so that the processor can rapidly process the data without affecting the normal experience of a user.
In a first aspect, the present application provides a method for adjusting power consumption of a device, where the method includes: after the electronic equipment acquires the first data, the electronic equipment copies the first data into the memory, wherein the processor of the electronic equipment works in a first mode after the electronic equipment acquires the first data and before the first data is copied into the memory; after the first data is copied into memory, the electronic device processes the first data by the processor operating in a second mode; when the processor works in a first mode, the working frequency of the processor is a first frequency, and the working voltage of the processor is a first voltage; when the processor works in the second mode, the working frequency of the processor is the second frequency, and the working voltage of the processor is the second voltage; the first frequency is less than the second frequency and/or the first voltage is less than the second voltage.
In the above embodiments, the processor is configured to have a lower frequency and/or voltage than the processor processes the data after the processor receives the interrupt until the data is copied into memory. Because the processor does not process the data before the data is copied into the memory, the frequency and/or voltage of the processor is configured to be lower than the frequency and/or voltage when the processor processes the data after the processor receives the interrupt until the data is copied into the memory, and the power consumption of the processor is reduced by reducing the waste of the computing capacity of the processor, so that the cruising duration of the electronic equipment is improved.
With reference to some embodiments of the first aspect, in some embodiments, before the electronic device obtains the first data, the processor operates in a third mode; when the processor works in a third mode, the working frequency of the processor is a third frequency, and the working voltage of the processor is a third voltage; the third voltage is less than or equal to the first voltage, and/or the third frequency is less than or equal to the first frequency.
In the above embodiment, the processor may be in the sleep mode before the electronic device obtains the data, and then the voltage and/or frequency of the processor may be the same as the sleep mode after the processor receives the interrupt until the data is copied into the memory. Alternatively, the processor may be in a sleep mode before the electronic device obtains the data, and then the processor mode may be the same as the sleep mode, i.e., the first mode and the third mode, after the processor receives the interrupt until the data is copied into the memory.
With reference to some embodiments of the first aspect, in some embodiments, the processor operates in the second mode before the electronic device obtains the first data.
In the above embodiments, the processor may be in an operating mode before the electronic device acquires the data, and is not necessarily limited to the sleep mode.
With reference to some embodiments of the first aspect, in some embodiments, the electronic device includes a data acquisition device and a DMA controller; after the electronic device obtains the first data, the electronic device copies the first data to the memory, which specifically includes: after the electronic equipment acquires the first data through the data acquisition device, the electronic equipment receives a first interrupt sent by the data acquisition device through the processor; the first interrupt is used for instructing the processor to copy the first data from the data acquisition device into the memory; after the processor receives the first interrupt, the electronic device instructs the DMA controller to copy the first data from the data acquisition device to the memory through the processor.
In the above embodiment, after receiving the data, the data acquisition device, such as the sensor or the network card, may send an interrupt to the processor, so that the data can be copied to the memory, and in the process of copying to the memory, the processor is configured to the first mode, so that the power consumption of the electronic device can be reduced. Before the first mode of the processor is configured, the electronic device can judge what mode the processor is in before, and if the processor is in the second mode, the processor is configured to be in the first mode; if the processor is in the third mode and the third mode is different from the first mode, the processor is configured to be in the first mode; if the processor is in the third mode, and the third mode is the same as the first mode, the mode of the processor is not changed.
With reference to some embodiments of the first aspect, in some embodiments, the method further includes: after receiving the first operation, the electronic device instructs the DMA controller to copy the second data in the memory to the data acquisition device through the processor; the processor operates in the first mode during copying of the second data from the memory to the data retrieval device.
In the above embodiment, when the processor is to write data to the network card or the sensor, the processor operates in the first mode in the process of instructing the DMA controller to copy the data, so that the power consumption of the processor can be reduced.
With reference to some embodiments of the first aspect, in some embodiments, the data acquisition device is a sensor or a network card.
In the above embodiment, the data acquisition device is a sensor or a network card, or may be other chips located outside the processor, which is not limited herein.
With reference to some embodiments of the first aspect, in some embodiments, the data acquisition device is a photosensor, and the first data is data for determining a heart rate; after the first data is copied into the memory, the electronic device processes the first data by the processor operating in a second mode, specifically comprising: after the first data is copied to memory, the processor of the electronic device determines a heart rate based on the first data.
In the embodiment, in the scenario that the user uses the watch to measure the heart rate, the processor copies the data from the photoelectric sensor to the memory in the first mode, and then the processor calculates the heart rate of the user based on the data in the second mode, so that the power consumption of the electronic equipment in the process of copying the data is reduced.
With reference to some embodiments of the first aspect, in some embodiments, the data obtaining device is a network card; after the first data is copied into the memory, the electronic device processes the first data by the processor operating in a second mode, specifically comprising: after the first data is copied into memory, the electronic device determines, by the processor operating in a second mode, first content based on the first data; the method further comprises the steps of: the electronic device displays the first content, and the first content corresponds to the first data.
In the embodiment, in the scene that the electronic device receives the message and displays the message on the screen, the processor copies the data from the network card to the memory in the first mode, then the processor calculates the drawing instruction of the interface to be displayed based on the data in the second mode, and then the electronic device performs drawing to generate the interface for sending and displaying, so that the power consumption of the electronic device in the process of copying the data is reduced.
With reference to some embodiments of the first aspect, in some embodiments, the method further includes: after the electronic equipment copies the first data from the data acquisition device to the memory through the DMA controller, the electronic equipment sends a second interrupt to the processor through the DMA controller; after the electronic device determines, by the processor, that the first data is copied into the memory based on the second interrupt, the processor is configured to operate in the second mode.
In the above embodiment, after the data copying is completed, the DMA controller is required to send an interrupt to the processor to notify that the processor has completed the data copying, so that the processor is configured to operate in the second mode, which does not slow down the data processing rate of the electronic device and does not reduce the user experience.
With reference to some embodiments of the first aspect, in some embodiments, after the first data is copied into the memory, before the electronic device processes the first data by the processor operating in the second mode, the method further includes: the electronic device determining a first parameter; the electronic device determines the second voltage and/or the second frequency based on the first parameter.
In the above embodiment, the electronic device may adjust the operating voltage and the operating frequency of the second mode of the processor before configuring the processor to operate in the second mode. The electronic device may determine a first parameter, which may be a load, temperature, or other number of dining rooms associated with the first data, of the current processor, and determine an appropriate second voltage and/or second frequency based on the first parameter.
With reference to some embodiments of the first aspect, in some embodiments, the first parameter is used to indicate an application corresponding to the first data; or, the first parameter is used for indicating the service corresponding to the first data; or, the first parameter is used for indicating the type of the service corresponding to the first data.
In the above embodiment, the first parameter may be a parameter directly related to the first data, so that the processor may match the requirements of the service or the application program with different computing capabilities, thereby ensuring the user experience.
With reference to some embodiments of the first aspect, in some embodiments, the second voltage and/or the second frequency are/is a preset value.
In the above embodiment, the second voltage and/or the second frequency may also be preset values, which are easy to develop, have low requirements on the capability of the processor, and may be adapted to more types of processors.
In a second aspect, embodiments of the present application provide an electronic device, including: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform: after the electronic equipment acquires the first data, the electronic equipment copies the first data into the memory, wherein the processor of the electronic equipment works in a first mode after the electronic equipment acquires the first data and before the first data is copied into the memory; after the first data is copied into memory, the electronic device processes the first data by the processor operating in a second mode; when the processor works in a first mode, the working frequency of the processor is a first frequency, and the working voltage of the processor is a first voltage; when the processor works in the second mode, the working frequency of the processor is the second frequency, and the working voltage of the processor is the second voltage; the first frequency is less than the second frequency and/or the first voltage is less than the second voltage.
With reference to some embodiments of the second aspect, in some embodiments, before the electronic device obtains the first data, the processor operates in a third mode; when the processor works in a third mode, the working frequency of the processor is a third frequency, and the working voltage of the processor is a third voltage; the third voltage is less than or equal to the first voltage, and/or the third frequency is less than or equal to the first frequency.
With reference to some embodiments of the second aspect, in some embodiments, the processor operates in the second mode before the electronic device obtains the first data.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: after the electronic equipment acquires the first data through the data acquisition device, the electronic equipment receives a first interrupt sent by the data acquisition device through the processor; the first interrupt is used for instructing the processor to copy the first data from the data acquisition device into the memory; after the processor receives the first interrupt, the electronic device instructs the DMA controller to copy the first data from the data acquisition device to the memory through the processor.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: after receiving the first operation, the electronic device instructs the DMA controller to copy the second data in the memory to the data acquisition device through the processor; the processor operates in the first mode during copying of the second data from the memory to the data retrieval device.
With reference to some embodiments of the second aspect, in some embodiments, the data acquisition device is a sensor or a network card.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: after the first data is copied into the memory, the electronic device processes the first data by the processor operating in a second mode, specifically comprising: after the first data is copied to memory, the processor of the electronic device determines a heart rate based on the first data.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: after the first data is copied into memory, the electronic device determines, by the processor operating in a second mode, first content based on the first data; the electronic device is also used for displaying the first content, and the first content corresponds to the first data.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: after the electronic equipment copies the first data from the data acquisition device to the memory through the DMA controller, the electronic equipment sends a second interrupt to the processor through the DMA controller; after the electronic device determines, by the processor, that the first data is copied into the memory based on the second interrupt, the processor is configured to operate in the second mode.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: the electronic device determining a first parameter; the electronic device determines the second voltage and/or the second frequency based on the first parameter.
With reference to some embodiments of the second aspect, in some embodiments, the first parameter is used to indicate an application corresponding to the first data; or, the first parameter is used for indicating the service corresponding to the first data; or, the first parameter is used for indicating the type of the service corresponding to the first data.
With reference to some embodiments of the second aspect, in some embodiments, the second voltage and/or the second frequency is a preset value.
In a third aspect, embodiments of the present application provide a chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
It will be appreciated that the electronic device provided in the second aspect, the chip system provided in the third aspect, the computer program product provided in the fourth aspect and the computer storage medium provided in the fifth aspect described above are all configured to perform the method provided by the embodiments of the present application. Therefore, the advantages achieved by the method can be referred to as the advantages of the corresponding method, and will not be described herein.
Drawings
Fig. 1 is an exemplary schematic diagram of a method for reducing power consumption of an electronic device according to an embodiment of the present application.
Fig. 2 is another exemplary schematic diagram of a method for reducing power consumption of an electronic device according to an embodiment of the present application.
Fig. 3A is an exemplary schematic diagram of a scenario of a method for adjusting power consumption of a device according to an embodiment of the present application.
Fig. 3B is an exemplary schematic diagram of different stages corresponding to different CPU stages in the scenario shown in fig. 3A according to an embodiment of the present application.
Fig. 4A is another exemplary schematic diagram of a scenario of a method for adjusting power consumption of a device according to an embodiment of the present application.
Fig. 4B is an exemplary schematic diagram of different stages corresponding to different CPU stages in the scenario shown in fig. 4A according to an embodiment of the present application.
Fig. 5 is an exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
Fig. 6 is another exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
Fig. 7 is another exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
Fig. 8 is another exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
Fig. 9A, 9B and 9C are an exemplary schematic diagram of CPU frequency and voltage variations provided by embodiments of the present application.
Fig. 10A and fig. 10B are schematic diagrams illustrating an exemplary hardware architecture of an electronic device according to an embodiment of the present application.
Fig. 11A and 11B are schematic diagrams illustrating an exemplary software architecture of an electronic device according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this application refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The term "User Interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, which enables conversion between an internal form of information and an acceptable form of the user. The user interface is a source code written in a specific computer language such as java, extensible markup language (extensible markup language, XML) and the like, and the interface source code is analyzed and rendered on the electronic equipment to finally be presented as content which can be identified by a user. A commonly used presentation form of the user interface is a graphical user interface (graphic user interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be a visual interface element of text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc., displayed in a display of the electronic device.
Firstly, because the consumer uses the wearable electronic equipment such as a watch, a bracelet and the like in habit, the electronic equipment is always charged every day as the electronic equipment such as a mobile phone, a tablet and the like; second, the battery capacity of wearable electronic devices is generally smaller than electronic devices such as cell phones, tablets, and the like. In order to improve the experience of the user as much as possible, the power consumption of the wearable electronic device should be reduced as much as possible without affecting the experience of the user and the normal operation of the functions of the wearable electronic device.
One possible method for reducing power consumption of an electronic device is: the operating system configures the voltage (operating voltage) and/or frequency (operating frequency) of the CPU according to various parameters such as the task currently running, the load of the CPU, etc., as shown in fig. 1.
Fig. 1 is an exemplary schematic diagram of a method for reducing power consumption of an electronic device according to an embodiment of the present application.
The electronic equipment configures the CPU frequency to be different frequencies according to the type of the currently operated service, and further gives consideration to the performance and the power consumption of the electronic equipment. As shown in fig. 1, when the electronic device runs the first type of service, the CPU frequency is the lowest; secondly, when the electronic equipment runs the second type of service, the CPU frequency is low; thirdly, when the electronic equipment runs the third type of service, the CPU frequency is higher; the CPU frequency is highest when the electronic device is running a fourth type of service. Wherein the load of the first type of traffic is lower than the load of the second type of traffic, and the load of the second type of traffic is lower than the load of the third type of traffic; the load of the third type of traffic is lower than the load of the fourth type of traffic.
For an operating system based on a Linux kernel, the voltage and frequency of the CPU may be adjusted based on a CPU freq module in the Linux kernel. Among other things, the cpu freq module provides a wide variety of scheduling policies, such as Performance policies, powersave policies, userspace policies, ondemand policies, and the like. The Userspace strategy allows the operating system to adjust the voltage and frequency of the CPU by itself, thereby implementing the method shown in fig. 1.
However, for electronic devices represented by wearable electronic devices, there are few high-load services that can be run on the electronic devices, and there is also little time for the electronic devices to run the high-load services, and the load gap for most of the services is not large, as shown in fig. 2.
Fig. 2 is another exemplary schematic diagram of a method for reducing power consumption of an electronic device according to an embodiment of the present application.
As shown in fig. 2, when the load difference of different types of services on the electronic device is not large, the difference of CPU frequencies corresponding to the different types of services is not large. Secondly, in the daily life of consumers, the electronic equipment is more in a low-load state, namely the running time of high-load business of the electronic equipment is shorter.
In the case shown in fig. 2, the power consumption benefit obtained by the method of configuring the CPU frequency to be different frequencies according to the type of the currently running service is smaller, so that the power consumption cannot be effectively reduced, or the power consumption benefit obtained by the method shown in fig. 1 is still insufficient to meet the requirements of consumers.
Based on the above, the embodiment of the application provides a method for adjusting power consumption of equipment and electronic equipment. The method for adjusting the power consumption of the equipment divides the processing process of the CPU after being interrupted and awakened into at least two stages, namely an awakening stage and a service processing stage, based on the interrupt processing capability of an operating system; in the wake-up stage, the operating system of the electronic equipment configures the frequency and/or voltage of the CPU to be lower, so that the power consumption is reduced; in the service processing stage, an operating system on the electronic equipment can configure the frequency and/or the voltage of the CPU based on the type of the service, or configure the frequency and/or the voltage of the CPU to be higher, so that the experience of a user is ensured.
It should be noted that, the method for adjusting power consumption of the device provided in the embodiments of the present application may be applied to a CPU of an electronic device, or may also be applied to other chips or processing units inside the electronic device, for example, a digital signal processor (digital signal processor, DSP), a neural-network processor (neural-network processing unit, NPU), or the like, which may receive an interrupt and may be configured with different operating voltages and/or operating frequencies. The processor may also include one or more of DSP, CPU, NPU, i.e., the processor is integrated as a chip with one or more of DSP, NPU, CPU.
Hereinafter, a method for adjusting power consumption of a device provided in the embodiment of the present application will be mainly described by taking a CPU as an example.
Wherein, during the wake-up phase, the CPU is hardly operated, and the capability of opening a clock and the like gives the direct memory access (DirectMemorty Access, DMA) engine (or DMA chip, or DMA controller) so that the DMA engine can read the data of the data acquisition device (such as peripheral, sensor, network card) (which may also be referred to as the data acquisition device) into the memory. The memory may include an L1 memory, an L2 memory, an L3 memory, and/or a memory of the electronic device, which are integrated in the CPU.
Optionally, in some embodiments of the present application, during the wake-up phase, the electronic device may make some preparation for the service processing phase, for example, initializing some internal parameters, etc., which are not limited herein.
In the service processing stage, the CPU processes the data in the memory according to the logic of the upper layer service, and the result is obtained through calculation.
It should be noted that, in the wake-up phase, the CPU may not process the data at this time, since the DMA engine has not yet read all the data into the memory.
It can be appreciated that, compared to the method shown in fig. 1, the method for adjusting power consumption of an apparatus provided in the embodiment of the present application, because the problem that the CPU maintains a higher frequency and/or voltage at the empty load is found on a smaller granularity, further reduces the power consumption of the electronic apparatus by reducing the frequency and/or voltage of the CPU under the empty load condition.
The method for adjusting the power consumption of the device according to the embodiment of the present application is first described by taking an electronic device as a watch and a bracelet as an example.
Fig. 3A is an exemplary schematic diagram of a scenario of a method for adjusting power consumption of a device according to an embodiment of the present application.
As shown in fig. 3A, the process that the watch receives the first message sent by the network and displays the message on the screen can be divided into four stages.
Stage 1: the screen of the watch may not display any content and is in a rest state. The wristwatch 1 is connected to the internet by near field wireless communication technology such as bluetooth, wiFi, etc., or may be connected to the internet by cellular mobile communication, not limited herein. Alternatively, the watch may display some content, such as time, etc.
Stage 2: the watch receives the message sent from the server in the network. The watch receives data through the network card and stores the data into the network card. Alternatively, in some embodiments of the present application, the watch may receive data via a bluetooth hardware module or a WiFi hardware module.
Stage 3: after the network card of the watch receives the data, sending an interrupt to an operating system, and waking up a CPU; at the same time, the DMA engine copies the data from the network card to memory.
Stage 4: the CPU processes the data copied into the memory; after the CPU finishes processing the data according to the logic of the upper layer service, the electronic equipment lights up the screen and displays the content of the message correspondingly.
Fig. 3B is an exemplary schematic diagram of different stages corresponding to different CPU stages in the scenario shown in fig. 3A according to an embodiment of the present application.
As shown in fig. 3B, phase 1 and phase 2 may correspond to sleep phases; stage 3 corresponds to a wake-up stage; stage 4 corresponds to a traffic processing stage.
In the sleep stage, the frequency of the CPU is lowest and is A1Hz; in the wake-up stage, the CPU frequency is A2Hz; in the service processing stage, the frequency of the CPU is highest, and the frequency is A3Hz. Wherein A1 is less than or equal to A2, and A2 is less than A3. The sleep stage may also be referred to as sleep mode or sleep state, and for example, a portion of the CPU may enter the sleep stage via WFI (wait for interrupt) instructions and WFE (wait for event) instructions.
It should be noted that, in the case where A2 is equal to A1, the wake-up phase may be considered as the same as the sleep phase, that is, in the case where the CPU is in the sleep phase, the DMA engine on the electronic device may still work normally; in this case, it can be considered that the method of adjusting the power consumption of the device of the present application is to substantially lengthen the time of the sleep stage of the CPU, which is not awakened by the interrupt sent by the data acquisition means but by the interrupt of the DMA engine for notifying the CPU that the data has been copied.
Alternatively, in some embodiments of the present application, A3 may be a variable, i.e., A3 may be configured to specific different values according to the type of current service. The method for determining A3 may refer to the content shown in fig. 1, and will not be described herein.
It should be noted that the voltage variation trend of the voltage of the CPU at different CPU stages may be similar to that shown in fig. 3B.
Alternatively, in some embodiments of the present application, stage 1 and stage 2 may correspond to other CPU stages, not limited herein. For example, stage 1 and stage 2 may correspond to different CPU stages; as another example, phase 1 and phase 2 may correspond to a traffic processing phase or the like.
Fig. 4A is another exemplary schematic diagram of a scenario of a method for adjusting power consumption of a device according to an embodiment of the present application.
As shown in fig. 4A, the process of measuring heart rate by the user using the bracelet can be divided into four phases.
Stage 1: the screen of the bracelet can not display any content and is in a screen-off state. Alternatively, the screen of the wristband may also display certain content through an off-screen display (AOD) technique.
Stage 2: in response to receiving a user operation, the electronic device begins to perform heart rate detection; alternatively, the electronic device performs heart rate detection periodically. In the process of executing heart rate detection, the electronic device records the intensity change of the light reflected by the wrist through the photoelectric sensor.
Optionally, in some embodiments of the present application, the electronic device may also perform heart rate detection in other ways through other hardware modules.
Stage 3: after heart rate detection is completed, or in the heart rate detection process, the wristband copies data from the photoelectric sensor to the memory through the DMA engine.
Stage 4: the CPU calculates the heart rate based on the recorded changes in the intensity of the light or other parameters, based on photoplethysmography or other methods, algorithms, and displays the heart rate data on the display screen of the wristband. As shown in fig. 4A, the electronic device displays the heart rate 90 on the display screen of the wristband.
Fig. 4B is an exemplary schematic diagram of different stages corresponding to different CPU stages in the scenario shown in fig. 4A according to an embodiment of the present application.
As shown in fig. 4B, phase 1 may correspond to a sleep phase; phase 2 and phase 3 correspond to the wake-up phase; stage 4 corresponds to a traffic processing stage.
In the sleep stage, the frequency of the CPU is lowest and is B1Hz; in the wake-up stage, the CPU frequency is B2Hz; in the service processing stage, the frequency of the CPU is highest, and the frequency is A3Hz. Wherein B1 is less than or equal to B2, and B2 is less than B3.
It should be noted that the voltage variation trend of the voltage of the CPU at different CPU stages may be similar to that shown in fig. 3B.
Alternatively, stage 2 may correspond to other CPU stages in some embodiments of the present application, without limitation. For example, phase 2 may correspond to a traffic processing phase or the like.
Referring to fig. 3A, fig. 3B, fig. 4A, and fig. 4B, it may be derived that, first, the method for adjusting power consumption of a device provided in the embodiment of the present application divides a CPU phase into at least two phases, where at least two phases include a wake-up phase; secondly, by reducing the frequency or voltage of the CPU in the wake-up stage, the method for adjusting the power consumption of the device reduces the power consumption of the electronic device.
It should be noted that the methods shown in fig. 1 and 2 can be equally applied to the frequency adjustment of the CPU in stage 4 in fig. 3A, 3B, 4A and 4B. That is, the method for reducing power consumption of the electronic device provided by the embodiment of the application further reduces power consumption of the electronic device, prolongs the endurance time of the electronic device, and further improves the experience of a user on the basis of the methods shown in fig. 1 and 2.
In this embodiment, the wake-up phase may also be referred to as a first mode, that is, when the processor is in the wake-up phase, the processor operates in the first mode.
In this embodiment, the service processing stage may also be referred to as a second mode, that is, when the processor is in the service processing stage, the processor operates in the second mode.
In this embodiment, the sleep stage may also be referred to as a third mode, where the processor operates in the third mode when the processor is in the sleep stage.
The following describes, in an exemplary manner, the flow of the method for adjusting the power consumption of the device according to the embodiment of the present application with reference to fig. 5, 6, 7, and 8.
The following mainly takes a processor as a CPU as an example to exemplarily describe a flow of a method for adjusting power consumption of a device provided in an embodiment of the present application. The processor may also be an NPU, DSP, or the like. Fig. 5 is an exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
As shown in fig. 5, the flow of the method for adjusting power consumption of a device provided in the embodiment of the present application includes three steps, namely, step S501, step S502, and step S503. Step S503 is an optional step.
Step S501: after the operating system receives the interrupt, configuring the frequency of the CPU as a first frequency and/or configuring the voltage of the CPU as a first voltage; and instructs the DMA engine to copy the data into memory.
The interrupt (interrupt) may also be referred to as an external interrupt or an I/O interrupt, and may be generated by a data acquisition device on the electronic device, such as a network card, a keyboard, a clock, a sensor, etc., which are not limited herein.
Optionally, in some embodiments of the present application, after receiving the interrupt, the operating system wakes up the CPU if the CPU is in a sleep stage at this time, so as to provide the DMA engine with a clock or other capability to support the normal operation of the DMA engine.
Alternatively, in some embodiments of the present application, the operating system may not wake up the CPU after receiving the interrupt if the CPU is in a sleep stage at this time.
It should be noted that, after the operating system receives the interrupt, whether to wake up the CPU in the sleep stage depends on whether the CPU can support the normal operation of the DMA engine when the CPU is in the sleep stage. If the CPU is in the sleep stage, the CPU can still provide the capabilities of a clock and the like for the DMA engine, and the operating system cannot wake up the CPU after receiving the interrupt; if the CPU is in the sleep stage and can not provide the capabilities of clocks and the like for the DMA engine, the operating system wakes up the CPU after receiving the interrupt.
After receiving the interrupt, the operating system instructs the DMA engine to copy the interrupt source data into memory.
Optionally, in some embodiments of the present application, the electronic device is configured in the first mode before performing step S501, i.e. when the CPU is in the sleep stage.
Alternatively, in some embodiments of the present application, the CPU is configured in the second mode during execution of step S501. Wherein the voltage and frequency of the CPU on the first mode and the second mode electronic device may be different.
S502: after the data copying is completed, configuring the frequency of the CPU as a second frequency and/or configuring the voltage of the CPU as a second voltage; and instructs the CPU to perform processing on the data in the memory.
Wherein the configuration is performed by the operating system.
Wherein the second frequency is higher than the first frequency and/or the second voltage is higher than the first voltage. The second frequency and/or the second voltage may be determined according to the currently running service, the type of the service and/or the application program, or may be configured as a fixed value.
Alternatively, the second frequency and/or the second voltage may be determined according to the load of the current CPU.
After the data copying is completed, the CPU starts to execute processing on the data in the memory according to the logic of the service.
In the scenario shown in fig. 3A and fig. 3B, the data is a message copied from the network card into the memory, and the CPU performs a process of displaying the message on the screen; in the above scenario shown in fig. 4A and 4B, the data is the light intensity value copied from the photosensor into the memory, the CPU performs processing to calculate the heart rate from the light intensity value, and the calculated heart rate is displayed on the screen.
Alternatively, in some embodiments of the present application, the CPU is configured in the third mode in the process of executing step S502.
S503: optionally, the frequency and/or voltage of the CPU is restored to a state prior to receiving the interrupt.
Wherein restoring the frequency and/or voltage of the CPU to a state prior to receiving the interrupt is performed by the operating system.
Optionally, in some embodiments of the present application, after the operating system receives the interrupt, the operating system records the frequency and/or voltage of the current CPU before configuring the frequency of the CPU to the first frequency and/or configuring the voltage of the CPU to the first voltage.
Alternatively, in some embodiments of the present application, the CPU may transition to the sleep stage after processing the interrupt-induced traffic, i.e., after processing the memory data.
Optionally, in some embodiments of the present application, before the operating system instructs the CPU to enter the sleep stage, the frequency and/or voltage of the CPU is recorded, and after step S502 is performed, the frequency and/or voltage of the CPU is restored to the recorded value.
It will be appreciated that in connection with the illustration of fig. 5, the frequency and/or voltage of the CPU is configured to be lower during the stage in which the DMA engine reads data from the data acquisition device, thereby reducing the power consumption of the electronic device.
Fig. 6 is another exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
S601: in the sleep phase.
When the CPU is in the sleep stage, the electronic equipment can be turned off or not turned off. In the scenario shown in FIG. 3A, the CPU is in a sleep state at stage 1 and stage 2; in the scenario shown in fig. 4A, the CPU is in a sleep stage at stage 1.
S602: an interrupt is sent.
The data acquisition device sends an interrupt to the CPU.
The data acquisition device may periodically send an interrupt to the CPU. For example, in the scenario shown in fig. 4A, the electronic device may periodically measure the heart rate of the user, and the photosensor may periodically send an interrupt to the CPU during the process of periodically recording the light intensity.
Alternatively, the data acquisition device may send an interrupt to the CPU after receiving an operation of the user, a message of the network, or the like. For example, in the scenario shown in fig. 4A, after the network card receives a message from the network, an interrupt is sent to the CPU.
Alternatively, in some embodiments of the present application, where the processor is an NPU or DSP, the data acquisition device may send an interrupt to the NPU, DSP.
S603: and (3) switching to a wake-up stage, and configuring the CPU frequency to a first frequency.
After receiving the interrupt, the CPU changes from the sleep stage to the wake stage, and configures the CPU frequency to be the first frequency.
The CPU in the wake-up stage provides the DMA engine with basic capabilities such as a clock, so that the DMA engine can work normally.
S604: a DMA request is sent.
The CPU sends a DMA request to the DMA engine. Where the DMA request may include a main memory starting address, a data acquisition device address, a data size, etc. The main memory initial address is the destination address of the copy data; the external data address is the start address of the copied data, and the data size is the size of the copied data.
Optionally, in some embodiments of the present application, when the processor is an NPU or a DSP, the CPU sends the DMA request to the DMA engine through the CPU after receiving the interrupt, or after the NPU or the DSP receives the interrupt, or directly sends the DMA request to the DMA engine.
S605: and copying the data into the memory.
The DMA engine reads the data into the memory. The DMA device takes over control of the bus and copies the data to the memory. The memory includes an L1 memory, an L2 memory, an L3 memory, and/or a memory of the electronic device, which are integrated in the CPU.
S606: an interrupt is sent to inform the CPU that copying of the data has been completed.
The DMA engine sends an interrupt to inform the CPU that the copy of the data has been completed.
It should be noted that, steps S602 to S606 may be regarded as a complete interrupt.
Correspondingly, optionally, in some embodiments of the present application, the DMA engine sends an interrupt to the NPU or DSP, etc. to notify "the DMA engine has completed copying of the data", or sends an interrupt to the CPU through the DMA engine to notify the NPU or DSP.
S607: and converting into a service processing stage, configuring the CPU frequency to a second frequency, reading data from the memory, and processing.
See the text description in step S502 above, and will not be repeated here.
Fig. 7 is another exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
Unlike what is shown in fig. 6, what is shown in fig. 7 is that the DMA engine copies data to the data acquisition device.
S701: a DMA request is sent.
The CPU may be in a wake-up phase, a sleep phase, or a traffic processing phase before sending the DMA request.
The content of the DAM request may refer to the content in step S604, which is not described herein.
S702: and changing to a wake-up stage, and configuring the frequency of the CPU to be a first frequency.
Reference may be made to the content in step S603 above, and no further description is given here.
S703: and writing the data in the memory into the data acquisition device.
Unlike step S605, the DMA engine writes the data in the memory to the data acquisition device.
S704: an interrupt is sent to inform the CPU that the data copy has been completed.
Reference may be made to the content of step S606 above, and no further description is given here.
After step S704, the CPU may transition to the sleep stage.
It should be noted that, in the methods shown in fig. 6 and fig. 7 above, after the CPU transitions to the wake-up phase, the frequency and/or voltage of the CPU may be adjusted at the same time.
Fig. 8 is another exemplary schematic diagram of a flow of a method for adjusting power consumption of a device according to an embodiment of the present application.
S801: optionally, the frequency and voltage of the CPU are recorded before the CPU enters the sleep stage.
Alternatively, the frequency and voltage of the CPU may be recorded before the CPU enters the sleep stage.
S802: and judging whether the interrupt initiated by the data acquisition device exists.
Whether or not there is an interrupt initiated by the data acquisition device is determined, wherein the definition of the data acquisition device may refer to the above description, and will not be repeated here. If there is an interrupt initiated by the data acquisition device, step S803 is executed, and if there is no interrupt initiated by the data acquisition device, step S802 is executed.
S803: configuring the frequency of the CPU to a first frequency and/or configuring the voltage of the CPU to a first voltage.
After the CPU is awakened from the sleep stage, the CPU is in the awakening stage, and the capabilities of a clock and the like are developed for the DMA engine. And, configuring the frequency of the CPU to be the first frequency and/or configuring the voltage of the CPU to be the first voltage.
S804: interrupt processing, the data copying is completed by the DMA engine.
And processing the message sent by the interrupt source through the interrupt, and copying the data from the interrupt source to the memory of the electronic equipment by the DMA engine, so that the CPU can conveniently read the data and process the data.
S805: configuring the frequency of the CPU to be the second frequency and/or configuring the voltage of the CPU to be the second voltage, and starting the CPU to process the data.
The second frequency and the second voltage may be the same as the frequency and the voltage of the CPU before the sleep stage or related to the current service.
In combination with the content shown in fig. 5, fig. 6, fig. 7 and fig. 8, the method for adjusting the power consumption of the device provided by the embodiment of the application can reduce the power consumption of the CPU of the DMA engine in the process of copying data, thereby reducing the power consumption of the electronic device.
For example, in a scenario where the sensor periodically reports data, the frequency or voltage of the CPU is changed as shown in fig. 9A and 9B.
Fig. 9A, 9B and 9C are an exemplary schematic diagram of CPU frequency and voltage variations provided by embodiments of the present application.
As shown in fig. 9A, when the CPU is in the sleep stage, the CPU frequency is C1; after receiving the data reported by the sensor, the CPU stage is changed into a wake-up stage, and the CPU frequency is C2 in the wake-up stage; after a period of time, the CPU phase becomes the traffic processing phase, with CPU frequency C3. Wherein C1 is less than or equal to C2, and C2 is less than C3.
As shown in fig. 9B, when the CPU is in the sleep stage, the CPU voltage is D1; after receiving the data reported by the sensor, the CPU stage is changed into a wake-up stage, and the CPU voltage is D2 in the wake-up stage; after a period of time, the CPU phase becomes the traffic processing phase, and the CPU voltage is D3. Wherein C1 is less than or equal to C2, and C2 is less than C3.
As shown in fig. 9C, when the CPU phase is the wake-up phase, the duration of the wake-up phase is determined by the time consumed for the DMA engine to copy the data, regardless of the computing power of the CPU, so reducing the power consumption of the CPU can reduce the power consumption of the electronic device.
Finally, a hardware architecture and a software structure of the electronic device provided in the embodiments of the present application are described.
Fig. 10A and fig. 10B are schematic diagrams illustrating an exemplary hardware architecture of an electronic device according to an embodiment of the present application.
The electronic device may be a cell phone, tablet, desktop, laptop, handheld, notebook, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, as well as a cellular telephone, personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) device, virtual Reality (VR) device, artificial intelligence (artificial intelligence, AI) device, wearable device, vehicle-mounted device, smart home device, and/or smart city device, with the specific types of such electronic devices not being particularly limited by the embodiments of the present application.
The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a photoelectric sensor (not shown in fig. 10A), and the like.
It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a central processing unit (central processing unit, CPU) modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor, a baseband processor, and/or a neural network processor, etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the electronic device.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing function of the electronic device. The processor 110 and the display screen 194 communicate via a DSI interface to implement the display functionality of the electronic device.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge an electronic device, or may be used to transfer data between the electronic device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the connection relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device may implement shooting functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also perform algorithm optimization on noise and brightness of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the electronic device may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
Video codecs are used to compress or decompress digital video. The electronic device may support one or more video codecs. In this way, the electronic device may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of electronic devices can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (NVM).
The random access memory may include a static random-access memory (SRAM), a dynamic random-access memory (dynamic random access memory, DRAM), a synchronous dynamic random-access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random-access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.;
the nonvolatile memory may include a disk storage device, a flash memory (flash memory).
The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. divided according to an operation principle, may include single-level memory cells (SLC), multi-level memory cells (MLC), triple-level memory cells (TLC), quad-level memory cells (QLC), etc. divided according to a storage specification, may include universal FLASH memory (english: universal FLASH storage, UFS), embedded multimedia memory cards (embedded multi media Card, eMMC), etc. divided according to a storage specification.
The random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like.
The nonvolatile memory may store executable programs, store data of users and applications, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
The external memory interface 120 may be used to connect external non-volatile memory to enable expansion of the memory capabilities of the electronic device. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external nonvolatile memory. The electronic device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device may listen to music, or to hands-free conversations, through speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the electronic device picks up a phone call or voice message, the voice can be picked up by placing the receiver 170B close to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device may be provided with at least one microphone 170C. In other embodiments, the electronic device may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronics determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (i.e., x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device through the reverse motion, thereby realizing anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronics calculate altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device is a flip machine, the electronic device may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device may measure the distance by infrared or laser. In some embodiments, the scene is photographed and the electronic device can range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device emits infrared light outwards through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device. When insufficient reflected light is detected, the electronic device may determine that there is no object in the vicinity of the electronic device. The electronic device may detect that the user holds the electronic device near the ear to talk using the proximity light sensor 180G, so as to automatically extinguish the screen for power saving purposes. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device can adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect if the electronic device is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access the application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device performs a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, the electronics perform a reduction in performance of a processor located near temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device heats the battery 142 to avoid low temperatures causing the electronic device to shut down abnormally. In other embodiments, the electronic device performs boosting of the output voltage of the battery 142 when the temperature is below a further threshold to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180M may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal acquired by the bone conduction sensor 180M, so as to implement a heart rate detection function.
The photo sensor may also be referred to as an optical heart rate sensor, which may convert an optical signal into an electrical signal. In some embodiments of the present application, where the electronic device is a wearable device such as a wristwatch, a light source on the electronic device illuminates the wrist and a photosensor records the intensity of the reflected light or other parameters. Further, the electronic device calculates the heart rate of the user based on photoplethysmography (Photo PlethysmoGraphy, PPG) or other algorithms from the changes in the intensity of the reflected light or other parameters.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device. The electronic device may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic equipment interacts with the network through the SIM card, so that the functions of communication, data communication and the like are realized. In some embodiments, the electronic device employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from the electronic device.
In the present embodiment, the processor 110 may further include a DMA controller 110A.
The DMA controller 110A may be configured to receive a DMA request sent by a processor and send an interrupt to the processor after the copying of data is completed. The DMA controller is used for controlling the bus to copy data from the data acquisition module to the memory or copy data from the memory to the data acquisition module.
The memory may be the internal memory 121, or may be a random access memory of the internal memory 121.
Alternatively, in some embodiments of the present application, the DMA controller 110A may be located in the south bridge of the electronic device, or elsewhere, than within the processor.
As shown in fig. 10B, in embodiments of the present application, the mobile communication module 150, the wireless communication module 160, and/or the sensor module 180 may each be a data acquisition device.
The data acquisition device may be a separate chip or a hardware module.
Fig. 11A and 11B are schematic diagrams illustrating an exemplary software architecture of an electronic device according to an embodiment of the present application.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, an Android system with a layered architecture is taken as an example, and the software structure of the electronic equipment is illustrated.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 11A, the application package may include applications for cameras, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 11A, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire 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 such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, 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, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of 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. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and 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, image 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.
Optionally, in some embodiments of the present application, the operating system in the kernel layer is used to configure the processor to be in different modes, i.e., to configure different frequencies and/or voltages. Alternatively, the operating system in the kernel layer may determine which program in the application layer the data belongs to, and thus the frequency and/or voltage of the processor in the traffic processing stage.
As shown in fig. 11B, an operating or operating system kernel running on the electronic device may include four software modules, respectively a service processing module, an interrupt processing module, a DMA engine, a CPU frequency and voltage adjustment module.
The interrupt processing module is used for receiving the interrupt and sending a DMA request to the DMA control chip.
The service processing module is used for indicating the processor to execute calculation according to the logic of the upper layer service.
Wherein the DMA engine is configured to effect copying of data between the memory and the data retrieval device.
The processor frequency and/or voltage adjustment module is used for configuring the mode of the processor, namely configuring the voltage and/or frequency of the processor.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces, in whole or in part, a flow or function consistent with embodiments of the present application. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (18)

1. A method of adjusting power consumption of a device, the method comprising:
after the electronic equipment acquires the first data, the electronic equipment copies the first data into a memory, wherein a processor of the electronic equipment works in a first mode after the electronic equipment acquires the first data and before the first data is copied into the memory;
after the first data is copied into memory, the electronic device processes the first data by the processor operating in a second mode;
when the processor works in a first mode, the working frequency of the processor is a first frequency, and the working voltage of the processor is a first voltage; when the processor works in a second mode, the working frequency of the processor is a second frequency, and the working voltage of the processor is a second voltage;
The first frequency is less than the second frequency and/or the first voltage is less than the second voltage.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the processor operates in a third mode before the electronic device obtains the first data;
when the processor works in the third mode, the working frequency of the processor is a third frequency, and the working voltage of the processor is a third voltage;
the third voltage is less than or equal to the first voltage, and/or the third frequency is less than or equal to the first frequency.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the processor operates in the second mode before the electronic device obtains the first data.
4. A method according to any one of claims 1-3, characterized in that the electronic device comprises data acquisition means and a DMA controller; after the electronic device obtains the first data, the electronic device copies the first data to the memory, specifically including:
after the electronic equipment acquires the first data through the data acquisition device, the electronic equipment receives a first interrupt sent by the data acquisition device through the processor; the first interrupt is used for instructing the processor to copy the first data from the data acquisition device into the memory;
After the electronic equipment receives the first interrupt through the processor, the electronic equipment instructs the DMA controller to copy the first data from the data acquisition device into the memory through the processor.
5. The method according to claim 4, wherein the method further comprises:
after receiving the first operation, the electronic equipment instructs the DMA controller to copy the second data in the memory to the data acquisition device through the processor;
the processor operates in the first mode during copying of the second data from the memory to the data retrieval device.
6. The method of claim 4 or 5, wherein the data acquisition device is a sensor or a network card.
7. The method of claim 6, wherein the data acquisition device is a photosensor and the first data is data for determining heart rate;
after the first data is copied into the memory, the electronic device processes the first data through the processor working in the second mode, and specifically includes: after the first data is copied to the memory, the electronic device determines, via the processor, a heart rate based on the first data.
8. The method of claim 6, wherein the data acquisition device is a network card;
after the first data is copied into the memory, the electronic device processes the first data through the processor working in the second mode, and specifically includes:
after the first data is copied into the memory, the electronic device determines, by the processor operating in the second mode, first content based on the first data;
the method further comprises the steps of: the electronic device displays the first content, and the first content corresponds to the first data.
9. The method according to any one of claims 4-8, further comprising:
after the electronic equipment copies the first data from the data acquisition device to the memory through the DMA controller, the electronic equipment sends a second interrupt to the processor through the DMA controller;
and after the electronic device determines that the first data is copied into the memory based on the second interrupt through the processor, configuring the processor to operate in the second mode.
10. The method of any of claims 1-9, wherein after the first data is copied into memory, before the electronic device processes the first data with the processor operating in the second mode, the method further comprises:
The electronic equipment determines a first parameter;
the electronic device determines the second voltage and/or the second frequency based on the first parameter.
11. The method of claim 10, wherein the first parameter is used to indicate an application corresponding to the first data; or, the first parameter is used for indicating the service corresponding to the first data; or, the first parameter is used for indicating the type of the service corresponding to the first data.
12. The method according to any one of claims 1-9, wherein the second voltage and/or the second frequency is a preset value.
13. The method of any of claims 1-12, wherein the processor comprises one or more of a central processing unit, CPU, a digital signal processor, DSP, and a neural network processor, NPU.
14. An electronic device, the electronic device comprising: one or more processors and memory;
the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-13.
15. The method of claim 14, wherein the electronic device is a wearable electronic device.
16. A chip system, characterized in that the chip system is applied to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method according to any of claims 1-13.
17. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-13.
18. A computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-13.
CN202210726906.6A 2022-06-24 2022-06-24 Method for adjusting power consumption of equipment and electronic equipment Pending CN117311484A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210726906.6A CN117311484A (en) 2022-06-24 2022-06-24 Method for adjusting power consumption of equipment and electronic equipment
PCT/CN2023/101413 WO2023246783A1 (en) 2022-06-24 2023-06-20 Method for adjusting device power consumption and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210726906.6A CN117311484A (en) 2022-06-24 2022-06-24 Method for adjusting power consumption of equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN117311484A true CN117311484A (en) 2023-12-29

Family

ID=89260944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210726906.6A Pending CN117311484A (en) 2022-06-24 2022-06-24 Method for adjusting power consumption of equipment and electronic equipment

Country Status (2)

Country Link
CN (1) CN117311484A (en)
WO (1) WO2023246783A1 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106556424B (en) * 2016-10-18 2019-10-29 上海斐讯数据通信技术有限公司 A kind of intelligence wearable device and its energy-saving operating method
CN107909686B (en) * 2017-11-02 2021-02-02 Oppo广东移动通信有限公司 Method and device for unlocking human face, computer readable storage medium and electronic equipment
JP6919538B2 (en) * 2017-12-05 2021-08-18 富士通株式会社 Power control system and power control program
CN108540664B (en) * 2018-03-30 2021-02-19 联想(北京)有限公司 Starting method and electronic equipment
WO2020155055A1 (en) * 2019-01-31 2020-08-06 华为技术有限公司 Method for reducing power consumption and electronic device
CN113325941B (en) * 2020-02-29 2022-07-12 荣耀终端有限公司 Method for displaying finger print under screen and electronic equipment
CN112147944A (en) * 2020-08-17 2020-12-29 来邦养老科技有限公司 Low-power-consumption monitoring method and monitoring system for old people

Also Published As

Publication number Publication date
WO2023246783A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
WO2020103764A1 (en) Voice control method and electronic device
CN114443277A (en) Memory management method and device, electronic equipment and computer readable storage medium
CN114546190A (en) Application display method and electronic equipment
CN112217923A (en) Display method of flexible screen and terminal
WO2020093988A1 (en) Image processing method and electronic device
CN111316199B (en) Information processing method and electronic equipment
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
CN110543287A (en) Screen display method and electronic equipment
US20230195309A1 (en) Method and apparatus for adjusting memory configuration parameter
WO2022095744A1 (en) Vr display control method, electronic device, and computer readable storage medium
CN114356537A (en) Memory management method, electronic device and computer-readable storage medium
CN113641271A (en) Application window management method, terminal device and computer readable storage medium
CN115333941A (en) Method for acquiring application running condition and related equipment
CN112437341B (en) Video stream processing method and electronic equipment
CN113590346B (en) Method and electronic equipment for processing service request
CN116828100A (en) Bluetooth audio playing method, electronic equipment and storage medium
WO2023246783A1 (en) Method for adjusting device power consumption and electronic device
CN116795476B (en) Wallpaper deleting method and electronic equipment
CN117013660B (en) Charging icon display method and electronic equipment
CN116703691B (en) Image processing method, electronic device, and computer storage medium
CN116048831B (en) Target signal processing method and electronic equipment
WO2022143891A1 (en) Focal point synchronization method and electronic device
CN115482143B (en) Image data calling method and system for application, electronic equipment and storage medium
CN115529379B (en) Method for preventing Bluetooth audio Track jitter, electronic equipment and storage medium
WO2024045841A1 (en) Storage method and apparatus, and electronic 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