WO2023230958A1 - Battery usage control method and apparatus, electronic device, and storage medium - Google Patents

Battery usage control method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2023230958A1
WO2023230958A1 PCT/CN2022/096627 CN2022096627W WO2023230958A1 WO 2023230958 A1 WO2023230958 A1 WO 2023230958A1 CN 2022096627 W CN2022096627 W CN 2022096627W WO 2023230958 A1 WO2023230958 A1 WO 2023230958A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
power
terminal
circuit
threshold
Prior art date
Application number
PCT/CN2022/096627
Other languages
French (fr)
Chinese (zh)
Inventor
彭聪
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2022/096627 priority Critical patent/WO2023230958A1/en
Priority to CN202280004443.0A priority patent/CN117501207A/en
Publication of WO2023230958A1 publication Critical patent/WO2023230958A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power

Definitions

  • the present disclosure relates to the technical field related to terminal equipment, and in particular, to a battery usage control method, device, electronic equipment and storage medium.
  • terminal devices such as mobile phones
  • Terminal devices have assumed more and more functions, and all kinds of work can be completed through terminal devices.
  • Various shortcut functions and hardware updates of terminal devices are coming one after another, appearing in all aspects of people's lives, greatly improving the convenience of users' terminal devices.
  • the arrival of various new features has also brought people anxiety about battery life.
  • the power of the terminal device is exhausted, everything can no longer continue, causing a lot of trouble to people and virtually increasing the user's anxiety.
  • the present disclosure provides a battery usage control method, device, electronic equipment and storage medium.
  • a battery usage control method is provided, applied to a terminal, where the terminal includes two batteries, and the method includes:
  • the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down; wherein the second circuit is a circuit used in the shutdown state of the terminal. ;
  • the first battery is used to power the second circuit so as to realize the preset function when the terminal is powered off.
  • the preset function includes: at least one of recording incoming calls, automatically replying to incoming call messages, near field communication function, and alarm clock.
  • controlling the first battery and the second circuit to be turned on, and controlling the terminal to shut down includes:
  • the first circuit power supply mode detect whether the power of the second battery of the terminal is less than or equal to a second power threshold, wherein the second power threshold is less than the first power threshold;
  • the second circuit When it is determined that the power of the second battery of the terminal is greater than or equal to the second power threshold and less than the first power threshold, the second circuit is maintained to provide power for the user to choose whether to turn on the preset power threshold. Set function.
  • the preset function is to automatically reply to an incoming call message. If there is an incoming call during the shutdown period of the terminal, any one of the shutdown information and the information related to the waiting time of the terminal will be sent. kind.
  • the method further includes: when detecting a peripheral device connected to the terminal, sending the shutdown information or information related to the terminal's standby time through the peripheral device. any of them.
  • the preset function is a near field communication function.
  • the near field communication cards are activated sequentially within a preset time.
  • the terminal reads
  • the near field communication card is matched, the near field communication function is terminated.
  • the first battery is used to power the second circuit so as to implement preset functions when the terminal is powered off, including: displaying each of the preset functions.
  • the power required by the function; one or more of the preset functions to be activated are determined based on the required power and the power of the first battery.
  • a battery usage control device which is applied to a terminal.
  • the device includes:
  • the detection unit is used to detect the power of the first battery and the second battery of the terminal;
  • a judgment unit which is used to determine whether the remaining power of the second battery is higher than the first power threshold after detecting that the remaining power of the first battery is lower than the first power threshold; if so, control the The second battery is connected to the first circuit;
  • a switching unit configured to control the conduction of the first battery and the second circuit after detecting that the second battery is exhausted, and control the terminal to shut down;
  • a starting unit the starting unit is used to use the first battery to power the second circuit so as to realize the preset function when the terminal is powered off.
  • the detection unit is further configured to detect whether the power of the second battery of the terminal is less than or equal to a second power threshold in the first circuit power supply mode, wherein the The second power threshold is less than the first power threshold;
  • the switching unit is also configured to control the conduction of the first battery and the second circuit when it is detected that the power of the second battery of the terminal is less than or equal to the second power threshold;
  • the starting unit is configured to maintain power supply of the second circuit for user selection when it is determined that the power of the second battery of the terminal is greater than or equal to the second power threshold and less than the first power threshold. Whether to enable the default function.
  • the device further includes:
  • An information setting unit configured to set the power of the second battery of the terminal when it is determined that the power of the second battery is greater than or equal to the second power threshold and less than the first power threshold. Describes information related to preset functions.
  • an electronic device including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the first aspect or the method in the first aspect.
  • the battery usage control method according to any embodiment.
  • a non-transitory computer-readable storage medium which when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute the first aspect or the first The battery usage control method according to any embodiment of the aspect.
  • the technical solution provided by the embodiments of the present disclosure may include the following beneficial effects:
  • the present disclosure detects the remaining power of the two batteries by setting two batteries in the terminal. When it is detected that the remaining power of the first battery is lower than the first power, After the threshold, it is determined whether the remaining power of the second battery is higher than the first power threshold; if so, the second battery is controlled to be connected to the first circuit; where the first circuit is a circuit used in the terminal power-on state; when the second battery is detected.
  • the first battery and the second circuit are controlled to be conductive, and the terminal is controlled to shut down;
  • the second circuit is a circuit used in the terminal shutdown state;
  • the first battery is used to power the second circuit so that in the terminal shutdown state It can realize preset functions under low power, and can still provide users with functions such as alarm clock, call reply, and near field communication when the low-power terminal is shut down to meet the user's needs.
  • FIG. 1 is a flow chart of a battery usage control method according to an exemplary embodiment.
  • FIG. 2 is a flowchart of another battery usage control method according to an exemplary embodiment.
  • FIG. 3 is a flow chart of yet another battery usage control method according to an exemplary embodiment.
  • FIG. 4 is a flow chart of yet another battery usage control method according to an exemplary embodiment.
  • FIG. 5 is a flow chart of yet another battery usage control method according to an exemplary embodiment.
  • FIG. 6 is a flowchart illustrating activating a preset function of a terminal according to an exemplary embodiment.
  • FIG. 7 is a block diagram of a battery usage control device according to an exemplary embodiment.
  • FIG. 8 is a block diagram of another battery usage control device according to an exemplary embodiment.
  • Figure 9 is a block diagram of a device according to an exemplary embodiment.
  • terminals such as mobile phones and tablets have become one of the important devices in people's daily lives.
  • terminals such as mobile phones and tablets are mainly powered by batteries installed inside them.
  • terminals In daily life, due to the lack of battery power, terminals often shut down automatically when traveling, which causes a lot of trouble to people.
  • NFC Near Field Communication
  • a low-power terminal when a low-power terminal is turned off, the mobile phone and other terminals used at this time cannot use Near Field Communication (NFC), and cannot be used normally when a near field communication NFC device is detected.
  • NFC Near Field Communication
  • a low-power terminal when a low-power terminal is turned off, it cannot know whether there is a call, etc., nor can it tell others when it can be turned on.
  • in daily use if you forget to charge the terminal at night, it is very likely that the alarm clock on your mobile phone and other terminals will not be able to remind you the next day.
  • the present disclosure provides a battery usage control method that rationally activates and controls battery power, and can still provide users with functions such as alarm clock, call reply, and NFC to meet the user's needs even when the low-power terminal is shut down.
  • FIG. 1 is a flow chart of a battery usage control method according to an exemplary embodiment.
  • the battery usage control method is applied to the terminal, and the terminal includes two batteries. As shown in Figure 1, it includes the following steps S101 to S104.
  • step S101 the remaining power of the two batteries is detected.
  • the remaining power of the first battery is lower than the first power threshold, it is determined whether the remaining power of the second battery is higher than the first power threshold.
  • the first power threshold is a set appropriate battery water level, which is the power used to implement the preset function when the terminal is turned off. This embodiment does not limit this.
  • After detecting that the remaining power of the first battery is lower than the first power threshold it is determined whether the remaining power of the second battery is higher than the first power threshold.
  • One situation can be understood as: after detecting that the remaining power of the first battery is greater than the first power threshold, there is no need to determine whether the remaining power of the second battery is higher than the first power threshold, and the first battery continues to be connected to the first circuit. At this time, it can be considered that the terminal has sufficient power to ensure that the terminal is powered on, that is, the terminal is not powered off.
  • Another situation can be understood as: after detecting that the remaining power of the first battery is equal to the first power threshold, there is no need to determine whether the remaining power of the second battery is higher than the first power threshold, and the first battery continues to be connected to the first circuit. . At this time, it can be considered that the terminal power is in a low power stage and only the power of the first battery is used, but it will soon be necessary to determine whether the remaining power of the second battery is higher than the first power threshold.
  • Another situation can be understood as: after detecting that the remaining power of the first battery is less than the first power threshold, it is necessary to determine whether the remaining power of the second battery is higher than the first power threshold. At this time, it can be considered that the power of the terminal is in a low power stage, and only the power of the second battery is used, while the power of the first battery is retained.
  • step S102 if yes, control the second battery and the first circuit to be turned on; wherein the first circuit is the circuit used in the terminal power-on state.
  • the second battery and the first circuit when the remaining power of the second battery is higher than the first power threshold, the second battery and the first circuit are controlled to be turned on. It can be understood that only when the remaining power of the first battery is lower than the first power threshold and the remaining power of the second battery is higher than the first power threshold, the second battery and the first circuit are turned on, and the second battery is activated. . That is to say, when the power of the first battery is higher than the first power threshold and the terminal can be kept powered on, the second battery will not be connected to the first circuit.
  • step S103 when it is detected that the power of the second battery is exhausted, the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down; wherein, the second circuit is a circuit used in the shutdown state of the terminal.
  • the first battery and the second circuit are controlled to be connected. That is to say, after the terminal is shut down, the first battery supplies power to the second circuit.
  • step S104 the first battery is used to power the second circuit so as to realize the preset function when the terminal is powered off.
  • the preset functions refer to the basic usage functions of the terminal, including: recording incoming calls, automatically replying to incoming call messages, near field communication functions, alarm clocks, etc.
  • the preset function can be selected according to the user's settings. For example, if the user wants to provide an alarm clock function in the automatic shutdown state, the user can select the alarm clock function to the preset function. For another example, if the user wants to notify the caller if there is an incoming call when the terminal is in the automatic shutdown state, the user can set up a voice notification or text message to inform the caller of the fact that the terminal has been turned off.
  • the preset functions may be functions that the user does not want to be unable to use due to low battery shutdown, and this embodiment does not limit this.
  • a terminal is a device that provides a voice and/or data connection to a user, or a chip located within the device.
  • the terminal may be a touch display device or other hardware device with various operating systems.
  • terminals may include: mobile phones, tablets, laptops, PDAs, Mobile Internet Devices (MID), wearable devices, Virtual Reality (VR) devices, Augmented Reality (AR) Equipment, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in remote surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes Terminal etc.
  • MID Mobile Internet Devices
  • VR Virtual Reality
  • AR Augmented Reality
  • the remaining power of the two batteries is detected.
  • FIG. 2 is a flowchart of a battery usage control method according to an exemplary embodiment.
  • step S103 when it is detected that the second battery is exhausted, the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down, including the following Step S1031 and step S1033.
  • step S1031 in the first circuit power supply mode, it is detected whether the power of the second battery of the terminal is less than or equal to a second threshold power, where the second threshold power is less than the first threshold power.
  • the second threshold power is the power when the low-power terminal is shut down.
  • the power of the low-power terminal when it is shut down i.e., the second threshold power
  • the power used to implement the preset function when the terminal is turned off i.e., the first threshold of power.
  • One situation can be understood as: the power of the second battery is less than the second threshold power, the terminal shuts down due to low power, and then the first battery is enabled again.
  • Another situation can be understood as: the power of the first battery is equal to the second threshold power, the terminal is shut down due to low power, and then the first battery is enabled again.
  • step S1032 when it is detected that the power of the second battery of the terminal is less than or equal to the second threshold power, the first battery and the second circuit are controlled to be turned on.
  • One situation can be understood as: the power of the second battery is less than the second threshold power, and the first battery and the second circuit are connected before the terminal is shut down due to low power.
  • Another situation can be understood as: the power of the first battery is equal to the second threshold power, and the terminal causes the first battery and the second circuit to be connected before the power is low.
  • step S1033 when it is determined that the power of the second battery of the terminal is greater than or equal to the second threshold power and less than the first threshold power, the second circuit is maintained to provide power for the user to choose whether to enable the preset function.
  • one situation can be understood as that the power of the second battery is greater than the second threshold power (that is, the power of the low-power terminal when it is turned off) and less than the first threshold of power (that is, when the terminal is turned off to realize the use of the preset function). (power level), the user can choose whether to turn on the preset function.
  • Another situation can be understood as a situation where the power of the second battery is equal to the second threshold power (i.e., the power when the low-power terminal is turned off) and less than the first threshold power (i.e., the power used to implement the preset function when the terminal is turned off).
  • the second threshold power i.e., the power when the low-power terminal is turned off
  • the first threshold power i.e., the power used to implement the preset function when the terminal is turned off
  • the preset functions include: at least one of recording incoming calls, automatically replying to incoming call messages, near field communication function, and alarm clock.
  • the terminal When the power of the second battery is equal to the second threshold power (i.e., the power when the low-power terminal is turned off) and less than the first threshold power (i.e., the power used to implement the preset function when the terminal is turned off), the terminal initiates a pop-up window, Initiate a request to the user whether to turn on the preset function.
  • Each preset function on the pop-up window is equipped with "Yes” and “No” buttons, or “Agree” and “Deny” buttons, or “Yes” and “No” buttons. button, or the "Y” and “N” buttons, the user can select the corresponding function by clicking the corresponding button.
  • the alarm clock is stopped when the user presses the terminal power button. If you forget to charge the terminal at night, it avoids the situation where the alarm clock on the mobile phone and other terminals cannot remind you the next day.
  • the terminal when the preset function of the near field communication function is turned on, when the near field communication NFC device is detected, the terminal can be directly approached to read the near field communication NFC. Ensure that mobile phones and other terminals use NFC cards normally, avoiding delays in user arrangements due to the inability of NFC cards to reduce users' anxiety.
  • the user can choose whether to enable the preset function before the low-power terminal is shut down.
  • the first battery supplies power to the preset functions selected by the user to ensure the normal operation of the functions selected by the user, meet the user's needs, and at the same time bring a better user experience and reduce the user's anxiety. .
  • FIG. 3 is a flow chart of a battery usage control method according to an exemplary embodiment.
  • the battery usage control method is applied to a terminal.
  • the preset function is to automatically reply to incoming call messages, the following step S105 is also included.
  • step S105 the preset function is to automatically reply to incoming call messages. If there is an incoming call during the shutdown period of the terminal, shutdown information and/or information related to the terminal's standby time will be sent.
  • the shutdown information may be: the user you dialed has shut down, please dial again later; the user you dialed has shut down, please leave a message, etc.
  • Information related to the terminal's power-on time can be used to inform the possible power-on time, for example: communication can be restored after 30 minutes, and we will contact you again; communication can be restored after 45 minutes, and we will contact you again; communications can be restored after 1 hour, and we will contact you again. etc.
  • a shutdown message will be sent, for example: the user you are calling has been turned off, please call again later; the user you are calling has been turned off, please leave a message, etc., to User terminal for incoming calls.
  • the user When a call is detected, the user is prompted to have turned off the phone, and then the information related to the terminal's power-on time is provided, for example: communication can be restored after 30 minutes, and we will contact you again; communications can be restored after 45 minutes, and we will contact you again; 1 hour After that, communication can be resumed, and you will be contacted again, etc., to the user terminal of the incoming call.
  • the information related to the terminal's power-on time for example: communication can be restored after 30 minutes, and we will contact you again; communications can be restored after 45 minutes, and we will contact you again; 1 hour After that, communication can be resumed, and you will be contacted again, etc., to the user terminal of the incoming call.
  • the low-power terminal before the low-power terminal is shut down, it is convenient to turn on the preset function of automatically replying to incoming calls according to the user's needs.
  • the low-power terminal When the low-power terminal is shut down, it can automatically reply to incoming calls to avoid losing contact with the outside world. , to meet user needs.
  • FIG. 4 is a flow chart of a battery usage control method according to an exemplary embodiment.
  • the battery usage control method is applied to a terminal.
  • the battery usage control method further includes the following step S106.
  • step S106 when a peripheral device connected to the terminal is detected, the shutdown information and/or information related to the standby time of the terminal is sent through the peripheral device.
  • the peripheral device may be an artificial intelligence Internet of Things AIOT (AI IoT, AIOT) device.
  • Artificial Intelligence IoT AIOT devices include wearable devices, sensors, appliances, and medical monitors. Among them, wearable devices can be bracelets, watches and other devices.
  • the connection method between the terminal and peripheral devices includes wireless connection. Wireless connections may include Bluetooth connections, infrared connections, etc. Among them, low-power Bluetooth connection can perform data exchange based on Bluetooth protocol. When connected through Bluetooth, the corresponding message transmission between the terminal and artificial intelligence Internet of Things (AIOT) devices such as bracelets and watches is completed. It allows the user to know the current status from the connected device and send shutdown information and/or information related to the terminal's standby time through the peripheral device.
  • AIOT artificial intelligence Internet of Things
  • shutdown information and/or information related to the terminal's standby time are sent through peripheral devices, thereby providing users with a better experience.
  • FIG. 5 is a flow chart of a battery usage control method according to an exemplary embodiment.
  • the battery usage control method is applied to a terminal.
  • the battery usage control method further includes the following step S107.
  • the preset function is the near field communication function.
  • the near field communication cards are activated sequentially within the preset time.
  • the matching near field communication card is read, Terminate the near field communication function.
  • the preset time may be 5 seconds, 10 seconds, 15 seconds, etc., which is not limited in this embodiment.
  • the preset function of near field communication is turned on, when a near field communication NFC device is detected, just bring the terminal close to the near field communication NFC reading.
  • the terminal is equipped with multiple near field communication cards, the near field communication cards are started sequentially within a preset time.
  • the near field communication function is terminated.
  • FIG. 6 is a flowchart illustrating activating a preset function of a terminal according to an exemplary embodiment. As shown in Figure 6, activating the default function of the terminal includes the following steps S1041 to S1042.
  • step S1041 the power required for each of the preset functions is displayed.
  • step S1042 one or more of the preset functions to be activated are determined based on the required power and the power of the second battery.
  • the terminal when the power of the second battery is equal to the second threshold power (i.e., the power when the low-power terminal is turned off) and less than the first threshold power (i.e., the power used to implement the preset function when the terminal is turned off) , the terminal initiates a pop-up window. Initiate a request to the user whether to enable the preset function, and the power required for the function will be displayed in the pop-up window. According to the required power and the power of the first battery, it is determined to activate one or more preset functions.
  • the second threshold power i.e., the power when the low-power terminal is turned off
  • the first threshold power i.e., the power used to implement the preset function when the terminal is turned off
  • One situation can be understood as: when the power required to display the preset function that needs to be turned on is less than the power of the first battery, it is determined to activate the preset function.
  • Another situation can be understood as, when the power required to display the preset function that needs to be turned on is equal to the power of the first battery, it is determined to start the preset function.
  • Another situation can be understood as, when the power required to display the preset function that needs to be turned on is greater than the power of the first battery, the preset function is selected to be turned off.
  • first batteries may be one, two, three, four, five, etc., which is not limited in this embodiment.
  • the preset functions are reasonably enabled according to the required power and the first battery power to meet the user's needs, while bringing a better user experience and alleviating the user's anxiety.
  • an embodiment of the present disclosure also provides a battery usage control device.
  • the battery usage control device provided by the embodiments of the present disclosure includes hardware structures and/or software modules corresponding to each function. Combined with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of the technical solutions of the embodiments of the present disclosure.
  • FIG. 7 is a block diagram of a battery usage control device according to an exemplary embodiment.
  • the device 700 includes a detection unit 701 , a judgment unit 702 , a switching unit 703 and a starting unit 704 .
  • the detection unit 701 is configured to detect the power of the first battery and the second battery of the terminal.
  • the judgment unit 702 is configured to determine whether the remaining power of the second battery is higher than the first power threshold after detecting that the remaining power of the first battery is lower than the first power threshold; if so, control the second battery and the first power threshold.
  • the circuit is conducting.
  • the switching unit 703 is configured to control the first battery and the second circuit to be turned on and control the terminal to shut down after detecting that the power of the second battery is exhausted.
  • the starting unit 704 is configured to use the first battery to power the second circuit so as to implement the preset function when the terminal is powered off.
  • the detection unit 701 is further configured to detect whether the power of the second battery of the terminal is less than or equal to a second threshold power in the first circuit power supply mode, where the second threshold power is less than the first power. Threshold power.
  • the switching unit 703 is further configured to control the first battery and the second circuit to be turned on when it is detected that the power of the second battery of the terminal is less than or equal to the second threshold power.
  • the startup unit 704 is further configured to maintain power supply to the second circuit for the user when it is determined that the power of the second battery of the terminal is greater than or equal to the second threshold power and less than the first threshold power. Choose whether to enable the default function.
  • the detection unit 701 detects the remaining power of the first battery and the second battery of the terminal. After detecting that the remaining power of the first battery of the terminal is lower than the first power threshold, the judgment unit 702 determines whether the remaining power of the second battery is higher than the first power threshold. If so, the second battery and the first circuit are controlled. Turn on; when the switching unit 703 detects that the second battery is exhausted, it controls the first battery and the second circuit to turn on, and controls the terminal to shut down. In the first battery power supply mode, the starting unit 704 uses the first battery to power the second circuit so as to implement the preset function when the terminal is powered off. By using dual batteries, the detection unit 701 detects the remaining power of the first battery and the second battery of the terminal.
  • the first battery When the power of the second battery is exhausted and the terminal is shut down, the first battery is activated to provide power, which can be used when the terminal is shut down with low power. In this case, enable battery power reasonably.
  • the starting unit 704 in the mode where the first battery supplies power to the second circuit, the preset functions of the terminal are started and the battery power is reasonably controlled.
  • the low-power terminal When the low-power terminal is turned off, it can still provide the user with functions such as alarm clock, call reply, and NFC. functions to meet users’ needs, while bringing a better user experience and alleviating users’ anxiety.
  • FIG. 8 is a block diagram of a battery usage control device according to an exemplary embodiment.
  • the device 700 further includes an information setting unit 705 .
  • the information setting unit 705 is configured to set information related to the preset function when it is determined that the power of the second battery of the terminal is greater than or equal to the second threshold power and less than the first threshold power.
  • the information related to the preset function may be: the preset function is to automatically reply to incoming call messages, including shutdown information and/or information related to the terminal's standby time.
  • the user When an incoming call is detected, the user is prompted to have shut down the phone, and then the shutdown information and/or information related to the terminal's standby time are given to the user terminal that received the call.
  • the low-power terminal Before the low-power terminal is shut down, it is convenient to turn on the preset function of automatically replying to incoming calls according to the user's needs.
  • the low-power terminal When the low-power terminal is shut down, it can automatically reply to incoming calls to avoid losing contact with the outside world and meet the user's needs. .
  • FIG. 9 is a block diagram of a battery usage control device 800 according to an exemplary embodiment.
  • the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
  • apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and Communication component 816.
  • Processing component 802 generally controls the overall operations of device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc.
  • Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EEPROM erasable programmable read-only memory
  • EPROM Programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory, magnetic or optical disk.
  • Power component 806 provides power to various components of device 800.
  • Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800 .
  • Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action.
  • multimedia component 808 includes a front-facing camera and/or a rear-facing camera.
  • the front camera and/or the rear camera may receive external multimedia data.
  • Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
  • Audio component 810 is configured to output and/or input audio signals.
  • audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
  • Sensor component 814 includes one or more sensors that provide various aspects of status assessment for device 800 .
  • the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in position of the device 800 or a component of the device 800. , the presence or absence of user contact with the device 800 , device 800 orientation or acceleration/deceleration and temperature changes of the device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices.
  • Device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications.
  • NFC near field communications
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable Gate array
  • controller microcontroller, microprocessor or other electronic components are implemented for executing the above method.
  • a non-transitory computer-readable storage medium including instructions such as a memory 804 including instructions, which are executable by the processor 820 of the device 800 to complete the above method is also provided.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
  • “plurality” in this disclosure refers to two or more, and other quantifiers are similar.
  • “And/or” describes the relationship between related objects, indicating that there can be three relationships.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.
  • the character “/” generally indicates that the related objects are in an “or” relationship.
  • the singular forms “a”, “the” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise.
  • first, second, etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other and do not imply a specific order or importance. In fact, expressions such as “first” and “second” can be used interchangeably.
  • first information may also be called second information, and similarly, the second information may also be called first information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present disclosure relates to a battery usage control method and apparatus, an electronic device, and a storage medium. The battery usage control method is applied to a terminal comprising two batteries, and comprises: detecting the remaining capacity of the two batteries, and when it is detected that the remaining capacity of the first battery is lower than a first capacity threshold, determining whether the remaining capacity of the second battery is higher than the first capacity threshold; if so, controlling the second battery to connect to a first circuit, the first circuit being a circuit used by a terminal in a powered-on state; when it is detected that the second battery is depleted, controlling the first battery to connect to a second circuit, and controlling the terminal to shut down, the second circuit being a circuit used by the terminal in a powered-off state; and using the first battery to supply power to the second circuit, so as to allow for the execution of a pre-set function while the terminal is in a powered-off state. Even when the terminal has a low battery level or is powered off, the user may still use functions such as an alarm, calling back and near field communication, thereby meeting use requirements of a user.

Description

一种电池用量控制方法、装置、电子设备及存储介质A battery usage control method, device, electronic equipment and storage medium 技术领域Technical field
本公开涉及终端设备相关的技术领域,尤其涉及一种电池用量控制方法、装置、电子设备及存储介质。The present disclosure relates to the technical field related to terminal equipment, and in particular, to a battery usage control method, device, electronic equipment and storage medium.
背景技术Background technique
随着手机等终端设备的持续发展,越来越多的功能出现在人们的视野中,终端设备承担了越来越多的功能,各式各样的工作都可以通过终端设备完成办理。终端设备所具有的各种快捷功能以及硬件更新纷至沓来,出现在人们的方方面面,极大的提升了用户的终端设备使用便捷程度。与此同时,各种新功能的到来也给人们带来了因此电池续航问题所带来的焦虑。相关技术中,一旦终端设备电量消耗殆尽,那么一切就无法再进行下去,给人们带来非常多的困扰,无形中增加了用户的焦虑。With the continuous development of terminal devices such as mobile phones, more and more functions have appeared in people's field of vision. Terminal devices have assumed more and more functions, and all kinds of work can be completed through terminal devices. Various shortcut functions and hardware updates of terminal devices are coming one after another, appearing in all aspects of people's lives, greatly improving the convenience of users' terminal devices. At the same time, the arrival of various new features has also brought people anxiety about battery life. In related technologies, once the power of the terminal device is exhausted, everything can no longer continue, causing a lot of trouble to people and virtually increasing the user's anxiety.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种电池用量控制方法、装置、电子设备及存储介质。In order to overcome the problems existing in related technologies, the present disclosure provides a battery usage control method, device, electronic equipment and storage medium.
根据本公开实施例的第一方面,提供一种电池用量控制方法,应用于终端,所述终端包括两个电池,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a battery usage control method is provided, applied to a terminal, where the terminal includes two batteries, and the method includes:
对所述两个电池的剩余电量进行检测,当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于所述第一电量阈值;Detect the remaining power of the two batteries, and when it is detected that the remaining power of the first battery is lower than the first power threshold, determine whether the remaining power of the second battery is higher than the first power threshold;
如果是,则控制所述第二电池和第一电路导通;其中,所述第一电路为所述终端开机状态使用的电路;If yes, control the second battery and the first circuit to be conductive; wherein the first circuit is the circuit used in the powered-on state of the terminal;
当检测到所述第二电池的电量耗尽后,控制所述第一电池和第二电路导通,并控制所述终端关机;其中,所述第二电路为所述终端关机状态使用的电路;When it is detected that the power of the second battery is exhausted, the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down; wherein the second circuit is a circuit used in the shutdown state of the terminal. ;
利用所述第一电池为所述第二电路供电,以便在所述终端关机状态下实现预设功能。The first battery is used to power the second circuit so as to realize the preset function when the terminal is powered off.
在一种可能的实现方式中,所述预设功能包括:记录来电通话、自动回复来电消息、近场通信功能、闹钟中的至少一种。In a possible implementation, the preset function includes: at least one of recording incoming calls, automatically replying to incoming call messages, near field communication function, and alarm clock.
在一种可能的实现方式中,所述当检测到所述第二电池的电量耗尽后,控制所述第一电池和第二电路导通,并控制所述终端关机,包括:In a possible implementation, after detecting that the second battery is depleted, controlling the first battery and the second circuit to be turned on, and controlling the terminal to shut down, includes:
在所述第一电路供电模式下,检测所述终端的所述第二电池的电量是否小于等于第二电量阈值,其中,所述第二电量阈值小于所述第一电量阈值;In the first circuit power supply mode, detect whether the power of the second battery of the terminal is less than or equal to a second power threshold, wherein the second power threshold is less than the first power threshold;
在检测到所述终端的所述第二电池的电量小于等于第二电量阈值的情况下,控制所述 第一电池和第二电路导通;When it is detected that the power of the second battery of the terminal is less than or equal to the second power threshold, control the first battery and the second circuit to be turned on;
在确定所述终端的所述第二电池的电量大于等于所述第二电量阈值且小于所述第一电量阈值的情况下,维持所述第二电路进行供电,供用户选择是否开启所述预设功能。When it is determined that the power of the second battery of the terminal is greater than or equal to the second power threshold and less than the first power threshold, the second circuit is maintained to provide power for the user to choose whether to turn on the preset power threshold. Set function.
在一种可能的实现方式中,所述预设功能为自动回复来电消息,在所述终端的关机期间如有来电,则发送关机信息和所述终端的待开机时间相关的信息中的任意一种。In a possible implementation, the preset function is to automatically reply to an incoming call message. If there is an incoming call during the shutdown period of the terminal, any one of the shutdown information and the information related to the waiting time of the terminal will be sent. kind.
在一种可能的实现方式中,所述方法,还包括:当检测到与所述终端连接的周边设备时,通过所述周边设备发送所述关机信息或者所述终端的待开机时间相关的信息中的任意一种。In a possible implementation, the method further includes: when detecting a peripheral device connected to the terminal, sending the shutdown information or information related to the terminal's standby time through the peripheral device. any of them.
在一种可能的实现方式中,所述预设功能为近场通信功能,当所述终端设置有多个近场通信卡片时,在预设时间内依次启动近场通信卡片,当读取到匹配的近场通信卡片时,终止所述近场通信功能。In a possible implementation, the preset function is a near field communication function. When the terminal is equipped with multiple near field communication cards, the near field communication cards are activated sequentially within a preset time. When the terminal reads When the near field communication card is matched, the near field communication function is terminated.
在一种可能的实现方式中,所述利用所述第一电池为所述第二电路供电,以便在所述终端关机状态下实现预设功能,包括:显示所述预设功能中的每一个功能所需的电量;根据所需的电量,以及所述第一电池的电量,确定所启动的所述预设功能中的一种或多种功能。In a possible implementation, the first battery is used to power the second circuit so as to implement preset functions when the terminal is powered off, including: displaying each of the preset functions. The power required by the function; one or more of the preset functions to be activated are determined based on the required power and the power of the first battery.
根据本公开实施例的第二方面,提供一种电池用量控制装置,应用于终端,所述的装置包括:According to a second aspect of the embodiment of the present disclosure, a battery usage control device is provided, which is applied to a terminal. The device includes:
检测单元,所述检测单元用于检测所述终端的第一电池和第二电池的电量;a detection unit, the detection unit is used to detect the power of the first battery and the second battery of the terminal;
判断单元,所述判断单元用于当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于所述第一电量阈值;如果是,则控制所述第二电池和第一电路导通;a judgment unit, which is used to determine whether the remaining power of the second battery is higher than the first power threshold after detecting that the remaining power of the first battery is lower than the first power threshold; if so, control the The second battery is connected to the first circuit;
切换单元,所述切换单元用于当检测到所述第二电池的电量耗尽后,控制所述第一电池和第二电路导通,并控制所述终端关机;以及A switching unit, the switching unit is configured to control the conduction of the first battery and the second circuit after detecting that the second battery is exhausted, and control the terminal to shut down; and
启动单元,所述启动单元用于利用所述第一电池为所述第二电路供电,以便在所述终端关机状态下实现预设功能。A starting unit, the starting unit is used to use the first battery to power the second circuit so as to realize the preset function when the terminal is powered off.
在一种可能的实现方式中,所述检测单元还用于在所述第一电路供电模式下,检测所述终端的所述第二电池的电量是否小于等于第二电量阈值,其中,所述第二电量阈值小于所述第一电量阈值;In a possible implementation, the detection unit is further configured to detect whether the power of the second battery of the terminal is less than or equal to a second power threshold in the first circuit power supply mode, wherein the The second power threshold is less than the first power threshold;
所述切换单元还用于在检测到所述终端的所述第二电池的电量小于等于第二电量阈值的情况下,控制所述第一电池和第二电路导通;The switching unit is also configured to control the conduction of the first battery and the second circuit when it is detected that the power of the second battery of the terminal is less than or equal to the second power threshold;
所述启动单元用于在确定所述终端的所述第二电池的电量大于等于所述第二电量阈 值且小于所述第一电量阈值的情况下,维持所述第二电路供电,供用户选择是否开启所述预设功能。The starting unit is configured to maintain power supply of the second circuit for user selection when it is determined that the power of the second battery of the terminal is greater than or equal to the second power threshold and less than the first power threshold. Whether to enable the default function.
在一种可能的实现方式中,所述的装置还包括:In a possible implementation, the device further includes:
信息设定单元,所述信息设定单元用于在确定所述终端的所述第二电池的电量大于等于所述第二电量阈值且小于所述第一电量阈值的情况下,设定与所述预设功能相关的信息。An information setting unit, the information setting unit is configured to set the power of the second battery of the terminal when it is determined that the power of the second battery is greater than or equal to the second power threshold and less than the first power threshold. Describes information related to preset functions.
根据本公开实施例的第三方面,提供一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行第一方面或第一方面中任意一种实施方式所述的电池用量控制方法。According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the first aspect or the method in the first aspect. The battery usage control method according to any embodiment.
根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行第一方面或第一方面中任意一种实施方式所述的电池用量控制方法。According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, which when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute the first aspect or the first The battery usage control method according to any embodiment of the aspect.
本公开的实施例提供的技术方案可以包括以下有益效果:本公开通过在终端中设置两个电池,对两个电池的剩余电量进行检测,当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于第一电量阈值;如果是,则控制第二电池和第一电路导通;其中,第一电路为终端开机状态使用的电路;当检测到第二电池的电量耗尽后,控制第一电池和第二电路导通,并控制终端关机;第二电路为终端关机状态使用的电路;利用第一电池为第二电路供电,以便在终端关机状态下实现预设功能,能够在低电量终端关机的情况下,仍为用户提供如闹钟,来电回复,近场通信功能,满足用户的使用需求。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: The present disclosure detects the remaining power of the two batteries by setting two batteries in the terminal. When it is detected that the remaining power of the first battery is lower than the first power, After the threshold, it is determined whether the remaining power of the second battery is higher than the first power threshold; if so, the second battery is controlled to be connected to the first circuit; where the first circuit is a circuit used in the terminal power-on state; when the second battery is detected. After the power of the second battery is exhausted, the first battery and the second circuit are controlled to be conductive, and the terminal is controlled to shut down; the second circuit is a circuit used in the terminal shutdown state; the first battery is used to power the second circuit so that in the terminal shutdown state It can realize preset functions under low power, and can still provide users with functions such as alarm clock, call reply, and near field communication when the low-power terminal is shut down to meet the user's needs.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种电池用量控制方法的流程图。FIG. 1 is a flow chart of a battery usage control method according to an exemplary embodiment.
图2是根据一示例性实施例示出的另一种电池用量控制方法的流程图。FIG. 2 is a flowchart of another battery usage control method according to an exemplary embodiment.
图3是根据一示例性实施例示出的又一种电池用量控制方法的流程图。FIG. 3 is a flow chart of yet another battery usage control method according to an exemplary embodiment.
图4是根据一示例性实施例示出的又一种电池用量控制方法的流程图。FIG. 4 is a flow chart of yet another battery usage control method according to an exemplary embodiment.
图5是根据一示例性实施例示出的又一种电池用量控制方法的流程图。FIG. 5 is a flow chart of yet another battery usage control method according to an exemplary embodiment.
图6是根据一示例性实施例示出的启动终端的预设功能的流程图。FIG. 6 is a flowchart illustrating activating a preset function of a terminal according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种电池用量控制装置框图。FIG. 7 is a block diagram of a battery usage control device according to an exemplary embodiment.
图8是根据一示例性实施例示出的另一种电池用量控制装置框图。FIG. 8 is a block diagram of another battery usage control device according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种装置的框图。Figure 9 is a block diagram of a device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
随着科技的发展,手机、平板等终端已成为人们日常生活的重要设备之一,而手机、平板这些终端在使用过程中主要通过设置在其内部的电池进行供电。在日常生活中,由于电池电量的缺失,在外出行的时候,终端经常会出现自动关机的问题,这会给人们带来非常多的困扰。With the development of science and technology, terminals such as mobile phones and tablets have become one of the important devices in people's daily lives. During use, terminals such as mobile phones and tablets are mainly powered by batteries installed inside them. In daily life, due to the lack of battery power, terminals often shut down automatically when traveling, which causes a lot of trouble to people.
例如,在低电量终端关机的情况下,此时使用的手机等终端无法使用近场通信(Near Field Communication,NFC),在检测到近场通信NFC设备的时候无法正常使用。又例如,在低电量终端关机的情况下,无法获知是否存在电话打来等情况,也无法告知其他人何时才能开机。同样的,在日常的使用中,如果在夜间忘记给终端充电的时候,手机等终端极有可能出现第二天闹钟无法提醒的情况。For example, when a low-power terminal is turned off, the mobile phone and other terminals used at this time cannot use Near Field Communication (NFC), and cannot be used normally when a near field communication NFC device is detected. For another example, when a low-power terminal is turned off, it cannot know whether there is a call, etc., nor can it tell others when it can be turned on. Similarly, in daily use, if you forget to charge the terminal at night, it is very likely that the alarm clock on your mobile phone and other terminals will not be able to remind you the next day.
终端由于电池电量的缺失,直接影响用户在日常生活中的使用。Due to the lack of battery power of the terminal, it directly affects the use of users in daily life.
由此,本公开提供一种电池用量控制方法,合理启用并控制电池电量,能够在低电量终端关机的情况下,仍为用户提供如闹钟,来电回复,NFC功能满足用户的使用需求。Therefore, the present disclosure provides a battery usage control method that rationally activates and controls battery power, and can still provide users with functions such as alarm clock, call reply, and NFC to meet the user's needs even when the low-power terminal is shut down.
图1是根据一示例性实施例示出的一种电池用量控制方法的流程图。电池用量控制方法应用于终端中,终端包括两个电池。如图1所示,包括以下步骤S101-步骤S104。FIG. 1 is a flow chart of a battery usage control method according to an exemplary embodiment. The battery usage control method is applied to the terminal, and the terminal includes two batteries. As shown in Figure 1, it includes the following steps S101 to S104.
在步骤S101中,对两个电池的剩余电量进行检测,当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于第一电量阈值。In step S101, the remaining power of the two batteries is detected. When it is detected that the remaining power of the first battery is lower than the first power threshold, it is determined whether the remaining power of the second battery is higher than the first power threshold.
本公开实施例中,第一电量阈值为设定的一个合适的电池水位线,为终端关机状态下实现预设功能使用的电量,本实施例对此不做限制。当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于第一电量阈值。一种情况可以理解为,当检测到第一电池的剩余电量大于第一电量阈值后,无需判断第二电池的剩余电量是否高于第一电量阈值,第一电池继续和第一电路导通。此时,可以认为终端电量充足,保证终端处于开机的状态,也就是终端不关机的状态。In this disclosed embodiment, the first power threshold is a set appropriate battery water level, which is the power used to implement the preset function when the terminal is turned off. This embodiment does not limit this. After detecting that the remaining power of the first battery is lower than the first power threshold, it is determined whether the remaining power of the second battery is higher than the first power threshold. One situation can be understood as: after detecting that the remaining power of the first battery is greater than the first power threshold, there is no need to determine whether the remaining power of the second battery is higher than the first power threshold, and the first battery continues to be connected to the first circuit. At this time, it can be considered that the terminal has sufficient power to ensure that the terminal is powered on, that is, the terminal is not powered off.
另一种情况可以理解为,当检测到第一电池的剩余电量等于第一电量阈值后,无需判断第二电池的剩余电量是否高于第一电量阈值,第一电池继续和第一电路导通。此时,可以认为终端电量处于低电量阶段,只使用第一电池的电量,但即将需要判断第二电池的剩 余电量是否高于第一电量阈值。Another situation can be understood as: after detecting that the remaining power of the first battery is equal to the first power threshold, there is no need to determine whether the remaining power of the second battery is higher than the first power threshold, and the first battery continues to be connected to the first circuit. . At this time, it can be considered that the terminal power is in a low power stage and only the power of the first battery is used, but it will soon be necessary to determine whether the remaining power of the second battery is higher than the first power threshold.
还有一种情况可以理解为,当检测到第一电池的剩余电量小于第一电量阈值后,需判断第二电池的剩余电量是否高于第一电量阈值。此时,可以认为终端电量处于低电量阶段,只使用第二电池的电量,保留第一电池的电量。Another situation can be understood as: after detecting that the remaining power of the first battery is less than the first power threshold, it is necessary to determine whether the remaining power of the second battery is higher than the first power threshold. At this time, it can be considered that the power of the terminal is in a low power stage, and only the power of the second battery is used, while the power of the first battery is retained.
在步骤S102中,如果是,则控制第二电池和第一电路导通;其中,第一电路为终端开机状态使用的电路。In step S102, if yes, control the second battery and the first circuit to be turned on; wherein the first circuit is the circuit used in the terminal power-on state.
本公开实施例中,当第二电池的剩余电量高于第一电量阈值时,控制第二电池和第一电路导通。可以理解为基于第一电池的剩余电量低于第一电量阈值后,同时第二电池的剩余电量高于第一电量阈值时,才会使得第二电池和第一电路导通,启用第二电池。也就是说,在第一电池的电量高于第一电量阈值,能够维持终端开机的情况下,第二电池不会和第一电路导通。In the embodiment of the present disclosure, when the remaining power of the second battery is higher than the first power threshold, the second battery and the first circuit are controlled to be turned on. It can be understood that only when the remaining power of the first battery is lower than the first power threshold and the remaining power of the second battery is higher than the first power threshold, the second battery and the first circuit are turned on, and the second battery is activated. . That is to say, when the power of the first battery is higher than the first power threshold and the terminal can be kept powered on, the second battery will not be connected to the first circuit.
在步骤S103中,当检测到第二电池的电量耗尽后,控制第一电池和第二电路导通,并控制终端关机;其中,第二电路为终端关机状态使用的电路。In step S103, when it is detected that the power of the second battery is exhausted, the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down; wherein, the second circuit is a circuit used in the shutdown state of the terminal.
本公开实施例中,第二电池的电量耗尽后,终端关机前,控制第一电池和第二电路导通,也就是说,终端关机后,第一电池为第二电路供电。In the embodiment of the present disclosure, after the second battery is exhausted and before the terminal is shut down, the first battery and the second circuit are controlled to be connected. That is to say, after the terminal is shut down, the first battery supplies power to the second circuit.
在步骤S104中,利用第一电池为第二电路供电,以便在终端关机状态下实现预设功能。In step S104, the first battery is used to power the second circuit so as to realize the preset function when the terminal is powered off.
本公开实施例中,预设功能是指终端基本的使用功能,包括:记录来电通话、自动回复来电消息、近场通信功能、闹钟等等。该预设功能可以根据用户的设定,进行选择,例如,用户希望在自动关机的状态下,提供闹钟功能,则可以选择闹钟功能到预设功能里即可。又例如,用户希望在自动关机的状态下,如有来电,则通知来电用户的话,用户可以进行设定以语音通报或者文字短信的方式,告知来电用户终端已关机的事实。In the embodiment of the present disclosure, the preset functions refer to the basic usage functions of the terminal, including: recording incoming calls, automatically replying to incoming call messages, near field communication functions, alarm clocks, etc. The preset function can be selected according to the user's settings. For example, if the user wants to provide an alarm clock function in the automatic shutdown state, the user can select the alarm clock function to the preset function. For another example, if the user wants to notify the caller if there is an incoming call when the terminal is in the automatic shutdown state, the user can set up a voice notification or text message to inform the caller of the fact that the terminal has been turned off.
应理解,预设功能可以是用户不希望因低电量关机而不能使用的功能,本实施例对此不做限制。It should be understood that the preset functions may be functions that the user does not want to be unable to use due to low battery shutdown, and this embodiment does not limit this.
本公开实施例提供的电池用量控制方法可以应用于终端。终端是一种向用户提供语音和/或数据连接的设备,或者是设置于该设备内的芯片。终端可以为触控显示设备等具有各种操作系统的硬件设备。例如,终端可以包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile Internet Devices,MID)、可穿戴设备、虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、工业控制中的无线终端、无人驾驶中的无线终端、远程手术中的无线终端、智能电网中的无线终端、运输安全中的无线终端、智慧城市中的无线终端、智慧家庭中的无线终端等。当然,这都只是举例说明,并不是对 本公开实施例的具体限定。The battery usage control method provided by the embodiments of the present disclosure can be applied to terminals. A terminal is a device that provides a voice and/or data connection to a user, or a chip located within the device. The terminal may be a touch display device or other hardware device with various operating systems. For example, terminals may include: mobile phones, tablets, laptops, PDAs, Mobile Internet Devices (MID), wearable devices, Virtual Reality (VR) devices, Augmented Reality (AR) Equipment, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in remote surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes Terminal etc. Of course, these are just examples and are not specific limitations to the embodiments of the present disclosure.
通过采用上述方案,通过使用双电芯,两个电池的剩余电量进行检测,当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于第一电量阈值;如果是,则控制第二电池和第一电路导通;其中,第一电路为终端开机状态使用的电路;当检测到第二电池的电量耗尽后,控制第一电池和第二电路导通,并控制终端关机;第二电路为终端关机状态使用的电路;利用第一电池为第二电路供电,以便在终端关机状态下实现预设功能,合理控制电池电量,能够在低电量终端关机的情况下,仍为用户提供如闹钟,来电回复,NFC功能,满足用户的使用需求,同时带来更好的用户体验,减轻用户的焦虑。By adopting the above solution and using dual batteries, the remaining power of the two batteries is detected. When it is detected that the remaining power of the first battery is lower than the first power threshold, it is determined whether the remaining power of the second battery is higher than the first power threshold. threshold; if yes, control the second battery and the first circuit to be turned on; where the first circuit is the circuit used in the terminal power-on state; when it is detected that the second battery is exhausted, control the first battery and the second circuit conduction, and control the terminal to shut down; the second circuit is a circuit used when the terminal is shut down; the first battery is used to power the second circuit, so as to realize the preset function when the terminal is shut down, reasonably control the battery power, and enable low-power terminals to operate Even when the phone is turned off, it still provides users with functions such as alarm clock, call reply, and NFC to meet users' needs while bringing a better user experience and alleviating users' anxiety.
图2是根据一示例性实施例示出的一种电池用量控制方法的流程图。在一种可能的实现方式中,如图2所示,在步骤S103中,当检测到第二电池的电量耗尽后,控制第一电池和第二电路导通,并控制终端关机,包括以下步骤S1031和步骤S1033。FIG. 2 is a flowchart of a battery usage control method according to an exemplary embodiment. In a possible implementation, as shown in Figure 2, in step S103, when it is detected that the second battery is exhausted, the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down, including the following Step S1031 and step S1033.
在步骤S1031中,在第一电路供电模式下,检测终端的第二电池的电量是否小于等于第二阈值电量,其中,第二阈值电量小于第一阈值电量。In step S1031, in the first circuit power supply mode, it is detected whether the power of the second battery of the terminal is less than or equal to a second threshold power, where the second threshold power is less than the first threshold power.
本公开实施例中,第二阈值电量为低电量终端关机时的电量。低电量终端关机时的电量(即第二阈值电量)小于终端关机状态下实现预设功能使用的电量(即第一阈值电量)。In the embodiment of the present disclosure, the second threshold power is the power when the low-power terminal is shut down. The power of the low-power terminal when it is shut down (i.e., the second threshold power) is less than the power used to implement the preset function when the terminal is turned off (i.e., the first threshold of power).
一种情况可以理解为,第二电池的电量小于第二阈值电量,终端因低电量而关机,进而再次启用第一电池。One situation can be understood as: the power of the second battery is less than the second threshold power, the terminal shuts down due to low power, and then the first battery is enabled again.
另一种情况可以理解为,第一电池的电量等于第二阈值电量,终端因低电量而关机,进而再次启用第一电池。Another situation can be understood as: the power of the first battery is equal to the second threshold power, the terminal is shut down due to low power, and then the first battery is enabled again.
在步骤S1032中,在检测到终端的第二电池的电量小于等于第二阈值电量的情况下,控制第一电池和第二电路导通。In step S1032, when it is detected that the power of the second battery of the terminal is less than or equal to the second threshold power, the first battery and the second circuit are controlled to be turned on.
一种情况可以理解为,第二电池的电量小于第二阈值电量,终端因低电量关机前,使得第一电池和第二电路导通。One situation can be understood as: the power of the second battery is less than the second threshold power, and the first battery and the second circuit are connected before the terminal is shut down due to low power.
另一种情况可以理解为,第一电池的电量等于第二阈值电量,终端因低电量前,使得第一电池和第二电路导通。Another situation can be understood as: the power of the first battery is equal to the second threshold power, and the terminal causes the first battery and the second circuit to be connected before the power is low.
在步骤S1033中,在确定终端的第二电池的电量大于等于第二阈值电量且小于第一阈值电量的情况下,维持第二电路进行供电,供用户选择是否开启预设功能。In step S1033, when it is determined that the power of the second battery of the terminal is greater than or equal to the second threshold power and less than the first threshold power, the second circuit is maintained to provide power for the user to choose whether to enable the preset function.
本公开实施例中,一种情况可以理解为,第二电池的电量大于第二阈值电量(即低电量终端关机时的电量)且小于第一阈值电量(即终端关机状态下实现预设功能使用的电量)的情况下,供用户选择是否开启所述预设功能。In the embodiment of the present disclosure, one situation can be understood as that the power of the second battery is greater than the second threshold power (that is, the power of the low-power terminal when it is turned off) and less than the first threshold of power (that is, when the terminal is turned off to realize the use of the preset function). (power level), the user can choose whether to turn on the preset function.
另一种情况可以理解为,第二电池的电量等于第二阈值电量(即低电量终端关机时的电量)且小于第一阈值电量(即终端关机状态下实现预设功能使用的电量)的情况下,供用户选择是否开启所述预设功能。Another situation can be understood as a situation where the power of the second battery is equal to the second threshold power (i.e., the power when the low-power terminal is turned off) and less than the first threshold power (i.e., the power used to implement the preset function when the terminal is turned off). Next, users can choose whether to enable the preset function.
本公开实施例中,预设功能包括:记录来电通话、自动回复来电消息、近场通信功能、闹钟中的至少一种。In the embodiment of the present disclosure, the preset functions include: at least one of recording incoming calls, automatically replying to incoming call messages, near field communication function, and alarm clock.
在第二电池的电量等于第二阈值电量(即低电量终端关机时的电量)且小于第一阈值电量(即终端关机状态下实现预设功能使用的电量)的情况下,终端发起弹窗,向用户发起是否开启预设功能的请求,弹窗上各预设功能均设置“是”和“否”的按钮,或者“同意”和“拒绝”的按钮,或者“Yes”和“No”的按钮,或者“Y”和“N”的按钮,用户可以通过点击相应的按钮进行选择相应的功能。When the power of the second battery is equal to the second threshold power (i.e., the power when the low-power terminal is turned off) and less than the first threshold power (i.e., the power used to implement the preset function when the terminal is turned off), the terminal initiates a pop-up window, Initiate a request to the user whether to turn on the preset function. Each preset function on the pop-up window is equipped with "Yes" and "No" buttons, or "Agree" and "Deny" buttons, or "Yes" and "No" buttons. button, or the "Y" and "N" buttons, the user can select the corresponding function by clicking the corresponding button.
示例性地,当开启了记录来电通话这一预设功能,在检测到终端有电话打来时,提示用户已经关机,并记录该通话记录。便于及时告知其他人,避免外界与用户失去联系,满足用户使用需求。For example, when the preset function of recording incoming calls is turned on, when a call is detected from the terminal, the user is prompted to have turned off the phone and the call record is recorded. It is convenient to inform others in time, avoid losing contact with the outside world and meet the user's needs.
示例性地,当开启了闹钟这一预设功能,在检测到终端预设闹钟时间到达时,直接进行闹钟提醒。在用户按下终端电源键的时候停掉该闹钟。如果在夜间忘记给终端充电的时候,避免了手机等终端出现第二天闹钟无法提醒的情况。For example, when the preset function of the alarm clock is turned on, when the arrival of the preset alarm time of the terminal is detected, the alarm reminder is directly performed. The alarm clock is stopped when the user presses the terminal power button. If you forget to charge the terminal at night, it avoids the situation where the alarm clock on the mobile phone and other terminals cannot remind you the next day.
示例性地,当开启了近场通信功能这一预设功能,在检测到近场通信NFC设备的时候,直接将终端靠近进行近场通信NFC读取即可。保证手机等终端正常使用近场通信NFC卡,避免了因近场通信NFC卡无法使用而耽误用户形成安排,减轻用户的焦虑。For example, when the preset function of the near field communication function is turned on, when the near field communication NFC device is detected, the terminal can be directly approached to read the near field communication NFC. Ensure that mobile phones and other terminals use NFC cards normally, avoiding delays in user arrangements due to the inability of NFC cards to reduce users' anxiety.
通过采用上述方案,在低电量终端关机前,供用户选择是否开启预设功能。在低电量终端关机的情况下,第一电池对用户选择开启的预设功能进行供电,保证用户选择的功能正常运行,满足用户的使用需求,同时带来更好的用户体验,减轻用户的焦虑。By adopting the above solution, the user can choose whether to enable the preset function before the low-power terminal is shut down. When the low-power terminal is shut down, the first battery supplies power to the preset functions selected by the user to ensure the normal operation of the functions selected by the user, meet the user's needs, and at the same time bring a better user experience and reduce the user's anxiety. .
图3是根据一示例性实施例示出的一种电池用量控制方法的流程图。在一种可能的实现方式中,电池用量控制方法应用于终端中,如图3所示,在预设功能为自动回复来电消息时,还包括以下步骤S105。FIG. 3 is a flow chart of a battery usage control method according to an exemplary embodiment. In one possible implementation, the battery usage control method is applied to a terminal. As shown in Figure 3, when the preset function is to automatically reply to incoming call messages, the following step S105 is also included.
在步骤S105中,预设功能为自动回复来电消息,在终端的关机期间如有来电,则发送关机信息和/或终端的待开机时间相关的信息。In step S105, the preset function is to automatically reply to incoming call messages. If there is an incoming call during the shutdown period of the terminal, shutdown information and/or information related to the terminal's standby time will be sent.
本公开实施例中,关机信息可以为:您所拨打的户用已关机,请稍后再拨;您所拨打的户用已关机,请留言等等。终端的待开机时间相关的信息可以为告知可能的开机时间,例如:30分钟后可以恢复通讯,再联系您;45分钟后可以恢复通讯,再联系您;1小时后可以恢复通讯,再联系您等等。In this disclosed embodiment, the shutdown information may be: the user you dialed has shut down, please dial again later; the user you dialed has shut down, please leave a message, etc. Information related to the terminal's power-on time can be used to inform the possible power-on time, for example: communication can be restored after 30 minutes, and we will contact you again; communication can be restored after 45 minutes, and we will contact you again; communications can be restored after 1 hour, and we will contact you again. etc.
在当检测到电话到来时,提示用户已经关机,随后将关机信息,例如:您所拨打的户用已关机,请稍后再拨;您所拨打的户用已关机,请留言等等,给到来电话的用户终端。When a call is detected, the user will be prompted to have turned off their phone, and then a shutdown message will be sent, for example: the user you are calling has been turned off, please call again later; the user you are calling has been turned off, please leave a message, etc., to User terminal for incoming calls.
在当检测到电话到来时,提示用户已经关机,随后将终端的待开机时间相关的信息,例如:30分钟后可以恢复通讯,再联系您;45分钟后可以恢复通讯,再联系您;1小时后可以恢复通讯,再联系您等等,给到来电话的用户终端。When a call is detected, the user is prompted to have turned off the phone, and then the information related to the terminal's power-on time is provided, for example: communication can be restored after 30 minutes, and we will contact you again; communications can be restored after 45 minutes, and we will contact you again; 1 hour After that, communication can be resumed, and you will be contacted again, etc., to the user terminal of the incoming call.
通过采用上述方案,在低电量终端关机前,便于根据用户的需求,开启自动回复来电消息预设功能,在低电量终端关机的情况下,对到来的电话进行自动回复,避免外界与用户失去联系,满足用户使用需求。By adopting the above solution, before the low-power terminal is shut down, it is convenient to turn on the preset function of automatically replying to incoming calls according to the user's needs. When the low-power terminal is shut down, it can automatically reply to incoming calls to avoid losing contact with the outside world. , to meet user needs.
图4是根据一示例性实施例示出的一种电池用量控制方法的流程图。在一种可能的实现方式中,电池用量控制方法应用于终端中,如图4所示,当检测到与所述终端连接的周边设备时,电池用量控制方法还包括以下步骤S106。FIG. 4 is a flow chart of a battery usage control method according to an exemplary embodiment. In a possible implementation, the battery usage control method is applied to a terminal. As shown in Figure 4, when a peripheral device connected to the terminal is detected, the battery usage control method further includes the following step S106.
在步骤S106中,当检测到与所述终端连接的周边设备时,通过所述周边设备发送所述关机信息和/或所述终端的待开机时间相关的信息。In step S106, when a peripheral device connected to the terminal is detected, the shutdown information and/or information related to the standby time of the terminal is sent through the peripheral device.
本公开实施例中,周边设备可以是人工智能物联网AIOT(AI IoT,AIOT)设备。人工智能物联网AIOT设备包括可穿戴设备、传感器、电器和医疗监视器等。其中,可穿戴设备可以为手环、手表等设备。终端与周边设备的连接方式包括无线连接。无线连接可以包括蓝牙连接、红外连接等。其中,低功耗的蓝牙连接可以基于蓝牙协议进行数据交互。在通过蓝牙连接时,完成终端与手环、手表等人工智能物联网AIOT设备之间对应消息的传输。能够让用户从连接设备知道当前的状况,通过周边设备发送关机信息和/或终端的待开机时间相关的信息。In the embodiment of the present disclosure, the peripheral device may be an artificial intelligence Internet of Things AIOT (AI IoT, AIOT) device. Artificial Intelligence IoT AIOT devices include wearable devices, sensors, appliances, and medical monitors. Among them, wearable devices can be bracelets, watches and other devices. The connection method between the terminal and peripheral devices includes wireless connection. Wireless connections may include Bluetooth connections, infrared connections, etc. Among them, low-power Bluetooth connection can perform data exchange based on Bluetooth protocol. When connected through Bluetooth, the corresponding message transmission between the terminal and artificial intelligence Internet of Things (AIOT) devices such as bracelets and watches is completed. It allows the user to know the current status from the connected device and send shutdown information and/or information related to the terminal's standby time through the peripheral device.
通过采用上述方案,通过周边设备发送关机信息和/或终端的待开机时间相关的信息,为用户带来更好的体验。By adopting the above solution, shutdown information and/or information related to the terminal's standby time are sent through peripheral devices, thereby providing users with a better experience.
图5是根据一示例性实施例示出的一种电池用量控制方法的流程图。在一种可能的实现方式中,电池用量控制方法应用于终端中,如图5所示,所述预设功能为近场通信功能时,电池用量控制方法还包括以下步骤S107。FIG. 5 is a flow chart of a battery usage control method according to an exemplary embodiment. In one possible implementation, the battery usage control method is applied to a terminal. As shown in Figure 5, when the preset function is a near field communication function, the battery usage control method further includes the following step S107.
在步骤S107中,预设功能为近场通信功能,当终端设置有多个近场通信卡片时,在预设时间内依次启动近场通信卡片,当读取到匹配的近场通信卡片时,终止近场通信功能。In step S107, the preset function is the near field communication function. When the terminal is equipped with multiple near field communication cards, the near field communication cards are activated sequentially within the preset time. When the matching near field communication card is read, Terminate the near field communication function.
本公开实施例中,预设时间可以为5秒、10秒、15秒等等,本实施例在此不做限制。当开启了近场通信功能这一预设功能,在检测到近场通信NFC设备的时候,直接将终端靠近进行近场通信NFC读取即可。当终端设置有多个近场通信卡片时,在预设时间内依次启动近场通信卡片,当读取到匹配的近场通信卡片时,终止近场通信功能。In this disclosed embodiment, the preset time may be 5 seconds, 10 seconds, 15 seconds, etc., which is not limited in this embodiment. When the preset function of near field communication is turned on, when a near field communication NFC device is detected, just bring the terminal close to the near field communication NFC reading. When the terminal is equipped with multiple near field communication cards, the near field communication cards are started sequentially within a preset time. When a matching near field communication card is read, the near field communication function is terminated.
通过采用上述方案,保证手机等终端正常使用近场通信卡片,避免了因近场通信卡片无法使用而耽误用户的行程安排,减轻用户的焦虑。By adopting the above solution, it is ensured that mobile phones and other terminals can use NFC cards normally, avoiding delays in users' schedules due to the inability of NFC cards to be used, and alleviating users' anxiety.
图6是根据一示例性实施例示出的启动终端的预设功能的流程图。如图6所示,启动终端的预设功能,包括以下步骤S1041-步骤S1042。FIG. 6 is a flowchart illustrating activating a preset function of a terminal according to an exemplary embodiment. As shown in Figure 6, activating the default function of the terminal includes the following steps S1041 to S1042.
在步骤S1041中,显示预设功能中的每一个功能所需的电量。In step S1041, the power required for each of the preset functions is displayed.
在步骤S1042中,根据所需的电量,以及第二电池的电量,确定所启动的预设功能中的一种或多种功能。In step S1042, one or more of the preset functions to be activated are determined based on the required power and the power of the second battery.
本公开实施例中,在第二电池的电量等于第二阈值电量(即低电量终端关机时的电量)且小于第一阈值电量(即终端关机状态下实现预设功能使用的电量)的情况下,终端发起弹窗。向用户发起是否开启预设功能的请求,弹窗中显示该功能所需的电量。根据所需的电量,以及第一电池的电量,确定启动预设功能中的一种或多种。In the embodiment of the present disclosure, when the power of the second battery is equal to the second threshold power (i.e., the power when the low-power terminal is turned off) and less than the first threshold power (i.e., the power used to implement the preset function when the terminal is turned off) , the terminal initiates a pop-up window. Initiate a request to the user whether to enable the preset function, and the power required for the function will be displayed in the pop-up window. According to the required power and the power of the first battery, it is determined to activate one or more preset functions.
一种情况可以理解为,当显示需要开启的预设功能所需的电量小于第一电池的电量时,确定启动预设功能。One situation can be understood as: when the power required to display the preset function that needs to be turned on is less than the power of the first battery, it is determined to activate the preset function.
另一种情况可以理解为,当显示需要开启的预设功能所需的电量等于第一电池的电量时,确定启动预设功能。Another situation can be understood as, when the power required to display the preset function that needs to be turned on is equal to the power of the first battery, it is determined to start the preset function.
又一种情况可以理解为,当显示需要开启的预设功能所需的电量大于第一电池的电量时,选择关闭预设功能。Another situation can be understood as, when the power required to display the preset function that needs to be turned on is greater than the power of the first battery, the preset function is selected to be turned off.
应理解,第一电池的个数可以为一、二、三、四、五等,本实施例对此不做限制。It should be understood that the number of first batteries may be one, two, three, four, five, etc., which is not limited in this embodiment.
通过采用上述方案,在低电量终端关机前,根据所需电量以及第一电池电量,合理启用预设功能,满足用户的使用需求,同时带来更好的用户体验,减轻用户的焦虑。By adopting the above solution, before the low-power terminal is shut down, the preset functions are reasonably enabled according to the required power and the first battery power to meet the user's needs, while bringing a better user experience and alleviating the user's anxiety.
需要说明的是,本领域内技术人员可以理解,本公开实施例上述涉及的各种实施方式/实施例中可以配合前述的实施例使用,也可以是独立使用。无论是单独使用还是配合前述的实施例一起使用,其实现原理类似。本公开实施中,部分实施例中是以一起使用的实施方式进行说明的。当然,本领域内技术人员可以理解,这样的举例说明并非对本公开实施例的限定。It should be noted that those skilled in the art can understand that the various implementations/embodiments mentioned above in the embodiments of the present disclosure can be used in conjunction with the foregoing embodiments or can be used independently. Whether used alone or in conjunction with the foregoing embodiments, the implementation principles are similar. In the implementation of the present disclosure, some embodiments are described in terms of implementations used together. Of course, those skilled in the art can understand that such illustrations do not limit the embodiments of the present disclosure.
基于相同的构思,本公开实施例还提供一种电池用量控制装置。Based on the same concept, an embodiment of the present disclosure also provides a battery usage control device.
可以理解的是,本公开实施例提供的电池用量控制装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能, 但是这种实现不应认为超出本公开实施例的技术方案的范围。It can be understood that, in order to implement the above functions, the battery usage control device provided by the embodiments of the present disclosure includes hardware structures and/or software modules corresponding to each function. Combined with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of the technical solutions of the embodiments of the present disclosure.
图7是根据一示例性实施例示出的一种电池用量控制装置框图。参照图7,该装置700包括检测单元701、判断单元702、切换单元703和启动单元704。FIG. 7 is a block diagram of a battery usage control device according to an exemplary embodiment. Referring to FIG. 7 , the device 700 includes a detection unit 701 , a judgment unit 702 , a switching unit 703 and a starting unit 704 .
该检测单元701被配置为检测终端的第一电池和第二电池的电量。The detection unit 701 is configured to detect the power of the first battery and the second battery of the terminal.
该判断单元702被配置为当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于第一电量阈值;如果是,则控制第二电池和第一电路导通。The judgment unit 702 is configured to determine whether the remaining power of the second battery is higher than the first power threshold after detecting that the remaining power of the first battery is lower than the first power threshold; if so, control the second battery and the first power threshold. The circuit is conducting.
该切换单元703被配置为当检测到第二电池的电量耗尽后,控制第一电池和第二电路导通,并控制终端关机。The switching unit 703 is configured to control the first battery and the second circuit to be turned on and control the terminal to shut down after detecting that the power of the second battery is exhausted.
该启动单元704被配置为利用第一电池为第二电路供电,以便在终端关机状态下实现预设功能。The starting unit 704 is configured to use the first battery to power the second circuit so as to implement the preset function when the terminal is powered off.
在一种可能的实现方式中,该检测单元701还被配置为在第一电路供电模式下,检测终端的第二电池的电量是否小于等于第二阈值电量,其中,第二阈值电量小于第一阈值电量。In a possible implementation, the detection unit 701 is further configured to detect whether the power of the second battery of the terminal is less than or equal to a second threshold power in the first circuit power supply mode, where the second threshold power is less than the first power. Threshold power.
在一种可能的实现方式中,该切换单元703还被配置为在检测到终端的第二电池的电量小于等于第二阈值电量的情况下,控制第一电池和第二电路导通。In a possible implementation, the switching unit 703 is further configured to control the first battery and the second circuit to be turned on when it is detected that the power of the second battery of the terminal is less than or equal to the second threshold power.
在一种可能的实现方式中,该启动单元704还被配置为在确定终端的第二电池的电量大于等于第二阈值电量且小于第一阈值电量的情况下,维持第二电路供电,供用户选择是否开启预设功能。In a possible implementation, the startup unit 704 is further configured to maintain power supply to the second circuit for the user when it is determined that the power of the second battery of the terminal is greater than or equal to the second threshold power and less than the first threshold power. Choose whether to enable the default function.
本公开实施例中,检测单元701检测终端的第一电池和第二电池的剩余电量。在检测到终端的第一电池的剩余电量低于第一电量阈值后,通过判断单元702判断第二电池的剩余电量是否高于第一电量阈值,如果是,则控制第二电池和第一电路导通;通过切换单元703当检测到第二电池的电量耗尽后,控制第一电池和第二电路导通,并控制终端关机。在第一电池供电模式下,启动单元704利用第一电池为第二电路供电,以便在终端关机状态下实现预设功能。通过使用双电芯,检测单元701检测终端的第一电池和第二电池的剩余电量,当第二电池的电量耗尽,终端关机时,启动第一电池进行供电,能够在低电量终端关机的情况下,合理启用电池电量。通过启动单元704在第一电池为第二电路供电的模式下,启动终端的预设功能,合理控制电池电量,能够在低电量终端关机的情况下,仍为用户提供如闹钟,来电回复,NFC功能,满足用户的使用需求,同时带来更好的用户体验,减轻用户的焦虑。In the embodiment of the present disclosure, the detection unit 701 detects the remaining power of the first battery and the second battery of the terminal. After detecting that the remaining power of the first battery of the terminal is lower than the first power threshold, the judgment unit 702 determines whether the remaining power of the second battery is higher than the first power threshold. If so, the second battery and the first circuit are controlled. Turn on; when the switching unit 703 detects that the second battery is exhausted, it controls the first battery and the second circuit to turn on, and controls the terminal to shut down. In the first battery power supply mode, the starting unit 704 uses the first battery to power the second circuit so as to implement the preset function when the terminal is powered off. By using dual batteries, the detection unit 701 detects the remaining power of the first battery and the second battery of the terminal. When the power of the second battery is exhausted and the terminal is shut down, the first battery is activated to provide power, which can be used when the terminal is shut down with low power. In this case, enable battery power reasonably. Through the starting unit 704, in the mode where the first battery supplies power to the second circuit, the preset functions of the terminal are started and the battery power is reasonably controlled. When the low-power terminal is turned off, it can still provide the user with functions such as alarm clock, call reply, and NFC. functions to meet users’ needs, while bringing a better user experience and alleviating users’ anxiety.
在一种可能的实现方式中,图8是根据一示例性实施例示出的一种电池用量控制装置框图。参照图8,该装置700还包括信息设定单元705。In a possible implementation, FIG. 8 is a block diagram of a battery usage control device according to an exemplary embodiment. Referring to FIG. 8 , the device 700 further includes an information setting unit 705 .
该信息设定单元705被配置为在确定终端的第二电池的电量大于等于第二阈值电量且小于第一阈值电量的情况下,设定与预设功能相关的信息。The information setting unit 705 is configured to set information related to the preset function when it is determined that the power of the second battery of the terminal is greater than or equal to the second threshold power and less than the first threshold power.
本公开实施例中与预设功能相关的信息可以为:预设功能为自动回复来电消息,包括关机信息和/或终端的待开机时间相关的信息。In the embodiment of the present disclosure, the information related to the preset function may be: the preset function is to automatically reply to incoming call messages, including shutdown information and/or information related to the terminal's standby time.
在当检测到电话到来时,提示用户已经关机,随后将关机信息和/或终端的待开机时间相关的信息,给到来电话的用户终端。在低电量终端关机前,便于根据用户的需求,开启自动回复来电消息预设功能,在低电量终端关机的情况下,对到来的电话进行自动回复,避免外界与用户失去联系,满足用户使用需求。When an incoming call is detected, the user is prompted to have shut down the phone, and then the shutdown information and/or information related to the terminal's standby time are given to the user terminal that received the call. Before the low-power terminal is shut down, it is convenient to turn on the preset function of automatically replying to incoming calls according to the user's needs. When the low-power terminal is shut down, it can automatically reply to incoming calls to avoid losing contact with the outside world and meet the user's needs. .
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图9是根据一示例性实施例示出的一种用于电池用量控制装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 9 is a block diagram of a battery usage control device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
参照图9,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)接口812,传感器组件814,以及通信组件816。Referring to Figure 9, apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and Communication component 816.
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。 Processing component 802 generally controls the overall operations of device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operations at device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。 Power component 806 provides power to various components of device 800. Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 800 .
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板, 屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor component 814 includes one or more sensors that provide various aspects of status assessment for device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in position of the device 800 or a component of the device 800. , the presence or absence of user contact with the device 800 , device 800 orientation or acceleration/deceleration and temperature changes of the device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between apparatus 800 and other devices. Device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包 括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, which are executable by the processor 820 of the device 800 to complete the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
进一步可以理解的是,本公开中“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。It can be further understood that “plurality” in this disclosure refers to two or more, and other quantifiers are similar. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship. The singular forms "a", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
进一步可以理解的是,术语“第一”、“第二”等用于描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,并不表示特定的顺序或者重要程度。实际上,“第一”、“第二”等表述完全可以互换使用。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other and do not imply a specific order or importance. In fact, expressions such as "first" and "second" can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information may also be called second information, and similarly, the second information may also be called first information.
进一步可以理解的是,本公开实施例中尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。It will be further understood that although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, this should not be understood as requiring that these operations be performed in the specific order shown or in a serial order, or that it is required that Perform all operations shown to obtain the desired results. In certain circumstances, multitasking and parallel processing may be advantageous.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. .
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利范围来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended rights.

