Charging method and device, electronic equipment and medium

By realizing intelligent detection of target scenarios and dynamic adjustment of charging parameters in electronic devices, the problem that shared power banks in outdoor scenarios is difficult to meet the needs of fast charging, and the adaptability and user experience of charging are improved.

CN119628128APending Publication Date: 2025-03-14BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311175132.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-12
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The output power of existing shared power banks is low, and electronic equipment manufacturers have strict control over non-standard charging connections, which makes it difficult for users to use shared power banks in outdoor scenarios to quickly charge electronic devices.

Method used

The detection information determines that the electronic device is in the target scene, obtains charging adjustment parameters, determines the target charging parameters based on these parameters, and charges in this way. The specific steps include obtaining detection information, determining charging adjustment parameters, calculating target charging parameters and charging execution.

Benefits of technology

It realizes intelligent detection of electronic devices and dynamic adjustment of charging strategies in the target scenario, improves the adaptability, richness and perception of charging functions, reduces users' battery anxiety in the target scenario, and improves users' charging experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119628128A_ABST
    Figure CN119628128A_ABST
Patent Text Reader

Abstract

The invention relates to a charging method and device, electronic equipment and a medium, and the method comprises the steps: determining that the electronic equipment is located in a target scene based on detection information; obtaining a charging adjustment parameter determined based on the state information of the electronic device and / or a device parameter of a power supply device for supplying power to the electronic device; determining a target charging parameter based on the charging adjustment parameter; and charging based on the target charging parameter. According to the invention, intelligent detection of the target scene and dynamic adjustment of the charging strategy are realized, so that the electronic equipment can be rapidly charged according to the target charging parameter in the target scene, the adaptability, richness and perceptibility of the charging function are improved, the electric quantity anxiety of a user in the target scene is reduced, and the user experience is improved. And the charging experience of the user in the target scene is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a charging method, device, electronic device and medium. Background Art

[0002] With the rapid development of electronic technology, electronic devices such as smart phones, tablets, and smart watches are widely used in daily life. Since the interactive functions of electronic devices require the support of load power consumption, the power of electronic devices decreases quickly. At the same time, the portability of electronic devices restricts the increase of battery capacity, which leads to the increasingly prominent battery life problem of electronic devices and the increasing power anxiety of users.

[0003] Compared with indoor scenarios such as homes and offices where timely charging is possible, users pay significantly more attention to the battery level of electronic devices when they are in leisure outdoor scenarios such as scenic spots and streets. Bringing one's own power bank or renting a shared power bank has become the most common and effective way to charge in time outdoors.

[0004] However, the output power of most shared power banks on the market is low, and electronic equipment manufacturers have strict control over non-standard charging connections, making it difficult to meet users' actual needs for fast charging of electronic devices when using shared power banks in outdoor scenarios. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a charging method, device, electronic device and medium.

[0006] According to a first aspect of an embodiment of the present disclosure, a charging method is provided, which is applied to an electronic device, and the charging method includes:

[0007] Based on the detection information, determining that the electronic device is in a target scene;

[0008] Acquiring a charging adjustment parameter, where the charging adjustment parameter is determined based on the status information of the electronic device and / or a device parameter of a power supply device for supplying power to the electronic device;

[0009] Based on the charging adjustment parameter, determining a target charging parameter;

[0010] Charging is performed based on the target charging parameter.

[0011] In some exemplary embodiments of the present disclosure, the charging adjustment parameter is determined based on a device parameter of a power supply device used to supply power to the electronic device, and acquiring the charging adjustment parameter includes:

[0012] Establishing a communication connection with the power supply device;

[0013] The charging protocol type of the power supply device is obtained as the charging adjustment parameter.

[0014] In some exemplary embodiments of the present disclosure, the charging adjustment parameter is determined based on the status information of the electronic device, and acquiring the charging adjustment parameter includes:

[0015] At least one of a battery power of the electronic device and a temperature parameter of the electronic device is obtained.

[0016] In some exemplary embodiments of the present disclosure, determining a target charging parameter based on the charging adjustment parameter includes:

[0017] Based on the charging adjustment parameter, determining a reference charging parameter and a compensation parameter;

[0018] Obtaining pre-stored weight parameters of the charging adjustment parameters;

[0019] The target charging parameter is determined based on the reference charging parameter, the compensation parameter, and the weight parameter.

[0020] In some exemplary embodiments of the present disclosure, the charging adjustment parameters include the charging protocol type, the battery power, and the temperature parameter, and determining the reference charging parameter and the compensation parameter based on the charging adjustment parameters includes:

[0021] Based on the charging protocol type, determining a first reference charging parameter and a first compensation parameter;

[0022] Based on the battery power, determining a second reference charging parameter and a second compensation parameter;

[0023] Based on the temperature parameter, a third reference charging parameter and a third supplementary parameter are determined.

[0024] In some exemplary embodiments of the present disclosure, the obtaining of the pre-stored weight parameter of the charging adjustment parameter includes:

[0025] Obtain pre-stored weight parameters of the charging protocol type, the battery power, and the temperature parameter.

[0026] In some exemplary embodiments of the present disclosure, determining the target charging parameter based on the reference charging parameter, the compensation parameter and the weight parameter includes:

[0027] The target charging parameter is determined based on the weight parameter, the first reference charging parameter and the first compensation parameter, the second reference charging parameter and the second compensation parameter, and the third reference charging parameter and the third supplementary parameter.

[0028] In some exemplary embodiments of the present disclosure, determining a first reference charging parameter and a first compensation parameter based on the charging protocol type includes:

[0029] Based on the charging protocol type, determining a charging power range to which the charging protocol type belongs;

[0030] Based on the charging power interval and pre-stored first configuration information, a first reference charging parameter and a first compensation parameter are determined, wherein the first configuration information is used to characterize the corresponding relationship between the charging power interval and the reference charging parameter and the compensation parameter.

[0031] In some exemplary embodiments of the present disclosure, determining a second reference charging parameter and a second compensation parameter based on the battery power includes:

[0032] Based on the battery power, determining the power range to which the battery power belongs;

[0033] Based on the power range and pre-stored second configuration information, a second reference charging parameter and a second compensation parameter are determined, wherein the second configuration information is used to characterize the corresponding relationship between the power range and the reference charging parameter and the compensation parameter.

[0034] In some exemplary embodiments of the present disclosure, determining a third reference charging parameter and a third supplementary parameter based on the temperature parameter includes:

[0035] Based on the temperature parameter, determining the temperature interval to which the temperature parameter belongs;

[0036] Based on the temperature range and pre-stored third configuration information, a third reference charging parameter and a third compensation parameter are determined, wherein the third configuration information is used to characterize the corresponding relationship between the temperature range and the reference charging parameter and the compensation parameter.

[0037] In some exemplary embodiments of the present disclosure, determining that the electronic device is in the target scene based on the detection information includes at least one of the following methods:

[0038] The detection information includes positioning information, and when the positioning information indicates that the electronic device is in a target area, it is determined that the electronic device is in the target scene, wherein the target area is an area where the electronic device cannot be connected to a charger for charging;

[0039] The detection information includes displacement information, and when the displacement information is greater than or equal to a first preset threshold within a first preset time period, it is determined that the electronic device is in the target scene;

[0040] The detection information includes ambient light information, and when the ambient light information is greater than or equal to a second preset threshold, it is determined that the electronic device is in the target scene;

[0041] The detection information includes network hotspot information, which includes the number of network hotspots, the name of the network hotspots, and the type of the network hotspots. If the network hotspot information meets a preset condition, it is determined that the electronic device is in the target scene.

[0042] The detection information includes motion information, and when the motion information indicates that the user is in motion, it is determined that the electronic device is in the target scene;

[0043] The detection information includes image information, and when the image information represents that the user is in the target area, it is determined that the electronic device is in the target scene.

[0044] In some exemplary embodiments of the present disclosure, the network hotspot information satisfies a preset condition, and determining that the electronic device is in the target scene includes at least one of the following methods:

[0045] When the number of the network hotspots is less than or equal to a third preset threshold, determining that the electronic device is in the target scene;

[0046] When the network hotspot type indicates that the electronic device is in the target area, determining that the electronic device is in the target scene;

[0047] When the name of the network hotspot does not match the network hotspot in the pre-stored network list, it is determined that the electronic device is in the target scene.

[0048] In some exemplary embodiments of the present disclosure, the charging method further includes:

[0049] Based on the first instruction, starting a target intelligent charging function to identify the target scene; and / or,

[0050] Based on the second instruction, determining the type of the detection information; and / or,

[0051] Based on the third instruction, the type of the charging adjustment parameter is determined.

[0052] According to a second aspect of an embodiment of the present disclosure, a charging device is provided, which is applied to an electronic device, and the charging device includes:

[0053] A scene detection unit, configured to determine that the electronic device is in a target scene based on the detection information;

[0054] a parameter monitoring unit, configured to obtain a charging adjustment parameter, wherein the charging adjustment parameter is determined based on the status information of the electronic device and / or a device parameter of a power supply device for supplying power to the electronic device;

[0055] a parameter calculation unit, configured to determine a target charging parameter based on the charging adjustment parameter;

[0056] A charging execution unit is used to perform charging based on the target charging parameter.

[0057] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:

[0058] at least one sensor;

[0059] processor;

[0060] a memory for storing processor-executable instructions;

[0061] Among them, the processor is configured to execute executable instructions in the memory to implement the charging method provided in the first aspect of the present disclosure.

[0062] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the charging method provided by the first aspect of the present disclosure is implemented.

[0063] The above method disclosed in the present invention has the following beneficial effects: the present invention realizes intelligent detection of target scenarios and dynamic adjustment of charging strategies, so that electronic devices can be quickly charged with target charging parameters in target scenarios, thereby improving the adaptability, richness and perception of charging functions, while reducing users' anxiety about battery life in target scenarios and improving users' charging experience in target scenarios.

[0064] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0066] Figure 1 is a flow chart of a charging method according to an exemplary embodiment.

[0067] Figure 2 is a flow chart of a charging method according to an exemplary embodiment.

[0068] Figure 3is a flow chart of a charging method according to an exemplary embodiment.

[0069] Figure 4a The diagram is a schematic diagram of an application scenario according to an exemplary embodiment.

[0070] Figure 4b is another schematic diagram of an application scenario according to an exemplary embodiment.

[0071] Figure 5 is a block diagram of a charging device according to an exemplary embodiment.

[0072] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0074] At present, the current charging acceleration schemes in the industry are mainly implemented based on the parameters of the charging link itself, such as battery temperature, the power of the electronic device, and the application running status of the electronic device, such as running games, playing videos, etc. The current charging acceleration scheme cannot effectively identify the charging behavior of users in outdoor scenes, so it is impossible to adjust the charging strategy when using power banks and other power supply devices to charge electronic devices in outdoor scenes, and it is impossible to achieve the charging speed regulation effect in specific scenarios.

[0075] In order to solve the above problems, the present disclosure provides a charging method, which, based on detection information, determines that the electronic device is in a target scenario where the user is prone to battery anxiety, periodically obtains charging adjustment parameters related to the status information of the electronic device and / or the device parameters of a power supply device used to power the electronic device, and determines the target charging parameters of the electronic device according to the charging adjustment parameters, so that the electronic device can be quickly charged with the target charging parameters in the target scenario, realizes intelligent detection of the target scenario and dynamic adjustment of the charging strategy, improves the adaptability, richness and perception of the charging function, and at the same time reduces the user's battery anxiety in the target scenario, and improves the user's charging experience in the target scenario.

[0076] The target scenarios mentioned in the present disclosure include, but are not limited to, outdoor scenarios where users are prone to battery anxiety, scenarios where users need to charge quickly, scenarios where users cannot use a fixed power source for charging, etc. In order to facilitate the description of the charging method provided by the present disclosure, outdoor scenarios are mainly used as target scenarios in subsequent embodiments.

[0077] The exemplary embodiments of the present disclosure provide a charging method, which is applied to an electronic device, and the electronic device may be a smart electronic device with adjustable charging power, such as a mobile phone, a tablet computer, a smart wearable device, etc. Figure 1 As shown, the charging method shown in the present disclosure includes:

[0078] S101, determining that the electronic device is in a target scene based on the detection information;

[0079] S102: Acquire a charging adjustment parameter, where the charging adjustment parameter is determined based on status information of the electronic device and / or a device parameter of a power supply device for supplying power to the electronic device;

[0080] S103, determining a target charging parameter based on the charging adjustment parameter;

[0081] S104: Charging based on target charging parameters.

[0082] In step S101, when the electronic device is in the target scene, the user cannot find a fixed power source to charge the electronic device at any time as in the indoor scene, so it is necessary to distinguish the scene where the electronic device is located. The target scene can be divided according to the location, for example, home, office, etc. are regarded as non-target scenes, and parks, pedestrian streets, shopping malls, etc. are regarded as target scenes; the target scene can also be divided according to whether the user can use a non-fixed power source to charge the electronic device. For example, if the user's home is out of power and cannot use a fixed power source for charging, and can only use a power bank for charging, then the home is classified as the target scene; for another example, the user is in the gym while watching a video on an electronic device while exercising on a treadmill. Because it is far away from a fixed power source, it can only be charged with a power bank, so the gym is classified as the target scene.

[0083] In addition, if the user does not use a fast charging charger that is specially equipped with the electronic device and conforms to the preset charging protocol, but instead uses an ordinary charger (i.e., a charger that cannot charge the electronic device through the fast charging protocol) to charge the electronic device, the above situation can also be considered as a target scenario.

[0084] The specific area of ​​the target scene can be directly set by the user. For example, the user can save the regional location of a shopping mall, park, etc. as the target scene information in the electronic device. When the detection information matches the pre-stored target scene information, it can be determined that the electronic device is in the target scene. The target scene can also be distinguished by the electronic device based on the regional information obtained by the connection with the server. For example, when the user is in a shopping mall, the detection information determines that the user is currently in the shopping mall. The shopping mall is obtained as an outdoor scene through communication with the server, and the electronic device is determined to be in the target scene.

[0085] The detection information is used to determine whether the electronic device is in the target scene. The detection information includes position information, displacement information, ambient light information, motion information, and other information that can distinguish whether the electronic device is in the target scene or the non-target scene. For example, the electronic device can obtain the current position information of the electronic device through a positioning device such as GPS, and compare the position information with the pre-stored target scene information to determine whether the electronic device is in the target scene. If the pre-stored target scene information contains the current position information, the electronic device is in the target scene. If the pre-stored target scene information does not contain the current position information, the electronic device is in the non-target scene. For another example, the ambient light intensity of an outdoor scene is usually higher than 50,000 lux. All outdoor scenes are set as target scenes. The electronic device obtains the current ambient light information of the electronic device through a light sensor. If the ambient light information indicates that the current ambient light intensity is higher than 50,000 lux, it is determined that the electronic device is in the target scene. If the ambient light information indicates that the current ambient light intensity is lower than 50,000 lux, it is determined that the electronic device is in the non-target scene.

