Power supply device identification method, identification circuit, and electronic device
By introducing a maximum power tracking circuit into electronic devices and utilizing current and voltage variation characteristics to identify power device types, the problem of low identification accuracy in existing technologies is solved, achieving more efficient power device type differentiation and safer charging.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ECOFLOW INC
- Filing Date
- 2023-03-30
- Publication Date
- 2026-07-10
AI Technical Summary
In the existing technology, the accuracy of electronic devices in identifying the type of power supply is not ideal, especially when it is DC charging and photovoltaic charging, it is difficult to distinguish the type of power supply.
By introducing a maximum power point tracking circuit into the electronic device, a control signal is generated to control the change in output current. Combined with the change in input voltage, the voltage and current characteristics of photovoltaic power supply and DC regulated power supply are used to achieve type identification.
It improves the accuracy of power device type identification, avoids increased hardware costs, and ensures charging safety and efficiency.
Smart Images

Figure CN116436122B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of new energy, specifically to a method, identification circuit, and electronic equipment for identifying power supply devices. Background Technology
[0002] In many aspects of life, wherever electronic devices are used, charging is necessary. Common charging methods include DC charging, AC charging, and Type-C charging. In DC charging, electronic devices are typically charged either using a DC regulated power supply or a photovoltaic power source. To improve charging efficiency, it's necessary to first distinguish between a DC regulated power supply and a photovoltaic power source, and then use a compatible charging strategy. However, in related technologies, the accuracy of power source type identification by electronic devices is not ideal. Summary of the Invention
[0003] One objective of this application is to provide a method, circuit, and electronic device for identifying power supply devices, which can improve the accuracy of electronic devices in identifying the type of power supply device.
[0004] According to one aspect of the embodiments of this application, a method for identifying a power supply device is disclosed, applied to an electronic device, the electronic device including a power interface and a maximum power point tracking circuit; the power interface is connected to the maximum power point tracking circuit; the power interface is used to connect to a power supply device; the method includes:
[0005] After detecting that a power supply device is connected to the power interface, a first control signal is generated to the maximum power tracking circuit; the first control signal is used to control the maximum power tracking circuit to operate so that the output current of the maximum power tracking circuit increases to a preset current threshold within a first time period.
[0006] Obtain the change value of the input voltage at the power interface during the first time period to obtain the first voltage change value;
[0007] When the duration of the first time period is reached, a second control signal is generated to the maximum power tracking circuit; the second control signal is used to control the maximum power tracking circuit to operate so that the output current of the maximum power tracking circuit is a target current value, the target current value being less than the preset current threshold.
[0008] The change value of the input voltage at the power interface during a second time period from the generation of the second control signal is obtained to obtain the second voltage change value;
[0009] The type of the power supply device is identified based on the first voltage change value and the second voltage change value.
[0010] According to one aspect of an embodiment of this application, a power supply device identification device is disclosed. The device is disposed in an electronic device, the electronic device including a power interface and a maximum power point tracking circuit; the power interface is connected to the maximum power point tracking circuit; the power interface is used to connect to a power supply device; the device includes:
[0011] The first generation module is configured to generate a first control signal to the maximum power tracking circuit after detecting that a power supply device is connected to the power interface; the first control signal is used to control the maximum power tracking circuit to operate so that the output current of the maximum power tracking circuit increases to a preset current threshold within a first time period.
[0012] The first acquisition module is configured to acquire the change value of the input voltage at the power interface during the first time period, and obtain the first voltage change value;
[0013] The second generation module is configured to generate a second control signal to the maximum power tracking circuit when the duration of the first time period is reached; the second control signal is used to control the maximum power tracking circuit to operate so that the output current of the maximum power tracking circuit is a target current value, the target current value being less than the preset current threshold.
[0014] The second acquisition module is configured to acquire the change value of the input voltage at the power interface during a second time period from the generation of the second control signal, and obtain the second voltage change value.
[0015] The identification module is configured to identify the type of the power supply device based on the first voltage change value and the second voltage change value.
[0016] In one exemplary embodiment of this application, the identification module is configured as follows:
[0017] When the first voltage change value is greater than the first preset threshold and the second voltage change value is greater than the second preset threshold, the power supply device is identified as a photovoltaic power supply; the first preset threshold is greater than the second preset threshold.
[0018] In one exemplary embodiment of this application, the device is configured as follows:
[0019] Based on the input voltage and the output current, the maximum power point of the photovoltaic power source is tracked and the maximum power point is determined.
[0020] The electronic device is controlled to charge at the maximum power point.
[0021] In an exemplary embodiment of this application, the identification module is configured as follows:
[0022] When the first voltage change value is less than or equal to the first preset threshold and / or the second voltage change value is less than or equal to the second preset threshold, the power supply device is identified as a DC regulated power supply.
[0023] In one exemplary embodiment of this application, the device is configured as follows:
[0024] Obtain the input voltage value at the power interface;
[0025] If the input voltage value is within a preset range, then the step of generating the first control signal to the maximum power tracking circuit is executed.
[0026] In one exemplary embodiment of this application, the device is configured as follows:
[0027] If the input voltage value is not within the preset range, a prompt signal is generated; the prompt signal is used to indicate that the power supply device is malfunctioning.
[0028] In one exemplary embodiment of this application, the device is configured as follows:
[0029] If the input voltage value is not within the preset range, a charging prohibition command is generated; the charging prohibition command is used to prevent the electronic device from charging using the power supply of the power interface.
[0030] In one exemplary embodiment of this application, the device is configured as follows:
[0031] The first control signal is used to control the duty cycle of the switching transistor in the maximum power point tracking circuit to gradually increase during the first time period, so that the output current of the maximum power point tracking circuit increases to the preset current threshold during the first time period.
[0032] The second control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to a preset duty cycle, so that the output current of the maximum power tracking circuit is the target current value.
[0033] According to one aspect of the embodiments of this application, a power supply device identification circuit is disclosed, disposed in an electronic device. The identification circuit includes: a controller, a maximum power point tracking circuit, and a sampling circuit; the controller is communicatively connected to the sampling circuit; the power interface of the electronic device is connected to the maximum power point tracking circuit; the power interface is used to connect to the power supply device; the sampling circuit is used to collect the input voltage value of the power interface; the controller is used to implement the methods provided in the above-mentioned various optional implementations.
[0034] According to one aspect of the embodiments of this application, an electronic device is disclosed, including a maximum power point tracking circuit, a power interface, a sampling circuit, a controller, and a memory; the power interface is connected to the maximum power point tracking circuit; the power interface is used to connect to a power supply device; the sampling circuit is used to sample the input voltage at the power interface; the memory stores a computer program that can be executed by the controller; when the computer program is executed by the controller, it implements the methods provided in the various optional implementations described above.
[0035] According to one aspect of the embodiments of this application, a computer program medium is disclosed, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the methods provided in the various optional implementations described above.
[0036] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described above.
[0037] This application provides a method for identifying power supply devices, applied to an electronic device. The electronic device includes a power interface and a maximum power point tracking (MPPT) circuit. The power interface is connected to the MPPT circuit and is used to connect to a power supply device. After detecting that a power supply device is connected to the power interface, the electronic device generates a first control signal, which then controls the MPPT circuit to increase its output current to a preset current threshold within a first time period. The electronic device then obtains the change in the input voltage of the power interface within the first time period, obtaining a first voltage change value that can initially distinguish the different behaviors of different types of DC power supplies as the MPPT circuit gradually increases its output current. When the first time period is reached, the electronic device further generates a second control signal, controlling the output current of the MPPT circuit to a target current value less than the preset current threshold. The electronic device then obtains the change in the input voltage of the power interface within a second time period from the generation of the second control signal, obtaining a second voltage change value that can further distinguish the different behaviors of different types of DC power supplies as the MPPT circuit instantaneously decreases its output current. Therefore, based on the first and second voltage change values, the electronic device can improve the accuracy of power supply device type identification.
[0038] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0039] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description
[0040] The above and other objectives, features and advantages of this application will become more apparent from a detailed description of exemplary embodiments thereof with reference to the accompanying drawings.
[0041] Figure 1 A flowchart of a method for identifying a power supply device according to an embodiment of this application is shown.
[0042] Figure 2 The voltage and current characteristic curves of a photovoltaic power source according to one embodiment of this application are shown.
[0043] Figure 3 The voltage-current characteristic curves of a DC regulated power supply according to an embodiment of this application are shown.
[0044] Figure 4 A schematic diagram illustrating the use of hardware terminals to identify power supply devices in related technologies is shown.
[0045] Figure 5 A block diagram of a power supply device identification device according to an embodiment of this application is shown. Detailed Implementation
[0046] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make the description of this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The drawings are merely illustrative of this application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.
[0047] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more exemplary embodiments. Numerous specific details are provided in the following description to give a full understanding of exemplary embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced with one or more of the specific details omitted, or other methods, components, steps, etc., can be employed. In other instances, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0048] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0049] This application provides a method for identifying power supply devices, primarily used to identify the type of power supply device. The power supply device refers to a device that provides electrical energy to other devices for DC charging, such as: charging adapters specifically for electronic devices like vehicles, computers, and mobile phones, which are typically DC regulated power supplies; and solar photovoltaic panels, i.e., photovoltaic power supplies.
[0050] The power device identification method provided in this application is applied to electronic devices including a power interface and a maximum power point tracking (MPPT) circuit. The power interface is used to connect to the power device to receive electrical energy for charging. The MPPT circuit is connected to the power interface, and its main function is to use the maximum power point tracking (MPPT) technology in a photovoltaic solar system to control the power transfer efficiency during charging and maintain it at the maximum power point.
[0051] Figure 1 A flowchart of the power supply device identification method provided in this application is shown. See also: Figure 1 The method for identifying power supply devices provided in this application includes:
[0052] Step S110: After detecting that the power supply device is connected to the power interface, a first control signal is generated to the maximum power tracking circuit; the first control signal is used to control the operation of the maximum power tracking circuit so that the output current of the maximum power tracking circuit increases to a preset current threshold within a first time period.
[0053] In this embodiment, a power supply device is connected to the power interface of an electronic device to charge the electronic device. Upon detecting that the power supply device is connected to the power interface, the electronic device generates a first control signal and sends it to a maximum power point tracking (MPPT) circuit. Triggered by the first control signal, the MPPT circuit increases its output current to a preset current threshold during a subsequent first time period.
[0054] For example: Before the power supply device is connected to the power interface, the output current of the maximum power tracking circuit is 0A; the preset current threshold is 10A. After detecting that the power supply device is connected to the power interface at time t0, a first control signal is generated to the maximum power tracking circuit, controlling the maximum power tracking circuit to increase its output current from 0A to 10A within the first time period t1~t2.
[0055] Step S120: Obtain the change value of the input voltage at the power interface during the first time period to obtain the first voltage change value.
[0056] Figure 2 The voltage and current characteristic curves of the photovoltaic power source are shown. Figure 3 The voltage-current characteristic curves of the DC regulated power supply are shown. See also... Figure 2 and Figure 3 It is evident that if the power supply is a photovoltaic power source, the input voltage at the power interface will gradually decrease as the output current of the maximum power point tracking circuit gradually increases during the first time period (t1~t2) according to the first control signal. However, if the power supply is a DC regulated power supply, ideally, the input voltage at the power interface will remain stable regardless of how the output current of the maximum power point tracking circuit increases during the first time period.
[0057] Considering the different input voltage performance of different power supply types at the power interface during the first time period, the change value of the input voltage at the power interface during the first time period, i.e., the first voltage change value, is obtained so that the type of power supply device can be preliminarily identified based on the first voltage change value.
[0058] Step S130: When the duration of the first time period is reached, a second control signal is generated to the maximum power tracking circuit; the second control signal is used to control the operation of the maximum power tracking circuit so that the output current of the maximum power tracking circuit is the target current value, and the target current value is less than the preset current threshold.
[0059] When the first time period is reached, the electronic device generates a second control signal and sends it to the maximum power point tracking (MPPT) circuit. Triggered by the second control signal, the MPPT circuit reduces its output current from a preset current threshold to the target current value.
[0060] For example: After the maximum power tracking circuit is controlled by the first control signal to increase its output current from 0A to 10A in the first time period t1~t2, at time t2, the electronic device generates a second control signal to the maximum power tracking circuit, controlling the maximum power tracking circuit to reduce its output current from 10A to the target current value of 0.25A at time t2.
[0061] Step S140: Obtain the change value of the input voltage at the power interface during the second time period from the generation of the second control signal, and obtain the second voltage change value.
[0062] See Figure 2 and Figure 3It is evident that if the power supply is a photovoltaic power source, and the maximum power point tracking circuit instantly reduces its output current from a high preset current threshold to a low target current value, then when the target current value is an extremely low current value (e.g., 0A; 0.1A; 0.25A, etc.), the input voltage at the power interface will instantly rebound to a state close to the open circuit voltage (i.e., instantly rebound to the voltage when the circuit has no load), and in the following second time period (e.g.: Figure 2 During the t2~t3 time period, the voltage remains close to the open circuit voltage. If the power supply is a DC regulated power supply, then ideally, even if the maximum power point tracking circuit instantly reduces its output current from a higher preset current threshold to a lower target current value, the input voltage at the power interface will not change.
[0063] Considering the different input voltage performance at the power interface during the second time period for different power types, the change value of the input voltage at the power interface during the second time period, i.e., the second voltage change value, is obtained to further identify the type of power supply device based on the second voltage change value.
[0064] Step S150: Identify the type of power supply device based on the first voltage change value and the second voltage change value.
[0065] As mentioned above, both the first voltage change value corresponding to the first time period and the second voltage change value corresponding to the second time period can be used to distinguish between DC regulated power supplies and photovoltaic power supplies. Furthermore, considering that DC regulated power supplies themselves may experience voltage fluctuations, misjudging a DC regulated power supply and a photovoltaic power supply based solely on the first voltage change value corresponding to the first time period may lead to misidentification. Therefore, in this embodiment, the second voltage change value is further combined with the first voltage change value to improve the accuracy of power supply type identification.
[0066] In summary, in this embodiment, after detecting that a power supply device is connected to a power interface, the electronic device generates a first control signal to control the maximum power point tracking (MPPT) circuit to increase its output current to a preset current threshold within a first time period. The electronic device then acquires the change in the input voltage at the power interface during the first time period, obtaining a first voltage change value that can be used to initially distinguish the different behaviors of different types of DC power supplies as the MPPT circuit gradually increases its output current. When the first time period is reached, the electronic device further generates a second control signal to control the output current of the MPPT circuit to a target current value less than the preset current threshold. The electronic device then acquires the change in the input voltage at the power interface during a second time period from the generation of the second control signal, obtaining a second voltage change value that can be used to further distinguish the different behaviors of different types of DC power supplies as the MPPT circuit instantaneously decreases its output current. Therefore, based on the first and second voltage change values, the electronic device can improve the accuracy of power supply device type identification.
[0067] In one embodiment, identifying the type of power supply device based on a first voltage change value and a second voltage change value includes:
[0068] When the first voltage change value is greater than the first preset threshold and the second voltage change value is greater than the second preset threshold, the power supply device is identified as a photovoltaic power supply; the first preset threshold is greater than the second preset threshold.
[0069] In this embodiment, to determine whether the power supply device is a photovoltaic power source, a first preset threshold is set for the first voltage change value to determine whether the input voltage at the power interface has changed significantly within a first time period. A second preset threshold is set for the second voltage change value to determine whether the input voltage at the power interface has changed significantly within a second time period.
[0070] Furthermore, considering that the target current value output by the maximum power point tracking circuit in response to the second control signal is generally greater than 0A, when the power supply device is a photovoltaic power supply, although the input voltage at the power interface will rebound and increase, it will not completely rebound to the open circuit voltage. Therefore, the degree of change of the input voltage at the power interface in the second time period is usually less than the degree of change of the input voltage at the power interface in the first time period. Therefore, the first preset threshold of the first voltage change value is set to a second preset threshold that is greater than the second voltage change value.
[0071] Considering that when the power supply device is a photovoltaic power source, the input voltage at the power interface will change significantly in both the first and second time periods, if the first voltage change value is greater than the first preset threshold and the second voltage change value is greater than the second preset threshold, it indicates that the input voltage at the power interface has changed significantly in the first time period and also in the second time period, thus indicating that the power supply device is a photovoltaic power source.
[0072] In one embodiment, after identifying the power supply device as a photovoltaic power source, the method provided in this application further includes:
[0073] Based on the input voltage and output current, the maximum power point of the photovoltaic power source is tracked to determine the maximum power point.
[0074] Control the electronic devices to charge at their maximum power point.
[0075] In this embodiment, after the electronic device identifies the power source as a photovoltaic power source, it tracks the maximum power point of the photovoltaic power source according to a preset photovoltaic power source charging algorithm, based on the input voltage of the power interface and the output current of the maximum power point tracking circuit, to determine the maximum power point of the photovoltaic power source. The input voltage of the power interface is the output voltage of the maximum power point tracking circuit.
[0076] Then, when the maximum power point of the photovoltaic power output is detected, the electronic equipment is controlled to charge at the maximum power point.
[0077] See also Figure 2 In one embodiment, after identifying the power source as a photovoltaic power source, the electronic device tracks the maximum power point of the photovoltaic power source and determines that it has reached the maximum power point at time t4. Then, starting from time t4, the electronic device is controlled to charge at the maximum power point.
[0078] In one embodiment, identifying the type of power supply device based on the first voltage change value and the second voltage change value further includes:
[0079] When the first voltage change value is less than or equal to the first preset threshold and / or the second voltage change value is less than or equal to the second preset threshold, the power supply device is identified as a DC regulated power supply.
[0080] In this embodiment, considering that when the power supply device is a DC regulated power supply, the input voltage at the power interface generally remains stable in the first and second time periods. However, due to the voltage fluctuations that may exist in the DC regulated power supply itself, the input voltage at the power interface may fluctuate. In the power supply device type identification method, the first voltage change value or the second voltage change value at the power interface of the electronic device may meet the judgment conditions of the photovoltaic power supply. Therefore, as long as at least one of the following conditions is met, the power supply device can be judged to be a DC regulated power supply: Condition 1: "The first voltage change value is less than or equal to the first preset threshold", Condition 2: "The second voltage change value is less than or equal to the second preset threshold".
[0081] In one embodiment, before generating the first control signal to the maximum power tracking circuit, the method provided in this application further includes:
[0082] Obtain the input voltage value at the power interface;
[0083] If the input voltage value is within the preset range, then the step of generating the first control signal to the maximum power tracking circuit is executed.
[0084] In this embodiment, after the electronic device detects that the power supply device is connected to the power interface, it first obtains the input voltage value at the power interface, and then detects whether the input voltage value is within a preset range to determine whether the input voltage value is normal.
[0085] If the input voltage value is within the preset range, it means that the power supply device is plugged in correctly, or the power supply device is the corresponding type of interface (for example, it is determined to be an Anderson interface). The input voltage value is normal and it is safe to charge the electronic device. Then the maximum power tracking circuit that generates the first control signal controls the maximum power tracking circuit to increase its output current to the preset current threshold in the next first time period.
[0086] In one embodiment, the method provided in this application further includes:
[0087] If the input voltage value is not within the preset range, a prompt signal is generated; the prompt signal is used to indicate that the power supply device is malfunctioning.
[0088] In this embodiment, after the electronic device detects that a power supply is connected to the power interface, if the input voltage value at the power interface is not within a preset range, it indicates that the power supply is plugged in incorrectly or the power supply type is inconsistent, resulting in an abnormal input voltage value and making it unsafe to charge the electronic device. Therefore, a warning signal is generated to alert the user that the power supply is faulty and that continuing to use the power supply to charge the electronic device poses a safety risk. The generated warning signal can control the electronic device's charging indicator light to flash red or control the electronic device to play an alarm voice message.
[0089] In one embodiment, the method provided in this application further includes:
[0090] If the input voltage value is not within the preset range, a charging prohibition command is generated; the charging prohibition command is used to prevent electronic devices from charging using the power supply interface.
[0091] In this embodiment, after the electronic device detects that the power supply device is connected to the power interface, if the input voltage value at the power interface is not within the preset range, it indicates that the power supply device is plugged in incorrectly and the input voltage value is abnormal, making it impossible to safely charge the electronic device. In this case, a charging prohibition command is generated or the power supply device connection type is inconsistent, so as to prohibit the electronic device from using the power supply interface for charging, thereby avoiding the safety risks caused by continued charging.
[0092] In one embodiment, the first control signal is used to control the operation of the maximum power tracking circuit, including: the first control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to gradually increase within a first time period, so that the output current of the maximum power tracking circuit increases to a preset current threshold within the first time period.
[0093] The second control signal is used to control the operation of the maximum power tracking circuit, including: the second control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to a preset duty cycle, so that the output current of the maximum power tracking circuit is the target current value.
[0094] In this embodiment, the maximum power point tracking (MPPT) circuit includes a buck-boost DC-DC converter and a switching transistor. The output current is controlled by adjusting the duty cycle of the drive signal at the control terminal of the switching transistor via the buck-boost DC-DC converter. The larger the duty cycle of the drive signal, the larger the output current of the MPPT circuit; conversely, the smaller the duty cycle of the drive signal, the smaller the output current of the MPPT circuit.
[0095] After the first control signal generated by the electronic device is sent to the maximum power point tracking circuit, in response to the first control signal, the duty cycle of the drive signal of the control terminal of the maximum power point tracking circuit gradually increases during the first time period, thereby causing the output current of the maximum power point tracking circuit to gradually increase to the preset current threshold during the first time period.
[0096] After the second control signal generated by the electronic device is sent to the maximum power tracking circuit, in response to the second control signal, the maximum power tracking circuit controls the duty cycle of the drive signal at the control terminal of its switching transistor to a preset percentage, so that the output current of the maximum power tracking circuit is the target current value.
[0097] This application also provides a power supply device identification circuit, which is disposed in an electronic device. The identification circuit includes a controller, a maximum power point tracking (MPPT) circuit, and a sampling circuit. The power interface of the electronic device is connected to the MPPT circuit, and the power interface is used to connect to the power supply device.
[0098] The sampling circuit is used to acquire the input voltage value of the power interface and transmit the input voltage value to the controller connected to it in real time. The controller then identifies the type of power supply device according to the method provided in this application as shown in the above description. Since various optional implementations of the method provided in this application have been described in detail above, they will not be repeated here.
[0099] Therefore, it can be seen that after integrating the power device identification circuit provided in this application, the electronic device can accurately identify the type of power device without the need for other hardware components specifically designed for identifying power devices.
[0100] In contrast, related technologies also provide a method for identifying power supply devices using hardware terminals. Figure 4 A schematic diagram illustrating the use of hardware terminals to identify power supply devices in related technologies is shown. See also Figure 4 In related technologies, hardware terminals are provided on the charging cable used by the power supply device to charge the electronic device. When the charging cable is inserted into the electronic device, the metal plate attached to the hardware terminal is in a pulled-up state (i.e., in...). Figure 1 Is it in the "1" position or in a pulled state (i.e., in)? Figure 1 The signal describing the charging circuit level is determined by the signal being in position "0". The signal describing the charging circuit level is then input to the main control chip of the electronic device, so that the main control chip can determine whether the power supply is a DC regulated power supply or a photovoltaic power supply based on the signal describing the charging circuit level.
[0101] It is evident that this method of related technology relies on introducing hardware terminals with metal plates into the charging cable to identify the type of power supply device, which undoubtedly increases hardware costs.
[0102] The power device identification circuit provided in this application embodiment does not require the introduction of any other hardware components besides the power interface and the maximum power tracking circuit. Therefore, compared with the related technology that uses hardware terminals to identify the type of power device based on the state of the metal plate attached to them, this application embodiment can accurately identify the type of power device without relying on hardware terminals with metal plates attached, thus saving hardware costs.
[0103] Figure 5A block diagram of a power supply device identification device 200 according to an embodiment of this application is shown. The device is disposed in an electronic device, which includes a power interface and a maximum power point tracking circuit. The power interface is connected to the maximum power point tracking circuit. The power interface is used to connect to a power supply device. The device includes:
[0104] The first generation module 210 is configured to generate a first control signal to the maximum power tracking circuit after detecting that the power supply device is connected to the power interface; the first control signal is used to control the operation of the maximum power tracking circuit so that the output current of the maximum power tracking circuit increases to a preset current threshold within a first time period.
[0105] The first acquisition module 220 is configured to acquire the change value of the input voltage of the power interface during a first time period, and obtain the first voltage change value.
[0106] The second generation module 230 is configured to generate a second control signal to the maximum power tracking circuit when the duration of the first time period is reached; the second control signal is used to control the operation of the maximum power tracking circuit so that the output current of the maximum power tracking circuit is the target current value, and the target current value is less than a preset current threshold.
[0107] The second acquisition module 240 is configured to acquire the change value of the input voltage at the power interface during a second time period from the generation of the second control signal, and obtain the second voltage change value.
[0108] The identification module 250 is configured to identify the type of power supply device based on the first voltage change value and the second voltage change value.
[0109] In one exemplary embodiment of this application, the identification module is configured as follows:
[0110] When the first voltage change value is greater than the first preset threshold and the second voltage change value is greater than the second preset threshold, the power supply device is identified as a photovoltaic power supply; the first preset threshold is greater than the second preset threshold.
[0111] In one exemplary embodiment of this application, the device is configured as follows:
[0112] Based on the input voltage and output current, the maximum power point of the photovoltaic power source is tracked to determine the maximum power point.
[0113] Control the electronic devices to charge at their maximum power point.
[0114] In one exemplary embodiment of this application, the identification module is configured as follows:
[0115] When the first voltage change value is less than or equal to the first preset threshold and / or the second voltage change value is less than or equal to the second preset threshold, the power supply device is identified as a DC regulated power supply.
[0116] In one exemplary embodiment of this application, the device is configured as follows:
[0117] Obtain the input voltage value at the power interface;
[0118] If the input voltage value is within the preset range, then the step of generating the first control signal to the maximum power tracking circuit is executed.
[0119] In one exemplary embodiment of this application, the device is configured as follows:
[0120] If the input voltage value is not within the preset range, a prompt signal is generated; the prompt signal is used to indicate that the power supply device is malfunctioning.
[0121] In one exemplary embodiment of this application, the device is configured as follows:
[0122] If the input voltage value is not within the preset range, a charging prohibition command is generated; the charging prohibition command is used to prevent electronic devices from charging using the power supply interface.
[0123] In one exemplary embodiment of this application, the device is configured as follows:
[0124] The first control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to gradually increase during the first time period, so that the output current of the maximum power tracking circuit increases to a preset current threshold during the first time period.
[0125] The second control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to a preset duty cycle, so that the output current of the maximum power tracking circuit is the target current value.
[0126] This application also provides an electronic device. The electronic device provided by this application includes a maximum power tracking circuit, a power interface, a sampling circuit, a controller, and a memory.
[0127] The power interface connects to both the maximum power point tracking circuit and the power supply device to receive power from it. A sampling circuit is used to sample the input voltage at the power interface.
[0128] The memory stores a computer program that can be executed by the controller. When the computer program is executed by the controller, it implements the method provided by this application as shown in the above description. Since the various optional implementations of the method provided by this application have been described in detail above, they will not be repeated here.
[0129] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read-only memory (ROM).
[0130] The memory may also include programs / utilities having a set (at least one) of program modules, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0131] Electronic devices can also communicate with one or more external devices (such as keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable users to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (such as routers, modems, etc.). This communication can be performed through input / output (I / O) interfaces. The input / output (I / O) interfaces are connected to the display unit.
[0132] Furthermore, the electronic device can communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter. The network adapter communicates with other modules of the electronic device via a bus. The bus can represent one or more of several bus architectures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus architectures.
[0133] It should be understood that other hardware and / or software modules can be used in conjunction with electronic devices, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0134] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this application.
[0135] In an exemplary embodiment of this application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored, which, when executed by a computer's processor, cause the computer to perform the methods described in the above method embodiments.
[0136] According to one embodiment of this application, a program product for implementing the methods in the above-described method embodiments is also provided. This product may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of this invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0137] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0138] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0139] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0140] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as JAVA and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0141] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0142] Furthermore, although the steps of the method in this application are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0143] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0144] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the appended claims.
Claims
1. A method for identifying power supply devices, characterized in that, Applied to electronic devices, the electronic devices including a power interface and a maximum power tracking circuit; The power interface is connected to the maximum power tracking circuit; the power interface is used to connect to a power supply device; the method includes: After detecting that a power supply device is connected to the power interface, a first control signal is generated to the maximum power tracking circuit; the first control signal is used to control the maximum power tracking circuit to operate so that the output current of the maximum power tracking circuit increases to a preset current threshold within a first time period. Obtain the change value of the input voltage at the power interface during the first time period to obtain the first voltage change value; When the duration of the first time period is reached, a second control signal is generated to the maximum power tracking circuit; the second control signal is used to control the maximum power tracking circuit to operate so that the output current of the maximum power tracking circuit is a target current value, the target current value being less than the preset current threshold. The change value of the input voltage at the power interface during a second time period from the generation of the second control signal is obtained to obtain the second voltage change value; The type of the power supply device is identified based on the first voltage change value and the second voltage change value.
2. The method according to claim 1, characterized in that, The step of identifying the type of power supply device based on the first voltage change value and the second voltage change value includes: When the first voltage change value is greater than the first preset threshold and the second voltage change value is greater than the second preset threshold, the power supply device is identified as a photovoltaic power supply; the first preset threshold is greater than the second preset threshold.
3. The method according to claim 2, characterized in that, After identifying the power supply device as a photovoltaic power source, the method further includes: Based on the input voltage and the output current, the maximum power point of the photovoltaic power source is tracked and the maximum power point is determined. The electronic device is controlled to charge at the maximum power point.
4. The method according to claim 2, characterized in that, The step of identifying the type of power supply device based on the first voltage change value and the second voltage change value further includes: When the first voltage change value is less than or equal to the first preset threshold and / or the second voltage change value is less than or equal to the second preset threshold, the power supply device is identified as a DC regulated power supply.
5. The method according to claim 1, characterized in that, Before generating the first control signal to the maximum power tracking circuit, the method further includes: Obtain the input voltage value at the power interface; If the input voltage value is within a preset range, then the step of generating the first control signal to the maximum power tracking circuit is executed.
6. The method according to claim 5, characterized in that, The method further includes: If the input voltage value is not within the preset range, a prompt signal is generated; the prompt signal is used to indicate that the power supply device is malfunctioning.
7. The method according to claim 5, characterized in that, The method further includes: If the input voltage value is not within the preset range, a charging prohibition command is generated; the charging prohibition command is used to prevent the electronic device from charging using the power supply of the power interface.
8. The method according to claim 1, characterized in that, The first control signal is used to control the operation of the maximum power tracking circuit, including: the first control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to gradually increase during the first time period, so that the output current of the maximum power tracking circuit increases to the preset current threshold during the first time period; The second control signal is used to control the operation of the maximum power tracking circuit, including: the second control signal is used to control the duty cycle of the switching transistor in the maximum power tracking circuit to a preset duty cycle, so that the output current of the maximum power tracking circuit is the target current value.
9. A power supply device identification circuit, characterized in that, The identification circuit, located in an electronic device, includes a controller, a maximum power point tracking (MPPT) circuit, and a sampling circuit. The controller is communicatively connected to the sampling circuit. The power interface of the electronic device is connected to the MPPT circuit. The power interface is used to connect to a power supply device. The sampling circuit is used to collect the input voltage value of the power interface; The controller is used to implement the method as described in any one of claims 1 to 8.
10. An electronic device, characterized in that, The device includes a maximum power point tracking circuit, a power interface, a sampling circuit, a controller, and a memory; the power interface is connected to the maximum power point tracking circuit; the power interface is used to connect to a power supply device; the sampling circuit is used to sample the input voltage at the power interface; the memory stores a computer program that can be executed by the controller; when the computer program is executed by the controller, it implements the method as described in any one of claims 1 to 8.