CN113206521B - Power control method, device, electronic equipment and storage medium - Google Patents

Power control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113206521B
CN113206521B CN202110363725.7A CN202110363725A CN113206521B CN 113206521 B CN113206521 B CN 113206521B CN 202110363725 A CN202110363725 A CN 202110363725A CN 113206521 B CN113206521 B CN 113206521B
Authority
CN
China
Prior art keywords
power
energy
input
output
output power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110363725.7A
Other languages
Chinese (zh)
Other versions
CN113206521A (en
Inventor
江森龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110363725.7A priority Critical patent/CN113206521B/en
Publication of CN113206521A publication Critical patent/CN113206521A/en
Priority to PCT/CN2022/079990 priority patent/WO2022206324A1/en
Application granted granted Critical
Publication of CN113206521B publication Critical patent/CN113206521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters

Abstract

The invention discloses a power control method, a power control device, electronic equipment and a storage medium. The method comprises the following steps: acquiring an alternating voltage signal input to the electronic equipment; determining energy of input mains power corresponding to the alternating voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison, adjusting an output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.

Description

Power control method, device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of charging, in particular to a power control method and device, electronic equipment and a storage medium.
Background
With the rapid development of wireless technology, electronic devices are increasingly miniaturized. In practical application, the electronic equipment needs to adapt to the power grid conditions of different countries when in work. Generally, considering that the power grid fluctuation ranges of different countries are different, the output power of the electronic device can be adjusted by identifying the input power grid voltage so as to ensure that the electronic device can work normally. However, the output power of the electronic device is adjusted based on the power grid voltage, which may result in that the adjusted output power cannot be used for normally charging other electronic devices, and thus the current use requirement of the user cannot be met, and further the user experience is reduced.
Disclosure of Invention
In view of the above, embodiments of the present invention are intended to provide a power control method, device, electronic device, and storage medium.
The technical scheme of the invention is realized as follows:
an embodiment of the present invention provides a power control method, where the method includes:
acquiring an alternating voltage signal input to the electronic equipment;
determining energy of input mains power corresponding to the alternating voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison, adjusting an output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
In the above, the determining the energy of the input commercial power corresponding to the ac voltage signal includes:
performing integral operation on the obtained alternating voltage signal to obtain a first integral area;
and determining the energy of the input commercial power according to the first integral area.
In the foregoing solution, the adjusting the output power of the electronic device based on the comparison result includes:
when the comparison result represents that the energy of the input commercial power is greater than or equal to the energy of the preset commercial power, controlling the electronic equipment to work in a first mode;
wherein the output power in the first mode is full power.
In the above solution, the adjusting the output power of the electronic device based on the comparison result includes:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the electronic equipment to work in a second mode;
wherein the output power in the second mode is less than full power.
In the above solution, the adjusting the output power of the electronic device based on the comparison result includes:
and when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the output power of the electronic equipment to be the changed power.
In the foregoing solution, the controlling the output power of the electronic device to switch between the first power value and the second power value includes:
determining a switching period;
and controlling the output power of the electronic equipment to be the variable power according to the switching period.
In the foregoing solution, the adjusting the output power of the electronic device based on the comparison result includes:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, detecting output current;
when the output current is larger than the preset current value, adjusting the output power from a first value to a second value;
wherein the full power value is greater than the first value; the first value is greater than the second value.
An embodiment of the present invention provides a power control apparatus, including:
the first processing unit is used for sampling an input alternating voltage signal;
a second processing unit for determining the energy of the input mains supply corresponding to the alternating voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison, adjusting the output power to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
An embodiment of the present invention provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to implement the steps of any of the above methods when executing the computer program.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the above-mentioned methods.
According to the power control method, the power control device, the electronic equipment and the storage medium, the alternating current voltage signal input to the electronic equipment is acquired; determining energy of input mains power corresponding to the alternating voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison result, adjusting the output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes. Compared with the mode of adjusting the output power based on the power grid voltage in the related art, the embodiment of the invention can more accurately adjust the output power based on the energy information of the input commercial power, so that the adjusted output power can normally charge other electronic equipment, thereby meeting the actual use requirements of users and further improving the user experience.
Drawings
Fig. 1 is a schematic diagram of sampling a voltage input to a power grid using a transformer in the related art;
FIG. 2 is a schematic diagram of a flow chart of implementing a power control method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating a first implementation of adjusting the output power of the electronic device according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of a waveform of an AC mains signal according to an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating an implementation of adjusting the output power of the electronic device according to the second embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating a third implementation of adjusting the output power of the electronic device according to the embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a fourth implementation flow for adjusting output power of an electronic device according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a power control system according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a power control apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Before describing the technical solution of the embodiment of the present invention in detail, a description will be given of a related art.
In the related art, when the electronic device works, the electronic device needs to adapt to the power grid conditions of different countries. For example, for a national region such as india, the outlet of the adapter needs to be adapted to a local power grid, and in general, a large enough input capacitor can be used on the primary side of the adapter circuit, so as to provide a relatively smooth voltage input for the AC-DC circuit, thereby supporting a relatively efficient conversion of the power output by the system. For example, for a plus 65W Power Delivery management (PD) adapter, a 680uF capacitor is used on the primary side of the circuit to support an input voltage of 90V-264V. However, for small size or high cost adapters, capacitors of sufficient capacity cannot be used on the primary side. For example, for a 50W biscuit adapter, the capacitance of the primary side of the circuit is only 15uF, and in order to achieve full-grid-range support, the adapter must have the capability of identifying the grid, that is, the adapter can provide full-power output when the input mains supply is identified to be 220V; when the input commercial power is identified to be 110V, the de-rated power output is provided.
In the related art, the output power of the electronic equipment can be adjusted by recognizing the input power grid voltage in consideration of different power grid fluctuation ranges of different countries, so that the electronic equipment can work normally. Typically, a transformer or an isolated analog-to-digital converter (ADC) may be used to sample the incoming grid voltage high or low. Fig. 1 is a schematic diagram of a related art method for sampling a voltage input to a power grid by using a transformer, and as shown in fig. 1, the transformer is used to identify the voltage input to the power grid and obtain an output voltage in turn-to-turn relation with the input voltage of the transformer at a resistor R4 in a forward mode.
In summary, the current method for identifying the grid voltage, whether through the transformer or the isolation ADC, outputs the voltage signal, and describes the voltage peak value of the input grid through the output voltage signal. However, in practical applications, the evaluation dimension of the power grid is multifaceted, and the use of voltage-high and voltage-low signals alone is not sufficient to describe all the information of the power grid. For example, for a 50W cookie adaptor, the adaptor outputs a pulsating current, and the output capability of the adaptor is not only related to the voltage level of the input Alternating Current (AC) mains supply, but also has a great relationship with the energy of the input AC mains supply.
Based on this, in various embodiments of the present invention, an alternating voltage signal input to an electronic device is acquired; determining energy of input mains power corresponding to the alternating voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison, adjusting an output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
It should be noted that, in the embodiment of the present invention, the input mains condition of the electronic device is obtained by measuring the magnitude of the input mains energy (i.e., the integral area), so as to adjust the output power, thereby being compatible with the conditions of different power grids. However, in the related art, the input commercial power is detected mainly by directly detecting the magnitude of the input voltage value, and the situation that the input commercial power is determined by measuring the magnitude of the input energy is not involved.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
An embodiment of the present invention provides a power control method, which is applied to an electronic device, and fig. 2 is a schematic diagram illustrating an implementation flow of the power control method according to the embodiment of the present invention; as shown in fig. 2, the method includes:
step 201: an alternating voltage signal input to the electronic device is acquired.
Step 202: determining an energy of the input mains corresponding to the alternating voltage signal.
Step 203: and comparing the energy of the input commercial power with the energy of the preset commercial power to obtain a comparison result.
Step 204: based on the comparison, adjusting an output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
Here, the electronic device may specifically refer to an adapter for charging a terminal, and the like.
Here, in step 201, in actual application, when the electronic device is used in different countries, the voltage range of the ac voltage signal input to the electronic device may be different. For example, the voltage range of the input ac voltage signal is 30V to 260V when the electronic device is used in country a, and 50V to 220V when the electronic device is used in country B.
Here, in step 202, in the actual application, the obtained ac voltage signal may be integrated by using a trigonometric function integral formula. The energy of the input commercial power can be judged by carrying out integral operation on the obtained alternating voltage signal.
Here, in step 203, in actual application, the first integral area is compared with a preset integral area, so as to determine whether the energy of the input commercial power is large or small. For example, a waveform of an input ac voltage signal is sampled, and the ac voltage signal is integrated to obtain a first integrated area. Assuming that a preset integral area is obtained by performing integral operation on a sine wave with a standard amplitude of 220V, if a first integral result corresponding to an input alternating voltage signal is larger than the preset integral area, indicating that the commercial power is distorted, namely, the input power grid energy is larger than the energy of a standard sine wave; if the first integral area corresponding to the input alternating voltage signal is smaller than the preset integral area, the input power grid energy is smaller than the energy of the standard sine waveform.
Here, in step 204, in actual application, the input mains supply condition of the electronic device can be obtained by measuring the magnitude of the input mains supply energy, so as to adjust the output power, and the conditions of different power grids can be compatible.
The following is a detailed description of how to adjust the output power of the electronic device.
In practical application, the energy of the input commercial power of the electronic equipment can be obtained by calculating the integral area corresponding to the input alternating voltage signal.
Based on this, in an embodiment, the determining the energy of the input commercial power corresponding to the alternating voltage signal includes:
performing integral operation on the obtained alternating voltage signal to obtain a first integral area;
and determining the energy of the input commercial power according to the first integral area.
In the first case, the output power of the electronic device is controlled to be full power under the condition that a first integral area corresponding to the alternating voltage signal is larger than or equal to a preset integral area.
Specifically, in practical application, the energy condition of the input power grid can be judged by measuring the integral area of the input power grid, so that the quality of the mains supply is evaluated, and the output capacity of the electronic equipment is adjusted. When the input energy is sufficient to support full power output, the control electronics output power is full power.
Based on this, in an embodiment, the adjusting the output power based on the comparison result includes:
when the comparison result indicates that the energy of the input commercial power is greater than or equal to the energy of the preset commercial power, controlling the electronic equipment to work in a first mode;
wherein the output power in the first mode is full power.
Here, when the first integral area is greater than or equal to the preset integral area, it indicates that the currently input grid energy is greater than or equal to the grid energy in the case of the standard ac voltage, that is, the currently input grid energy is sufficient to support the full power output of the electronic device. The preset integral area may be an integral area obtained by performing integral operation on the standard alternating-current voltage. The standard ac voltage may be determined according to the grid conditions used in different countries, and may be 220V, for example.
Here, controlling the electronic device to operate in the first mode may refer to adjusting the output current of the electronic device to a full current and the output voltage to a full voltage, so as to achieve full power output.
For example, assuming that the full current of the electronic device is 5A and the full voltage is 10V, the output power of the electronic device is adjusted to 5 × 10=50w, i.e., full power output.
In one example, as shown in fig. 3, a process for adjusting output power of an electronic device is described, comprising:
step 301: an alternating voltage signal input to the electronic device is acquired.
Step 302: and carrying out integral operation on the obtained alternating voltage signal to obtain a first integral area.
Here, the first integration area represents the energy of the currently input commercial power.
Here, the obtained ac voltage signal is integrated according to a trigonometric function integration formula to obtain the amount of power grid energy input to the electronic device.
Step 303: and when the first integral area is larger than or equal to a preset integral area, controlling the output power of the electronic equipment to be full power.
Here, the preset integration area represents the energy of the standard commercial power.
For example, an integral operation is performed on an alternating voltage signal with a mains voltage of 110V to obtain energy input into a power grid, namely a first integral area; if the energy of the input power grid obtained by the electronic equipment is equivalent to the power grid energy obtained under the condition that the sine wave with the standard amplitude of 220V is input, the full power output of the electronic equipment is enough to be supported, so that the output power of the electronic equipment is controlled to be the full power.
Fig. 4 is a waveform diagram of an ac mains signal, and as shown in fig. 4, the upper and lower sides of the waveform of the ac mains signal have relatively sharp corners, it can be seen that the input ac mains signal is a non-ideal sinusoidal waveform, and the integral area is larger than that of the ideal sinusoidal waveform, which is caused by distortion generated by the actual power consumption condition in each area.
Here, adjusting the output power of the electronic device has the following advantages:
(1) And if the energy input into the power grid is enough to support the output power of the electronic equipment to be full power, controlling the output power of the electronic equipment to be full power.
(2) The working strategy and the output power can be determined according to the integral area of the input alternating voltage signal, and compared with a mode of identifying the input alternating voltage signal by voltage level and adjusting the output power in the related technology, the condition of the input commercial power can be accurately obtained by measuring the magnitude of the input commercial power energy, so that the output power is adjusted, and the conditions of different power grids can be compatible.
(3) In the embodiment of the invention, the input condition can be judged by comparing the integral value or the actual working state from the energy perspective, so that the method is more practical for a specific circuit.
(4) The quality condition of the mains supply input into the electronic equipment can be well judged, efficiency, temperature rise and user experience can be considered, and therefore product competitiveness is improved.
In the second case, the electronic device is controlled to output the fixed power under the condition that the first integral area corresponding to the alternating voltage signal is smaller than the preset integral area, and the fixed power value is smaller than the full power value.
Specifically, during actual application, the input energy condition can be judged by measuring the integral area of the input power grid, so that the quality of the mains supply is evaluated, and the output capacity of the electronic equipment is adjusted according to the quality of the mains supply. When the input energy is insufficient to support a full power output, the output power of the electronic device is adjusted to a fixed value that is less than the full power value.
Based on this, in an embodiment, the adjusting the output power based on the comparison result includes:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the electronic equipment to work in a second mode;
wherein the output power in the second mode is less than full power.
Here, when the first integral area is smaller than the preset integral area, it indicates that the grid energy input to the electronic device is smaller than the grid energy input under the condition of the standard ac voltage, that is, the currently input grid energy is not enough to support the full power output of the electronic device, and the output power of the electronic device needs to be adjusted to be smaller than the full power.
Here, controlling the electronic device to operate in the second mode may refer to adjusting the output current of the electronic device to be smaller than the full-rated current.
For example, assuming that the full-scale voltage is 5V and the full-scale current is 5A, the output current of the electronic device can be adjusted to 3A while keeping the output voltage unchanged.
In one example, as shown in fig. 5, a process for adjusting output power of an electronic device is described, comprising:
step 501: an alternating voltage signal input to the electronic device is acquired.
Step 502: and performing integral operation on the obtained alternating voltage signal to obtain a first integral area.
Here, the first integration area represents the energy of the currently input commercial power.
Here, the obtained ac voltage signal is integrated according to a trigonometric function integration formula to obtain the amount of power grid energy input to the electronic device.
Step 503: when the first integral area is smaller than a preset integral area, controlling the electronic equipment to output fixed power; the fixed power is less than full power.
Here, the preset integration area represents the energy of the standard commercial power.
For example, an integral operation is performed on an alternating voltage signal with a mains voltage of 110V to obtain energy input into a power grid, namely a first integral area; if the energy of the input power grid obtained by the electronic equipment is less than the energy of the power grid obtained under the condition of inputting the sine wave with the standard amplitude of 220V, the full power output of the electronic equipment is not sufficiently supported, and therefore the output power of the electronic equipment is controlled to be lower than the full power.
Here, adjusting the output power of the electronic device has the following advantages:
(1) And if the energy input into the power grid is insufficient to support the output power of the electronic equipment to be the full power, controlling the output power of the electronic equipment to be the power smaller than the full power.
(2) The method can be used for all electronic equipment needing to identify the power grid, and the electronic equipment can determine the output power according to the actual input condition and output the power according with the local power grid condition as far as possible. In the related art, the method of voltage identification is more forceful and simple, the voltage amplitude in some areas is lower but the distortion is verified, the average energy is large, the commercial power can support outputting full power, and if the method of voltage identification is used, the output is reduced, so that the user experience is influenced.
In a third case, the electronic device is controlled to output a power value that changes according to a preset period when a first integral area corresponding to the alternating voltage signal is smaller than a preset integral area.
Specifically, in practical application, the input energy condition can be judged by measuring the integral area of the input power grid, so that the quality of the mains supply is evaluated, and the output capacity of the electronic equipment is adjusted according to the quality of the mains supply. When the input energy is insufficient to support full power output, the output power of the electronic device may be controlled to vary within a power range, the maximum of which may be a full power value.
Based on this, in an embodiment, the adjusting the output power based on the comparison result includes:
and when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the output power of the electronic equipment to be the changed power.
Here, the output power of the control electronic device is a variable power, and specifically, the output power of the control electronic device may be switched between a first power value and a second power value;
wherein the first power value is less than the second power value.
Here, the second power value may be a full power value.
In practical application, when the input energy is not enough to support full power output, the electronic device may be controlled to output the power at a variable power value according to a preset switching period.
Based on this, in an embodiment, the switching the output power of the control electronics between the first power value and the second power value includes:
determining a switching period;
and controlling the output power of the electronic equipment to be the variable power according to the switching period.
In one example, as shown in fig. 6, a process for adjusting output power of an electronic device is described, comprising:
step 601: an alternating voltage signal input to the electronic device is acquired.
Step 602: and carrying out integral operation on the obtained alternating voltage signal to obtain a first integral area.
Here, the first integration area represents the energy of the currently input commercial power.
Here, the obtained ac voltage signal is integrated according to a trigonometric function integration formula to obtain the amount of power grid energy input to the electronic device.
Step 603: and when the first integral area is smaller than the preset integral area, controlling the electronic equipment to output power as a changed power value according to a preset switching period.
Here, the preset integration area represents the energy of the standard commercial power.
Here, the electronic device is switched between the high power operation mode and the low power operation mode at a fixed frequency by adjusting the operation mode of the electronic device.
The output current of the control electronics is switched between 3A and 5A, for example, with a switching period of 10 ms.
Here, adjusting the output power of the electronic device has the following advantages:
(1) And if the energy input into the power grid is insufficient to support the output power of the electronic equipment to be full power, controlling the electronic equipment to dynamically switch the output power according to a preset switching period.
(2) By dynamically switching the output power, the workload of the entire system can be averaged.
In a fourth case, under the condition that the first integral area corresponding to the alternating voltage signal is smaller than the preset integral area, if the current output by the electronic device is larger, the output power of the electronic device is reduced.
Specifically, in practical application, the input energy condition can be determined by measuring the integral area of the input power grid, and when the input energy is low, if the output current is large, the electronic device may work unstably, so that the output power of the electronic device needs to be reduced.
Based on this, in an embodiment, the adjusting the output power based on the comparison result includes:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, detecting output current;
when the output current is larger than the preset current value, adjusting the output power from a first value to a second value;
wherein the full power value is greater than the first value; the first value is greater than the second value.
Here, when the first integral area is smaller than the preset integral area, it indicates that the grid voltage input to the electronic device is smaller than the standard ac voltage, and if the output current is large, the electronic device may operate unstably, and therefore, the output power of the electronic device needs to be reduced.
In one example, as shown in fig. 7, a process for adjusting output power of an electronic device is described, comprising:
step 701: an alternating voltage signal input to the electronic device is acquired.
Step 702: and performing integral operation on the obtained alternating voltage signal to obtain a first integral area.
Here, the first integration area represents the energy of the currently input commercial power.
Here, the obtained ac voltage signal is integrated according to a trigonometric function integration formula to obtain the amount of power grid energy input to the electronic device.
Step 703: and when the first integral area is smaller than a preset integral area, detecting the output current.
Here, the first integration area represents the energy of the currently input commercial power.
Step 704: when the output current is larger than the preset current value, adjusting the output power from a first value to a second value; wherein the full power value is greater than the first value; the first value is greater than the second value.
Here, in the case where the input grid energy is low, if the electronic device forcibly outputs a large power, the system may be operated unstably, and thus an abnormality may occur.
For example, if the voltage of the input ac voltage signal is 110V and the output 5A is forced, the system operation will be unstable, and the output power of the electronic device will be reduced.
Here, adjusting the output power of the electronic device has the following advantages:
(1) When the input and the output are not matched, a power supply loop is unstable, so that the output specification is actively reduced after the instability is detected, and the power grid condition can be compatible to the maximum extent.
In practical application, if the rectified ac voltage signal can well reflect the waveform of the commercial power, the rectified ac voltage signal can be sampled and the sampled ac voltage signal can be subjected to integral operation. If the ac voltage signal before rectification can well reflect the waveform of the utility power, the ac voltage signal can be sampled before rectification, and the sampled ac voltage signal can be subjected to integral operation.
Based on this, in an embodiment, the integrating the acquired ac voltage signal to obtain a first integration area includes:
rectifying the obtained alternating voltage signal;
sampling the rectified alternating voltage signal;
and carrying out integral operation on the sampled alternating voltage signal to obtain a first integral area.
Here, when the electronic device is an adapter having a small primary capacitance of the transformer, the sampling may be performed after the ac voltage signal is rectified, and the integration operation may be performed on the sampled ac voltage signal. When the electronic equipment is an adapter with a large primary side capacitor of the transformer, the primary side filter capacitor is large, the voltage waveform obtained after rectification is relatively smooth, and the waveform of the commercial power cannot be well reflected, so that the alternating current voltage signal is sampled before rectification, and the sampled alternating current voltage signal is subjected to integral operation.
Fig. 8 is a schematic diagram of a component structure of a power adjustment system, as shown in fig. 8, the system includes:
the rectifier is used for rectifying the acquired alternating voltage signal;
the sampling device is used for sampling the alternating voltage signal after rectification treatment;
the integral operation device is used for carrying out integral operation on the sampled alternating voltage signal to obtain a first integral area;
the comparator is used for comparing the first integral area with a preset integral area to obtain a comparison result;
and the controller is used for adjusting the output power of the electronic equipment based on the comparison result.
It should be noted that, here, the sampling device needs to sample the waveform of the input ac voltage signal in real time, which is highly required for the controller. If the controller is on the secondary side of the transformer, the sampled alternating voltage signal is transmitted to the secondary side of the transformer in an isolated mode, and integral operation, area comparison and power adjustment are carried out on the secondary side of the transformer.
By adopting the technical scheme of the embodiment of the invention, the input alternating voltage signal is obtained, the corresponding first integral area is obtained through integral operation, the first integral area obtained through integral operation is compared with the preset integral area, the condition of the commercial power can be evaluated according to the comparison result, and the output power is adjusted according to the condition of the commercial power. Compared with the mode of adjusting the output power based on the power grid voltage in the related art, the embodiment of the invention can more accurately adjust the output power based on the energy information of the input commercial power, so that the adjusted output power can normally charge other electronic equipment, thereby meeting the actual use requirements of users and further improving the user experience.
In order to implement the power control method according to the embodiment of the present invention, an embodiment of the present invention further provides a power control apparatus. FIG. 9 is a schematic diagram of a power control apparatus according to an embodiment of the present invention; as shown in fig. 9, the apparatus includes:
a first processing unit 91 for sampling an input ac voltage signal;
a second processing unit 92, configured to determine energy of the input mains corresponding to the ac voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison, adjusting the output power to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
In an embodiment, the second processing unit 92 is specifically configured to:
when the comparison result represents that the energy of the input commercial power is greater than or equal to the energy of the preset commercial power, controlling the electronic equipment to work in a first mode;
wherein the output power in the first mode is full power.
In an embodiment, the second processing unit 92 is specifically configured to:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the electronic equipment to work in a second mode;
wherein the output power in the second mode is less than full power.
In an embodiment, the second processing unit 92 is specifically configured to:
and when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the output power of the electronic equipment to be the changed power.
In an embodiment, the second processing unit 92 is specifically configured to:
determining a switching period;
and controlling the output power of the electronic equipment to be the variable power according to the switching period.
In an embodiment, the second processing unit 92 is specifically configured to: when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, detecting output current;
when the output current is larger than the preset current value, adjusting the output power from a first value to a second value;
wherein the full power value is greater than the first value; the first value is greater than the second value.
In an embodiment, the second processing unit 92 is specifically configured to: rectifying the obtained alternating voltage signal;
sampling the rectified alternating voltage signal;
and carrying out integral operation on the sampled alternating voltage signal to obtain a first integral area.
In practical applications, the first processing unit 91 and the second processing unit 92 may be implemented by a processor in the apparatus; the Processor may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA).
It should be noted that: the apparatus provided in the foregoing embodiment is only illustrated by dividing the program modules in power control, and in practical applications, the above processing allocation may be completed by different program modules according to needs, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the above-described processing. In addition, the apparatus provided in the above embodiments and the power control method embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Based on the hardware implementation of the above device, an embodiment of the present invention further provides an electronic device, fig. 10 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention, as shown in fig. 9, an electronic device 100 includes a memory 103, a processor 102, and a computer program stored in the memory 103 and capable of running on the processor 102; when the processor 102 executes the program, the method provided by one or more of the above technical solutions is implemented.
It should be noted that, the specific steps implemented when the processor 102 executes the program have been described in detail above, and are not described herein again.
It is understood that the electronic device 100 further includes a communication interface 101, and the communication interface 101 is used for information interaction with other devices; meanwhile, various components in the electronic device 100 are coupled together by a bus system 104. It will be appreciated that the bus system 104 is configured to enable connected communication between these components. The bus system 104 includes a power bus, a control bus, a status signal bus, and the like, in addition to the data bus.
It will be appreciated that the memory 103 in this embodiment can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), synchronous Static Random Access Memory (SSRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (ESDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), synchronous Dynamic Random Access Memory (SLDRAM), direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments of the present invention may be applied to the processor 102, or implemented by the processor 102. The processor 102 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 102. The processor 102 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 102 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in a memory where the processor 102 reads information and performs the steps of the aforementioned methods in conjunction with its hardware.
The embodiment of the invention also provides a storage medium, in particular a computer storage medium, and more particularly a computer readable storage medium. Stored thereon are computer instructions, i.e. computer programs, which when executed by a processor perform the methods provided by one or more of the above-mentioned aspects.
In the several embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, an electronic device, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media capable of storing program code.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In addition, the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention.

Claims (10)

1. A method of power control, the method comprising:
acquiring an alternating voltage signal input to the electronic equipment;
determining energy of input mains power corresponding to the alternating voltage signal;
comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result;
based on the comparison, adjusting an output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
2. The method of claim 1, wherein determining the energy of the input utility power corresponding to the alternating voltage signal comprises:
performing integral operation on the obtained alternating voltage signal to obtain a first integral area;
and determining the energy of the input commercial power according to the first integral area.
3. The method of claim 1 or 2, wherein adjusting the output power of the electronic device based on the comparison comprises:
when the comparison result represents that the energy of the input commercial power is greater than or equal to the energy of the preset commercial power, controlling the electronic equipment to work in a first mode;
wherein the output power in the first mode is full power.
4. The method of claim 1 or 2, wherein adjusting the output power of the electronic device based on the comparison comprises:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the electronic equipment to work in a second mode;
wherein the output power in the second mode is less than full power.
5. The method of claim 1 or 2, wherein adjusting the output power of the electronic device based on the comparison comprises:
and when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, controlling the output power of the electronic equipment to be the changed power.
6. The method of claim 5, wherein the output power of the control electronics is a varying power comprising:
determining a switching period;
and controlling the output power of the electronic equipment to be the variable power according to the switching period.
7. The method of claim 1 or 2, wherein adjusting the output power of the electronic device based on the comparison comprises:
when the comparison result represents that the energy of the input commercial power is less than the energy of the preset commercial power, detecting output current;
when the output current is larger than the preset current value, adjusting the output power from a first value to a second value;
wherein the full power value is greater than the first value; the first value is greater than the second value.
8. A power control apparatus, comprising:
the first processing unit is used for sampling an input alternating voltage signal;
a second processing unit for determining the energy of the input mains supply corresponding to the alternating voltage signal; comparing the energy of the input commercial power with the energy of a preset commercial power to obtain a comparison result; based on the comparison, adjusting an output power of the electronic device to achieve one of: the output power is full power, the output power is power smaller than the full power, and the output power is power which changes.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110363725.7A 2021-04-02 2021-04-02 Power control method, device, electronic equipment and storage medium Active CN113206521B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110363725.7A CN113206521B (en) 2021-04-02 2021-04-02 Power control method, device, electronic equipment and storage medium
PCT/CN2022/079990 WO2022206324A1 (en) 2021-04-02 2022-03-09 Power control method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110363725.7A CN113206521B (en) 2021-04-02 2021-04-02 Power control method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113206521A CN113206521A (en) 2021-08-03
CN113206521B true CN113206521B (en) 2023-01-31

Family

ID=77026184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110363725.7A Active CN113206521B (en) 2021-04-02 2021-04-02 Power control method, device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113206521B (en)
WO (1) WO2022206324A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113206521B (en) * 2021-04-02 2023-01-31 Oppo广东移动通信有限公司 Power control method, device, electronic equipment and storage medium
CN114035099B (en) * 2021-10-12 2023-12-22 深圳供电局有限公司 Method and device for measuring alternating-current/direct-current conversion efficiency and electronic equipment
CN117093050B (en) * 2023-10-19 2024-04-09 深圳市恒运昌真空技术股份有限公司 High-efficiency power output method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201101871D0 (en) * 2011-02-03 2011-03-23 Sollatek Ltd Improvements in and relating to power regulation devices
WO2013178054A1 (en) * 2012-06-01 2013-12-05 The University Of Hong Kong Input ac voltage control bi-directional power converters
CN108494007A (en) * 2018-05-08 2018-09-04 江西理工大学 Virtual synchronous generator control method based on direct Power Control when unbalanced source voltage

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916127B (en) * 2010-07-21 2015-04-01 中兴通讯股份有限公司 Power supply control method for terminal equipment and terminal equipment
CN108923484A (en) * 2018-07-13 2018-11-30 安克创新科技股份有限公司 Charge power adjusting method, device, power supply unit and storage medium
CN210201546U (en) * 2019-08-08 2020-03-27 上海飞科电器股份有限公司 Charging current control device of lithium battery and electric toothbrush
CN113206521B (en) * 2021-04-02 2023-01-31 Oppo广东移动通信有限公司 Power control method, device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201101871D0 (en) * 2011-02-03 2011-03-23 Sollatek Ltd Improvements in and relating to power regulation devices
WO2013178054A1 (en) * 2012-06-01 2013-12-05 The University Of Hong Kong Input ac voltage control bi-directional power converters
CN108494007A (en) * 2018-05-08 2018-09-04 江西理工大学 Virtual synchronous generator control method based on direct Power Control when unbalanced source voltage

Also Published As

Publication number Publication date
CN113206521A (en) 2021-08-03
WO2022206324A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN113206521B (en) Power control method, device, electronic equipment and storage medium
WO2017133001A1 (en) Charging method, adapter, and mobile terminal
EP3285361A1 (en) Terminal charging system, charging method, and power adapter
US11463012B1 (en) Architecture for multi-port AC/DC switching mode power supply
US10971990B1 (en) Avoiding false NSN detection in flyback converters
CN204190621U (en) A kind of switching power circuit
CN103915989A (en) Control Circuit For Power Supply Unit, Battery Charger And Method For Controlling To Sample Input End Of Power Supply
US10560035B2 (en) Discharge device, power supply apparatus, and discharge method with power supply cut-off detection and capacitor discharge
CN109963394A (en) A kind of flash switch detection circuit and Intelligent lamp
EP3496256A2 (en) Charging system, charging method, and power adapter
CN109963395A (en) A kind of control device
US20230006563A1 (en) Power supply device and charging control method
CN115333388A (en) Rectifier module switching method, device, terminal and storage medium
KR100608647B1 (en) Apparatus for reducing stand-by electric power for switching mode power supply
EP3567699A1 (en) Charging device and method, power adapter and terminal
CN210894497U (en) Ammeter system
CN114019418A (en) Power failure detection circuit for Internet of things electric energy meter and Internet of things electric energy meter
CN103312183A (en) Power supply for electric reactor performance testing in phase-control rectifying circuit and test method thereof
EP4120506A1 (en) Power supply device and charging control method
CN112714941B (en) Capacitance selection method and device and computer storage medium
US10923938B2 (en) Charging device and charging method
CN211183781U (en) Power adapter
KR100608646B1 (en) Apparatus for reducing stand-by electric power for switching mode power supply
CN107070877B (en) Universal power adapter protocol (UPP)
CN115549478A (en) Switch conversion circuit and control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant