[go: up one dir, main page]

CN102571518B - Electronic transformer data transmission method based on field bus - Google Patents

Electronic transformer data transmission method based on field bus Download PDF

Info

Publication number
CN102571518B
CN102571518B CN201110444921.3A CN201110444921A CN102571518B CN 102571518 B CN102571518 B CN 102571518B CN 201110444921 A CN201110444921 A CN 201110444921A CN 102571518 B CN102571518 B CN 102571518B
Authority
CN
China
Prior art keywords
unit module
data
master
score value
difference score
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110444921.3A
Other languages
Chinese (zh)
Other versions
CN102571518A (en
Inventor
陈刚
张守志
劳日智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Yakai Electric Co ltd
Original Assignee
Xian Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN201110444921.3A priority Critical patent/CN102571518B/en
Publication of CN102571518A publication Critical patent/CN102571518A/en
Application granted granted Critical
Publication of CN102571518B publication Critical patent/CN102571518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

本发明公开一种基于现场总线的电子式互感器数据传输方法,包括:基于CAN总线的主从单元连接方法、传输数据编码方法、主从单元数据采样同步方法、时间触发机制的数据传输方法。本发明采用基于反馈自适应量化算法和差分脉冲编码算法实现的数据无损编码。以供电间隔划分的一主多从系统连接方法,在较低的传输速率下保证了三相系统电压、电流交流信号实时采样点数据传输和共享,间隔数量与传输速率无关。各从单元精确跟踪主站数据帧起始时刻,以此实现系统内各单元的同步,在无需硬件同步线情况下,保证了系统级交流信号采样的同步和相位关系。

The invention discloses a data transmission method for an electronic transformer based on a field bus, comprising: a CAN bus-based master-slave unit connection method, a transmission data encoding method, a master-slave unit data sampling synchronization method, and a data transmission method of a time trigger mechanism. The invention adopts data lossless coding realized based on feedback self-adaptive quantization algorithm and differential pulse coding algorithm. The one-master multi-slave system connection method divided by power supply intervals ensures the real-time sampling point data transmission and sharing of three-phase system voltage and current AC signals at a lower transmission rate, and the number of intervals has nothing to do with the transmission rate. Each slave unit accurately tracks the start time of the data frame of the master station to realize the synchronization of each unit in the system, and ensures the synchronization and phase relationship of the system-level AC signal sampling without the need for a hardware synchronization line.

Description

一种基于现场总线的电子式互感器数据传输方法A data transmission method of electronic transformer based on field bus

【技术领域】【Technical field】

本发明涉及一种电子式互感器数据传输方法,特别涉及一种基于现场总线的电子式互感器数据传输方法。The invention relates to an electronic transformer data transmission method, in particular to a field bus-based electronic transformer data transmission method.

【背景技术】【Background technique】

现代电力系统日益向高电压等级、大容量方向发展,其运行的自动化程度不断提高,传统带铁心的电磁式互感器由于自身结构的局限性,越来越不能适应电力系统的要求。The modern power system is increasingly developing towards high voltage level and large capacity, and the degree of automation of its operation is constantly improving. The traditional electromagnetic transformer with iron core is increasingly unable to meet the requirements of the power system due to its own structural limitations.

近年来基于光学和电子学原理的电子式电流/电压互感器(ECT/EVT)具有抗电磁干扰、绝缘性能好、暂态响应范围大、频率响应范围宽、无饱和现象等诸多优点,有望成为传统电磁互感器的理想替代产品、未来输配电系统的新型设备,受到国内外研究人员的普遍重视。In recent years, electronic current/voltage transformers (ECT/EVT) based on the principles of optics and electronics have many advantages such as anti-electromagnetic interference, good insulation performance, large transient response range, wide frequency response range, and no saturation phenomenon. The ideal substitute products for traditional electromagnetic transformers and new equipment for future power transmission and distribution systems have received widespread attention from researchers at home and abroad.

为了推动电子式互感器的实际应用,国际电工委员会制订了IEC60044-7/8,IEC61850-9-1等一系列国际标准。在这些标准中反复涉及到电子式互感器与二次设备的接口组成部分——合并单元(MU,Merging Unit)。In order to promote the practical application of electronic transformers, the International Electrotechnical Commission has formulated a series of international standards such as IEC60044-7/8 and IEC61850-9-1. These standards repeatedly involve the interface component between electronic transformers and secondary equipment - the merging unit (MU, Merging Unit).

目前提出的合并单元是针对数字化输出的电子式互感器而定义的,其主要功能是同步采集三相电流和电压信息,并按照一定的格式汇总输出给二次侧保护测控设备。在IEC61850-9-1中定义的合并单元很大程度上参考了IEC60044-7/8,包括合并单元的同步方法。合并单元与二次保护测控设备的接口是串行单向多路点对点连接。合并单元发送给保护、测控设备的报文内容主要包括了各路电流、电压及其有效性标志,此外还添加了一些反映开关状态的二进制输入信息和时间标签信息。在与二次保护控制设备的通信网络上,采用了目前占主流地位的以太网传输系统。The currently proposed merging unit is defined for electronic transformers with digital output. Its main function is to collect three-phase current and voltage information synchronously, and summarize and output them to the secondary side protection measurement and control equipment according to a certain format. The merging unit defined in IEC61850-9-1 largely refers to IEC60044-7/8, including the synchronization method of the merging unit. The interface between the merging unit and the secondary protection measurement and control equipment is a serial one-way multi-channel point-to-point connection. The content of the message sent by the merging unit to the protection and measurement and control equipment mainly includes the current, voltage and validity flag of each channel, in addition, some binary input information and time label information reflecting the switch state are added. In the communication network with the secondary protection and control equipment, the Ethernet transmission system currently occupying the mainstream position is adopted.

上述基于合并单元的传统传输方法主要存在以下不足:硬件需要同步线来实现各单元数据采集的同步,系统接线复杂、硬件成本高;在一定的信号传输速率下,数据传输效率较低。The above-mentioned traditional transmission method based on the merging unit mainly has the following disadvantages: the hardware needs a synchronization line to realize the synchronization of data acquisition of each unit, the system wiring is complicated, and the hardware cost is high; at a certain signal transmission rate, the data transmission efficiency is low.

【发明内容】【Content of invention】

本发明的目的是提供一种基于现场总线的电子式互感器数据传输方法,在无需硬件同步线的情况下实现了主从单元数据采集同步,降低了系统的成本和接线复杂度,提高了数据传输的效率。The purpose of the present invention is to provide a field bus-based electronic transformer data transmission method, which realizes the synchronization of master-slave unit data acquisition without the need of hardware synchronization lines, reduces system cost and wiring complexity, and improves data transmission. transmission efficiency.

为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种基于现场总线的电子式互感器数据传输方法,包括以下步骤:A fieldbus-based electronic transformer data transmission method, comprising the following steps:

步骤一、基于CAN总线的主从单元连接方法:将一组电子式电压互感器连接在主单元模块MU上,主单元模块MU用于采集电压信号、发送系统同步帧和采样数据;主单元模块MU通过CAN总线与多个从单元模块SU连接,从单元模块SU分布在各个供电间隔并连接至一组电子式电流互感器ECT;Step 1. Master-slave unit connection method based on CAN bus: Connect a group of electronic voltage transformers to the main unit module MU, which is used to collect voltage signals, send system synchronization frames and sample data; the main unit module MU is connected to multiple slave unit modules SU through the CAN bus, and the slave unit modules SU are distributed in each power supply interval and connected to a group of electronic current transformers ECT;

步骤二、传输数据编码方法:Step 2. Transmission data encoding method:

首先,对相邻采样数据x(n)、x(n-1)计算一次差分值x′(n)并判断其是否超过7bit量化,如果未超过,直接发送一次差分值x′(n),并将对数编码标志位和增量编码标志位全部置0;若一次差分值x′(n)超过7bit量化,再计算二次差分值x″(n),判断二次差分值x″(n)是否超过7bit量化,若未超过,发送二次差分值x″(n),对数编码标志位置0,增量编码标志位置1;First, calculate the difference value x'(n) for adjacent sampling data x(n) and x(n-1) and judge whether it exceeds 7bit quantization. If not, send the difference value x'(n) directly once, And set all the logarithmic coding flags and incremental coding flags to 0; if the primary differential value x′(n) exceeds 7bit quantization, then calculate the secondary differential value x″(n), and judge the secondary differential value x″( n) Whether it exceeds 7bit quantization, if not, send the second difference value x"(n), the logarithmic encoding flag position is 0, and the incremental encoding flag position is 1;

其中:第n次采样数据为x(n),第n-1次采样数据为x(n-1),Among them: the nth sampled data is x(n), the n-1th sampled data is x(n-1),

x′(n)为一次差分值,x″(n)为二次差分值:x′(n) is the primary difference value, and x″(n) is the secondary difference value:

            x′(n)=x(n)-x(n-1)                    (1)x′(n)=x(n)-x(n-1) (1)

            x″(n)=x′(n)-x′(n-1)                (2)x″(n)=x′(n)-x′(n-1) (2)

若二次差分值超过7bit量化则采用对数编码方法,即将一次差分值x′(n)、二次差分值x″(n)分别处理粘着位后右移4位;然后再计算判断一次差分值x′(n)是否超过7bit量化,如果没有超过,则编码数据为一次差分值x′(n),对数编码标志位置1、增量编码标志位置0;若一次差分值x′(n)超过7bit量化,再次计算判断二次差分值x″(n)是否超过7bit量化,若未超过,则编码数据为二次差分值x″(n),对数编码标志位、增量编码标志位均置1;若二次差分值x″(n)超过7bit量化则对二次差分值进行溢出处理。If the secondary difference value exceeds 7bit quantization, the logarithmic encoding method is adopted, that is, the primary difference value x'(n) and the secondary difference value x"(n) are respectively processed to sticky bits and then shifted to the right by 4 bits; then calculate and judge the first difference Whether the value x'(n) exceeds 7bit quantization, if not, the encoded data is a primary differential value x'(n), the logarithmic encoding flag position is 1, and the incremental encoding flag position is 0; if the primary differential value x'(n ) exceeds 7bit quantization, calculate again to judge whether the secondary difference value x″(n) exceeds 7bit quantization, if not, the encoded data is the secondary difference value x″(n), logarithmic coding flag, incremental coding flag All bits are set to 1; if the secondary differential value x″(n) exceeds 7bit quantization, overflow processing will be performed on the secondary differential value.

所述一种基于现场总线的电子式互感器数据传输方法还包括以下步骤:Described a kind of electronic transformer data transmission method based on field bus also comprises the following steps:

步骤三:主从单元模块数据采样同步方法:首先主单元模块发送同步帧使主单元模块和各从单元模块第一次采样的时刻相同,即先将主、从单元模块的CAN模块中的验收滤波器设置成只接收同步帧和主单元模块数据帧的形式,并设置成接收中断方式;然后主单元模块发送同步帧,当t0时刻,主、从单元模块接收到同步帧并同时产生接收中断,此时启动A/D转换进行采样,从而实现各单元第一次采样的同步,以后每个传输周期TB都采用上述时间同步方法;其中,同步过程中采用系统虚拟时间,也即以主单元模块中的第一定时计数器的计数值作为各从单元模块同步的时间基准,并按该计数值与各模块机器周期的差异来对各单元模块定时计数器计数值进行校正;Step 3: Master-slave unit module data sampling synchronization method: first, the master unit module sends a synchronization frame to make the first sampling time of the master unit module and each slave unit module the same, that is, first check and accept the CAN module of the master and slave unit modules The filter is set to only receive the synchronous frame and the data frame of the main unit module, and is set to receive the interrupt mode; then the main unit module sends the synchronous frame, and at time t0, the main unit module and the slave unit module receive the synchronous frame and generate a reception interrupt at the same time , start the A/D conversion to sample at this time, so as to realize the synchronization of the first sampling of each unit, and the above-mentioned time synchronization method will be adopted for each transmission cycle TB in the future; among them, the system virtual time is used in the synchronization process, that is, the main unit The count value of the first timing counter in the module is used as the time reference for synchronization of each slave unit module, and the count value of the timing counter of each unit module is corrected according to the difference between the count value and the machine cycle of each module;

本发明进一步的改进在于:所述一种基于现场总线的电子式互感器数据传输方法还包括以下步骤:A further improvement of the present invention is that: the field bus-based electronic transformer data transmission method also includes the following steps:

步骤四:采用时间机制的数据传输方法:首先利用同步采样的定时计数器将10ms的基本发送周期TB分成16个时间片,每个时间片为0.625ms;然后将16个时间片分成四个数据发送窗口:分别为同步帧发送窗口、主单元模块数据发送窗口、从单元模块数据发送窗口、待扩展窗口;Step 4: Data transmission method using a time mechanism: First, use a synchronous sampling timing counter to divide the 10ms basic transmission cycle TB into 16 time slices, each time slice is 0.625ms; then divide the 16 time slices into four data transmissions Window: the synchronization frame sending window, the master unit module data sending window, the slave unit module data sending window, and the window to be expanded;

所述的同步帧发送窗口占用第16时间片,用于帧发送时间和时间同步;The synchronous frame sending window occupies the 16th time slice, which is used for frame sending time and time synchronization;

所述的主单元模块数据发送窗口包含第1-4的时间片,用于发送4个电压互感器EVT的采样数据;The data sending window of the main unit module includes the 1st-4th time slice, which is used to send the sampling data of 4 voltage transformers EVT;

所述的从单元模块数据发送窗口包含第5-11的时间片,用于发送7个电流互感器ECT的采样数据;The data sending window of the slave unit module includes the 5th-11th time slice, which is used to send the sampling data of 7 current transformers ECT;

所述的待扩展窗口包含第12-15共4个时间片,用于传输数据帧的扩展、从单元模块数据帧的发送或从单元模块数据的重发。The window to be extended includes 12th to 15th four time slices, which are used for the extension of the transmission data frame, the sending of the data frame of the slave unit module or the retransmission of the data of the slave unit module.

本发明进一步的改进在于:从单元模块SU数量与变电站供电间隔数相同。The further improvement of the present invention lies in that the number of slave unit modules SU is the same as the number of power supply intervals of the substation.

本发明进一步的改进在于:主单元模块MU与从单元SU、接收端之间是点对点串行通信。The further improvement of the present invention lies in: point-to-point serial communication between the master unit module MU and the slave unit SU and the receiving end.

本发明进一步的改进在于:采用16位整体量化,通过数据无损编码将16位的数据信息压缩为9位传输数据。The further improvement of the present invention lies in: adopting 16-bit overall quantization, and compressing 16-bit data information into 9-bit transmission data through data lossless coding.

本发明进一步的改进在于:对数编码标志位为1表示编码数据经过对数编码压缩,为0表示没有经过对数编码压缩;增量编码标志位为1表示编码数据采用二次差分值,为0表示编码数据采用一般的增量方法。The further improvement of the present invention is that: the logarithmic encoding flag is 1 to indicate that the encoded data has been compressed by logarithmic encoding, and 0 indicates that it has not been compressed by logarithmic encoding; the incremental encoding flag is 1 to indicate that the encoded data adopts a secondary difference value, which is 0 indicates that the encoded data uses the general incremental method.

本发明进一步的改进在于:步骤三中对各单元模块的定时计数器计数值进行校正的方法是:The further improvement of the present invention is: the method for correcting the timing counter count value of each unit module in step 3 is:

主单元模块将它的第一定时计数器的时间计数值NTm1计为NTm1=NT1-NTΔt,其中NT1为10ms对应的计数值,NTΔt为Δt所对应的计数值,Δt为同步帧发送与接收之间的时间间隔;当它产生中断后发送同步帧,同步帧中包含此时主单元模块的第二定时计数器的计数值NTm2;各从单元模块接收到同步帧后,将主单元模块第二定时计数器的计数值NTm2与各从单元模块中的第二定时计数器的计数值NTs2减去Δt对应的计数值NTΔt进行比较,然后利用式(3)和式(4)计算出对应于系统虚拟时间0.625ms、10ms的从单元模块中第一定时计数器和第二定时计数器的计数值,并修改它们各自的计数值为新值NTs1′,NTs2′:The main unit module counts the time count value NT m1 of its first timer counter as NT m1 = NT 1 -NT Δt , where NT 1 is the count value corresponding to 10ms, NT Δt is the count value corresponding to Δt, and Δt is the synchronization The time interval between frame sending and receiving; Send synchronous frame after it produces interruption, the counting value NT m2 of the second timing counter that comprises this moment main unit module in the synchronous frame; After each slave unit module receives the synchronous frame, will The count value NT m2 of the second timing counter of the main unit module is compared with the count value NT s2 of the second timing counter in each slave unit module minus the corresponding count value NT Δt of Δt, then using formula (3) and formula (4 ) Calculate the count values of the first timer counter and the second timer counter in the slave unit module corresponding to the system virtual time 0.625ms, 10ms, and revise their respective count values to new values NT s1 ', NT s2 ':

                 NTs2′NTm2+NTΔt            (3)NT s2 ′NT m2 +NT Δt (3)

                 NTs1′NTs2′/16             (4)NT s1 ′NT s2 ′/16 (4)

式中:NTs1′为从单元模块中的第一定时计数器的计数值;In the formula: NT s1 ' is the count value of the first timing counter in the slave unit module;

NTs2′为从单元模块中的第二定时计数器的计数值;NT s2 ' is the count value of the second timing counter in the slave unit module;

NTΔt为Δt对应的计数值;NT Δt is the count value corresponding to Δt;

NTm2为主单元模块中的第二定时计数器的计数值。NT m2 is the count value of the second timer counter in the main unit module.

本发明进一步的改进在于:各从单元精确跟踪主站数据帧起始时刻,以此实现了系统内各单元数据采样的同步,在无需硬件同步线的情况保证了系统级交流信号采样的同步和相位关系,并在此基础上实现主从单元数据分时与合并传输。The further improvement of the present invention is that each slave unit accurately tracks the start time of the data frame of the master station, thereby realizing the synchronization of data sampling of each unit in the system, and ensuring the synchronization and synchronization of system-level AC signal sampling without the need for a hardware synchronization line. Phase relationship, and on this basis, the time-sharing and combined transmission of master-slave unit data is realized.

本发明一主多从的系统划分,使得系统只需采集一组电压信号,减少了信息采集量,降低了硬件成本。The system division of one master and multiple slaves in the present invention makes the system only need to collect a group of voltage signals, which reduces the amount of information collection and hardware cost.

与现有技术相比,本发明具有以下优点:本发明通过对传输数据进行无损编码,提高了数据传输的效率,以供电间隔划分一主多从的系统连接结构,在较低的传输速率下保证了三相电压、电流交流信号采样点数据传输和共享。Compared with the prior art, the present invention has the following advantages: the present invention improves the efficiency of data transmission by performing lossless encoding on the transmission data, divides the system connection structure of one master and multiple slaves with power supply intervals, and at a lower transmission rate The data transmission and sharing of the sampling points of the three-phase voltage and current AC signals are guaranteed.

由于目前各种微处理器均带有CAN接口,从而可以更方便的获得CAN总线资源;并且CAN总线的传输速率最高可达1Mbps,可以满足一定的底层设备的实时性要求,是本方法的技术方案更容易实现;并且CAN总线也可以使用光纤连接,提高系统抗干扰性和稳定性,具有技术效果表现在以下几个方面:Because various microprocessors all have CAN interface at present, thus can obtain CAN bus resource more conveniently; The solution is easier to implement; and the CAN bus can also be connected by optical fiber, which improves the anti-interference and stability of the system, and has technical effects in the following aspects:

1、采用CAN总线将间隔层各间隔连接,主单元模块对电压信号进行采样并在总线一级实现电压采样数据共享;1. The CAN bus is used to connect the intervals of the interval layer, and the main unit module samples the voltage signal and realizes the voltage sampling data sharing at the bus level;

2、使用传输数据编码方法使得在一定的信号传输率情况下提高了传输数据量,提高了数据传输效率;2. Using the transmission data encoding method increases the amount of transmitted data and improves the efficiency of data transmission under a certain signal transmission rate;

3、使用的同步方法省掉了硬件同步传输线,降低了系统的成本和接线复杂度。3. The synchronization method used saves the hardware synchronization transmission line, which reduces the cost and wiring complexity of the system.

【附图说明】【Description of drawings】

图1为本发明一种基于现场总线的电子式互感器数据传输方法的系统硬件原理图。其中ECT是电流互感器,EVT是电压互感器,n为自然数,n=1、2、3.....。Fig. 1 is a system hardware schematic diagram of a field bus-based electronic transformer data transmission method according to the present invention. Among them, ECT is a current transformer, EVT is a voltage transformer, n is a natural number, n=1, 2, 3.....

图2为本发明一种基于现场总线的电子式互感器数据传输方法的数据编码流程图。其中:x(n)为第n次采样数据;x(n-1)为第n-1次采样数据;x′(n)为一次差分;x″(n)为二次差分;LFlag为对数编码标志位;DFlag为差值增量编码标志位;SendData为编码数据;Fig. 2 is a data encoding flow chart of a field bus-based electronic transformer data transmission method according to the present invention. Among them: x(n) is the nth sampling data; x(n-1) is the n-1th sampling data; x′(n) is the first difference; x″(n) is the second difference; LFlag is the pair Number coding flag; DFlag is difference incremental coding flag; SendData is coded data;

图3为本发明一种基于现场总线的电子式互感器数据传输方法数据编码传输系统虚拟时间轴示意图;其中TB是系统数据发送基本周期为10ms,Ts是采样时间间隔,Δt是同步帧的发送时间,t0、t16是收到同步帧的时刻,t0、t1、t2…t16是各单元模块同步采样时刻,tx是同步帧发送时刻;Fig. 3 is a kind of schematic diagram of the virtual time axis of the electronic transformer data transmission method data transmission system based on the field bus of the present invention; Wherein TB is that the basic cycle of system data transmission is 10ms, Ts is the sampling time interval, Δt is the transmission of the synchronous frame Time, t0, t16 is the time when the synchronization frame is received, t0, t1, t2...t16 is the time of synchronous sampling of each unit module, t x is the time when the synchronization frame is sent;

图4是本发明一种基于现场总线的电子式互感器数据传输方法数据编码传输系统发送窗口划分示意图;Fig. 4 is a schematic diagram of dividing the transmission window of the data encoding transmission system of the electronic transformer data transmission method based on the field bus of the present invention;

图5是本发明一种基于现场总线的电子式互感器数据传输方法数据编码传输系统数据传输示意图。Fig. 5 is a schematic diagram of data transmission in a data encoding transmission system based on a field bus-based electronic transformer data transmission method according to the present invention.

【具体实施方式】【Detailed ways】

下面结合附图和具体实施例对本发明做进一步详细描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明一种基于现场总线的电子式互感器数据传输方法,包括:基于CAN总线的主从单元连接方法、传输数据编码方法、主从单元数据采样同步方法、时间触发机制的数据传输方法;The present invention is a field bus-based electronic transformer data transmission method, comprising: a CAN bus-based master-slave unit connection method, a transmission data encoding method, a master-slave unit data sampling synchronization method, and a data transmission method of a time trigger mechanism;

本实施例针对工频周期32点采样进行;This embodiment is carried out for sampling at 32 points of the power frequency cycle;

一、基于CAN总线的主从单元连接方法:1. Master-slave unit connection method based on CAN bus:

如图1所示,本发明将一组电压互感器EVT连接在主单元模块MU上,各接收端可共享EVT的采集数据,从而减少电子式电压互感器的使用数量。将各间隔的电流互感器连接在从单元模块SU上。主单元模块MU通过CAN总线与各个从单元模块SU连接。主单元模块MU与从单元模块SU、接收单元之间是点对点串行通信。As shown in Figure 1, the present invention connects a group of voltage transformers EVT to the main unit module MU, and each receiving end can share the collected data of the EVT, thereby reducing the number of electronic voltage transformers used. Connect the current transformers of each interval to the slave unit module SU. The master unit module MU is connected to each slave unit module SU through a CAN bus. There is point-to-point serial communication between the master unit module MU, the slave unit module SU, and the receiving unit.

主单元模块MU用于电压数据采集,发送系统同步帧和采样数据。主单元模块MU连接多个从单元模块SU,只能接受自己发送的数据用于产生同步帧的接受中断,从而更好的进行同步。主单元模块MU不能进行监听仲裁发送,只能盲发。各从单元模块SU精确跟随主单元模块MU发送的同步帧帧起始时刻,以此实现系统内各单元的同步,在无需硬件同步线的情况下保证了系统及交流信号采样的同步和相位关系。The main unit module MU is used for voltage data acquisition, sending system synchronization frame and sampling data. The master unit module MU is connected to multiple slave unit modules SU, and can only accept the data sent by itself to generate the reception interrupt of the synchronization frame, so as to perform better synchronization. The main unit module MU cannot perform monitoring arbitration transmission, and can only send blindly. Each slave unit module SU accurately follows the start time of the synchronization frame sent by the master unit module MU, so as to realize the synchronization of each unit in the system, and ensures the synchronization and phase relationship of the system and AC signal sampling without the need for hardware synchronization lines .

二、传输数据编码方法:2. Transmission data encoding method:

为了更有效的利用总线资源我们先将实时采样数据进行数据压缩编码再传输的方法,主要利用反馈自适应量化算法和差分脉冲编码算法实现无损编码。In order to make more effective use of bus resources, we first compress and encode the real-time sampling data and then transmit it. We mainly use the feedback adaptive quantization algorithm and the differential pulse encoding algorithm to achieve lossless encoding.

为满足一般继电保护需要,默认采样系统为每工频周期采样32点,为确保测量精度和保护准确度采用16位整体量化。通过数据编码将16位的数据信息由9位传输数据表示。In order to meet the needs of general relay protection, the default sampling system is 32 points per power frequency cycle, and 16-bit overall quantization is used to ensure measurement accuracy and protection accuracy. The 16-bit data information is represented by 9-bit transmission data through data encoding.

每相传输数据共9位,其传输格式如下:A total of 9 bits of data are transmitted in each phase, and the transmission format is as follows:

其中前两位是标志位,第一位为对数编码标志位用LFlag表示,LFlag位为1表示编码数据经过对数编码压缩,为0表示没有经过对数编码压缩压缩;第二位为增量编码标志位用DFlag表示,DFlag位为1表示编码数据采用二次差值,为0表示编码数据采用一般的增量方法。Among them, the first two bits are flag bits, the first bit is the logarithmic encoding flag bit and is represented by LFlag, the LFlag bit is 1, indicating that the encoded data has been compressed by logarithmic encoding, and 0, indicating that it has not been compressed by logarithmic encoding; the second bit is the increase Quantity encoding flag is expressed by DFlag, DFlag bit is 1, which means that the coded data adopts the second difference value, and is 0, which means that the coded data adopts the general incremental method.

由于CAN总线的数据域是以字节为单位变化的,所以我们将DFlag占用CAN总线的11位识别符中的一位。由于系统中每个模块都需要发送三组数据,所以数据域采用3字节长度,并占有CAN总线的11位识别符中的低三位传输三组数据的LFlag。Since the data domain of the CAN bus changes in units of bytes, we use DFlag to occupy one of the 11-bit identifiers of the CAN bus. Since each module in the system needs to send three sets of data, the data field adopts 3 bytes in length and occupies the lower three bits of the 11-bit identifier of the CAN bus to transmit the LFlag of the three sets of data.

记第n次采样数据为x(n),第n-1次采样数据为x(n-1);Note that the nth sampled data is x(n), and the n-1th sampled data is x(n-1);

x′(n)为一次差分值;x″(n)为二次差分值。x'(n) is the first difference value; x"(n) is the second difference value.

x′(n)=x(n)-x(n-1)        (1)x'(n)=x(n)-x(n-1) (1)

x″(n)=x′(n)-x′(n-1)    (2)x″(n)=x′(n)-x′(n-1) (2)

如图2所示:首先计算一次差分值x′(n)并判断是否超过7bit量化(即是否小于或等于7bit),若未超过,则LFLag、DFlag均置0,发送一次差分值x′(n);若超过则计算二次差分值x″(n)并判断其是否超过7bit量化,若未超过7bit量化,则LFlag置0,DFlag置1,编码数据为二次差分值x″(n)。As shown in Figure 2: first calculate the differential value x'(n) once and judge whether it exceeds 7bit quantization (that is, whether it is less than or equal to 7bit). If not, set LFLag and DFlag to 0, and send the differential value x'( n); if it exceeds, calculate the secondary differential value x"(n) and judge whether it exceeds 7bit quantization, if it does not exceed 7bit quantization, then LFlag is set to 0, DFlag is set to 1, and the encoded data is the secondary differential value x"(n ).

若二次差值超x″(n)过7bit量化,则采用对数编码方法,将一次差分值x′(n)、二次差分值x″(n)均处理粘着位后右移4位。然后再计算判断一次差分x′(n)的值是否超过7bit量化,如果没有超过,则编码数据为一次差分值x′(n),LFlag置1、DFlag置0;若一次差分值x′(n)超过7bit量化,再次计算判断二次差分值x″(n)是够超过7bit量化,若未超过,则编码数据为二次差分值x″(n),LFlag、DFLag均置1;若二次差分值x″(n)超过7bit量化则对二次差分值x″(n)进行溢出处理。If the secondary difference exceeds x″(n) and is quantized by 7 bits, the logarithmic encoding method is used, and the primary difference value x′(n) and the secondary difference value x″(n) are processed with sticky bits and then shifted to the right by 4 bits . Then calculate and judge whether the value of the primary difference x'(n) exceeds 7bit quantization, if not, the encoded data is the primary difference value x'(n), LFlag is set to 1, and DFlag is set to 0; if the primary difference value x'( n) More than 7bit quantization, recalculate and judge that the secondary difference value x"(n) is enough to exceed 7bit quantization, if not, the encoded data is the secondary difference value x"(n), LFlag and DFLag are both set to 1; if If the secondary differential value x"(n) exceeds 7-bit quantization, overflow processing is performed on the secondary differential value x"(n).

本发明传输数据编码处理方法中,利用反馈自适应量化算法和差分脉冲编码算法;自适应量化主要是体现在当传输保护数据是在保护准确度要求的情况下扩大量化单位,减少数据传输量。差分脉冲编码体现在传输的数据都是原始数据的一次差分值和二次差分值,这样不仅可以减少数据量化位数压缩数据而且可以有效滤除直流分量。通过编码算法将16位的数据信息压缩为9位传输数据,其中第一位为对数编码标志位LFlag,表示是否采用对数编码压缩;第二位为增量编码标志位DFLag,表示采用二次差分值还是一般增量,后七位是编码数据,通过对一、二次差分值的量化位数的判断,决定是否采用对数编码,发送一次差分值x′(n)或二次差分值x″(n),达到数据编码的目的。In the transmission data encoding processing method of the present invention, the feedback adaptive quantization algorithm and the differential pulse encoding algorithm are used; the adaptive quantization is mainly reflected in enlarging the quantization unit and reducing the amount of data transmission when the transmission protection data meets the protection accuracy requirements. Differential pulse coding is reflected in the fact that the transmitted data is the primary difference value and the secondary difference value of the original data, which can not only reduce the number of data quantization bits to compress the data but also effectively filter out the DC component. The 16-bit data information is compressed into 9-bit transmission data through the encoding algorithm, and the first bit is the logarithmic encoding flag LFlag, indicating whether to use logarithmic encoding compression; the second bit is the incremental encoding flag DFLag, indicating that the binary encoding is used The secondary differential value is still a general increment, and the last seven bits are encoded data. By judging the quantized digits of the primary and secondary differential values, it is decided whether to use logarithmic encoding to send the primary differential value x′(n) or the secondary differential value The value x"(n) achieves the purpose of data encoding.

三、主从单元数据采样同步方法:3. Master-slave unit data sampling synchronization method:

首先主单元模块发送同步帧使主单元模块和各从单元模块第一次采样的时刻相同。先将主、从单元模块的CAN模块中的验收滤波器设置成只接收同步帧和主单元模块数据帧的形式,并设置成接收中断方式。然后主单元模块发送同步帧,如图3所示,当t0时刻,主、从单元模块接收到同步帧并同时产生接收中断,此时启动A/D转换进行采样。这样就保证了各单元第一次采样的同步。以后每个传输周期TB都采用上述时间同步方法。First, the master unit module sends a synchronization frame to make the first sampling time of the master unit module and each slave unit module the same. First, set the acceptance filter in the CAN module of the master and slave unit modules to only receive synchronous frames and data frames of the master unit module, and set it to receive interrupt mode. Then the master unit module sends a synchronization frame, as shown in Figure 3, at time t0, the master and slave unit modules receive the synchronization frame and generate a reception interrupt at the same time, and start A/D conversion at this time for sampling. This ensures the synchronization of the first sampling of each unit. The above-mentioned time synchronization method will be adopted for each transmission cycle TB in the future.

为了配合采样数据的传输周期TB=10ms我们采取每隔10ms发送一次同步帧。然而这样势必会引起同步误差的加大。为了减少同步误差,我们引入系统虚拟时间的概念(如图3)。系统虚拟时间是系统同步的时间,在这里也就是主单元模块中的第一定时计数器的计数值,各从模块的时间以其作为基准。为了使得各从单元模块的时间与系统虚拟时间一致,需要按主单元模块中的第一定时计数器的计数值和各模块的机器周期的差异来改变各单元模块的定时计数器计数值。In order to cooperate with the transmission period TB=10ms of sampling data, we adopt to send a synchronization frame every 10ms. However, this will inevitably lead to an increase in synchronization error. In order to reduce synchronization errors, we introduce the concept of system virtual time (as shown in Figure 3). The system virtual time is the time of system synchronization, which is the count value of the first timing counter in the master unit module, and the time of each slave module is based on it. In order to make the time of each slave unit module consistent with the system virtual time, it is necessary to change the count value of the timer counter of each unit module according to the difference between the count value of the first timer counter in the master unit module and the machine cycle of each module.

各单元模块的定时计数器的计数值的校正方法如下:The correction method of the count value of the timing counter of each unit module is as follows:

由于10ms/0.625ms=16在两个同步帧之间即10ms内,有16个采样时刻,即16次定时计数器中断。如图3为系统虚拟时间轴,只描述了两个同步帧之间的10ms时间轴。其中Δt为同步帧发送与接收之间的时间间隔,定时计数器计数值可以根据CAN总线波特率和处理器主频算出。Since 10ms/0.625ms=16, there are 16 sampling moments between two synchronous frames, that is, within 10ms, that is, 16 timing counter interruptions. Figure 3 is the system virtual time axis, which only describes the 10ms time axis between two synchronization frames. Among them, Δt is the time interval between sending and receiving the synchronous frame, and the counting value of the timing counter can be calculated according to the CAN bus baud rate and the main frequency of the processor.

在t0时刻,主、从单元模块接收到同步帧,此时启动A/D转换实现同步采样,同时启动主、从单元模块内部的两个定时计数器(包括第一定时计数器和第二定时计数器),第一定时计数器用于定时0.625ms,对应写入的计数值为NT1,第二个定时计数器用于定时10ms,对应写入的计数值为NT2,并设Δt所对应的计数值为NTΔt。到t1时刻,各模块中的第一定时计数器产生中断,从新启动各模块的第一定时计数器并启动A/D转换,重复如此,直到t15时刻启动A/D转换。然后主单元模块将它的第一定时计数器的时间计数值NTm1计为NTm1=NT1-NTΔt,即0.625-Δtms对应的计数值,当它产生中断后发送同步帧,同步帧中包含此时主单元模块的第二定时计数器的计数值NTm2计为10-Δtms对应的计数值。At time t0, the master and slave unit modules receive the synchronous frame, start A/D conversion to realize synchronous sampling, and start two timing counters (including the first timing counter and the second timing counter) inside the master and slave unit modules at the same time , the first timing counter is used for timing 0.625ms, and the corresponding written count value is NT 1 , the second timing counter is used for timing 10ms, and the corresponding written count value is NT 2 , and the corresponding count value of Δt is set to NT Δt . At time t1, the first timer counter in each module generates an interrupt, restarts the first timer counter of each module and starts A/D conversion, and repeats this until A/D conversion is started at time t15. Then the main unit module counts the time count value NT m1 of its first timing counter as NT m1 = NT 1 -NT Δt , which is the count value corresponding to 0.625-Δtms, and sends a synchronization frame when it generates an interrupt, which contains At this time, the count value NT m2 of the second timing counter of the main unit module is counted as the count value corresponding to 10-Δtms.

同步帧格式采用CAN总线含有11位标识符的标准帧格式,其中数据域为8B如下:The synchronous frame format adopts the standard frame format of CAN bus containing 11-bit identifier, and the data field is 8B as follows:

  主单元模块第二定时计数器的计数值NTm2 The count value NT m2 of the second timing counter of the main unit module   将要发送的数据帧个数 The number of data frames to be sent   16bit 16bit   0~7 0~7

各从单元模块接收到同步帧后,将主单元模块第二定时计数器的计数值NTm2然后利用式(3)和式(4)计算出对应于系统虚拟时间0.625ms、10ms的从单元模块中第一定时计数器和第二定时计数器的计数值,并修改他们各自的计数值为新值NTs1′,NTs2′。After each slave unit module receives the synchronization frame, the count value NT m2 of the second timing counter of the master unit module is then calculated by formula (3) and formula (4) in the slave unit module corresponding to the system virtual time 0.625ms and 10ms The count values of the first timer counter and the second timer counter are modified to new values NT s1 ′, NT s2 ′ respectively.

                  NTs2′=NTm2+NTΔt    (3)NT s2 ′=NT m2 +NT Δt (3)

                  NTs1′=NTs2′/16     (4)NT s1 '=NT s2 '/16 (4)

式中:NTs1′为从单元模块中的第一定时计数器的计数值;NTs2′为从单元模块中的第二定时计数器的计数值;NTΔt为Δt对应的计数值;NTm2为主单元模块第二定时计数器的计数值;而主单元模块利用它第一定时计数器的计数值与10ms对应的给定值比较修改Δt的对应值,这样就实现了各单元模块与系统虚拟时间的同步。In the formula: NT s1 ′ is the count value of the first timing counter in the slave unit module; NT s2 ′ is the count value of the second timer counter in the slave unit module; NT Δt is the count value corresponding to Δt; NT m2 is the main The counting value of the second timing counter of the unit module; and the main unit module uses the counting value of its first timing counter and the given value corresponding to 10ms to compare and modify the corresponding value of Δt, thus realizing the synchronization between each unit module and the virtual time of the system .

四、时间触发机制的数据传输方法:4. Data transmission method of time-triggered mechanism:

对于采样数据的传输,本发明系统采用事件触发机制的数据传输方法。每个发送周期TB在一个冲突域内有4帧EVT数据帧由主单元模块发送,7帧ECT数据帧由从单元模块发送,共11帧再加上同步帧一共12帧数据。For the transmission of sampling data, the system of the present invention adopts a data transmission method of an event trigger mechanism. In each sending cycle TB, 4 frames of EVT data frames are sent by the master unit module in a collision domain, and 7 frames of ECT data frames are sent by the slave unit module, a total of 11 frames and a total of 12 frames of data plus synchronization frames.

如图3所示,首先利用同步采样的主单元模块中定时计数器将10ms的基本发送周期TB分成16个时间片,每个时间片为0.625ms。这样可以满足每基本发送周期发送12帧数据的要求,而且还有4个时间片可以扩展发送帧的个数。如图4所示,将16个时间片分成四个数据发送窗口:同步帧发送窗口;主单元模块数据(EVT数据)发送窗口;从单元模块数据(ECT数据)发送窗口;待扩展窗口(图中未表示)。As shown in Figure 3, firstly, the 10ms basic transmission cycle TB is divided into 16 time slices by using the timing counter in the main unit module of synchronous sampling, and each time slice is 0.625ms. This can meet the requirement of sending 12 frames of data per basic sending cycle, and there are 4 time slices to expand the number of sending frames. As shown in Figure 4, 16 time slices are divided into four data sending windows: synchronous frame sending window; main unit module data (EVT data) sending window; slave unit module data (ECT data) sending window; not shown).

