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

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

Info

Publication number
CN115696527A
CN115696527A CN202211313634.3A CN202211313634A CN115696527A CN 115696527 A CN115696527 A CN 115696527A CN 202211313634 A CN202211313634 A CN 202211313634A CN 115696527 A CN115696527 A CN 115696527A
Authority
CN
China
Prior art keywords
power consumption
electronic device
chip
message
application
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
CN202211313634.3A
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.)
Netease Youdao Hangzhou Intelligent Technology Co ltd
Original Assignee
Netease Youdao Hangzhou Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Youdao Hangzhou Intelligent Technology Co ltd filed Critical Netease Youdao Hangzhou Intelligent Technology Co ltd
Priority to CN202211313634.3A priority Critical patent/CN115696527A/en
Publication of CN115696527A publication Critical patent/CN115696527A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method and a system for adjusting power consumption of an electronic device. The electronic equipment comprises a communication chip and a main chip which are communicated through a network communication interface layer, wherein a low-power consumption module is arranged in the main chip and used for sending a query message to an application layer in the main chip so as to query whether the application in the application layer has a network connection requirement, and a command is sent to the network communication interface layer in response to the fact that a corresponding response message is not received in a first preset period after the query message is sent out, so that the network communication interface layer is instructed to stop sending a network connection request to the communication chip. The embodiment of the invention sets the triggering conditions of the low-power-consumption module of the HAL layer for switching the state of the communication chip as follows: the electronic equipment can be switched to the low power consumption state without response, so that communication messages required for triggering state switching are reduced, power consumption is reduced, and the endurance time of a battery of the electronic equipment can be prolonged.

Description

