Power supply control method and related device

Through the communication connection between intelligent power supply and electronic devices, the charging parameters and environmental changes are analyzed, and the appropriate working parameters and charging time periods are determined, which solves the problem of how to improve the intelligence of power supply while ensuring charging safety and not affecting the life of the equipment. An efficient and safe charging process is achieved.

CN119093560BActive Publication Date: 2025-02-11SHENZHEN CESTAR ELECTRONICS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411585678.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-02-11
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

How to improve the intelligence of the power supply while ensuring charging safety without affecting the life of the charged device.

Method used

By establishing a communication connection between the intelligent power supply and the electronic device, obtaining and analyzing charging-related parameters and target device attribute parameters, determining suitable working parameters and charging time periods, controlling the intelligent power supply to work according to preset parameters within the specified time period, and The charging environment changes are detected according to environmental parameters to ensure the safety and effectiveness of the charging process.

Benefits of technology

It realizes the intelligence of the power supply while ensuring charging safety and not affecting the life of the equipment, and improves the charging efficiency and the service life of the equipment through deep adaptation of charging parameters and environmental detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119093560B_ABST
    Figure CN119093560B_ABST
Patent Text Reader

Abstract

The present application discloses a power control method and a related device, the method comprising: determining a required charge amount according to an upper threshold power amount and a remaining power amount; determining a first working parameter of an intelligent power supply corresponding to a target device attribute parameter and a first charging mode; estimating a first time length when an electronic device reaches an upper threshold power amount according to the required charge amount and the first working parameter, determining a charging time period based on a current moment and the first time length, and determining a plurality of time periods based on the charging time period; controlling the intelligent power supply to operate according to the first working parameter within the charging time period to charge the electronic device; obtaining a first environmental parameter set of the electronic device within a first time period; the first time period being any time period within a plurality of time periods; obtaining a second environmental parameter set of the intelligent power supply within the first time period; and detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power supply technology, and in particular to a power supply control method and related devices. Background Art

[0002] With the rapid development of science and technology, electronic products are becoming more and more popular. For example, mobile phones, tablets, new energy vehicles, etc. have become an indispensable part of people's lives, and power charging has also become a part of daily life. Charging not only involves safety, but also affects the life of electronic products. Therefore, how to ensure charging safety without affecting the life of the charged device and improve the intelligence of the power supply needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a power supply control method and related devices, which can improve the intelligence of the power supply while ensuring charging safety and not affecting the life of the charged device.

[0004] In a first aspect, an embodiment of the present application provides a power control method, which is applied to a smart power supply, wherein a communication connection is established between the smart power supply and an electronic device, and the smart power supply is used to charge the electronic device, and the method includes:

[0005] Acquire charging-related parameters of the electronic device and target device attribute parameters, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power;

[0006] Determine the required charging amount according to the upper limit threshold amount and the remaining amount;

[0007] Determine a first operating parameter of the smart power supply corresponding to the target device attribute parameter and the first charging mode;

[0008] estimating a first time length when the electronic device reaches the upper limit threshold power according to the required charge amount and the first operating parameter, determining a charging time period based on a current time and the first time length, and determining multiple time periods based on the charging time period;

[0009] Controlling the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device;

[0010] Acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods;

[0011] Acquire a second environmental parameter set of the smart power supply within the first time period;

[0012] Detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set;

[0013] When the electronic device is in the preset charging environment, the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period is continued.

[0014] In a second aspect, an embodiment of the present application provides a power control device, which is applied to a smart power supply, wherein a communication connection is established between the smart power supply and an electronic device, and the smart power supply is used to charge the electronic device. The device includes: an acquisition unit, a determination unit, a control unit, and a detection unit, wherein:

[0015] The acquisition unit is used to acquire charging-related parameters of the electronic device and target device attribute parameters, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power;

[0016] The determining unit is configured to determine the required charge amount according to the upper threshold power amount and the remaining power amount; determine the first operating parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode; estimate the first time length when the electronic device reaches the upper threshold power amount according to the required charge amount and the first operating parameter, determine a charging time period based on the current time and the first time length, and determine multiple time periods based on the charging time period;

[0017] The control unit is used to control the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device;

[0018] The acquisition unit is further configured to acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods; and acquire a second environmental parameter set of the smart power supply within the first time period;

[0019] The detection unit is used to detect whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set;

[0020] The control unit is further configured to continue to execute the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period when the electronic device is in the preset charging environment.

[0021] In a third aspect, an embodiment of the present application provides an intelligent power supply, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.

[0023] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0024] The implementation of the embodiments of the present application has the following beneficial effects:

[0025] It can be seen that the power control method and related devices described in the embodiments of the present application are applied to an intelligent power supply, a communication connection is established between the intelligent power supply and the electronic device, the intelligent power supply is used to charge the electronic device, and obtain charging-related parameters and target device attribute parameters of the electronic device, and the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power, and the required charge amount is determined according to the upper threshold power and the remaining power, and the first working parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode is determined, and the first time length when the electronic device reaches the upper threshold power is estimated according to the required charge amount and the first working parameter, the charging time period is determined based on the current time and the first time length, and multiple time periods are determined based on the charging time period, and the intelligent power supply is controlled to operate according to the first working parameter during the charging time period to charge the electronic device, and a first environmental parameter set of the electronic device is obtained during the first time period; the first time period For any time period within a plurality of time periods, a second environment parameter set of the intelligent power supply is obtained within a first time period, and whether the electronic device is in a preset charging environment is detected according to the first environment parameter set and the second environment parameter set. When the electronic device is in the preset charging environment, the step of controlling the intelligent power supply to operate according to the first working parameter within the charging time period is continued. First, the performance of the charged device (target device attribute parameter) and charging-related parameters can be considered to deeply adapt the first working parameter of the appropriate intelligent power supply. Second, the corresponding charging time period can be estimated based on the required charging amount and the first working parameter of the intelligent power supply, and charging is performed according to the first working parameter within the charging time period. Third, the environmental parameters between the electronic device and the intelligent power supply can reflect the changes and stability of the charging environment to a certain extent. The electronic device and the intelligent power supply are regarded as an integrated whole to ensure that the preset charging environment is maintained between the two. Therefore, the intelligence of the power supply can be improved while ensuring charging safety and not affecting the life of the charged device. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 It is a flowchart of a power supply control method provided in an embodiment of the present application;

[0028] Figure 2 It is a structural schematic diagram of an intelligent power supply provided in an embodiment of the present application;

[0029] Figure 3 It is a block diagram of the functional units of a power control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but in a possible example also includes steps or units that are not listed, or in a possible example also includes other steps or units inherent to these processes, methods, products or devices.

[0031] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] In an embodiment of the present application, the intelligent power supply may include at least one of the following: a module power supply, a switching power supply, an uninterruptible power supply (UPS), a variable frequency power supply, an inverter power supply, a rectifier power supply, an AC regulated power supply, a customized power supply, a DC regulated power supply, a PC (power source of PC) power supply, a DC / DC power supply, a heating power supply, a regulated power supply, a communication power supply, an adapter power supply, an emergency power supply (EPS), a power supply, a purification power supply, an automotive power supply, a welding power supply / arc power supply, a voltage regulating power supply, an electroplating power supply, a linear power supply, a network power supply, a transformer power supply, an electric operation power supply, a parameter power supply, a mobile power supply, etc., without limitation herein.

[0034] See also Figure 1 , Figure 1This is a flow chart of a power control method provided by an embodiment of the present application. As shown in the figure, it is applied to a smart power supply, a communication connection is established between the smart power supply and an electronic device, and the smart power supply is used to charge the electronic device. The power control method includes:

[0035] S101. Obtain charging-related parameters and target device attribute parameters of the electronic device, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power.

[0036] The target device attribute parameters may include at least one of the following: device model, device hardware configuration parameters, device software configuration parameters, device running score, device manufacturer, etc., which are not limited here.

[0037] Among them, the charging-related parameters of the electronic device may include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power. The charging-related parameters of the electronic device may also include at least one of the following: a charging protocol type, a charging data line length, a charging data line model, etc., which are not limited here. The first charging mode may include at least one of the following: a normal charging mode, a fast charging mode, a wired charging mode, a wireless charging mode, etc., which are not limited here.

[0038] Among them, different charging modes may correspond to different power ranges, and each power range may include an upper limit threshold power.