1.同步帧发送窗口1. Synchronous frame sending window

本窗口只占用第16时间片,具体的帧发送时间和时间同步方法即为标题三中描述的主从单元数据传输同步方法。This window only occupies the 16th time slice. The specific frame sending time and time synchronization method are the master-slave unit data transmission synchronization method described in Title 3.

2.主单元模块数据(EVT数据)发送窗口2. Main unit module data (EVT data) sending window

本窗口包含第1-4的时间片,用于主单元模块发送4个EVT的采样数据。具体传输方法见图4,在t0时刻主、从单元模块接收到同步帧产生接收中断。在此中断中,主单元模块启动A/D转换采样,启动它的两个定时计数器,同时还要启动发送第一帧数据;而从单元模块只启动A/D转换采样和它的定时计数器,接收主单元模块的发送数据帧,但只记录个数。到各单元模块第一定时计数器产生中断即t1时刻(虽然各单元模块使用各自的定时计数器,但由于使用了上面的同步方法可以认为各模块同时到达t1时刻。),各单元模块重新启动第一定时计数器,启动A/D转换。此时主单元模块发送第二帧数据,从单元模块不发送数据。重复如此,直到第4个时间片,主单元模块发完EVT采样数据。也就是说主单元模块在t0,t1,t2,t3时刻发送数据,而从单元模块不发送数据只记录主单元模块的发送数据帧的个数并与同步帧中收到的主单元模块将要发送的数据帧个数比较。同时各从单元模块都进行采样和定时的操作。This window includes time slices 1-4, which are used for the main unit module to send 4 EVT sampling data. The specific transmission method is shown in Figure 4. At time t0, the master and slave unit modules receive a synchronization frame and generate a reception interrupt. In this interrupt, the main unit module starts A/D conversion sampling, starts its two timing counters, and at the same time starts sending the first frame of data; while the slave unit module only starts A/D conversion sampling and its timing counters, Receive the sending data frame of the main unit module, but only record the number. When the first timing counter of each unit module is interrupted, that is, the t1 moment (although each unit module uses a respective timing counter, it can be considered that each module arrives at the t1 moment at the same time due to the use of the above synchronization method.), each unit module restarts the first Timing counter, start A/D conversion. At this time, the master unit module sends the second frame of data, and the slave unit module does not send data. Repeat this until the 4th time slice, when the main unit module finishes sending the EVT sampling data. That is to say, the master unit module sends data at t0, t1, t2, and t3, while the slave unit module does not send data and only records the number of data frames sent by the master unit module and is about to send with the master unit module received in the synchronization frame. The number of data frames to compare. At the same time, each slave unit module performs sampling and timing operations.

3.从单元模块数据(ECT数据)发送窗口3. Slave unit module data (ECT data) sending window

本窗口包含第5-11的时间片,用于从单元模块发送7个ECT的采样数据。This window includes time slices 5-11, which are used to send 7 ECT sampling data from the unit module.

具体传输方法见图4,在各单元模块第一定时计数器产生t4时刻的定时中断时,重新启动它们的第一定时计数器,启动A/D转换。并且此时记录的主单元模块发送数据帧个数与同步帧中收到的主单元模块将要发送数据帧个数相等,这时从单元模块发送第一帧数据,主单元模块不发送数据。重复如此,直到第11个时间片t10时刻,从单元模块发送ECT采样数据,主单元模块不发送数据。也就是说从单元模块在t4,t5,t6,t7,t8,t9,t10,t11时刻发送数据,而主单元模块不发送数据。但他们都进行采样和定时的操作。The specific transmission method is shown in FIG. 4. When the first timing counter of each unit module generates a timing interrupt at time t4, restart their first timing counters and start A/D conversion. And the number of data frames sent by the main unit module recorded at this time is equal to the number of data frames to be sent by the main unit module received in the synchronization frame. At this time, the slave unit module sends the first frame of data, and the main unit module does not send data. Repeat this until the 11th time slot t10, the slave unit module sends ECT sampling data, and the master unit module does not send data. That is to say, the slave unit module sends data at t4, t5, t6, t7, t8, t9, t10, t11, while the master unit module does not send data. But they all perform sampling and timing operations.

