A method and device for detecting current harmonic signals of low-power optical fiber current transformer

Optimizing the sleep and wake-up mechanism and data transmission method of fiber current transformer through adaptive fuzzy control and sampling rate variation method, solving the problems of high power consumption and large CPU burden in traditional detection methods, and achieving low power consumption and high efficiency Grid current signal harmonic detection.

CN118091239BActive Publication Date: 2024-12-27BEIJING CHENGHE ENERGY CONSULTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410078144.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2024-12-27
Estimated Expiration
2044-01-18

AI Technical Summary

Technical Problem

Traditional fiber current transformers consume a large power in the grid harmonic detection, and the high sampling rate leads to an increased CPU burden, affecting system efficiency.

Method used

Adaptive fuzzy control algorithm is used to establish a sleep and wake-up mechanism and sampling rate variation method, adjust the detection frequency and sampling rate according to seasons, day and night and power consumption distribution, and transmit data through the DMA channel to reduce power consumption.

Benefits of technology

It significantly reduces the power consumption of fiber optic current transformers, improves the efficiency and flexibility of harmonic detection of grid current signals, reduces sampling time and CPU burden, and realizes efficient monitoring and analysis of low power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118091239B_ABST
    Figure CN118091239B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a method and device for detecting current harmonic signals of a low-power fiber optic current transformer, the method comprising: sending a trigger signal to the detection device according to a pre-established sleep and wake-up mechanism to control it to enter a sleep or wake-up state; wherein the sleep and wake-up mechanism causes the detection device to enter a sleep mode when no detection or data transmission is required; upon receiving a detection instruction, the detection device is immediately awakened from the sleep mode; in the awake state, the AD conversion circuit is controlled according to the sampling rate variation method to sample the current harmonic signal output by the current transformer to obtain a sampling signal; the sampling signal is received by a DMA channel and transmitted to an external device interface. The present disclosure reduces the power consumption of the fiber optic current transformer by optimizing the harmonic signal detection method and strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of signal detection, and in particular to a method and device for detecting current harmonic signals of a low-power fiber optic current transformer. Background Art

[0002] As a key component of the power grid system, the line harmonics of the distribution system have a direct and significant impact on the operation of the entire grid system. In addition, it will also cause a certain degree of damage and interference to electrical equipment and communication systems, which may lead to a large amount of power waste and even cause serious power supply accidents, threatening people's lives and property safety.

[0003] In order to achieve the suppression and transformation of power grid harmonics, the first thing to do is to realize the collection and detection of harmonics. Fiber optic current transformer is a current harmonic detection device based on the Faraday effect. The fiber optic current transformer converts the detected current signal into an electrical signal through a photodetector. The traditional sampling method realizes the sampling of current signals with a fixed sampling rate, fixed sampling time, and fixed sampling frequency. The sampling rate is often very large, far exceeding the frequency of the high-order harmonics of the signal. This method has a certain stability, but it is not flexible enough. The high sampling rate will call more instructions, which will bring a great burden to the AD conversion circuit and bring a lot of power consumption. In addition, when receiving and transmitting data, the intervention of the central processing unit (CPU) is required, which increases the workload of the CPU. In addition, the fiber optic current transformer needs to measure the current on the power grid for a long time. All-weather measurement will cause large system power consumption and waste of electricity. Summary of the invention

[0004] The present disclosure provides a low-power fiber optic current transformer current harmonic signal detection method and device, which solves the technical problems that traditional detection methods are not flexible enough and have a large power consumption burden. The present disclosure mainly optimizes the harmonic signal detection method and strategy, reduces the power consumption of the fiber optic current transformer, and thus provides an economical and affordable low-power solution for grid current signal harmonic detection and provides an efficient harmonic signal monitoring and analysis solution for the power engineering field.

[0005] According to a first aspect of the present disclosure, a method for detecting a current harmonic signal of a low-power optical fiber current transformer is provided, comprising:

[0006] Sending a trigger signal to the detection device according to a pre-established sleep and wake-up mechanism to control it to enter a sleep or wake-up state; wherein the sleep and wake-up mechanism enables the detection device to enter a sleep mode when no detection or data transmission is required; and immediately wake up the detection device from the sleep mode when detection is required; wherein the sleep and wake-up mechanism is established based on an adaptive fuzzy control algorithm;

[0007] In the awake state, the AD conversion circuit is controlled according to the sampling rate variation method to sample the current harmonic signal output by the current transformer to obtain a sampling signal;

[0008] The sampling signal is received by using a DMA channel and transmitted to a peripheral interface.

[0009] Optionally, the sleep and wake-up mechanism is established by the following steps:

[0010] Obtain seasonal information, day and night information, and distribution time of electricity usage;

[0011] Establishing fuzzy control variables according to the season information, day and night information and the distribution time of the power usage;

[0012] The wake-up frequency of the current transformer is set according to the fuzzy control variable, so as to establish an adaptive sleep and wake-up mechanism in which the power utilization rate is positively correlated with the wake-up frequency.

[0013] Optionally, the acquiring of season information, day and night information and distribution time of electric energy usage includes:

[0014] Use temperature sensors to sense external temperature changes and obtain seasonal information;

[0015] Use photosensors to sense changes in the brightness of external light and obtain day and night information;

[0016] The distribution of power usage rate in a preset time period is used as prior knowledge to obtain the power consumption and its corresponding date and time.

[0017] Optionally, the method further comprises:

[0018] When the power consumption is greater than the first threshold, increasing the detection frequency of the harmonic current signal;

[0019] When the power consumption is less than the second threshold, reducing the detection frequency of the harmonic current signal;

[0020] The first threshold is greater than the second threshold.

[0021] Optionally, the step of setting the wake-up frequency of the current transformer according to the fuzzy control variable comprises:

[0022] Define that the X-axis represents seasonal variables, the Y-axis represents diurnal variables, and the Z-axis represents the power usage rate in a day, and the values ​​of the X-axis, Y-axis, and Z-axis are all in the interval [0, 1]. The larger the value, the more power is used, which means that the frequency of the optical fiber circuit mutual inductor signal detection needs to be increased;

[0023] Based on the status of the three variable factors X, Y, and Z, multiple groups of sleep and wake-up frequencies are set.

[0024] Optionally, the step of controlling the AD conversion circuit to sample the current harmonic signal output by the current transformer according to the sampling rate variation method to obtain the sampling signal comprises:

[0025] Set each sampling rate variation value and the sampling time corresponding to each sampling rate variation value;

[0026] Set the period T according to each sampling rate variation value and the corresponding sampling time;

[0027] The current harmonic signal is periodically sampled with the period T to obtain a sampling signal.

[0028] Optionally, the setting of each sampling rate variation value includes:

[0029] The sampling rate is divided into n sampling rate variation values ​​which are multiples of 200 Hz, that is, 200 Hz, 400 Hz, 600 Hz, ... 200*nHz, where n is a positive integer.

[0030] Optionally, the step of receiving the sampling signal by using a DMA channel and transmitting the sampling signal to a detection device for detection includes:

[0031] After the AD conversion circuit finishes sampling the current harmonic signal output by the current transformer, receiving the sampled signal by using a DMA channel;

[0032] The sampling signal is received by using a DMA channel, the received sampling signal is stored in a memory, and then directly transmitted from the memory to a peripheral interface by using a DMA mechanism.

[0033] According to a second aspect of the present disclosure, a low-power optical fiber current transformer current harmonic signal detection device is provided, comprising:

[0034] A trigger unit is used to send a trigger signal to the detection device according to a pre-established sleep and wake-up mechanism, so that the detection device enters a sleep mode when no detection or data transmission is required; and wakes up from the sleep mode immediately when detection is required; wherein the sleep and wake-up mechanism is established based on an adaptive fuzzy control algorithm;

[0035] A sampling unit, used for, in the awake state, controlling the AD conversion circuit to sample the current harmonic signal output by the current transformer according to the sampling rate variation method to obtain a sampling signal;

[0036] The transmission unit is used to receive the sampling signal by using the DMA channel and transmit it to the peripheral interface.

[0037] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0038] at least one processor; and

[0039] a memory communicatively connected to the at least one processor; wherein,

[0040] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0041] Compared with the prior art, the above one or more technical solutions disclosed in the present invention have at least the following beneficial effects:

[0042] The present invention optimizes the harmonic signal detection method and strategy, which reduces the energy consumption of the detection device and the power consumption of the optical fiber current transformer compared with the traditional method, thereby providing an economical and low-power solution for the harmonic detection of power grid current signals and an efficient harmonic signal monitoring and analysis solution for the power engineering field; greatly reduces the required sampling time, and at the same time, the low sampling rate will reduce the number of running instructions in the chip; enables the CPU to maintain a low power consumption state during transmission; and adaptively adjusts the detection frequency according to the power consumption, greatly reducing the system power consumption and realizing adaptive detection.

[0043] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:

[0045] Figure 1 A flow chart of a method for detecting current harmonic signals of a low-power optical fiber current transformer according to an embodiment of the present disclosure is shown;

[0046] Figure 2 A sampling method of sampling rate variation under adaptive fuzzy control of a current harmonic signal detection method of a low-power optical fiber current transformer according to an embodiment of the present disclosure is shown;

[0047] Figure 3 The sleep and wake-up mechanism under adaptive fuzzy control of a current harmonic signal detection method of a low-power optical fiber current transformer according to an embodiment of the present disclosure is shown;

[0048] Figure 4 A unit module diagram of a low-power optical fiber current transformer current harmonic signal detection device according to an embodiment of the present disclosure is shown;

[0049] Figure 5 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0051] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0052] In the present disclosure, the optimization is mainly carried out from the harmonic signal detection method and strategy. Specifically, in the signal sampling part of harmonic detection, the sampling rate variation method is used to realize the sampling of current harmonic signals. Combined with the characteristics of current harmonic signals, the current harmonic signals are sampled at a periodically variable sampling rate; in the signal receiving and transmission part, direct memory access (DMA) is used to receive and transmit data; in terms of strategy, the sleep and wake-up mechanism under adaptive fuzzy control is adopted to reduce the power consumption of the optical fiber current transformer.

[0053] Figure 1 FIG. 1 is a flow chart of a method 100 for detecting current harmonic signals of a low-power optical fiber current transformer according to an embodiment of the present disclosure. Figure 1 As shown, the method 100 includes:

[0054] S110: sending a trigger signal to the detection device according to a pre-established sleep and wake-up mechanism to control it to enter a sleep or wake-up state; wherein the sleep and wake-up mechanism enables the detection device to enter a sleep mode when detection or data transmission is not required; and immediately wake up the detection device from the sleep mode when detection is required; wherein the sleep and wake-up mechanism is established based on an adaptive fuzzy control algorithm;

[0055] In this step S110, by flexibly designing the sleep and wake-up mechanism under the adaptive fuzzy control, the system enters the low-power sleep mode when there is no need to measure or transmit data, and quickly wakes up the system from the sleep mode when needed. The sleep and wake-up mechanism not only meets the need of the optical fiber current transformer to measure the current on the power grid for a long time, but also meets the need not to measure all-weather, thereby reducing the power consumption of the optical fiber current transformer.

[0056] S120: In the awake state, the AD conversion circuit is controlled according to the sampling rate variation method to sample the current harmonic signal output by the current transformer to obtain a sampling signal;

[0057] In some embodiments, step S120 specifically includes:

[0058] Set each sampling rate variation value and the sampling time corresponding to each sampling rate variation value;

[0059] Set the period T according to each sampling rate variation value and the corresponding sampling time;

[0060] The current harmonic signal is periodically sampled with the period T to obtain a sampling signal.

[0061] In the above step S120, firstly, each sampling rate variation value is set, then the sampling time corresponding to each sampling rate variation value is set, and finally, a large cycle is set according to each sampling rate variation value and the corresponding sampling time to perform cyclic sampling.

[0062] Further, wherein the setting of each sampling rate variation value includes:

[0063] The sampling rate is divided into n sampling rate variation values ​​which are multiples of 200 Hz, that is, 200 Hz, 400 Hz, 600 Hz, ... 200*nHz, where n is a positive integer.

[0064] The following is an exemplary description:

[0065] Generally, the sampling rate of traditional fiber optic current transformers is above 10kHz. Taking the sampling rate of 10kHz and the sampling time of 30s as an example, the sampling method of sampling rate variation is compared. Based on the characteristics of power grid harmonic current signals, the power grid current harmonics are often integer multiples of the power system power frequency (50Hz). According to the real signal characteristics, several sampling rates with multiples of 200Hz are divided. At the same time, the higher the sampling rate, the lower the sampling time. In this way, the requirements of Nyquist sampling theorem for sampling frequency are met, and the power consumption of AD conversion circuit is reduced.