Claims (12)

  1. 一种电池用量控制方法,其特征在于,应用于终端,所述终端包括两个电池,所述方法包括:A battery usage control method, characterized in that it is applied to a terminal, the terminal includes two batteries, and the method includes:
    对所述两个电池的剩余电量进行检测,当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于所述第一电量阈值;Detect the remaining power of the two batteries, and when it is detected that the remaining power of the first battery is lower than the first power threshold, determine whether the remaining power of the second battery is higher than the first power threshold;
    如果是,则控制所述第二电池和第一电路导通;其中,所述第一电路为所述终端开机状态使用的电路;If yes, control the second battery and the first circuit to be conductive; wherein the first circuit is the circuit used in the powered-on state of the terminal;
    当检测到所述第二电池的电量耗尽后,控制所述第一电池和第二电路导通,并控制所述终端关机;其中,所述第二电路为所述终端关机状态使用的电路;When it is detected that the power of the second battery is exhausted, the first battery and the second circuit are controlled to be turned on, and the terminal is controlled to shut down; wherein the second circuit is a circuit used in the shutdown state of the terminal. ;
    利用所述第一电池为所述第二电路供电,以便在所述终端关机状态下实现预设功能。The first battery is used to power the second circuit so as to realize the preset function when the terminal is powered off.
  2. 根据权利要求1所述的电池用量控制方法,其特征在于,The battery usage control method according to claim 1, characterized in that:
    所述预设功能包括:记录来电通话、自动回复来电消息、近场通信功能、闹钟中的至少一种。The preset functions include: at least one of recording incoming calls, automatically replying to incoming call messages, near field communication function, and alarm clock.
  3. 根据权利要求1所述的电池用量控制方法,其特征在于,所述当检测到所述第二电池的电量耗尽后,控制所述第一电池和第二电路导通,并控制所述终端关机,包括:The battery usage control method according to claim 1, wherein after detecting that the second battery is exhausted, the first battery and the second circuit are controlled to be conductive, and the terminal is controlled to Shutdown, including:
    在所述第一电路供电模式下,检测所述终端的所述第二电池的电量是否小于等于第二电量阈值,其中,所述第二电量阈值小于所述第一电量阈值;In the first circuit power supply mode, detect whether the power of the second battery of the terminal is less than or equal to a second power threshold, wherein the second power threshold is less than the first power threshold;
    在检测到所述终端的所述第二电池的电量小于等于第二电量阈值的情况下,控制所述第一电池和第二电路导通;When it is detected that the power of the second battery of the terminal is less than or equal to the second power threshold, control the first battery and the second circuit to be turned on;
    在确定所述终端的所述第二电池的电量大于等于所述第二电量阈值且小于所述第一电量阈值的情况下,维持所述第二电路进行供电,供用户选择是否开启所述预设功能。When it is determined that the power of the second battery of the terminal is greater than or equal to the second power threshold and less than the first power threshold, the second circuit is maintained to provide power for the user to choose whether to turn on the preset power threshold. set function.
  4. 根据权利要求2所述的电池用量控制方法,其特征在于,The battery usage control method according to claim 2, characterized in that:
    所述预设功能为自动回复来电消息,在所述终端的关机期间如有来电,则发送关机信息和所述终端的待开机时间相关的信息中的任意一种。The preset function is to automatically reply to incoming call messages. If there is an incoming call during the shutdown period of the terminal, any one of shutdown information and information related to the terminal's standby time will be sent.
  5. 根据权利要求4所述的电池用量控制方法,其特征在于,所述方法,还包括:The battery usage control method according to claim 4, characterized in that the method further includes:
    当检测到与所述终端连接的周边设备时,通过所述周边设备发送所述关机信息或者所述终端的待开机时间相关的信息中的任意一种。When a peripheral device connected to the terminal is detected, any one of the shutdown information or information related to the standby time of the terminal is sent through the peripheral device.
  6. 根据权利要求2所述的电池用量控制方法,其特征在于,The battery usage control method according to claim 2, characterized in that:
    所述预设功能为近场通信功能,当所述终端设置有多个近场通信卡片时,在预设时间内依次启动近场通信卡片,当读取到匹配的近场通信卡片时,终止所述近场通信功能。The preset function is a near field communication function. When the terminal is equipped with multiple near field communication cards, the near field communication cards are started sequentially within the preset time. When a matching near field communication card is read, the near field communication card is terminated. The near field communication function.
  7. 根据权利要求1所述的电池用量控制方法,其特征在于,所述利用所述第一电池为所述第二电路供电,以便在所述终端关机状态下实现预设功能,包括:The battery usage control method according to claim 1, wherein said using the first battery to power the second circuit so as to realize a preset function when the terminal is powered off includes:
    显示所述预设功能中的每一个功能所需的电量;Display the power required for each of the preset functions;
    根据所需的电量,以及所述第一电池的电量,确定所启动的所述预设功能中的一种或多种功能。One or more of the preset functions to be activated are determined according to the required power and the power of the first battery.
  8. 一种电池用量控制装置,其特征在于,应用于终端,所述的装置包括:A battery usage control device, characterized in that it is applied to a terminal, and the device includes:
    检测单元,所述检测单元用于检测所述终端的第一电池和第二电池的电量;a detection unit, the detection unit is used to detect the power of the first battery and the second battery of the terminal;
    判断单元,所述判断单元用于当检测到第一电池的剩余电量低于第一电量阈值后,判断第二电池的剩余电量是否高于所述第一电量阈值;如果是,则控制所述第二电池和第一电路导通;a judgment unit, which is used to determine whether the remaining power of the second battery is higher than the first power threshold after detecting that the remaining power of the first battery is lower than the first power threshold; if so, control the The second battery is connected to the first circuit;
    切换单元,所述切换单元用于当检测到所述第二电池的电量耗尽后,控制所述第一电池和第二电路导通,并控制所述终端关机;以及A switching unit, the switching unit is configured to control the conduction of the first battery and the second circuit after detecting that the second battery is exhausted, and control the terminal to shut down; and
    启动单元,所述启动单元用于利用所述第一电池为所述第二电路供电,以便在所述终端关机状态下实现预设功能。A starting unit, the starting unit is used to use the first battery to power the second circuit so as to realize the preset function when the terminal is powered off.
  9. 根据权利要求8所述的电池用量控制装置,其特征在于,The battery usage control device according to claim 8, characterized in that:
    所述检测单元还用于在所述第一电路供电模式下,检测所述终端的所述第二电池的电量是否小于等于第二电量阈值,其中,所述第二电量阈值小于所述第一电量阈值;The detection unit is also configured to detect whether the power of the second battery of the terminal is less than or equal to a second power threshold in the first circuit power supply mode, wherein the second power threshold is less than the first power threshold. power threshold;
    所述切换单元还用于在检测到所述终端的所述第二电池的电量小于等于第二电量阈值的情况下,控制所述第一电池和第二电路导通;The switching unit is also configured to control the conduction of the first battery and the second circuit when it is detected that the power of the second battery of the terminal is less than or equal to the second power threshold;
    所述启动单元用于在确定所述终端的所述第二电池的电量大于等于所述第二电量阈值且小于所述第一电量阈值的情况下,维持所述第二电路供电,供用户选择是否开启所述预设功能。The starting unit is configured to maintain power supply of the second circuit for user selection when it is determined that the power of the second battery of the terminal is greater than or equal to the second power threshold and less than the first power threshold. Whether to enable the default function.
  10. 根据权利要求8所述的电池用量控制装置,其特征在于,所述的装置还包括:The battery usage control device according to claim 8, characterized in that the device further includes:
    信息设定单元,所述信息设定单元用于在确定所述终端的所述第二电池的电量大于等于所述第二电量阈值且小于所述第一电量阈值的情况下,设定与所述预设功能相关的信息。An information setting unit, the information setting unit is configured to set the power of the second battery of the terminal when it is determined that the power of the second battery is greater than or equal to the second power threshold and less than the first power threshold. Describes information related to preset functions.
  11. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;
    其中,所述处理器被配置为执行权利要求1至7中任意一项所述的方法。Wherein, the processor is configured to perform the method according to any one of claims 1 to 7.
  12. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理 器执行时,使得移动终端能够执行根据权利要求1至7中任意一项所述的方法。A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform the method according to any one of claims 1 to 7.
