Voltage environment adaptive adjustment method and system for plug-in adapter

By adopting voltage environment adaptive adjustment methods in plug-in adapters, including dynamic voltage compensation and synchronous current phase, the problem of adapters not being able to operate stably in extremely low or extremely high voltage environments is solved, and stable output and component protection are achieved under different voltage environments.

CN119511737BActive Publication Date: 2025-04-11SHENZHEN KUNXING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510080763.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-04-11
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

In extremely low or very high voltage environments, the plug-in adapter may not work stably and may even be damaged, limiting its use in specific scenarios.

Method used

The voltage environment adaptive adjustment method of the plug-in adapter is adopted, including sampling voltage signals based on the preset voltage divider circuit and the analog-to-digital converter, determining whether it matches the limit voltage environment, activating the active clamp circuit to test the key component parameters, performing dynamic voltage compensation, and synchronizing the current and voltage waveforms according to the current phase.

Benefits of technology

Through the dynamic voltage compensation mechanism, the adapter can maintain a stable output in extremely low or extremely high voltage environments, avoiding adapter damage caused by voltage abnormalities and extending the service life of key components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119511737B_ABST
    Figure CN119511737B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for adaptively adjusting the voltage environment of a plug-in adapter, which is applied to the field of electrical data processing. The present invention can automatically perform undervoltage compensation and overvoltage compensation according to actual voltage conditions through a dynamic voltage compensation mechanism, thereby ensuring that the adapter can still maintain stable output in an extremely low or extremely high voltage environment, avoiding damage to the adapter due to voltage abnormalities, and testing key component parameters such as transformer turns ratio, magnetic flux density, and saturation current at the same time to ensure that these components operate within the design range. Combined with the activation of an active clamping circuit, the present invention can effectively suppress voltage spikes and overcurrent problems, extend the life of key components, and avoid damage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electrical data processing, and in particular to a method and system for adaptively adjusting the voltage environment of a plug-in adapter. Background Art

[0002] In specific environments, such as industrial electricity, high altitude areas, remote grid power supply areas, or scenarios with frequent power outages, the voltage may be significantly different from the standard home or commercial voltage environment. These special environments will place higher requirements on the adapter's voltage adaptive adjustment capabilities, making the adapter possibly unable to work stably, which limits its use in specific scenarios. Summary of the invention

[0003] The present invention aims to solve the problem that the adapter may not work stably or even be damaged under extremely low voltage (such as as low as 80V in remote areas) or extremely high voltage (such as industrial power environment may reach more than 300V in an instant) conditions, and provides a voltage environment adaptive adjustment method and system for a plug-in adapter.

[0004] The present invention adopts the following technical means to solve the technical problem:

[0005] The present invention provides a method for adaptively adjusting a voltage environment of a plug-in adapter, comprising:

[0006] Based on the voltage divider circuit preset in the plug adapter, a preset analog-to-digital converter is used to sample the voltage signal after voltage division, and the voltage signal is converted into a digital signal;

[0007] Determining whether the digital signal matches a preset extreme voltage environment;

[0008] If not, the active clamping circuit preset in the plug adapter is activated to test the key component parameters of the plug adapter, and the voltage of the plug adapter is matched to the load demand by using the preset dynamic voltage compensation according to the upper and lower voltage thresholds preset in the plug adapter, wherein the key component parameters specifically include the transformer turns ratio, the transformer magnetic flux density and the transformer saturation current, and the dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation;

[0009] Determining whether the plug-in adapter detects a preset voltage fluctuation;

[0010] If detected, characteristic parameters of the voltage fluctuation are collected, the input current waveform of the plug adapter is detected based on the characteristic parameters, the phase difference between the input current and the input voltage is calculated, and the current phase of the plug adapter is dynamically adjusted based on the phase difference. According to the current phase, the current waveform and voltage waveform of the plug adapter are synchronized, wherein the characteristic parameters specifically include frequency, amplitude and fluctuation rate.

[0011] Furthermore, before the step of activating the active clamping circuit preset in the plug adapter and testing the parameters of key components of the plug adapter, the method further includes:

[0012] Based on the protection type preset by the plug adapter, identifying the abnormal state of the plug adapter, wherein the protection type specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection and temperature protection, and the abnormal state specifically includes transient abnormality and continuous abnormality;

[0013] Determining whether the abnormal state matches the protection type;

[0014] If so, the power grid characteristics of the current area are obtained, and the trigger sensitivity of the protection type is dynamically adjusted according to the power grid characteristics, and other parameters of the plug-in adapter are adjusted through a preset feedback circuit, wherein the power grid characteristics specifically include the voltage fluctuation range, power supply network structure and harmonic interference, and the other parameters specifically include duty cycle, power limit and switching frequency.

[0015] Furthermore, the step of using preset dynamic voltage compensation to match the voltage of the plug adapter to the load demand further includes:

[0016] collecting a load variation coefficient of the plug adapter, and identifying an actual load requirement of the plug adapter based on the load variation coefficient;

[0017] Determining whether the actual load demand matches the load change trend;

[0018] If not, the difference between the output voltage and the expected value is detected according to the load variation coefficient, and the voltage compensation factor of the plug adapter is dynamically adjusted according to the difference, and the ratio between the output voltage and the load power is adjusted through the real-time current of the plug adapter.

[0019] Furthermore, the step of collecting characteristic parameters of the voltage fluctuation and detecting the input current waveform of the plug adapter according to the characteristic parameters further includes:

[0020] The analog-to-digital converter is used to perform high-speed sampling on the input current waveform of the plug adapter, and scan the short-duration high-amplitude pulse of the input current waveform, wherein the high-amplitude pulse specifically includes the pulse amplitude, pulse duration and pulse occurrence time point;

[0021] Determining whether the short-duration high-amplitude pulse matches a preset average amplitude;

[0022] If not, identify the waveform position of the short-duration high-amplitude pulse, compare the input voltage waveform when the short-duration high-amplitude pulse occurs, and detect the voltage fluctuation and voltage spike of the plug adapter based on the input voltage waveform, wherein the waveform position specifically includes the positive half-cycle, the negative half-cycle and the zero crossing point.

[0023] Furthermore, the step of determining whether the digital signal matches a preset extreme voltage environment further includes:

[0024] Convert the digital signal into a corresponding frequency domain signal, and extract spectrum information from the frequency domain signal, wherein the spectrum information specifically includes frequency components and relative amplitudes;

[0025] Determining whether the spectrum information is within a preset spectrum threshold;

[0026] If so, based on the spectrum area corresponding to the spectrum threshold, the total power of the frequency components of the spectrum area is calculated, and the preset noise data is detected from the total power of the frequency components, wherein the spectrum area specifically includes a high-frequency area and a low-frequency area, and the noise data specifically includes abnormal high-frequency interference and abnormal low-frequency drift.

[0027] Furthermore, the step of determining whether the plug adapter detects a preset voltage fluctuation further includes:

[0028] Based on preset sampling and recording points, the fluctuation slope of the voltage fluctuation is collected, and the voltage change of the plug adapter is calculated according to adjacent sampling points and the fluctuation slope;

[0029] Determining whether the voltage change matches a preset fluctuation type, wherein the fluctuation type specifically includes normal change, abnormal jump and slow drift;

[0030] If so, the slope sequence corresponding to the fluctuation slope is converted into the frequency domain, the fluctuation range parameter is extracted from the slope sequence, and the periodic characteristics of the voltage fluctuation are obtained according to the fluctuation range parameter, wherein the fluctuation range parameter specifically includes the maximum and minimum values, the mean value and the standard deviation.

[0031] Furthermore, the step of applying a preset analog-to-digital converter to sample the voltage signal after voltage division and converting the voltage signal into a digital signal further includes:

[0032] Based on the preset resistance value matching of the plug adapter to the voltage divider circuit, the high voltage signal of the plug adapter is adjusted to the preset voltage range of the analog-to-digital converter, and the preset standard signal is sampled by the analog-to-digital converter;

[0033] Determining whether the standard signal is within a preset error range;

[0034] If not, a corresponding sampling data waveform is drawn according to the standard signal, and error correction is performed on the standard signal according to the sampling data waveform, wherein the error correction specifically includes adjusting zero point compensation and gain correction.

[0035] The present invention also provides a voltage environment adaptive adjustment system for a plug-in adapter, comprising:

[0036] A sampling module, which is used to sample the voltage signal after voltage division using a preset analog-to-digital converter based on the voltage division circuit preset by the plug-in adapter, and convert the voltage signal into a digital signal;

[0037] A judging module, used to judge whether the digital signal matches a preset extreme voltage environment;

[0038] An execution module, for activating the active clamping circuit preset in the plug adapter, testing the key component parameters of the plug adapter, and matching the voltage of the plug adapter to the load demand by using the preset dynamic voltage compensation according to the upper and lower voltage thresholds preset in the plug adapter, wherein the key component parameters specifically include the transformer turns ratio, the transformer magnetic flux density and the transformer saturation current, and the dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation;

[0039] A second determination module, used to determine whether the plug adapter detects a preset voltage fluctuation;

[0040] The second execution module is used to collect characteristic parameters of the voltage fluctuation if detected, detect the input current waveform of the plug adapter according to the characteristic parameters, calculate the phase difference between the input current and the input voltage, dynamically adjust the current phase of the plug adapter based on the phase difference, and synchronize the current waveform and voltage waveform of the plug adapter according to the current phase, wherein the characteristic parameters specifically include frequency, amplitude and fluctuation rate.

[0041] Furthermore, it also includes:

[0042] An identification module, configured to identify an abnormal state of the plug adapter based on a protection type preset by the plug adapter, wherein the protection type specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection, and temperature protection, and the abnormal state specifically includes transient abnormality and continuous abnormality;

[0043] A third judgment module is used to judge whether the abnormal state matches the protection type;

[0044] The third execution module is used to obtain the power grid characteristics of the current area, dynamically adjust the trigger sensitivity of the protection type according to the power grid characteristics, and adjust other parameters of the plug-in adapter through a preset feedback circuit, wherein the power grid characteristics specifically include the voltage fluctuation range, the power supply network structure and the harmonic interference, and the other parameters specifically include the duty cycle, the power limit and the switching frequency.

[0045] Furthermore, the execution module also includes:

[0046] A collection unit, used to collect the load variation coefficient of the plug adapter, and identify the actual load demand of the plug adapter based on the load variation coefficient;

[0047] A judging unit, used to judge whether the actual load demand matches the load change trend;

[0048] The execution unit is used to detect the difference between the output voltage and the expected value according to the load change coefficient, dynamically adjust the voltage compensation factor of the plug adapter according to the difference, and adjust the ratio between the output voltage and the load power through the real-time current of the plug adapter.

[0049] The present invention provides a method and system for adaptively adjusting the voltage environment of a plug-in adapter, which has the following beneficial effects:

[0050] The present invention can automatically perform undervoltage compensation and overvoltage compensation according to the actual voltage conditions through a dynamic voltage compensation mechanism, ensuring that the adapter can still maintain stable output in extremely low or extremely high voltage environments, avoiding damage to the adapter due to voltage abnormalities, and at the same time testing key component parameters such as transformer turns ratio, flux density and saturation current to ensure that these components operate within the design range. Combined with the activation of the active clamping circuit, it can effectively suppress voltage spikes and overcurrent problems, extend the life of key components and avoid damage. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flow chart of an embodiment of a method for adaptively adjusting voltage environment of a plug adapter of the present invention;