[0039] Among them, in the embodiment of the present application, the charging-related parameters and target device attribute parameters of the electronic device can be obtained. The charging-related parameters and target device attribute parameters reflect the characteristics of the charged device (electronic device) itself and the charging environment to a certain extent, which helps to deeply adapt the working parameters of the smart power supply.

[0040] S102: Determine the required charging capacity according to the upper limit threshold capacity and the remaining capacity.

[0041] Specifically, the amount of charge required = the upper threshold amount of power - the remaining power.

[0042] S103: Determine a first operating parameter of the smart power supply corresponding to the target device attribute parameter and the first charging mode.

[0043] Among them, the first operating parameter may include at least one of the following: operating current, operating voltage, operating power, operating mode, operating frequency, duty cycle, etc., which are not limited here.

[0044] In the specific implementation, different charged devices require different working parameters for charging. In addition, the target device attribute parameters reflect the characteristics of the charged device, and the first charging mode corresponds to the charging mode of the charged device. Then, the first working parameters of the smart power supply corresponding to the target device attribute parameters and the first charging mode can be determined. This helps to deeply adapt the working parameters of the smart power supply.

[0045] Optionally, the above step S103, determining the first operating parameter of the smart power supply corresponding to the target device attribute parameter and the first charging mode, may include the following steps:

[0046] Determine an operating parameter set corresponding to the target device attribute parameter, the operating parameter set including a plurality of operating parameters of the electronic device, each operating parameter corresponding to a charging mode;

[0047] Determine a first reference operating parameter in the operating parameter set corresponding to the first charging mode;

[0048] Determining a second reference operating parameter of the intelligent power supply corresponding to the first reference operating parameter;

[0049] Acquire a historical operating parameter set of the smart power supply corresponding to the first charging mode and the target device attribute parameter in a preset historical time period;

[0050] Fitting is performed according to the historical working parameter set to obtain a target fitting curve segment; the horizontal axis of the target fitting curve segment is time and the vertical axis is working parameters;

[0051] Extracting extreme value points of the target fitting curve segment to obtain a plurality of maximum value points and a plurality of minimum value points;

[0052] Determine a first mean square error according to the plurality of maximum value points and the plurality of minimum value points;

[0053] Perform fitting according to the multiple maximum value points to obtain a third fitting straight line, and obtain a third slope of the third fitting straight line;

[0054] Perform fitting according to the multiple minimum points to obtain a fourth fitting straight line, and acquire a fourth slope of the fourth fitting straight line;

[0055] The first operating parameter is determined according to the first mean square error, the third slope, the fourth slope and the second reference operating parameter.

[0056] In a specific implementation, a mapping relationship between preset device attribute parameters and working parameter sets can be pre-stored. Each working parameter set may include working parameters of multiple electronic devices, and each working parameter corresponds to a charging mode. Then, based on the mapping relationship, a working parameter set corresponding to the target device attribute parameters can be determined, and then a first reference working parameter corresponding to the first charging mode in the working parameter set can be determined.

[0057] The first reference operating parameter may be understood as an input parameter of the charged device (electronic device), and the second reference operating parameter of the smart power supply may be understood as an output parameter of the smart power supply.

[0058] In a specific implementation, a mapping relationship between preset input parameters of the charged device and output parameters of the smart power supply may be pre-stored, and then, based on the mapping relationship, a second reference operating parameter of the smart power supply corresponding to the first reference operating parameter may be determined.

[0059] The preset historical time period may be preset or set by system default, and may be understood as a time period before the current moment.

[0060] In a specific implementation, a historical operating parameter set of the intelligent power supply corresponding to the first charging mode and the target device attribute parameters in a preset historical time period can also be obtained. The historical operating parameter set can include multiple historical operating parameters, and each historical operating parameter corresponds to a sampling moment. Then, fitting can be performed according to the historical operating parameter set to obtain a target fitting curve segment. The horizontal axis of the target fitting curve segment is time and the vertical axis is the operating parameter. Since each historical operating parameter can be regarded as a coordinate point, these coordinate points are fitted to obtain a fitting curve, and the fitting curve with the time length in the preset time period is intercepted to obtain a fitting curve segment.

[0061] Next, the extreme value points of the target fitting curve segment can be extracted to obtain multiple maximum value points and multiple minimum value points, and then the mean square error calculation is performed based on the multiple maximum value points and the multiple minimum value points to obtain the first mean square error. The mean square error reflects the working stability of the intelligent power supply to a certain extent. Since each maximum value point corresponds to a coordinate point, fitting can be performed based on the multiple maximum value points to obtain a third fitting straight line, and the third slope of the third fitting straight line is obtained. Correspondingly, since each minimum value point corresponds to a coordinate point, fitting can be performed based on the multiple minimum value points to obtain a fourth fitting straight line, and the fourth slope of the fourth fitting straight line is obtained. The third slope reflects the peak change trend to a certain extent, and the fourth slope reflects the valley change trend to a certain extent. Then the first working parameter is determined based on the first mean square error, the third slope, the fourth slope and the second reference working parameter. On the one hand, the target device attribute parameters reflect the characteristics of the charged device, and the first charging mode corresponds to the charging mode of the charged device, which can not only accurately determine the working parameters of the charged device (electronic device), but also determine the working parameters of the corresponding intelligent power supply. On the other hand, the historical working experience of the intelligent power supply related to the characteristics of the charged device is considered, and fitting is implemented based on the historical working experience to evaluate the stability of the intelligent power supply, and the peak change trend and the valley change trend are identified based on the evaluation, and then the stability, peak change trend and valley change trend of the intelligent power supply are used to dynamically optimize the working parameters to obtain the final working parameters, so that the final working parameters not only meet the actual needs of the charged device, but also meet the working laws of the intelligent power supply, which is helpful to improve the intelligence of the power supply while ensuring charging safety and not affecting the life of the charged device.

[0062] Optionally, the above step of determining the first operating parameter according to the first mean square error, the third slope, the fourth slope and the second reference operating parameter may include the following steps:

[0063] determining a third adjustment parameter corresponding to the first mean square error;

[0064] Determining a first feedback adjustment parameter corresponding to the third slope;

[0065] Determining a second feedback adjustment parameter corresponding to the fourth slope;

[0066] determining a target feedback adjustment parameter according to the first feedback adjustment parameter and the second feedback adjustment parameter;

[0067] The first operating parameter is determined according to the third adjustment parameter, the target feedback adjustment parameter and the second reference operating parameter.

[0068] In a specific implementation, a mapping relationship between a preset mean square error and an adjustment parameter can be pre-stored, and then, a third adjustment parameter corresponding to the first mean square error can be determined based on the mapping relationship. A mapping relationship between a preset slope and a feedback adjustment parameter can also be pre-stored, and then, a first feedback adjustment parameter corresponding to the third slope can be determined based on the mapping relationship, and a second feedback adjustment parameter corresponding to the fourth slope can be determined based on the mapping relationship. Then, a target feedback adjustment parameter is determined according to the first feedback adjustment parameter and the second feedback adjustment parameter, that is, the target feedback adjustment parameter = the first feedback adjustment parameter + the second feedback adjustment parameter. Finally, the target feedback adjustment parameter can be determined according to the third adjustment parameter, the target feedback adjustment parameter and the second reference working parameter. The first working parameter, that is, the second reference working parameter×(1+the third adjustment parameter)×(1+the target feedback adjustment parameter), takes into account the historical working experience of the smart power supply related to the characteristics of the charged device, and performs fitting based on the historical working experience to evaluate the stability of the smart power supply, and identifies the peak value change trend and the valley value change trend based on the evaluation, and then dynamically optimizes the working parameters using the stability, peak value change trend, and valley value change trend of the smart power supply to obtain the final working parameters, so that the final working parameters not only meet the actual needs of the charged device, but also meet the working laws of the smart power supply, which helps to improve the intelligence of the power supply while ensuring charging safety and not affecting the life of the charged device.

[0069] S104: estimate a first time length when the electronic device reaches the upper limit threshold power according to the required charging amount and the first operating parameter, determine a charging time period based on the current time and the first time length, and determine multiple time periods based on the charging time period.

[0070] In the embodiment of the present application, since the first operating parameter is known, the charging speed is also known, and the first time length when the electronic device reaches the upper limit threshold power can be estimated based on the required charging amount and the first operating parameter, and the charging time period is determined based on the current moment and the first time length. The charging time period is a time period corresponding to the first time length after the current moment. Furthermore, multiple time periods can be determined based on the charging time period, and the length of each time period in the multiple time periods can be equal or different. The length of the time period can be related to at least one of the following factors: target device attribute parameters, charging mode, etc., which are not limited here.

