CN114143628B - A multi-rate digital acquisition device and method - Google Patents
A multi-rate digital acquisition device and method Download PDFInfo
- Publication number
- CN114143628B CN114143628B CN202111345046.3A CN202111345046A CN114143628B CN 114143628 B CN114143628 B CN 114143628B CN 202111345046 A CN202111345046 A CN 202111345046A CN 114143628 B CN114143628 B CN 114143628B
- Authority
- CN
- China
- Prior art keywords
- data
- sampling
- sending
- plug
- digital
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q9/00—Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R15/00—Details of measuring arrangements of the types provided for in groups G01R17/00 - G01R29/00, G01R33/00 - G01R33/26 or G01R35/00
- G01R15/14—Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks
- G01R15/18—Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks using inductive devices, e.g. transformers
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Power Engineering (AREA)
- Complex Calculations (AREA)
- Emergency Protection Circuit Devices (AREA)
Abstract
本发明公开了一种多速率数字采集装置及方法,属于电力系统自动化领域,本装置包括:多核处理器插件、数据发送插件、电源插件、以及人机接口插件;所述数字信号处理器DSP包括:接收解码模块、数字滤波模块、线性插值模块和合并发送模块;通过接收解码模块根据接入的数字信号采样速率判断采样数据对接收到的采样数据的帧格式进行判断;解析数据帧接收时标,并将采样数据进行分区缓存至缓存器中;通过数字滤波模块对接收解码模块数据缓存区的采样数据进行数字滤波处理,通过线性插值模块对采样品质进行更新,本发明解决了同一台设备输出的数字采样信号速率固定问题,进而对接收数据处理后以不同速率转发、满足不同交互设备对采样速率的不同要求。
The invention discloses a multi-rate digital acquisition device and method, belonging to the field of power system automation. The device includes: a multi-core processor plug-in, a data sending plug-in, a power plug-in, and a human-machine interface plug-in; the digital signal processor DSP includes : Receive decoding module, digital filtering module, linear interpolation module and combined transmission module; judge the frame format of the received sampling data by judging the sampling data according to the accessed digital signal sampling rate through the receiving decoding module; analyze the data frame reception time stamp , and cache the sampled data into partitions in the buffer; perform digital filtering processing on the sampled data in the data buffer area of the receiving decoding module through the digital filtering module, and update the sampling quality through the linear interpolation module. This invention solves the problem of output from the same device. The digital sampling signal rate is fixed, and then the received data is processed and forwarded at different rates to meet the different sampling rate requirements of different interactive devices.
Description
技术领域Technical field
本发明属于电力系统自动化领域,具体涉及一种多速率数字采集装置及方法。The invention belongs to the field of power system automation, and specifically relates to a multi-rate digital acquisition device and method.
背景技术Background technique
智能变电站采用电子式互感器或常规互感器经合并单元将一次电流或电压转换成数字信号,再通过光纤发送至保护、测控等二次设备。合并单元输出的数字采样信号速率固定,不能满足站内不同设备对一次电流或电压不同采样速率的要求。此外,由于合并单元输出的数字采样速率只有4kHz,不能满足其他设备,如电能质量监测终端对一次电流或电压的高速率采集要求。Smart substations use electronic transformers or conventional transformers to convert primary current or voltage into digital signals through a merging unit, and then send them to secondary equipment such as protection and measurement and control through optical fibers. The digital sampling signal output by the merging unit has a fixed rate and cannot meet the requirements of different equipment in the station for different sampling rates of primary current or voltage. In addition, since the digital sampling rate output by the merging unit is only 4kHz, it cannot meet the high-rate collection requirements of primary current or voltage by other equipment, such as power quality monitoring terminals.
随着可再生能源和风力发电技术持续保持高速发展,柔性直流输电技术也得到越来越广泛的应用,直流电子式互感器作为柔性直流电网中的关键设备,要求提供高速率采样、多速率输出的一次电流或电压数字信号。As renewable energy and wind power technology continue to develop at a rapid pace, flexible DC transmission technology has become more and more widely used. As a key device in the flexible DC grid, DC electronic transformers are required to provide high-rate sampling and multi-rate output. primary current or voltage digital signal.
发明内容Contents of the invention
发明目的:为了克服现有技术中的不足,本发明提供一种能够同时输出不同采样速率数字信号的采集方法及装置,满足智能变电站不同设备对一次电流或电压不同采样速率的要求,为柔性直流电网控制保护系统提供高速率采样、多速率输出的一次电流或电压数字信号。Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a collection method and device that can simultaneously output digital signals with different sampling rates to meet the requirements of different equipment in smart substations for different sampling rates of primary current or voltage, and is a flexible DC The network control and protection system provides high-rate sampling and multi-rate output primary current or voltage digital signals.
技术方案:第一方面本发明提供一种多速率数字采集方法,包括如下步骤:Technical solution: In the first aspect, the present invention provides a multi-rate digital acquisition method, which includes the following steps:
接收不同类型的数字信号,根据接收数字信号时配置的采样速率确定其采样数据帧格式,并对通过CRC校验码确认后的数据帧进行解析,得到不同采样速率下的采样数据并存入数据缓存区;Receive different types of digital signals, determine the format of the sampling data frame according to the sampling rate configured when receiving the digital signal, and analyze the data frame confirmed by the CRC check code to obtain sampling data at different sampling rates and store the data cache area;
对数据缓存区的采样数据进行数字滤波处理,过滤高频干扰数据;Perform digital filtering on the sampled data in the data cache area to filter out high-frequency interference data;
读取滤波后采样数据的采样点时标,基于采样点时标对采样数据进行线性插值计算,得到符合发送速率要求的数字采样值,并根据数字采样值更新采样数据;Read the sampling point time scale of the filtered sampling data, perform linear interpolation calculation on the sampling data based on the sampling point time scale, obtain a digital sampling value that meets the transmission rate requirements, and update the sampling data according to the digital sampling value;
获取不同采样速率下采样数据的发送速率参数,基于不同的发送速率参数,对应更新发送缓存区采样数据,并将不同采样速率下的采样数据至发送寄存器,根据发送寄存器状态以对应的发送速率达到时间输出不同采样速率下的采样数据。Obtain the sending rate parameters of sampled data at different sampling rates. Based on the different sending rate parameters, update the sampling data in the sending buffer accordingly, and send the sampling data at different sampling rates to the sending register. According to the status of the sending register, the corresponding sending rate reaches Time output sampling data at different sampling rates.
在进一步的实施例中,在确定采样数据帧格式时:In a further embodiment, when determining the sample data frame format:
根据采样速率判断是否接收到采样数据帧;若未接收到,则认为丢帧,继续接收;Determine whether the sampling data frame is received according to the sampling rate; if not received, it is considered that the frame is lost and continues to receive;
若接收到采样数据帧,则对接收到的采样数据的帧格式进行判断;若判断数据帧格式正确,解析数据帧接收时标,并将此接收时标存入时标缓存区;若判断数据帧格式不正确,继续接收。If a sampling data frame is received, the frame format of the received sampling data is judged; if the data frame format is judged to be correct, the data frame reception time stamp is parsed, and the received time stamp is stored in the time stamp buffer; if the data frame is judged to be in correct format, The frame format is incorrect, continue to receive.
在进一步的实施例中,通过CRC校验码确认后的数据帧进行解析包括:In a further embodiment, parsing the data frame after confirmation by the CRC check code includes:
对接收到的采样数据判断数据帧CRC校验码;Determine the CRC check code of the data frame from the received sampled data;
判断CRC校验码是否正确,若正确则按照数据帧定义格式进行解析,得到不同采样速率下的采样数据并存入数据缓存区;若不正确则复位光纤接收模块,清空采样数据。Determine whether the CRC check code is correct. If it is correct, it will be parsed according to the data frame definition format, and the sampled data at different sampling rates will be obtained and stored in the data buffer area; if it is incorrect, the optical fiber receiving module will be reset and the sampled data will be cleared.
在进一步的实施例中,基于采样点时标对采样数据进行线性插值计算过程如下:In a further embodiment, the linear interpolation calculation process for the sampled data based on the sampling point time scale is as follows:
在时标缓存区内搜索内插的采样点时标;Search the interpolated sampling point time stamp in the time stamp buffer area;
读取数据缓存区内对应时标的采样数据,进而对采样数据进行线性插值计算;Read the sampling data corresponding to the time scale in the data buffer area, and then perform linear interpolation calculation on the sampling data;
若未搜索到内插采样点时标,则将数字采样值清零,并将采样品质置为无效。If the interpolated sampling point time stamp is not found, the digital sampling value is cleared and the sampling quality is set to invalid.
在进一步的实施例中,根据发送寄存器状态以对应的发送速率达到时间输出不同采样速率下的采样数据:In a further embodiment, the sampled data at different sampling rates is output at the corresponding sending rate arrival time according to the sending register status:
若发送寄存器状态正常,则判断数据发送时刻是否到达当前发送速率到达时间,若到达,则发送采样数据,若未到达则不发出采样数据;If the status of the sending register is normal, it is judged whether the data sending time reaches the current sending rate arrival time. If it does, the sampling data is sent. If it does not arrive, the sampling data is not sent;
若发送寄存器状态异常,则复位光纤发送模块;不发出采样数据。If the status of the sending register is abnormal, the optical fiber sending module will be reset; no sampling data will be sent.
第二方面本发明提供一种多速率数字采集装置,包括:多核处理器插件、数据发送插件、电源插件、以及人机接口插件;In a second aspect, the present invention provides a multi-rate digital acquisition device, including: a multi-core processor plug-in, a data sending plug-in, a power plug-in, and a human-machine interface plug-in;
其中,所述多核处理器插件与人机接口插件连接,所述多核处理器插件包括中央处理器CPU和数字信号处理器DSP;所述数字信号处理器DSP包括:接收解码模块、数字滤波模块、线性插值模块和合并发送模块;Wherein, the multi-core processor plug-in is connected to the human-machine interface plug-in, and the multi-core processor plug-in includes a central processing unit CPU and a digital signal processor DSP; the digital signal processor DSP includes: a receiving and decoding module, a digital filtering module, Linear interpolation module and combined sending module;
所述接收解码模块用于接收、判断、解析不同速率下的采样数据并存入数据缓存区;The receiving and decoding module is used to receive, judge, and analyze sampled data at different rates and store it in the data cache;
所述数字滤波模块用于对数据缓存区的采样数据进行数字滤波处理,过滤高频干扰数据;The digital filtering module is used to perform digital filtering processing on the sampled data in the data buffer area and filter high-frequency interference data;
所述线性插值模块用于基于采样点时标对采样数据进行线性插值计算,得到符合发送速率要求的数字采样值,并根据数字采样值更新采样数据;The linear interpolation module is used to perform linear interpolation calculation on the sampling data based on the sampling point time scale, obtain a digital sampling value that meets the transmission rate requirements, and update the sampling data according to the digital sampling value;
所述合并发送模块用于获取采样数据的发送速率参数,基于发送速率参数更新发送缓存区采样数据至发送寄存器,并根据发送寄存器状态以对应的发送速率达到时间输出不同采样速率下的采样数据The combined sending module is used to obtain the sending rate parameter of the sampling data, update the sending buffer sampling data to the sending register based on the sending rate parameter, and output the sampling data at different sampling rates at the corresponding sending rate arrival time according to the sending register status.
所述中央处理器CPU接入后台监控系统,用于管理记录整个装置的运行情况;The central processing unit CPU is connected to the background monitoring system to manage and record the operation of the entire device;
所述数字信号处理器DSP用于通过光纤接收多路不同类型的数字采样信号并对数据进行处理、合并;The digital signal processor DSP is used to receive multiple digital sampling signals of different types through optical fibers and process and combine the data;
所述数据发送插件发送数字信号处理器DSP处理合并后的不同速率数字采样信号;The data sending plug-in sends the combined digital sampling signals of different rates processed by the digital signal processor DSP;
所述人机接口插件用于多核处理器插件的信息输出;The human-machine interface plug-in is used for information output of the multi-core processor plug-in;
所述电源插件通过与之电联的主板供电回路与多核处理器插件、数据发送插件、电源插件、人机接口插件电联;用于为所述多核处理器插件、所述数据发送插件、所述人机接口插件供电。The power plug-in is electrically connected to the multi-core processor plug-in, the data sending plug-in, the power plug-in, and the human-machine interface plug-in through the motherboard power supply circuit that is electrically connected thereto; and is used to provide power for the multi-core processor plug-in, the data sending plug-in, and all The human-machine interface plug-in is powered by the power supply described above.
在进一步的实施例中,所述接收解码模块在缓存器中划分时标缓存区和数据缓存区。In a further embodiment, the receiving and decoding module divides the time stamp buffer area and the data buffer area in the buffer.
在进一步的实施例中,所述数字信号处理器DSP通过I/O总线与数据发送插件连接,由数据发送插件以不同发送速率,发送处理合并后的数字采样信号;所述I/O总线包括:数据总线和CAN总线,并通过I/O总线连接多核处理器插件、数据发送插件与人机接口插件用于数据交互。In a further embodiment, the digital signal processor DSP is connected to the data sending plug-in through an I/O bus, and the data sending plug-in sends and processes the combined digital sampling signal at different sending rates; the I/O bus includes : Data bus and CAN bus, and connects multi-core processor plug-in, data sending plug-in and human-machine interface plug-in through I/O bus for data interaction.
在进一步的实施例中,所述人机接口插件通过外接变电站中的其它输入设备用于向多核处理器插件输入指令或通过输出设备输出多核处理器插件处理后的数据、以及监控后台的监控信息。In a further embodiment, the human-machine interface plug-in is used to input instructions to the multi-core processor plug-in through other input devices in the external substation or output data processed by the multi-core processor plug-in through the output device, as well as monitoring information from the monitoring background. .
有益效果:本发明与现有技术相比具有以下优点:Beneficial effects: Compared with the existing technology, the present invention has the following advantages:
(1)通过接收解码模块、数字滤波模块、线性插值模块和合并发送模块解决了同一台设备输出的数字采样信号速率固定问题,进而将光纤模块接收的采样数据通过多核处理器插件进行计算、处理后,再通过数据发送插件以不同速率转发同时满足不同交互设备对采样速率的不同要求,以及能够为不同设备提供不同采样速率的数字信号。(1) The problem of fixed rate of digital sampling signals output by the same device is solved through the receiving decoding module, digital filtering module, linear interpolation module and combined sending module, and then the sampling data received by the optical fiber module is calculated and processed through the multi-core processor plug-in Afterwards, the data is forwarded at different rates through the data sending plug-in to simultaneously meet the different requirements of different interactive devices for sampling rates, and to provide digital signals with different sampling rates for different devices.
(2)通过人机接口插件外接变电站中的其它输出设备使其高效实时地展示输出采集的数据,或通过输入设备定义控制采集过程。(2) Connect other output devices in the substation through human-machine interface plug-ins to efficiently display the output collected data in real time, or control the collection process through input device definitions.
附图说明Description of the drawings
图1为本发明所述装置的结构示意图;Figure 1 is a schematic structural diagram of the device according to the present invention;
图2为本发明中所述接收解码模块流程图。Figure 2 is a flow chart of the receiving and decoding module in the present invention.
图3为本发明中所述线性插值模块流程图。Figure 3 is a flow chart of the linear interpolation module in the present invention.
图4为本发明中所述合并发送模块流程图。Figure 4 is a flow chart of the combined sending module in the present invention.
具体实施方式Detailed ways
为了更充分理解本发明的技术内容,下面结合具体实施例对本发明的技术方案进一步介绍和说明,但不局限于此。In order to fully understand the technical content of the present invention, the technical solutions of the present invention are further introduced and explained below in conjunction with specific embodiments, but are not limited thereto.
实施例一、结合图1进一步说明本发明提供的一种多速率数字采集装置,包括:多核处理器插件、数据发送插件、电源插件、以及人机接口插件;Embodiment 1. A multi-rate digital acquisition device provided by the present invention is further described with reference to Figure 1, which includes: a multi-core processor plug-in, a data sending plug-in, a power plug-in, and a human-machine interface plug-in;
多核处理器插件与人机接口插件连接,多核处理器插件包括中央处理器CPU和数字信号处理器DSP;数字信号处理器DSP包括:接收解码模块、数字滤波模块、线性插值模块和合并发送模块;The multi-core processor plug-in is connected to the human-machine interface plug-in. The multi-core processor plug-in includes a central processing unit CPU and a digital signal processor DSP; the digital signal processor DSP includes: a receiving and decoding module, a digital filtering module, a linear interpolation module and a combined sending module;
接收解码模块用于接收、判断、解析不同速率下的采样数据并存入数据缓存区;The receiving and decoding module is used to receive, judge, and analyze sampled data at different rates and store it in the data buffer;
数字滤波模块用于对数据缓存区的采样数据进行数字滤波处理,过滤高频干扰数据;The digital filtering module is used to digitally filter the sampled data in the data buffer area and filter high-frequency interference data;
线性插值模块用于基于采样点时标对采样数据进行线性插值计算,得到符合发送速率要求的数字采样值,并根据数字采样值更新采样数据;The linear interpolation module is used to perform linear interpolation calculation on the sampling data based on the sampling point time scale, obtain the digital sampling value that meets the transmission rate requirements, and update the sampling data according to the digital sampling value;
合并发送模块用于获取采样数据的发送速率参数,基于发送速率参数更新发送缓存区采样数据至发送寄存器,并根据发送寄存器状态以对应的发送速率达到时间输出不同采样速率下的采样数据The combined sending module is used to obtain the sending rate parameters of the sampling data, update the sending buffer sampling data to the sending register based on the sending rate parameters, and output the sampling data at different sampling rates at the corresponding sending rate arrival time according to the sending register status.
中央处理器CPU接入后台监控系统,用于管理记录整个装置的运行情况;The central processing unit CPU is connected to the background monitoring system to manage and record the operation of the entire device;
数字信号处理器DSP用于通过光纤接收多路不同类型的数字采样信号并对数据进行处理、合并;The digital signal processor DSP is used to receive multiple different types of digital sampling signals through optical fibers and process and combine the data;
数据发送插件发送数字信号处理器DSP处理合并后的数字采样信号;The data sending plug-in sends the combined digital sample signal processed by the digital signal processor DSP;
人机接口插件用于多核处理器插件的信息输出;The human-machine interface plug-in is used to output information from the multi-core processor plug-in;
电源插件通过与之电联的主板供电回路与多核处理器插件、数据发送插件、电源插件、人机接口插件电联;用于为多核处理器插件、数据发送插件、人机接口插件供电。The power plug-in is electrically connected to the multi-core processor plug-in, the data sending plug-in, the power plug-in, and the human-machine interface plug-in through the power supply circuit of the mainboard; and is used to supply power to the multi-core processor plug-in, the data sending plug-in, and the human-machine interface plug-in.
中央处理器CPU用于现场可编程逻辑门阵列FPGA;数字信号处理器DSP用于高级指令处理。The central processing unit CPU is used for field programmable logic gate array FPGA; the digital signal processor DSP is used for advanced instruction processing.
数字信号处理器DSP通过光纤接收多路数字采样信号并对数据进行处理合并,数字信号处理器DSP包括:接收解码模块、数字滤波模块、线性插值模块和合并发送模块。The digital signal processor DSP receives multiple digital sampling signals through optical fibers and processes and merges the data. The digital signal processor DSP includes: a receiving and decoding module, a digital filtering module, a linear interpolation module and a combining and transmitting module.
其中,接收解码模块通过在缓存器中划分缓存区进行数据分类缓存,包括:时标缓存区和数据缓存区;Among them, the receiving and decoding module performs data classification and caching by dividing buffer areas in the buffer, including: time stamp buffer area and data buffer area;
对接收解码模块数据缓存区的采样数据进行数字滤波,采用二阶低通巴特沃斯滤波器,其z域传递函数为:Digitally filter the sampled data in the data buffer area of the receiving decoding module, using a second-order low-pass Butterworth filter, whose z-domain transfer function is:
H(z)=(b0+b1*z-1+b2*z-2)/(1-a1*z-1-a2*z-2)H(z)=(b 0 +b 1 *z -1 +b 2 *z -2 )/(1-a 1 *z -1 -a 2 *z -2 )
式中,b0、b1、b2、a1、a2分别表示滤波系数;z-1、z-2分别表示离散采样z域变换的复变量,由数字滤波截止频率f0和发送缓存区采样数据速率确定;线性插值模块线性插值函数为一次多项式,在插值节点上的插值误差为零,其几何意义为利用过A点(x0,y0)和B点(x1,y1)的直线f(x)来近似表示原函数 In the formula, b 0 , b 1 , b 2 , a 1 , and a 2 respectively represent filter coefficients; z -1 and z -2 respectively represent the complex variables of discrete sampling z-domain transformation, which are composed of the digital filter cutoff frequency f 0 and the transmit buffer The sampling data rate of the area is determined; the linear interpolation function of the linear interpolation module is a linear polynomial, and the interpolation error on the interpolation node is zero. Its geometric meaning is to use point A (x 0 , y 0 ) and point B (x 1 , y 1 ) to approximate the original function by the straight line f(x)
其中y0、y1分别为x0、x1时刻(x1>x0)对应的采样数据,x为DSP中断时刻。Among them, y 0 and y 1 are the sampling data corresponding to the time of x 0 and x 1 respectively (x 1 > x 0 ), and x is the DSP interrupt time.
线性插值模块流程如图3所示,具体实现方法如下:根据DSP中断时刻x,在时标缓存区内搜索内插采样点时标,即x1和x0,满足x1>x>x0;进一步读取数据缓存区对应的采样数据,即y0和y1;进一步将(x0,y0)和(x1,y1)代入上述一次多项式,计算得到DSP中断时刻x的采样值,即发送速率的数字采样值;若在时标缓存区未搜索到内插采样点时标,则将数字采样值清零,并将采样品质置为无效。The flow of the linear interpolation module is shown in Figure 3. The specific implementation method is as follows: According to the DSP interrupt time x, search the interpolation sampling point time scale in the time scale buffer area, that is, x 1 and x 0 , satisfying x 1 > x > x 0 ; Further read the sampling data corresponding to the data buffer area, that is, y 0 and y 1 ; further substitute (x 0 , y 0 ) and (x 1 , y 1 ) into the above-mentioned linear polynomial to calculate the sampling value of x at the DSP interrupt time , that is, the digital sampling value of the sending rate; if the interpolated sampling point time stamp is not found in the time stamp buffer area, the digital sampling value will be cleared and the sampling quality will be invalid.
合并发送模块根据发送寄存器状态判断是否发送缓存区中的数据。The combined sending module determines whether to send the data in the buffer area based on the status of the sending register.
数字信号处理器DSP通过I/O总线与数据发送插件连接,由数据发送插件发送处理合并后的数字采样信号。The digital signal processor DSP is connected to the data sending plug-in through the I/O bus, and the data sending plug-in sends and processes the combined digital sampling signal.
I/O总线包括:数据总线和CAN总线,并通过I/O总线连接多核处理器插件、数据发送插件用于数据交互。The I/O bus includes: data bus and CAN bus, and is connected to the multi-core processor plug-in and data sending plug-in through the I/O bus for data interaction.
人机接口插件通过外接变电站中的其它输入设备用于向多核处理器插件输入指令或通过输出设备输出多核处理器插件处理后的数据、以及监控后台的监控信息。The human-machine interface plug-in is used to input instructions to the multi-core processor plug-in through other input devices in the external substation or output data processed by the multi-core processor plug-in through output devices, as well as monitoring information from the monitoring background.
实施例二、结合图2至图3进一步说明本实施例提供一种多速率数字采集方法,包括如下步骤:Embodiment 2: This embodiment further explains with reference to Figures 2 to 3 that this embodiment provides a multi-rate digital acquisition method, which includes the following steps:
接收不同类型的数字信号,根据接收数字信号时配置的采样速率确定其采样数据帧格式,并对通过CRC校验码确认后的数据帧进行解析,得到不同采样速率下的采样数据并存入数据缓存区;Receive different types of digital signals, determine the format of the sampling data frame according to the sampling rate configured when receiving the digital signal, and analyze the data frame confirmed by the CRC check code to obtain sampling data at different sampling rates and store the data cache area;
对数据缓存区的采样数据进行数字滤波处理,过滤高频干扰数据;Perform digital filtering on the sampled data in the data cache area to filter out high-frequency interference data;
读取滤波后采样数据的采样点时标,基于采样点时标对采样数据进行线性插值计算,得到符合发送速率要求的数字采样值,并根据数字采样值更新采样数据;Read the sampling point time scale of the filtered sampling data, perform linear interpolation calculation on the sampling data based on the sampling point time scale, obtain a digital sampling value that meets the transmission rate requirements, and update the sampling data according to the digital sampling value;
获取不同采样速率下采样数据的发送速率参数,基于不同的发送速率参数,对应更新发送缓存区采样数据,并将不同采样速率下的采样数据至发送寄存器,根据发送寄存器状态以对应的发送速率达到时间输出不同采样速率下的采样数据。Obtain the sending rate parameters of sampled data at different sampling rates. Based on the different sending rate parameters, update the sampling data in the sending buffer accordingly, and send the sampling data at different sampling rates to the sending register. According to the status of the sending register, the corresponding sending rate reaches Time output sampling data at different sampling rates.
在确定采样数据帧格式时:When determining the sampling data frame format:
根据采样速率判断是否接收到采样数据帧;若未接收到,则认为丢帧,继续接收;Determine whether the sampling data frame is received according to the sampling rate; if not received, it is considered that the frame is lost and continues to receive;
若接收到采样数据帧,则对接收到的采样数据的帧格式进行判断;若判断数据帧格式正确,解析数据帧接收时标,并将此接收时标存入时标缓存区;若判断数据帧格式不正确,继续接收。If a sampling data frame is received, the frame format of the received sampling data is judged; if the data frame format is judged to be correct, the data frame reception time stamp is parsed, and the received time stamp is stored in the time stamp buffer; if the data frame is judged to be in correct format, The frame format is incorrect, continue to receive.
通过CRC校验码确认后的数据帧进行解析包括:The analysis of the data frame confirmed by the CRC check code includes:
对接收到的采样数据判断数据帧CRC校验码;Determine the CRC check code of the data frame from the received sampled data;
判断CRC校验码是否正确,若正确则按照数据帧定义格式进行解析,得到不同采样速率下的采样数据并存入数据缓存区;若不正确则复位光纤接收模块,清空采样数据。Determine whether the CRC check code is correct. If it is correct, it will be parsed according to the data frame definition format, and the sampled data at different sampling rates will be obtained and stored in the data buffer area; if it is incorrect, the optical fiber receiving module will be reset and the sampled data will be cleared.
在进一步的实施例中,基于采样点时标对采样数据进行线性插值计算过程如下:In a further embodiment, the linear interpolation calculation process for the sampled data based on the sampling point time scale is as follows:
在时标缓存区内搜索内插的采样点时标;Search the interpolated sampling point time stamp in the time stamp buffer area;
读取数据缓存区内对应时标的采样数据,进而对采样数据进行线性插值计算;Read the sampling data corresponding to the time scale in the data buffer area, and then perform linear interpolation calculation on the sampling data;
若未搜索到内插采样点时标,则将数字采样值清零,并将采样品质置为无效。If the interpolated sampling point time stamp is not found, the digital sampling value is cleared and the sampling quality is set to invalid.
根据发送寄存器状态以对应的发送速率达到时间输出不同采样速率下的采样数据:According to the status of the transmit register, the sampled data at different sampling rates are output at the corresponding transmission rate arrival time:
若发送寄存器状态正常,则判断数据发送时刻是否到达当前发送速率到达时间,若到达,则发送采样数据,若未到达则不发出采样数据;If the status of the sending register is normal, it is judged whether the data sending time reaches the current sending rate arrival time. If it does, the sampling data is sent. If it does not arrive, the sampling data is not sent;
若发送寄存器状态异常,则复位光纤发送模块;不发出采样数据。If the status of the sending register is abnormal, the optical fiber sending module will be reset; no sampling data will be sent.
本发明通过接收解码模块、数字滤波模块、线性插值模块和合并发送模块解决了同一台设备输出的数字采样信号速率固定问题,进而将光纤模块接收的采样数据通过多核处理器插件进行计算、处理后,再通过数据发送插件以不同速率转发同时满足不同交互设备对采样速率的不同要求,以及能够为不同设备提供不同采样速率的数字信号;通过人机接口插件外接变电站中的其它输出设备使其高效实时地展示输出采集的数据,或通过输入设备定义控制采集过程。The present invention solves the problem of fixed rate of digital sampling signals output by the same device by receiving and decoding modules, digital filtering modules, linear interpolation modules and combined transmission modules, and then calculates and processes the sampling data received by the optical fiber module through the multi-core processor plug-in. , and then forwarded at different rates through the data sending plug-in to meet the different requirements of different interactive devices for sampling rates, and can provide digital signals with different sampling rates for different devices; through the human-machine interface plug-in, it can be connected to other output devices in the substation to make it efficient Display and output collected data in real time, or control the collection process through input device definitions.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。The above are only preferred embodiments of the present invention. It should be noted that those of ordinary skill in the art can also make several improvements and modifications without departing from the technical principles of the present invention. These improvements and modifications It should also be regarded as the protection scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111345046.3A CN114143628B (en) | 2021-11-15 | 2021-11-15 | A multi-rate digital acquisition device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111345046.3A CN114143628B (en) | 2021-11-15 | 2021-11-15 | A multi-rate digital acquisition device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114143628A CN114143628A (en) | 2022-03-04 |
CN114143628B true CN114143628B (en) | 2024-03-15 |
Family
ID=80393264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111345046.3A Active CN114143628B (en) | 2021-11-15 | 2021-11-15 | A multi-rate digital acquisition device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114143628B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5357249A (en) * | 1991-10-21 | 1994-10-18 | Trw Inc. | Apparatus and method for high speed flexible multiplexing for fiber optic data transmissions |
CN102394719A (en) * | 2011-09-21 | 2012-03-28 | 浙江铭道通信技术有限公司 | Multichannel HDLC data processing method based on FPGA |
CN103116096A (en) * | 2013-01-24 | 2013-05-22 | 广东电网公司电力科学研究院 | A Merging Unit for Power Quality Monitoring and Its Synchronous Sampling Method |
CN203773266U (en) * | 2013-12-26 | 2014-08-13 | 国家电网公司 | Digital measurement and control device |
CN104362744A (en) * | 2014-10-24 | 2015-02-18 | 南京南瑞继保工程技术有限公司 | Integrated measurement and control device |
CN105959143A (en) * | 2016-05-18 | 2016-09-21 | 中国电子科技集团公司第四十研究所 | FlexRay bus protocol analysis system and method based on digital fluorescent oscilloscope |
CN108429707A (en) * | 2018-02-05 | 2018-08-21 | 西安电子科技大学 | A time-triggered service forwarder adapting to different transmission rates and its method |
CN110890790A (en) * | 2019-12-09 | 2020-03-17 | 国网上海市电力公司 | Multi-interval integrated digital measurement and control device and main/standby machine switching method thereof |
CN110940855A (en) * | 2019-11-11 | 2020-03-31 | 国网安徽省电力有限公司电力科学研究院 | Electric energy measurement method and device suitable for three-half wiring of intelligent substation |
CN112925230A (en) * | 2019-12-06 | 2021-06-08 | 南京南瑞继保电气有限公司 | Multifunctional analog quantity unified acquisition module for transformer substation |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200133254A1 (en) * | 2018-05-07 | 2020-04-30 | Strong Force Iot Portfolio 2016, Llc | Methods and systems for data collection, learning, and streaming of machine signals for part identification and operating characteristics determination using the industrial internet of things |
-
2021
- 2021-11-15 CN CN202111345046.3A patent/CN114143628B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5357249A (en) * | 1991-10-21 | 1994-10-18 | Trw Inc. | Apparatus and method for high speed flexible multiplexing for fiber optic data transmissions |
CN102394719A (en) * | 2011-09-21 | 2012-03-28 | 浙江铭道通信技术有限公司 | Multichannel HDLC data processing method based on FPGA |
CN103116096A (en) * | 2013-01-24 | 2013-05-22 | 广东电网公司电力科学研究院 | A Merging Unit for Power Quality Monitoring and Its Synchronous Sampling Method |
CN203773266U (en) * | 2013-12-26 | 2014-08-13 | 国家电网公司 | Digital measurement and control device |
CN104362744A (en) * | 2014-10-24 | 2015-02-18 | 南京南瑞继保工程技术有限公司 | Integrated measurement and control device |
CN105959143A (en) * | 2016-05-18 | 2016-09-21 | 中国电子科技集团公司第四十研究所 | FlexRay bus protocol analysis system and method based on digital fluorescent oscilloscope |
CN108429707A (en) * | 2018-02-05 | 2018-08-21 | 西安电子科技大学 | A time-triggered service forwarder adapting to different transmission rates and its method |
CN110940855A (en) * | 2019-11-11 | 2020-03-31 | 国网安徽省电力有限公司电力科学研究院 | Electric energy measurement method and device suitable for three-half wiring of intelligent substation |
CN112925230A (en) * | 2019-12-06 | 2021-06-08 | 南京南瑞继保电气有限公司 | Multifunctional analog quantity unified acquisition module for transformer substation |
CN110890790A (en) * | 2019-12-09 | 2020-03-17 | 国网上海市电力公司 | Multi-interval integrated digital measurement and control device and main/standby machine switching method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN114143628A (en) | 2022-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103575971B (en) | A kind of intelligent substation universal data collection method | |
CN104408009A (en) | System and method for acquiring, processing and verifying method multi-channel interference signal | |
CN108088916A (en) | A kind of method for improving and system of oil dissolved gas online monitoring data quality | |
CN103532243B (en) | A kind of Active Power Filter-APF controls and communication system | |
CN116613895A (en) | Smart grid power data anomaly detection method and system | |
CN114143628B (en) | A multi-rate digital acquisition device and method | |
CN103399914B (en) | Phasor data based on intelligent telecontrol processes system | |
CN102571518B (en) | Electronic transformer data transmission method based on field bus | |
CN114500605A (en) | Industrial Internet of things data transmission method based on 5G and intelligent gateway | |
CN112910086B (en) | A method and system for verifying data of intelligent substation | |
CN114389241A (en) | Relay protection setting value setting method and device for active power distribution network | |
CN114070885A (en) | A kind of multi-type information transmission method suitable for optical fiber network | |
CN104361373A (en) | Collecting and processing method of radio-frequency signals | |
CN116737797B (en) | Bridge online health monitoring system based on high-performance time sequence database | |
CN112015726B (en) | User activity prediction method, system and readable storage medium | |
CN116032996A (en) | Voiceprint data standardized acquisition method and system based on power transformation equipment | |
CN109471060B (en) | Device for monitoring metering accuracy of digital electric energy meter on line | |
CN105067860A (en) | Electronic mutual inductor | |
CN114355062A (en) | Open-phase detection method and device, controller and three-phase power supply system | |
CN204242207U (en) | A kind of Acquire and process system of radiofrequency signal | |
CN117176513B (en) | Internet of things data acquisition gateway equipment based on 5G-R technology | |
CN204203961U (en) | A kind of multichannel undesired signal Acquire and process verification system | |
CN103135538B (en) | Efficient method for collecting data of converter of energy storage power station | |
CN103226620A (en) | State information processing method for SMC modules | |
CN215990215U (en) | Impact load modeling system based on actual measurement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |