Direct-current component acquisition method and system, electronic equipment and storage medium

By obtaining the fluctuation curve and zero-crossing time point of the AC signal, the DC component is calculated, which solves the problems of high cost and poor real-time performance in detecting the DC component in the existing technology, achieves fast and accurate acquisition of the DC component, and ensures circuit stability.

CN118549693APending Publication Date: 2024-08-27HANGZHOU LIVOLTEK POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410752771.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When the existing technology detects the DC component in AC power, additional hardware equipment is required, which results in high cost and the detection results are affected by environmental interference. The real-time performance and reliability are poor, and it is difficult to quickly and accurately obtain the instantaneous value of the DC component, which affects circuit stability and energy consumption.

Method used

By obtaining the signal fluctuation curve, zero-crossing time point and period of the signal to be detected, calculating the extreme time point, and calculating the DC component based on these parameters, a fast acquisition method without adding additional hardware equipment is realized.

Benefits of technology

It reduces hardware costs, improves the accuracy and real-time performance of signal processing, can quickly and timely detect and process DC components, and ensures stable operation of the circuit system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549693A
    Figure CN118549693A
Patent Text Reader

Abstract

The embodiment of the invention discloses a direct current component obtaining method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining a signal fluctuation curve of a to-be-detected signal, the signal fluctuation curve being a time current signal fluctuation curve or a time voltage signal fluctuation curve; acquiring the changing period of the signal fluctuation curve; collecting the time of two adjacent zero-crossing points in the signal fluctuation curve, and recording the time as a first zero-crossing time point and a second zero-crossing time point; based on the first zero-crossing time point and the second zero-crossing time point, calculating an extreme time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve; and obtaining a direct current component based on the signal fluctuation curve, the period and the extreme value time point. By using the scheme, the calculated amount for obtaining the direct-current component is small, the response speed is high, and an instantaneous direct-current component value can be obtained so as to meet the requirement on the timeliness of direct-current component detection in some scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Multiple embodiments of this specification relate to the field of DC component detection technology, and specifically to a DC component acquisition method and system, electronic equipment, and storage medium. Background Art

[0002] Ideally, there is no DC component in the AC power system, but in reality, due to various reasons, such as environmental factors and interference, non-ideal power supply or capacitance and inductance, DC components often exist in the AC power.

[0003] The presence of DC components not only leads to energy waste, but also affects the stability of the circuit. For example, during the operation of the transformer, the presence of DC components can cause the transformer core to be magnetized and thus cause local overheating of the transformer or insulation aging. In severe cases, it can even lead to saturation of the transformer core, with very little change in magnetic flux, causing almost all of the current to be converted into heat energy. This not only increases the energy consumption of the transformer, but may also shorten the service life of the transformer due to abnormally high temperature.

[0004] The commonly used method to detect the DC component in AC power is to use hardware devices such as filters and differential amplifiers. However, the access to hardware devices not only increases the cost, but also may have a certain impact on the signal because the introduced detection equipment needs to be in direct contact with the circuit. In addition, the detection results of general detection equipment are greatly affected by environments such as high temperature, high voltage or magnetic interference, and there are problems with detection real-time and reliability. Although professional hardware detection equipment has high anti-interference ability and real-time performance, the cost will also increase significantly. Accurately detecting the instantaneous value of the DC component helps ensure the stable operation of the circuit system and improve the accuracy of signal processing. Therefore, there is an urgent need for a method that can quickly and accurately obtain the instantaneous value of the DC component without adding additional equipment. Summary of the invention

[0005] The embodiments of this specification provide a method and system for obtaining a DC component, an electronic device, and a storage medium, which can reduce the amount of calculation without adding additional equipment, quickly obtain the instantaneous value of the DC component, and improve the accuracy of signal processing. The technical solution is as follows: In a first aspect, an embodiment of the present specification provides a method for obtaining a DC component, comprising: Acquire a signal fluctuation curve of a signal to be detected, wherein the signal fluctuation curve is a time-current signal fluctuation curve or a time-voltage signal fluctuation curve; Obtaining a period of change in the signal fluctuation curve; Collecting the time of two adjacent zero-crossing points in the signal fluctuation curve, and recording them as a first zero-crossing time point and a second zero-crossing time point; Based on the first zero-crossing time point and the second zero-crossing time point, an extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve is calculated; Based on the signal fluctuation curve, period, and extreme value time point, a DC component is obtained.

