Charging method, device, equipment and storage medium
By determining the charging scenario based on the status information of the terminal device and adjusting the charging power and power, the problem of the terminal device's battery aging due to long-term high power or high voltage states is solved, and a more flexible charging method is achieved that extends the battery life.
Patent Information
- Application Number
- CN202411885485.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, terminal devices usually use the maximum charging power to charge it to 100% when charging, causing the battery to be in a high charge or high voltage state for a long time, thereby accelerating the battery aging.
When the terminal device starts charging, the current charging scenario is determined based on the status information of the device (such as the current location, time and connected wireless network), and then the corresponding target charging power and target power are used for charging.
This method can dynamically adjust the charging power and power according to different charging scenarios, improve charging flexibility, and thus slow down the aging speed of terminal equipment batteries.
Smart Images

Figure CN119765551A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a charging method, device, equipment and storage medium. Background Art
[0002] In the related art, most terminal devices (such as mobile phones, tablets or smart watches, etc.) are charged to 100% at the maximum charging power. In this way, the battery of the terminal device will be in a high power or high voltage state for a long time, which usually causes damage to the battery's electrode material and electrode structure, causing the battery to age faster. Summary of the invention
[0003] The present application provides a charging method, apparatus, device and storage medium, which are helpful in slowing down the aging rate of the battery of the terminal device.
[0004] A first aspect of an embodiment of the present application provides a charging method, which is applied to a terminal device, including:
[0005] When the terminal device starts charging, determining a current charging scenario corresponding to the terminal device according to the status information of the terminal device, wherein the current charging scenario corresponds to a target charging power and a target power, wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network;
[0006] The target charging power is used to charge the terminal device to the target power.
[0007] A second aspect of an embodiment of the present application provides a charging method, which is applied to a server, comprising:
[0008] Receiving status information sent by a terminal device; wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network;
[0009] Determine a current charging scenario corresponding to the terminal device according to the status information, wherein the current charging scenario corresponds to a target charging power and a target power;
[0010] Sending first information to the terminal device, where the first information is used to indicate the current charging scenario.
[0011] A third aspect of an embodiment of the present application provides a charging device, applied to a terminal device, including:
[0012] A first determining unit is used to determine, when the terminal device starts charging, a current charging scenario corresponding to the terminal device according to the status information of the terminal device, wherein the current charging scenario corresponds to a target charging power and a target power, wherein the status information includes at least any one of the following: current location information, current time information, and a name of a currently connected wireless network;
[0013] A charging unit is used to charge the terminal device to the target power using the target charging power.
[0014] A fourth aspect of the present application provides a charging device, which is applied to a server and includes:
[0015] A receiving unit, configured to receive status information sent by a terminal device; wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network;
[0016] A second determining unit, configured to determine a current charging scenario corresponding to the terminal device according to the state information, wherein the current charging scenario corresponds to a target charging power and a target power;
[0017] A sending unit is used to send first information to the terminal device, where the first information is used to indicate the current charging scenario.
[0018] A fifth aspect of the embodiments of the present application provides an electronic device, including:
[0019] A memory storing executable program code;
[0020] and a processor coupled to the memory;
[0021] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the first aspect or the second aspect of the embodiment of the present application.
[0022] A sixth aspect of an embodiment of the present application provides a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method disclosed in the first aspect or the second aspect of the embodiment of the present application is implemented.
[0023] The seventh aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect or the second aspect of the embodiments of the present application.
[0024] An eighth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method disclosed in the first aspect or the second aspect of the embodiment of the present application.
[0025] It can be seen from the above technical solutions that the embodiments of the present application have at least the following advantages:
[0026] When the terminal device starts charging, the current charging scenario corresponding to the terminal device is determined according to the status information of the terminal device. The current charging scenario corresponds to the target charging power and the target power. The status information includes at least any one of the following: current location information, current time information and the name of the currently connected wireless network. The target charging power is used to charge the terminal device to the target power.
[0027] By implementing this method, when the terminal device starts charging, the current charging scenario corresponding to the terminal device can be determined according to the status information of the terminal device, and then the target charging power corresponding to the current charging scenario is used to charge the terminal device to the target power corresponding to the current charging scenario. In this way, the charging power and charging amount of the terminal device can change with the change of the charging scenario, thereby improving the flexibility of charging the terminal device, which is beneficial to slowing down the aging rate of the battery of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flowchart of the charging method disclosed in the embodiment of the present application;
[0029] Figure 2 is another flowchart of the charging method disclosed in the embodiment of the present application;
[0030] Figure 3 The embodiments of this application are disclosed and are applicable to Figure 2 An illustration of an application scenario of the charging method shown;
[0031] Figure 4 This is a schematic diagram of enabling the battery optimization function disclosed in the embodiment of the present application;
[0032] Figure 5 is a structural diagram of a charging device disclosed in an embodiment of the present application;
[0033] Figure 6 is a structural diagram of another charging device disclosed in the embodiment of the present application;
[0034] Figure 7 It is a structural diagram of a terminal device disclosed in an embodiment of the present application;
[0035] Figure 8It is a structural diagram of the server disclosed in the embodiment of the present application. DETAILED DESCRIPTION
[0036] The present application provides a charging method, apparatus, device and storage medium, which are helpful in slowing down the aging rate of the battery of the terminal device.
[0037] In order to make the technical personnel in the technical field better understand the scheme of the present application, the technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, they should all fall within the scope of protection of the present application.
[0038] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0039] "At least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or plural.
[0040] With the development of science and technology, people use terminal devices (such as mobile phones, tablets or smart watches) more and more frequently. In related technologies, most terminal devices are charged to 100% at the maximum charging power. In this way, the battery of the terminal device will be in a high power or high voltage state for a long time, which will damage the electrode material and electrode structure of the battery, thereby accelerating the aging of the battery. It can be seen that how to slow down the aging speed of the battery of the terminal device has become a technical problem that the industry needs to solve urgently.
[0041] To solve this problem, the embodiments of the present application disclose a charging method, device, equipment and storage medium, which are conducive to slowing down the aging speed of the battery of the terminal device. The charging method may include: when the terminal device starts charging, determining the current charging scene corresponding to the terminal device according to the status information of the terminal device, the current charging scene corresponds to the target charging power and the target power, wherein the status information includes at least any one of the following: current location information, current time information and the name of the currently connected wireless network; using the target charging power, charging the terminal device to the target power.
[0042] By implementing the charging method disclosed in the embodiment of the present application, when the terminal device starts charging, the current charging scenario corresponding to the terminal device can be determined according to the status information of the terminal device, and then the target charging power corresponding to the current charging scenario is used to charge the terminal device to the target power corresponding to the current charging scenario. In this way, the charging power and charging amount of the terminal device can change with the change of the charging scenario, thereby improving the flexibility of charging the terminal device, and thus helping to slow down the aging rate of the battery of the terminal device.
[0043] It should be noted that the terminal devices in the embodiments of the present application may include general handheld screen electronic devices, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (PDA), portable multimedia players (Personal Media Player, PMP) devices, laptop computers, notebooks (NotePad), wireless broadband (Wireless Broadband, Wibro) terminals, tablet computers (Personal Computer, PC) and smart PCs, etc.
[0044] Terminal devices may also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as: computing function, positioning function, and alarm function. They can also be connected to mobile phones and various terminals. Wearable devices may include but are not limited to watches supported by the wrist (such as watches, wrists, etc.), shoes supported by the feet (such as shoes, socks, or other products worn on the legs), glasses supported by the head (such as glasses, helmets, headbands, etc.), and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.
[0045] The charging method provided in the embodiments of the present application is introduced below in conjunction with specific embodiments.
[0046] See also Figure 1 , Figure 1 is a flowchart of the charging method disclosed in the embodiment of the present application, such as Figure 1 The charging method shown may include the following steps:
[0047] 101. When the terminal device starts charging, the terminal device determines a current charging scenario corresponding to the terminal device according to the status information of the terminal device, and the current charging scenario corresponds to a target charging power and a target power.
[0048] In the embodiment of the present application, when the terminal device detects that the terminal device is connected to a charging power source, the terminal device is determined to start charging. Optionally, the terminal device can be connected to a charging power source wirelessly or wired, which is not limited in the embodiment of the present application.
[0049] The status information of the terminal device may include at least one of the following items, but is not limited to: current location information, current time information, the name of the currently connected wireless network, and the current environment picture, etc. The current location information is used to indicate the current location of the terminal device, the current time information is used to indicate the specific time point of the current moment, and the current environment picture is the environment picture collected by the terminal device at the current moment, which can be used to reflect the real environment where the terminal device is currently located.
[0050] The current charging scenario of the terminal device may be used to indicate the time and / or location at which the terminal device is currently charging.
[0051] In some embodiments, the terminal device determines the current charging scenario corresponding to the terminal device based on the status information of the terminal device, which may include: the terminal device determines the current charging scenario corresponding to the terminal device through a scene recognition model based on the status information of the terminal device.
[0052] It can be understood that the scene recognition model is deployed on the terminal device, and the terminal device can input the status information of the terminal device into the scene recognition model to obtain the current charging scene corresponding to the terminal device.
[0053] Optionally, the scene recognition model may include but is not limited to any of the following: a support vector machine model, a random forest model, a neural network model, etc.
[0054] The scene recognition model may be trained based on multiple charging scenarios of the terminal device in the first time period and the status information of the terminal device in each charging scenario. The first time period may be a relatively long time period before the current moment. For example, the first time period may be the last half month, the last month, the last two months, or the last quarter, etc., which is not limited in the embodiments of the present application.
[0055] In an embodiment of the present application, the terminal device inputs the status information into the scene recognition model on the terminal device to obtain the current charging scene corresponding to the terminal device, thereby achieving rapid and accurate recognition of the charging scene.
[0056] In other embodiments, the terminal device determines the current charging scenario corresponding to the terminal device based on the status information of the terminal device, which may include: the terminal device determines a preset charging scenario among multiple preset charging scenarios that matches the status information as the current charging scenario corresponding to the terminal device.
[0057] It is understandable that the terminal device may pre-store a first relationship mapping table, which may include multiple preset charging scenarios and status information corresponding to each preset charging scenario. The terminal device may obtain a preset charging scenario that matches the current status information of the terminal device, that is, the current charging scenario, by searching the first relationship mapping table. It can be seen that the terminal device does not need to perform complex calculation tasks in the process of determining the current charging scenario, which is conducive to reducing the device power consumption of the terminal device.
[0058] In the embodiment of the present application, the current charging scenario is any one of a plurality of preset charging scenarios, and each of the plurality of preset charging scenarios corresponds to a different charging power and / or power. The power refers to the power that the terminal device is to reach, that is, the power when the terminal device terminates charging.
[0059] It is understandable that the terminal device may pre-store a second relationship mapping table, which may include multiple preset charging scenarios, and the charging power and power corresponding to each preset charging scenario. The terminal device may obtain the target charging power and target power corresponding to the current charging scenario by searching the second relationship mapping table.
[0060] Among them, the charging power and power corresponding to each preset charging scenario can be determined according to the charging time under each preset charging scenario and / or the future charging conditions corresponding to the terminal device.
[0061] Exemplarily, the current charging scenario may be any of the following:
[0062] First charging scenario: a scenario of charging at home at night; the first charging scenario corresponds to a first charging power and a first power;
[0063] Second charging scenario: charging at home at noon; the second charging scenario corresponds to the second charging power and the second power, and the second charging power is greater than the first charging power.
[0064] The third charging scenario: charging at the company at noon; the third charging scenario corresponds to the third charging power and the third power, and the third charging power is greater than the second charging power.
[0065] Fourth charging scenario: a scenario of charging at home in the morning. The fourth charging scenario corresponds to a fourth charging power and a fourth power. The fourth charging power is greater than the third charging power.
[0066] Fifth charging scenario: a scenario in which charging is performed at a location other than home or company. The fifth charging scenario corresponds to a fifth charging power and a fifth power level, and the fifth charging power is greater than the third charging power.
[0067] When the current charging scenario is charging at home at night, the charging time is usually one night. In most cases, the user goes to the company the next day. The terminal device is charging-ready in the future, and the terminal device turns on slow charging. The first charging power can be 18W, and the first power can be 80%.
[0068] When the current charging scenario is charging at home at noon, users usually take a short break at home at noon and go to the company in the afternoon. The charging time is usually 1 hour. The terminal device will be charged in the future. The terminal device will be charged at medium and low power. The second charging power can be 40W, and the second power can be 80%.
[0069] When the current charging scenario is charging at the company at noon, it is highly likely that the user will continue to be in the company in the afternoon, and the charging time is generally 20 minutes. The terminal device will be charged in the future, and the terminal device will be charged at medium to high power. The third charging power can be 80W, and the third power can be 80%.
[0070] When the current charging scenario is charging at home in the morning, it is highly likely that the user is in a hurry to go out and the terminal device needs more power. The terminal device will not have charging conditions in the future. The terminal device will be charged at maximum power. The fourth charging power can be 100W, and the fourth power can be 100%.
[0071] When the current charging scenario is charging at a place other than home and company, the terminal device often needs more power. If the terminal device has no charging conditions in the future, the terminal device will be charged at the maximum power. The fifth charging power is 100W, and the fifth power can be 100%.
[0072] It should be noted that the preset charging scenarios are not limited to the above examples, but may also include other charging scenarios, which are not listed one by one in the embodiments of the present application.
[0073] It should be noted that the above-mentioned embodiments mainly introduce a method for a terminal device to independently determine a current charging scenario. In other embodiments, the current charging scenario may also be determined by the terminal device through a server. Regarding the process of the terminal device determining the current charging scenario through a server, please refer to the introduction in the following embodiments, which will not be repeated here.
[0074] 102. The terminal device uses the target charging power to charge the terminal device to a target power level.
[0075] In some embodiments, the terminal device adopts a target charging power, and charging the terminal device to a target power level may include: the terminal device sends the target charging power to the charger so that the charger supplies power to the terminal device with the target charging power, and, when it is detected that the power level reaches a preset power level, the charging speed is reduced or switched to a trickle charging mode.
[0076] The preset power is less than the target power, and the difference between the preset power and the target power is less than or equal to the difference threshold. For example, when the target power is 80, the preset power can be 75, 76 or 78, etc. For another example, when the target power is 90, the preset power is 85, 86 or 88, etc.
[0077] Trickle charge mode is a very gentle charging method that uses a very small current to slowly charge the battery.
[0078] It should be noted that when the terminal device detects that the power has reached the preset power level, it reduces the charging speed or switches to trickle charging mode, which can reduce the pressure on the battery when it is in a high power state and help extend the battery life.
[0079] In other embodiments, the terminal device adopts a target charging power, and charging the terminal device to a target power level may include: the terminal device sends the target charging power to the charger so that the charger supplies power to the terminal device with the target charging power, and, when it is detected that the power level has reached the target power level, stops charging the battery of the terminal device.
[0080] It should be noted that when the terminal device detects that the power has reached the target power, it stops charging the battery of the terminal device, which can reduce the charging time and provide the user with a better fast charging experience.
[0081] By implementing Figure 1The charging method shown, when the terminal device starts charging, can determine the current charging scenario corresponding to the terminal device according to the status information of the terminal device, and then use the target charging power corresponding to the current charging scenario to charge the terminal device to the target power corresponding to the current charging scenario. In this way, the charging power and charging amount of the terminal device can change with the change of the charging scenario, thereby improving the flexibility of charging the terminal device, and thus helping to slow down the aging rate of the battery of the terminal device.
[0082] Combine the following Figure 2 The charging method shown in the figure introduces the process of the terminal device determining the current charging scene through the server. Figure 2 The charging method shown is applicable to Figure 3 The application scenarios shown are as follows: Figure 3 The application scenario shown includes a terminal device 10 and a server 20 , and the terminal device 10 can be interconnected and communicated with the server 20 .
[0083] See also Figure 2 , Figure 2 is another flowchart of the charging method disclosed in the embodiment of the present application, such as Figure 2 The charging method shown may include the following steps:
[0084] 201 . When charging is started, the terminal device 10 sends status information of the terminal device 10 to the server 20 .
[0085] For an introduction to the status information of the terminal device 10 , please refer to the description in the above embodiment, which will not be repeated here.
[0086] It can be understood that the server 20 receives the status information sent by the terminal device 10 .
[0087] In some embodiments, when the terminal device 10 starts charging, the terminal device 10 sends the status information of the terminal device 10 to the server 20, which may include: when the terminal device 10 starts charging, if the battery optimization function corresponding to the terminal device 10 is turned on, the terminal device 10 sends the status information of the terminal device 10 to the server 20.
[0088] When the battery optimization function corresponding to the terminal device 10 is turned off, the terminal device 10 can be charged using a default charging power and a default power level, wherein the default charging power may be the maximum charging power supported by the terminal device 10, and the default power level may be 100%.
[0089] It is understandable that whether to enable the battery optimization function corresponding to the terminal device 10 is optional, which further improves the charging flexibility of the terminal device 10.
[0090] Optionally, the battery optimization function corresponding to the terminal device 10 can support the user to actively turn it on or off. Optionally, the user can turn the battery optimization function on and off manually or by voice.
[0091] When the user turns on or off the battery optimization function by voice, the user can turn on the battery optimization function by inputting the first audio, or can turn off the battery optimization function by inputting the second audio. For example, the text corresponding to the first audio may be "turn on the battery optimization function", "turn on battery optimization", etc., and the text corresponding to the second audio may be "turn off the battery optimization function", "turn off battery optimization", etc.
[0092] When the user manually turns on or off the battery optimization function, the battery setting interface of the terminal device may include a button for turning on or off the battery optimization function, and the user can turn on or off the battery optimization function by touching the button.
[0093] For example, see Figure 4 , Figure 4 Schematic diagram of enabling the battery optimization function disclosed in the embodiment of the present application. Figure 4 As shown in the battery setting interface on the left, the battery setting interface includes a button 401, and the slider in the button 401 is in the first position to indicate that the battery optimization function is turned off. The terminal device 10 can respond to the user's touch operation on the slider in the button 401 and move the slider to the second position to indicate that the battery optimization function is turned on. Figure 4 The battery settings interface is shown on the right.
[0094] In some embodiments, the battery optimization function corresponding to the terminal device 10 can also be turned on or off autonomously by the terminal device 10 to achieve intelligent management and control of the battery optimization function.
[0095] Optionally, when starting charging, the terminal device 10 can also obtain the battery health level of the terminal device 10, and if the battery health level is at a preset health level, enable the corresponding battery optimization function of the terminal device 10.
[0096] Exemplarily, the terminal device can divide the battery health level into three levels, namely the first health level, the second health level and the third health level. Among them, the first health level corresponds to the longest battery life, the second health level corresponds to the second longest battery life, and the third health level corresponds to the shortest battery life. The preset health level can be the second health level.
[0097] It is understandable that when the battery health of the terminal device 10 is low, it is necessary to mitigate the battery aging rate, and the terminal device 10 turns on the battery optimization function.
[0098] Optionally, the terminal device 10 may also turn off a battery optimization function corresponding to the terminal device 10 when a target application is running in the foreground; wherein the target application refers to an application whose power consumption per unit time is greater than a power threshold.
[0099] Exemplarily, the target application may be a game application, a short video application, a navigation application, or the like.
[0100] It is understandable that when the target application is running in the foreground of the terminal device 10, the terminal device 10 needs to maintain a high power level to ensure a smooth user experience. The terminal device 10 uses the maximum charging power to charge the terminal device 10 for the best performance, and there is no need to turn on the battery optimization function.
[0101] In some embodiments, when the terminal device starts charging, if a target application is running in the foreground of the terminal device, a prompt message is output to prompt the user to close the target application; wherein the target application refers to an application whose power consumption per unit time is greater than a power threshold.
[0102] It is understandable that when the terminal device starts charging, it can detect the applications running in the foreground of the terminal device. If there are applications with high power consumption, a prompt message is output to prompt the user to close the application so that the user can close these applications in time. This is not only beneficial to extend the battery life of the terminal device, but also beneficial to improve charging efficiency.
[0103] 202. The server 20 determines the current charging scenario corresponding to the terminal device 10 according to the status information.
[0104] In some embodiments, the server 20 determines the current charging scenario corresponding to the terminal device 10 based on the status information, which may include: the server 20 determines the current charging scenario corresponding to the terminal device 10 through a scene recognition model based on the status information; wherein the scene recognition model is trained based on multiple charging scenarios of the terminal device 10 in the first time period, and the status information of the terminal device 10 in each charging scenario.
[0105] Among them, for a detailed introduction to the scene recognition model, please refer to the description in the above embodiment, which will not be repeated here.
[0106] It should be noted that the server 20 identifies the current charging scene corresponding to the terminal device 10 based on the scene recognition model thereon, thereby achieving accurate recognition of the charging scene.
[0107] In other embodiments, the server 20 determining the current charging scenario corresponding to the terminal device 10 based on the status information may include: the server 20 determining a charging scenario that matches the status information among multiple charging scenarios as the current charging scenario corresponding to the terminal device 10 .
[0108] It should be noted that regarding the process of the server 20 determining the current charging scene corresponding to the terminal device 10 from multiple preset charging scenes, please refer to the above-mentioned process of the terminal device 10 determining the current charging scene corresponding to the terminal device 10 from multiple preset charging scenes, which will not be repeated here.
[0109] It should be noted that the server 20 determines the current charging scene corresponding to the terminal device 10 from the preset charging scenes based on the mapping relationship between the preset charging scenes and the status information, thereby realizing rapid determination of the charging scene.
[0110] 203. The server 20 sends first information to the terminal device 10, where the first information is used to indicate a current charging scenario.
[0111] It is understandable that the terminal device 10 can receive the first information sent by the server 20.
[0112] 204. The terminal device 10 determines the target charging power and target power corresponding to the current charging scenario.
[0113] It should be noted that the process of the terminal device 10 determining the target charging power and target power corresponding to the current charging scenario can be found in the relevant introduction in the above embodiment, which will not be repeated here.
[0114] 205. The terminal device 10 uses the target charging power to charge the terminal device 10 to the target power.
[0115] It should be noted that for a detailed description of step 204, reference may be made to the description of step 102 in the above embodiment, which will not be repeated here.
[0116] By implementing Figure 2 The charging method shown, when the terminal device starts charging, can determine the current charging scenario corresponding to the terminal device according to the status information of the terminal device, and then use the target charging power corresponding to the current charging scenario to charge the terminal device to the target power corresponding to the current charging scenario. In this way, the charging power and charging amount of the terminal device can change with the change of the charging scenario, which improves the flexibility of charging the terminal device, and is conducive to slowing down the aging speed of the battery of the terminal device. In addition, the terminal device relies on the server to determine the current charging scenario corresponding to the terminal device, which can effectively reduce the calculation amount and performance overhead on the terminal device side.
[0117] See also Figure 5 , Figure 5 is a structural diagram of a charging device disclosed in an embodiment of the present application. Figure 5 The charging device shown may include a first determining unit 501 and a charging unit 502; wherein:
[0118] A first determining unit 501 is configured to determine, when the terminal device starts charging, a current charging scenario corresponding to the terminal device according to the status information of the terminal device, wherein the current charging scenario corresponds to a target charging power and a target power, wherein the status information includes at least any one of the following: current location information, current time information, and a name of a currently connected wireless network;
[0119] The charging unit 502 is used to charge the terminal device to the target power using the target charging power.
[0120] In some embodiments, the first determining unit 501 is used to determine the current charging scene corresponding to the terminal device according to the status information of the terminal device when the terminal device starts charging, which may specifically include:
[0121] The first determination unit 501 is used to send the status information of the terminal device to the server when the terminal device starts charging; and receive the first information sent by the server in response to the status information, where the first information is used to indicate the current charging scenario.
[0122] In some embodiments, the first determining unit 501 is used to determine the current charging scene corresponding to the terminal device according to the status information of the terminal device when the terminal device starts charging, which may specifically include:
[0123] The first determination unit 501 is used to determine the current charging scene corresponding to the terminal device through a scene recognition model according to the status information of the terminal device when the terminal device starts charging; wherein the scene recognition model is trained based on multiple charging scenes of the terminal device in the first time period and the status information of the terminal device in each charging scene.
[0124] In some embodiments, the first determining unit 501 is used to determine the current charging scene corresponding to the terminal device according to the status information of the terminal device when the terminal device starts charging, which may specifically include:
[0125] The first determination unit 501 is used to determine a current charging scenario corresponding to the terminal device according to the status information of the terminal device when the terminal device starts charging and the battery optimization function corresponding to the terminal device is turned on.
[0126] In some embodiments, the first determination unit 501 is also used to obtain the battery health level of the terminal device when the terminal device starts charging; and if the battery health level is at a preset health level, enable the battery optimization function corresponding to the terminal device.
[0127] In some embodiments, the first determination unit 501 is also used to output a prompt message for prompting the user to close the target application if a target application is running in the foreground of the terminal device when the terminal device starts charging; wherein the target application refers to an application whose power consumption per unit time is greater than a power threshold.
[0128] In some embodiments, the current charging scenario is any one of a plurality of preset charging scenarios, and each of the plurality of preset charging scenarios corresponds to a different charging power and / or amount of electricity.
[0129] In some embodiments, the current charging scenario is any one of the following:
[0130] First charging scenario: a scenario of charging at home at night; the first charging scenario corresponds to a first charging power and a first power;
[0131] Second charging scenario: charging at home at noon; the second charging scenario corresponds to a second charging power and a second power, the second charging power is greater than the first charging power,
[0132] The third charging scenario: a scenario of charging at the company at noon; the third charging scenario corresponds to a third charging power and a third amount of electricity, and the third charging power is greater than the second charging power.
[0133] Fourth charging scenario: a scenario of charging at home in the morning. The fourth charging scenario corresponds to a fourth charging power and a fourth power. The fourth charging power is greater than the third charging power.
[0134] Fifth charging scenario: a scenario in which charging is performed at a location other than home or company. The fifth charging scenario corresponds to a fifth charging power and a fifth power level. The fifth charging power is greater than the third charging power.
[0135] See also Figure 6 , Figure 6 FIG. 1 is a structural diagram of another charging device disclosed in the embodiment of the present application. Figure 6 The charging device shown may include a receiving unit 601, a second determining unit 602 and a sending unit 603; wherein:
[0136] The receiving unit 601 is used to receive status information sent by the terminal device; wherein the status information includes at least any one of the following: current location information, current time information and the name of the currently connected wireless network;
[0137] A second determining unit 602 is used to determine a current charging scenario corresponding to the terminal device according to the state information, where the current charging scenario corresponds to a target charging power and a target power;
[0138] The sending unit 603 is used to send first information to the terminal device, where the first information is used to indicate the current charging scenario.
[0139] In some embodiments, the second determination unit 602 is used to determine the current charging scene corresponding to the terminal device according to the status information, which may specifically include: the second determination unit 602 is used to determine the current charging scene corresponding to the terminal device through a scene recognition model according to the status information; wherein the scene recognition model is trained based on multiple charging scenes of the terminal device in the first time period, and the status information of the terminal device in each charging scene.
[0140] In some embodiments, the second determination unit 602 is used to determine the current charging scene corresponding to the terminal device based on the status information, which may specifically include: the second determination unit 602 is used to determine the preset charging scene among multiple preset charging scenes that matches the status information as the current charging scene corresponding to the terminal device.
[0141] See also Figure 7 , Figure 7 FIG. 1 is a structural diagram of a terminal device disclosed in an embodiment of the present application. Figure 7 The terminal device shown may include components such as a processor 701 , a memory 702 , a display unit 703 , an input unit 704 , a sensor 705 , and an audio circuit 706 .
[0142] The processor 701 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, the processor 701 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 701 may include one or more processing units; optionally, the processor 701 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0143] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 702. The memory 702 can mainly include a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 702 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0144] The display unit 703 can be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 703 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 701 to determine the type of touch event. Then, the processor 701 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not in contact with each other. Figure 7 The touch panel and the display panel can be used as two independent components to realize the input and output functions of the terminal device, or the touch panel and the display panel can be integrated to realize the input and output functions of the terminal device.
[0145] The input unit 704 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 704 may include a touch panel and other input devices. A touch panel, also referred to as a touch screen, can collect user touch operations on or near it (such as operations performed by a user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a pre-set program. In addition, a variety of types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel. In addition to the touch panel, the input unit 704 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0146] The terminal device may also include at least one sensor 705, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the terminal device, and the gyroscope sensor can be used to determine the motion posture of the terminal device. It can be used for anti-shake shooting, and can also be used for navigation and somatosensory game scenes. As a type of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; As for other sensors that can also be configured in the terminal device, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0147] The audio circuit 706 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 706 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 706 and converted into audio data, and then the audio data is output to the processor 701 for processing, and then sent to another device through the video circuit, or the audio data is output to the memory 702 for further processing.
[0148] Although not shown, the terminal device may further include a power supply and a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.
[0149] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0150] In the embodiment of the present application, the processor 701 also has the following functions:
[0151] When the terminal device starts charging, determining a current charging scenario corresponding to the terminal device according to the status information of the terminal device, wherein the current charging scenario corresponds to a target charging power and a target power, wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network;
[0152] The target charging power is used to charge the terminal device to the target power.
[0153] In the embodiment of the present application, the processor 701 also has the following functions:
[0154] When the terminal device starts charging, sending status information of the terminal device to a server;
[0155] First information sent by the server in response to the status information is received, where the first information is used to indicate the current charging scenario.
[0156] In the embodiment of the present application, the processor 701 also has the following functions:
[0157] When the terminal device starts charging, the current charging scene corresponding to the terminal device is determined through a scene recognition model based on the status information of the terminal device; wherein the scene recognition model is trained based on multiple charging scenes of the terminal device in the first time period and the status information of the terminal device in each charging scene.
[0158] In the embodiment of the present application, the processor 701 also has the following functions:
[0159] When the terminal device starts charging, if the battery optimization function corresponding to the terminal device is turned on, the current charging scenario corresponding to the terminal device is determined according to the status information of the terminal device.
[0160] In the embodiment of the present application, the processor 701 also has the following functions:
[0161] When charging of the terminal device is started, obtaining a battery health level of the terminal device;
[0162] If the battery health level is at a preset health level, the battery optimization function corresponding to the terminal device is enabled.
[0163] In the embodiment of the present application, the processor 701 also has the following functions:
[0164] When the terminal device starts charging, if a target application is running in the foreground of the terminal device, a prompt message is output to prompt the user to close the target application; wherein the target application refers to an application whose power consumption per unit time is greater than a power threshold.
[0165] In an embodiment of the present application, the current charging scenario is any one of a plurality of preset charging scenarios, and each of the plurality of preset charging scenarios corresponds to a different charging power and / or amount of electricity.
[0166] In the embodiment of the present application, the current charging scenario is any one of the following:
[0167] First charging scenario: a scenario of charging at home at night; the first charging scenario corresponds to a first charging power and a first power;
[0168] Second charging scenario: charging at home at noon; the second charging scenario corresponds to a second charging power and a second power, the second charging power is greater than the first charging power,
[0169] The third charging scenario: a scenario of charging at the company at noon; the third charging scenario corresponds to a third charging power and a third amount of electricity, and the third charging power is greater than the second charging power.
[0170] Fourth charging scenario: a scenario of charging at home in the morning. The fourth charging scenario corresponds to a fourth charging power and a fourth power. The fourth charging power is greater than the third charging power.
[0171] Fifth charging scenario: a scenario in which charging is performed at a location other than home or company. The fifth charging scenario corresponds to a fifth charging power and a fifth power level. The fifth charging power is greater than the third charging power.
[0172] See also Figure 8 , Figure 8 FIG. 1 is a structural diagram of a server disclosed in an embodiment of the present application. Figure 8 The server shown may include a processor 801 and a memory 802 , wherein the introduction of the processor 801 and the memory 802 may refer to the above introduction of the processor 701 and the memory 702 , which will not be repeated here.
[0173] In the embodiment of the present application, the processor 801 also has the following functions:
[0174] Receiving status information sent by a terminal device; wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network;
[0175] Determine a current charging scenario corresponding to the terminal device according to the status information, wherein the current charging scenario corresponds to a target charging power and a target power;
[0176] Sending first information to the terminal device, where the first information is used to indicate the current charging scenario.
[0177] In the embodiment of the present application, the processor 801 also has the following functions:
[0178] According to the status information, the current charging scenario corresponding to the terminal device is determined by a scene recognition model; wherein the scene recognition model is trained based on multiple charging scenarios of the terminal device in a first time period and the status information of the terminal device in each charging scenario.
[0179] In the embodiment of the present application, the processor 801 also has the following functions:
[0180] A preset charging scenario among multiple preset charging scenarios that matches the status information is determined as a current charging scenario corresponding to the terminal device.
[0181] An embodiment of the present application discloses a computer-readable storage medium having executable program code stored thereon. When the executable program code is executed by a processor, the method executed by a terminal device or a server in the embodiment of the present application is implemented.
[0182] The embodiment of the present application discloses a computer program product. When the computer program product is executed on a computer, the computer implements the method executed by a terminal device or a server in the embodiment of the present application.
[0183] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer implements the method executed by a terminal device or a server in the embodiment of the present application.
[0184] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0185] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0186] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0187] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0188] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0189] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0190] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0191] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0192] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0193] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0194] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0195] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0196] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A charging method, applied to a terminal device, characterized in that: include: When the terminal device starts charging, determining a current charging scenario corresponding to the terminal device according to the status information of the terminal device, wherein the current charging scenario corresponds to a target charging power and a target power, wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network; The target charging power is used to charge the terminal device to the target power.
2. The method according to claim 1, characterized in that When the terminal device starts charging, determining the current charging scenario corresponding to the terminal device according to the status information of the terminal device includes: When the terminal device starts charging, sending status information of the terminal device to a server; First information sent by the server in response to the status information is received, where the first information is used to indicate the current charging scenario.
3. The method according to claim 1, characterized in that When the terminal device starts charging, determining the current charging scenario corresponding to the terminal device according to the status information of the terminal device includes: When the terminal device starts charging, the current charging scene corresponding to the terminal device is determined through a scene recognition model based on the status information of the terminal device; wherein the scene recognition model is trained based on multiple charging scenes of the terminal device in the first time period and the status information of the terminal device in each charging scene.
4. The method according to any one of claims 1 to 3, characterized in that: When the terminal device starts charging, determining the current charging scenario corresponding to the terminal device according to the status information of the terminal device includes: When the terminal device starts charging, if the battery optimization function corresponding to the terminal device is turned on, the current charging scenario corresponding to the terminal device is determined according to the status information of the terminal device.
5. The method according to claim 4, characterized in that The method further comprises: When charging of the terminal device is started, obtaining a battery health level of the terminal device; If the battery health level is at a preset health level, the battery optimization function corresponding to the terminal device is enabled.
6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the terminal device starts charging, if a target application is running in the foreground of the terminal device, a prompt message is output to prompt the user to close the target application; wherein the target application refers to an application whose power consumption per unit time is greater than a power threshold.
7. The method according to any one of claims 1 to 3, characterized in that: The current charging scenario is any one of a plurality of preset charging scenarios, and each of the plurality of preset charging scenarios corresponds to a different charging power and / or amount of electricity.
8. The method according to claim 7, characterized in that The current charging scenario is any one of the following: First charging scenario: a scenario of charging at home at night; the first charging scenario corresponds to a first charging power and a first power; Second charging scenario: charging at home at noon; The second charging scenario corresponds to a second charging power and a second power, and the second charging power is greater than the first charging power. The third charging scenario: a scenario of charging at the company at noon; the third charging scenario corresponds to a third charging power and a third amount of electricity, and the third charging power is greater than the second charging power. Fourth charging scenario: a scenario of charging at home in the morning. The fourth charging scenario corresponds to a fourth charging power and a fourth power. The fourth charging power is greater than the third charging power. Fifth charging scenario: a scenario in which charging is performed at a location other than home or company. The fifth charging scenario corresponds to a fifth charging power and a fifth power level. The fifth charging power is greater than the third charging power.
9. A charging method, applied to a server, characterized in that: include: Receiving status information sent by a terminal device; wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network; Determine a current charging scenario corresponding to the terminal device according to the status information, wherein the current charging scenario corresponds to a target charging power and a target power; Sending first information to the terminal device, where the first information is used to indicate the current charging scenario.
10. The method according to claim 9, characterized in that The determining, according to the state information, a current charging scenario corresponding to the terminal device includes: According to the status information, the current charging scenario corresponding to the terminal device is determined by a scene recognition model; wherein the scene recognition model is trained based on multiple charging scenarios of the terminal device in a first time period and the status information of the terminal device in each charging scenario.
11. The method according to claim 9, characterized in that The determining, according to the state information, a current charging scenario corresponding to the terminal device includes: A preset charging scenario among multiple preset charging scenarios that matches the status information is determined as a current charging scenario corresponding to the terminal device.
12. A charging device, applied to a terminal device, characterized in that: include: A first determining unit is used to determine, when the terminal device starts charging, a current charging scenario corresponding to the terminal device according to the status information of the terminal device, wherein the current charging scenario corresponds to a target charging power and a target power, wherein the status information includes at least any one of the following: current location information, current time information, and a name of a currently connected wireless network; A charging unit is used to charge the terminal device to the target power using the target charging power.
13. A charging device, applied to a server, characterized in that: include: A receiving unit, configured to receive status information sent by a terminal device; wherein the status information includes at least any one of the following: current location information, current time information, and the name of the currently connected wireless network; A second determining unit, configured to determine a current charging scenario corresponding to the terminal device according to the state information, wherein the current charging scenario corresponds to a target charging power and a target power; A sending unit is used to send first information to the terminal device, where the first information is used to indicate the current charging scenario.
14. An electronic device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method as described in any one of claims 1-8 or 9-11.
15. A computer-readable storage medium having executable program code stored thereon, characterized in that: When the executable program code is executed by a processor, the method described in any one of claims 1-8 or 9-11 is implemented.