[0066] Figure 2The present invention shows a sampling method of sampling rate variation under adaptive fuzzy control of a low-power optical fiber current transformer current harmonic signal detection method according to an embodiment of the present invention. Figure 2 As shown in the figure, specifically: the sampling rate is varied into 200Hz, 400Hz, 600Hz, 300Hz, 1kHz...10kHz, where a total of 50 sampling rates are set. In order to achieve accurate Fourier transformation, 100 cycles are collected for each frequency. Therefore, the sampling time is varied into 2s, 1s, 0.7s, 0.5s, 0.4s,...0.04s, and the cumulative sampling period is less than 10s, which greatly reduces the required sampling time. At the same time, the low sampling rate will reduce the number of instructions running in the chip.

[0067] S130: Utilize the DMA channel to receive the sampling signal and transmit it to the peripheral interface.

[0068] In this step S130, the sampling signal is received by using the DMA channel and transmitted to the peripheral interface, and then the signal is processed to obtain the current value of the optical fiber current transformer.

[0069] DMA data transfer: Direct Memory Access (DMA) is a mechanism for data transfer that allows data transfer between peripherals or memory without the intervention of the central processing unit (CPU), which can reduce the workload of the CPU and allow the CPU to enter a sleep or low-power state more often, thereby reducing power consumption. For applications that need to read or write data to peripherals regularly, DMA can also perform these data transfer operations regularly without CPU involvement. This helps to achieve periodic data processing while allowing the CPU to maintain a low power state during transmission.

[0070] In this embodiment, the step of receiving the sampling signal by using a DMA channel and transmitting the sampling signal to a detection device for detection includes:

[0071] After the AD conversion circuit finishes sampling the current harmonic signal output by the current transformer, receiving the sampled signal by using a DMA channel;

[0072] The sampling signal is received by using a DMA channel, the received sampling signal is stored in a memory, and then directly transmitted from the memory to a peripheral interface by using a DMA mechanism.

[0073] According to the embodiments of the present disclosure, the harmonic signal detection method and strategy are optimized, which reduces the energy consumption of the detection device and the power consumption of the optical fiber current transformer compared to the traditional method, thereby providing an economical and low-power solution for grid current signal harmonic detection and an efficient harmonic signal monitoring and analysis solution for the power engineering field.

[0074] Optionally, in some embodiments, the sleep and wake-up mechanism is established by the following steps:

[0075] Obtain seasonal information, day and night information, and distribution time of electricity usage;

[0076] Establishing fuzzy control variables according to the season information, day and night information and the distribution time of the power usage;

[0077] The wake-up frequency of the current transformer is set according to the fuzzy control variable, so as to establish an adaptive sleep and wake-up mechanism in which the power utilization rate is positively correlated with the wake-up frequency.

[0078] Optionally, in some embodiments, the acquiring of season information, day and night information, and electric energy usage distribution time includes:

[0079] Use temperature sensors to sense external temperature changes and obtain seasonal information;

[0080] Use photosensors to sense changes in the brightness of external light and obtain day and night information;

[0081] The power usage rate distribution in the preset time period is used as prior knowledge to obtain the power consumption and its corresponding date and time; in this step, the long-term power usage rate distribution is used as prior knowledge to obtain the date and time with high power consumption.

[0082] In this embodiment, a photosensitive sensor is used to detect daytime and nighttime. Usually, more electricity is consumed at night, so more frequent detection is required. A temperature sensor is used to detect weather and climate temperature. Usually, more electricity is consumed in hot summer and cold winter. At the same time, the long-term distribution of power usage rate is used as prior knowledge to find out the date and time when the power usage is high. Fuzzy control variables are established based on long-term seasonal information, short-term day and night information, and power usage distribution time. The three factors have a comprehensive impact on the wake-up frequency of the current transformer, realizing an adaptive wake-up mechanism in which the power usage rate is positively correlated with the wake-up frequency, thereby reducing the power consumption of the optical fiber current transformer.

[0083] Optionally, in some embodiments, the method further comprises:

[0084] When the power consumption is greater than the first threshold, increasing the detection frequency of the harmonic current signal;

[0085] When the power consumption is less than the second threshold, reducing the detection frequency of the harmonic current signal;

[0086] The first threshold is greater than the second threshold.

[0087] In this embodiment, the optical fiber current transformer detection device is fuzzy controlled by three factors: season information, day and night information, and power usage distribution time. Whenever the power consumption is high, the harmonic current is frequently detected. When the power consumption is low, the detection frequency can be reduced, which greatly reduces the system power consumption and realizes adaptive detection.

[0088] Optionally, in some embodiments, setting the wake-up frequency of the current transformer according to the fuzzy control variable includes:

[0089] Define that the X-axis represents seasonal variables, the Y-axis represents diurnal variables, and the Z-axis represents the power usage rate in a day, and the values ​​of the X-axis, Y-axis, and Z-axis are all in the interval [0, 1]. The larger the value, the more power is used, which means that the frequency of the optical fiber circuit mutual inductor signal detection needs to be increased;

[0090] Based on the status of the three variable factors X, Y, and Z, multiple groups of sleep and wake-up frequencies are set.

[0091] Specifically, Figure 3 The sleep and wake-up mechanism of a low-power fiber optic current transformer current harmonic signal detection method under adaptive fuzzy control is shown. Figure 3 As shown in the figure, the sleep and wake-up mechanism under the adaptive fuzzy control of the present invention, the X-axis represents the seasonal variable, the Y-axis represents the diurnal variable, and the Z-axis represents the power usage rate in a day. The values ​​of the three axes are all in the interval [0, 1], where the larger the value, the more power is used, and the signal detection frequency of the optical fiber circuit mutual inductor is increased. Figure 3 The dotted curve fixed point position (1, 1, 1) inside the middle cube is an example, which represents that this period of time is the time with the highest electricity consumption in the whole year. Therefore, the harmonic signal detection frequency during this period should be increased, the instrument sleep frequency should be reduced, and the instrument wake-up frequency should be increased. From this cube, we can know that when it is in the upper right corner, we need to increase the detection frequency and reduce the sleep time; when it is in the lower left corner, we can reduce the detection frequency and increase the sleep time.

[0092] In this embodiment, when setting the sleep and wake-up mechanism of the instrument, the states of the three variable factors XYZ are used to judge and multiple groups of sleep and wake-up frequencies are set. Under the influence of the three variable factors, the judgment error rate will be greatly reduced, which can effectively reduce power waste.

[0093] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0094] at least one processor; and

[0095] a memory communicatively connected to the at least one processor; wherein,

[0096] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0097] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0098] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.

[0099] Figure 4 FIG. 2 shows a unit module diagram of a low-power optical fiber current transformer current harmonic signal detection device 200 according to an embodiment of the present disclosure. Figure 4 As shown, the device 200 includes:

[0100] A trigger unit 210 is used to send a trigger signal to the detection device according to a pre-established sleep and wake-up mechanism, so that when detection or data transmission is not required, the detection device enters a sleep mode; when detection is required, it is immediately awakened from the sleep mode; wherein the sleep and wake-up mechanism is established based on an adaptive fuzzy control algorithm;

[0101] The sampling unit 220 is used to control the AD conversion circuit to sample the current harmonic signal output by the current transformer according to the sampling rate variation method in the awake state to obtain a sampling signal;

[0102] The transmission unit 230 is used to receive the sampling signal through the DMA channel and transmit it to the detection device for detection to obtain the detection result.

[0103] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0104] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0105] Figure 5A schematic block diagram of an electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0106] The electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM 302 or a computer program loaded from a storage unit 308 into a RAM 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O interface 305 is also connected to the bus 304.

[0107] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0108] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as a low-power fiber-optic current transformer current harmonic signal detection method 100. For example, in some embodiments, the low-power fiber-optic current transformer current harmonic signal detection method 100 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the low-power fiber-optic current transformer current harmonic signal detection method 100 described above may be executed. Alternatively, in other embodiments, the computing unit 301 may be configured to execute a low-power fiber optic current transformer current harmonic signal detection method 100 in any other appropriate manner (for example, by means of firmware).