Method and system for adjusting power consumption of electronic equipment
Technical Field
Embodiments of the present invention relate to the field of reducing power consumption of electronic devices, and more particularly, to a method and a system for adjusting power consumption of an electronic device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein may include concepts that could be pursued, but are not necessarily ones that have been previously conceived or pursued. Thus, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section.
For portable devices with communication capabilities, the length of battery life is an important parameter. For example, after a communication chip (e.g., wifi chip) of the dictionary pen is connected to the AP hotspot, the power consumption of the dictionary pen is increased due to system network communication, and thus the endurance time of the dictionary pen device is shortened.
In the prior art, the problem of short endurance time of the portable device is generally solved by adopting the following modes:
firstly, the communication chip is improved, and the power consumption of the chip is reduced.
And secondly, the battery capacity is increased, and more energy supply is provided.
And thirdly, the power consumption is reduced by intermittently supplying power to the communication chip.
However, the difficulty of improving the communication chip itself is high, and the communication chip is not suitable for the use of the existing chip.
By increasing the capacity of the battery, the battery occupies a large space, which may result in an increase in the size of the portable device and affect the user experience.
By intermittently supplying power to the communication chip to reduce power consumption, there are the following problems: on the one hand, there is frequent message interaction at power state switching, resulting in additional power consumption. On the other hand, intermittent power supply is not suitable for a scenario in which the communication chip is required to continuously perform a partial function, for example, a scenario in which the communication chip is required to maintain a basic connection function.
Disclosure of Invention
For this reason, an improved method for adjusting the power consumption of the electronic device is highly desirable, so as to improve the endurance of the electronic device.
In this context, embodiments of the present invention are expected to provide a method and a system for adjusting power consumption of an electronic device including a communication chip 22 and a main chip 21, which reduce power consumption and improve cruising ability of the electronic device during switching of power consumption states by adjusting the communication chip 22.
In a first aspect of an embodiment of the present invention, an electronic device includes a communication chip and a main chip, where the communication chip is connected to the main chip through a network communication interface layer, and a low power consumption module is disposed in the main chip to perform a method including sending an inquiry message to an application layer in the main chip to inquire whether an application in the application layer has a network connection requirement S1; and responding to the situation that no corresponding response message is received within a first preset period after the inquiry message is sent out, and sending a command to the network communication interface layer to instruct the network communication interface layer to stop sending the network connection request S2 to the communication chip.
In one embodiment of the invention, the method for adjusting the power consumption of the electronic equipment further comprises the following steps: responding to a response message received in a first preset period after the inquiry message is sent out, and determining the sending time of the next inquiry message; or, according to the second preset period and the corresponding response message received in the first preset period after responding to the self-sent inquiry message, determining the sending time of the next inquiry message; or, according to the second preset period, determining the sending time of the next inquiry message.
In another embodiment of the present invention, the second preset period is set to any value of 25 to 35 seconds, preferably 30 seconds.
In another embodiment of the present invention, each time the query message is sent includes an identification code, the response message includes at least the identification code of the corresponding query message and the application identification code of the response message.
In yet another embodiment of the invention, the reply message includes network duration information required by the application.
In yet another embodiment of the present invention, the method of regulating power consumption of an electronic device further comprises: and judging the time for sending the inquiry message next time according to the network time length information in the received response message and the sending time of the corresponding inquiry message.
In yet another embodiment of the present invention, an application having a network connection requirement in an application layer in a main chip returns a response message corresponding to an inquiry message in response to a received inquiry message.
In still another embodiment of the present invention, the first preset period is set to an arbitrary value of 2 to 5 seconds.
In yet another embodiment of the invention, the inquiry message is sent in a broadcast form.
In yet another embodiment of the invention, the low power module is disposed in the HAL layer of the master chip.
In yet another embodiment of the present invention, the communication chip is a wifi chip. The communication chip in this embodiment is a chip having an energy saving mode under the MAC80211 protocol.
In a second aspect of the embodiments of the present invention, a system for adjusting power consumption of an electronic device is provided, where the electronic device includes a communication chip 22 and a main chip 21, the communication chip 22 is connected to the main chip 21 through a network communication interface layer 33, and includes a low power module disposed on a HAL layer 32 of the main chip 21, and the low power module is connected to an application layer 31 and the network communication interface layer 33, respectively; the low power consumption module is configured to send a query message to the application layer 31, and send a command to the network communication interface layer 33 in response to that no corresponding response message is received within a first preset period after the query message is sent, so as to instruct the network communication interface layer 33 to stop sending a network connection request to the communication chip 22.
According to an embodiment of the present invention, the system for adjusting power consumption of an electronic device further includes an application disposed in the application layer 31 of the main chip 21, and the application having a network connection requirement returns a response message corresponding to the inquiry message in response to the received inquiry message.
In the embodiment of the invention, aiming at the inquiry message sent each time, if the corresponding response message is not received in the first preset period, the communication chip is directly enabled to enter the low power consumption state, and the triggering is not required to utilize extra information, so that the power consumption of the triggering condition for the communication chip to enter the low power consumption state is reduced. Further, when the application in the application layer receives the inquiry message, only the part of the application with the network connection requirement responds, and other applications do not need to respond, so that the number of messages sent by the application in the process is reduced, the power consumption required by the trigger condition that the communication chip does not enter a low-power-consumption state is reduced, and the cruising ability of the communication chip can be increased on the basis of the existing battery. The embodiment of the invention can reduce the triggering condition entering low power consumption and the power consumption of the triggering condition not entering low power consumption, and can also keep the basic connection of the communication chip.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates a block diagram of an exemplary computing system 100 suitable for implementing embodiments of the present invention;
FIG. 2 schematically illustrates a hardware block diagram applied to a portable device according to an embodiment of the present invention;
FIG. 3 schematically illustrates a system architecture level diagram of a conditioning electronic device according to an embodiment of the invention;
FIG. 4 schematically illustrates a flow chart showing a method of adjusting power consumption of an electronic device according to an embodiment of the present invention;
FIG. 5 schematically illustrates a message interaction diagram of a method of regulating power consumption of an electronic device, in accordance with an embodiment of the present invention;
fig. 6 is a schematic diagram schematically illustrating message interaction of returning a response message within a first preset period in a method of adjusting power consumption of an electronic device according to an embodiment of the present invention;
fig. 7 schematically shows a flow chart of a method for regulating power consumption of an electronic device according to the invention operating in the electronic device.
Detailed Description
The principles and spirit of the present invention will be described with reference to several exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 illustrates a block diagram of an exemplary computing system 100 suitable for implementing embodiments of the present invention. As shown in fig. 1, computing system 100 may include: a Central Processing Unit (CPU) 101, a Random Access Memory (RAM) 102, a Read Only Memory (ROM) 103, a system bus 104, a hard disk controller 105, a keyboard controller 106, a serial interface controller 107, a parallel interface controller 108, a display controller 109, a hard disk 110, a keyboard 111, a serial external device 112, a parallel external device 113, and a display 114. Among these devices, coupled to the system bus 104 are a CPU 101, a RAM 102, a ROM 103, a hard disk controller 105, a keyboard controller 106, a serial controller 107, a parallel controller 108, and a display controller 109. The hard disk 110 is coupled to the hard disk controller 105, the keyboard 111 is coupled to the keyboard controller 106, the serial external device 112 is coupled to the serial interface controller 107, the parallel external device 113 is coupled to the parallel interface controller 108, and the display 114 is coupled to the display controller 109. It should be understood that the block diagram of the architecture depicted in FIG. 1 is for purposes of illustration only and is not intended to limit the scope of the present invention. In some cases, certain devices may be added or subtracted as the case may be.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.) or a combination of hardware and software, and is referred to herein generally as a "circuit," module "or" system. Furthermore, in some embodiments, the invention may also be embodied in the form of a computer program product in one or more computer-readable media having computer-readable program code embodied in the medium.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive example) of the computer readable storage medium may include, for example: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Embodiments of the present invention will be described below with reference to flowchart illustrations of methods and block diagrams of apparatuses (or systems) of embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
Any number of elements in the drawings described herein are by way of illustration rather than limitation, and any nomenclature is used solely for differentiation and not limitation.
The principles and spirit of the present invention are explained in detail below with reference to several exemplary embodiments of the present invention.
Summary of The Invention
The present inventors have found that, in a portable device, the power consumption of a communication chip has a large influence on the cruising ability of a battery, and therefore, the present inventors have extended the cruising ability of the battery from the viewpoint of reducing the power consumption of the communication chip.
Changing the power consumption state of a communication chip is one of the effective ways to regulate the power consumption of an electronic device. Communication chips typically have two states, one being a low power consumption state, for example: several low power states defined by the MAC80211 protocol can still maintain basic communication with the main chip when the communication chip is in the low power state. The other is a normal power consumption state, for example, the communication chip is in the normal power consumption state during the process that the communication chip provides the network service to the application. According to the working state of the electronic equipment, the low power consumption state and the normal power consumption state of the communication chip are switched in time, so that the power consumption of the electronic equipment can be reduced.
The inventor finds that in the switching process of the communication chip between the low power consumption state and the normal power consumption state, the power consumption caused by message transmission can be reduced by improving the trigger condition for switching the states, and the method is also a method for further solving the battery endurance.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring first to fig. 2, there is shown a hardware block diagram of a portable electronic device to which an embodiment of the present invention can be applied, as shown in fig. 2, such a portable device has its own functions and functions of communicating with the outside, and generally has at least a main chip 21 (including a CPU and a DDR memory) performing main software functions and a communication chip 22 performing communication functions. For example: the equipment such as dictionary pen, earphone, etc. is externally hung with a communication chip for realizing network communication connection outside the main chip. After a communication chip of the dictionary pen, such as a wifi chip, is connected to a wireless Access Point (AP), network communication of the communication chip may increase power consumption of the wifi chip of the dictionary pen, resulting in a reduction in endurance time of the dictionary pen device. The embodiment of the invention is used in the portable electronic equipment to reduce the power consumption of the electronic equipment and prolong the endurance time of the battery.
Exemplary method
In connection with the application scenario of fig. 2, a method for reducing power consumption of a communication chip according to an exemplary embodiment of the present invention is described with reference to fig. 3, fig. 4 and fig. 5. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Fig. 3 shows a system architecture hierarchy of an electronic device according to an embodiment of the invention. As shown in fig. 3, the system architecture hierarchy of an electronic device generally includes an application Layer 31, a HAL (Hadware Abstract Layer) Layer 32, a network interface Layer 33, and a hardware Layer 34.
The application layer 31 is provided with a plurality of applications, for example, a dictionary APP, a cloud note APP, and the like, and directly faces the user through an interface of the electronic device for user operation.
The HAL layer 32, also known as a hardware abstraction layer, is an interface layer between the kernel of the operating system and the hardware circuit, and is intended to abstract hardware, to hide the hardware interface details of a specific platform, to provide a virtual hardware platform for the operating system, to make it hardware-independent, and to be portable on a variety of platforms. The HAL layer may include various functional modules, such as GPS, vibrator, wi-Fi, copybit, audio, camera, and the like. In an embodiment of the invention, a low power consumption module is provided in the main chip for regulating the power consumption of the electronic device. The low power consumption module can be arranged at any position in the main chip. In some implementations, it may be preferable to locate the low power consumption module in the HAL layer 32 in view of the above-described characteristics of the HAL layer. The low power consumption module provided in the HAL layer 32 is connected to the application layer 31 and the network communication interface layer 33, respectively.
The network interface layer 33 is used to provide an interface for connection and communication. In some implementations, a network communication interface is provided for communication between the master chip and the communication chip.
The hardware layer 34 includes the hardware of the host chip itself and plug-in hardware, such as: the communication chip may be referred to as a "hardware one". The communication between the communication chip and the main chip is realized through a network communication interface in the network interface layer 33.
Fig. 4 shows a schematic flow chart of a method of regulating power consumption of an electronic device according to an embodiment of the invention. The method may be performed, for example, by the low power module in fig. 3. For clarity, fig. 5 shows a message interaction diagram of a method of adjusting power consumption of an electronic device according to an embodiment of the invention. This is described below in conjunction with fig. 4 and 5.
The low power consumption module disposed in the main chip 21 executes the following method, as shown in fig. 4, in step S1, the low power consumption module sends an inquiry message to the application layer 31 in the main chip 21 to inquire whether the application in the application layer 31 has a network connection requirement.
As shown in fig. 4, in step S2, in response to not receiving the corresponding reply message within the first preset period since the query message is sent, the low power consumption module sends a command to the network communication interface layer 33 to instruct the network communication interface layer 33 to stop sending the network connection request to the communication chip 22.
The first preset period is a limited time according to which whether the power consumption state of the communication chip 22 is switched is determined in the process that the low power consumption module executes the power consumption state switching of the communication chip 22, and the limited time is used for judging whether a trigger condition for switching the power consumption state of the communication chip 22 exists in the limited time. The first preset period may be adjusted as desired. In the embodiment of the present invention, a first preset period may be set according to the time taken for the communication chip 22 to switch the power consumption state, so that the time for sending the query message to the application in the application layer 31 matches the time for the communication chip 22 to enter the low power consumption state.
When the low power consumption module sends out the inquiry information, it starts timing, and when the timing exceeds the first preset period, it still does not receive the response message, and then the low power consumption module can execute the operation of making the communication chip 22 enter the low power consumption state. That is, the low power consumption module triggers the communication chip 22 to enter the trigger condition of the low power consumption state, and does not need any transmission of response message, and only needs to satisfy: no response message is received during the first predetermined period. Compared with the technical scheme that the power consumption state switching of the communication chip 22 needs to be triggered based on the fact that a certain message is received, the trigger mode reduces the power consumption caused by message interaction.
The scheme adopted for switching the power consumption state of the communication chip is as follows: the low power module sends a command to the network communication interface layer 33 instructing the network communication interface layer 33 to stop sending network connection requests to the communication chip 22. The communication chip defined in the embodiments of the present invention may be configured to have the following characteristics: when the network connection request is not received for a period of time, a low power state is entered. The commands sent to the network communication interface layer 33 are conventional commands, and the present invention is not described in detail.
The state switching of the communication chip 22 in the electronic device should have real-time performance so as to conform to the use scene of the electronic device by the user. Therefore, it is necessary to frequently transmit the inquiry message and to continuously re-determine the power consumption state of the communication chip 22.
In some implementations, when the transmission time interval of the two previous and next inquiry messages is decided, the transmission time of the next inquiry message may be determined in response to the corresponding response message received within a first preset period since the inquiry message was sent. That is, the sending time of the next inquiry message is adjusted in time according to the response message to match the requirement of the application.
In other implementations, the sending time of the next inquiry message may also be determined according to the second preset period and the corresponding response message received in the first preset period after the inquiry message is sent, that is, by referring to the two factors: the response message and a preset second preset period.
The second preset period refers to a preset time interval for sending the inquiry messages twice, and can be flexibly adjusted according to needs.
By referring to the response message and the second preset period, the requirements of the matching application and the requirements of other elements in the system can be synthesized.
In still other implementations, the time of transmission of the next inquiry message may also be determined based only on the second preset period. In this way, a constant interrogation message transmission interval can be maintained, maintaining stability in executing various instructions.
The second preset period may be set to any value of 25 to 35 seconds, and preferably, the second preset period is set to any one of 25, 30, and 35 seconds. The method and the device are applied to the portable equipment, the second preset period is set to be 25-35 seconds, the habit of a user for operating the portable equipment is met, and the use experience of the user can be improved.
In some implementations, the interrogation message may include an identification code, i.e., a different identification code may be included in each interrogation message sent. The response message at least comprises the corresponding identification code of the inquiry message and the application identification code of the response message. The identification code in the query message may be, for example, UUID, universal Unique Identifier (universal Unique Identifier), which is used to uniquely identify or distinguish query messages sent at different times.
The response message contains the identification code of the corresponding inquiry message, so that the low-power module can judge the inquiry message corresponding to the response message according to the identification code, and can accurately determine whether the time interval between the two is within the first preset period. The application identification code in the reply message, such as an APPID, may identify the application that issued the reply message.
Alternatively or additionally, the response message may further include network duration information required by the application, the network duration information being sent by the application for the duration required by the network service being used or required to be used. On this basis, in some embodiments of the present invention, the time for sending the query message next time can be determined according to the network duration information in the received response message and the sending time of the corresponding query message, and the power consumption state of the communication chip can be switched in time when the application does not need network connection.
Fig. 6 is a schematic diagram illustrating message interactions for returning a response message within a first preset period in the method for adjusting power consumption of an electronic device according to the embodiment of the invention.
As shown in fig. 6, among the applications included in the application layer 31, only an application that has a network connection requirement returns a response message corresponding to the inquiry message in response to the inquiry message. The application in the application layer 31 obtains the query message, first determines its own status, and determines the information of the network connection requirement, and if the application is performing network connection or there is a requirement for network connection, the application will return a response message. At this time, the low power consumption module does not need to send a command to the network communication interface layer, and still needs to process according to the conventional method.
That is, the receipt of the response message within the first predetermined period is the basis for the low power module not to send the command. In some embodiments of the present invention, since the response message is sent only by the application with the network connection requirement, and the other applications do not need to send the response message, the number of messages sent by the application layer 31 in the process is reduced, and the power consumption caused by message interaction is reduced.
In some embodiments of the present invention, the first preset period may be set to any value of 2 to 5 seconds, or set to any one of 2 and 3 seconds. Usually, the power consumption state of the communication chip is switched approximately in about 2-3 seconds, and some embodiments of the present invention may set 2 seconds or 3 seconds as a time interval for determining whether to switch to the low power consumption state, so that the first preset period can be kept consistent with the state switching time of the communication chip.
In some embodiments of the invention, the inquiry message may be sent in a broadcast form. By the scheme of sending the inquiry message in a broadcast manner, different applications can respectively make appropriate responses according to the needs of the applications.
In some implementations of the invention, the communication chip is a wifi chip. Take a wifi chip in a dictionary pen as an example: after the wifi chip of dictionary pen is connected the ap hotspot, be provided with the low-power module in the HAL layer, when the inquiry message of sending does not have corresponding response message to return, the network communication interface layer of the system of low-power module instruction dictionary pen stops application layer network request to the sending of wifi chip, and the power consumption of dictionary pen wifi chip falls to less than 200ua this moment for the wifi chip of dictionary pen is connected the heartbeat with the ap and is kept. When the HAL layer sends the inquiry message and receives a response, the dictionary pen wifi exits the low power consumption mode, the system network communication interface layer of the dictionary pen sends an application layer network request, at the moment, the power consumption of the dictionary pen wifi chip needs 70ma additionally, and after the network request is completed, the wifi can enter the low power consumption mode again to achieve the purpose of saving the power consumption.
For example: the battery capacity of the dictionary pen is 1000mwh, the power consumption of the dictionary pen when requested by a network is 250ma, and the endurance of the dictionary pen can be improved from 4h to 5.5h by using the technical scheme of the embodiment of the invention.
Fig. 7 shows a flow chart of a method for regulating power consumption of an electronic device according to the invention when the method is run in the electronic device.
As shown in fig. 7, in some embodiments of the present invention, the second predetermined period is set to 30 seconds as an example. Starting the electronic device and entering step 71: and starting. Then step 72 is entered: sleep for 30 seconds, and after waiting for 30 seconds of the sleep time, proceed to step 73: the low power module in the electronic device broadcasts a query message "whether the application layer makes a network request" to the application layer, and then proceeds to step 74, determines whether a response is received within a first predetermined period, and when a response is received, returns to step 72, waits again for 30 seconds, and broadcasts the query message again. When no response is received within the first predetermined period, the method enters step 75, controls the wifi chip to enter the low power consumption state, then enters step 76, waits for 30 seconds again, enters step 77, controls the wifi chip to exit the low power consumption state, and enters step 73 again to broadcast the inquiry information.
Exemplary device
According to different application scenarios, the power consumption adjusting method of the embodiment of the invention can be applied to different electronic devices, such as but not limited to small robots, printers, scanners, tablet computers, smart terminals, PC devices, internet of things terminals, mobile phones, driving recorders, navigators, sensors, cameras, video cameras, projectors, watches, earphones, dictionary pens, mobile storage, wearable devices, visual terminals, auto-pilot terminals, vehicles, home appliances, and/or medical devices.
In the embodiment of the invention, the triggering condition for switching the state of the communication chip by the low-power-consumption module is set as that the communication chip can be switched into the low-power-consumption state without receiving the response message within a certain time, so that the switching condition is simplified, the communication messages required for switching the communication chip into the low-power-consumption state are reduced, and the power consumption is reduced. Furthermore, the response message is sent only by the application with the network connection requirement, so that the amount of the response message is reduced, the communication messages required by switching the states are further reduced, the power consumption is reduced, and the endurance time of the battery of the electronic equipment can be prolonged. By setting the first preset period to be close to the state switching time of the communication chip, the frequency of sending the inquiry message and the frequency of switching the state can be coordinated with each other. By setting the second preset period to be about 30 seconds, the operation habit of the user is met, and the use experience of the user is improved.
Further, while operations of the methods of the invention are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Use of the verbs "comprise", "comprise" and their conjugations in this application does not exclude the presence of elements or steps other than those stated in this application. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user are all in accordance with the regulations of related laws and regulations, and do not violate the good customs of the public order.

Claims (13)

1. A method of regulating power consumption of an electronic device, the electronic device comprising a communication chip and a main chip, the communication chip being connected to the main chip via a network communication interface layer, wherein a low power consumption module is provided in the main chip to perform a method comprising,
sending an inquiry message to an application layer in the main chip to inquire whether the application in the application layer has a network connection requirement (S1);
and responding to the condition that no corresponding response message is received within a first preset period after the inquiry message is sent out, and sending a command to the network communication interface layer to instruct the network communication interface layer to stop sending a network connection request to the communication chip (S2).
2. The method of regulating power consumption of an electronic device of claim 1, further comprising:
responding to a corresponding response message received in a first preset period after the inquiry message is sent out, and determining the sending time of the next inquiry message;
or the like, or, alternatively,
determining the sending time of the next inquiry message according to the second preset period and the corresponding response message received in the first preset period after responding to the inquiry message;
or the like, or, alternatively,
and determining the sending time of the next inquiry message according to the second preset period.
3. The method for adjusting power consumption of an electronic device according to claim 2, wherein the second preset period is set to any value of 25 to 35 seconds.
4. The method of regulating power consumption of an electronic device according to claim 1, wherein each time said inquiry message is sent includes an identification code,
the response message at least comprises the identification code of the corresponding inquiry message and the application identification code of the response message.
5. The method of regulating power consumption of an electronic device of claim 4,
the response message includes network duration information required by the application.
6. The method of regulating power consumption of an electronic device of claim 5, further comprising:
and judging the time for sending the inquiry message next time according to the network duration information in the received response message and the corresponding sending time of the inquiry message.
7. The method of regulating power consumption of an electronic device of claim 1, further comprising:
and responding to the received inquiry message by the application with the network connection requirement in the application layer in the main chip, and returning a response message corresponding to the inquiry message.
8. The method for adjusting power consumption of an electronic device according to any one of claims 1-7, wherein the first preset period is set to any value of 2-5 seconds.
9. Method for regulating the power consumption of an electronic device according to any of claims 1 to 7, characterized in that said inquiry message is sent in the form of a broadcast.
10. Method for regulating the power consumption of an electronic device according to any of claims 1 to 7, characterized in that said low power consuming module is arranged in the HAL layer of the master chip.
11. Method for regulating the power consumption of an electronic device according to any of the claims 1 to 7, characterized in that said communication chip is a wifi chip.
12. A system for regulating power consumption of an electronic device, the electronic device comprising a communication chip (22) and a main chip (21), the communication chip (22) and the main chip (21) being connected via a network communication interface layer (33),
comprising a low power module arranged on a HAL layer (32) of a main chip (21),
the low-power consumption module is respectively connected with an application layer (31) and a network communication interface layer (33);
the low-power-consumption module is used for sending a query message to the application layer (31), responding to the situation that no corresponding response message is received within a first preset period after the query message is sent out, and sending a command to the network communication interface layer (33) to instruct the network communication interface layer (33) to stop sending a network connection request to the communication chip (22).
13. The system for regulating power consumption of an electronic device of claim 12,
the system also comprises an application arranged in an application layer (31) in the main chip (21), wherein the application with the network connection requirement returns a response message corresponding to the inquiry message in response to the received inquiry message.
CN202211313634.3A 2022-10-25 2022-10-25 Method and system for adjusting power consumption of electronic equipment Pending CN115696527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211313634.3A CN115696527A (en) 2022-10-25 2022-10-25 Method and system for adjusting power consumption of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211313634.3A CN115696527A (en) 2022-10-25 2022-10-25 Method and system for adjusting power consumption of electronic equipment