这里需要补充说明的是,从单元模块发送数据时与主单元模块不同采用监听发送方式,并且主单元模块的数据帧优先级高。所以如果出现网络故障如同步时间没有接收到等原因,使得主从单元模块时钟严重不同步,从单元模块依然可以利用自身的定时器完成数据采样和数据发送的任务,而且从单元模块是在记录了主单元模块发送了4个数据帧后发送的这样就不会影响主单元模块的数据发送。但其数据帧发送时间可能推后。What needs to be supplemented here is that when sending data, the slave unit module adopts a monitoring and sending method different from the master unit module, and the data frame priority of the master unit module is high. Therefore, if there is a network failure such as failure to receive the synchronization time, the clocks of the master and slave modules are seriously out of sync, the slave module can still use its own timer to complete the tasks of data sampling and data transmission, and the slave module is recording After the main unit module sends 4 data frames, it will not affect the data transmission of the main unit module. But its data frame sending time may be delayed.

4.待扩展窗口4. The window to be expanded

本窗口包含第12-15共4个时间片,有两个用途:This window contains a total of 4 time slices from 12th to 15th, and has two purposes:

1)用于传输数据帧的扩展。当某模块增加采样传感器后就相应的需要增加传输数据帧,但这种扩展是有限的。1) Extension for transmitting data frames. When a module adds a sampling sensor, it needs to increase the transmission data frame accordingly, but this expansion is limited.

2)由于非周期信号的传输。当从单元模块数据帧发送出现故障情况时,可以用于从单元模块数据帧的发送,或从单元模块数据的重发。2) Due to the transmission of non-periodic signals. When there is a failure in the data frame transmission of the slave unit module, it can be used for the transmission of the data frame of the slave unit module, or the retransmission of the data of the slave unit module.

最后根据主单元模块和从单元模块数据帧发送的时刻接收端可以判断主从单元模块是否同步,从而便于二次设备的应用。Finally, the receiving end can judge whether the master-slave unit modules are synchronized according to the time when the data frames of the master unit module and the slave unit module are sent, so as to facilitate the application of secondary equipment.

Claims (6)

1. a Fieldbus Based electronic mutual inductor data transmission method, is characterized in that, comprises the following steps:
Step one, the master-slave unit method of attachment based on CAN: one group of electronic type voltage transformer is connected on master unit module MU; Master unit module MU is connected to multiple from unit module SU by CAN, each from the corresponding supply cell of unit module SU, is connected to one group of electronic current mutual inductor ECT;
Step 2, transmission data encoding processing method: adopt the data lossless coding based on feedback adaptive quantization algorithm and differential pulse coding algorithm realization:
First, first difference score value x'(n is calculated to neighbouring sample data x (n-1), x (n)) and judge whether it quantizes more than 7bit, if do not exceeded, direct transmission first difference score value x'(n), and logarithm coding maker position and incremental encoding flag bit are all set to 0; If first difference score value x'(n) quantize more than 7bit, calculate second difference score value x again " (n); " whether (n) quantizes more than 7bit to judge second difference score value x, if do not exceed, send second difference score value x " (n); logarithm coding maker position 0, incremental encoding mark position 1;
Wherein: x (n) is n-th sampled data, x (n-1) is (n-1)th sampled data, x'(n) be first difference score value, x " (n) is second difference score value:
x'(n)=x(n)-x(n-1) (1)
x"(n)=x'(n)-x'(n-1) (2)
If second difference score value x " (n) quantizes more than 7bit, adopts logarithm coding method, by first difference score value x'(n), " (n's second difference score value x) moves to right after processing sticky bit respectively 4; And then calculating judges first difference score value x'(n) whether quantize more than 7bit, if do not exceeded, then send first difference score value x'(n), logarithm coding maker position 1, incremental encoding mark position 0; If first difference score value x'(n) quantize more than 7bit, again calculate and judge second difference score value x " whether (n) quantizes more than 7bit; if do not exceed, then send second difference score value x " (n), logarithm coding maker position, incremental encoding flag bit all put 1; If second difference score value x, " (n) quantizes more than 7bit, carries out Overflow handling to second difference score value;
Wherein first is logarithm coding maker position LFlag, represents whether adopt logarithm compression coding; Second is incremental encoding flag bit DFLag, represent and adopt second difference score value or general increment, latter seven is coded data, by the judgement of the quantization digit to first and second difference value, determine whether adopt number encoder, send first difference score value x'(n) or second difference score value x " (n) reaches the object of data encoding.
2. Fieldbus Based electronic mutual inductor data transmission method according to claim 1, is characterized in that, the Fieldbus Based electronic mutual inductor data transmission method of described one is further comprising the steps of:
Step 3, master-slave unit data sampling synchronous method: first master unit module MU transmission synchronization frame makes master unit module with respectively identical from the moment of unit module SU first time sampling, namely first the acceptance fitration in the CAN module of master and slave unit module is arranged to the form receiving only synchronization frame and master unit module data frame, and is configured to receive interrupt mode; Then master unit module sends synchronization frame, when the t0 moment, master and slave unit module receives synchronization frame and produces receive interruption simultaneously, now starts A/D conversion and samples, thus realizing the synchronous of each unit first time sampling, later each transmission cycle TB adopts above-mentioned sampling synchronization method; Wherein, the system virtualization time is adopted in synchronizing process, also namely using the count value of the first timer conter in master unit module MU as each time reference synchronous from unit module SU, and by this count value and the difference of each module machine cycle, each unit module timer conter count value is corrected.
3. Fieldbus Based electronic mutual inductor data transmission method according to claim 2, is characterized in that, the Fieldbus Based electronic mutual inductor data transmission method of described one is further comprising the steps of:
Step 4, adopts the data transmission method of time triggered mechanism: first utilize the timer conter of synchronized sampling that the basic transmission cycle T B of 10ms is divided into 16 timeslices, each timeslice is 0.625ms; Then 16 timeslices are divided into four data transmission windows: be respectively synchronization frame send window, master unit module data send window, from unit module data transmission window, treat extended window;
Described synchronization frame send window takies the 16th timeslice, for frame transmitting time and time synchronized;
Described master unit module data send window comprises the timeslice of 1-4, for sending the sampled data of 4 voltage transformer EVT;
The described timeslice comprising 5-11 from unit module SU data transmission window, for sending the sampled data of 7 current transformer ECT;
Described treats that extended window comprises 12-15 totally 4 timeslices, the expansion for transmitting data frame, the transmission from unit module Frame or the repeating transmission from unit module data.
4. Fieldbus Based electronic mutual inductor data transmission method as claimed in claim 1, is characterized in that, described master unit module MU and from being point-to-point serial communication between unit module SU, receiving terminal.
5. Fieldbus Based electronic mutual inductor data transmission method according to claim 1, is characterized in that, adopts 16 overall quantifications, by data encoding by the data message boil down to 9 of 16 transmission data.
6. Fieldbus Based electronic mutual inductor data transmission method as claimed in claim 2, is characterized in that, in step 3 to the method that the timer conter count value of each unit module corrects is:
Master unit module MU is by the time counting value NT of its first timer conter m1count NT m1=NT 1-NT Δ t, wherein NT 1for the count value that 10ms is corresponding, NT Δ tfor the count value corresponding to Δ t, Δ t is the time interval between synchronization frame sends and receives; When transmission synchronization frame of having no progeny in its generation, in synchronization frame, comprise the count value NT of second timer conter of now master unit module MU m2; After respectively receiving synchronization frame from unit module, by the count value NT of master unit module MU second timer conter m2with each count value NT from the second timer conter unit module SU s2deduct the count value NT that Δ t is corresponding Δ tcompare, then utilize formula (3) and formula (4) to calculate the count value of the first timer conter and the second timer conter from unit module SU corresponding to system virtualization time 0.625ms, 10ms, and revise their respective count values for be newly worth NT s1', NT s2':
NT s2'=NT m2+NT Δt (3)
NT s1'=NT s2'/16 (4)
In formula: NT s1' be count value from the first timer conter unit module SU;
NT s2' be count value from the second timer conter unit module SU;
NT Δ tfor the count value that Δ t is corresponding;
NT m2for the count value of the second timer conter in master unit module MU.
CN201110444921.3A 2011-12-19 2011-12-19 Electronic transformer data transmission method based on field bus Active CN102571518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110444921.3A CN102571518B (en) 2011-12-19 2011-12-19 Electronic transformer data transmission method based on field bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110444921.3A CN102571518B (en) 2011-12-19 2011-12-19 Electronic transformer data transmission method based on field bus

Publications (2)

Publication Number Publication Date
CN102571518A CN102571518A (en) 2012-07-11
CN102571518B true CN102571518B (en) 2015-01-21

Family

ID=46416037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110444921.3A Active CN102571518B (en) 2011-12-19 2011-12-19 Electronic transformer data transmission method based on field bus

Country Status (1)

Country Link
CN (1) CN102571518B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515893B (en) * 2015-11-26 2020-07-28 普华基础软件股份有限公司 Method for determining position of sampling point
KR101968456B1 (en) 2016-01-26 2019-04-11 돌비 레버러토리즈 라이쎈싱 코오포레이션 Adaptive quantization
CN109471425A (en) * 2018-12-14 2019-03-15 上海星融汽车科技有限公司 A method of commercial vehicle OBD mouthfuls of CAN communication stitch baud rate of identification
CN111429711B (en) * 2020-04-01 2021-06-01 深圳盈特创智能科技有限公司 Infrared receiving method and device
CN112202742B (en) * 2020-09-23 2022-01-11 航天云网数据研究院(广东)有限公司 Data processing method of rolling mill equipment based on 5G network and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258062A (en) * 1998-12-21 2000-06-28 凌阳科技股份有限公司 Fast Adaptive Differential Pulse Code Modulation Method for Speech Coding
CN1589017A (en) * 2004-08-06 2005-03-02 联合信源数字音视频技术(北京)有限公司 Quantizing device for low complicated degree integer 4x4 discrete cosine transform and its realizing method
CN101150475A (en) * 2007-10-30 2008-03-26 西安电力机械制造公司 An electronic mutual inductor data transmission method based on CAN bus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9509831D0 (en) * 1995-05-15 1995-07-05 Gerzon Michael A Lossless coding method for waveform data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1258062A (en) * 1998-12-21 2000-06-28 凌阳科技股份有限公司 Fast Adaptive Differential Pulse Code Modulation Method for Speech Coding
CN1589017A (en) * 2004-08-06 2005-03-02 联合信源数字音视频技术(北京)有限公司 Quantizing device for low complicated degree integer 4x4 discrete cosine transform and its realizing method
CN101150475A (en) * 2007-10-30 2008-03-26 西安电力机械制造公司 An electronic mutual inductor data transmission method based on CAN bus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于ADPCM的语音压缩算法研究;廖广锐;《计算机与数字工程》;20070730;第35卷(第7期);正文第40页第二栏 *
电力系统数据压缩的算法研究及通信网络仿真;毕研秋;《工程科技II辑》;20080715(第07期);正文第29-34页, 图3.1, 3.2 *

Also Published As

Publication number Publication date
CN102571518A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102571518B (en) Electronic transformer data transmission method based on field bus
CN100518120C (en) An electronic mutual inductor data transmission method based on CAN bus
CN101841446B (en) Longitudinal channel transmission device, optical fiber differential protection device and method
US20080075019A1 (en) Data Mapping and Sorting Method in Network Communication
CN103575971B (en) A kind of intelligent substation universal data collection method
CN103715766B (en) A kind of looped network decentralized bus protection synchronous method
CN103763085B (en) Method and device for high-speed acquisition and combination of multi-path data
CN108809618A (en) A kind of clock recovery method of 8b10b encoded serial datas
CN112671598B (en) Special algorithm hardware module for electric power suitable for electric power system control protection device
CN113985726A (en) Master-slave controller communication method of APF control system
CN103078401B (en) The system and method for transformer station's time synchronized and sample-synchronous
CN103516423B (en) A kind of method and apparatus zoomed out for fiber bit clock
CN103457596A (en) Time delay compensating circuit and method
CN105955398B (en) A kind of system timing device and time synchronization method based on FPGA
CN113691340B (en) Manchester-code-based ring main unit digital terminal and data transmission method thereof
CN106953809A (en) A kind of device resource acquisition method based on 485 tdm communications
CN101226683A (en) Digital process layer interface processing algorithm
CN105162726A (en) Remote SV data transmission and delay compensation method based on E1 link
CN104218677A (en) Method for synchronizing clocks of power distribution master stations and power distribution terminals
CN115603844A (en) An improved space-borne CAN bus time synchronization network and method
CN103915899A (en) Autonomous networking structure and method for electric power automatic terminals
CN103441509A (en) Reactive power compensation cabinet and control method
CN115173556B (en) Distributed ring main unit power distribution automation device and data synchronous acquisition method
CN201348729Y (en) Intelligent device for collecting, transmitting and controlling data for substation
CN112988631A (en) Data processing method and device based on field programmable gate array

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170307

Address after: 225100 ONKYO Road, Hanjiang District, Jiangsu, Yangzhou, China, No. 18

Patentee after: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Address before: 710049 Xianning Road, Shaanxi, China, No. 28, No.

Patentee before: Xi'an Jiaotong University

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Electronic transformer data transmission method based on field bus

Effective date of registration: 20191115

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2019320000283

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20201120

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2019320000283

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A data transmission method of electronic transformer based on Fieldbus

Effective date of registration: 20201130

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2020980008650

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20211027

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2020980008650

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A data transmission method of electronic transformer based on Fieldbus

Effective date of registration: 20211028

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2021980011474

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220728

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2021980011474

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Fieldbus-Based Electronic Transformer Data Transmission Method

Effective date of registration: 20220729

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2022980011627

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230904

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2022980011627

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Data Transmission Method for Electronic Transformer Based on Fieldbus

Effective date of registration: 20230906

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2023980055356

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2023980055356

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Data Transmission Method for Electronic Transformers Based on Fieldbus

Granted publication date: 20150121

Pledgee: Bank of China Limited by Share Ltd. Yangzhou Weiyang branch

Pledgor: JIANGSU YAKAI ELECTRIC Co.,Ltd.

Registration number: Y2024980023429