A charging method, system and device
By detecting and monitoring the multi-channel charging power supply, determining the selection weight, and the largest charging power supply charges the electronic device, solving the problem of low charging efficiency in the existing technology and achieving a more efficient charging effect.
Patent Information
- Application Number
- CN202411746550.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-02
AI Technical Summary
The existing multi-channel charging power supply has the problem of low charging efficiency for charging the same electronic device, especially when the charging efficiency of the advanced charging power supply is smaller than that of the low-level charging power supply.
By detecting and monitoring the multiple charging power supply, the selection weights of each charging power supply are determined, and the charging power supply with the largest selection weights are used to charge the electronic device. The method includes, upon detecting that there is no charging power supply that meets the fast charging requirements, performing power monitoring of the first preset time length of the preset number of times on each charging power supply, calculating the mean value and standard deviation of the maximum power, and determining the selection weight based on the weight coefficient.
By comprehensively considering the power size, stability and historical selection of the charging power supply, and selecting the charging power supply with the largest weight for charging, it can maximize the charging efficiency while ensuring the stability of the charging power supply, solving the problem of low charging efficiency.
Smart Images

Figure CN119209846B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a charging method, system and device. Background Art
[0002] With the development of electronic technology, charging technology has gradually received attention. In order to ensure that battery-powered electronic devices have long-lasting endurance, in some cases, it is necessary to maximize the use of various charging methods (such as solar energy, power adapters, mobile power supplies, etc.) to efficiently and stably recharge the equipment. However, due to the different characteristics of various charging power sources, for example, solar energy can provide sufficient power when there is sufficient sunshine, but the charging power is unstable; although the USB power adapter is stable, it does not support fast charging and has a low charging power; mobile power supplies may automatically reduce the charging power or stop charging as the power is consumed. Therefore, electronic devices can be charged using multiple charging power sources by connecting to multiple charging power sources with different characteristics and switching between different charging power sources.
[0003] The existing charging method of using multiple charging power sources to charge the same electronic device is mainly to pre-set the priority of each charging power source, charge the electronic device according to the set priority, and switch to a low-level charging power source when the high-level charging power source does not meet the charging requirements. With this charging method, when the charging efficiency of the high-level charging power source is lower than that of the low-level charging power source, there will be a problem of low charging efficiency of the electronic device.
[0004] With regard to the existing charging method of using multiple charging power sources to charge the same electronic device, there is a problem of low charging efficiency of the electronic device, and no effective solution has been proposed yet. Summary of the invention
[0005] Based on this, it is necessary to provide a charging method, system and device to address the above technical problems.
[0006] In a first aspect, the present application provides a charging method. The method is applied to a charging system in which multiple charging power sources are used to charge the same electronic device, and the method comprises the following steps:
[0007] In response to the received charging command, performing charging power source detection on multiple charging power sources connected to the electronic device to be charged, and obtaining detection results of each charging power source;
[0008] When the detection results of each of the charging power sources indicate that there is no charging power source that meets the fast charging requirements among the multiple charging power sources, power monitoring is performed on each of the charging power sources for a preset number of times and a first preset time length to obtain power monitoring results of each of the charging power sources; the power monitoring results include an average value and a standard deviation of the maximum power of the charging power sources collected for the preset number of times; the charging power source that meets the fast charging requirements is a charging power source that supports the fast charging protocol and whose charging power meets the preset power requirements;
[0009] Determining a selection weight of each charging power source based on a power monitoring result of each charging power source and a weight coefficient of each charging power source; the weight coefficient represents the number of times the charging power source is selected within a second preset time length in history;
[0010] The electronic device to be charged is charged by using the charging power source with the largest selection weight.
[0011] In one embodiment, in response to the received charging command, after performing charging power supply detection on multiple charging power supplies connected to the electronic device to be charged and obtaining the detection result of each charging power supply, the following steps are also included:
[0012] When the detection results of the charging power sources indicate that there is a charging power source that meets the fast charging requirement, the electronic device to be charged is charged using the charging power source that meets the fast charging requirement;
[0013] Or, when the detection results of each of the charging power sources indicate that there are multiple charging power sources that meet the fast charging requirements, power monitoring is performed on each of the charging power sources that meet the fast charging requirements for the preset number of times and the first preset time length to obtain power monitoring results of each of the charging power sources that meet the fast charging requirements; based on the power monitoring results of each of the charging power sources that meet the fast charging requirements and the weight coefficients of each of the charging power sources that meet the fast charging requirements, the selection weights of each of the charging power sources that meet the fast charging requirements are determined; and the charging power source with the largest weight among the charging power sources that meet the fast charging requirements is used to charge the electronic device to be charged.
[0014] In one embodiment, performing power monitoring of each charging power source for a preset number of times and a first preset time length to obtain a power monitoring result of each charging power source includes the following steps:
[0015] When the detection results of each of the charging power sources indicate that there is no charging power source that meets the fast charging requirements among the multiple charging power sources, the MPPT technology is used to perform power monitoring on each of the charging power sources for the preset number of times and the first preset time length in a preset order to obtain power monitoring results of each of the charging power sources.
[0016] In one embodiment, performing power monitoring for the first preset time length for the preset number of times on each charging power source to obtain the power monitoring result of each charging power source includes the following steps:
[0017] When the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging power sources, the MPPT technology is used to perform power monitoring for the preset times and the first preset time length on each charging power source in a preset order to obtain the maximum power of the preset times corresponding to each charging power source; the maximum power is the maximum power of the charging power source within the first preset time length;
[0018] Based on the maximum powers of the preset times corresponding to the respective charging power sources, an average value and a standard deviation of the maximum powers of the preset times corresponding to the respective charging power sources are determined.
[0019] In one embodiment, determining the selection weight of each charging power source based on the power monitoring result of each charging power source and the weight coefficient of each charging power source comprises the following steps:
[0020] Determining a power stability weight of each of the charging power sources based on an average value and a standard deviation of the maximum power of each of the charging power sources for the preset number of times;
[0021] Based on the power stability weight of each of the charging power sources and the weight coefficient of each of the charging power sources, a selection weight of each of the charging power sources is determined.
[0022] In one embodiment, after charging the electronic device to be charged by using the charging power source with the largest selection weight, the following steps are included:
[0023] The weight coefficient corresponding to the charging power source with the largest weight is increased according to a preset scale to obtain the adjusted weight coefficient corresponding to each of the charging power sources.
[0024] In one embodiment, after the weight coefficient corresponding to the charging power source with the largest weight is increased according to a preset scale to obtain the adjusted weight coefficients corresponding to each of the charging power sources, the following steps are included:
[0025] When there is a weight coefficient greater than or equal to a preset weight coefficient threshold value among the adjusted weight coefficients corresponding to the respective charging power sources, calculating a difference between the adjusted weight coefficients corresponding to the respective charging power sources;
[0026] When the difference between the adjusted weight coefficients corresponding to the respective charging power sources is greater than or equal to a preset weight coefficient difference threshold, the adjusted weight coefficient corresponding to the respective charging power sources is used as a fixed value of the weight coefficient corresponding to the respective charging power sources;
[0027] When the differences of the adjusted weight coefficients corresponding to the respective charging power sources are all smaller than the preset weight coefficient difference threshold, the weight coefficients corresponding to the respective charging power sources are initialized.
[0028] In one embodiment, after charging the electronic device to be charged using the charging power source with the largest selection weight, the following steps are also included:
[0029] When the charging time of the electronic device to be charged using the charging power source with the largest selection weight reaches a preset charging time, the step of performing power monitoring on each of the charging power sources is repeated respectively, and the selection weight of each of the charging power sources is updated based on the power monitoring result of each of the charging power sources to obtain the updated selection weight of each of the charging power sources;
[0030] The electronic device to be charged is charged using the charging power source with the largest selection weight that is most recently determined.
[0031] In a second aspect, the present application further provides a charging system, wherein the charging system is a charging system for charging the same electronic device with multiple charging power supplies, and the electronic device is charged using the charging method described in the first aspect above, and the system includes: an interface module, a switching module, a charging chip module, and an MCU module;
[0032] The interface module is connected to the switching module, the charging chip module and the MCU module respectively; the interface module is used to output voltage to the charging chip module by using the charging power source that meets the fast charging requirement when the detection result of each charging power source indicates that there is a charging power source that meets the fast charging requirement; when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging sources, the charging power source with the largest selection weight is used to output voltage to the charging chip module;
[0033] The switching module is connected to the MCU module and the charging chip module, and is used to respond to the switching command of the MCU module and switch to the charging power source with the largest selection weight to output voltage to the charging chip module;
[0034] The charging chip module is respectively connected to the MCU module and the electronic device to be charged, and is used to charge the electronic device to be charged based on the received voltage of the charging power source that meets the fast charging requirement when the detection result of each charging power source indicates that there is a charging power source that meets the fast charging requirement; when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among multiple charging power sources, the electronic device to be charged is charged based on the received voltage of the charging power source with the largest selection weight; the charging chip module is also used to perform power regulation on the MCU module in the process of performing power monitoring on each charging power source using MPPT technology;
[0035] The MCU module is used to perform power monitoring of each of the charging power sources for a preset number of times and a first preset time length based on the power regulation of the charging chip module to obtain power monitoring results of each of the charging power sources; determine the selection weight of each of the charging power sources based on the power monitoring results of each of the charging power sources and the weight coefficient of each of the charging power sources; generate and send the switching command to the switching module based on the selection weight of each of the charging power sources; the MCU module is also used to perform charging power detection on multiple charging power sources connected to the electronic device to be charged in response to the received charging command to obtain the detection result of each of the charging power sources.
[0036] In a third aspect, the present application further provides a charging device. A charging system for charging a same electronic device using multiple charging power sources, the device comprising:
[0037] a detection module, configured to detect the charging power supply of the plurality of charging power supplies connected to the electronic device to be charged in response to the received charging command, and obtain the detection result of each charging power supply;
[0038] A monitoring module, configured to perform power monitoring of each charging power source for a preset number of times and a first preset time length, respectively, to obtain a power monitoring result of each charging power source when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging power sources, and obtain the power monitoring result of each charging power source; the power monitoring result includes an average value and a standard deviation of the maximum power of the charging power source collected for the preset number of times; the charging power source that meets the fast charging requirement is a charging power source that supports the fast charging protocol and whose charging power meets the preset power requirement;
[0039] a selection weight determination module, configured to determine a selection weight of each of the charging power sources based on a power monitoring result of each of the charging power sources and a weight coefficient of each of the charging power sources; the weight coefficient represents the number of times the charging power source has been selected within a second preset time length in history;
[0040] and a charging module, which is used to charge the electronic device to be charged by using the charging power source with the largest selection weight.
[0041] The above charging method, system and device detect multiple charging power supplies connected to the electronic device to be charged. When the detection results of each charging power supply indicate that there is no charging power supply that meets the fast charging requirements among the multiple charging power supplies, the power monitoring of each charging power supply is performed for a preset number of times for a first preset time length to obtain the power monitoring results of each charging power supply. Then, based on the power monitoring results of each charging power supply and the weight coefficient of each charging power supply, the selection weight of each charging power supply is determined, and the charging power supply with the largest selection weight is used to charge the electronic device to be charged. The selection weight is a combination of the power value of each charging power supply, the stability of the power of each charging power supply, and the number of times each charging power supply is selected in the previous preset second time period. Therefore, the charging power supply with the largest selection weight is the preferred charging power supply with the comprehensive power size, stability and historical selection times. It can maximize the charging efficiency under the premise of ensuring the stability of the charging power supply used, and solves the problem of low charging efficiency of the electronic device in the existing charging method of using multiple charging power supplies to charge the same electronic device.
[0042] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0044] Figure 1 A hardware structure block diagram of a terminal of a charging method provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of a charging method provided in one embodiment of the present application;
[0046] Figure 3 A flowchart of a charging method provided in a preferred embodiment of the present application;
[0047] Figure 4A structural block diagram of a charging system provided in one embodiment of the present application;
[0048] Figure 5 This is a structural block diagram of a charging device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0050] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0051] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the charging method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0052] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the charging method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0053] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0054] In this embodiment, a charging method is provided, which is applied to a charging system in which multiple charging power sources are used to charge the same electronic device. Figure 2 is a flow chart of the charging method of this embodiment, such as Figure 2 As shown, the process includes the following steps:
[0055] Step S210, in response to the received charging command, performing charging power source detection on multiple charging power sources connected to the electronic device to be charged, and obtaining detection results of each charging power source.
[0056] The above-mentioned multi-channel charging power source may be a plurality of different types of power sources that can charge the same electronic device. The above-mentioned multi-channel charging power source may also provide charging services for multiple devices. The above-mentioned charging power source may include but is not limited to a power adapter, a solar panel, a mobile power source, and a wireless charger. The above-mentioned electronic device may be one of a mobile phone, a tablet computer, an electric car, a tram, etc., or may be other electronic devices that can be charged with a variety of charging power sources.
[0057] The charging command may be a command set by the user that includes a charging requirement, and specifically, may be a charging requirement set by the user through a mobile phone or tablet client that requires charging for a preset time or that requires charging to reach a certain power threshold. It should be noted that the charging command may also be a charging command automatically generated when the electronic device to be charged is connected to multiple charging power sources, which defaults to fully charging the battery of the electronic device.
[0058] In this step, the multi-channel charging power supply connected to the electronic device to be charged can be a multi-channel charging power supply connected to the electronic device to be charged through a general charging interface. Among them, the general charging interface can include multiple sub-charging interfaces. Among them, each of the sub-charging interfaces can correspond to a different charging power supply. That is, when the same electronic device is charged with a multi-channel charging power supply, each charging power supply is connected to the electronic device to be charged through each sub-charging interface. Specifically, each of the sub-charging interfaces can be one or more of a USB (Universal Serial Bus) charging interface, a DC (Direct Current) charging interface, a PoE (Power over Ethernet) charging interface, etc. It should be noted that each charging interface can be connected to different types of power supplies. For example, a USB interface can be connected to a USB solar panel and a power adapter.
[0059] When using multiple charging power sources to charge an electronic device to be charged, if there is a charging power source that meets the fast charging requirements among the multiple charging power sources, such as a charging power source that supports the QC (Quick Charge, fast charging technology) or PD (Power Delivery, power transmission technology) fast charging protocol, and the charging power reaches the preset power requirement, then the charging power source that meets the fast charging requirements is preferentially selected to charge the electronic device to be charged. Only when there is no charging power source that meets the fast charging requirements among the multiple charging power sources, it is necessary to monitor the power of each charging power source separately to calculate the selection weight of each charging power source, and select the charging power source with the largest weight to charge the electronic device to be charged. Based on this, it is necessary to first perform charging power detection on the multiple charging power sources connected to the electronic device to be charged, and obtain the detection results of each charging power source to determine whether there is a charging power source that meets the fast charging requirements among the charging power sources.
[0060] The detection results of the above-mentioned charging power sources may be the detection results of whether each charging power source supports the fast charging protocol, and under the premise of supporting the fast charging protocol, whether the charging power that can be provided can meet the preset power requirements. The detection results of the above-mentioned charging power sources are used to indicate whether there is a charging power source that meets the fast charging requirements among the multiple charging sources. The above-mentioned preset power requirements may be set according to specific circumstances, and are applicable to the range of charging power that a charging power source that supports the fast charging protocol needs to be able to provide for charging the electronic device to be charged.
[0061] Step S220, when the detection results of each charging power source indicate that there is no charging power source that meets the fast charging requirements among the multiple charging power sources, power monitoring is performed on each charging power source for a preset number of times and a first preset time length to obtain a power monitoring result of each charging power source; the power monitoring result includes an average value and a standard deviation of the maximum power of the charging power source collected for a preset number of times; the charging power source that meets the fast charging requirements is a charging power source that supports the fast charging protocol and whose charging power reaches the preset power requirement.
[0062] In this step, the power monitoring of the charging power source may be performed by using a preset method to track the power of the charging power source for a preset number of times for a first preset time length, so as to obtain the maximum power value of the charging power source for a preset number of times within the first preset time length. The first preset time length may be set according to specific circumstances, and may be the time required to stably track the maximum power of the charging power source. Generally, the first preset time length may be set to a time length value within 30 seconds to 1 minute. For example, the first preset time length may be set to 1 minute. Specifically, the MPPT (Maximum Power Point Tracking) technology of the perturbation observation method may be used to track the power of the charging power source for a preset number of times for a first preset time length, wherein if the preset first time length is 1 minute, the power value obtained by converging after tracking for 1 minute using the perturbation observation method may be used as the maximum power tracked by the current charging power source this time. The preset number of times may be set specifically according to specific circumstances, and this embodiment does not specifically limit this. For example, the preset number of times may be set to 5 times, that is, power tracking of the first preset time length is performed 5 times on each charging power source, and 5 maximum powers obtained from the 5 power trackings of each charging power source are obtained.
[0063] In this embodiment, the power size and charging power stability of the charging power are judged by the average value and standard deviation of the maximum power. Specifically, after obtaining the maximum power of each charging power source for a preset number of times, the average value and standard deviation of the maximum power corresponding to each charging power source for a preset number of times are calculated to judge the power size and power stability of each charging power source. Therefore, the power monitoring result of each charging power source obtained above can be the average value and standard deviation of the maximum power of each charging power source for a preset number of times.
[0064] Step S230, determining the selection weight of each charging power source based on the power monitoring results of each charging power source and the weight coefficient of each charging power source; the weight coefficient represents the number of times the charging power source is selected within the second preset time length in the history.
[0065] Considering that in certain specific scenarios, such as when it is necessary to avoid frequent switching of charging power sources, or when it is necessary to reduce the loss of the data acquisition and calculation process, when a certain charging power source is selected the most times after comprehensively considering the power size and the charging power stability in a previous period of time, considering that when the charging power source is selected next time, the charging power source that is selected the most times in the previous period of time is still most likely to be selected after comprehensively considering the power size and the charging power stability, this embodiment introduces a coefficient related to the number of times the charging power source is selected within a preset certain time length in history, that is, the weight coefficient of the charging power source, which is used to use the number of times each charging power source is selected within a preset certain time period in history as a reference condition for selecting the next charging power source.
[0066] Specifically, the weight coefficients of the above-mentioned charging power sources can be used to characterize the number of times the charging power source is selected within the second preset time length in the history. The above-mentioned second preset time length can be set according to the specific situation, and this embodiment does not make specific restrictions here. For example, the second preset time length can be set to one week, one day or one month. Because the frequency of charging the electronic device using this charging system is different in different scenarios, the preset second time length can be set according to the frequency of charging the electronic device using this charging system. By setting the weight coefficient of the charging power source, it can intelligently select the charging power source that is more matched with the current specific environment under the condition of comprehensively considering the power size and charging power stability of the charging power source. Specifically, it can be based on a certain season in a certain area, a charging source with a certain characteristic will be frequently selected many times, and the weight coefficient of the charging power source will be larger. At the same time, as the charging system is used for a long time, the charging system will gradually make more appropriate choices intelligently according to the law of the use of the charging power source. For example, when there is sufficient light in a certain period of time and a certain area, the solar charging power source is used most frequently, and the weight coefficient corresponding to the solar charging power source is also the highest at this time. The selection weight of the above-mentioned charging power source can be used to characterize the probability that the charging power source is selected to charge the electronic device to be charged. Specifically, when the selection weight of the charging power source is greater, the probability that the current charging power source is selected to charge the electronic device to be charged is greater; when the selection weight of the charging power source is smaller, the probability that the current charging power source is selected to charge the electronic device to be charged is smaller.
[0067] The above-mentioned determination of the selection weight of each charging power source based on the power monitoring results of each charging power source and the weight coefficient of each charging power source may be based on the power monitoring results of each charging power source and the weight coefficient of each charging power source, to determine the power stability weight of each charging power source, and then, based on the power stability weight of each charging power source and the weight coefficient of each charging power source, to determine the selection weight of each charging power source. The above-mentioned power stability weight may be an indicator of the importance of the power size and the stability of the charging power when selecting a charging power source. Specifically, when the power stability weight of the charging power source is larger, it means that the current charging power source is more likely to be selected in the case of comprehensive consideration of the power size and the stability of the charging power, and when the power stability weight of the charging power source is smaller, it means that the current charging power source is less likely to be selected in the case of comprehensive consideration of the power size and the stability of the charging power.
[0068] Step S240: charging the electronic device to be charged by using the charging power source with the largest selection weight.
[0069] In the above steps S210 to S240, by performing charging power supply detection on multiple charging power supplies connected to the electronic device to be charged, when the detection results of each charging power supply indicate that there is no charging power supply that meets the fast charging requirements among the multiple charging power supplies, power monitoring is performed on each charging power supply to obtain the power monitoring results of each charging power supply within the first preset time length, and then, based on the power monitoring results of each charging power supply and the weight coefficient of each charging power supply, the selection weight of each charging power supply is determined, and the charging power supply with the largest selection weight is used to charge the electronic device to be charged. The selection weight is a combination of the power value of each charging power supply, the stability of the power of each charging power supply, and the number of times each charging power supply is selected in the previous preset second time period. Therefore, the charging power supply with the largest selection weight is the preferred charging power supply based on the power size, stability and historical selection number, which can maximize the charging efficiency under the premise of ensuring the stability of the charging power supply used, and solves the problem of low charging efficiency of the electronic device in the existing charging method of charging the same electronic device using multiple charging power supplies.
[0070] In one embodiment, after step S210, the method further includes:
[0071] Step S211, when the detection results of the various charging power sources indicate that there is a charging power source that meets the fast charging requirement, the electronic device to be charged is charged using the charging power source that meets the fast charging requirement.
[0072] Step S212, when the detection results of each charging power source indicate that there are multiple charging power sources that meet the fast charging requirements, power monitoring is performed for a preset number of times and a first preset time length on each charging power source that meets the fast charging requirements to obtain power monitoring results of each charging power source that meets the fast charging requirements; based on the power monitoring results of each charging power source that meets the fast charging requirements and the weight coefficient of each charging power source that meets the fast charging requirements, a selection weight of each charging power source that meets the fast charging requirements is determined; and the charging power source with the largest weight among the charging power sources that meet the fast charging requirements is selected to charge the electronic device to be charged.
[0073] In the above steps S211 to S212, when the detection results of various charging power sources indicate that there is a charging power source that meets the fast charging requirements, the charging power source that meets the fast charging protocol is preferentially used to charge the device, and when there are multiple charging power sources that meet the fast charging requirements, power detection is performed on the multiple charging power sources that meet the fast charging requirements, and the optimal charging power source is selected according to the power monitoring results.
[0074] Specifically, in one embodiment, based on step S220, power monitoring of each charging power source is performed for a preset number of times and for a first preset time length, and a power monitoring result of each charging power source is obtained, including:
[0075] Step S222, when the detection results of each charging power source indicate that there is no charging power source that meets the fast charging requirements among the multiple charging sources, in accordance with a preset order, using MPPT technology, power monitoring is performed on each charging power source for a preset number of times and a first preset time length to obtain power monitoring results of each charging power source.
[0076] In this step, the preset sequence may be a pre-set sequence for power monitoring of the charging power supply. The preset sequence may be a monitoring sequence set according to different types of charging interfaces, or a monitoring sequence set according to different types of charging power supplies. For example, the charging system includes two sub-charging interfaces, namely a USB charging interface and a DC charging interface. When the charging system is used to charge the electronic device to be charged, the charging system may be first switched to the USB interface, and the power of the charging power supply connected to the USB charging interface is monitored to obtain the power monitoring result of the charging power supply connected to the USB charging interface within a first preset time length. After the power monitoring of the charging power supply connected to the USB charging interface is completed, the charging system is switched to the DC charging interface, and the power of the charging power supply connected to the DC charging interface is monitored to obtain the power monitoring result of the charging power supply connected to the DC charging interface. If the same charging interface is connected to different types of charging power supplies, it is necessary to set priorities for the different types of charging power supplies. By setting priorities, the order of power monitoring of the same charging interface connected to different types of charging power supplies is determined.
[0077] In addition, in one embodiment, step S222, performing power monitoring of each charging power source for a preset number of times and a first preset time length to obtain a power monitoring result of each charging power source includes:
[0078] Step S2222, when the detection results of each charging power source indicate that there is no charging power source that meets the fast charging requirements among the multiple charging sources, in accordance with a preset order, using MPPT technology, power monitoring is performed on each charging power source for a preset number of times and a first preset time length, to obtain the maximum power of each charging power source corresponding to the preset number of times; the maximum power is the maximum power of the charging power source within the first preset time length.
[0079] Step S2224: based on the maximum powers of the preset times corresponding to the respective charging power sources, determine the average value and standard deviation of the maximum powers of the preset times of the respective charging power sources within the first preset time length.
[0080] In the above steps S2222 to S2224, the maximum power of the preset times corresponding to each charging power source is obtained by monitoring the power of each charging power source in a preset order, and then the average value and standard deviation of the maximum power of the preset times corresponding to each charging power source are determined according to the maximum power of the preset times corresponding to each charging power source. The maximum power of the preset times of each charging power source is obtained, and the average value and standard deviation of the maximum power of the preset times corresponding to each charging power source are calculated, that is, the charging power size and the stability of the charging power are reflected by the average value and standard deviation, so that the selection weight of the charging power source can be determined according to the charging power size and the stability of the charging power of each charging power source.
[0081] In one embodiment, the above step S230, based on the power monitoring results of each charging power source and the weight coefficient of each charging power source, determines the selection weight of each charging power source, including:
[0082] Step S232: determining the power stability weight of each charging power source based on the average value and standard deviation of the maximum power of each charging power source for a preset number of times.
[0083] The power stability weight W of each charging power source is determined based on the average value and standard deviation of the maximum power of each charging power source for the preset number of times. s The calculation process is as follows:
[0084]
[0085] Among them, P avg is the average value of the maximum power of the preset number of times of the current charging power source, P std It is the standard deviation of the maximum power of the preset number of times of the current charging power source.
[0086] Step S234: determining the selection weight of each charging power source based on the power stability weight of each charging power source and the weight coefficient of each charging power source.
[0087] The selection weight P of each charging power source is determined based on the power stability weight of each charging power source and the weight coefficient of each charging power source. wt The calculation process is as follows:
[0088]
[0089] Among them, P coe is the weight coefficient of the current charging power source.
[0090] In the above steps S232 to S234, the selection weight of each charging power source is determined by the power monitoring results of each charging power source and the weight coefficient of each charging power source. By determining the selection weight of the charging power source, it is convenient to subsequently select the charging power source with the largest selection weight to charge the electronic device to be charged.
[0091] In addition, in one embodiment, after step S240, the following steps are included:
[0092] Step S242 , increasing the weight coefficient corresponding to the charging power source with the largest weight according to a preset scale to obtain adjusted weight coefficients corresponding to each charging power source.
[0093] Because the weight coefficient represents the number of times a charging power source is selected within the second preset time length in history, therefore, within the preset statistical time range, each time a charging power source is selected for charging, the weight coefficient corresponding to the selected charging power source needs to be increased once according to the preset scale. The above preset scale can be specifically set according to the specific situation, as long as it is ensured that the weight coefficient increases with the number of times the charging power source is selected. It should be noted that the above preset scale cannot be too large to avoid a single selection of a charging power source having too much impact on the weight coefficient of the selected charging power source. In addition, the above preset scale cannot be too small. When the preset scale is set too small, a single selection of a charging power source has too little impact on the weight coefficient of the selected charging power source. For example, the preset scale can be 0.01.
[0094] The weight coefficient corresponding to the charging power source with the largest weight is increased according to a preset scale to obtain the adjusted weight coefficient corresponding to each charging power source. The process is as follows:
[0095]
[0096] Among them, P 1coe is the weight coefficient corresponding to the charging power source with the largest weight in the current charging cycle, and a is a preset scale.
[0097] Further, in one embodiment, after step S242, the following steps are included:
[0098] Step S244 , when there is a weight coefficient greater than or equal to a preset weight coefficient threshold value among the adjusted weight coefficients corresponding to the various charging power sources, the difference between the adjusted weight coefficients corresponding to the various charging power sources is calculated.
[0099] As the cumulative number of times the selected charging power source is used on the electronic device gradually increases, the adjusted weight coefficients corresponding to each charging power source gradually increase. When there is a charging power source whose weight coefficient far exceeds the weight coefficients of other charging power sources, and the power stability weight of the charging power source corresponding to this largest weight coefficient is greater than the minimum power stability weight threshold, at this time, even if the weight coefficient corresponding to the charging power source continues to increase according to the preset scale, the charging power source finally selected is still the charging power source whose weight coefficient far exceeds the weight coefficient of other charging power sources. Therefore, it is meaningless to continue to adjust the weight coefficient. Based on this, the weight coefficients of each charging power source can be fixed and no longer adjusted. The above-mentioned minimum power stability weight threshold can be the minimum power stability weight requirement of the charging power source to ensure normal charging of the electronic device to be charged.
[0100] The above-mentioned preset weight coefficient threshold value can be specifically set according to specific circumstances, and this embodiment does not make any specific limitation here.
[0101] In this step, when there is a weight coefficient greater than or equal to a preset weight coefficient threshold value among the adjusted weight coefficients corresponding to the various charging power sources, it is necessary to calculate the difference between the adjusted weight coefficients corresponding to the various charging power sources, so as to determine whether to determine the weight coefficients of the various charging power sources at this time as fixed values according to the difference between the adjusted weight coefficients.
[0102] Step S246, when the difference between the adjusted weight coefficients corresponding to each charging power source is greater than or equal to a preset weight coefficient difference threshold, the adjusted weight coefficient corresponding to each charging power source is used as a fixed value of the weight coefficient corresponding to each charging power source.
[0103] The above-mentioned preset weight coefficient difference threshold may be a value related to the preset weight coefficient threshold, and specifically may be a value less than the preset weight coefficient threshold. For example, the preset weight coefficient difference threshold may be set equal to 0.8 times the preset weight coefficient threshold. A specific example is as follows: when the preset weight coefficient difference threshold is equal to 0.8 times the preset weight coefficient threshold, when the difference in the adjusted weight coefficients corresponding to each charging power source is greater than or equal to 0.8 times the preset weight coefficient threshold, then there will be a certain charging power source corresponding to the adjusted weight coefficient, which is much greater than the weight coefficients of other charging power sources. Therefore, at this time, the adjusted weight coefficient corresponding to each charging power source can be used as a fixed value of the weight coefficient corresponding to each charging power source, and the weight coefficient is no longer adjusted.
[0104] Step S248 , when the differences of the adjusted weight coefficients corresponding to the various charging power sources are all smaller than the preset weight coefficient difference threshold, the weight coefficients corresponding to the various charging power sources are initialized.
[0105] When there is a weight coefficient greater than or equal to a preset weight coefficient threshold value among the adjusted weight coefficients corresponding to each of the charging power sources, if the difference between the adjusted weight coefficients corresponding to each of the charging power sources is less than the preset weight coefficient difference threshold value, the weight coefficient corresponding to each of the charging power sources cannot be fixed. At this time, the weight coefficient of each of the charging power sources is relatively large, and the weight coefficient corresponding to each of the charging power sources can be initialized (the weight coefficient is reset).
[0106] It should be noted that the preset weight coefficient threshold value can be set according to the reset period of the weight coefficient of the charging power source, and the reset period of the weight coefficient of the charging power source can be set according to the specific application scenario, for example, the reset period of the weight coefficient of the charging power source is set according to the periodic climate characteristics. The above reset period can be one week, one month, one quarter or even one year. The above reset period can be the theoretical shortest period for initializing the weight coefficient corresponding to each charging power source. For example, the weight coefficient corresponding to each charging power source after initialization is 1. If the reset period is 1 day, the power monitoring of each charging power source for the first preset time length is performed for a preset number of times, and the cycle for updating the selection weight of each charging power source is 1 hour, then if the same charging power source is used for charging every time within 1 day, the preset scale is 0.1, and the weight coefficient corresponding to the selected charging power source after 1 day is 3.4. Therefore, the preset weight coefficient threshold value can be set to 3.4.
[0107] In the above steps S244 to S248, when there is a weight coefficient greater than or equal to the preset weight coefficient threshold value among the adjusted weight coefficients corresponding to each charging power source, the difference of the adjusted weight coefficients corresponding to each charging power source is calculated, and then the weight coefficient corresponding to each charging power source is determined to be set to a fixed value or initialized. By adjusting the weight coefficients of each charging power source, it is possible to directly solidify the weight coefficient of a charging power source that has an overwhelming advantage in both power size and charging power stability, solidify its advantage, avoid resetting, and reset the weight coefficient when the weight coefficient reaches the reset condition.
[0108] In one embodiment, after step S240, the method further includes:
[0109] Step S250: When the charging time of the electronic device to be charged using the charging power source with the largest selection weight reaches a preset charging time, the step of power monitoring is repeated for each charging power source, and the selection weight of each charging power source is updated based on the power monitoring result of each charging power source to obtain an updated selection weight of each charging power source.
[0110] The above-mentioned preset charging time can be specifically set according to specific needs. The above-mentioned preset charging time can be the charging time for which the selection weight of each charging power source needs to be updated. For example, if the preset charging time is 20 minutes, then whenever the charging time of the electronic device to be charged using the charging power source with the largest selection weight reaches 20 minutes, the power monitoring step is repeated for each charging power source, and the selection weight of each charging power source is updated based on the power monitoring result of each charging power source to obtain the updated selection weight of each charging power source, that is, the selection weight is updated every 20 minutes of charging.
[0111] Step S260: charging the electronic device to be charged by using the charging power source with the largest selection weight that is most recently determined.
[0112] In the above steps S250 to S260, when the charging time of the electronic device to be charged using the charging power source with the largest selection weight reaches the preset charging time, the step of repeatedly performing power monitoring on each charging power source is repeated, and the selection weight of each charging power source is updated based on the power monitoring result of each charging power source to obtain the updated selection weight of each charging power source, so as to update the selection weight every charging period, ensure that the selection weight of each charging power source is updated in time, determine the charging power source in time according to the updated selection weight, ensure that the electronic device to be charged is charged using the charging power source with the largest selection weight determined most recently, and ensure the optimal charging efficiency.
[0113] The present embodiment is described and illustrated below through preferred embodiments.
[0114] Figure 3 1 is a flow chart of a charging method provided by a preferred embodiment of the present application. Figure 3 As shown, the charging method includes the following steps:
[0115] Step S301, in response to the received charging command, performing charging power source detection on multiple charging power sources connected to the electronic device to be charged, and obtaining detection results of each charging power source;
[0116] Step S302, when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging sources, power monitoring is performed on each charging power source for a preset number of times and a first preset time length, and an average value and a standard deviation of the maximum power of the preset number of times corresponding to each charging power source are determined;
[0117] Step S303, determining a selection weight of each charging power source based on an average value and a standard deviation of the maximum power of each charging power source for a preset number of times and a weight coefficient of each charging power source;
[0118] Step S304, charging the electronic device to be charged by using the charging power source with the largest selection weight;
[0119] Step S305, increasing the weight coefficient corresponding to the charging power source with the largest weight according to a preset scale to obtain adjusted weight coefficients corresponding to each charging power source;
[0120] Step S306, when there is a weight coefficient greater than or equal to a preset weight coefficient threshold value among the adjusted weight coefficients corresponding to the various charging power sources, calculating the difference between the adjusted weight coefficients corresponding to the various charging power sources;
[0121] Step S307, when the difference between the adjusted weight coefficients corresponding to the various charging power sources is greater than or equal to a preset weight coefficient difference threshold, the adjusted weight coefficient corresponding to the various charging power sources is used as a fixed value of the weight coefficient corresponding to the various charging power sources;
[0122] Step S308, when the differences of the adjusted weight coefficients corresponding to the various charging power sources are all less than the preset weight coefficient difference threshold, initializing the weight coefficients corresponding to the various charging power sources;
[0123] Step S309, when the charging time of the electronic device to be charged using the charging power source with the largest selection weight reaches a preset charging time, the step of performing power monitoring on each charging power source is repeated respectively, and the selection weight of each charging power source is updated based on the power monitoring result of each charging power source to obtain an updated selection weight of each charging power source;
[0124] Step S310: charging the electronic device to be charged by using the charging power source with the largest selection weight that is most recently determined.
[0125] In the above steps S301 to S310, by performing charging power source detection on multiple charging power sources connected to the electronic device to be charged, when the detection results of each charging power source indicate that there is no charging power source that meets the fast charging requirements among the multiple charging power sources, power monitoring of each charging power source for a preset number of times and a first preset time length is performed on each charging power source to obtain the power monitoring results of each charging power source, and then, based on the power monitoring results of each charging power source and the weight coefficient of each charging power source, the selection weight of each charging power source is determined, and the charging power source with the largest selection weight is used to charge the electronic device to be charged. The selection weight is a combination of the power value of each charging power source, the stability of the power of each charging power source, and the number of times each charging power source is selected in the previous preset second time period. Therefore, the charging power source with the largest selection weight is the preferred charging power source based on the power size, stability and historical selection number, which can maximize the charging efficiency under the premise of ensuring the stability of the charging power source used, and solves the problem of low charging efficiency of the electronic device in the existing charging method of charging the same electronic device using multiple charging power sources.
[0126] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0127] Based on the same inventive concept, a charging system is also provided in this embodiment, which is a charging system for charging the same electronic device with multiple charging power supplies, and is used to charge the electronic device using the above-mentioned embodiments and preferred implementations, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can be a combination of software and / or hardware that implements predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0128] In one embodiment, Figure 4 is a structural block diagram of charging provided by an embodiment of the present application, such as Figure 4As shown, the charging system includes: an interface module 41, a switching module 42, a charging chip module 43, and an MCU (Microcontroller Unit) module 44 (referred to as microcontroller module);
[0129] The interface module 41 is respectively connected to the switching module 42, the charging chip module 43 and the MCU module 44; the interface module 41 is used to output voltage to the charging chip module 43 by using the charging power supply that meets the fast charging requirement when the detection results of each charging power source indicate that there is a charging power source that meets the fast charging requirement; when the detection results of each charging power source indicate that there is no charging power source that meets the fast charging requirement among multiple charging sources, the charging power source with the largest selection weight is used to output voltage to the charging chip module 43.
[0130] The interface module 41 may be a main charging interface including a plurality of sub-charging interfaces.
[0131] The switching module 42 is connected to the MCU module 44 and the charging chip module 43 , and is used to respond to the switching command of the MCU module 44 to switch to select the charging power source with the largest weight to output voltage to the charging chip module 43 .
[0132] The switching module 42 includes a plurality of switching switches, and each switching switch switches in response to a switching command of the MCU module 44 .
[0133] The charging chip module 43 is respectively connected to the MCU module 44 and the electronic device to be charged, and is used to charge the electronic device 45 to be charged based on the received voltage of the charging power supply that meets the fast charging requirement when the detection results of each charging power source indicate that there is a charging power source that meets the fast charging requirement; when the detection results of each charging power source indicate that there is no charging power source that meets the fast charging requirement among multiple charging sources, the electronic device 45 to be charged is charged based on the received voltage of the charging power source with the largest selection weight; the charging chip module 43 is also used to power regulate the MCU module 44 in the process of performing power monitoring on each charging power source separately using the MPPT technology.
[0134] The above-mentioned charging chip module 43 includes a charging chip. There are DP / DM, CC1 / CC2 and other communication signal connections between the charging chip and the interface module 41 for fast charging protocol detection. The charging chip can support mainstream QC or PD fast charging protocols and also supports power regulation.
[0135] The MCU module 44 is used to perform power monitoring of each charging power source for a preset number of times and a first preset time length based on the power regulation of the charging chip module 43, and obtain the power monitoring results of each charging power source; determine the selection weight of each charging power source based on the power monitoring results of each charging power source and the weight coefficient of each charging power source; generate and send a switching command to the switching module 42 based on the selection weight of each charging power source; the MCU module 44 is also used to perform charging power detection on multiple 4 charging power sources connected to the electronic device 45 to be charged in response to the received charging command, and obtain the detection results of each 4 charging power source.
[0136] The MCU module 44 is a low-power module that can adjust the input power of the charging chip through the I2C interface and use power tracking to optimize the charging power source and maximize the charging efficiency.
[0137] Preferably, the MCU module 44 is also connected to an electronic device to obtain power information of the electronic device 45 and obtain the power of the battery of the electronic device.
[0138] Since the basic control of the charging system requires the MCU module 44, the power supply of the MCU module 44 needs to be guaranteed first. Therefore, when there is any charging power supply on the lithium battery of the electronic device or the interface module 41, the MCU can be powered on. In one embodiment, the MCU module 44 can also be powered by an independent regulated power supply, and the lithium battery of the electronic device and each charging source of the charging interface are connected to the regulated power supply input terminal.
[0139] The above charging system detects the charging power supply of multiple charging power supplies connected to the electronic device to be charged. When the detection results of each charging power supply indicate that there is no charging power supply that meets the fast charging requirements among the multiple charging power supplies, the power monitoring of each charging power supply is performed for a preset number of times for a first preset time length to obtain the power monitoring results of each charging power supply. Then, based on the power monitoring results of each charging power supply and the weight coefficient of each charging power supply, the selection weight of each charging power supply is determined, and the charging power supply with the largest selection weight is used to charge the electronic device to be charged. The selection weight is a combination of the power value of each charging power supply, the stability of the power of each charging power supply, and the number of times each charging power supply is selected in the previous preset second time period. Therefore, the charging power supply with the largest selection weight is the preferred charging power supply based on the power size, stability and historical selection times. It can maximize the charging efficiency under the premise of ensuring the stability of the charging power supply used, and solves the problem of low charging efficiency of the electronic device in the existing charging method of using multiple charging power supplies to charge the same electronic device.
[0140] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0141] Based on the same inventive concept, a charging device is also provided in this embodiment, which is applied to a charging system in which multiple charging power sources charge the same electronic device. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "sub-unit", etc. used below can be a combination of software and / or hardware that implements predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0142] In one embodiment, Figure 5 is a structural block diagram of a charging device provided in an embodiment of the present application, such as Figure 5 As shown, the charging device comprises:
[0143] The detection module 51 is used to detect the charging power supply of multiple charging power supplies connected to the electronic device to be charged in response to the received charging command, and obtain the detection result of each charging power supply;
[0144] The monitoring module 52 is used to perform power monitoring of each charging power source for a preset number of times and a first preset time length when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging power sources, so as to obtain the power monitoring result of each charging power source; the power monitoring result includes the average value and standard deviation of the maximum power of the charging power source collected for the preset number of times; the charging power source that meets the fast charging requirement is a charging power source that supports the fast charging protocol and whose charging power meets the preset power requirement;
[0145] A selection weight determination module 53 is used to determine the selection weight of each charging power source based on the power monitoring result of each charging power source and the weight coefficient of each charging power source; the weight coefficient represents the number of times the charging power source is selected within a second preset time length in the history;
[0146] and a charging module 54, which is used to charge the electronic device to be charged by using the charging power source with the largest selection weight.
[0147] The above charging device detects the charging power supply of multiple charging power supplies connected to the electronic device to be charged. When the detection results of each charging power supply indicate that there is no charging power supply that meets the fast charging requirements among the multiple charging power supplies, the power monitoring of each charging power supply is performed for a preset number of times for a first preset time length to obtain the power monitoring results of each charging power supply. Then, based on the power monitoring results of each charging power supply and the weight coefficient of each charging power supply, the selection weight of each charging power supply is determined, and the charging power supply with the largest selection weight is used to charge the electronic device to be charged. The selection weight is a combination of the power value of each charging power supply, the stability of the power of each charging power supply, and the number of times each charging power supply is selected in the previous preset second time period. Therefore, the charging power supply with the largest selection weight is the preferred charging power supply based on the power size, stability and historical selection times. It can maximize the charging efficiency under the premise of ensuring the stability of the charging power supply used, and solves the problem of low charging efficiency of the electronic device in the existing charging method of using multiple charging power supplies to charge the same electronic device.
[0148] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0150] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0151] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A charging method, applied to a charging system in which multiple charging power sources are used to charge the same electronic device, characterized in that: The method comprises: In response to the received charging command, performing charging power source detection on multiple charging power sources connected to the electronic device to be charged, and obtaining detection results of each charging power source; When the detection results of each of the charging power sources indicate that there is no charging power source that meets the fast charging requirements among the multiple charging power sources, power monitoring is performed on each of the charging power sources for a preset number of times and a first preset time length to obtain power monitoring results of each of the charging power sources; the power monitoring results include an average value and a standard deviation of the maximum power of the charging power sources collected for the preset number of times; the charging power source that meets the fast charging requirements is a charging power source that supports the fast charging protocol and whose charging power meets the preset power requirements; Determining a selection weight of each charging power source based on a power monitoring result of each charging power source and a weight coefficient of each charging power source; the weight coefficient represents the number of times the charging power source is selected within a second preset time length in history; The electronic device to be charged is charged by using the charging power source with the largest selection weight.
2. The charging method according to claim 1, characterized in that: In response to the received charging command, after performing charging power source detection on multiple charging power sources connected to the electronic device to be charged and obtaining the detection result of each charging power source, the method further includes: When the detection results of the charging power sources indicate that there is a charging power source that meets the fast charging requirement, the electronic device to be charged is charged using the charging power source that meets the fast charging requirement; Or, when the detection results of each of the charging power sources indicate that there are multiple charging power sources that meet the fast charging requirements, power monitoring is performed on each of the charging power sources that meet the fast charging requirements for the preset number of times and the first preset time length to obtain power monitoring results of each of the charging power sources that meet the fast charging requirements; based on the power monitoring results of each of the charging power sources that meet the fast charging requirements and the weight coefficients of each of the charging power sources that meet the fast charging requirements, the selection weights of each of the charging power sources that meet the fast charging requirements are determined; and the charging power source with the largest weight among the charging power sources that meet the fast charging requirements is used to charge the electronic device to be charged.
3. The charging method according to claim 1, characterized in that: The performing power monitoring of each charging power source for a preset number of times and a first preset time length to obtain a power monitoring result of each charging power source includes: When the detection results of each of the charging power sources indicate that there is no charging power source that meets the fast charging requirements among the multiple charging power sources, the MPPT technology is used to perform power monitoring on each of the charging power sources for the preset number of times and the first preset time length in a preset order to obtain the power monitoring results of each of the charging power sources.
4. The charging method according to claim 3, characterized in that: The performing power monitoring for the first preset time length for the preset number of times on each of the charging power sources to obtain the power monitoring result of each of the charging power sources includes: When the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging power sources, the MPPT technology is used to perform power monitoring for the preset times and the first preset time length on each charging power source in a preset order to obtain the maximum power of the preset times corresponding to each charging power source; the maximum power is the maximum power of the charging power source within the first preset time length; Based on the maximum powers of the preset times corresponding to the respective charging power sources, an average value and a standard deviation of the maximum powers of the preset times corresponding to the respective charging power sources are determined.
5. The charging method according to any one of claims 1 to 4, characterized in that: The determining the selection weight of each charging power source based on the power monitoring result of each charging power source and the weight coefficient of each charging power source includes: Determining a power stability weight of each of the charging power sources based on an average value and a standard deviation of the maximum power of each of the charging power sources for the preset number of times; Based on the power stability weight of each of the charging power sources and the weight coefficient of each of the charging power sources, a selection weight of each of the charging power sources is determined.
6. The charging method according to any one of claims 1 to 4, characterized in that: After charging the electronic device to be charged by using the charging power source with the largest selection weight, the method includes: The weight coefficient corresponding to the charging power source with the largest weight is increased according to a preset scale to obtain the adjusted weight coefficient corresponding to each of the charging power sources.
7. The charging method according to claim 6, characterized in that: After the weight coefficient corresponding to the charging power source with the largest weight is increased according to a preset scale to obtain the adjusted weight coefficients corresponding to the respective charging power sources, the method further comprises: When there is a weight coefficient greater than or equal to a preset weight coefficient threshold value among the adjusted weight coefficients corresponding to the respective charging power sources, calculating a difference between the adjusted weight coefficients corresponding to the respective charging power sources; When the difference between the adjusted weight coefficients corresponding to the respective charging power sources is greater than or equal to a preset weight coefficient difference threshold, the adjusted weight coefficient corresponding to the respective charging power sources is used as a fixed value of the weight coefficient corresponding to the respective charging power sources; When the differences of the adjusted weight coefficients corresponding to the respective charging power sources are all smaller than the preset weight coefficient difference threshold, the weight coefficients corresponding to the respective charging power sources are initialized.
8. The charging method according to any one of claims 1 to 4, characterized in that: After charging the electronic device to be charged by using the charging power source with the largest selection weight, the method further includes: When the charging time of the electronic device to be charged using the charging power source with the largest selection weight reaches a preset charging time, the step of performing power monitoring on each of the charging power sources is repeated respectively, and the selection weight of each of the charging power sources is updated based on the power monitoring result of each of the charging power sources to obtain the updated selection weight of each of the charging power sources; The electronic device to be charged is charged using the charging power source with the largest selection weight that is most recently determined.
9. A charging system, wherein the charging system is a charging system in which multiple charging power sources charge the same electronic device, and the charging method according to any one of claims 1 to 8 is used to charge the electronic device, wherein: The system includes: an interface module, a switching module, a charging chip module, and an MCU module; The interface module is connected to the switching module, the charging chip module and the MCU module respectively; the interface module is used to output voltage to the charging chip module by using the charging power source that meets the fast charging requirement when the detection result of each charging power source indicates that there is a charging power source that meets the fast charging requirement; when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging power sources, the charging power source with the largest selection weight is used to output voltage to the charging chip module; The switching module is connected to the MCU module and the charging chip module, and is used to respond to the switching command of the MCU module and switch to the charging power source with the largest selection weight to output voltage to the charging chip module; The charging chip module is respectively connected to the MCU module and the electronic device to be charged, and is used to charge the electronic device to be charged based on the received voltage of the charging power source that meets the fast charging requirement when the detection result of each charging power source indicates that there is a charging power source that meets the fast charging requirement; when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among multiple charging power sources, the electronic device to be charged is charged based on the received voltage of the charging power source with the largest selection weight; the charging chip module is also used to perform power regulation on the MCU module in the process of performing power monitoring on each charging power source using MPPT technology; The MCU module is used to perform power monitoring of each charging power source for a preset number of times and a first preset time length based on the power regulation of the charging chip module to obtain power monitoring results of each charging power source; determine the selection weight of each charging power source based on the power monitoring results of each charging power source and the weight coefficient of each charging power source; generate and send the switching command to the switching module based on the selection weight of each charging power source; the MCU module is also used to perform charging power detection on multiple charging power sources connected to the electronic device to be charged in response to the received charging command to obtain the detection result of each charging power source.
10. A charging device, used in a charging system where multiple charging power sources charge the same electronic device, characterized in that: The device comprises: a detection module, configured to detect the charging power supply of the plurality of charging power supplies connected to the electronic device to be charged in response to the received charging command, and obtain the detection result of each charging power supply; A monitoring module, configured to perform power monitoring of each charging power source for a preset number of times and a first preset time length, respectively, to obtain a power monitoring result of each charging power source when the detection result of each charging power source indicates that there is no charging power source that meets the fast charging requirement among the multiple charging power sources, and obtain the power monitoring result of each charging power source; the power monitoring result includes an average value and a standard deviation of the maximum power of the charging power source collected for the preset number of times; the charging power source that meets the fast charging requirement is a charging power source that supports the fast charging protocol and whose charging power meets the preset power requirement; a selection weight determination module, configured to determine a selection weight of each of the charging power sources based on a power monitoring result of each of the charging power sources and a weight coefficient of each of the charging power sources; the weight coefficient represents the number of times the charging power source has been selected within a second preset time length in history; and a charging module, which is used to charge the electronic device to be charged by using the charging power source with the largest selection weight.
Citation Information
Patent Citations
Design and management method of multi-channel charging device based on Bluetooth terminal
CN109638927A
Power supply management system and method of vehicle-mounted station
CN110829814A