[0109] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0110] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0111] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0112] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0113] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0114] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0115] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0116] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for detecting current harmonic signals of a low-power optical fiber current transformer, the method comprising: Sending a trigger signal to the current transformer according to a pre-established sleep and wake-up mechanism to control it to enter a sleep or wake-up state; wherein the sleep and wake-up mechanism enables the current transformer to enter a sleep mode when no detection or data transmission is required; and immediately wake up the current transformer from the sleep mode when detection is required; wherein the sleep and wake-up mechanism is established based on an adaptive fuzzy control algorithm; The sleep and wake-up mechanism is established through the following steps: Obtain seasonal information, day and night information, and distribution time of electricity usage; Establishing fuzzy control variables according to the season information, day and night information and the distribution time of the power usage; Setting the wake-up frequency of the current transformer according to the fuzzy control variable, thereby establishing an adaptive sleep and wake-up mechanism in which the power utilization rate is positively correlated with the wake-up frequency; The obtaining of seasonal information, day and night information and distribution time of electric energy usage includes: Use temperature sensors to sense external temperature changes and obtain seasonal information; Use photosensors to sense changes in the brightness of external light and obtain day and night information; The distribution of power usage rate in a preset time period is used as prior knowledge to obtain the power consumption and its corresponding date and time; In the awake state, the AD conversion circuit is controlled according to the sampling rate variation method to sample the current harmonic signal output by the current transformer to obtain a sampling signal; The sampling signal is received by using a DMA channel and transmitted to a peripheral interface.

2. The method according to claim 1, wherein: The method further comprises: When the power consumption is greater than the first threshold, increasing the detection frequency of the harmonic current signal; When the power consumption is less than the second threshold, reducing the detection frequency of the harmonic current signal; The first threshold is greater than the second threshold.

3. The method according to claim 1, wherein: The step of controlling the AD conversion circuit to sample the current harmonic signal output by the current transformer according to the sampling rate variation method to obtain the sampling signal comprises: Set each sampling rate variation value and the sampling time corresponding to each sampling rate variation value; Set the period T according to each sampling rate variation value and the corresponding sampling time; The current harmonic signal is periodically sampled with the period T to obtain a sampling signal.

4. The method according to claim 3, wherein: The setting of each sampling rate variation value includes: The sampling rate is divided into n sampling rate variation values ​​of multiples of 200 Hz, that is, variable sampling rates of 200 Hz, 400 Hz, 600 Hz, ..., 200*nHz, where n is a positive integer.

5. The method according to claim 1, wherein the step of receiving the sampled signal by using a DMA channel and transmitting the sampled signal to a peripheral interface comprises: The sampling signal is received by using a DMA channel, the received sampling signal is stored in a memory, and then directly transmitted from the memory to a peripheral interface by using a DMA mechanism.

6. A low-power optical fiber current transformer current harmonic signal detection device, comprising: A trigger unit, used for sending a trigger signal to the current transformer according to a pre-established sleep and wake-up mechanism, so that the current transformer enters a sleep mode when no detection or data transmission is required; and wakes up from the sleep mode immediately when detection is required; wherein the sleep and wake-up mechanism is established based on an adaptive fuzzy control algorithm; The sleep and wake-up mechanism is established through the following steps: Obtain seasonal information, day and night information, and distribution time of electricity usage; Establishing fuzzy control variables according to the season information, day and night information and the distribution time of the power usage; Setting the wake-up frequency of the current transformer according to the fuzzy control variable, thereby establishing an adaptive sleep and wake-up mechanism in which the power utilization rate is positively correlated with the wake-up frequency; The obtaining of seasonal information, day and night information and distribution time of electric energy usage includes: Use temperature sensors to sense external temperature changes and obtain seasonal information; Use photosensors to sense changes in the brightness of external light and obtain day and night information; The distribution of power usage rate in a preset time period is used as prior knowledge to obtain the power consumption and its corresponding date and time; A sampling unit, used for, in the awake state, controlling the AD conversion circuit to sample the current harmonic signal output by the current transformer according to the sampling rate variation method to obtain a sampling signal; The transmission unit is used to receive the sampling signal by using the DMA channel and transmit it to the peripheral interface.

7. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 5.