PCT/CN2022/096627 2022-06-01 2022-06-01 Battery usage control method and apparatus, electronic device, and storage medium WO2023230958A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/096627 WO2023230958A1 (en) 2022-06-01 2022-06-01 Battery usage control method and apparatus, electronic device, and storage medium
CN202280004443.0A CN117501207A (en) 2022-06-01 2022-06-01 Battery usage control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/096627 WO2023230958A1 (en) 2022-06-01 2022-06-01 Battery usage control method and apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2023230958A1 true WO2023230958A1 (en) 2023-12-07

Family

ID=89026740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096627 WO2023230958A1 (en) 2022-06-01 2022-06-01 Battery usage control method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN117501207A (en)
WO (1) WO2023230958A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502370A (en) * 2016-10-28 2017-03-15 北京小米移动软件有限公司 The method of control intelligent terminal and intelligent terminal
US20170099638A1 (en) * 2015-10-01 2017-04-06 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN108390994A (en) * 2018-01-22 2018-08-10 努比亚技术有限公司 alarm clock control method, mobile terminal and computer readable storage medium
CN110308780A (en) * 2019-07-18 2019-10-08 Oppo(重庆)智能科技有限公司 Battery management method, system, terminal device and storage medium
CN111277040A (en) * 2020-02-04 2020-06-12 Oppo广东移动通信有限公司 Electronic equipment and power supply method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170099638A1 (en) * 2015-10-01 2017-04-06 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN106502370A (en) * 2016-10-28 2017-03-15 北京小米移动软件有限公司 The method of control intelligent terminal and intelligent terminal
CN108390994A (en) * 2018-01-22 2018-08-10 努比亚技术有限公司 alarm clock control method, mobile terminal and computer readable storage medium
CN110308780A (en) * 2019-07-18 2019-10-08 Oppo(重庆)智能科技有限公司 Battery management method, system, terminal device and storage medium
CN111277040A (en) * 2020-02-04 2020-06-12 Oppo广东移动通信有限公司 Electronic equipment and power supply method

Also Published As

Publication number Publication date
CN117501207A (en) 2024-02-02

Similar Documents

Publication Publication Date Title
WO2020077575A1 (en) Bandwidth part switching method and apparatus
KR101837333B1 (en) Method and apparatus for awakening electronic device
US10031575B2 (en) Method and device for waking up MCU chip
RU2636137C2 (en) Method and device for installing working condition of intelligent home device
RU2631241C2 (en) Electronic equipment, method and device for activating this electronic equipment
WO2017012267A1 (en) Charging method and device
WO2017028425A1 (en) Energy-saving mode activation method and device
EP3130967B1 (en) Method for managing an alarm clock and system associated
CN106375604A (en) Terminal electric quantity controlling method and device
EP3112979B1 (en) Method and device for waking up mcu
WO2018213984A1 (en) Off-screen display method and apparatus
US11194297B2 (en) Method and apparatus for controlling alarm clock
CN107783790B (en) Terminal awakening method and device
EP3361369B1 (en) Method and device for displaying time on mobile device
CN106357721B (en) Timing method and device
CN105807894B (en) Using the treating method and apparatus for holding lock
WO2017028450A1 (en) Shutdown prompt method and device
CN108073328B (en) Touch response method and device
JP2016527577A (en) User command execution method, execution device, program, and storage medium
CN103927200A (en) Electronic equipment awakening method and related device
CN109862169B (en) Electronic equipment control method, device and storage medium
CN106231137A (en) Processing method and processing device based on electricity
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
CN109325337A (en) Unlocking method and device
CN108874450A (en) Wake up the method and device of voice assistant

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280004443.0

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22944289

Country of ref document: EP

Kind code of ref document: A1