[0052] Figure 2 It is a structural block diagram of an embodiment of a voltage environment adaptive adjustment system of a plug adapter of the present invention. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The implementation of the objectives, functional features and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] Reference Figure 1 , is a method for adaptively adjusting the voltage environment of a plug-in adapter in an embodiment of the present invention, comprising:

[0056] S1: Based on the voltage divider circuit preset by the plug adapter, a preset analog-to-digital converter is used to sample the voltage signal after voltage division, and the voltage signal is converted into a digital signal;

[0057] S2: Determine whether the digital signal matches a preset extreme voltage environment;

[0058] S3: If not, activating the active clamping circuit preset in the plug adapter, testing the key component parameters of the plug adapter, and matching the voltage of the plug adapter to the load demand by using the preset dynamic voltage compensation according to the upper and lower voltage thresholds preset in the plug adapter, wherein the key component parameters specifically include the transformer turns ratio, the transformer magnetic flux density and the transformer saturation current, and the dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation;

[0059] S4: Determine whether the plug adapter detects a preset voltage fluctuation;

[0060] S5: If detected, characteristic parameters of the voltage fluctuation are collected, the input current waveform of the plug adapter is detected according to the characteristic parameters, the phase difference between the input current and the input voltage is calculated, and the current phase of the plug adapter is dynamically adjusted based on the phase difference, and the current waveform and voltage waveform of the plug adapter are synchronized according to the current phase, wherein the characteristic parameters specifically include frequency, amplitude and fluctuation rate.

[0061] In this embodiment, the system uses a preset analog-to-digital converter to sample the voltage signal after voltage division based on the voltage division circuit pre-set in the plug-in adapter, converts these voltage signals into digital signals, and then the system determines whether the converted digital signal matches the preset limit voltage environment to execute the corresponding steps; for example, when the system determines that the converted digital signal can match the preset limit voltage environment, the system will believe that although the current input voltage is close to the limit design range of the adapter, it is still within the conditions for the adapter to operate safely and stably, and the system will sample the input voltage and current signals at a higher frequency to track the changes in the input voltage waveform in real time. The system detects fluctuations in the voltage and current, and adjusts the phase and amplitude of the input current to make it more synchronized with the waveform of the input voltage, optimizes the power factor of the adapter, and starts low-power or high-sensitivity protection modes. For example, the overvoltage or undervoltage protection mechanism of the adapter can reduce the trigger threshold to cope with sudden fluctuations in the input environment. For example, when the system determines that the converted digital signal cannot match the preset limit voltage environment, the system will consider that the current input voltage makes the adapter run dangerously, and the system will activate the active clamping circuit pre-set in the plug-in adapter to test the key component parameters of the plug-in adapter. The key component parameters specifically include the transformer turns ratio, the transformer The system tests the transformer's magnetic flux density and transformer saturation current, and uses pre-set dynamic voltage compensation according to the pre-set upper and lower voltage thresholds of the plug-in adapter. The dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation to match the plug-in adapter's voltage to the load demand; the system activates the active clamping circuit to test the transformer's key parameters (turns ratio, magnetic flux density, and saturation current) in real time, which can effectively protect the transformer and other core components from damage due to excessively high or low voltage, thereby extending the service life of the adapter. At the same time, through the dynamic voltage compensation mechanism, the input voltage can be quickly adjusted to the adapter's operating range, and undervoltage compensation ensures that the adapter can still provide under extremely low voltage conditions. Stable output, overvoltage compensation suppresses excess energy in a high voltage environment to avoid problems such as overheating or component breakdown in the adapter. By testing key parameters and implementing dynamic adjustments based on voltage upper and lower thresholds, the adapter can adapt to a wider range of input voltage conditions (such as changes from very low voltage to very high voltage), enhancing its adaptability in different power grid environments, thereby ensuring system reliability. The dynamic voltage compensation mechanism can optimize voltage output according to actual load requirements, help reduce energy waste, reduce losses during adapter operation, and improve overall energy efficiency. The system then determines whether the plug-in adapter detects a preset voltage fluctuation to execute the corresponding steps.For example, when the system determines that the plug-in adapter does not detect a preset voltage fluctuation after matching the load demand, the system will consider that the current input voltage has stabilized, and the dynamic voltage compensation measures of the adapter are effective, the load demand matching of the adapter has been completed, and the system is in normal operation. The system will record the current input voltage and load status as a stable state, and update the status mark to indicate that no further compensation or adjustment is required at present. At the same time, when the input voltage is stable, the system can reduce the frequency or intensity of dynamic monitoring, reduce resource consumption, and extend the service life of the equipment, and continue to sample the input voltage signal at a preset period, convert the signal into digital data through an analog-to-digital converter, and verify whether the input voltage remains stable. According to the stable input voltage signal, the system can dynamically optimize the gain setting of the feedback loop to further improve the efficiency and performance of the adapter; for example, when the system determines that the plug-in adapter detects a preset voltage fluctuation after matching the load demand, the system will consider that the current input voltage is unstable, and the system will collect characteristic parameters of the voltage fluctuation, which specifically include frequency, amplitude, and fluctuation rate. The input current waveform of the plug-in adapter is detected based on these characteristic parameters, and the relative relationship between the input current and the input voltage is calculated. Phase difference, based on the phase difference, dynamically adjust the current phase of the plug-in adapter, and synchronize the current waveform and voltage waveform of the plug-in adapter according to different current phases; the system can accurately determine the nature of the current voltage fluctuation and respond quickly by real-time acquisition and analysis of the characteristic parameters of voltage fluctuations. Dynamic adjustment of the current phase can effectively offset or alleviate the impact of voltage fluctuations on the adapter, ensuring that the adapter can still operate stably under unstable voltage conditions, reducing equipment damage or performance degradation caused by voltage fluctuations. At the same time, by calculating the phase difference between the input current and voltage, and dynamically adjusting the current phase according to the phase difference, the power factor of the adapter can be optimized. The improvement of the power factor means that the adapter can use the input power more efficiently and reduce power waste, thereby improving the energy efficiency of the entire system. In addition, dynamic adjustment of the current phase and synchronization of current and voltage waveforms can reduce the stress of key components such as transformers and rectifiers under voltage fluctuations, and reduce the risk of damage caused by overload or overheating. This real-time adaptive adjustment helps to extend the service life of key components and improve the overall reliability of the adapter. The system can adaptively adjust the operating state according to the real-time voltage fluctuation characteristic parameters, so that the adapter can adapt to voltage fluctuations in different regions and different power grid environments. ;

[0062] It should be noted that the phase difference between the input current and the input voltage is calculated, and based on the phase difference, the current phase of the plug adapter is dynamically adjusted, and the current waveform and the voltage waveform of the plug adapter are synchronized according to the current phase. The specific examples are as follows:

[0063] Assume that a household plug adapter is powering an electronic device. The grid voltage connected to the adapter is 230V. There is a large phase difference (30 degrees) between the current waveform and the voltage waveform, indicating that the load is an inductive load (such as a motor or transformer).

[0064] Step 1: Detect input signals. The current and voltage sensors in the adapter collect input current and voltage signals respectively. After filtering and amplification, the analog-to-digital converter (ADC) converts these analog signals into digital signals for analysis by the processor.

[0065] Data example:

[0066] Input voltage waveform: 230V, 50Hz230V, 50Hz230V, 50Hz;

[0067] Input current waveform: 2A, 30 degrees lag 2A, 30 degrees lag 2A, 30 degrees lag;

[0068] Step 2: Calculate the phase difference. The processor uses the digital signal to calculate the phase difference, which may be done using a fast Fourier transform (FFT) or a specialized phase detection algorithm. The calculation results show that the current lags the voltage by 30 degrees.

[0069] Calculation results:

[0070] Phase difference = 30 degrees lag;

[0071] Step 3: Analyze the phase difference. System analysis found that a 30-degree phase difference means a power factor of about 0.866, which is far below the ideal value of 1. This causes the adapter to be unable to fully utilize the input power, resulting in energy waste.

[0072] Power factor calculation:

[0073] Power factor (PF) = cos(30 degrees) ≈ 0.866;

[0074] Step 4: Dynamically adjust the current phase. The system activates the power factor correction (PFC) circuit to adjust the input current by changing the duty cycle of the PFC controller. Specifically, the system increases the duty cycle of the PFC controller to move the current waveform forward and reduce the lag angle.

[0075] Adjustment process:

[0076] Initial duty cycle = 40%;

[0077] Adjusted duty cycle = 45%;

[0078] Step 5: Synchronize the current and voltage waveforms. After several feedback adjustments, the current waveform gradually synchronizes with the voltage waveform. Finally, the phase difference is reduced from 30 degrees to 5 degrees, which is close to the ideal state.

[0079] Adjustment results:

[0080] Final phase difference = 5 degree lag;

[0081] Power factor (PF) = cos(5 degrees) ≈ 0.996;

[0082] Step 6: Optimization effect: The synchronization of current and voltage improves the power factor, reduces energy loss, and avoids the problem of equipment overheating caused by excessive phase difference. At this time, the adapter works more efficiently and stably, providing more stable power for electronic devices.

[0083] Optimization effect:

[0084] Input power = voltage × current × power factor;

[0085] Input power before optimization = 230V × 2A × 0.866 ≈ 398W;

[0086] Optimized input power = 230V × 2A × 0.996 ≈ 458W;

[0087] In summary, in the above example, by dynamically adjusting the current phase, the adapter improves the efficiency of electric energy utilization, ensures that the equipment operates in an efficient and safe state, and reduces the load impact on the power grid.

[0088] In this embodiment, before activating the active clamping circuit preset in the plug adapter and testing the key component parameters of the plug adapter in step S3, the method further includes:

[0089] S301: Based on the protection type preset by the plug adapter, identifying the abnormal state of the plug adapter, wherein the protection type specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection and temperature protection, and the abnormal state specifically includes transient abnormality and continuous abnormality;

[0090] S302: Determine whether the abnormal state matches the protection type;

[0091] S303: If yes, then obtain the grid characteristics of the current area, dynamically adjust the trigger sensitivity of the protection type according to the grid characteristics, and adjust other parameters of the plug-in adapter through a preset feedback circuit, wherein the grid characteristics specifically include the voltage fluctuation range, power supply network structure and harmonic interference, and the other parameters specifically include duty cycle, power limit and switching frequency.

[0092] In this embodiment, the system identifies the abnormal state of the plug-in adapter based on the protection type pre-set for the plug-in adapter, which specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection, and temperature protection. The abnormal state specifically includes transient abnormality and continuous abnormality, and then the system determines whether these abnormal states match the pre-set protection type to execute corresponding steps; for example, when the system determines that the abnormal state of the plug-in adapter cannot match the pre-set protection type of the plug-in adapter, the system will consider the current abnormal state to be an unexpected or uncovered special situation, and the system will immediately switch the adapter to a safe mode or an emergency power-off mode to avoid further damage. Bad, safe mode involves reducing the output power or completely disconnecting the power supply, and recording the unmatched abnormal status in the log, including specific voltage, current, temperature and other related data, which is helpful for subsequent analysis and troubleshooting, and displays the abnormal status through indicator lights or screens to prompt users that there are potential problems with the device. If the adapter is connected to an intelligent system, notifications or alarm messages can be sent; for example, when the system determines that the abnormal state of the plug-in adapter can match the protection type pre-set for the plug-in adapter, the system will consider the current abnormal condition to be predictable. The system will obtain the grid characteristics of the current area, which specifically include the voltage fluctuation range, power supply network structure, etc. and harmonic interference. According to different grid characteristics, the trigger sensitivity of the protection type is dynamically adjusted. Other parameters of the plug-in adapter are adjusted through a pre-set feedback circuit. Other parameters include duty cycle, power limit and switching frequency. The system can dynamically adjust the trigger sensitivity of the protection type by obtaining and analyzing the grid characteristics of the current area (such as voltage fluctuation range, power supply network structure, harmonic interference), so that the adapter can better adapt to the local grid environment. This adaptive adjustment reduces the possibility of false triggering of protection and avoids unnecessary equipment downtime. At the same time, the protection mechanism is dynamically adjusted according to the grid characteristics, which can respond to grid anomalies more accurately and avoid the adapter from frequently starting the protection mechanism due to slight voltage fluctuations or harmonic interference, thereby improving the stability of the system. For serious abnormal conditions, the system can trigger protection in time to prevent equipment damage or shortening of service life. By adjusting parameters such as duty cycle, power limit and switching frequency, the adapter can optimize energy conversion efficiency while ensuring safety. This optimization not only reduces energy consumption, but also reduces heat generation, and improves the overall efficiency and service life of the adapter. Due to the dynamic adjustment of protection sensitivity and other parameters, the adapter can respond to different grid conditions more accurately and reduce the equipment failure rate caused by grid instability. This capability is particularly important in areas with poor power supply quality.

[0093] It should be noted that the power grid characteristics of the current region are obtained, and the trigger sensitivity of the protection type is dynamically adjusted according to the power grid characteristics, and other parameters of the plug adapter are adjusted through a preset feedback circuit. The specific examples are as follows:

[0094] In an industrial area, high-power equipment frequently starts and stops, causing severe voltage fluctuations in the grid and high harmonic content in the power supply line. In this environment, plug-in adapters need to deal with frequent voltage transients and harmonic interference. Traditional adapters often trigger protection due to their overly sensitive protection mechanisms, resulting in unstable power supply for the equipment.

[0095] The system uses sensors installed in the adapter to collect grid data in real time. The voltage fluctuation frequency is recorded as frequently changing between 200V and 260V, while the standard voltage should be 230V. The harmonic analyzer detects that the total harmonic distortion (THD) is 10%, which is much higher than the usual standard range of 3%-5%.

[0096] The system analyzed the amplitude and frequency of voltage fluctuations and confirmed that this was normal fluctuation caused by high-power operation of industrial equipment, rather than abnormal conditions. Harmonic analysis results showed that most harmonics were composed of 5th and 7th harmonic components, which are usually related to the operation of large motors and inverters.

[0097] Dynamically adjust the protection sensitivity. The system increases the adapter's overvoltage protection threshold from 250V to 265V and reduces the undervoltage protection from 210V to 195V to reduce false shutdowns caused by normal fluctuations triggering protection. The sensitivity of overcurrent protection is slightly reduced to adapt to instantaneous current fluctuations caused by harmonics to avoid misjudgment as overcurrent conditions.

[0098] The feedback circuit adjusts other parameters. Due to the large voltage fluctuation, the system adjusts the duty cycle of the adapter's PWM control signal to make the output voltage smoother. For example, the duty cycle is fine-tuned from 50% to 55% or 45% to compensate for the change in input voltage. The maximum power limit of the adapter is set to below the maximum value for safe operation of the device to prevent overload. For example, if the maximum power of the device is 1000W, the power limit is set to 950W. The system detects that the harmonics have a large impact on the device and reduces the switching frequency from 50kHz to 40kHz. This adjustment can reduce the high-frequency noise generated by the adapter itself, while reducing the resonance with the grid harmonics and improving the stability of the device.

[0099] The above-mentioned adjusted adapter can adapt to the voltage fluctuation range of 200V to 260V, and will not trigger the protection frequently due to voltage transients; due to the optimization of protection sensitivity, the adapter reduces the false triggering of overcurrent protection caused by harmonic interference, and the number of equipment shutdowns is significantly reduced; by adjusting the duty cycle and switching frequency, the energy efficiency of the adapter is improved by 5%, which not only reduces energy consumption, but also reduces the operating temperature of the equipment and improves long-term reliability;

[0100] In summary, the above examples show that by dynamically adjusting the protection mechanism and optimizing parameters, the plug-in adapter maintains stable operation in a high-fluctuation and high-harmonic environment, extending the service life of the equipment and reducing maintenance costs.

[0101] In this embodiment, the step S3 of matching the voltage of the plug adapter to the load demand by using the preset dynamic voltage compensation further includes:

[0102] S31: collecting a load variation coefficient of the plug adapter, and identifying an actual load requirement of the plug adapter based on the load variation coefficient;

[0103] S32: Determine whether the actual load demand matches the load change trend;

[0104] S33: If not, detecting the difference between the output voltage and the expected value according to the load variation coefficient, dynamically adjusting the voltage compensation factor of the plug adapter according to the difference, and adjusting the ratio between the output voltage and the load power through the real-time current of the plug adapter.

[0105] In this embodiment, the system collects the load variation coefficient of the plug-in adapter, identifies the actual load demand of the plug-in adapter based on different load variation coefficients, and then determines whether these actual load demands match the load variation trend to execute corresponding steps; for example, when the system determines that the actual load demand of the plug-in adapter can match the corresponding load variation trend, the system will consider that the current output of the adapter is consistent with the load demand, and the system can continue to optimize the operating efficiency of the adapter. The system will fine-tune the output voltage or current of the adapter to ensure maximum energy efficiency. For example, if the load variation is within the normal range, the output voltage can be slightly reduced to reduce energy consumption, and at the same time detect the current operating conditions. Energy efficiency ratio (such as the ratio of input power to output power) ensures that the best energy efficiency is achieved while meeting the load demand. Since the load demand and the change trend match, the load pressure on the key components of the adapter can be temporarily reduced, extending its service life. For example, the working conditions of the transformer and the switch tube can be slightly relieved, reducing the loss caused by long-term high-load operation. For example, when the system determines that the actual load demand of the plug-in adapter cannot match the corresponding load change trend, the system will think that the current output of the adapter is not consistent with the load demand. The system will detect the difference between the output voltage and the expected value according to different load change coefficients, and dynamically adjust the voltage of the plug-in adapter according to the difference. The compensation factor adjusts the ratio between the output voltage and the load power through the real-time current of the plug-in adapter; the system detects the difference between the output voltage and the expected value and dynamically adjusts the voltage compensation factor to ensure that when the load fluctuates, the output voltage of the adapter always matches the actual load demand, thereby avoiding the impact of excessively high or low voltage on the load equipment. When the load demand changes greatly, the adjustment of the output voltage can avoid the voltage fluctuation from causing unstable operation or damage to the equipment, thereby improving the reliability of the adapter. At the same time, the ratio between the output voltage and the load power is adjusted according to the real-time current, which can ensure that the adapter works with the best energy efficiency under any load conditions, and excessively high voltage output Output will lead to energy waste, and too low voltage may not meet the load requirements. Precise adjustment can reduce unnecessary energy consumption, and by detecting the difference between the output voltage and the expected value, the system can promptly detect any abnormal load changes (such as instantaneous overload or excessive load fluctuations), and adjust the voltage compensation factor in time to prevent the adapter from entering protection mode or being damaged due to failure to meet sudden load requirements. By adjusting the voltage output according to the load change coefficient, the adapter can respond flexibly to different types of load changes. This means that the adapter can maintain the best operating state in various working environments, whether the load suddenly increases or decreases, it can quickly adjust to ensure efficient work.

[0106] It should be noted that, according to the load variation coefficient, the difference between the output voltage and the expected value is detected, and the voltage compensation factor of the plug adapter is dynamically adjusted according to the difference value. The ratio between the output voltage and the load power is adjusted through the real-time current of the plug adapter. The specific examples are as follows:

[0107] Assume that a plug-in adapter is used to power multiple industrial motors, whose load requirements vary over time. For example, during production peaks, the motors require more power, while during production troughs, the motors are in a lower load state or even standby;

[0108] Scene setup:

[0109] High load: The motor needs to run at a higher power, may be working under heavy load, and requires more current and voltage;

[0110] Low load: The motor is in standby mode or lightly loaded, requiring only a small amount of current and voltage;

[0111] System Operation:

[0112] High load, that is, during peak production, the motor needs to respond quickly to higher power requirements; the load variation coefficient is high, and the load demand of the motor increases rapidly in a short period of time; the system detects that the output voltage is significantly different from the expected value (for example, the voltage drops from 220V to 210V) because the adapter fails to provide enough power to cope with the sudden increase in load;

[0113] At this time, the system collects data in real time, detects voltage differences, and dynamically adjusts the voltage compensation factor based on the voltage difference. For example, if the target voltage is set to 220V and the current output voltage is 210V, the system calculates the difference value ΔV=220V−210V=10V, which indicates that the voltage needs to be adjusted. The system may increase the compensation factor to adjust the output voltage to 220V. At the same time, the current will also be dynamically adjusted according to the voltage increase to ensure that the load demand is met. For example, if the motor load is heavy, the system will increase the current from 5A to 7A to ensure stable power supply.

[0114] At low load, i.e. during low production, the motor load demand is small; the load variation coefficient is low, which means that the motor load changes relatively smoothly and the voltage and current demand are small; at this time, the system will detect that the difference between the voltage output and the expected value is small (for example, the voltage only drops from 220V to 218V), the difference value ΔV=220V−218V=2V, and this small deviation will not affect the normal operation of the motor;

[0115] The system makes small compensation adjustments based on the slight differences detected to maintain voltage and current stability, thus avoiding frequent adjustments and energy waste. For example, the compensation factor is adjusted slightly, and the current is adjusted from 3A to 2.8A, ensuring that the motor load changes within a reasonable range and avoiding excessive power consumption.

[0116] In summary, by real-time monitoring of the load change coefficient and the difference between the output voltage and the expected voltage, the system can dynamically adjust the voltage and current to ensure that the adapter provides the most stable power that best adapts to load demand; for example, when the load changes greatly, the system increases the adjustment range of the compensation factor to quickly respond to load changes; and when the load changes less, the system adjusts smoothly to reduce energy loss caused by frequent adjustments.

[0117] In this embodiment, the step S5 of collecting characteristic parameters of the voltage fluctuation and detecting the input current waveform of the plug adapter according to the characteristic parameters further includes:

[0118] S51: using the analog-to-digital converter to perform high-speed sampling on the input current waveform of the plug adapter, and scanning the short-duration high-amplitude pulse of the input current waveform, wherein the high-amplitude pulse specifically includes a pulse amplitude, a pulse duration, and a pulse occurrence time point;

[0119] S52: Determine whether the short-duration high-amplitude pulse matches a preset average amplitude;

[0120] S53: If not, identify the waveform position of the short-duration high-amplitude pulse, compare the input voltage waveform when the short-duration high-amplitude pulse occurs, and detect the voltage fluctuation and voltage spike of the plug adapter based on the input voltage waveform, wherein the waveform position specifically includes a positive half-cycle, a negative half-cycle and a zero crossing point.

[0121] In this embodiment, the system performs high-speed sampling of the input current waveform of the plug-in adapter by applying an analog-to-digital converter, scans the short-term high-amplitude pulses of the input current waveform, and the high-amplitude pulses specifically include pulse amplitude, pulse duration and pulse occurrence time point, and then the system determines whether these short-term high-amplitude pulses match the preset average amplitude to execute the corresponding steps; for example, when the system determines that the short-term high-amplitude pulses of the input current waveform can match the preset average amplitude, the system will consider that the input current waveform has a high-amplitude pulse in a short period of time, and its amplitude, duration and occurrence time point meet the design expectations of the system, and these pulses are within the normal range and will not cause overload or damage to the plug-in adapter or the power supply system. The system will continue to monitor the current waveform to ensure that the pulse does not exceed the set normal range. If the average amplitude can still be matched in subsequent sampling, it means that the system can maintain the current state, and the system can set a buffer period during which it continues to monitor. Whether there are abnormal fluctuations in the control, if no unforeseen fluctuations occur, it can be determined that the equipment is working normally, and if these pulses exist in a specific pattern in the load cycle, the system can make subtle adjustments to the voltage or current output to ensure the stability of the equipment during long-term operation. For example, after the air conditioner is started, the current waveform may continue to be in a high-amplitude pulse state. The system can preset parameters and optimize the adapter response to ensure the current and voltage stability during the operation of the air conditioner; for example, when the system determines that the short-term high-amplitude pulse of the input current waveform cannot match the preset average amplitude, the system will believe that the high-amplitude pulses in the input current waveform in a short period of time will cause damage to the plug-in adapter. The system will identify the waveform positions of these short-term high-amplitude pulses, which specifically include the positive half-cycle, the negative half-cycle and the zero crossing point, and compare the input voltage waveform when these short-term high-amplitude pulses appear. Based on different input voltage waveforms, the voltage fluctuations and voltage spikes of the plug-in adapter are detected;By comparing the short-term high-amplitude pulse with the input voltage waveform, the system can determine whether the pulse is caused by abnormal voltage fluctuations or voltage spikes. These abnormal fluctuations may cause damage to key components of the adapter, such as transformers, switching elements, and filter capacitors. If the current pulse appears in the negative half cycle or zero crossing point, and the voltage waveform also has a spike, the system can quickly identify and take measures to prevent the adapter from being damaged by instantaneous overvoltage or voltage spikes. At the same time, based on the detected voltage fluctuations and voltage spikes, real-time feedback adjustments are made. For example, if the voltage fluctuation exceeds the safety range, the system can immediately activate the protection mechanism and adjust the current waveform. The system can detect or temporarily disconnect the power supply to avoid damaging the adapter, and by identifying different waveform positions, the system can more accurately determine and locate the source of the current pulse. If the system finds that the problem occurs at a specific moment (such as the zero crossing point), it can take targeted protection measures to avoid failures caused by abnormal fluctuations during the long-term operation of the equipment. By accurately identifying the abnormalities of the current and voltage waveforms, the system can take intervention measures at the early stage of the problem to avoid the expansion of the problem, thereby reducing the failure rate of the equipment. This active protection mechanism reduces the frequency of plug-in adapter failures, thereby saving maintenance and replacement costs. ;

[0122] In this embodiment, the step S2 of determining whether the digital signal matches the preset extreme voltage environment further includes:

[0123] S21: converting the digital signal into a corresponding frequency domain signal, and extracting spectrum information from the frequency domain signal, wherein the spectrum information specifically includes frequency components and relative amplitudes;

[0124] S22: Determine whether the spectrum information is within a preset spectrum threshold;

[0125] S23: If yes, then based on the spectrum area corresponding to the spectrum threshold, calculate the total power of the frequency components of the spectrum area, and detect preset noise data from the total power of the frequency components, wherein the spectrum area specifically includes a high-frequency area and a low-frequency area, and the noise data specifically includes abnormal high-frequency interference and abnormal low-frequency drift.

[0126] In this embodiment, the system converts the digital signal into a corresponding frequency domain signal, extracts spectrum information from these frequency domain signals, and the spectrum information specifically includes frequency components and relative amplitudes, and then the system determines whether these spectrum information are within a preset spectrum threshold to perform corresponding steps; for example, when the system determines that the spectrum information is not within the preset spectrum threshold, the system will consider that the frequency component or relative amplitude of the current signal is abnormal, and the system will apply a filter to filter out the abnormal frequency to reduce the impact of external or internal noise, such as a low-pass filter or a band-pass filter can help remove high-frequency noise and unnecessary frequency components, restore the normal waveform of the signal, and start the dynamic voltage adjustment function at the same time, stabilize the system input by adjusting the power or voltage, at this time the system can maintain stability by adjusting the duty cycle, operating frequency or turning on the backup power supply, and if the spectrum information abnormality reflects that the current is too large or too small, the system can adjust the working mode, such as entering the protection mode, reducing the output power, or reducing the system load by dynamically adjusting the frequency or switching frequency to avoid damage caused by overload; for example, when the system determines that the spectrum information is within the preset spectrum threshold, the system will consider that the frequency component of the current signal is normal, and the system will adjust the frequency component based on the spectrum. The spectrum region corresponding to the threshold, the spectrum region specifically includes a high-frequency region and a low-frequency region, calculates the total power of the frequency components of the spectrum region, detects the preset noise data from the total power of these frequency components, and the noise data specifically includes abnormal high-frequency interference and abnormal low-frequency drift; by calculating the total power of the frequency components of the spectrum region, the system can identify potential noise data, especially abnormal high-frequency interference and abnormal low-frequency drift, these noise data are usually caused by external interference or power supply instability and other problems. If these noises can be identified in advance, the system can take corresponding measures to avoid them affecting the stability and performance of the device. At the same time, through the analysis of the spectrum region, the system can timely identify potential noise and unstable factors according to pre-set standards, which helps to maintain the stability of the power supply and adapter, and reduce system anomalies caused by voltage, current or frequency fluctuations. The system can adjust the output power, frequency or take protective measures in time to ensure the long-term stable operation of the equipment, and by identifying high-frequency interference and low-frequency drift, the system can take targeted measures to reduce the impact of these noises, for example, the system can activate a low-pass filter to filter out high-frequency noise, or adjust the operating frequency of the power supply to reduce the impact of low-frequency drift, to ensure that the equipment operates in an ideal working environment.

[0127] It should be noted that, based on the spectrum region corresponding to the spectrum threshold, the total power of the frequency components in the spectrum region is calculated, and the preset noise data is detected from the total power of the frequency components. The specific examples are as follows:

[0128] Assume that there is a power adapter system that is used to provide a stable power supply to a device. The system collects input voltage and current signals, converts them into frequency domain signals, and performs spectrum analysis to detect potential noise interference or unstable power supply conditions.

[0129] Set spectrum thresholds and monitoring targets. Assume that the system has preset the following spectrum thresholds to monitor power supply noise in different frequency regions:

[0130] Low frequency area (0-100 Hz): This area mainly monitors the basic operating frequency of the power supply (for example, 50 Hz or 60 Hz); the system sets the power threshold of this area to 10 W;

[0131] High frequency area (100 Hz-1 kHz): This area monitors possible high frequency interference sources, such as the frequency components of switching power supplies. The system sets the power threshold of this area to 5 W.

[0132] Step 1: First, spectrum analysis and total power calculation of frequency components are performed. The system collects input current signals and uses fast Fourier transform (FFT) technology to convert time domain signals into frequency domain signals to obtain power information of different frequency components.

[0133] Low frequency area:

[0134] The system calculates the total power in the low-frequency region (0-100 Hz) and obtains a total power of 8 W for the frequency components. Since this value is lower than the set threshold of 10 W, there is no abnormality in the low-frequency region and the signal quality is normal.

[0135] High frequency area:

[0136] The system calculates the total power in the high-frequency region (100 Hz-1 kHz) and finds that the total power of the frequency components is 7 W. Since this value exceeds the set threshold of 5 W, the system believes that there may be high-frequency interference in the signal.

[0137] Step 2: Detect noise data. When the system detects that the power in the high-frequency area exceeds the set threshold, it will further analyze the specific situation of high-frequency interference. High-frequency noise may be caused by the switching power supply inside the device, external electromagnetic interference, or other high-frequency electrical equipment.

[0138] Abnormal high-frequency interference: Assume that the system detects that the frequency components in the high-frequency area are mainly concentrated at 500 Hz and 800 Hz. These two frequencies happen to be the common operating frequencies of some electrical equipment, such as radio transmitters or switching power supply frequencies. Since these high-frequency noises exceed the threshold set by the system, the system determines that these frequency components are abnormal high-frequency interference.

[0139] Step 3: Response measures: To deal with abnormal high-frequency noise, the system can take the following measures:

[0140] When the noise filter is enabled, the system starts a bandpass filter that specifically filters out frequency components between 100 Hz and 1 kHz, especially the two high-frequency interference frequencies of 500 Hz and 800 Hz; the filter reduces the intensity of these frequencies, thereby reducing the impact of interference sources and ensuring a more stable power output;

[0141] Adjust the switching frequency. If the switching power frequency of the system happens to coincide with the frequency of the high-frequency noise source, it may cause increased interference. In this case, the system can avoid these interference sources by dynamically adjusting its switching frequency. For example, the switching frequency can be adjusted to 400 Hz or 900 Hz to avoid known interference frequencies (500 Hz and 800 Hz). Smooth voltage output. The system can avoid voltage fluctuations caused by high-frequency interference by adjusting the output voltage and current to ensure the normal operation of the equipment.

[0142] Step 4: Monitoring and response of low-frequency areas In addition to the high-frequency areas, the system also monitors the low-frequency areas to ensure that there is no abnormal low-frequency drift in the signal;

[0143] Abnormal low-frequency drift: Assume that the power in the low-frequency area is close to the upper threshold limit (e.g. 9 W), and the frequency fluctuation exceeds the normal range (e.g. 50 Hz ± 2 Hz caused by grid voltage fluctuation). The system considers that there is a slight low-frequency drift in the signal, which may be caused by unstable grid voltage or sudden load change.

[0144] Response measures: The system can enable the voltage regulator or dynamic voltage regulation function to stabilize the input voltage and eliminate the impact of low-frequency drift; according to the grid fluctuations, the system can dynamically adjust the voltage requirements of the load to avoid over-reliance on unstable grid input;

[0145] In summary, in the above examples, through spectrum analysis, the system can detect high-frequency interference and low-frequency drift in the power supply signal; when it is found that these noises exceed the preset spectrum threshold, the system will take corresponding measures, such as enabling filters, adjusting switching frequencies, and stabilizing voltage to ensure the stability and reliability of the power supply; this process can significantly improve the system's anti-interference ability and adaptability to unstable power grid environments, ensuring that the equipment can work normally even in complex power environments; for example, in some areas where the power grid frequently fluctuates, the system avoids equipment failure or performance degradation caused by voltage fluctuations or electromagnetic interference through real-time monitoring and dynamic adjustment.

[0146] In this embodiment, the step S4 of determining whether the plug adapter detects a preset voltage fluctuation further includes:

[0147] S41: based on preset sampling and recording points, collecting the fluctuation slope of the voltage fluctuation, and calculating the voltage change of the plug adapter according to adjacent sampling points and the fluctuation slope;

[0148] S42: Determine whether the voltage change matches a preset fluctuation type, wherein the fluctuation type specifically includes normal change, abnormal jump and slow drift;

[0149] S43: If yes, the slope sequence corresponding to the fluctuation slope is converted into the frequency domain, the fluctuation range parameter is extracted from the slope sequence, and the periodic characteristics of the voltage fluctuation are obtained according to the fluctuation range parameter, wherein the fluctuation range parameter specifically includes the maximum and minimum values, the mean value and the standard deviation.

[0150] In this embodiment, the system collects the fluctuation slope of the voltage fluctuation based on the preset sampling and recording points, calculates the voltage change of the plug-in adapter according to the adjacent sampling points and the fluctuation slope, and then the system determines whether the voltage change of the plug-in adapter matches the preset fluctuation type, and the fluctuation type specifically includes normal change, abnormal jump and slow drift, so as to execute the corresponding steps; for example, when the system determines that the voltage change of the plug-in adapter cannot match the preset fluctuation type, the system will consider that the current voltage change mode is not covered by the fluctuation type expected by the system, and unknown or abnormal voltage behavior may occur. The system will dynamically update its voltage fluctuation type library and add new fluctuation types, such as recording the voltage change characteristics that cannot be matched at present, and making New fluctuation patterns are included in the system monitoring range so that similar abnormal situations can be identified in the future. At the same time, when the system cannot match the voltage change, it can automatically switch to safe mode, reduce the output power or increase the response time of the voltage regulator to avoid damage to the load, and trigger the self-test program to check the status of key components of the plug-in adapter, such as capacitors, inductors, etc., to eliminate the possibility of internal failure; for example, when the system determines that the voltage change of the plug-in adapter can match the pre-set fluctuation type, the system will consider that the current voltage change pattern is covered by the expected fluctuation type and is a known voltage behavior. The system will perform frequency domain conversion on the slope sequence corresponding to the fluctuation slope, and extract the fluctuation range parameters from these slope sequences. The fluctuation range parameters are specific Including maximum and minimum values, mean and standard deviation, the periodic characteristics of voltage fluctuations are obtained based on these fluctuation range parameters; the system can establish a more accurate voltage fluctuation model by extracting fluctuation range parameters (such as maximum and minimum values, mean and standard deviation). This model can help the system predict future voltage fluctuation trends and improve the system's ability to predict voltage changes, so as to better adjust output parameters and ensure stable operation of equipment. At the same time, the system can identify the law of voltage fluctuations based on periodic characteristics and dynamically adjust the response mechanism of the plug-in adapter. For example, the system can adjust the output voltage or power setting in advance before the expected voltage peak arrives to reduce the impact of voltage fluctuations on the load. This active adjustment can significantly improve voltage stability and reduce the load from being affected by voltage fluctuations. The system can detect the impact of voltage fluctuations, and by analyzing the fluctuation range parameters and periodic characteristics, the system can identify abnormal fluctuation patterns, even if these patterns do not temporarily exceed the normal fluctuation range. For example, if the system detects that the standard deviation of the fluctuation is gradually increasing, it may indicate that the quality of the power grid is declining or the equipment is aging. Identifying these trends in advance can prompt maintenance personnel to take preventive measures to avoid potential failures. When the system understands the periodic characteristics of voltage fluctuations, it can optimize the energy management strategy of the plug-in adapter. For example, when the voltage fluctuation is at a lower risk stage, the adapter can enter the energy-saving mode to reduce energy consumption. In the stage with higher fluctuation risk, the response speed and adjustment ability are improved to ensure stable power supply. This dynamic energy management can effectively improve the overall energy efficiency.

[0151] In this embodiment, the step S1 of using a preset analog-to-digital converter to sample the voltage signal after voltage division and converting the voltage signal into a digital signal further includes:

[0152] S11: Based on the preset resistance matching of the plug adapter to the voltage divider circuit, the high voltage signal of the plug adapter is adjusted to the preset voltage range of the analog-to-digital converter, and a preset standard signal is sampled by the analog-to-digital converter;

[0153] S12: Determine whether the standard signal is within a preset error range;

[0154] S13: If not, then draw a corresponding sampling data waveform according to the standard signal, and perform error correction on the standard signal according to the sampling data waveform, wherein the error correction specifically includes adjusting zero point compensation and gain correction.

[0155] In this embodiment, the system adjusts the high voltage signal of the plug adapter to the voltage range preset by the analog-to-digital converter based on the pre-set resistance matching of the plug adapter to the voltage divider circuit, samples the pre-set standard signal through the analog-to-digital converter, and then determines whether the standard signal is within the pre-set error range to execute the corresponding steps; for example, when the system determines that the pre-set standard signal sampled by the analog-to-digital converter is within the pre-set error range, the system will consider that the signal conversion process between the voltage divider circuit of the plug adapter and the analog-to-digital converter is accurate, and the high voltage signal has been successfully adjusted to a voltage range suitable for processing by the analog-to-digital converter, and the system will Continuously collect and monitor input signals to ensure that subsequent sampled signals also remain within the preset error range. At the same time, record the current sampling data and error range results for subsequent analysis and equipment performance evaluation, which helps to monitor the working status of the plug-in adapter in the long term and identify potential problems. If all sampled signals are always at the lower value of the error range during long-term operation, the system can consider optimizing the sampling parameters of the analog-to-digital converter, improving the accuracy or adjusting the error range to better adapt to actual signal fluctuations. For example, when the system determines that the preset standard signal sampled by the analog-to-digital converter is not within the preset error range, the system will consider that the voltage divider circuit of the plug-in adapter is If the signal conversion process between the analog-to-digital converter is inaccurate, the system will draw the corresponding sampling data waveform according to the standard signal, and perform error correction on the standard signal based on these sampling data waveforms. The error correction is specifically to adjust the zero compensation and gain correction; the system can effectively correct the deviation in the signal acquisition process by drawing the sampling data waveform and performing error correction (such as adjusting the zero compensation and gain correction). This dynamic adjustment ensures that the signal collected by the analog-to-digital converter is closer to the true value and improves the accuracy of signal processing. At the same time, the system has the ability to automatically adjust its own parameters according to the sampling results, so that it can adapt to different signal fluctuations. This adaptive feature can reduce human intervention, improve the robustness and flexibility of the equipment in different working environments, and ensure that the system can continue to provide high-quality voltage signal processing. Through timely error correction, the system can prevent the increase of deviations caused by cumulative errors in the signal conversion process, avoid unnecessary protection measures caused by erroneous signal processing. Triggering or equipment damage, ensuring the safety and stability of the system and plug-in adapter, and accurate error correction not only optimizes the current signal acquisition, but also maintains the performance of the equipment for a long time. Reducing signal conversion errors helps protect electronic components, prevent component aging or failure caused by long-term inaccurate signal processing, and extend the service life of the equipment.

[0156] It should be noted that, according to the standard signal, a corresponding sampling data waveform is drawn, and according to the sampling data waveform, the standard signal is error corrected, wherein the error correction specifically adjusts zero point compensation and gain correction, and a specific example is as follows:

[0157] Assume that the standard signal voltage that the analog-to-digital converter (ADC) of a plug adapter should sample is 5V; the error range set by the system is ±0.05V; however, in actual operation, the system detects that the average value of the sampled signal is 5.4V, which exceeds the expected error range;

[0158] Collect signals and draw waveforms. The system samples the input signal at high speed through an analog-to-digital converter and draws the sampled voltage value into a waveform. Assume that the waveform shows that the voltage value of the overall signal fluctuates between 5.35V and 5.45V, which is obviously deviated from the target value of 5V. In addition, the baseline (zero point) of the waveform is displayed as 0.4V, indicating that the signal reference point is offset.

[0159] Analyzing waveform deviations, the system compares the sampled waveform with the ideal standard waveform and confirms that there are two main problems:

[0160] Zero offset: The signal reference voltage is not at the expected 0V, but is offset to 0.4V;

[0161] Gain error: The maximum value of the signal is 0.4V higher than the expected value (5V), indicating that the gain ratio is set incorrectly;

[0162] Adjust zero compensation. Zero compensation is a method used by the system to adjust the signal reference point. Through the internal circuit, the system adjusts the baseline of the sampled waveform from 0.4V back to 0V. This step returns the signal reference voltage to a normal level, ensuring that subsequent signal processing is performed at the correct reference point.

[0163] Adjust the gain correction. Gain correction involves adjusting the signal amplitude. The system finds that the current signal amplitude is too high by identifying the peak and valley values ​​of the waveform. Assuming that the gain needs to be adjusted by a ratio of 0.93 (i.e. 5V / 5.4V), the system automatically reduces the gain so that the signal amplitude matches the actual input signal change. After the adjustment, the maximum value of the waveform drops from 5.4V to 5V, and the signal amplitude is consistent with expectations.

[0164] After the correction, the system performs resampling after completing zero compensation and gain calibration, and then performs sampling again. This sampling shows that the signal voltage is stable between 4.98V and 5.02V, which is completely within the preset error range (±0.05V).

[0165] Example results and explanations: The sampled signal is 5.4V, which is 5V off target; the zero offset is 0.4V, and the signal gain is too high;

[0166] During the adjustment process, zero compensation adjusts the reference voltage from 0.4V to 0V; gain correction reduces the signal amplitude from 5.4V to 5V; after correction, the sampling signal is stable within a range close to 5V, which meets the preset error.

[0167] In summary, the above examples ensure the accuracy of signal processing through zero point compensation and gain correction to avoid erroneous operations caused by signal deviations. At the same time, accurate signal correction avoids false triggering of the protection mechanism and improves system stability. It also reduces device overload or false alarms caused by signal errors and extends the service life of the equipment. This dynamic adjustment ensures that the plug-in adapter can always provide accurate and reliable output under different voltage and signal conditions.

[0168] Reference Figure 2 , is a voltage environment adaptive adjustment system for a plug-in adapter in one embodiment of the present invention, comprising:

[0169] The sampling module 10 is used to sample the voltage signal after voltage division using a preset analog-to-digital converter based on the voltage division circuit preset by the plug-in adapter, and convert the voltage signal into a digital signal;

[0170] A judging module 20, used to judge whether the digital signal matches a preset extreme voltage environment;

[0171] The execution module 30 is used to activate the active clamping circuit preset in the plug adapter if no, test the key component parameters of the plug adapter, and use the preset dynamic voltage compensation to match the voltage of the plug adapter to the load demand according to the upper and lower voltage thresholds preset in the plug adapter, wherein the key component parameters specifically include the transformer turns ratio, the transformer magnetic flux density and the transformer saturation current, and the dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation;

[0172] A second determination module 40 is used to determine whether the plug adapter detects a preset voltage fluctuation;

[0173] The second execution module 50 is used to collect characteristic parameters of the voltage fluctuation if detected, detect the input current waveform of the plug adapter according to the characteristic parameters, calculate the phase difference between the input current and the input voltage, dynamically adjust the current phase of the plug adapter based on the phase difference, and synchronize the current waveform and voltage waveform of the plug adapter according to the current phase, wherein the characteristic parameters specifically include frequency, amplitude and fluctuation rate.

