Charging Control Method and Related Devices
By detecting the charging operation in a smart watch or bracelet and calling the charging control unit according to the system status, the problem of not being able to charge when there is only one charging unit is solved, and normal charging and power consumption savings are achieved under different systems.
Patent Information
- Application Number
- CN202010027365.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-10
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-01-25
AI Technical Summary
A smart watch or bracelet can only have one system equipped with a charging unit under different systems, which makes it impossible to achieve normal charging function.
In electronic devices, by detecting the charging operation, the charging control unit is called according to the current system operation status to realize charging processing to ensure that charging can be performed regardless of how the system is configured.
It realizes that smart watches or bracelets can be charged normally under different systems with only one charging control unit, improving charging efficiency and saving power consumption.
Smart Images

Figure CN113131549B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technologies, and in particular, to a charging control method and related devices. Background Art
[0002] There are two systems on a smart watch (fitness band), and generally there are two working modes corresponding to them. The working modes are a normal mode and a power-saving mode respectively. Among them, when the smart watch (fitness band) is in the normal mode, the power consumption is high and the battery life is short. When the smart watch (fitness band) is in the power-saving mode, the power consumption is low and the battery life is long. However, generally only one of the systems is equipped with a charging unit. When the smart watch (fitness band) is in the other system, the normal charging function cannot be realized. Summary of the Invention
[0003] Embodiments of this application provide a charging control method and related devices, which can realize the charging function of an electronic device when only one system of the electronic device has a charging control unit under two systems.
[0004] In a first aspect, an embodiment of this application provides a charging control method, which is applied to an electronic device. The electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. The method includes:
[0005] If a charging operation is detected, then call the charging control unit according to the current system operating state of the electronic device;
[0006] Based on the charging control unit, perform a charging process on the electronic device.
[0007] In a second aspect, an embodiment of this application provides a charging control device, which is applied to an electronic device. The electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. The device includes: a calling unit and a processing unit, where
[0008] The calling unit is configured to, if a charging operation is detected, then call the charging control unit according to the current system operating state of the electronic device;
[0009] The processing unit is configured to perform a charging process on the electronic device based on the charging control unit.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, a charging control unit, a communication interface, and one or more programs. The one or more programs are stored in the memory and are configured to be executed by the processor. The programs include instructions for performing some or all of the steps described in the method according to the first aspect of the embodiment of the present application.
[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is executed by a processor to implement some or all of the steps described in the method according to the first aspect of the embodiment of the present application.
[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the method according to the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0013] It can be seen that in the embodiment of the present application, the electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. If the electronic device detects a charging operation, the charging control unit is called according to the current system operating state of the electronic device. Finally, based on the charging control unit, charging processing is performed on the electronic device. In this way, when there is only one charging control unit in the electronic device, and regardless of whether the electronic device is in the first system and / or the second system, the charging control unit can be called to implement the charging function of the electronic device.
[0014] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0016] Figure 1A is a schematic structural diagram of the hardware of an electronic device provided by an embodiment of the present application;
[0017] Figure 1BIt is a schematic structural diagram of a charging control system provided by an embodiment of the present application;
[0018] Figure 1C It is a schematic structural diagram of a charging control system provided by an embodiment of the present application;
[0019] Figure 1D It is a schematic flowchart of a charging control method provided by an embodiment of the present application;
[0020] Figure 2 It is a schematic flowchart of a charging control method provided by an embodiment of the present application;
[0021] Figure 3 It is a schematic flowchart of a charging control method provided by an embodiment of the present application;
[0022] Figure 4 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0023] Figure 5A It is a schematic structural diagram of a charging control device provided by an embodiment of the present application;
[0024] Figure 5B It is a schematic structural diagram of a charging control device provided by an embodiment of the present application. Detailed implementation manners
[0025] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0026] The following will be described in detail respectively.
[0027] The terms "first", "second", "third", "fourth", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products or devices.
[0028] References to "embodiments" in this specification mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0029] The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions (such as smart phones, tablets, etc.), vehicle-mounted devices, wearable devices (such as smart watches, smart bracelets, wireless earphones, augmented reality / virtual reality devices, smart glasses), computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile station (MS), terminal device, or sensors, etc., which are not limited herein.
[0030] Hereinafter, some terms in the present application will be explained to facilitate the understanding of those skilled in the art.
[0031] Please refer to Figure 1A , Figure 1A which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110. The sensor 170 includes a camera, where:
[0032] The electronic device 100 may include a control circuit, and the control circuit may include the storage and processing circuit 110. The storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronically programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static or dynamic random access memory, etc.), etc., which are not limited in the embodiments of the present application. The processing circuit in the storage and processing circuit 110 may be used to control the operation of the electronic device 100. The processing circuit may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application-specific integrated circuits, display driver integrated circuits, etc.
[0033] The storage and processing circuitry 110 can be used to run software in the electronic device 100, such as an Internet browsing application, a Voice over Internet Protocol (VOIP) phone call application, an email application, a media playback application, operating system functions, etc. This software can be used to perform some control operations, for example, camera-based image acquisition, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functions implemented based on status indicators such as status indicator lights like light-emitting diodes, touch event detection based on a touch sensor, functions associated with displaying information on multiple (e.g., hierarchical) display screens, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, which are not limited in the embodiments of this application.
[0034] The electronic device 100 may include an input-output circuitry 150. The input-output circuitry 150 can be used to enable the electronic device 100 to implement data input and output, that is, to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to an external device. The input-output circuitry 150 may further include a sensor 170. The sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, a fingerprint recognition module, a touch sensor (e.g., a light-based touch sensor and / or a capacitive touch sensor, where the touch sensor may be a part of a touch display screen or may be used independently as a touch sensor structure), an acceleration sensor, a camera, and other sensors, etc. The camera may be a front camera or a rear camera.
[0035] The input-output circuitry 150 may further include one or more display screens, such as the display screen 130. The display screen 130 may include a liquid crystal display screen, an organic light-emitting diode display screen, an electronic ink display screen, a plasma display screen, a combination of one or more of display screens using other display technologies. The display screen 130 may include a touch sensor array (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (e.g., indium tin oxide (ITO) electrodes), or may be a touch sensor formed using other touch technologies, such as acoustic touch, pressure-sensitive touch, resistive touch, optical touch, etc., which are not limited in the embodiments of this application.
[0036] The electronic device 100 may further include an audio component 140. The audio component 140 can be used to provide audio input and output functions for the electronic device 100. The audio component 140 in the electronic device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sounds.
[0037] The communication circuit 120 can be used to provide the electronic device 100 with the ability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals. The wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low-noise amplifier, switches, filters, and antennas. For example, the wireless communication circuit in the communication circuit 120 may include a circuit for supporting Near Field Communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals. For example, the communication circuit 120 may include a near-field communication antenna and a near-field communication transceiver. The communication circuit 120 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, etc.
[0038] The electronic device 100 may include two systems, namely a first system and a second system, as Figure 1B shown, which is a schematic structural diagram of a charging control system provided by an embodiment of the present application. As shown in the figure, the charging control system includes: a first system, a second system, a display module, a battery, and a charging control unit. The first system and the second system share the same display module. Among them, the first system may include a charging control unit, and only the first system can control the charging control unit. The charging control unit may be integrated in the charging management chip corresponding to the first system, and the charging control unit can control the battery to perform a charging process.
[0039] Optionally, as Figure 1C shown, which is a schematic structural diagram of a charging control system provided by an embodiment of the present application. Among them, the system includes: a first system, a second system, a display module, a battery, and a charging control unit. Neither the first system nor the second system includes a charging control unit. That is to say, the above-mentioned first system, second system, and charging control unit exist independently in the electronic device. However, both the above-mentioned first system and the second system can control the charging control unit, and the charging control unit can control the battery to perform a charging process.
[0040] The electronic device 100 may further include a battery, a power management circuit, and other input-output units 160. The input-output units 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light-emitting diodes, and other status indicators, etc.
[0041] A user can input commands through the input-output circuit 150 to control the operation of the electronic device 100, and can use the output data of the input-output circuit 150 to receive status information and other outputs from the electronic device 100.
[0042] Based on the above Figure 1A The described electronic device can be used to implement the following functions:
[0043] If a charging operation is detected, call the charging control unit according to the current system operating state of the electronic device;
[0044] Based on the charging control unit, perform a charging process on the electronic device.
[0045] As Figure 1D shown, Figure 1D is a schematic flowchart of a charging control method provided by an embodiment of the present application, which is applied to an electronic device as Figure 1A shown. The electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. The method includes:
[0046] 101. If a charging operation is detected, call the charging control unit according to the current system operating state of the electronic device.
[0047] Among them, in the embodiment of the present application, the electronic device may include two systems, namely a first system and a second system, and the electronic device may further include a charging control unit. The charging control unit may be installed in the first system. At this time, only the first system can control the charging control unit. In addition, the above charging control unit may also be installed in the electronic device, and neither the first system nor the second system includes the charging control unit. At this time, both the first system and the second system can control the charging control unit.
[0048] In addition, the above current system may be any one of the above at least two systems. In a specific implementation, when the electronic device detects that the electronic device is connected to a charging power supply or detects a charging operation, the charging control unit in the electronic device may be called according to the current system operating state corresponding to the electronic device. The above system operating state may be understood as running or not running, which is not limited herein.
[0049] For example, an electronic device may include a first system and a second system. The first system may be a high-power consumption system, and the second system may be a low-power consumption system, which is not limited herein. For example, the first system may be an Android system, and the second system may be a Linux system. Linux is a multi-user, multi-tasking operating system based on POSIX and Unix that supports multi-threading and multi-CPUs. Then the current system described above may be either the first system or any one of the second systems.
[0050] In a possible example, step 101 above, calling the charging control unit corresponding to the first system includes:
[0051] 111. Trigger a charging instruction based on the charging operation, and the charging instruction carries charging status parameters;
[0052] 112. Send the charging instruction to the first system;
[0053] 113. Based on the charging instruction, start the first system and call the charging control unit corresponding to the first system.
[0054] Among them, the above charging status parameters may include at least one of the following: charging percentage, remaining battery power, rated voltage, battery temperature, discharge current, etc., which is not limited herein. In a specific implementation, when the electronic device detects the above charging operation, a charging instruction may be triggered. The charging instruction is used to call the charging control unit of the first system. The electronic device may send the above charging instruction to the first system, and the charging instruction may carry charging status parameters. Then the first system can be started and the above charging control unit can be called. Since only the charging control unit of the first system is called, while realizing the charging of the electronic device, it is also beneficial to save the power consumption of the electronic device.
[0055] In a possible example, in step 101 above, when both the first system and the second system can control the charging control unit, according to the current system operating state of the electronic device, calling the charging control unit may include the following steps:
[0056] 121. When only the first system is running, call the charging control unit through the first system; or,
[0057] 122. When only the second system is running, call the charging control unit through the second system; or,
[0058] 123. When the first system and the second system are running simultaneously, call the charging control unit through the first system.
[0059] Among them, as Figure 1CAs shown, when the above-mentioned charging control unit is located in the electronic device, that is, when neither the first system nor the second system includes the charging control unit, both the first system and the second system can control the charging control unit. At this time, the electronic device can correspond to the following multiple situations: when only the first system is running, the electronic device can call the charging control unit through the first system; similarly, when only the second system is running, the charging control unit can be called through the second system; if the first system and the second system corresponding to the electronic device are running simultaneously at this time, if the first system is a low-power system, the above-mentioned charging control unit can be called through the first system, and if the second system is a low-power system, the above-mentioned charging control unit can be called through the second system. In this way, it is beneficial to improve the charging efficiency.
[0060] In a possible example, in step 101 above, when only the first system can control the charging control unit, according to the current system operating state of the electronic device, calling the charging control unit may include the following steps:
[0061] 131. When the second system is running, turn off the second system, run the first system, and call the charging control unit through the first system; or,
[0062] 132. When the second system is running, do not turn off the second system, run the first system in the background, and call the charging control unit through the first system; or,
[0063] 133. When the second system is running, turn off the second system, the first system enters the low-power mode, and call the charging control unit through the first system; or,
[0064] 134. When the second system is running, call the charging control unit through the first system, and the first system and the second system enter the low-power mode; or,
[0065] 135. When the second system is running, run both the first system and the second system simultaneously, and call the charging control unit through the first system; or,
[0066] 136. When the first system is running, directly call the charging control unit through the first system.
[0067] Among them, as Figure 1B shown, the above-mentioned electronic device includes a first system and a second system, and the second system does not include a charging control unit, and the first system includes a charging control unit. At this time, only the first system can control the charging control unit.
[0068] Further, the above-mentioned first system and second system can be different systems, and their power consumption situations may also be different. When the electronic device is working, the above-mentioned first system and second system can operate simultaneously or independently. Since the operating states corresponding to the above-mentioned first system and second system are different, the ways for the electronic device to call the above-mentioned charging control unit through the first system and / or the second system are different.
[0069] In addition, in order to save the power consumption of the electronic device and improve the charging efficiency, in specific implementation, if the current system is the first system and the second system is running, the following situations may occur: 1) The second system can be turned off and the first system can be run, that is, the operating state of the first system is maintained, and the charging control unit is called through the first system; 2) If the second system cannot be turned off at this time, the operating state corresponding to the second system can be maintained, and the first system can be run in the background of the electronic device, and the charging control unit corresponding to the first system can be called at the same time; 3) The second system can be turned off. If the above-mentioned first system can be switched to the low-power mode, the first system can be controlled to enter the low-power mode, and the charging control unit corresponding to the first system can be called at the same time; 4) If both the first system and the second system can be switched to the low-power mode, while calling the charging control unit, the first system and the second system can be controlled to enter the low-power mode; In this way, different charging strategies can be set for different situations, thereby facilitating the saving of the energy loss of the electronic device.
[0070] In addition, if the currently running system is the first system and the second system is not running, its corresponding charging control unit can be directly called. In this way, when the second system does not include a charging control unit and the electronic device cannot implement the charging function, the charging function of the electronic device can be realized by calling the charging control unit in the first system.
[0071] Optionally, after the above step 102, the first system and the second system share a display module, and the following steps may further be included:
[0072] During the charging process, if no preset system switching instruction is received, based on the display module, the original charging display interface before charging is maintained.
[0073] Among them, the above-mentioned preset system switching instruction can be set by the user or be the system default, which is not limited herein. For example, the preset system switching instruction can be an instruction initiated by the user. In addition, the electronic device may include a display module, and the first system and the second system can share this display module. That is to say, the first system and the second system are independent of each other, but both can call the above-mentioned display module. It can also be understood that the same display module can be applied to two different systems. In addition, different charging display interfaces can also be set for different systems in the electronic device. To ensure the smoothness of the system of the electronic device, the charging display interface corresponding to the current system can be maintained, that is, the original charging display interface. For example, if the current system is the second system and the first system includes a charging control unit, then, if the preset system switching instruction is not detected during the charging process of the electronic device, the charging display interface corresponding to the second system can be continued to be maintained based on the above-mentioned display module, and the system and interface used by the user before will still be run after the charging is completed. In this way, while improving the user experience, the above-mentioned charging function can be realized.
[0074] Optionally, in the embodiments of the present application, the above-mentioned first system and second system may meet the following conditions: the first system needs to run simultaneously with the second system, but the second system can run independently, and the power consumption of the first system during normal operation is greater than the power consumption of the second system during normal operation;
[0075] In this case, the charging control unit is located in the first system. The first system has a higher power consumption than the second system. When the second system runs independently, since the second system does not have a charging control unit, it must borrow the charging control unit of the first system for charging. However, the first system has a high power consumption, and running two systems simultaneously for charging has an impact on both the power consumption and the service life of the battery. Therefore, further controlling the first system to enter the low-power mode is beneficial to reducing the power consumption. In addition, when the second system runs independently, to avoid having to switch to the first system due to charging, thus disrupting the original usage state of the user, the display module can be controlled to continue to maintain the display interface corresponding to the second system, or even still be controlled by the second system, thereby enhancing the user experience.
[0076] Or,
[0077] The first system can run independently, but the second system needs to run simultaneously with the first system, and the power consumption of the first system during normal operation is less than the power consumption of the second system during normal operation;
[0078] Different from the previous embodiment, in this embodiment, the charging control unit is arranged on the first system with relatively low power consumption. Since the second system needs to run simultaneously with the first system, the first system is in an operating state whether it is controlled by the first system or the second system. Therefore, the charging function can be guaranteed without system switching.
[0079] Or,
[0080] Both the first system and the second system can operate independently.
[0081] In this case, when the second system runs independently and a charging request is received, system switching is required, or the first system and the second system need to run simultaneously to achieve charging. Of course, in order to control power consumption, a low-power operation mode can also be adopted. In order to avoid switching the display interface that is not required by the user, the original user interface can also be maintained.
[0082] 102. Perform a charging process on the electronic device based on the charging control unit.
[0083] Among them, regardless of whether the current system corresponding to the electronic device is the first system, the charging function of the electronic device can be realized based on the charging control unit corresponding to the first system while maintaining the current operating system or working state.
[0084] In an optional example, step 102 above, performing a charging process on the electronic device based on the charging control unit may include the following steps:
[0085] Control the charging control unit to perform a charging process on the electronic device with the charging status parameter.
[0086] Among them, the above charging status parameter may be the charging status parameter corresponding to the charging control unit of the first system. By controlling the charging control unit corresponding to the first system to perform a charging process on the electronic device with the above charging status parameter, it can be realized that when the current operating system corresponding to the electronic device does not have a charging control unit, the charging function can still be realized.
[0087] Optionally, before step 102 above, before performing a charging process on the electronic device based on the charging control unit, the following steps may further be included:
[0088] A1. Obtain multiple running processes corresponding to the first system and / or the second system;
[0089] A2. Determine the target application information corresponding to each process in the multiple processes to obtain multiple pieces of target application information;
[0090] A3. Determine the first weight corresponding to each of the target application information according to the mapping relationship between the preset application information and the weight, and obtain a plurality of first weights;
[0091] A4. Obtain the historical power consumption curves corresponding to each of the processes in a preset time period, and obtain a plurality of historical power consumption curves;
[0092] A5. Based on the plurality of historical power consumption curves, obtain a plurality of average power consumption rates corresponding to the plurality of processes, and each process corresponds to an average power consumption rate;
[0093] A6. Determine the second weight corresponding to each of the average power consumption rates according to the mapping relationship between the preset average power consumption rate and the weight, and obtain a plurality of second weights;
[0094] A7. Obtain the current battery level of the electronic device;
[0095] A8. If the current battery level is less than or equal to a preset battery level threshold, perform a weighted operation on the plurality of target application information, the plurality of first weights, the plurality of average power consumption rates, and the plurality of second weights to obtain a plurality of score values corresponding to the plurality of processes, and each process corresponds to a score value;
[0096] A9. Close the processes corresponding to at least one score value greater than a preset threshold among the plurality of score values.
[0097] Among them, the above-mentioned preset time period can be set by the user or defaulted by the system, and no limitation is made here. The above-mentioned preset threshold can be set by the user or defaulted by the system, and no limitation is made here. The above-mentioned processes can include at least one of the following: office type, instant messaging type, multimedia type, game type, etc., and no limitation is made here. The above-mentioned application information can include at least one of the following: power consumption, memory occupancy, running speed, CPU (central processing unit) occupancy, etc., and no limitation is made here. A mapping relationship between the application information and the weight can be preset in the electronic device. The larger the weight, the greater the impact of the process corresponding to the application information on the power consumption of the electronic device. In addition, a mapping relationship between the average power consumption rate and the weight can also be preset. The larger the weight, the greater the corresponding average power consumption rate. The above-mentioned plurality of processes can be scored based on the above two dimensions. The higher the score value, the greater the impact of the process corresponding to the score value on the power consumption of the electronic device or the charging efficiency. Therefore, based on the above two dimensions, the processes to be closed can be determined, which is beneficial to improving the granularity of power consumption judgment and the charging efficiency of the electronic device.
[0098] In a specific implementation, multiple running processes can be obtained, and the target application information corresponding to each process can be determined to obtain multiple pieces of target application information. According to the mapping relationship between the preset application information and the weight, the first weight corresponding to each target application message can be determined to obtain multiple first weights. Furthermore, the historical power consumption curve corresponding to each process within a preset time period can be obtained to obtain multiple historical power consumption curves corresponding to multiple processes. Based on the above multiple historical power consumption curves and the above preset time period, the average power consumption rate corresponding to each process within the preset time period can be calculated to obtain multiple average power consumption rates corresponding to multiple processes. And based on the mapping relationship between the preset average power consumption rate and the weight, the second weight corresponding to each average power consumption rate can be determined to obtain multiple second weights.
[0099] Furthermore, when the current power of the electronic device is less than or equal to the preset power threshold, if the electronic device is still running multiple processes, it will consume the current power of the electronic device and affect the charging rate. Therefore, some processes can be closed to accelerate the charging rate of the electronic device. The above preset power threshold can be set by the user or default in the system. Specifically, multiple scoring values can be obtained through weighted operations based on multiple pieces of target application information, the first weight, multiple average power consumption rates, and multiple second weights. For example, if the above target application information is memory information, that is, the scoring value = (the first weight * memory information + the second weight * average power consumption rate). In this way, multiple scoring values can be obtained. The larger the scoring value, the greater the impact of the corresponding process on the charging of the electronic device. Then, at least one process corresponding to at least one scoring value greater than the preset threshold among the multiple scoring values can be selected to be closed to reduce the operating burden of the electronic device and is beneficial to improving the charging efficiency of the electronic device.
[0100] It can be seen that in the embodiment of the present application, the electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or both the first system and the second system can control the charging control unit. If the electronic device detects a charging operation, the charging control unit is called according to the current system operating state of the electronic device. Finally, based on the charging control unit, the charging process of the electronic device can be performed. In this way, when there is only one charging control unit in the electronic device, and regardless of whether the electronic device is in the first system and / or the second system, the charging control unit can be called to implement the charging function of the electronic device.
[0101] As Figure 2 shown, Figure 2 is a schematic flowchart of a charging control method provided by an embodiment of the present application, which is applied to such as Figure 1AThe electronic device shown, the electronic device includes a charging control unit, a first system and a second system, wherein only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit, and the method includes:
[0102] Step 201: If a charging operation is detected, call the charging control unit according to the current system operating state of the electronic device.
[0103] Step 202: Based on the charging control unit, perform a charging process on the electronic device.
[0104] Step 203: During the charging process, if no preset system switching instruction is received, based on the display module, maintain the original charging display interface before charging.
[0105] Wherein, the specific descriptions of the above steps 201 - 203 can refer to the corresponding steps of the charging control method described above Figure 1D and will not be elaborated here.
[0106] It can be seen that in the embodiment of the present application, applied to an electronic device, the electronic device includes a charging control unit, a first system and a second system, wherein only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. If a charging operation is detected, call the charging control unit according to the current system operating state of the electronic device, and based on the charging control unit, perform a charging process on the electronic device. During the charging process, if no preset system switching instruction is received, based on the display module, maintain the original charging display interface before charging. In this way, in the case of not receiving a preset system switching instruction, the electronic device can maintain the original charging display interface, so that the charging operation of the electronic device can be performed without the user's perception, which is beneficial to improving the user experience.
[0107] As Figure 3 shown, Figure 3 is a schematic flowchart of a charging control method provided by an embodiment of the present application, applied to an electronic device as Figure 1A shown, the electronic device includes a charging control unit, a first system and a second system, wherein only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit, and the method includes:
[0108] Step 301: If a charging operation is detected, call the charging control unit according to the current system operating state of the electronic device.
[0109] Step 302: Obtain multiple running processes corresponding to the first system and / or the second system.
[0110] Step 303: Determine the target application information corresponding to each process among the multiple processes, obtaining multiple pieces of target application information.
[0111] Step 304: According to the mapping relationship between preset application information and weights, determine the first weight corresponding to each piece of the target application information, obtaining multiple first weights.
[0112] Step 305: Obtain the historical power consumption curves corresponding to each process during a preset time period, obtaining multiple historical power consumption curves.
[0113] Step 306: Based on the multiple historical power consumption curves, obtain multiple average power consumption rates corresponding to the multiple processes, with each process corresponding to one average power consumption rate.
[0114] Step 307: According to the mapping relationship between preset average power consumption rate and weights, determine the second weight corresponding to each average power consumption rate, obtaining multiple second weights.
[0115] Step 308: Obtain the current battery level of the electronic device.
[0116] Step 309: If the current battery level is less than or equal to a preset battery level threshold, perform a weighted operation on the multiple pieces of target application information, the multiple first weights, the multiple average power consumption rates, and the multiple second weights, obtaining multiple score values corresponding to the multiple processes, with each process corresponding to one score value.
[0117] Step 310: Shut down the processes corresponding to at least one score value greater than the preset threshold among the multiple score values.
[0118] Step 311: Based on the charging control unit, perform a charging process on the electronic device.
[0119] Among them, the specific descriptions of the above steps 301 - 311 can refer to the corresponding steps of the above Figure 1D described charging control method, which will not be elaborated here.
[0120] It can be seen that in the embodiment of the present application, when applied to an electronic device, if a charging operation is detected, the electronic device can, if a charging operation is detected, according to the running state of the current system of the electronic device, call the charging control unit, obtain multiple processes running corresponding to the first system and / or the second system, determine the target application information corresponding to each process among the multiple processes, obtain multiple pieces of target application information, according to the mapping relationship between the preset application information and the weight, determine the first weight corresponding to each piece of target application information, obtain multiple first weights, obtain the historical power consumption curve corresponding to each process in a preset time period, obtain multiple historical power consumption curves, based on the multiple historical power consumption curves, obtain multiple average power consumption rates corresponding to the multiple processes, each process corresponding to an average power consumption rate, according to the mapping relationship between the preset average power consumption rate and the weight, determine the second weight corresponding to each average power consumption rate, obtain multiple second weights, obtain the current battery level of the electronic device, if the current battery level is less than or equal to the preset battery level threshold, then perform a weighted operation on the multiple pieces of target application information, the multiple first weights, the multiple average power consumption rates and the multiple second weights, obtain multiple score values corresponding to the multiple processes, each process corresponding to a score value, close the processes corresponding to at least one score value greater than the preset threshold among the multiple score values, and based on the charging control unit, perform a charging process on the electronic device. In this way, based on the above two dimensions, by controlling the closing state of the processes, the power consumption of the electronic device can be reduced, which is beneficial to improving the charging efficiency of the electronic device.
[0121] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a memory, a communication interface, a charging control unit, and one or more programs. Among them, the above one or more programs are stored in the above memory and are configured to be executed by the above processor. The electronic device further includes a first system and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. The above program includes instructions for performing the following steps:
[0122] If a charging operation is detected, call the charging control unit according to the current system running state of the electronic device;
[0123] Based on the charging control unit, perform a charging process on the electronic device.
[0124] It can be seen that in the embodiments of the present application, the electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; alternatively, both the first system and the second system can control the charging control unit. If the electronic device detects a charging operation, the charging control unit is called according to the current system operating state of the electronic device. Finally, based on the charging control unit, charging processing is performed on the electronic device. In this way, when there is only one charging control unit in the electronic device, and regardless of whether the electronic device is in the first system and / or the second system, the charging control unit can be called to implement the charging function of the electronic device.
[0125] In an implementation manner of the present application, in terms of calling the charging control unit corresponding to the first system, the above program includes instructions specifically for performing the following steps:
[0126] Based on the charging operation, trigger a charging instruction, and the charging instruction carries charging state parameters;
[0127] Send the charging instruction to the first system;
[0128] Based on the charging instruction, start the first system and call the charging control unit corresponding to the first system.
[0129] In an implementation manner of the present application, in terms of performing charging processing on the electronic device based on the charging control unit, the above program includes instructions specifically for performing the following steps:
[0130] Control the charging control unit to perform charging processing on the electronic device with the charging state parameters.
[0131] In an implementation manner of the present application, when both the first system and the second system can control the charging control unit, in terms of calling the charging control unit according to the current system operating state of the electronic device, the above program includes instructions specifically for performing the following steps:
[0132] When only the first system is running, call the charging control unit through the first system; or,
[0133] When only the second system is running, call the charging control unit through the second system; or,
[0134] When the first system and the second system are running simultaneously, call the charging control unit through the first system.
[0135] In an implementation of the present application, when only the first system can control the charging control unit, in terms of calling the charging control unit according to the current system operating state of the electronic device, the above program includes instructions specifically for performing the following steps:
[0136] When the second system is running, shut down the second system, run the first system, and call the charging control unit through the first system; or,
[0137] When the second system is running, do not shut down the second system, run the first system in the background, and call the charging control unit through the first system; or,
[0138] When the second system is running, shut down the second system, the first system enters the low-power mode, and call the charging control unit through the first system; or,
[0139] When the second system is running, call the charging control unit through the first system, and the first system and the second system enter the low-power mode; or,
[0140] When the second system is running, run the first system and the second system simultaneously, and call the charging control unit through the first system; or,
[0141] When the first system is running, directly call the charging control unit through the first system.
[0142] In an implementation of the present application, before performing the charging process on the electronic device based on the charging control unit, the above program includes instructions specifically for performing the following steps:
[0143] Obtain multiple running processes corresponding to the first system and / or the second system;
[0144] Determine the target application information corresponding to each process in the multiple processes to obtain multiple pieces of target application information;
[0145] According to the mapping relationship between the preset application information and the weight, determine the first weight corresponding to each piece of target application information to obtain multiple first weights;
[0146] Obtain the historical power consumption curves corresponding to each process in a preset time period to obtain multiple historical power consumption curves;
[0147] Based on the multiple historical power consumption curves, obtain multiple average power consumption rates corresponding to the multiple processes, and each process corresponds to an average power consumption rate;
[0148] Determine a second weight value corresponding to each of the average power consumption rates according to the mapping relationship between the preset average power consumption rate and the weight value, and obtain a plurality of second weight values;
[0149] Obtain the current battery level of the electronic device;
[0150] If the current battery level is less than or equal to a preset battery level threshold, perform a weighted operation on the plurality of target application information, the plurality of first weights, the plurality of average power consumption rates, and the plurality of second weight values to obtain a plurality of score values corresponding to the plurality of processes, and each process corresponds to one score value;
[0151] Close the processes corresponding to at least one score value greater than a preset threshold among the plurality of score values.
[0152] In an implementation manner of the present application, the first system and the second system share a display module, and the above program includes instructions specifically for performing the following steps:
[0153] During the charging process, if no preset system switching instruction is received, based on the display module, maintain the original charging display interface before charging.
[0154] In an implementation manner of the present application, the first system needs to run simultaneously with the second system, but the second system can run independently, and the power consumption of the first system during normal operation is greater than the power consumption of the second system during normal operation; or,
[0155] The first system can run independently, but the second system needs to run simultaneously with the first system, and the power consumption of the first system during normal operation is less than the power consumption of the second system during normal operation; or,
[0156] Both the first system and the second system can run independently.
[0157] It should be noted that the specific implementation process of this embodiment can refer to the specific implementation process described in the above method embodiment, and will not be described herein again.
[0158] The above embodiments mainly introduce the solutions of the embodiments of the present application from the perspective of the execution process on the method side. It can be understood that in order for an electronic device to implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0159] Embodiments of the present application can divide the functional units of an electronic device according to the method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0160] It should be noted that the division of units in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0161] The following are the device embodiments of the present application, and the device embodiments of the present application are used to execute the methods implemented by the method embodiments of the present application.
[0162] Please refer to Figure 5A , Figure 5A is a schematic structural diagram of a charging control device 500 provided by an embodiment of the present application, which is applied to an electronic device. The electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. The device includes: a calling unit 501 and a processing unit 502, where
[0163] The calling unit 501 is configured to, if a charging operation is detected, call the charging control unit according to the current system operating state of the electronic device;
[0164] The processing unit 502 is configured to perform charging processing on the electronic device based on the charging control unit.
[0165] It can be seen that in the embodiments of the present application, the electronic device includes a charging control unit, a first system, and a second system. Among them, only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit. If the electronic device detects a charging operation, the charging control unit is called according to the current system operating state of the electronic device. Finally, based on the charging control unit, charging processing can be performed on the electronic device. In this way, when there is only one charging control unit in the electronic device, and regardless of whether the electronic device is in the first system and / or the second system, the charging control unit can be called to implement the charging function of the electronic device.
[0166] It should be noted that the calling unit 501 and the processing unit 502 can be implemented by a processor.
[0167] In a possible example, in terms of calling the charging control unit corresponding to the first system, the calling unit 501 is specifically configured to:
[0168] Based on the charging operation, trigger a charging instruction, and the charging status parameter is carried in the charging instruction;
[0169] Send the charging instruction to the first system;
[0170] Based on the charging instruction, start the first system and call the charging control unit corresponding to the first system.
[0171] In a possible example, when both the first system and the second system can control the charging control unit, in terms of calling the charging control unit according to the current system operating state of the electronic device, the calling unit 501 is specifically configured to:
[0172] When only the first system is running, call the charging control unit through the first system; or,
[0173] When only the second system is running, call the charging control unit through the second system; or,
[0174] When the first system and the second system are running simultaneously, call the charging control unit through the first system.
[0175] In a possible example, when only the first system can control the charging control unit, in terms of calling the charging control unit according to the current system operating state of the electronic device, the calling unit 501 is specifically configured to:
[0176] When the second system is running, turn off the second system, run the first system, and call the charging control unit through the first system; or,
[0177] When the second system is running, do not shut down the second system, run the first system in the background, and call the charging control unit through the first system; or,
[0178] When the second system is running, shut down the second system, the first system enters the low-power mode, and call the charging control unit through the first system; or,
[0179] When the second system is running, call the charging control unit through the first system, and the first system and the second system enter the low-power mode; or,
[0180] When the second system is running, run the first system and the second system simultaneously, and call the charging control unit through the first system; or,
[0181] When the first system is running, directly call the charging control unit through the first system.
[0182] In a possible example, in terms of charging the electronic device based on the charging control unit, the processing unit 502 is specifically configured to:
[0183] Control the charging control unit to charge the electronic device according to the charging status parameter.
[0184] Please refer to Figure 5B , Figure 5B which is a schematic structural diagram of another charging control device 500 provided by an embodiment of the present application, applied to an electronic device, the electronic device includes a charging control unit, a first system and a second system, wherein only the first system can control the charging control unit; or, both the first system and the second system can control the charging control unit, and the device further includes: a holding unit 503, wherein,
[0185] The holding unit 503 is configured to maintain the original charging display interface before charging based on the display module if no preset system switching instruction is received during the charging process.
[0186] An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute some or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0187] The embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause a computer to execute some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer includes an electronic device.
[0188] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, some steps may be in other sequences or performed simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0189] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0190] In several embodiments provided by the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the above division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical or other form.
[0191] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0192] In addition, the functional units in the various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0193] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of this application. The aforementioned memory includes various media that can store program codes, such as USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), external hard drives, magnetic disks, or optical discs.
[0194] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. This program can be stored in a computer-readable memory, and the memory can include: flash drives, read-only memories (abbreviation: ROM, English: Read-Only Memory), random access memories (abbreviation: RAM, English: Random Access Memory), magnetic disks, or optical discs, etc.
[0195] The above has introduced the embodiments of this application in detail. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A charging control method, applied to an electronic device, the electronic device including a wearable device, characterized in that, The electronic device includes a charging control unit, a first system, a second system, and a battery. Among them, both the first system and the second system can control the charging control unit. The electronic device further includes a display module, and the first system and the second system share the display module. The method includes: If a charging operation is detected, the charging control unit is called according to the current system operating state of the electronic device; Based on the charging control unit, charging processing is performed on the electronic device; During the charging process, if no preset system switching instruction is received, based on the display module, the charging display interface corresponding to the current system is maintained; Among them, the first system needs to run simultaneously with the second system, but the second system can run independently, and the power consumption when the first system is running normally is greater than the power consumption when the second system is running normally; or, The first system can run independently, but the second system needs to run simultaneously with the first system, and the power consumption when the first system is running normally is less than the power consumption when the second system is running normally; or, Both the first system and the second system can run independently.
2. The method according to claim 1, wherein The calling of the charging control unit includes: Based on the charging operation, a charging instruction is triggered, and the charging instruction carries charging state parameters; The charging instruction is sent to the first system; Based on the charging instruction, the first system is started, and the charging control unit corresponding to the first system is called; The charging processing of the electronic device based on the charging control unit includes: Controlling the charging control unit to perform charging processing on the electronic device with the charging state parameters.
3. The method according to claim 1, characterized in that, When both the first system and the second system can control the charging control unit, the calling of the charging control unit according to the current system operating state of the electronic device includes: When only the first system is running, the charging control unit is called through the first system; or, When only the second system is running, the charging control unit is called through the second system; or, When the first system and the second system are running simultaneously, the charging control unit is called through the first system.
4. The method according to claim 3, characterized in that, Before the charging processing of the electronic device based on the charging control unit, the method further includes: Obtaining multiple running processes corresponding to the first system and / or the second system; Determining the target application information corresponding to each process in the multiple processes to obtain multiple target application information; According to the mapping relationship between the preset application information and the weight, determining the first weight corresponding to each target application information to obtain multiple first weights; Obtaining the historical power consumption curves corresponding to each process in a preset time period to obtain multiple historical power consumption curves; Based on the multiple historical power consumption curves, obtaining multiple average power consumption rates corresponding to the multiple processes, and each process corresponds to an average power consumption rate; According to the mapping relationship between the preset average power consumption rate and the weight, determining the second weight corresponding to each average power consumption rate to obtain multiple second weights; Obtaining the current battery level of the electronic device; If the current power is less than or equal to a preset power threshold, perform a weighted operation on the multiple target application information, the multiple first weights, the multiple average power consumption rates, and the multiple second weights to obtain multiple score values corresponding to the multiple processes, with each process corresponding to one score value; Close the processes corresponding to at least one score value greater than a preset threshold among the multiple score values.
5. A charging control device is applied to an electronic device, where the electronic device includes a wearable device, and is characterized in that The electronic device includes a charging control unit, a first system, a second system, and a battery. Among them, both the first system and the second system can control the charging control unit. The electronic device further includes a display module, and the first system and the second system share the display module. The device includes: a calling unit and a processing unit, where, The calling unit is configured to call the charging control unit according to the current system operating state of the electronic device if a charging operation is detected; The processing unit is configured to perform charging processing on the electronic device based on the charging control unit; during the charging process, if a preset system switching instruction is not received, maintain the charging display interface corresponding to the current system based on the display module; Among them, the first system needs to run simultaneously with the second system, but the second system can run independently, and the power consumption when the first system runs normally is greater than the power consumption when the second system runs normally; or, The first system can run independently, but the second system needs to run simultaneously with the first system, and the power consumption when the first system runs normally is less than the power consumption when the second system runs normally; or, Both the first system and the second system can run independently.
6. An electronic device, characterized in that, It includes a processor, a memory, a charging control unit, a communication interface, and one or more programs. The one or more programs are stored in the memory and are configured to be executed by the processor. The programs include instructions for performing the steps in the method according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1-4.
Citation Information
Patent Citations
Battery charge-discharge control method and electronic equipment
CN103035966A
Electronic device, temperature rise control method and apparatus, and storage medium
CN107423199A
Method for controlling wearable electronic equipment, and central device and equipment
CN107734487A
Charging control method and charging control device of electronic equipment
CN108767913A
Hybrid power supply control method and related product
CN110649589A