[0006] As a preferred solution, the step of calculating the extreme time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point includes: Subtract the first zero-crossing time point from the second zero-crossing time point to obtain the zero-crossing time interval; An extreme value time point is obtained based on the first zero-crossing time point and the zero-crossing time interval or based on the second zero-crossing time point and the zero-crossing time interval.

[0007] As a preferred solution, the step of obtaining the cycle of the signal fluctuation curve change includes: The frequency of the signal to be detected is acquired through a phase-locked loop circuit, and the period of change of the signal fluctuation curve is obtained based on the frequency.

[0008] As a preferred solution, the step of obtaining a DC component based on the signal fluctuation curve, extreme time point, and period includes: Based on the extreme value time point and the period, obtaining a third zero-crossing time point whose distance from the extreme value time point is one quarter of the period; A value corresponding to the third zero-crossing time point is obtained from the signal fluctuation curve as a DC component.

[0009] As a preferred solution, the step of obtaining a DC component based on the signal fluctuation curve, extreme time point, and period includes: Based on the extreme value time point and the period, a first side zero-crossing time point and a second side zero-crossing time point are obtained, both of which are one quarter of a period away from the extreme value time point on both sides of the extreme value point; Acquire a first curve value corresponding to a zero-crossing time point on the first side and a second curve value corresponding to a zero-crossing time point on the second side from the signal fluctuation curve; A DC component is obtained based on the first curve value and the second curve value.

[0010] As a preferred solution, the step of obtaining a DC component based on the signal fluctuation curve, extreme time point, and period includes: Based on the extreme value time point and the period, a first side zero-crossing time point and a second side zero-crossing time point are obtained, both of which are one quarter of a period away from the extreme value time point. Based on the first side zero-crossing time point and the cycle, a plurality of interval time points are obtained that are equally spaced and whose distances from the first side zero-crossing time point are multiples of half the cycle; or based on the second side zero-crossing time point and the cycle, a plurality of interval time points are obtained that are equally spaced and whose distances from the second side zero-crossing time point are multiples of half the cycle; Obtaining third curve values ​​corresponding to all interval time points from the signal fluctuation curve; Based on all the third curve values, the DC component is obtained.

[0011] As a preferred solution, before the step of calculating the extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point, the method further includes: Obtaining the time interval between the first zero-crossing time point and the second zero-crossing time point; Obtaining the difference between the time interval and one-half period; When the difference is zero, the direct current component is directly output to be zero; when the difference is not zero, subsequent steps are performed.

[0012] In a second aspect, an embodiment of the present specification provides a DC component acquisition system, including a first acquisition module, a second acquisition module, a third acquisition module, a fourth acquisition module, and a fifth acquisition module; A first acquisition module, which acquires a signal fluctuation curve of a signal to be detected, wherein the signal fluctuation curve is a time-current signal fluctuation curve or a time-voltage signal fluctuation curve; A second acquisition module is used to acquire the period of change of the signal fluctuation curve; A third acquisition module collects the time of two adjacent zero-crossing points in the signal fluctuation curve and records them as a first zero-crossing time point and a second zero-crossing time point; A fourth acquisition module calculates an extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point; The fifth acquisition module acquires the DC component based on the signal fluctuation curve, extreme value time point, and period.

[0013] In a third aspect, an embodiment of this specification provides an electronic device, comprising a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps described in the first aspect of the above embodiment.

[0014] In a fourth aspect, an embodiment of this specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps described in the first aspect of the above embodiment.

[0015] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: By acquiring the fluctuation curve of the signal to be detected, the two adjacent zero-crossing time points of the signal to be detected and the period of the signal to be detected are obtained, and then the peak time point is calculated through the two zero-crossing time points, and then the DC component is obtained based on the fluctuation curve of the signal to be detected, the peak time point and the period; the scheme is based on a short time and a small amount of data, with a small amount of calculation, and can quickly obtain the instantaneous DC component, so as to timely discover the existence of the DC component and process it, which helps to ensure the stable operation of the circuit system and improve the accuracy of signal processing; in addition, the scheme does not need to add additional hardware circuits, and the value of the DC component can be obtained through an algorithm, which reduces the hardware cost. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 It is a schematic diagram of the positions of various points on a fluctuation curve in a DC component acquisition method provided in an embodiment of this specification.

[0018] Figure 2 It is a schematic diagram of the positions of various points on the fluctuation curve in another DC component acquisition method provided in an embodiment of this specification.

[0019] Figure 3 It is a flowchart of a DC component acquisition method provided in an embodiment of this specification.

[0020] Figure 4 It is a structural diagram of a DC component acquisition system provided in an embodiment of this specification.

[0021] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

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

[0024] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.

[0025] The DC component acquisition method provided in one or more embodiments of this specification is applicable to all scenarios where DC components need to be acquired, especially scenarios where the instantaneous value of the DC component needs to be acquired quickly, such as grid synchronization, photovoltaic power generation, battery management, real-time control systems, etc.

[0026] The following combination Figure 1 , the DC component acquisition method provided in the embodiment of this specification is explained: Reference Figure 1 As shown in the figure, due to the superposition of the DC component in the AC signal, the AC waveform is not a pure sine wave or cosine wave, but a waveform that is shifted upward or downward to a certain extent. Currently, it is necessary to obtain the value of the DC component in the shifted AC signal.

[0027] The DC component acquisition method provided in multiple embodiments of the present specification only needs to first acquire the signal fluctuation curve of the signal to be detected, and the value of the DC component can be calculated based on the waveform curve, period and extreme value time point. Because the sampling time is short, the amount of data required is small, and the calculation is simple, it is possible to quickly meet the requirements for obtaining the instantaneous value of the DC component; at the same time, when faced with the need for more stable and accurate detection but with reduced instantaneousness, the sampling points can be expanded to obtain the DC component based on multi-point values ​​to simultaneously meet the requirements of stability and instantaneousness of DC component detection.

[0028] It is understandable that obtaining the DC component of the signal to be detected may require obtaining the voltage value or the current value, and in some specific cases, it is necessary to obtain both the voltage value and the current value of the DC component, depending on the application scenario and specific technical requirements. For example, in a photovoltaic system, it is necessary to detect the output voltage of the photovoltaic panel to optimize the energy conversion efficiency; in circuit design, it is necessary to detect the current value to implement overcurrent protection and prevent circuit overload; in a battery system, detecting the DC voltage of the battery can provide the battery charging status information, and detecting the battery discharge current can prevent over-discharge, ensure battery safety and extend battery life; therefore, the signal to be detected in this manual includes a current signal and a voltage signal.

[0029] Reference Figure 3 As shown, Figure 3 A flow chart of a DC component acquisition method provided in an embodiment of this specification may at least include the following steps: Step 302, obtaining a signal fluctuation curve of the signal to be detected, wherein the signal fluctuation curve is a time current signal fluctuation curve or a time voltage signal fluctuation curve; Step 304, obtaining the period of change of the signal fluctuation curve; Step 306, collecting the time of two adjacent zero-crossing points in the signal fluctuation curve, and recording them as a first zero-crossing time point and a second zero-crossing time point; Step 308: Based on the first zero-crossing time point and the second zero-crossing time point, calculate and obtain an extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve; Step 310: Obtain a DC component based on the signal fluctuation curve, cycle, and extreme value time point.

[0030] The DC component acquisition method described in multiple embodiments of this specification obtains the fluctuation curve of the signal to be detected, and then collects the period of the fluctuation curve and two adjacent zero-crossing time points, namely the first zero-crossing time point and the second zero-crossing time point; and based on the first zero-crossing time point and the second zero-crossing time point, obtains the extreme time point of the signal to be detected between the first zero-crossing time point and the second zero-crossing time point, and further obtains the DC component of the signal to be detected based on the above-obtained signal fluctuation curve, period, and extreme time point. Because the sampling data is small, the calculation amount is small and the response is fast, which is suitable for the scene where the instantaneous value of the DC component needs to be quickly obtained.

[0031] It should also be noted that in order to make the detection result more accurate, the detection can be performed after the signal to be detected has run for a period of time to prevent low measurement accuracy when the signal is just turned on because the distribution of voltage and current may still be changing.

[0032] In one embodiment of the present specification, the step of calculating the extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point includes: Subtract the first zero-crossing time point from the second zero-crossing time point to obtain the zero-crossing time interval; An extreme value time point is obtained based on the first zero-crossing time point and the zero-crossing time interval or based on the second zero-crossing time point and the zero-crossing time interval.

[0033] See also Figure 2 or Figure 3 As shown, it can be understood that, because the extreme value time point is located at the middle point between the first zero-crossing time point and the second zero-crossing time point, it can be obtained by the first zero-crossing time point or the second zero-crossing time point and the zero-crossing time interval. Taking the first zero-crossing time point as an example, the extreme value time point can be obtained by adding or subtracting half of the zero-crossing time interval from the first zero-crossing time point; or it can be obtained by adding or subtracting a multiple of half of the cycle on the basis of this result, that is, the extreme value time point can fall between the first zero-crossing time point or the second zero-crossing time point, or it can not fall within the numerical range, and the extreme value time points thus obtained can be used in the subsequent DC component calculation step.

[0034] It should be noted that the extreme value time point can be a peak value or a valley value obtained by the first zero-crossing time point and the second zero-crossing time point, both of which can be used in the subsequent step of obtaining the DC component, and the effects are the same.

[0035] In one embodiment of the present specification, the step of obtaining a period of change of the signal fluctuation curve includes: The frequency of the signal to be detected is acquired through a phase-locked loop circuit, and the period of change of the signal fluctuation curve is obtained based on the frequency.

[0036] It should be noted that a phase-locked loop is an electronic circuit used to synchronize the frequency and phase between an input signal and a local oscillator. Even if the frequency of the input signal fluctuates, the phase-locked loop will provide an output with a stable frequency. In addition, because the phase-locked loop can lock the frequency of the input signal and adjust it through an internal circuit to output a pure frequency signal, the phase-locked loop can usually provide very high frequency measurement accuracy. Therefore, although this scheme can also obtain the period of the signal to be detected through the signal fluctuation curve, as a preferred embodiment, the frequency of the signal to be detected can be first obtained through the phase-locked loop circuit, and then the period of the signal to be detected can be obtained through frequency calculation.

[0037] See also Figure 1 As shown, in one embodiment of the present specification, the obtaining of the DC component based on the signal fluctuation curve, the extreme time point, and the cycle includes: Based on the extreme value time point and the period, obtaining a third zero-crossing time point whose distance from the extreme value time point is one quarter of the period; A value corresponding to the third zero-crossing time point is obtained from the signal fluctuation curve as a DC component.

[0038] It should be noted that the third zero-crossing time point can be obtained by adding or subtracting a quarter of a cycle from the extreme value time point, and the DC component can be obtained by reading the value corresponding to the third zero-crossing time point from the signal fluctuation curve. This solution can calculate the DC component based on a time point within half a cycle, and has the advantages of small calculation amount, fast response and high instantaneity.

[0039] See also Figure 2 As shown, in one embodiment of the present specification, the obtaining of the DC component based on the signal fluctuation curve, the extreme time point, and the cycle includes: Based on the extreme value time point and the period, a first side zero-crossing time point and a second side zero-crossing time point are obtained, both of which are one quarter of a period away from the extreme value time point on both sides of the extreme value point; Acquire a first curve value corresponding to a zero-crossing time point on the first side and a second curve value corresponding to a zero-crossing time point on the second side from the signal fluctuation curve; A DC component is obtained based on the first curve value and the second curve value.

[0040] It can be understood that the DC component can be obtained according to the third zero-crossing time point, but considering that the DC component value obtained through a single point may have a large randomness, in order to comprehensively consider the stability of the DC component value and the requirements for instantaneity in actual application scenarios, it is also possible to add and subtract the extreme time point and the quarter cycle to obtain the first side zero-crossing time point and the second side zero-crossing time point on both sides of the extreme time point, and then obtain the first curve value corresponding to the first side zero-crossing time point and the second curve value corresponding to the second side zero-crossing time point from the signal fluctuation curve, and average the first curve value and the second curve data to obtain the DC component. Although the instantaneousness of this scheme is slightly reduced compared with the above scheme, the time interval between the first side zero-crossing time point and the second side zero-crossing time point is still within half a cycle, so the instantaneousness of the DC component value calculated by this method is still very high, which can well meet the needs of timely discovery and acquisition of DC components.

[0041] It is understandable that, according to the requirements of the actual scene, different weights may be assigned to the first curve value and the second curve data or other data processing techniques may be used to obtain the DC component.

[0042] In one embodiment of the present specification, the obtaining of the DC component based on the signal fluctuation curve, the extreme time point, and the cycle includes: Based on the extreme value time point and the period, a first side zero-crossing time point and a second side zero-crossing time point are obtained, both of which are one quarter of a period away from the extreme value time point. Based on the first side zero-crossing time point and the cycle, a plurality of interval time points are obtained that are equally spaced and whose distances from the first side zero-crossing time point are multiples of half the cycle; or based on the second side zero-crossing time point and the cycle, a plurality of interval time points are obtained that are equally spaced and whose distances from the second side zero-crossing time point are multiples of half the cycle; Obtaining third curve values ​​corresponding to all interval time points from the signal fluctuation curve; Based on all the third curve values, the DC component is obtained.

[0043] It should be noted that in some scenarios, the stability requirements for the DC component detection value may be high, and the requirements for instantaneity may be reduced. In this case, more sampling points can be obtained by lengthening the sampling time to obtain the DC component. The extreme value time point is added and subtracted from a quarter cycle to obtain the zero-crossing time point on the first side and the zero-crossing time point on the second side; then the zero-crossing time point on the first side is added or subtracted by a multiple of half a cycle to obtain multiple interval time points; then the zero-crossing time point on the second side is added or subtracted by a multiple of half a cycle to obtain multiple interval time points; then the third curve values ​​corresponding to the above-mentioned time points are obtained from the signal fluctuation curve, and all the third curve values ​​are averaged to obtain the DC component. Preferably, in the above scheme, when the first zero-crossing time point is added by a multiple of half a cycle, the second zero-crossing time point is subtracted by a multiple of half a cycle, or the opposite operation is performed to avoid a large number of repetitions of the obtained interval time points, so that better results can be obtained. This scheme can significantly reduce the impact of random signal fluctuations on DC component detection results by increasing the amount of data for averaging to obtain the DC component. This scheme can also control the sampling duration and number of sampling points according to the needs of different scenarios, so as to simultaneously meet the requirements of numerical stability and instantaneousness of DC component detection in actual scenarios.

[0044] It is understandable that, according to the needs of the actual scene, different weights can be assigned to the third curve values ​​obtained at the first side zero-crossing time point, the second side zero-crossing time point and each interval time point adopted above, or other data processing techniques can be used to obtain the DC component.

[0045] In one embodiment of the present specification, before the step of calculating the extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point, the method further includes: Obtaining the time interval between the first zero-crossing time point and the second zero-crossing time point; Obtaining the difference between the time interval and one-half period; When the difference is zero, the direct current component is directly output to be zero; when the difference is not zero, subsequent steps are performed.

[0046] It should be noted that in an ideal sine wave or cosine wave AC signal, because the sine wave and cosine wave are symmetrical, each cycle has a positive half cycle and a negative half cycle, and each half cycle is the time length of half a complete cycle, then the time difference between two adjacent zero crossing points is equal to half a cycle; and when there is a DC component in the AC signal, the DC component is the displacement value of the signal fluctuation curve in the vertical axis direction, because the signal fluctuation curve has shifted in the vertical axis direction, the positive half wave and the negative half wave of the signal fluctuation curve will no longer be equal, and the interval between the two zero crossing time points will no longer be equal to half a cycle. Therefore, the time interval between two adjacent zero crossing time points is calculated in this scheme. If the time interval is equal to half a cycle, that is, the signal fluctuation curve has not shifted in the vertical axis direction, the DC component is zero; if the time interval is not equal to half a cycle, subsequent calculations are performed. This step is simple to judge, and if the signal has not shifted, multiple subsequent calculation steps can be omitted, saving computing resources and improving response speed.

[0047] See next Figure 4 , Figure 4 A schematic structural diagram of a DC component acquisition system provided in an embodiment of this specification is shown.

[0048] like Figure 4 As shown, the DC component acquisition system includes: a first acquisition module 401, a second acquisition module 402, a third acquisition module 403, a fourth acquisition module 404, and a fifth acquisition module 405; A first acquisition module 401, acquiring a signal fluctuation curve of a signal to be detected, wherein the signal fluctuation curve is a time current signal fluctuation curve or a time voltage signal fluctuation curve; The second acquisition module 402 acquires the cycle of the signal fluctuation curve change; The third acquisition module 403 collects the time of two adjacent zero-crossing points in the signal fluctuation curve and records them as a first zero-crossing time point and a second zero-crossing time point; A fourth acquisition module 404 calculates an extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point; The fifth acquisition module 405 acquires a DC component based on the signal fluctuation curve, extreme value time point, and period.

[0049] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the broadcast upgrade system embodiment, since it is basically similar to the broadcast upgrade method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the broadcast upgrade method embodiment.

[0050] See also Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0051] like Figure 5 As shown, the electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .

[0052] The communication bus 502 may be used to realize the connection and communication among the above-mentioned components.

[0053] The user interface 503 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0054] The network interface 504 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0055] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts within the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 501 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.

[0056] Among them, the memory 505 may include RAM or ROM. Optionally, the memory 505 includes a non-transitory computer-readable medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be at least one storage device located away from the aforementioned processor 501. The memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and a broadcast upgrade application. The processor 501 may be used to call the broadcast upgrade application stored in the memory 505 and execute the steps of the broadcast upgrade method mentioned in the above-mentioned embodiment.

[0057] The embodiments of this specification also provide a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above-mentioned broadcast upgrade method embodiment. If the component modules of the above-mentioned electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0058] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0059] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0060] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.

Claims

1. A method for obtaining a DC component, characterized in that: include: Acquire a signal fluctuation curve of a signal to be detected, wherein the signal fluctuation curve is a time-current signal fluctuation curve or a time-voltage signal fluctuation curve; Obtaining a period of change in the signal fluctuation curve; Collecting the time of two adjacent zero-crossing points in the signal fluctuation curve, and recording them as a first zero-crossing time point and a second zero-crossing time point; Based on the first zero-crossing time point and the second zero-crossing time point, an extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve is calculated; Based on the signal fluctuation curve, period, and extreme value time point, a DC component is obtained.

2. A DC component acquisition method according to claim 1, characterized in that: The step of calculating the extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point includes: Subtract the first zero-crossing time point from the second zero-crossing time point to obtain the zero-crossing time interval; An extreme value time point is obtained based on the first zero-crossing time point and the zero-crossing time interval or based on the second zero-crossing time point and the zero-crossing time interval.

3. A DC component acquisition method according to claim 1, characterized in that: The step of obtaining the cycle of the signal fluctuation curve change includes: The frequency of the signal to be detected is acquired through a phase-locked loop circuit, and the period of change of the signal fluctuation curve is obtained based on the frequency.

4. A DC component acquisition method according to claim 1, characterized in that: The obtaining of the DC component based on the signal fluctuation curve, the extreme time point, and the cycle includes: Based on the extreme value time point and the period, obtaining a third zero-crossing time point whose distance from the extreme value time point is one quarter of the period; A value corresponding to the third zero-crossing time point is obtained from the signal fluctuation curve as a DC component.

5. A DC component acquisition method according to claim 1, characterized in that: The obtaining of the DC component based on the signal fluctuation curve, the extreme time point, and the cycle includes: Based on the extreme value time point and the period, a first side zero-crossing time point and a second side zero-crossing time point are obtained, both of which are one quarter of a period away from the extreme value time point on both sides of the extreme value point; Acquire a first curve value corresponding to a zero-crossing time point on the first side and a second curve value corresponding to a zero-crossing time point on the second side from the signal fluctuation curve; A DC component is obtained based on the first curve value and the second curve value.

6. A DC component acquisition method according to claim 1, characterized in that: The obtaining of the DC component based on the signal fluctuation curve, the extreme time point, and the cycle includes: Based on the extreme value time point and the period, a first side zero-crossing time point and a second side zero-crossing time point are obtained, both of which are one quarter of a period away from the extreme value time point. Based on the first side zero-crossing time point and the cycle, a plurality of interval time points are obtained that are equally spaced and whose distances from the first side zero-crossing time point are multiples of half the cycle; or based on the second side zero-crossing time point and the cycle, a plurality of interval time points are obtained that are equally spaced and whose distances from the second side zero-crossing time point are multiples of half the cycle; Obtaining third curve values ​​corresponding to all interval time points from the signal fluctuation curve; Based on all the third curve values, the DC component is obtained.

7. A DC component acquisition method according to claim 1, characterized in that: Before the step of calculating the extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point, the method further includes: Obtaining the time interval between the first zero-crossing time point and the second zero-crossing time point; Obtaining the difference between the time interval and one-half period; When the difference is zero, the direct current component is directly output to be zero; when the difference is not zero, subsequent steps are performed.

8. A DC component acquisition system, characterized in that: include: A first acquisition module, a second acquisition module, a third acquisition module, a fourth acquisition module, and a fifth acquisition module; A first acquisition module, which acquires a signal fluctuation curve of a signal to be detected, wherein the signal fluctuation curve is a time-current signal fluctuation curve or a time-voltage signal fluctuation curve; A second acquisition module is used to acquire the period of change of the signal fluctuation curve; A third acquisition module collects the time of two adjacent zero-crossing points in the signal fluctuation curve and records them as a first zero-crossing time point and a second zero-crossing time point; A fourth acquisition module calculates an extreme value time point between the first zero-crossing time point and the second zero-crossing time point on the signal fluctuation curve based on the first zero-crossing time point and the second zero-crossing time point; The fifth acquisition module acquires the DC component based on the signal fluctuation curve, extreme value time point, and period.

9. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.