[0071] S105: Control the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device.

[0072] In a specific implementation, the intelligent power supply may be controlled to operate according to the first operating parameter within a charging time period to charge the electronic device.

[0073] S106. Acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods.

[0074] Among them, the first environment parameter set may include at least one of the following: a hardware environment parameter set, a software environment parameter set, a physical environment parameter set, etc., which are not limited here. The hardware environment parameter set may include multiple hardware environment parameters, and the hardware environment parameters may include at least one of the following: the working current of the electronic device, the working power of the electronic device, the working voltage of the electronic device, the working temperature of the electronic device (such as battery temperature, processor temperature), etc., which are not limited here. The software environment parameter set may include multiple software environment parameters, and the software environment parameters may include at least one of the following: network bandwidth, data transmission rate, memory size, etc., which are not limited here. The physical environment parameter set may include multiple physical environment parameters, and the physical environment parameters may include at least one of the following: ambient temperature, ambient humidity, magnetic field interference intensity, atmospheric pressure, etc., which are not limited here.

[0075] The first time period is any time period within the multiple time periods.

[0076] In a specific implementation, a first environmental parameter set of the electronic device can be acquired at a first time interval within a first time period, and the first time interval can be preset or defaulted by the system. The first environmental parameter set reflects the charging stability and abnormal changes of the charged device to a certain extent.

[0077] S107: Acquire a second environmental parameter set of the smart power supply within the first time period.

[0078] Among them, the second environment parameter set may include at least one of the following: a hardware environment parameter set, a software environment parameter set, a physical environment parameter set, etc., which are not limited here. The hardware environment parameter set may include multiple hardware environment parameters, and the hardware environment parameters may include at least one of the following: the working current of the intelligent power supply, the working power of the intelligent power supply, the working voltage of the intelligent power supply, the duty cycle of the intelligent power supply, the working frequency of the intelligent power supply, the working temperature of the intelligent power supply, etc., which are not limited here. The software environment parameter set may include multiple software environment parameters, and the software environment parameters may include at least one of the following: network bandwidth, data transmission rate, memory size, etc., which are not limited here. The physical environment parameter set may include multiple physical environment parameters, and the physical environment parameters may include at least one of the following: ambient temperature, ambient humidity, magnetic field interference intensity, atmospheric pressure, etc., which are not limited here.

[0079] In a specific implementation, the second environmental parameter set of the smart power supply can be obtained at a second time interval within the first time period, the second time interval can be preset or system default, and the first time interval and the second time interval can be the same or different. The second environmental parameter set reflects the charging stability and abnormal changes of the charging device end to a certain extent.

[0080] S108: Detect whether the electronic device is in a preset charging environment according to the first environment parameter set and the second environment parameter set.

[0081] Among them, the preset charging environment can be pre-set or system default, which can be understood as, under the preset charging environment, the charging safety can be guaranteed and the life of the charged device will not be affected.

[0082] In the specific implementation, since the first environmental parameter set reflects the charging stability and abnormal changes of the charged device to a certain extent, and the second environmental parameter set reflects the charging stability and abnormal changes of the charging device to a certain extent, it is possible to detect whether the electronic device is in a preset charging environment based on the first environmental parameter set and the second environmental parameter set.

[0083] S109: When the electronic device is in the preset charging environment, continue to execute the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period.

[0084] In a specific implementation, when the electronic device is in a preset charging environment, the charging safety can be guaranteed without affecting the life of the charged device. Then, the step of controlling the intelligent power supply to operate according to the first working parameter during the charging time period can be continued until the upper limit threshold power is reached. In this way, the intelligence of the power supply can be improved while ensuring the charging safety and without affecting the life of the charged device.

[0085] Optionally, the above step S108, detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set, may include the following steps:

[0086] Performing fitting according to the first environmental parameter set to obtain a first fitting straight line and a first fitting curve segment of the charging time period, wherein the horizontal axes of the first fitting straight line and the first fitting curve segment are both time and the vertical axes are both environmental parameters;

[0087] Obtaining a first slope of the first fitting straight line, obtaining an extreme point of the first fitting curve segment, and obtaining a plurality of first extreme points;

[0088] determining a first standard deviation based on the plurality of first extreme value points;

[0089] Performing fitting according to the second environmental parameter set to obtain a second fitting straight line and a second fitting curve segment for the charging time period, wherein the horizontal axes of the second fitting straight line and the second fitting curve segment are both time and the vertical axes are both environmental parameters;

[0090] Obtaining a second slope of the second fitting straight line, obtaining an extreme point of the second fitting curve segment, and obtaining a plurality of second extreme points;

[0091] determining a second standard deviation based on the plurality of second extreme value points;

[0092] When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining that the electronic device is not in the preset charging environment;

[0093] When the first standard deviation is less than or equal to a first preset threshold and the second standard deviation is less than or equal to the second preset threshold, whether the electronic device is in the preset charging environment is detected according to the first slope, the second slope, the first standard deviation and the second standard deviation.

[0094] In a specific implementation, since the first environmental parameter set includes multiple environmental parameters, each environmental parameter corresponds to a sampling time, fitting can be performed according to the first environmental parameter set to obtain a first fitting straight line and a first fitting curve segment of the charging time period. The horizontal axes of the first fitting straight line and the first fitting curve segment are both time and the vertical axes are both environmental parameters. The first slope of the first fitting straight line can also be obtained, and the extreme points of the first fitting curve segment can be obtained to obtain multiple first extreme points. The standard deviation operation is performed based on the multiple first extreme points to obtain the first standard deviation. The first slope reflects the environmental change trend or abnormal development trend on the electronic device side to a certain extent, and the first standard deviation reflects the charging stability on the electronic device side.

[0095] Correspondingly, since the second environmental parameter set includes multiple environmental parameters, each environmental parameter corresponds to a sampling time, then fitting can be performed according to the second environmental parameter set to obtain a second fitting straight line and a second fitting curve segment of the charging time period, the horizontal axis of the second fitting straight line and the second fitting curve segment are both time and the vertical axis are both environmental parameters, and the second slope of the second fitting straight line can be obtained, the extreme point of the second fitting curve segment is obtained, and multiple second extreme points are obtained. The standard deviation operation is performed based on the multiple second extreme points to obtain the second standard deviation. The second slope reflects the environmental change trend or abnormal development trend on the smart power supply side to a certain extent, and the second standard deviation reflects the charging stability on the smart power supply side.

[0096] Among them, the first preset threshold and the second preset threshold can be preset or set by system default.

[0097] In the embodiment of the present application, when the first standard deviation is greater than the first preset threshold, it means that the charging on the electronic device side is unstable, and it can be determined that the electronic device is not in the preset charging environment. When the second standard deviation is greater than the second preset threshold, it means that the charging on the smart power supply side is unstable, and it can be determined that the electronic device is not in the preset charging environment. When the first standard deviation is greater than the first preset threshold and the second standard deviation is greater than the second preset threshold, it means that both the electronic device side and the smart power supply side are charging unstable, and it can be determined that the electronic device is not in the preset charging environment.

[0098] Furthermore, when the first standard deviation is less than or equal to the first preset threshold and the second standard deviation is less than or equal to the second preset threshold, it can be preliminarily determined that the charging on the electronic device side and the intelligent power supply side is stable, but further judgment is still needed, that is, whether the electronic device is in a preset charging environment can be detected based on the first slope, the second slope, the first standard deviation and the second standard deviation. In this way, the preset charging environment can be accurately identified, thereby ensuring the charging safety and improving the intelligence of the power supply without affecting the life of the charged device.

[0099] Optionally, the above step of detecting whether the electronic device is in the preset charging environment according to the first slope, the second slope, the first standard deviation, and the second standard deviation may include the following steps:

[0100] determining a first slope range corresponding to the first standard deviation;

[0101] determining a second slope range corresponding to the second standard deviation;

[0102] When the first slope is within the first slope range and the second slope is within the second slope range, determining that the electronic device is in the preset charging environment;

[0103] When the first slope is not within the first slope range and the second slope is not within the second slope range, determining that the electronic device is not in the preset charging environment;

[0104] When the first slope is within the first slope range and the second slope is not within the second slope range, a target deviation is determined according to the second slope and the second slope range, and when the target deviation is within a preset deviation range, it is determined that the electronic device is in the preset charging environment; otherwise, when the target deviation is not within the preset deviation range, it is determined that the electronic device is not in the preset charging environment;