Publications (1)

Publication Number Publication Date
CN115696527A true CN115696527A (en) 2023-02-03

Family

ID=85098463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211313634.3A Pending CN115696527A (en) 2022-10-25 2022-10-25 Method and system for adjusting power consumption of electronic equipment

Country Status (1)

Country Link
CN (1) CN115696527A (en)

Similar Documents

Publication Publication Date Title
CN114443256B (en) Resource scheduling method and electronic equipment
US11832188B2 (en) Apparatus and method for controlling operation cycle of electronic device in wireless communication system
US8855618B2 (en) Apparatus and method for adaptively operating an application program
US10771854B2 (en) Video streaming apparatus and method in electronic device
US20220015099A1 (en) Power-efficient resource selection procedure for nr v2x ue with limited power
EP3819773A1 (en) Data prefetching method and terminal device
US10055233B2 (en) Multimedia terminal for vehicle and data processing method thereof
CN110673640A (en) Unmanned aerial vehicle control method, device, equipment and storage medium
CN116028210B (en) Resource scheduling method, electronic equipment and storage medium
CN117539614A (en) Resource scheduling method and electronic equipment
CN114679681A (en) Device control method, device, electronic device and storage medium
EP3343385B1 (en) Method for performing communication between peripheral devices of mobile terminal and mobile terminal
WO2021018208A1 (en) Firmware upgrade method and apparatus, electronic device, and storage medium
CN115696527A (en) Method and system for adjusting power consumption of electronic equipment
CN116027880B (en) Resource scheduling method and electronic equipment
US20200044584A1 (en) Motor driving method, mobile terminal, and computer-readable storage medium
CN111327933A (en) Equipment awakening method and device and electronic equipment
CN116627886A (en) Inter-core communication method and device thereof
US11837993B2 (en) System for controlling a photovoltaic system, method and device for controlling the photovoltaic system
US20200137831A1 (en) Frequency band authentication method and apparatus for wireless device, and computing device
CN112119566A (en) Power supply method, device, system and storage medium
CN116089055B (en) Resource scheduling method and device
CN107729283B (en) Method, system and storage medium for controlling CPU extension based on mobile terminal
CN117953667A (en) Control method, device, system and equipment
CN115701569A (en) Information processing method, terminal device, cloud server, and storage medium

Legal Events

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