[0086] In step S102, during the charging process of the electronic device, the charging adjustment parameter is related to at least one of the state information of the electronic device and the device parameter of the power supply device. The charging adjustment parameter affects the charging speed of the electronic device in the target scene, that is, a preliminary charging parameter is first determined according to the charging adjustment parameter, and the preliminary charging parameter is adjusted according to the charging adjustment parameter to improve the charging efficiency and charging speed to a certain extent. The state information of the electronic device includes the application currently running on the electronic device, the current power of the electronic device, the current temperature of the electronic device, etc. The device parameters of the power supply device include the charging protocol type, the maximum output power allowed, the power supply capacity, etc.

[0087] In step S103, when the electronic device is in the target scene, the user's attention to the power of the electronic device increases significantly. In order to meet the user's demand for power in the target scene, it is necessary to dynamically adjust the target charging parameters according to the charging adjustment parameters related to the status information of the electronic device and the device parameters of the power supply device. The target charging parameters include charging power, charging current, charging voltage, etc., usually charging power, and then the charging current or charging voltage can be adjusted according to the charging power. The electronic device obtains the target charging parameters by filtering, weighting, and range grading each charging adjustment parameter.

[0088] Among them, filtering and screening refers to selecting one or more charging adjustment parameters from a large number of charging adjustment parameters as charging adjustment parameters for determining the target charging parameters. Since some charging adjustment parameters have a greater impact on the charging power and some charging adjustment parameters have a smaller impact on the charging power, the charging adjustment parameters that have a greater impact on the charging power can be selected from a large number of charging adjustment parameters.

[0089] Among them, weight allocation means that the electronic device allocates a corresponding proportion to each charging adjustment parameter that determines the target charging parameter. For example, if the target charging parameter is determined by one charging adjustment parameter, the weight parameter of the charging adjustment parameter is allocated 100%; if the target charging parameter is determined by two charging adjustment parameters, the weight parameter of one charging adjustment parameter is allocated 30%, and the weight parameter of the other charging adjustment parameter is allocated 70%.

[0090] Among them, range grading refers to determining the range of the charging power corresponding to the charging adjustment parameter, and grading the charging speed increase gear according to the charging power range. For example, for the charging power range below 30W, it is set as the charging low speed increase gear, and the charging power limit is relaxed by 2W; for the charging power range above 30W and below 60W, it is set as the charging medium speed increase gear, and the charging power limit is relaxed by 5W; for the charging power range above 60W, it is set as the charging high speed increase gear, and the charging power limit is relaxed by 8W. Based on the above records, if it is determined that the charging power corresponding to a certain charging adjustment parameter is 50W, it belongs to the charging medium speed increase gear with a charging power range of above 30W and below 60W, so the charging power limit is relaxed by 5W, that is, the charging power corresponding to the charging adjustment parameter is determined to be 50+5=55W. If it is determined that the charging power corresponding to another charging adjustment parameter is 70W, it belongs to the charging high speed increase gear with a charging power range of above 60W, so the charging power is relaxed and displayed by 8W, that is, the charging power corresponding to the charging adjustment parameter is determined to be 70+8=78W.

[0091] In one example, the target charging parameter can be obtained by weighted calculation based on the charging power determined after compensation of each charging adjustment parameter. For example, the electronic device includes two charging adjustment parameters, namely the first charging adjustment parameter and the second charging adjustment parameter, but only the first charging adjustment parameter is used as the charging adjustment parameter for determining the target charging parameter. The first charging adjustment parameter determines that the charging power in the target scenario is 50W, which belongs to the speed increase gear in charging. The charging power is relaxed by 5W, and the weight parameter is 100%. Therefore, the charging power corresponding to the target charging parameter is (50+5)*100%=55W. For another example, the electronic device includes two charging adjustment parameters, namely a first charging adjustment parameter and a second charging adjustment parameter. The first charging adjustment parameter and the second adjustment parameter are used as charging adjustment parameters for determining the target charging parameters. The first charging adjustment parameter determines that the charging power in the target scenario is 50W, which belongs to a medium charging speed gear, the charging power is relaxed by 5W, and the weight parameter is 40%. The second charging adjustment parameter determines that the charging power in the target scenario is 70W, which belongs to a high charging speed gear, the charging power is relaxed by 8W, and the weight parameter is 60%. Therefore, the charging power corresponding to the target charging parameter is (50+5)*40%+(70+8)*60%=68.8W.

[0092] In another example, the target charging parameter can be obtained by averaging the charging power determined after compensation of each charging adjustment parameter. For example, the electronic device includes two charging adjustment parameters, which are the first charging adjustment parameter and the second charging adjustment parameter, but only the first charging adjustment parameter is used as the charging adjustment parameter for determining the target charging parameter. The first charging adjustment parameter determines that the charging power in the target scene is 50W, which belongs to the charging speed increase gear, and the charging power is relaxed by 5W, so the charging power corresponding to the target charging parameter is (50+5) / 1=55W. For another example, the electronic device includes two charging adjustment parameters, which are the first charging adjustment parameter and the second charging adjustment parameter, and the first charging adjustment parameter and the second adjustment parameter are used as the charging adjustment parameters for determining the target charging parameter. The first charging adjustment parameter determines that the charging power in the target scene is 50W, which belongs to the charging speed increase gear, and the charging power is relaxed by 5W. The second charging adjustment parameter determines that the charging power in the target scene is 70W, which belongs to the charging high speed increase gear, and the charging power is relaxed by 8W, so the charging power corresponding to the target charging parameter is [(50+5)+(70+8)] / 2=66.5W.

[0093] In step S104, after determining the target charging parameters, the current charging power of the electronic device is updated to the target charging parameters. According to the performance differences of the electronic devices and the differences in charging design and protocol, the upper limit of the charging current or the upper limit of the charging voltage can be adjusted to achieve the electronic device to charge with the target charging parameters in the target scenario, so as to achieve the effect of fast charging. For example, the upper limit of the current charging current of the electronic device is 2A, and the upper limit of the charging voltage is 40V. In order to achieve the target charging parameter of 90W, the upper limit of the charging current is adjusted to 2.25A, or the upper limit of the charging voltage is adjusted to 45V, so as to charge the electronic device to improve the charging speed and charging efficiency.

[0094] In the present disclosure, after determining that the electronic device is in the target scene, the target charging parameters are determined based on the charging adjustment parameters determined by the status information of the electronic device and the device parameters of the power supply device used to power the electronic device, and the electronic device is charged with the target charging parameters, thereby realizing intelligent detection of the target scene and dynamic adjustment of the charging strategy, improving the adaptability, richness and perception of the charging function, and at the same time reducing the user's battery anxiety in the target scene, and improving the user's charging experience in the target scene.

[0095] According to an exemplary embodiment, Figure 2 As shown, the charging method in this embodiment includes:

[0096] S201, determining that the electronic device is in a target scene based on the detection information;

[0097] S202, establishing a communication connection with a power supply device;

[0098] S203, obtaining a charging protocol type of the power supply device;

[0099] S204, obtaining at least one of a battery power of the electronic device and a temperature parameter of the electronic device;

[0100] S205, determining a reference charging parameter and a compensation parameter based on the charging adjustment parameter;

[0101] S206, obtaining a pre-stored weight parameter of a charging adjustment parameter;

[0102] S207, determining a target charging parameter based on the reference charging parameter, the compensation parameter and the weight parameter;

[0103] S208: Charging based on target charging parameters.

[0104] In some embodiments, step S201 determines that the electronic device is in the target scene based on the detection information, including at least one of the following methods:

[0105] The detection information includes positioning information, and when the positioning information indicates that the electronic device is in a target area, it is determined that the electronic device is in a target scene, wherein the target area is an area where the electronic device cannot be connected to a charger for charging;

[0106] The detection information includes displacement information. When the displacement information is greater than or equal to a first preset threshold value within a first preset time period, it is determined that the electronic device is in the target scene.

[0107] The detection information includes ambient light information, and when the ambient light information is greater than or equal to a second preset threshold, it is determined that the electronic device is in the target scene;

[0108] The detection information includes network hotspot information, which includes the number of network hotspots, the name of the network hotspots, and the type of the network hotspots. The network hotspot information meets the preset conditions, and it is determined that the electronic device is in the target scene;

[0109] The detection information includes motion information, and the motion information indicates that when the user is in motion, it is determined that the electronic device is in the target scene;

[0110] The detection information includes image information. When the image information represents that the user is in the target area, it is determined that the electronic device is in the target scene.

[0111] If the detection information includes positioning information, it can be determined whether the electronic device is in the target scene based on the positioning information obtained by the communication connection with the positioning device such as GPS. The electronic device has a pre-stored target area, which represents the area where the electronic device cannot be connected to the charger for charging, such as shopping malls, pedestrian streets, parks, etc. The target area can be specified by the user and saved in the mobile phone. For example, the user saves Chang'an Park and Wanda Mall, which are often visited by the user, as target areas in the electronic device. When the positioning information indicates that it is in Wanda Mall, it can be determined that the electronic device is in the target scene; the target area can also be determined by the electronic device based on the information of each scene obtained by connecting to the server. For example, the electronic device obtains the location 1,000 meters away from the office as a park through connection with the server, and the park is saved as the target area in the electronic device. When the positioning information indicates that it is in the park, it can be determined that the electronic device is in the target scene.

[0112] If the detection information includes displacement information, it can be determined whether the electronic device is in the target scene based on the displacement information. If the outdoor scene is set as the target scene, due to the limited range of the indoor scene, the displacement trajectory of the electronic device is fitted based on the position information of the electronic device at the beginning and end of the first preset time, and the displacement distance is calculated, and then by comparing with the first preset threshold, it can be determined whether the electronic device is in the target scene. The user can determine the first preset threshold based on the indoor scene that the individual often uses. For example, the area of ​​the user's home is 100 square meters, and the user sets the first preset threshold to 20 meters. When the displacement distance of the electronic device within 5 minutes exceeds 20 meters, it is determined that the electronic device has left the indoor scene and is in the target scene.

[0113] If the detection information includes ambient light information, it can be determined whether the electronic device is in the target scene based on the ambient light information. If the outdoor scene is set as the target scene, since the outdoor scene is mostly a bright environment, the ambient light intensity of the outdoor scene is much higher than that of the indoor scene. Therefore, the electronic device can obtain the ambient light information of the scene where the electronic device is currently located in real time or periodically through the light sensor. If the ambient light information is greater than or equal to the second preset threshold, it is determined that the electronic device is in the target scene. For example, the second preset threshold is set to 10000 lux, and the electronic device obtains the current ambient light information of the electronic device through the light sensor. If the ambient light information indicates that the current ambient light intensity is 15000 lux, which is greater than the second preset threshold, it is determined that the electronic device is in an outdoor scene, that is, in the target scene; if the ambient light information indicates that the current light intensity is 5000 lux, which is less than the second preset threshold, it is determined that the electronic device is in an indoor scene, that is, in a non-target scene.

[0114] If the detection information includes network hotspot information, it can be determined whether the electronic device is in the target scene based on the network hotspot information. The network hotspot information includes the number of network hotspots, the name of the network hotspot, and the type of network hotspots. The electronic device can scan nearby network hotspots in real time or periodically. When the network hotspot information meets the preset conditions, it can be determined that the electronic device is in the target scene.

[0115] In some embodiments, the network hotspot information satisfies a preset condition, and determining that the electronic device is in the target scene includes at least one of the following methods:

[0116] When the number of network hotspots is less than or equal to a third preset threshold, determining that the electronic device is in the target scene;

[0117] When the network hotspot type indicates that the electronic device is in the target area, it is determined that the electronic device is in the target scene;

[0118] When the name of the network hotspot does not match the network hotspot in the pre-stored network list, it is determined that the electronic device is in the target scene.

[0119] Compared with indoor scenes such as homes and offices, the number of network hotspots in outdoor scenes such as parks and scenic spots is relatively small. Therefore, when the outdoor scene is set as the target scene, when the number of network hotspots is less than or equal to the third preset threshold, the electronic device is determined to be in the target scene. The third preset threshold can be determined based on the indoor scene that the user often uses. For example, the electronic device can search for 4 network hotspots in the user's office, so the third preset threshold is set to 3. When the number of network hotspots collected by the electronic device is less than or equal to 3, it is determined that the electronic device is in the target scene.

[0120] The network hotspot type can be divided according to private networks and public networks, and can also be divided according to the area covered by the network hotspot. Usually, the network hotspot types contained in indoor scenes such as homes and offices are mostly private networks with limited coverage areas. The network types contained in outdoor scenes such as parks, pedestrian streets, and shopping malls are public networks with a wider coverage area. Therefore, when the outdoor scene is set as the target scene, the electronic device can determine whether the electronic device is in the target scene based on the network hotspot type. When the network hotspot type characterizes that the electronic device is in the target area, it can be determined that the electronic device is in the target scene. For example, if the network hotspot type indicates that the current network hotspot is a public network with a wide coverage area, such as the wifi of a shopping mall, it can be determined that the electronic device is in the target scene.

[0121] Since users usually have fixed network hotspots in indoor scenes, electronic devices will save the names of network hotspots in the network list to facilitate users to use network hotspots without having to repeat the connection operation. Therefore, when the name of the network hotspot collected by the electronic device does not match the network hotspot in the pre-stored network list, that is, the electronic device has never connected to the network hotspot before, it can be determined that the electronic device is in the target scene. For example, the names of the network hotspots in the pre-stored network list in the electronic device are jia101, bangongshi102, and the name of the acquired network hotspot is gongyuan. Since the name of the network hotspot does not match the pre-stored network hotspot, it can be determined that the electronic device is in the target scene.

[0122] If the detection information includes motion information, it can be determined whether the electronic device is in the target scene based on the motion information. The electronic device can identify the user's current motion state through devices such as gyroscopes and accelerometers. When the user is walking, running or riding, the electronic device cannot be fixed in a certain position for charging. Even if exercising at home, a mobile power supply is required for charging. Therefore, it can be determined based on the motion information that the electronic device is in the target scene. It should be noted that the target scene is not necessarily an open scene such as a park or a pedestrian street, but can also be a scene such as a restaurant or a shopping mall where charging is not possible at a fixed location. Any scene that requires the user to hold a mobile power supply for charging can be considered a target scene.

[0123] If the detection information includes image information, it can be determined whether the electronic device is in the target scene based on the image information. The electronic device can obtain the user's image information through a camera. The camera is in a normally open state and obtains the user's image information in real time. If the electronic device analyzes the image information and determines that the user is in the target area, it is determined that the electronic device is in the target scene. For example, the electronic device camera is an AON lens, which collects the user's current image information. The electronic device determines that the user is in a park by identifying the trees in the image information, so it is determined that the electronic device is in the target scene.

[0124] Here, it should be noted that, depending on the hardware configuration of the electronic device, the detection information of the electronic device may include multiple types, and a variety of different detection information can be used in combination to determine whether the electronic device is in the target scene, thereby improving the accuracy and reliability of the judgment process.

[0125] In step S202, the power supply device can be a wired charging device or a wireless charging device, such as a shared wired power bank, a wireless charger for a park seat, etc. The electronic device establishes a communication connection with the power supply device, and obtains the charging protocol type of the power supply device in step S203. The charging protocol type includes: DCP / ACA type of USB BC1.2 charging protocol, PD / PPS type of USB PD charging protocol, QC type of Qualcomm customized charging protocol, PE type of MediaTek customized charging protocol, BPP / EPP type of Qi standard of Wireless Charging Alliance, etc. Each charging protocol type allows different maximum power output. For example, the maximum output voltage of DCP type of USB BC1.2 charging protocol is 5V, and the maximum output current is 1.5A, so the maximum power output is 7.5W; the maximum power of PD type of USB PD charging protocol is 100W. Since the maximum power supply allowed for charging is different for each charging protocol type, that is, the charging protocol type determines the maximum charging power during the charging process, and the charging protocol type affects the charging speed of the electronic device, the electronic device uses the charging protocol type of the power supply device as a charging adjustment parameter.

[0126] In step S204, when the battery power of the electronic device is too low, the electronic device is allowed to be charged at a larger charging power, and when the battery power reaches a certain value, the charging current value decreases, and the charging power of the electronic device decreases. Since the electronic device will get hot during the charging process, when the temperature of the electronic device is too high, in order to avoid damage to the electronic device and the user caused by high temperature, the electronic device will reduce the charging power. It can be seen that the power of the electronic device and the temperature parameter of the electronic device will affect the charging speed of the electronic device (i.e., the target charging parameter), so the electronic device uses at least one of the battery power of the electronic device and the temperature parameter of the electronic device as a charging adjustment parameter.

[0127] In some embodiments, step S205 determines the reference charging parameter and the compensation parameter based on the charging adjustment parameter, including:

[0128] S2051. Determine a first reference charging parameter and a first compensation parameter based on the charging protocol type;

[0129] S2052, determining a second reference charging parameter and a second compensation parameter based on the battery power;

[0130] S2053. Determine a third reference charging parameter and a third supplementary parameter based on the temperature parameter;

[0131] In step S2051, the charging protocol type sets the maximum voltage and current values ​​that the power supply device is allowed to output. Based on the maximum voltage and current values, the maximum power value that the power supply device is allowed to output can be determined. The first reference charging parameter is the maximum charging power in the target scenario determined based on the charging protocol type. In order to achieve the purpose of dynamically adjusting the charging power to quickly complete charging, the electronic device will determine the first compensation parameter based on the first reference charging parameter to relax the charging power. Among them, the larger the first reference charging parameter, the larger the first compensation parameter.

[0132] In some embodiments, step S2051 determines a first reference charging parameter and a first compensation parameter based on the charging protocol type, including:

[0133] Based on the charging protocol type, determine the charging power range to which the charging protocol type belongs;

[0134] Based on the charging power interval and pre-stored first configuration information, a first reference charging parameter and a first compensation parameter are determined, wherein the first configuration information is used to characterize the corresponding relationship between the charging power interval and the reference charging parameter and the compensation parameter.

[0135] For example, the electronic device divides the charging power interval into the first charging power interval [0, 30W], the second charging power interval [31W, 60W] and the third charging power interval [60W, ∞), and the first configuration information represents the corresponding relationship between the charging power interval and the reference charging parameter and the compensation parameter, wherein the compensation parameter corresponding to the first charging power interval is 2W, the compensation parameter corresponding to the second charging power interval is 5W, and the compensation parameter corresponding to the third charging power interval is 8W. Therefore, if the maximum charging power in the target scenario is determined to be 50W based on the charging protocol type, that is, the first reference charging parameter is 50W, which belongs to the second charging power interval, and the first compensation parameter is determined to be 2W based on the first configuration information.

[0136] In step S2052, the battery charge will affect the charging power of the electronic device. Since the charging process of the electronic device includes trickle charging, pre-charging, constant current charging, and constant voltage charging, when the battery is completely out of power, it is necessary to prevent excessive current from entering the battery to avoid damage to the battery; after having a certain amount of power, high current or high voltage charging can be performed; when the battery power reaches the threshold, the charging current or voltage must be reduced to prevent overcharging from causing damage to the battery. Therefore, different amounts of power correspond to different charging powers of electronic devices, and the second reference charging parameter is the charging power in the target scenario determined based on the battery power. In order to achieve the purpose of dynamically adjusting the charging power to quickly complete charging, the electronic device will determine the second compensation parameter based on the second reference charging parameter to relax the charging power.

[0137] In some embodiments, step S2052 determines a second reference charging parameter and a second compensation parameter based on the battery power, including:

[0138] Based on the battery power, determine the power range to which the battery power belongs;

[0139] Based on the power range and the pre-stored second configuration information, a second reference charging parameter and a second compensation parameter are determined, wherein the second configuration information is used to characterize the corresponding relationship between the power range and the reference charging parameter and the compensation parameter.

[0140] For example, the electronic device divides the battery power into three power intervals: the first power interval [0%, 20%], the second power interval [21%, 80%], and the third power interval [81%, 100%]. The second configuration information characterizes the correspondence between the charging power interval and the reference charging parameter and the compensation parameter, wherein the second reference charging parameter corresponding to the first power interval is 50W and the compensation parameter is 8W, the second reference charging parameter corresponding to the second power interval is 40W and the compensation parameter is 4W, and the second reference charging parameter corresponding to the third power interval is 20W and the compensation parameter is 2W. Therefore, if the current battery power is 50%, it can be determined that the battery power belongs to the second power interval, and the second reference charging parameter is determined to be 40W and the second compensation parameter is 4W based on the second configuration information.

[0141] In step S2053, the temperature parameter will affect the charging power of the electronic device. When the temperature of the electronic device is too low, it will affect the activity of the battery, resulting in a decrease in the charging power and a reduction in the charging speed. When the temperature of the electronic device is too high, in order to avoid damaging the battery and other components, the electronic device will limit the charging current and voltage and reduce the charging power. Therefore, different temperature parameters correspond to different charging powers of electronic devices, that is, the third reference charging parameter is the charging power in the target scenario determined based on the temperature parameter. In order to achieve the purpose of dynamically adjusting the charging power to quickly complete charging, the electronic device will determine the third compensation parameter based on the third reference charging parameter to relax the charging power.

[0142] In some embodiments, step S2053 determines the third reference charging parameter and the third supplementary parameter based on the temperature parameter, including:

[0143] Based on the temperature parameter, determining the temperature interval to which the temperature parameter belongs;

[0144] Based on the temperature range and the pre-stored third configuration information, a third reference charging parameter and a third compensation parameter are determined, wherein the third configuration information is used to characterize the corresponding relationship between the temperature range and the reference charging parameter and the compensation parameter.

[0145] For example, the electronic device divides the temperature parameters into three temperature intervals: the first temperature interval [0°C, 20°C], the second temperature interval [21°C, 30°C], and the third temperature interval [31°C, 50°C]. The third configuration information characterizes the correspondence between the charging power interval and the reference charging parameter and the compensation parameter. The third reference charging parameter corresponding to the first temperature interval is 50W and the compensation parameter is 3W, the third reference charging parameter corresponding to the second temperature interval is 60W and the compensation parameter is 6W, and the third reference charging parameter corresponding to the third temperature interval is 20W and the compensation parameter is 1W. Therefore, if the current temperature parameter is 25°C, it can be determined that the temperature parameter belongs to the second temperature interval, and the third reference charging parameter is determined to be 50W and the third compensation parameter is 3W based on the third configuration information.

[0146] In step S206, since the user can select part of the charging adjustment parameters to constitute the target charging parameters for charging, or can select all the charging adjustment parameters for charging based on the default options of the electronic device, multiple groups of weight parameters of the charging adjustment parameters are pre-stored in the electronic device. When the charging adjustment parameters include the charging protocol type, the battery power and the temperature parameters, the electronic device pre-stores multiple groups of weight parameters of the charging protocol type, the battery power and the temperature parameters, and the weight parameters of each group add up to 100%. For example, if the electronic device only uses one of the charging protocol type, the battery power and the temperature parameter as the charging adjustment parameter, then the weight parameter corresponding to the charging adjustment parameter is 100%, so the electronic device will pre-store the three groups of weight parameters of the charging protocol type weight parameter of 100%, the battery power weight parameter of 100%, and the temperature parameter weight parameter of 100%. If the electronic device uses the charging protocol type and the battery power as charging adjustment parameters, the weight parameters can be determined according to the degree of influence on the charging power, such as setting the weight parameter of the charging protocol type to 60%, and setting the weight parameter of the battery power to 40%, so the electronic device will pre-store a set of weight parameters with a weight parameter of 60% for the charging protocol type and a weight parameter of 40% for the battery power. If the electronic device uses the charging protocol type, the battery power, and the temperature parameter as charging adjustment parameters, the weight parameters can be determined according to the degree of influence on the charging power, such as setting the weight parameter of the charging protocol type to 40%, setting the weight parameter of the battery power to 30%, and setting the weight parameter of the temperature parameter to 30%, so the electronic device will pre-store a set of weight parameters with a weight parameter of 40% for the charging protocol type, a weight parameter of 30% for the battery power, and a weight parameter of 30% for the temperature parameter.

[0147] In step S207, the electronic device determines the target charging parameter based on the reference charging parameter, the compensation parameter and the weight parameter. For example, when the charging adjustment parameter includes the charging protocol type, the battery power and the temperature parameter, the electronic device determines the target charging parameter based on the weight parameter, the first reference charging parameter and the first compensation parameter, the second reference charging parameter and the second compensation parameter and the third reference charging parameter and the third supplementary parameter. In one example, the electronic device performs weighted calculation based on the sum of the reference charging parameter and the compensation parameter corresponding to each charging adjustment parameter to obtain the target charging parameter. For example, the first reference charging parameter is 50W, the first compensation parameter is 2W, the second reference charging parameter is 40W, the second compensation parameter is 4W, the third reference charging parameter is 50W, and the third supplementary parameter is 3W. If the weight parameters of the charging protocol type, battery power and temperature parameters pre-stored in the electronic device are 50%, 25%, and 25% respectively, then the target charging parameter is 50%*(50+2)+25%*(40+4)+25%*(50+3)=50.25W, so the electronic device is charged at 50.25W in step S208. If the electronic device only has pre-stored weight parameters of the charging protocol type and the battery power of 50% and 50% respectively, the target charging parameter is weighted calculated using only the sum of the first reference charging parameter and the first compensation parameter, and the sum of the second reference charging parameter and the second compensation parameter, and the sum of the third reference charging parameter and the third supplementary parameter is not used for weighted calculation, that is, the target charging parameter is 50%*(50+2)+50%*(40+4)=48W, so the electronic device is charged at 48W in step S208. In addition, the electronic device can also calculate the target charging parameter using only the reference charging parameter and compensation parameter corresponding to the charging protocol type and the temperature parameter, or the reference charging parameter and compensation parameter corresponding to the temperature parameter and the battery power, and the calculation method is the same as above and will not be repeated here.

[0148] In another example, the electronic device performs an average calculation based on the sum of the reference charging parameter and the compensation parameter corresponding to each charging adjustment parameter to obtain the target charging parameter. For example, the first reference charging parameter is 50W, the first compensation parameter is 2W, the second reference charging parameter is 40W, the second compensation parameter is 4W, the third reference charging parameter is 50W, and the third supplementary parameter is 3W, then the target charging parameter is [(50+2)+(40+4)+(50+3)] / 3=49.7W.

[0149] In another example, the electronic device calculates the target charging parameter by adding the weighted calculation result of the reference charging parameter corresponding to each charging adjustment parameter and the average value of the compensation parameter. For example, the first reference charging parameter is 50W, the first compensation parameter is 2W, the first weight parameter is 50%, the second reference charging parameter is 40W, the second compensation parameter is 4W, the second weight parameter is 25%, the third reference charging parameter is 50W, the third supplementary parameter is 3W, and the third weight parameter is 20%, then the target charging parameter is 50%*50+25%*40+25%*50+(2+4+3) / 3=54.4W.

[0150] In the present disclosure, when it is detected that the electronic device is in a target scenario, the electronic device determines the target charging parameters based on the charging protocol type, battery power, and temperature parameters, so that the electronic device is charged according to the target charging parameters, thereby realizing dynamic regulation of the charging strategy. The target charging parameters can meet the charging needs of the user in the target scenario, and the fast charging speed can effectively alleviate the user's power anxiety and improve the user's charging experience in the target scenario.

[0151] According to an exemplary embodiment, Figure 3 As shown, the charging method in this embodiment includes:

[0152] S301, constructing a charging model for a target scenario;

[0153] S3011, obtaining a preset charging model;

[0154] S3012, determining the type of charging adjustment parameter based on the third instruction;

[0155] S3013, updating the charging model;

[0156] S302, monitoring the switch status of the target intelligent charging function;

[0157] S303, determining whether to start the target intelligent charging function based on the first instruction, if so, executing step S304; if not, executing step S302;

[0158] S304, monitoring the charging status of the electronic device;

[0159] S305, determining whether the electronic device is connected to charging, if so, executing step S306; if not, executing step S304;

[0160] S306, based on the detection information, determine whether the electronic device is in the target scene, if so, execute step S307; if not, execute step S310;

[0161] S307, obtaining charging adjustment parameters;

[0162] S308, determining a target charging parameter based on the charging adjustment parameter;

[0163] S309, charging based on target charging parameters;

[0164] S310: Start conventional charging.

[0165] Among them, steps S307-S309 are the same as those in the above embodiment and will not be repeated here.

[0166] In step S301, according to the hardware and software architecture design of the electronic device, a charging model for the target scene can be constructed based on the user's choice according to the user's personal usage habits. Among them, in step S3011, a preset charging model is obtained, wherein the preset charging model has determined the type of basic charging adjustment parameters, and the user can determine the type of charging adjustment parameters of personal preference based on the third instruction in step S3012, and update the charging model in step S3013. If the user does not determine the type of charging adjustment parameters based on the third instruction, the electronic device uses the preset charging model as the charging model for the target scene. For example, the preset charging model determines that the types of charging adjustment parameters include charging protocol type and battery power, and can determine to add temperature parameters as charging adjustment parameters based on the third instruction. Therefore, the electronic device updates the charging model and uses the charging model including the three charging adjustment parameters of charging protocol type, battery power and temperature parameters as the charging model for the target scene.

[0167] When constructing the charging model of the target scenario, the following methods can be used to construct the model. The electronic device provides an interface for constructing the charging model of the target scenario, such as adding a setting in the setting function of the electronic device or setting it through a special application. The setting interface is as follows: Figure 4a and Figure 4b As shown. Figure 4a As shown, the electronic device provides the user with a switch display interface of the target intelligent charging function, and supports the user to independently choose to turn the target intelligent charging function on and off. When the user chooses to turn on the target intelligent charging function, when the electronic device is subsequently used, if the electronic device determines that the user is currently in the target scene and wants to use a power bank or other power supply devices such as other people's mobile phones to charge the electronic device, the method in the above embodiment can be used to adjust the charging parameters during the charging process, so as to speed up the charging speed of the electronic device and reduce the user's anxiety about the battery power.

[0168] When the user Figure 4a After selecting the target smart charging function on the display interface shown in the figure, you will enter the following Figure 4b The menu selection interface shown in the figure allows users to Figure 4bOn the display interface shown, users can select the types of detection information involved in detecting whether the vehicle is in the target scenario and the types of charging adjustment parameters according to their preferences during use, thereby achieving dual improvements in charging intelligence and personalization, reducing users' anxiety about power consumption in the target scenario, and thereby reducing the number of charging customer complaints and improving the product's reputation.

[0169] For example, users Figure 4a After operating the interface in Figure 4b In the interface shown in FIG. 1 , the user can enable the target smart charging function based on the first instruction, for example, the user clicks Figure 4b The target smart charging switch option 40 is shown in FIG. The user can determine the type of detection information based on the second instruction according to personal habits, for example, the user clicks Figure 4b The switch option 41 of the ambient light information in the type of detection information shown in FIG. 4 is used as the detection information. The user can determine the type of charging adjustment parameter based on the third instruction. For example, the user clicks Figure 4b The charging protocol type switch option 42 in the type of charging adjustment parameters shown in the figure uses the temperature parameter as the charging adjustment parameter to construct a charging model for the target scene. Among them, the first instruction, the second instruction, and the third instruction can also be voice instructions, gesture instructions, etc. in addition to the touch instructions mentioned above, which will not be repeated here.

[0170] In step S302, the switch state of the target intelligent charging function is monitored. If the electronic device does not start the target intelligent charging function based on the first instruction in step S303, the monitoring of the switch state of the target intelligent charging function is returned. If the electronic device starts the target intelligent charging function based on the first instruction in step S303, step S304 is executed to further monitor the charging state of the electronic device, monitor the current temperature parameters, battery power and other charging adjustment parameters of the electronic device, and monitor whether the electronic device is connected to a power bank or other power supply device. If it is determined in step S305 that the electronic device is not in a charging connection, the monitoring of the charging state of the electronic device is returned. If it is determined in step S305 that the electronic device is in a charging connection, step S306 is executed to determine whether the electronic device is in the target scene based on the detection information. If the electronic device is not in the target scene, it means that the user can use a fixed power supply to charge the electronic device. Therefore, S310 is executed to start conventional charging, and charging is performed according to the charging protocol corresponding to the charger used in the charging process, for example, charging with 67W corresponding to fast charging, and charging with 10W corresponding to ordinary charging. Since the user can use a fixed power source for charging at any time, the user does not have power anxiety, so there is no need to use the charging model of the target scene to set additional compensation parameters for charging. If the electronic device is in the target scene, subsequent S307 to S309 are executed, and the electronic device is charged according to the target charging parameters determined by the charging model of the target scene.

[0171] The exemplary embodiment of the present disclosure provides a charging device, which is applied to electronic equipment. Figure 5 As shown, a block diagram of a charging device shown in the present disclosure.

[0172] The block diagram includes: a scene detection unit 51, a parameter monitoring unit 52, a parameter calculation unit 53, and a charging execution unit 54. The scene detection unit 51 is used to determine that the electronic device is in a target scene based on detection information; the parameter monitoring unit 52 is used to obtain charging adjustment parameters, and the charging adjustment parameters are determined based on the state information of the electronic device and / or the device parameters of the power supply device used to power the electronic device; the parameter calculation unit 53 is used to determine the target charging parameters based on the charging adjustment parameters; the charging execution unit 54 is used to charge based on the target charging parameters.

[0173] In an exemplary embodiment of the present disclosure, the parameter monitoring unit 52 is further used to: establish a communication connection with the power supply device; and obtain a charging protocol type of the power supply device as a charging adjustment parameter.

[0174] In an exemplary embodiment of the present disclosure, the parameter monitoring unit 52 is further configured to obtain at least one of a battery power of the electronic device and a temperature parameter of the electronic device.

[0175] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is also used to: determine a reference charging parameter and a compensation parameter based on the charging adjustment parameter; obtain a pre-stored weight parameter of the charging adjustment parameter; and determine a target charging parameter based on the reference charging parameter, the compensation parameter and the weight parameter.

[0176] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is also used to: determine a first reference charging parameter and a first compensation parameter based on the charging protocol type; determine a second reference charging parameter and a second compensation parameter based on the battery power; and determine a third reference charging parameter and a third supplementary parameter based on the temperature parameter.

[0177] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is further used to obtain pre-stored weight parameters of the charging protocol type, battery power and temperature parameters.

[0178] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is further used to determine the target charging parameter based on the weight parameter, the first reference charging parameter and the first compensation parameter, the second reference charging parameter and the second compensation parameter, and the third reference charging parameter and the third supplementary parameter.

[0179] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is also used to: determine the charging power range to which the charging protocol type belongs based on the charging protocol type; determine the first reference charging parameter and the first compensation parameter based on the charging power range and the pre-stored first configuration information, wherein the first configuration information is used to characterize the correspondence between the charging power range and the reference charging parameter and the compensation parameter.

[0180] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is also used to: determine the power range to which the battery power belongs based on the battery power; determine the second reference charging parameter and the second compensation parameter based on the power range and pre-stored second configuration information, wherein the second configuration information is used to characterize the correspondence between the power range and the reference charging parameter and the compensation parameter.

[0181] In an exemplary embodiment of the present disclosure, the parameter calculation unit 53 is also used to: determine the temperature range to which the temperature parameter belongs based on the temperature parameter; determine the third reference charging parameter and the third compensation parameter based on the temperature range and pre-stored third configuration information, wherein the third configuration information is used to characterize the correspondence between the temperature range and the reference charging parameter and the compensation parameter.

[0182] In an exemplary embodiment of the present disclosure, the scene detection unit 51 is also used for: the detection information includes positioning information, and when the positioning information indicates that the electronic device is in a target area, it is determined that the electronic device is in a target scene, wherein the target area is an area where the electronic device cannot be connected to a charger for charging; the detection information includes displacement information, and when the displacement information is greater than or equal to a first preset threshold value within a first preset time period, it is determined that the electronic device is in a target scene; the detection information includes ambient light information, and when the ambient light information is greater than or equal to a second preset threshold value, it is determined that the electronic device is in a target scene; the detection information includes network hotspot information, and the network hotspot information includes the number of network hotspots, the name of the network hotspot and the type of network hotspots, and when the network hotspot information meets the preset conditions, it is determined that the electronic device is in the target scene; the detection information includes motion information, and when the motion information indicates that the user is in motion, it is determined that the electronic device is in the target scene; the detection information includes image information, and when the image information indicates that the user is in the target area, it is determined that the electronic device is in the target scene.

[0183] In an exemplary embodiment of the present disclosure, the scene detection unit 51 is also used to: determine that the electronic device is in the target scene when the number of network hotspots is less than or equal to a third preset threshold; determine that the electronic device is in the target scene when the network hotspot type represents that the electronic device is in the target area; determine that the electronic device is in the target scene when the name of the network hotspot does not match the network hotspot in the pre-stored network list.

[0184] In an exemplary embodiment of the present disclosure, the charging execution unit 54 is also used to: based on the first instruction, start the target intelligent charging function to identify the target scene; and / or, based on the second instruction, determine the type of detection information; and / or, based on the third instruction, determine the type of charging adjustment parameter.

[0185] Regarding the charging device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0186] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0187] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0188] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0189] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0190] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0191] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0192] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0193] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0194] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0195] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0196] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0197] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above-mentioned charging method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0198] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables a processing device of the electronic device to execute a charging method provided by an exemplary embodiment of the present disclosure.

[0199] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0200] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A charging method, characterized in that: Applied to electronic equipment, the charging method comprises: Based on the detection information, determining that the electronic device is in a target scene; Acquiring a charging adjustment parameter, where the charging adjustment parameter is determined based on the status information of the electronic device and / or a device parameter of a power supply device for supplying power to the electronic device; Based on the charging adjustment parameter, determining a target charging parameter; Charging is performed based on the target charging parameter.

2. The charging method according to claim 1, characterized in that: The charging adjustment parameter is determined based on a device parameter of a power supply device used to supply power to the electronic device, and acquiring the charging adjustment parameter includes: Establishing a communication connection with the power supply device; The charging protocol type of the power supply device is obtained as the charging adjustment parameter.

3. The charging method according to claim 2, characterized in that: The charging adjustment parameter is determined based on the status information of the electronic device, and acquiring the charging adjustment parameter includes: At least one of a battery power of the electronic device and a temperature parameter of the electronic device is obtained.

4. The charging method according to claim 3, characterized in that: The determining a target charging parameter based on the charging adjustment parameter includes: Based on the charging adjustment parameter, determining a reference charging parameter and a compensation parameter; Obtaining pre-stored weight parameters of the charging adjustment parameters; The target charging parameter is determined based on the reference charging parameter, the compensation parameter, and the weight parameter.

5. The charging method according to claim 4, characterized in that: The charging adjustment parameters include the charging protocol type, the battery power and the temperature parameter, and determining the reference charging parameter and the compensation parameter based on the charging adjustment parameters includes: Based on the charging protocol type, determining a first reference charging parameter and a first compensation parameter; Based on the battery power, determining a second reference charging parameter and a second compensation parameter; Based on the temperature parameter, a third reference charging parameter and a third supplementary parameter are determined.

6. The charging method according to claim 5, characterized in that: The obtaining of the pre-stored weight parameters of the charging adjustment parameters includes: Obtain pre-stored weight parameters of the charging protocol type, the battery power, and the temperature parameter.

7. The charging method according to claim 6, characterized in that: The determining the target charging parameter based on the reference charging parameter, the compensation parameter and the weight parameter comprises: The target charging parameter is determined based on the weight parameter, the first reference charging parameter and the first compensation parameter, the second reference charging parameter and the second compensation parameter, and the third reference charging parameter and the third supplementary parameter.

8. The charging method according to claim 5, characterized in that: The determining, based on the charging protocol type, a first reference charging parameter and a first compensation parameter includes: Based on the charging protocol type, determining a charging power range to which the charging protocol type belongs; Based on the charging power interval and pre-stored first configuration information, a first reference charging parameter and a first compensation parameter are determined, wherein the first configuration information is used to characterize the corresponding relationship between the charging power interval and the reference charging parameter and the compensation parameter.

9. The charging method according to claim 5, characterized in that: The determining a second reference charging parameter and a second compensation parameter based on the battery power includes: Based on the battery power, determining the power range to which the battery power belongs; Based on the power range and pre-stored second configuration information, a second reference charging parameter and a second compensation parameter are determined, wherein the second configuration information is used to characterize the corresponding relationship between the power range and the reference charging parameter and the compensation parameter.

10. The charging method according to claim 5, characterized in that: The determining, based on the temperature parameter, a third reference charging parameter and a third supplementary parameter comprises: Based on the temperature parameter, determining the temperature interval to which the temperature parameter belongs; Based on the temperature range and pre-stored third configuration information, a third reference charging parameter and a third compensation parameter are determined, wherein the third configuration information is used to characterize the corresponding relationship between the temperature range and the reference charging parameter and the compensation parameter.

11. The charging method according to any one of claims 1 to 10, characterized in that: The determining, based on the detection information, that the electronic device is in the target scene comprises at least one of the following methods: The detection information includes positioning information, and when the positioning information indicates that the electronic device is in a target area, it is determined that the electronic device is in the target scene, wherein the target area is an area where the electronic device cannot be connected to a charger for charging; The detection information includes displacement information, and when the displacement information is greater than or equal to a first preset threshold within a first preset time period, it is determined that the electronic device is in the target scene; The detection information includes ambient light information, and when the ambient light information is greater than or equal to a second preset threshold, it is determined that the electronic device is in the target scene; The detection information includes network hotspot information, which includes the number of network hotspots, the name of the network hotspots, and the type of the network hotspots. If the network hotspot information meets a preset condition, it is determined that the electronic device is in the target scene. The detection information includes motion information, and when the motion information indicates that the user is in motion, it is determined that the electronic device is in the target scene; The detection information includes image information, and when the image information represents that the user is in the target area, it is determined that the electronic device is in the target scene.

12. The charging method according to claim 11, characterized in that: The network hotspot information meets a preset condition, and determining that the electronic device is in the target scene includes at least one of the following methods: When the number of the network hotspots is less than or equal to a third preset threshold, determining that the electronic device is in the target scene; When the network hotspot type indicates that the electronic device is in the target area, determining that the electronic device is in the target scene; When the name of the network hotspot does not match the network hotspot in the pre-stored network list, it is determined that the electronic device is in the target scene.

13. The charging method according to any one of claims 1 to 10, characterized in that: The charging method further comprises: Based on the first instruction, starting a target intelligent charging function to identify the target scene; and / or, Based on the second instruction, determining the type of the detection information; and / or, Based on the third instruction, the type of the charging adjustment parameter is determined.

14. A charging device, characterized in that: Applied to electronic equipment, the charging device comprises: A scene detection unit, configured to determine that the electronic device is in a target scene based on the detection information; a parameter monitoring unit, configured to obtain a charging adjustment parameter, wherein the charging adjustment parameter is determined based on the status information of the electronic device and / or a device parameter of a power supply device for supplying power to the electronic device; a parameter calculation unit, configured to determine a target charging parameter based on the charging adjustment parameter; A charging execution unit is used to perform charging based on the target charging parameter.

15. An electronic device, characterized in that: The electronic device comprises: at least one sensor; processor; a memory for storing processor-executable instructions; The processor is configured to execute executable instructions in the memory to implement the charging method according to any one of claims 1 to 13.

16. A non-transitory computer-readable storage medium having executable instructions stored thereon, characterized in that: When the executable instructions are executed by a processor, the charging method according to any one of claims 1 to 13 is implemented.