[0105] When the first slope is not within the first slope range and the second slope is within the second slope range, a target relative deviation is determined based on the first slope and the first slope range. When the target relative deviation is within a preset relative deviation range, it is determined that the electronic device is in the preset charging environment. Conversely, when the target relative deviation is not within the preset relative deviation range, it is determined that the electronic device is not in the preset charging environment.

[0106] In a specific implementation, a first mapping relationship between a preset standard deviation and a slope range can be pre-set, and then, a first slope range corresponding to the first standard deviation can be determined based on the first mapping relationship. A second mapping relationship between a preset standard deviation and a slope range can also be pre-set, and then, a second slope range corresponding to the second standard deviation can be determined based on the second mapping relationship. When the first slope is in the first slope range and the second slope is in the second slope range, it indicates that the charging on the electronic device side and the smart power supply side is stable, and it can be determined that the electronic device is in a preset charging environment.

[0107] Furthermore, when the first slope is not within the first slope range and the second slope is not within the second slope range, charging on both the electronic device side and the smart power supply side is unstable, and it can be determined that the electronic device is not in the preset charging environment.

[0108] The first slope range may include a first upper threshold and a first lower threshold, and the second slope range may include a second upper threshold and a second lower threshold.

[0109] Among them, when the first slope is in the first slope range and the second slope is not in the second slope range, the target deviation can be determined according to the second slope and the second slope range. When the second slope is greater than the second upper limit threshold of the second slope range, the target deviation = (second slope - second upper limit threshold) / second upper limit threshold. Correspondingly, when the second slope is less than the second lower limit threshold of the second slope range, the target deviation = (second lower limit threshold - second slope) / second lower limit threshold.

[0110] In a specific implementation, since the second slope reflects the environmental change trend or abnormal development situation on the smart power supply side to a certain extent, when the target deviation is within the preset deviation range, it means that there is no abnormality on the smart power supply side, and it can be determined that the electronic device is in the preset charging environment. Conversely, when the target deviation is not within the preset deviation range, it means that there is an abnormality on the smart power supply side, and it is determined that the electronic device is not in the preset charging environment. In this way, the preset charging environment can be accurately identified, thereby improving the intelligence of the power supply while ensuring charging safety and without affecting the life of the charged device.

[0111] Among them, when the first slope is not in the first slope range and the second slope is in the second slope range, the target relative deviation can be determined according to the first slope and the first slope range. When the first slope is greater than the first upper limit threshold of the first slope range, the target relative deviation = (first slope - first upper limit threshold) / (first upper limit threshold + first lower limit threshold). Correspondingly, when the first slope is less than the first lower limit threshold of the first slope range, the target relative deviation = (first lower limit threshold - first slope) / (first upper limit threshold + first lower limit threshold).

[0112] The preset relative deviation range may be preset or set by system default.

[0113] In a specific implementation, since the first slope reflects the environmental change trend or abnormal development trend on the electronic device side to a certain extent, and the standard deviation reflects the charging stability on the electronic device side, when the target relative deviation is within the preset relative deviation range, it means that there is no abnormality on the electronic device side, and it is determined that the electronic device is in the preset charging environment. On the contrary, when the target relative deviation is not within the preset relative deviation range, it means that there is an abnormality on the electronic device side. Therefore, it can be determined that the electronic device is not in the preset charging environment. In this way, the preset charging environment can be accurately identified, thereby ensuring charging safety and improving the intelligence of the power supply without affecting the life of the charged device.

[0114] In the embodiment of the present application, in order not to affect the life of the charged device, the relative deviation is used to enable the charged device to have a higher sensitivity.

[0115] Optionally, after the above step S108, the following steps may also be included:

[0116] When the electronic device is not in the preset charging environment, adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain a second operating parameter;

[0117] The intelligent power supply is controlled to operate according to the second operating parameter within the charging time period to charge the electronic device.

[0118] In the embodiment of the present application, since the first environmental parameter set reflects the charging stability and abnormal changes of the charged device to a certain extent, and the second environmental parameter set reflects the charging stability and abnormal changes of the charging device to a certain extent, when the electronic device is not in the preset charging environment, the first operating parameter can be adjusted according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter, so that the adjusted operating parameter is more in line with the actual environment, and the smart power supply is controlled to operate according to the second operating parameter during the charging time period to charge the electronic device. In this way, the electronic device and the smart power supply can be regarded as an integrated whole to ensure that the two return to the preset charging environment, and then, the intelligence of the power supply can be improved while ensuring charging safety and without affecting the life of the charged device.

[0119] Optionally, the above step of adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter may include the following steps:

[0120] When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining a first deviation between the first preset threshold and the first standard deviation;

[0121] determining a second deviation between the second preset threshold and the second standard deviation;

[0122] determining a first adjustment parameter corresponding to the first deviation;

[0123] determining a first fine-tuning parameter corresponding to the second deviation;

[0124] Adjust the first operating parameter according to the first adjustment parameter and the first fine-tuning parameter to obtain the second operating parameter;

[0125] When the first slope is not within the first slope range and the second slope is not within the second slope range, determining a first relative deviation between the first slope and the first slope range;

[0126] determining a second relative deviation between the second slope and the second slope range;

[0127] determining a second adjustment parameter corresponding to the first relative deviation;

[0128] determining a second fine-tuning parameter corresponding to the second relative deviation;

[0129] The first operating parameter is adjusted according to the second adjustment parameter and the second fine-tuning parameter to obtain the second operating parameter.

[0130] Among them, the first preset threshold and the second preset threshold can be preset or set by system default.

[0131] In a specific implementation, when the first standard deviation is greater than the first preset threshold, and / or the second standard deviation is greater than the second preset threshold, the first deviation between the first preset threshold and the first standard deviation is determined, that is, the first deviation = (first preset threshold - first standard deviation) / first standard deviation. Correspondingly, the second deviation between the second preset threshold and the second standard deviation can also be determined, that is, the second deviation = (second preset threshold - second standard deviation) / second standard deviation.

[0132] Next, a third mapping relationship between a preset deviation and an adjustment parameter may be pre-stored, and a first adjustment parameter corresponding to the first deviation may be determined based on the third mapping relationship. A fourth mapping relationship between a preset deviation and a fine-tuning parameter may also be pre-stored, and a first fine-tuning parameter corresponding to the second deviation may be determined based on the fourth mapping relationship. The first operating parameter may be adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain a second operating parameter, that is, the second operating parameter=(1+first adjustment parameter)×(1+first fine-tuning parameter)×first operating parameter. On the one hand, the first standard deviation reflects the charging stability on the electronic device side, and the second standard deviation reflects the charging stability on the intelligent power supply side. On the other hand, the sensitivity requirement on the electronic device side is greater than the sensitivity requirement on the intelligent power supply side. Further, the operating parameter may be dynamically adjusted based on the charging stability, that is, the operating parameter may be dynamically adjusted based on the charging stability on the electronic device side, and the charging stability on the intelligent power supply side may be fine-tuned. In this way, the electronic device and the intelligent power supply may be regarded as an integrated whole, and the charging environment between the two may be ensured to return to the preset charging environment. Further, the intelligence of the power supply may be improved while ensuring charging safety and without affecting the life of the charged device.

[0133] In a specific implementation, the first slope reflects to a certain extent the environmental change trend or abnormal development situation on the electronic device side, and the second slope reflects to a certain extent the environmental change trend or abnormal development situation on the smart power supply side. When the first slope is not within the first slope range and the second slope is not within the second slope range, it means that both the electronic device side and the smart power supply side may be abnormal, that is, the first relative deviation between the first slope and the first slope range can be determined. When the first slope is greater than the first upper limit threshold of the first slope range, the first relative deviation = (first slope - first upper limit threshold) / (first upper limit threshold + first lower limit threshold). Correspondingly, when the first slope is less than the first lower limit threshold of the first slope range, the first relative deviation = (first lower limit threshold - first slope) / (first upper limit threshold + first lower limit threshold).

[0134] In addition, when the second slope is greater than the second upper threshold of the second slope range, the second relative deviation = (second slope - second upper threshold) / (second upper threshold + second lower threshold); correspondingly, when the second slope is less than the second lower threshold of the second slope range, the second relative deviation = (second lower threshold - second slope) / (second upper threshold + second lower threshold).

[0135] Furthermore, a fifth mapping relationship between a preset relative deviation and an adjustment parameter can be pre-stored, and then a second adjustment parameter corresponding to the first relative deviation can be determined based on the fifth mapping relationship, and a sixth mapping relationship between a preset relative deviation and a fine-tuning parameter can be pre-stored, and then a second fine-tuning parameter corresponding to the second relative deviation can be determined based on the sixth mapping relationship, and then the first operating parameter is adjusted according to the second adjustment parameter and the second fine-tuning parameter to obtain the second operating parameter, that is, the second operating parameter = (1 + second adjustment parameter) × (1 + second fine-tuning parameter) × first operating parameter. On the one hand, since the first slope reflects the electronic device to a certain extent The second slope reflects the environmental change trend or abnormal development trend on the intelligent power supply side to a certain extent. On the other hand, the sensitivity requirement on the electronic device side is greater than the sensitivity requirement on the intelligent power supply side. Furthermore, the working parameters can be dynamically adjusted based on the abnormal development trend, that is, the working parameters are dynamically adjusted based on the abnormal development trend on the electronic device side, and the working parameters are fine-tuned based on the abnormal development trend on the intelligent power supply side. In this way, the electronic device and the intelligent power supply can be regarded as an integrated whole to ensure that the charging environment between the two returns to the preset charging environment. Furthermore, the intelligence of the power supply can be improved while ensuring charging safety and not affecting the life of the charged device.

[0136] Optionally, the above step of adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter may include the following steps:

[0137] When the target deviation is not within the preset deviation range, determining a third relative deviation between the target deviation and the preset deviation range;

[0138] Determining a first optimization parameter corresponding to the third relative deviation;

[0139] Adjust the first operating parameter according to the first optimization parameter to obtain the second operating parameter;

[0140] When the target relative deviation is not within the preset relative deviation range, determining a fourth relative deviation between the target relative deviation and the preset relative deviation range;

[0141] determining a second optimization parameter corresponding to the fourth relative deviation;

[0142] The first operating parameter is adjusted according to the second optimization parameter to obtain the second operating parameter.

[0143] The preset deviation range may include a first preset upper threshold and a first preset lower threshold.

[0144] In the embodiment of the present application, when the target deviation is not within the preset deviation range, it indicates that an abnormality occurs on the intelligent power supply side, and a third relative deviation between the target deviation and the preset deviation range can be determined. The third relative deviation reflects the degree of abnormality on the intelligent power supply side to a certain extent. When the target deviation is greater than the first preset upper limit threshold, the third relative deviation = (target deviation - first preset upper limit threshold) / (first preset upper limit threshold + first preset lower limit threshold). Correspondingly, when the target deviation is less than the first preset upper limit threshold, the third relative deviation = (first preset lower limit threshold - target deviation) / (first preset upper limit threshold + first preset lower limit threshold).

[0145] Specifically, a seventh mapping relationship between a preset relative deviation and an optimization parameter can be pre-stored, and then, a first optimization parameter corresponding to the third relative deviation can be determined based on the seventh mapping relationship, and then the first operating parameter can be adjusted according to the first optimization parameter to obtain a second operating parameter, that is, the second operating parameter = (1 + first optimization parameter) × first operating parameter. The operating parameters can be dynamically adjusted based on the abnormal development trend, that is, the operating parameters of the intelligent power supply can be dynamically optimized based on the abnormality degree on the intelligent power supply side. In this way, the electronic device and the intelligent power supply can be regarded as an integrated whole to ensure that the charging environment between the two returns to the preset charging environment. Furthermore, the intelligence of the power supply can be improved while ensuring charging safety and without affecting the life of the charged device.

[0146] The preset relative deviation range may include a second preset upper threshold and a second preset lower threshold.

[0147] Correspondingly, when the target relative deviation is not within the preset relative deviation range, it indicates that an abnormality occurs on the electronic device side, and a fourth relative deviation between the target relative deviation and the preset relative deviation range is determined. The fourth relative deviation reflects the degree of abnormality on the electronic device side to a certain extent. Specifically, when the target relative deviation is greater than the second preset upper limit threshold, the fourth relative deviation = (target relative deviation - second preset upper limit threshold) / (second preset upper limit threshold + second preset lower limit threshold). Correspondingly, when the target relative deviation is less than the second preset upper limit threshold, the fourth relative deviation = (second preset lower limit threshold - target relative deviation) / (second preset upper limit threshold + second preset lower limit threshold).

[0148] Specifically, an eighth mapping relationship between a preset relative deviation and an optimization parameter can be pre-stored, and then, based on the eighth mapping relationship, a second optimization parameter corresponding to the fourth relative deviation can be determined, and then the first operating parameter is adjusted according to the second optimization parameter to obtain the second operating parameter, that is, the second operating parameter = (1 + the second optimization parameter) × the first operating parameter, that is, the operating parameters of the intelligent power supply can be dynamically optimized based on the abnormality degree of the electronic device side. In this way, the electronic device and the intelligent power supply can be regarded as an integrated whole to ensure that the charging environment between the two returns to the preset charging environment, and then, the intelligence of the power supply can be improved while ensuring charging safety and without affecting the life of the charged device.

[0149] It can be seen that the power control method described in the embodiment of the present application is applied to an intelligent power supply, a communication connection is established between the intelligent power supply and the electronic device, the intelligent power supply is used to charge the electronic device, and obtain charging-related parameters and target device attribute parameters of the electronic device, and the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power, and the required charge amount is determined according to the upper threshold power and the remaining power, and the first working parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode is determined, and the first time length when the electronic device reaches the upper threshold power is estimated according to the required charge amount and the first working parameter, the charging time period is determined based on the current time and the first time length, and multiple time periods are determined based on the charging time period, and the intelligent power supply is controlled to operate according to the first working parameter during the charging time period to charge the electronic device, and a first environmental parameter set of the electronic device is obtained during the first time period; the first time period is multiple In any time period within the time period, a second environmental parameter set of the intelligent power supply is obtained within the first time period, and whether the electronic device is in a preset charging environment is detected according to the first environmental parameter set and the second environmental parameter set. When the electronic device is in the preset charging environment, the step of controlling the intelligent power supply to work according to the first working parameter within the charging time period is continued. First, the performance of the charged device (target device attribute parameter) and the charging-related parameters can be considered to deeply adapt the first working parameter of the appropriate intelligent power supply. Second, the corresponding charging time period can be estimated based on the required charging amount and the first working parameter of the intelligent power supply, and charging is performed according to the first working parameter within the charging time period. Third, the environmental parameters between the electronic device and the intelligent power supply can reflect the changes and stability of the charging environment to a certain extent. The electronic device and the intelligent power supply are regarded as an integrated whole to ensure that the preset charging environment is maintained between the two. Therefore, the intelligence of the power supply can be improved while ensuring charging safety and not affecting the life of the charged device.

[0150] In accordance with the above embodiment, please refer to Figure 2 , Figure 2 : is a schematic diagram of the structure of a smart power supply provided by an embodiment of the present application. As shown in the figure, the smart power supply includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, a communication connection is established between the smart power supply and the electronic device, and the smart power supply is used to charge the electronic device. The program includes instructions for executing the following steps:

[0151] Acquire charging-related parameters of the electronic device and target device attribute parameters, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power;

[0152] Determine the required charging amount according to the upper limit threshold amount and the remaining amount;

[0153] Determine a first operating parameter of the smart power supply corresponding to the target device attribute parameter and the first charging mode;

[0154] estimating a first time length when the electronic device reaches the upper limit threshold power according to the required charge amount and the first operating parameter, determining a charging time period based on a current time and the first time length, and determining multiple time periods based on the charging time period;

[0155] Controlling the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device;

[0156] Acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods;

[0157] Acquire a second environmental parameter set of the smart power supply within the first time period;

[0158] Detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set;

[0159] When the electronic device is in the preset charging environment, the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period is continued.

[0160] Optionally, in the aspect of detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set, the program includes instructions for executing the following steps:

[0161] Performing fitting according to the first environmental parameter set to obtain a first fitting straight line and a first fitting curve segment of the charging time period, wherein the horizontal axes of the first fitting straight line and the first fitting curve segment are both time and the vertical axes are both environmental parameters;

[0162] Obtaining a first slope of the first fitting straight line, obtaining an extreme point of the first fitting curve segment, and obtaining a plurality of first extreme points;

[0163] determining a first standard deviation based on the plurality of first extreme value points;

[0164] Performing fitting according to the second environmental parameter set to obtain a second fitting straight line and a second fitting curve segment for the charging time period, wherein the horizontal axes of the second fitting straight line and the second fitting curve segment are both time and the vertical axes are both environmental parameters;

[0165] Obtaining a second slope of the second fitting straight line, obtaining an extreme point of the second fitting curve segment, and obtaining a plurality of second extreme points;

[0166] determining a second standard deviation based on the plurality of second extreme value points;

[0167] When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining that the electronic device is not in the preset charging environment;

[0168] When the first standard deviation is less than or equal to a first preset threshold and the second standard deviation is less than or equal to the second preset threshold, whether the electronic device is in the preset charging environment is detected according to the first slope, the second slope, the first standard deviation and the second standard deviation.

[0169] Optionally, in the aspect of detecting whether the electronic device is in the preset charging environment according to the first slope, the second slope, the first standard deviation, and the second standard deviation, the program includes instructions for executing the following steps:

[0170] determining a first slope range corresponding to the first standard deviation;

[0171] determining a second slope range corresponding to the second standard deviation;

[0172] When the first slope is within the first slope range and the second slope is within the second slope range, determining that the electronic device is in the preset charging environment;

[0173] When the first slope is not within the first slope range and the second slope is not within the second slope range, determining that the electronic device is not in the preset charging environment;

[0174] When the first slope is within the first slope range and the second slope is not within the second slope range, a target deviation is determined according to the second slope and the second slope range, and when the target deviation is within a preset deviation range, it is determined that the electronic device is in the preset charging environment; otherwise, when the target deviation is not within the preset deviation range, it is determined that the electronic device is not in the preset charging environment;

[0175] When the first slope is not within the first slope range and the second slope is within the second slope range, a target relative deviation is determined based on the first slope and the first slope range. When the target relative deviation is within a preset relative deviation range, it is determined that the electronic device is in the preset charging environment. Conversely, when the target relative deviation is not within the preset relative deviation range, it is determined that the electronic device is not in the preset charging environment.

[0176] Optionally, the program further includes instructions for executing the following steps:

[0177] When the electronic device is not in the preset charging environment, adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain a second operating parameter;

[0178] The intelligent power supply is controlled to operate according to the second operating parameter within the charging time period to charge the electronic device.

[0179] Optionally, in the aspect of adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter, the program includes instructions for executing the following steps:

[0180] When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining a first deviation between the first preset threshold and the first standard deviation;

[0181] determining a second deviation between the second preset threshold and the second standard deviation;

[0182] determining a first adjustment parameter corresponding to the first deviation;

[0183] determining a first fine-tuning parameter corresponding to the second deviation;

[0184] Adjust the first operating parameter according to the first adjustment parameter and the first fine-tuning parameter to obtain the second operating parameter;

[0185] When the first slope is not within the first slope range and the second slope is not within the second slope range, determining a first relative deviation between the first slope and the first slope range;

[0186] determining a second relative deviation between the second slope and the second slope range;

[0187] determining a second adjustment parameter corresponding to the first relative deviation;

[0188] determining a second fine-tuning parameter corresponding to the second relative deviation;

[0189] The first operating parameter is adjusted according to the second adjustment parameter and the second fine-tuning parameter to obtain the second operating parameter.

[0190] Optionally, in the aspect of adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter, the program includes instructions for executing the following steps:

[0191] When the target deviation is not within the preset deviation range, determining a third relative deviation between the target deviation and the preset deviation range;

[0192] Determining a first optimization parameter corresponding to the third relative deviation;

[0193] Adjust the first operating parameter according to the first optimization parameter to obtain the second operating parameter;

[0194] When the target relative deviation is not within the preset relative deviation range, determining a fourth relative deviation between the target relative deviation and the preset relative deviation range;

[0195] determining a second optimization parameter corresponding to the fourth relative deviation;

[0196] The first operating parameter is adjusted according to the second optimization parameter to obtain the second operating parameter.

[0197] Optionally, in determining the first operating parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode, the program includes instructions for executing the following steps:

[0198] Determine an operating parameter set corresponding to the target device attribute parameter, the operating parameter set including a plurality of operating parameters of the electronic device, each operating parameter corresponding to a charging mode;

[0199] Determine a first reference operating parameter in the operating parameter set corresponding to the first charging mode;

[0200] Determining a second reference operating parameter of the intelligent power supply corresponding to the first reference operating parameter;

[0201] Acquire a historical operating parameter set of the smart power supply corresponding to the first charging mode and the target device attribute parameter in a preset historical time period;

[0202] Fitting is performed according to the historical working parameter set to obtain a target fitting curve segment; the horizontal axis of the target fitting curve segment is time and the vertical axis is working parameters;

[0203] Extracting extreme value points of the target fitting curve segment to obtain a plurality of maximum value points and a plurality of minimum value points;

[0204] Determine a first mean square error according to the plurality of maximum value points and the plurality of minimum value points;

[0205] Perform fitting according to the multiple maximum value points to obtain a third fitting straight line, and obtain a third slope of the third fitting straight line;

[0206] Perform fitting according to the multiple minimum points to obtain a fourth fitting straight line, and acquire a fourth slope of the fourth fitting straight line;

[0207] The first operating parameter is determined according to the first mean square error, the third slope, the fourth slope and the second reference operating parameter.

[0208] It can be seen that the smart power supply described in the embodiment of the present application establishes a communication connection with the electronic device, and the smart power supply is used to charge the electronic device, obtain charging-related parameters of the electronic device and target device attribute parameters, and the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power, and the required charge amount is determined according to the upper threshold power and the remaining power, and the first working parameter of the smart power supply corresponding to the target device attribute parameter and the first charging mode is determined, and the first time length when the electronic device reaches the upper threshold power is estimated according to the required charge amount and the first working parameter, and the charging time period is determined based on the current time and the first time length, and multiple time periods are determined based on the charging time period, and the smart power supply is controlled to operate according to the first working parameter during the charging time period to charge the electronic device, and a first environmental parameter set of the electronic device is obtained during the first time period; the first time period is within multiple time periods In any time period, a second environmental parameter set of the intelligent power supply is obtained within a first time period, and whether the electronic device is in a preset charging environment is detected according to the first environmental parameter set and the second environmental parameter set. When the electronic device is in the preset charging environment, the step of controlling the intelligent power supply to work according to the first working parameter within the charging time period is continued. First, the performance of the charged device (target device attribute parameter) and charging-related parameters can be considered to deeply adapt the first working parameter of the appropriate intelligent power supply. Second, the corresponding charging time period can be estimated based on the required charging amount and the first working parameter of the intelligent power supply, and charging is performed according to the first working parameter within the charging time period. Third, the environmental parameters between the electronic device and the intelligent power supply can reflect the changes and stability of the charging environment to a certain extent. The electronic device and the intelligent power supply are regarded as an integrated whole to ensure that the preset charging environment is maintained between the two. Therefore, the intelligence of the power supply can be improved while ensuring charging safety and not affecting the life of the charged device.

[0209] Figure 3 3 is a functional unit composition block diagram of a power control device 300 involved in an embodiment of the present application. The power control device 300 is applied to an intelligent power supply. A communication connection is established between the intelligent power supply and an electronic device. The intelligent power supply is used to charge the electronic device. The power control device 300 includes: an acquisition unit 301, a determination unit 302, a control unit 303 and a detection unit 304, wherein:

[0210] The acquisition unit 301 is used to acquire charging-related parameters of the electronic device and target device attribute parameters, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power;

[0211] The determining unit 302 is configured to determine the required charge amount according to the upper threshold power level and the remaining power level; determine the first operating parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode; estimate the first time length when the electronic device reaches the upper threshold power level according to the required charge amount and the first operating parameter, determine a charging time period based on the current time and the first time length, and determine multiple time periods based on the charging time period;

[0212] The control unit 303 is used to control the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device;

[0213] The acquisition unit 301 is further configured to acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods; and acquire a second environmental parameter set of the smart power supply within the first time period;

[0214] The detection unit 304 is used to detect whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set;

[0215] The control unit 303 is further configured to continue to execute the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period when the electronic device is in the preset charging environment.

[0216] Optionally, in the aspect of detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set, the detecting unit 304 is specifically configured to:

[0217] Performing fitting according to the first environmental parameter set to obtain a first fitting straight line and a first fitting curve segment of the charging time period, wherein the horizontal axes of the first fitting straight line and the first fitting curve segment are both time and the vertical axes are both environmental parameters;

[0218] Obtaining a first slope of the first fitting straight line, obtaining an extreme point of the first fitting curve segment, and obtaining a plurality of first extreme points;

[0219] determining a first standard deviation based on the plurality of first extreme value points;

[0220] Performing fitting according to the second environmental parameter set to obtain a second fitting straight line and a second fitting curve segment for the charging time period, wherein the horizontal axes of the second fitting straight line and the second fitting curve segment are both time and the vertical axes are both environmental parameters;

[0221] Obtaining a second slope of the second fitting straight line, obtaining an extreme point of the second fitting curve segment, and obtaining a plurality of second extreme points;

[0222] determining a second standard deviation based on the plurality of second extreme value points;

[0223] When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining that the electronic device is not in the preset charging environment;

[0224] When the first standard deviation is less than or equal to a first preset threshold and the second standard deviation is less than or equal to the second preset threshold, whether the electronic device is in the preset charging environment is detected according to the first slope, the second slope, the first standard deviation and the second standard deviation.

[0225] Optionally, in the aspect of detecting whether the electronic device is in the preset charging environment according to the first slope, the second slope, the first standard deviation, and the second standard deviation, the detection unit 304 is specifically used to:

[0226] determining a first slope range corresponding to the first standard deviation;

[0227] determining a second slope range corresponding to the second standard deviation;

[0228] When the first slope is within the first slope range and the second slope is within the second slope range, determining that the electronic device is in the preset charging environment;

[0229] When the first slope is not within the first slope range and the second slope is not within the second slope range, determining that the electronic device is not in the preset charging environment;

[0230] When the first slope is within the first slope range and the second slope is not within the second slope range, a target deviation is determined according to the second slope and the second slope range, and when the target deviation is within a preset deviation range, it is determined that the electronic device is in the preset charging environment; otherwise, when the target deviation is not within the preset deviation range, it is determined that the electronic device is not in the preset charging environment;

[0231] When the first slope is not within the first slope range and the second slope is within the second slope range, a target relative deviation is determined based on the first slope and the first slope range. When the target relative deviation is within a preset relative deviation range, it is determined that the electronic device is in the preset charging environment. Conversely, when the target relative deviation is not within the preset relative deviation range, it is determined that the electronic device is not in the preset charging environment.

[0232] Optionally, the power control device 300 is specifically used for:

[0233] When the electronic device is not in the preset charging environment, adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain a second operating parameter;

[0234] The intelligent power supply is controlled to operate according to the second operating parameter within the charging time period to charge the electronic device.

[0235] Optionally, in the aspect of adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter, the power supply control device 300 is specifically configured to:

[0236] When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining a first deviation between the first preset threshold and the first standard deviation;

[0237] determining a second deviation between the second preset threshold and the second standard deviation;

[0238] determining a first adjustment parameter corresponding to the first deviation;

[0239] determining a first fine-tuning parameter corresponding to the second deviation;

[0240] Adjust the first operating parameter according to the first adjustment parameter and the first fine-tuning parameter to obtain the second operating parameter;

[0241] When the first slope is not within the first slope range and the second slope is not within the second slope range, determining a first relative deviation between the first slope and the first slope range;

[0242] determining a second relative deviation between the second slope and the second slope range;

[0243] determining a second adjustment parameter corresponding to the first relative deviation;

[0244] determining a second fine-tuning parameter corresponding to the second relative deviation;

[0245] The first operating parameter is adjusted according to the second adjustment parameter and the second fine-tuning parameter to obtain the second operating parameter.

[0246] Optionally, in the aspect of adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter, the power supply control device 300 is specifically configured to:

[0247] When the target deviation is not within the preset deviation range, determining a third relative deviation between the target deviation and the preset deviation range;

[0248] Determining a first optimization parameter corresponding to the third relative deviation;

[0249] Adjust the first operating parameter according to the first optimization parameter to obtain the second operating parameter;

[0250] When the target relative deviation is not within the preset relative deviation range, determining a fourth relative deviation between the target relative deviation and the preset relative deviation range;

[0251] determining a second optimization parameter corresponding to the fourth relative deviation;

[0252] The first operating parameter is adjusted according to the second optimization parameter to obtain the second operating parameter.

[0253] Optionally, in determining the first operating parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode, the determining unit 302 is specifically configured to:

[0254] Determine an operating parameter set corresponding to the target device attribute parameter, the operating parameter set including a plurality of operating parameters of the electronic device, each operating parameter corresponding to a charging mode;

[0255] Determine a first reference operating parameter in the operating parameter set corresponding to the first charging mode;

[0256] Determining a second reference operating parameter of the intelligent power supply corresponding to the first reference operating parameter;

[0257] Acquire a historical operating parameter set of the smart power supply corresponding to the first charging mode and the target device attribute parameter in a preset historical time period;

[0258] Fitting is performed according to the historical working parameter set to obtain a target fitting curve segment; the horizontal axis of the target fitting curve segment is time and the vertical axis is working parameters;

[0259] Extracting extreme value points of the target fitting curve segment to obtain a plurality of maximum value points and a plurality of minimum value points;

[0260] Determine a first mean square error according to the plurality of maximum value points and the plurality of minimum value points;

[0261] Perform fitting according to the multiple maximum value points to obtain a third fitting straight line, and obtain a third slope of the third fitting straight line;

[0262] Perform fitting according to the multiple minimum points to obtain a fourth fitting straight line, and acquire a fourth slope of the fourth fitting straight line;

[0263] The first operating parameter is determined according to the first mean square error, the third slope, the fourth slope and the second reference operating parameter.

[0264] It can be seen that the power control device described in the embodiment of the present application is applied to an intelligent power supply, and a communication connection is established between the intelligent power supply and the electronic device. The intelligent power supply is used to charge the electronic device, obtain charging-related parameters of the electronic device and target device attribute parameters, and the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power, and the required charge amount is determined according to the upper threshold power and the remaining power, and the first working parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode is determined, and the first time length when the electronic device reaches the upper threshold power is estimated according to the required charge amount and the first working parameter, and the charging time period is determined based on the current time and the first time length, and multiple time periods are determined based on the charging time period, and the intelligent power supply is controlled to work according to the first working parameter during the charging time period to charge the electronic device, and a first environmental parameter set of the electronic device is obtained during the first time period; the first time period is multiple In any time period within the time period, a second environmental parameter set of the intelligent power supply is obtained within the first time period, and whether the electronic device is in a preset charging environment is detected according to the first environmental parameter set and the second environmental parameter set. When the electronic device is in the preset charging environment, the step of controlling the intelligent power supply to work according to the first working parameter within the charging time period is continued. First, the performance of the charged device (target device attribute parameter) and the charging-related parameters can be considered to deeply adapt the first working parameter of the appropriate intelligent power supply. Second, the corresponding charging time period can be estimated based on the required charging amount and the first working parameter of the intelligent power supply, and charging is performed according to the first working parameter within the charging time period. Third, the environmental parameters between the electronic device and the intelligent power supply can reflect the changes and stability of the charging environment to a certain extent. The electronic device and the intelligent power supply are regarded as an integrated whole to ensure that the preset charging environment is maintained between the two. Therefore, the intelligence of the power supply can be improved while ensuring charging safety and not affecting the life of the charged device.

[0265] It can be understood that the functions of each program module of the power control device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0266] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes an intelligent power supply.

[0267] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an intelligent power supply.

[0268] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0269] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0270] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0271] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0272] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0273] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0274] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0275] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A power control method, characterized in that: Applied to a smart power supply, the smart power supply establishes a communication connection with an electronic device, the smart power supply is used to charge the electronic device, and the method includes: Acquire charging-related parameters of the electronic device and target device attribute parameters, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power; Determine the required charging amount according to the upper limit threshold amount and the remaining amount; Determine a first operating parameter of the smart power supply corresponding to the target device attribute parameter and the first charging mode; estimating a first time length when the electronic device reaches the upper limit threshold power according to the required charge amount and the first operating parameter, determining a charging time period based on a current time and the first time length, and determining multiple time periods based on the charging time period; Controlling the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device; Acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods; Acquire a second environmental parameter set of the smart power supply within the first time period; Detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set; When the electronic device is in the preset charging environment, continuing to execute the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period; The detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set includes: Performing fitting according to the first environmental parameter set to obtain a first fitting straight line and a first fitting curve segment of the charging time period, wherein the horizontal axes of the first fitting straight line and the first fitting curve segment are both time and the vertical axes are both environmental parameters; Obtaining a first slope of the first fitting straight line, obtaining an extreme point of the first fitting curve segment, and obtaining a plurality of first extreme points; determining a first standard deviation based on the plurality of first extreme value points; Performing fitting according to the second environmental parameter set to obtain a second fitting straight line and a second fitting curve segment for the charging time period, wherein the horizontal axes of the second fitting straight line and the second fitting curve segment are both time and the vertical axes are both environmental parameters; Obtaining a second slope of the second fitting straight line, obtaining an extreme point of the second fitting curve segment, and obtaining a plurality of second extreme points; determining a second standard deviation based on the plurality of second extreme value points; When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining that the electronic device is not in the preset charging environment; When the first standard deviation is less than or equal to a first preset threshold and the second standard deviation is less than or equal to the second preset threshold, whether the electronic device is in the preset charging environment is detected according to the first slope, the second slope, the first standard deviation and the second standard deviation.

2. The method according to claim 1, characterized in that The detecting whether the electronic device is in the preset charging environment according to the first slope, the second slope, the first standard deviation, and the second standard deviation includes: determining a first slope range corresponding to the first standard deviation; determining a second slope range corresponding to the second standard deviation; When the first slope is within the first slope range and the second slope is within the second slope range, determining that the electronic device is in the preset charging environment; When the first slope is not within the first slope range and the second slope is not within the second slope range, determining that the electronic device is not in the preset charging environment; When the first slope is within the first slope range and the second slope is not within the second slope range, a target deviation is determined according to the second slope and the second slope range, and when the target deviation is within a preset deviation range, it is determined that the electronic device is in the preset charging environment; otherwise, when the target deviation is not within the preset deviation range, it is determined that the electronic device is not in the preset charging environment; When the first slope is not within the first slope range and the second slope is within the second slope range, a target relative deviation is determined based on the first slope and the first slope range. When the target relative deviation is within a preset relative deviation range, it is determined that the electronic device is in the preset charging environment. Conversely, when the target relative deviation is not within the preset relative deviation range, it is determined that the electronic device is not in the preset charging environment.

3. The method according to claim 2, characterized in that The method further comprises: When the electronic device is not in the preset charging environment, adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain a second operating parameter; The intelligent power supply is controlled to operate according to the second operating parameter within the charging time period to charge the electronic device.

4. The method according to claim 3, characterized in that The adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter includes: When the first standard deviation is greater than a first preset threshold and the second standard deviation is greater than a second preset threshold, determining a first deviation between the first preset threshold and the first standard deviation; determining a second deviation between the second preset threshold and the second standard deviation; determining a first adjustment parameter corresponding to the first deviation; determining a first fine-tuning parameter corresponding to the second deviation; Adjust the first operating parameter according to the first adjustment parameter and the first fine-tuning parameter to obtain the second operating parameter; When the first slope is not within the first slope range and the second slope is not within the second slope range, determining a first relative deviation between the first slope and the first slope range; determining a second relative deviation between the second slope and the second slope range; determining a second adjustment parameter corresponding to the first relative deviation; determining a second fine-tuning parameter corresponding to the second relative deviation; The first operating parameter is adjusted according to the second adjustment parameter and the second fine-tuning parameter to obtain the second operating parameter.

5. The method according to claim 3, characterized in that: The adjusting the first operating parameter according to the first environmental parameter set and the second environmental parameter set to obtain the second operating parameter includes: When the target deviation is not within the preset deviation range, determining a third relative deviation between the target deviation and the preset deviation range; Determining a first optimization parameter corresponding to the third relative deviation; Adjust the first operating parameter according to the first optimization parameter to obtain the second operating parameter; When the target relative deviation is not within the preset relative deviation range, determining a fourth relative deviation between the target relative deviation and the preset relative deviation range; determining a second optimization parameter corresponding to the fourth relative deviation; The first operating parameter is adjusted according to the second optimization parameter to obtain the second operating parameter.

6. The method according to any one of claims 1 to 5, characterized in that: The determining the first operating parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode includes: Determine an operating parameter set corresponding to the target device attribute parameter, the operating parameter set including a plurality of operating parameters of the electronic device, each operating parameter corresponding to a charging mode; Determine a first reference operating parameter in the operating parameter set corresponding to the first charging mode; Determining a second reference operating parameter of the intelligent power supply corresponding to the first reference operating parameter; Acquire a historical operating parameter set of the smart power supply corresponding to the first charging mode and the target device attribute parameter in a preset historical time period; Fitting is performed according to the historical working parameter set to obtain a target fitting curve segment; the horizontal axis of the target fitting curve segment is time and the vertical axis is working parameters; Extracting extreme value points of the target fitting curve segment to obtain a plurality of maximum value points and a plurality of minimum value points; Determine a first mean square error according to the plurality of maximum value points and the plurality of minimum value points; Perform fitting according to the multiple maximum value points to obtain a third fitting straight line, and obtain a third slope of the third fitting straight line; Perform fitting according to the multiple minimum points to obtain a fourth fitting straight line, and acquire a fourth slope of the fourth fitting straight line; The first operating parameter is determined according to the first mean square error, the third slope, the fourth slope and the second reference operating parameter.

7. A power supply control device, characterized in that: Applied to a smart power supply, the smart power supply establishes a communication connection with an electronic device, the smart power supply is used to charge the electronic device, the device comprises: an acquisition unit, a determination unit, a control unit and a detection unit, wherein: The acquisition unit is used to acquire charging-related parameters of the electronic device and target device attribute parameters, wherein the charging-related parameters include: a first charging mode, a power range corresponding to the first charging mode, and a remaining power; the power range includes an upper threshold power; the upper threshold power is greater than the remaining power; The determining unit is configured to determine the required charge amount according to the upper threshold power amount and the remaining power amount; determine the first operating parameter of the intelligent power supply corresponding to the target device attribute parameter and the first charging mode; estimate the first time length when the electronic device reaches the upper threshold power amount according to the required charge amount and the first operating parameter, determine a charging time period based on the current time and the first time length, and determine multiple time periods based on the charging time period; The control unit is used to control the intelligent power supply to operate according to the first operating parameter within the charging time period to charge the electronic device; The acquisition unit is further configured to acquire a first environmental parameter set of the electronic device within a first time period; the first time period is any time period within the multiple time periods; and acquire a second environmental parameter set of the smart power supply within the first time period; The detection unit is used to detect whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set; The control unit is further configured to continue to execute the step of controlling the intelligent power supply to operate according to the first operating parameter within the charging time period when the electronic device is in the preset charging environment; The detecting whether the electronic device is in a preset charging environment according to the first environmental parameter set and the second environmental parameter set includes: Performing fitting according to the first environmental parameter set to obtain a first fitting straight line and a first fitting curve segment of the charging time period, wherein the horizontal axes of the first fitting straight line and the first fitting curve segment are both time and the vertical axes are both environmental parameters; Obtaining a first slope of the first fitting straight line, obtaining an extreme point of the first fitting curve segment, and obtaining a plurality of first extreme points; determining a first standard deviation based on the plurality of first extreme value points; Performing fitting according to the second environmental parameter set to obtain a second fitting straight line and a second fitting curve segment for the charging time period, wherein the horizontal axes of the second fitting straight line and the second fitting curve segment are both time and the vertical axes are both environmental parameters; Obtaining a second slope of the second fitting straight line, obtaining an extreme point of the second fitting curve segment, and obtaining a plurality of second extreme points; determining a second standard deviation based on the plurality of second extreme value points; When the first standard deviation is greater than a first preset threshold, and / or the second standard deviation is greater than a second preset threshold, determining that the electronic device is not in the preset charging environment; When the first standard deviation is less than or equal to a first preset threshold and the second standard deviation is less than or equal to the second preset threshold, whether the electronic device is in the preset charging environment is detected according to the first slope, the second slope, the first standard deviation and the second standard deviation.

8. An intelligent power supply, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program comprises instructions for executing the steps in the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Hybrid energy storage control method based on low-pass charging and discharging coefficient constraint

    CN108282008A

  • Method of detecting charger type and estimating remaining recharging time for mobile devices with USB recharging

    US20120098500A1