[0174] In this embodiment, the sampling module 10 uses a preset analog-to-digital converter to sample the voltage signal after voltage division based on the voltage division circuit pre-set in the plug-in adapter, and converts these voltage signals into digital signals. Then, the judgment module 20 judges whether the converted digital signal matches the preset limit voltage environment to execute the corresponding steps. For example, when the system determines that the converted digital signal can match the preset limit voltage environment, the system will consider that the current input voltage is close to the limit design range of the adapter, but is still within the condition that the adapter can operate safely and stably. The system will sample the input voltage and current signals at a higher frequency to track the input voltage in real time. The changing trend of the waveform, especially the fluctuation amplitude and rate, adjusts the phase and amplitude of the input current to make it more synchronized with the waveform of the input voltage, optimizes the power factor of the adapter, and starts a low-power or high-sensitivity protection mode. For example, the overvoltage or undervoltage protection mechanism of the adapter can reduce the trigger threshold to cope with the sudden fluctuation of the input environment; for example, when the system determines that the converted digital signal cannot match the preset limit voltage environment, the execution module 30 will think that the current input voltage makes the adapter run dangerously, and the system will activate the active clamping circuit pre-set in the plug-in adapter to test the key component parameters of the plug-in adapter. The key component parameters specifically include the number of transformer turns The system uses the preset dynamic voltage compensation according to the upper and lower voltage thresholds preset by the plug-in adapter. The dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation to match the voltage of the plug-in adapter with the load demand. The system activates the active clamping circuit to test the key parameters of the transformer (turns ratio, flux density and saturation current) in real time, which can effectively protect the transformer and other core components from being damaged due to excessively high or low voltage, thereby extending the service life of the adapter. At the same time, the dynamic voltage compensation mechanism can quickly adjust the input voltage to the working range of the adapter, and undervoltage compensation ensures that the adapter can still provide stable operation in extremely low voltage environments. The output is fixed, and the overvoltage compensation suppresses excess energy in a high voltage environment to avoid problems such as overheating or component breakdown of the adapter. By testing key parameters and implementing dynamic adjustments based on the upper and lower voltage thresholds, the adapter can adapt to a wider range of input voltage conditions (for example, changes from extremely low voltage to extremely high voltage), enhance its adaptability in different power grid environments, thereby ensuring system reliability, and the dynamic voltage compensation mechanism can optimize the voltage output according to actual load requirements, which helps to reduce energy waste, reduce losses during adapter operation, and improve overall energy efficiency; then the second judgment module 40 determines whether the plug-in adapter detects a preset voltage fluctuation to execute the corresponding steps;For example, when the system determines that the plug-in adapter does not detect a preset voltage fluctuation after matching the load demand, the system will consider that the current input voltage has stabilized, and the dynamic voltage compensation measures of the adapter are effective, the load demand matching of the adapter has been completed, and the system is in normal operation. The system will record the current input voltage and load state as a stable state, update the state mark to indicate that no further compensation or adjustment is required at present, and at the same time, when the input voltage is stable, the system can reduce the frequency or intensity of dynamic monitoring, reduce resource consumption, and extend the service life of the equipment, and continue to sample the input voltage signal at a preset period, convert the signal into digital data through an analog-to-digital converter, and verify whether the input voltage remains stable. According to the stable input voltage signal, the system can dynamically optimize the gain setting of the feedback loop to further improve the efficiency and performance of the adapter; for example, when the system determines that the plug-in adapter detects a preset voltage fluctuation after matching the load demand, the second execution module 50 will consider that the current input voltage is unstable, and the system will collect characteristic parameters of the voltage fluctuation, which specifically include frequency, amplitude, and fluctuation rate, detect the input current waveform of the plug-in adapter based on these characteristic parameters, and calculate the input current and input voltage The system can accurately determine the nature of the current voltage fluctuation and respond quickly by collecting and analyzing the characteristic parameters of voltage fluctuation in real time. The dynamic adjustment of the current phase can effectively offset or alleviate the impact of voltage fluctuation on the adapter, ensuring that the adapter can still operate stably under unstable voltage conditions and reduce equipment damage or performance degradation caused by voltage fluctuations. At the same time, by calculating the phase difference between the input current and voltage and dynamically adjusting the current phase according to the phase difference, the power factor of the adapter can be optimized. The improvement of the power factor means that the adapter can use the input power more efficiently and reduce the waste of power, thereby improving the energy efficiency of the entire system. The dynamic adjustment of the current phase and the synchronization of the current and voltage waveforms can reduce the stress of key components such as transformers and rectifiers under voltage fluctuations and reduce the risk of damage caused by overload or overheating. This real-time adaptive adjustment helps to extend the service life of key components and improve the overall reliability of the adapter. The system can adaptively adjust the operating state according to the real-time voltage fluctuation characteristic parameters, so that the adapter can adapt to voltage fluctuations in different regions and different power grid environments. ;

[0175] In this embodiment, it also includes:

[0176] An identification module, configured to identify an abnormal state of the plug adapter based on a protection type preset by the plug adapter, wherein the protection type specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection, and temperature protection, and the abnormal state specifically includes transient abnormality and continuous abnormality;

[0177] A third judgment module is used to judge whether the abnormal state matches the protection type;

[0178] The third execution module is used to obtain the power grid characteristics of the current area, dynamically adjust the trigger sensitivity of the protection type according to the power grid characteristics, and adjust other parameters of the plug-in adapter through a preset feedback circuit, wherein the power grid characteristics specifically include the voltage fluctuation range, the power supply network structure and the harmonic interference, and the other parameters specifically include the duty cycle, the power limit and the switching frequency.

[0179] In this embodiment, the system identifies the abnormal state of the plug-in adapter based on the protection type pre-set for the plug-in adapter, which specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection, and temperature protection. The abnormal state specifically includes transient abnormality and continuous abnormality, and then the system determines whether these abnormal states match the pre-set protection type to execute corresponding steps; for example, when the system determines that the abnormal state of the plug-in adapter cannot match the pre-set protection type of the plug-in adapter, the system will consider the current abnormal state to be an unexpected or uncovered special situation, and the system will immediately switch the adapter to a safe mode or an emergency power-off mode to avoid further damage. Bad, safe mode involves reducing the output power or completely disconnecting the power supply, and recording the unmatched abnormal status in the log, including specific voltage, current, temperature and other related data, which is helpful for subsequent analysis and troubleshooting, and displays the abnormal status through indicator lights or screens to prompt users that there are potential problems with the device. If the adapter is connected to an intelligent system, notifications or alarm messages can be sent; for example, when the system determines that the abnormal state of the plug-in adapter can match the protection type pre-set for the plug-in adapter, the system will consider the current abnormal condition to be predictable. The system will obtain the grid characteristics of the current area, which specifically include the voltage fluctuation range, power supply network structure, etc. and harmonic interference. According to different grid characteristics, the trigger sensitivity of the protection type is dynamically adjusted. Other parameters of the plug-in adapter are adjusted through a pre-set feedback circuit. Other parameters include duty cycle, power limit and switching frequency. The system can dynamically adjust the trigger sensitivity of the protection type by obtaining and analyzing the grid characteristics of the current area (such as voltage fluctuation range, power supply network structure, harmonic interference), so that the adapter can better adapt to the local grid environment. This adaptive adjustment reduces the possibility of false triggering of protection and avoids unnecessary equipment downtime. At the same time, the protection mechanism is dynamically adjusted according to the grid characteristics, which can respond to grid anomalies more accurately and avoid the adapter from frequently starting the protection mechanism due to slight voltage fluctuations or harmonic interference, thereby improving the stability of the system. For serious abnormal conditions, the system can trigger protection in time to prevent equipment damage or shortening of service life. By adjusting parameters such as duty cycle, power limit and switching frequency, the adapter can optimize energy conversion efficiency while ensuring safety. This optimization not only reduces energy consumption, but also reduces heat generation, and improves the overall efficiency and service life of the adapter. Due to the dynamic adjustment of protection sensitivity and other parameters, the adapter can respond to different grid conditions more accurately and reduce the equipment failure rate caused by grid instability. This capability is particularly important in areas with poor power supply quality.

[0180] In this embodiment, the execution module further includes:

[0181] A collection unit, used to collect the load variation coefficient of the plug adapter, and identify the actual load demand of the plug adapter based on the load variation coefficient;

[0182] A judging unit, used to judge whether the actual load demand matches the load change trend;

[0183] The execution unit is used to detect the difference between the output voltage and the expected value according to the load change coefficient, dynamically adjust the voltage compensation factor of the plug adapter according to the difference, and adjust the ratio between the output voltage and the load power through the real-time current of the plug adapter.

[0184] In this embodiment, the system collects the load variation coefficient of the plug-in adapter, identifies the actual load demand of the plug-in adapter based on different load variation coefficients, and then determines whether these actual load demands match the load variation trend to execute corresponding steps; for example, when the system determines that the actual load demand of the plug-in adapter can match the corresponding load variation trend, the system will consider that the current output of the adapter is consistent with the load demand, and the system can continue to optimize the operating efficiency of the adapter. The system will fine-tune the output voltage or current of the adapter to ensure maximum energy efficiency. For example, if the load variation is within the normal range, the output voltage can be slightly reduced to reduce energy consumption, and at the same time detect the current operating conditions. Energy efficiency ratio (such as the ratio of input power to output power) ensures that the best energy efficiency is achieved while meeting the load demand. Since the load demand and the change trend match, the load pressure on the key components of the adapter can be temporarily reduced, extending its service life. For example, the working conditions of the transformer and the switch tube can be slightly relieved, reducing the loss caused by long-term high-load operation. For example, when the system determines that the actual load demand of the plug-in adapter cannot match the corresponding load change trend, the system will think that the current output of the adapter is not consistent with the load demand. The system will detect the difference between the output voltage and the expected value according to different load change coefficients, and dynamically adjust the voltage of the plug-in adapter according to the difference. The compensation factor adjusts the ratio between the output voltage and the load power through the real-time current of the plug-in adapter; the system detects the difference between the output voltage and the expected value and dynamically adjusts the voltage compensation factor to ensure that when the load fluctuates, the output voltage of the adapter always matches the actual load demand, thereby avoiding the impact of excessively high or low voltage on the load equipment. When the load demand changes greatly, the adjustment of the output voltage can avoid the voltage fluctuation from causing unstable operation or damage to the equipment, thereby improving the reliability of the adapter. At the same time, the ratio between the output voltage and the load power is adjusted according to the real-time current, which can ensure that the adapter works with the best energy efficiency under any load conditions, and excessively high voltage output Output will lead to energy waste, and too low voltage may not meet the load requirements. Precise adjustment can reduce unnecessary energy consumption, and by detecting the difference between the output voltage and the expected value, the system can promptly detect any abnormal load changes (such as instantaneous overload or excessive load fluctuations), and adjust the voltage compensation factor in time to prevent the adapter from entering protection mode or being damaged due to failure to meet sudden load requirements. By adjusting the voltage output according to the load change coefficient, the adapter can respond flexibly to different types of load changes. This means that the adapter can maintain the best operating state in various working environments, whether the load suddenly increases or decreases, it can quickly adjust to ensure efficient work.

[0185] In this embodiment, the second execution module further includes:

[0186] A scanning unit, used to use the analog-to-digital converter to perform high-speed sampling on the input current waveform of the plug adapter, and scan the short-duration high-amplitude pulse of the input current waveform, wherein the high-amplitude pulse specifically includes a pulse amplitude, a pulse duration, and a pulse occurrence time point;

[0187] A second judgment unit, used to judge whether the short-duration high-amplitude pulse matches a preset average amplitude;

[0188] The second execution unit is used to identify the waveform position of the short-time high-amplitude pulse if not, compare the input voltage waveform when the short-time high-amplitude pulse appears, and detect the voltage fluctuation and voltage spike of the plug adapter based on the input voltage waveform, wherein the waveform position specifically includes a positive half-cycle, a negative half-cycle and a zero crossing point.

[0189] In this embodiment, the system performs high-speed sampling of the input current waveform of the plug-in adapter by applying an analog-to-digital converter, scans the short-term high-amplitude pulses of the input current waveform, and the high-amplitude pulses specifically include pulse amplitude, pulse duration and pulse occurrence time point, and then the system determines whether these short-term high-amplitude pulses match the preset average amplitude to execute the corresponding steps; for example, when the system determines that the short-term high-amplitude pulses of the input current waveform can match the preset average amplitude, the system will consider that the input current waveform has a high-amplitude pulse in a short period of time, and its amplitude, duration and occurrence time point meet the design expectations of the system, and these pulses are within the normal range and will not cause overload or damage to the plug-in adapter or the power supply system. The system will continue to monitor the current waveform to ensure that the pulse does not exceed the set normal range. If the average amplitude can still be matched in subsequent sampling, it means that the system can maintain the current state, and the system can set a buffer period during which it continues to monitor. Whether there are abnormal fluctuations in the control, if no unforeseen fluctuations occur, it can be determined that the equipment is working normally, and if these pulses exist in a specific pattern in the load cycle, the system can make subtle adjustments to the voltage or current output to ensure the stability of the equipment during long-term operation. For example, after the air conditioner is started, the current waveform may continue to be in a high-amplitude pulse state. The system can preset parameters and optimize the adapter response to ensure the current and voltage stability during the operation of the air conditioner; for example, when the system determines that the short-term high-amplitude pulse of the input current waveform cannot match the preset average amplitude, the system will believe that the high-amplitude pulses in the input current waveform in a short period of time will cause damage to the plug-in adapter. The system will identify the waveform positions of these short-term high-amplitude pulses, which specifically include the positive half-cycle, the negative half-cycle and the zero crossing point, and compare the input voltage waveform when these short-term high-amplitude pulses appear. Based on different input voltage waveforms, the voltage fluctuations and voltage spikes of the plug-in adapter are detected;By comparing the short-term high-amplitude pulse with the input voltage waveform, the system can determine whether the pulse is caused by abnormal voltage fluctuations or voltage spikes. These abnormal fluctuations may cause damage to key components of the adapter, such as transformers, switching elements, and filter capacitors. If the current pulse appears in the negative half cycle or zero crossing point, and the voltage waveform also has a spike, the system can quickly identify and take measures to prevent the adapter from being damaged by instantaneous overvoltage or voltage spikes. At the same time, based on the detected voltage fluctuations and voltage spikes, real-time feedback adjustments are made. For example, if the voltage fluctuation exceeds the safety range, the system can immediately activate the protection mechanism and adjust the current waveform. The system can detect or temporarily disconnect the power supply to avoid damaging the adapter, and by identifying different waveform positions, the system can more accurately determine and locate the source of the current pulse. If the system finds that the problem occurs at a specific moment (such as the zero crossing point), it can take targeted protection measures to avoid failures caused by abnormal fluctuations during the long-term operation of the equipment. By accurately identifying the abnormalities of the current and voltage waveforms, the system can take intervention measures at the early stage of the problem to avoid the expansion of the problem, thereby reducing the failure rate of the equipment. This active protection mechanism reduces the frequency of plug-in adapter failures, thereby saving maintenance and replacement costs. ;

[0190] In this embodiment, the judgment module further includes:

[0191] An extraction unit, configured to convert the digital signal into a corresponding frequency domain signal, and extract spectrum information from the frequency domain signal, wherein the spectrum information specifically includes frequency components and relative amplitudes;

[0192] A third judgment unit, used to judge whether the spectrum information is within a preset spectrum threshold;

[0193] The third execution unit is used to calculate the total power of the frequency components of the spectrum area based on the spectrum area corresponding to the spectrum threshold, and detect preset noise data from the total power of the frequency components, wherein the spectrum area specifically includes a high-frequency area and a low-frequency area, and the noise data specifically includes abnormal high-frequency interference and abnormal low-frequency drift.

[0194] In this embodiment, the system converts the digital signal into a corresponding frequency domain signal, extracts spectrum information from these frequency domain signals, and the spectrum information specifically includes frequency components and relative amplitudes, and then the system determines whether these spectrum information are within a preset spectrum threshold to perform corresponding steps; for example, when the system determines that the spectrum information is not within the preset spectrum threshold, the system will consider that the frequency component or relative amplitude of the current signal is abnormal, and the system will apply a filter to filter out the abnormal frequency to reduce the impact of external or internal noise, such as a low-pass filter or a band-pass filter can help remove high-frequency noise and unnecessary frequency components, restore the normal waveform of the signal, and start the dynamic voltage adjustment function at the same time, stabilize the system input by adjusting the power or voltage, at this time the system can maintain stability by adjusting the duty cycle, operating frequency or turning on the backup power supply, and if the spectrum information abnormality reflects that the current is too large or too small, the system can adjust the working mode, such as entering the protection mode, reducing the output power, or reducing the system load by dynamically adjusting the frequency or switching frequency to avoid damage caused by overload; for example, when the system determines that the spectrum information is within the preset spectrum threshold, the system will consider that the frequency component of the current signal is normal, and the system will adjust the frequency component based on the spectrum. The spectrum region corresponding to the threshold, the spectrum region specifically includes a high-frequency region and a low-frequency region, calculates the total power of the frequency components of the spectrum region, detects the preset noise data from the total power of these frequency components, and the noise data specifically includes abnormal high-frequency interference and abnormal low-frequency drift; by calculating the total power of the frequency components of the spectrum region, the system can identify potential noise data, especially abnormal high-frequency interference and abnormal low-frequency drift, these noise data are usually caused by external interference or power supply instability and other problems. If these noises can be identified in advance, the system can take corresponding measures to avoid them affecting the stability and performance of the device. At the same time, through the analysis of the spectrum region, the system can timely identify potential noise and unstable factors according to pre-set standards, which helps to maintain the stability of the power supply and adapter, and reduce system anomalies caused by voltage, current or frequency fluctuations. The system can adjust the output power, frequency or take protective measures in time to ensure the long-term stable operation of the equipment, and by identifying high-frequency interference and low-frequency drift, the system can take targeted measures to reduce the impact of these noises, for example, the system can activate a low-pass filter to filter out high-frequency noise, or adjust the operating frequency of the power supply to reduce the impact of low-frequency drift, to ensure that the equipment operates in an ideal working environment.

[0195] In this embodiment, the second determination module further includes:

[0196] A calculation unit, configured to collect the fluctuation slope of the voltage fluctuation based on preset sampling and recording points, and calculate the voltage change of the plug adapter according to adjacent sampling points and the fluctuation slope;

[0197] A fourth judgment unit, used to judge whether the voltage change matches a preset fluctuation type, wherein the fluctuation type specifically includes normal change, abnormal jump and slow drift;

[0198] The fourth execution unit is used to perform frequency domain conversion on the slope sequence corresponding to the fluctuation slope, extract the fluctuation range parameter from the slope sequence, and obtain the periodic characteristics of the voltage fluctuation according to the fluctuation range parameter, wherein the fluctuation range parameter specifically includes the maximum and minimum values, the mean value and the standard deviation.

[0199] In this embodiment, the system collects the fluctuation slope of the voltage fluctuation based on the preset sampling and recording points, calculates the voltage change of the plug-in adapter according to the adjacent sampling points and the fluctuation slope, and then the system determines whether the voltage change of the plug-in adapter matches the preset fluctuation type, and the fluctuation type specifically includes normal change, abnormal jump and slow drift, so as to execute the corresponding steps; for example, when the system determines that the voltage change of the plug-in adapter cannot match the preset fluctuation type, the system will consider that the current voltage change mode is not covered by the fluctuation type expected by the system, and unknown or abnormal voltage behavior may occur. The system will dynamically update its voltage fluctuation type library and add new fluctuation types, such as recording the voltage change characteristics that cannot be matched at present, and making New fluctuation patterns are included in the system monitoring range so that similar abnormal situations can be identified in the future. At the same time, when the system cannot match the voltage change, it can automatically switch to safe mode, reduce the output power or increase the response time of the voltage regulator to avoid damage to the load, and trigger the self-test program to check the status of key components of the plug-in adapter, such as capacitors, inductors, etc., to eliminate the possibility of internal failure; for example, when the system determines that the voltage change of the plug-in adapter can match the pre-set fluctuation type, the system will consider that the current voltage change pattern is covered by the expected fluctuation type and is a known voltage behavior. The system will perform frequency domain conversion on the slope sequence corresponding to the fluctuation slope, and extract the fluctuation range parameters from these slope sequences. The fluctuation range parameters are specific Including maximum and minimum values, mean and standard deviation, the periodic characteristics of voltage fluctuations are obtained based on these fluctuation range parameters; the system can establish a more accurate voltage fluctuation model by extracting fluctuation range parameters (such as maximum and minimum values, mean and standard deviation). This model can help the system predict future voltage fluctuation trends and improve the system's ability to predict voltage changes, so as to better adjust output parameters and ensure stable operation of equipment. At the same time, the system can identify the law of voltage fluctuations based on periodic characteristics and dynamically adjust the response mechanism of the plug-in adapter. For example, the system can adjust the output voltage or power setting in advance before the expected voltage peak arrives to reduce the impact of voltage fluctuations on the load. This active adjustment can significantly improve voltage stability and reduce the load from being affected by voltage fluctuations. The system can detect the impact of voltage fluctuations, and by analyzing the fluctuation range parameters and periodic characteristics, the system can identify abnormal fluctuation patterns, even if these patterns do not temporarily exceed the normal fluctuation range. For example, if the system detects that the standard deviation of the fluctuation is gradually increasing, it may indicate that the quality of the power grid is declining or the equipment is aging. Identifying these trends in advance can prompt maintenance personnel to take preventive measures to avoid potential failures. When the system understands the periodic characteristics of voltage fluctuations, it can optimize the energy management strategy of the plug-in adapter. For example, when the voltage fluctuation is at a lower risk stage, the adapter can enter the energy-saving mode to reduce energy consumption. In the stage with higher fluctuation risk, the response speed and adjustment ability are improved to ensure stable power supply. This dynamic energy management can effectively improve the overall energy efficiency.

[0200] In this embodiment, the sampling module further includes:

[0201] An adjustment unit, configured to adjust the high voltage signal of the plug adapter to a voltage range preset by the analog-to-digital converter based on the preset resistance matching of the plug adapter to the voltage divider circuit, and sample a preset standard signal through the analog-to-digital converter;

[0202] A fifth judging unit, used to judge whether the standard signal is within a preset error range;

[0203] The fifth execution unit is used to draw a corresponding sampling data waveform according to the standard signal if no, and perform error correction on the standard signal according to the sampling data waveform, wherein the error correction specifically includes adjusting zero point compensation and gain correction.

[0204] In this embodiment, the system adjusts the high voltage signal of the plug adapter to the voltage range preset by the analog-to-digital converter based on the pre-set resistance matching of the plug adapter to the voltage divider circuit, samples the pre-set standard signal through the analog-to-digital converter, and then determines whether the standard signal is within the pre-set error range to execute the corresponding steps; for example, when the system determines that the pre-set standard signal sampled by the analog-to-digital converter is within the pre-set error range, the system will consider that the signal conversion process between the voltage divider circuit of the plug adapter and the analog-to-digital converter is accurate, and the high voltage signal has been successfully adjusted to a voltage range suitable for processing by the analog-to-digital converter, and the system will Continuously collect and monitor input signals to ensure that subsequent sampled signals also remain within the preset error range. At the same time, record the current sampling data and error range results for subsequent analysis and equipment performance evaluation, which helps to monitor the working status of the plug-in adapter in the long term and identify potential problems. If all sampled signals are always at the lower value of the error range during long-term operation, the system can consider optimizing the sampling parameters of the analog-to-digital converter, improving the accuracy or adjusting the error range to better adapt to actual signal fluctuations. For example, when the system determines that the preset standard signal sampled by the analog-to-digital converter is not within the preset error range, the system will consider that the voltage divider circuit of the plug-in adapter is If the signal conversion process between the analog-to-digital converter is inaccurate, the system will draw the corresponding sampling data waveform according to the standard signal, and perform error correction on the standard signal based on these sampling data waveforms. The error correction is specifically to adjust the zero compensation and gain correction; the system can effectively correct the deviation in the signal acquisition process by drawing the sampling data waveform and performing error correction (such as adjusting the zero compensation and gain correction). This dynamic adjustment ensures that the signal collected by the analog-to-digital converter is closer to the true value and improves the accuracy of signal processing. At the same time, the system has the ability to automatically adjust its own parameters according to the sampling results, so that it can adapt to different signal fluctuations. This adaptive feature can reduce human intervention, improve the robustness and flexibility of the equipment in different working environments, and ensure that the system can continue to provide high-quality voltage signal processing. Through timely error correction, the system can prevent the increase of deviations caused by cumulative errors in the signal conversion process, avoid unnecessary protection measures caused by erroneous signal processing. Triggering or equipment damage, ensuring the safety and stability of the system and plug-in adapter, and accurate error correction not only optimizes the current signal acquisition, but also maintains the performance of the equipment for a long time. Reducing signal conversion errors helps protect electronic components, prevent component aging or failure caused by long-term inaccurate signal processing, and extend the service life of the equipment.

[0205] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for adaptively adjusting the voltage environment of a plug-in adapter, characterized in that: The following steps are involved: Based on the voltage divider circuit preset in the plug adapter, a preset analog-to-digital converter is used to sample the voltage signal after voltage division, and the voltage signal is converted into a digital signal; Determining whether the digital signal matches a preset extreme voltage environment; If not, the active clamping circuit preset in the plug adapter is activated to test the key component parameters of the plug adapter, and the voltage of the plug adapter is matched to the load demand by using the preset dynamic voltage compensation according to the upper and lower voltage thresholds preset in the plug adapter, wherein the key component parameters specifically include the transformer turns ratio, the transformer magnetic flux density and the transformer saturation current, and the dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation; Determining whether the plug-in adapter detects a preset voltage fluctuation; If detected, characteristic parameters of the voltage fluctuation are collected, the input current waveform of the plug adapter is detected based on the characteristic parameters, the phase difference between the input current and the input voltage is calculated, and the current phase of the plug adapter is dynamically adjusted based on the phase difference. According to the current phase, the current waveform and voltage waveform of the plug adapter are synchronized, wherein the characteristic parameters specifically include frequency, amplitude and fluctuation rate.

2. The method for adaptively adjusting the voltage environment of a plug-in adapter according to claim 1, characterized in that: Before the step of activating the active clamping circuit preset in the plug adapter and testing the parameters of key components of the plug adapter, the method further includes: Based on the protection type preset by the plug adapter, identifying the abnormal state of the plug adapter, wherein the protection type specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection and temperature protection, and the abnormal state specifically includes transient abnormality and continuous abnormality; Determining whether the abnormal state matches the protection type; If so, the power grid characteristics of the current area are obtained, and the trigger sensitivity of the protection type is dynamically adjusted according to the power grid characteristics, and other parameters of the plug-in adapter are adjusted through a preset feedback circuit, wherein the power grid characteristics specifically include the voltage fluctuation range, power supply network structure and harmonic interference, and the other parameters specifically include duty cycle, power limit and switching frequency.

3. The method for adaptively adjusting the voltage environment of a plug adapter according to claim 1, characterized in that: The step of using preset dynamic voltage compensation to match the voltage of the plug-in adapter to the load demand also includes: collecting a load variation coefficient of the plug adapter, and identifying an actual load requirement of the plug adapter based on the load variation coefficient; Determining whether the actual load demand matches the load change trend; If not, the difference between the output voltage and the expected value is detected according to the load variation coefficient, and the voltage compensation factor of the plug adapter is dynamically adjusted according to the difference, and the ratio between the output voltage and the load power is adjusted through the real-time current of the plug adapter.

4. The method for adaptively adjusting the voltage environment of a plug-in adapter according to claim 1, characterized in that: The step of collecting characteristic parameters of the voltage fluctuation and detecting the input current waveform of the plug adapter according to the characteristic parameters further includes: The analog-to-digital converter is used to perform high-speed sampling on the input current waveform of the plug adapter, and scan the short-duration high-amplitude pulse of the input current waveform, wherein the short-duration high-amplitude pulse specifically includes the pulse amplitude, the pulse duration and the pulse occurrence time point; Determining whether the short-duration high-amplitude pulse matches a preset average amplitude; If not, identify the waveform position of the short-duration high-amplitude pulse, compare the input voltage waveform when the short-duration high-amplitude pulse occurs, and detect the voltage fluctuation and voltage spike of the plug adapter based on the input voltage waveform, wherein the waveform position specifically includes the positive half-cycle, the negative half-cycle and the zero crossing point.

5. The method for adaptively adjusting the voltage environment of a plug-in adapter according to claim 1, characterized in that: The step of determining whether the digital signal matches a preset extreme voltage environment further includes: Convert the digital signal into a corresponding frequency domain signal, and extract spectrum information from the frequency domain signal, wherein the spectrum information specifically includes frequency components and relative amplitudes; Determining whether the spectrum information is within a preset spectrum threshold; If so, based on the spectrum area corresponding to the spectrum threshold, the total power of the frequency components of the spectrum area is calculated, and the preset noise data is detected from the total power of the frequency components, wherein the spectrum area specifically includes a high-frequency area and a low-frequency area, and the noise data specifically includes abnormal high-frequency interference and abnormal low-frequency drift.

6. The method for adaptively adjusting the voltage environment of a plug-in adapter according to claim 1, characterized in that: The step of determining whether the plug adapter detects a preset voltage fluctuation further includes: Based on preset sampling and recording points, the fluctuation slope of the voltage fluctuation is collected, and the voltage change of the plug adapter is calculated according to adjacent sampling points and the fluctuation slope; Determining whether the voltage change matches a preset fluctuation type, wherein the fluctuation type specifically includes normal change, abnormal jump and slow drift; If so, the slope sequence corresponding to the fluctuation slope is converted into the frequency domain, the fluctuation range parameter is extracted from the slope sequence, and the periodic characteristics of the voltage fluctuation are obtained according to the fluctuation range parameter, wherein the fluctuation range parameter specifically includes the maximum value, minimum value, mean value and standard deviation.

7. The method for adaptively adjusting the voltage environment of a plug-in adapter according to claim 1, characterized in that: The step of using a preset analog-to-digital converter to sample the voltage signal after voltage division and converting the voltage signal into a digital signal also includes: Based on the preset resistance value matching of the plug adapter to the voltage divider circuit, the high voltage signal of the plug adapter is adjusted to the preset voltage range of the analog-to-digital converter, and the preset standard signal is sampled by the analog-to-digital converter; Determining whether the standard signal is within a preset error range; If not, a corresponding sampling data waveform is drawn according to the standard signal, and error correction is performed on the standard signal according to the sampling data waveform, wherein the error correction specifically includes adjusting zero point compensation and gain correction.

8. A voltage environment adaptive adjustment system for a plug-in adapter, characterized in that: include: A sampling module, which is used to sample the voltage signal after voltage division using a preset analog-to-digital converter based on the voltage division circuit preset by the plug-in adapter, and convert the voltage signal into a digital signal; A judging module, used to judge whether the digital signal matches a preset extreme voltage environment; An execution module, for activating the active clamping circuit preset in the plug adapter, testing the key component parameters of the plug adapter, and matching the voltage of the plug adapter to the load demand by using the preset dynamic voltage compensation according to the upper and lower voltage thresholds preset in the plug adapter, wherein the key component parameters specifically include the transformer turns ratio, the transformer magnetic flux density and the transformer saturation current, and the dynamic voltage compensation specifically includes undervoltage compensation and overvoltage compensation; A second determination module, used to determine whether the plug adapter detects a preset voltage fluctuation; The second execution module is used to collect characteristic parameters of the voltage fluctuation if detected, detect the input current waveform of the plug adapter according to the characteristic parameters, calculate the phase difference between the input current and the input voltage, dynamically adjust the current phase of the plug adapter based on the phase difference, and synchronize the current waveform and voltage waveform of the plug adapter according to the current phase, wherein the characteristic parameters specifically include frequency, amplitude and fluctuation rate.

9. The voltage environment adaptive adjustment system of the plug adapter according to claim 8, characterized in that: Also includes: An identification module, configured to identify an abnormal state of the plug adapter based on a protection type preset by the plug adapter, wherein the protection type specifically includes overvoltage protection, undervoltage protection, overcurrent protection, short circuit protection, and temperature protection, and the abnormal state specifically includes transient abnormality and continuous abnormality; A third judgment module is used to judge whether the abnormal state matches the protection type; The third execution module is used to obtain the power grid characteristics of the current area, dynamically adjust the trigger sensitivity of the protection type according to the power grid characteristics, and adjust other parameters of the plug-in adapter through a preset feedback circuit, wherein the power grid characteristics specifically include the voltage fluctuation range, the power supply network structure and the harmonic interference, and the other parameters specifically include the duty cycle, the power limit and the switching frequency.

10. The voltage environment adaptive adjustment system of the plug adapter according to claim 8, characterized in that: The execution module also includes: A collection unit, used to collect the load variation coefficient of the plug adapter, and identify the actual load demand of the plug adapter based on the load variation coefficient; A judging unit, used to judge whether the actual load demand matches the load change trend; The execution unit is used to detect the difference between the output voltage and the expected value according to the load change coefficient, dynamically adjust the voltage compensation factor of the plug adapter according to the difference, and adjust the ratio between the output voltage and the load power through the real-time current of the plug adapter.

Citation Information

Patent Citations

  • Adapter control circuit and adapter

    CN108631619A

  • Power adapter

    CN113922672A