[go: up one dir, main page]

CN108667852B - Method for framing and sending SV message by FPGA - Google Patents

Method for framing and sending SV message by FPGA Download PDF

Info

Publication number
CN108667852B
CN108667852B CN201810496312.4A CN201810496312A CN108667852B CN 108667852 B CN108667852 B CN 108667852B CN 201810496312 A CN201810496312 A CN 201810496312A CN 108667852 B CN108667852 B CN 108667852B
Authority
CN
China
Prior art keywords
framing
sending
channel
fpga
messages
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
CN201810496312.4A
Other languages
Chinese (zh)
Other versions
CN108667852A (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.)
Guangzhou Smart Energy Technology Co ltd
Original Assignee
Guangzhou Smart Energy Technology Co ltd
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 Guangzhou Smart Energy Technology Co ltd filed Critical Guangzhou Smart Energy Technology Co ltd
Priority to CN201810496312.4A priority Critical patent/CN108667852B/en
Publication of CN108667852A publication Critical patent/CN108667852A/en
Application granted granted Critical
Publication of CN108667852B publication Critical patent/CN108667852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for framing and sending SV messages by an FPGA (field programmable gate array), which comprises the following steps of: 1) receiving configuration information issued by software; 2) selecting a sending channel and carrying out operation; 3) framing SV messages; 4) sending SV messages; the channel unit, the multiplier unit, the divisor unit, the sampling threshold value unit, the quality unit and the SV frame header unit are configuration information which is issued to an FPGA internal storage unit by software. According to the method for realizing SV message framing and sending by the FPGA, the SV framing, the threshold value comparison, the quality bit acquisition and the multiplication and division operation from the secondary value to the primary value are realized by the FPGA method, and compared with a CPU, the efficiency is higher; the framing form is flexible, and SV framing can be performed on analog quantity data acquired by AD by selecting any channel.

Description

Method for framing and sending SV message by FPGA
Technical Field
The invention relates to the technical field of power systems, in particular to a method for framing and sending SV messages by an FPGA.
Background
At present, the IEC61850 standard proposes the concept of substation automation system function layering. Dividing the transformer substation equipment into three layers according to functions: namely a process layer, a spacer layer, and a station control layer.
The process layer mainly has the functions of converting the alternating current analog quantity, the direct current analog quantity and the state quantity into digital signals on site and providing the digital signals to an upper layer, and receiving and executing a control command issued by the upper layer. The process layer devices include primary devices and their intelligent components.
The main function of the spacing layer is to collect the signal of the spacing primary equipment, control and operate the primary equipment, upload the related information to the station control layer equipment and receive the command of the station control layer equipment. The spacer layer equipment consists of control, protection and monitoring devices for each spacer.
The station control layer has the main functions of monitoring and controlling the primary and secondary devices of the whole station and communicating with a remote control center. The station control layer equipment comprises a monitoring host, a telecontrol workstation, an operation workstation, a time synchronization system and the like.
Sv (sampled value) messages also use a publisher/subscriber communication structure. SV messages are a time-driven communication method, i.e. sampled values are sent every fixed time. The most important transmission requirements are real-time performance and rapidity. When the message transmission is lost due to network reasons, the publisher (current and voltage sensor) is not critical, and the latest current and voltage information should be collected continuously. And the subscriber (e.g., the protection device) must be able to detect it. This can be solved by the sample counter parameter SmpCnt in the SV message.
In the prior art, the SV message is packaged by utilizing the stronger computing capability of a CPU, the sending time is appointed for the SV message, the SV message is sent to a sending buffer area of an FPGA, the FPGA periodically inquires whether the sending buffer area has the message or not, if the message exists, the sending time of the message is analyzed, the sending time is compared with the time of a high-precision timer in the FPGA, and the SV message is sent out at the sending time point of the SV message. The calculation and the package of SV messages are completed by a CPU, and the FPGA is only responsible for the timed sending of SV messages.
In the prior art, the acquired value is required to be sent to a CPU firstly, then the CPU processes the acquired value to acquire quality information, performs multiplication and division operation from a secondary value to a primary value, then packages the acquired value into an SV message and appoints sending time, so that the processing process causes overlong delay and increases the processing time of the CPU, and the message sending time needs to be repeatedly corrected so as to achieve the maximum and minimum delay and accurate sending.
Therefore, it is necessary to provide a method for framing and transmitting SV messages by an FPGA to solve the above technical problems.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method for realizing SV message framing and sending by an FPGA (field programmable gate array). the method of the FPGA is adopted to realize SV framing, threshold value comparison, quality bit acquisition and multiplication and division operation from a secondary value to a primary value, and the efficiency is higher compared with a CPU (central processing unit); the group packing form is flexible, and SV frame packing can be carried out on analog quantity data acquired by AD by selecting any channel.
In order to solve the above technical problems, one technical solution adopted by the present invention is to provide a method for framing and sending SV messages by an FPGA, comprising the steps of:
1) receiving configuration information issued by software:
receiving channel selection of collected data;
receiving a multiplier of multiplication operation to be carried out by a corresponding channel;
receiving a divisor of division operation to be performed by a corresponding channel;
receiving a sampling threshold value of a corresponding channel;
receiving quality of a corresponding channel;
receiving an SV message header;
AD acquisition analog quantity data based on the FPGA;
2) selecting a sending channel and calculating:
comparing the analog quantity data with a corresponding sampling threshold value to obtain invalid bit information of a quality domain;
performing multiplication and division operation on the selected channel according to the channel selection information;
performing quality domain correction on the selected channel according to the channel selection information;
3) framing SV messages:
framing an SV message header, a channel multiplication and division result and a quality domain correction result;
adding a destination address, a source address and a check domain;
updating a sampling count value and sampling synchronization domain information at each group of SV frame time sequence;
4) and (3) sending SV messages:
and sending SV messages through the Ethernet.
Preferably, in the step 3), the group SV frames are performed at a frequency of 4KHz per second, the count value at the head of a second is 0, and the count range is 0 to 3999.
Preferably, the receiving of the configuration information in step 1) can be configured or modified only under the condition that SV message transmission is not enabled.
The invention has the beneficial effects that: according to the method for realizing SV message framing and sending by the FPGA, the SV framing, the threshold value comparison, the quality bit acquisition and the multiplication and division operation from the secondary value to the primary value are realized by the FPGA method, and the efficiency is higher compared with a CPU; the framing form is flexible, and SV framing can be performed on analog quantity data acquired by AD by selecting any channel.
Drawings
Fig. 1 is a schematic flowchart of a method for framing and transmitting SV messages by an FPGA according to a first preferred embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a first preferred embodiment of a method for framing and sending SV messages by an FPGA according to the present invention.
Detailed Description
The technical solution of the present invention will be described in detail with reference to the drawings.
Referring to fig. 1 and fig. 2, the method for framing and sending SV messages by an FPGA of this embodiment includes the steps of:
1) receiving configuration information 212 issued by software:
receiving a channel selection of the collected data (channel unit 21);
a multiplier (multiplier unit 22) for receiving a multiplication operation to be performed by the corresponding channel;
receiving a divisor to be subjected to division operation of a corresponding channel (divisor unit 23);
receiving a sampling threshold value (threshold value unit 25) of a corresponding channel;
receiving the quality of the corresponding channel (quality unit 26);
receiving an SV packet header (SV frame header unit 24);
AD acquisition analog quantity data based on the FPGA (AD acquisition analog quantity data 213);
2) the transmit channel 27 is selected and operated on:
comparing the analog quantity data with a corresponding sampling threshold value by a threshold value 28 to obtain invalid bit information of a quality domain;
performing a multiply-divide operation (converting the quadratic value into a primary value 29) on the selected channel according to the channel selection information;
performing quality domain correction 210 on the selected channel according to the channel selection information;
3) SV message framing 211:
framing an SV message header, a channel multiplication and division result and a quality domain correction result;
adding a destination address, a source address and a check domain;
updating a sampling count value and sampling synchronization domain information at each group of SV frame time sequence;
4) sending SV message 215:
sending SV message through Ethernet;
the channel unit 21, the multiplier unit 22, the divisor unit 23, the sampling threshold unit 25, the quality unit 26, and the SV frame header unit 24 are configuration information that is issued by software to an internal storage unit of the FPGA.
In this embodiment, the analog data 213 acquired by the AD is acquired by the FPGA instead of being issued by software, which has the advantage that the AD acquired data is directly subjected to SV framing transmission by hardware without passing through a software layer, thereby improving the data transmission efficiency.
According to the method for realizing SV message framing and sending by the FPGA, the SV message framing, the threshold value comparison, the quality bit acquisition and the multiplication and division operation from the secondary value to the primary value are realized by utilizing the FPGA chip, and compared with the SV message framing and sending by using a traditional CPU chip, the efficiency is higher; and the framing form is more flexible, and SV message framing can be carried out on analog quantity data acquired by AD by selecting channels at will.
In this embodiment, the framing format is shown in the following table:
Figure GDA0002814425160000051
in a preferred embodiment of the present invention, in the step 3), the group SV frames are performed at a frequency of 4KHz per second, and the count value at the head of second is 0, and the count range is 0 to 3999. Of course, the specific value of the frequency in this embodiment is not limited to 4KHz, and the specific value is selected according to the design requirement, which is not limited thereto.
In an embodiment of the present invention, preferably, the receiving of the configuration information in step 1) can be configured or modified only without enabling SV message transmission.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures made by using the contents of the specification and the drawings of the present invention or directly or indirectly applied to other related technical fields are included in the scope of the present invention.

Claims (3)

1. A method for realizing SV message framing and sending by FPGA is characterized in that: the method comprises the following steps:
1) receiving configuration information issued by software:
receiving channel selection of collected data;
receiving a multiplier of multiplication operation to be carried out by a corresponding channel;
receiving a divisor of division operation to be performed by a corresponding channel;
receiving a sampling threshold value of a corresponding channel;
receiving quality of a corresponding channel;
receiving an SV message header;
AD acquisition analog quantity data based on the FPGA;
2) selecting a sending channel and calculating:
comparing the analog quantity data with a corresponding sampling threshold value to obtain invalid bit information of a quality domain;
performing multiplication and division operation on the selected channel according to the channel selection information;
performing quality domain correction on the selected channel according to the channel selection information;
3) framing SV messages:
framing an SV message header, a channel multiplication and division result and a quality domain correction result;
adding a destination address, a source address and a check domain;
updating a sampling count value and sampling synchronization domain information at each group of SV frame time sequence;
4) and (3) sending SV messages:
and sending SV messages through the Ethernet.
2. The method for framing and transmitting SV messages by FPGA according to claim 1, wherein the method comprises the following steps: in the step 3), the SV frame group is carried out at the frequency of 4KHz per second, the counting value at the second head is 0, and the counting range is 0-3999.
3. The method for framing and transmitting SV messages by FPGA according to claim 1, wherein the method comprises the following steps: the reception of the configuration information of step 1) can only be configured or modified without enabling SV message transmission.
CN201810496312.4A 2018-05-22 2018-05-22 Method for framing and sending SV message by FPGA Active CN108667852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810496312.4A CN108667852B (en) 2018-05-22 2018-05-22 Method for framing and sending SV message by FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810496312.4A CN108667852B (en) 2018-05-22 2018-05-22 Method for framing and sending SV message by FPGA

Publications (2)

Publication Number Publication Date
CN108667852A CN108667852A (en) 2018-10-16
CN108667852B true CN108667852B (en) 2021-02-12

Family

ID=63777575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810496312.4A Active CN108667852B (en) 2018-05-22 2018-05-22 Method for framing and sending SV message by FPGA

Country Status (1)

Country Link
CN (1) CN108667852B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231568A (en) * 2011-07-05 2011-11-02 国电南瑞科技股份有限公司 Multifunctional intelligent data collecting device
CN103037032A (en) * 2012-12-20 2013-04-10 北京四方继保自动化股份有限公司 Method using field programmable gate array (FPGA) to achieve 32-bit-addressing of SV data
CN103616591A (en) * 2013-11-27 2014-03-05 国家电网公司 A simulation device and simulation method for the characteristics of a smart substation merging unit
CN104994034A (en) * 2015-06-30 2015-10-21 许继集团有限公司 Merging unit point-to-point SV message receiving-sending method
CN106302460A (en) * 2016-08-16 2017-01-04 许继集团有限公司 Process layer point-to-point SV sending method and system
CN106789434A (en) * 2016-12-29 2017-05-31 国网浙江省电力公司绍兴供电公司 A kind of sampled data bag transmission delay measurement method and system
CN106961396A (en) * 2017-03-21 2017-07-18 中国南方电网有限责任公司电网技术研究中心 Method and device for realizing SV message processing based on FPGA on-chip cache
CN107800590A (en) * 2017-10-31 2018-03-13 南方电网科学研究院有限责任公司 Transmission equipment delay monitoring method and device and switch transmission delay monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7928791B1 (en) * 2009-11-23 2011-04-19 Texas Memory Systems, Inc. Method and apparatus for clock calibration in a clocked digital device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231568A (en) * 2011-07-05 2011-11-02 国电南瑞科技股份有限公司 Multifunctional intelligent data collecting device
CN103037032A (en) * 2012-12-20 2013-04-10 北京四方继保自动化股份有限公司 Method using field programmable gate array (FPGA) to achieve 32-bit-addressing of SV data
CN103616591A (en) * 2013-11-27 2014-03-05 国家电网公司 A simulation device and simulation method for the characteristics of a smart substation merging unit
CN104994034A (en) * 2015-06-30 2015-10-21 许继集团有限公司 Merging unit point-to-point SV message receiving-sending method
CN106302460A (en) * 2016-08-16 2017-01-04 许继集团有限公司 Process layer point-to-point SV sending method and system
CN106789434A (en) * 2016-12-29 2017-05-31 国网浙江省电力公司绍兴供电公司 A kind of sampled data bag transmission delay measurement method and system
CN106961396A (en) * 2017-03-21 2017-07-18 中国南方电网有限责任公司电网技术研究中心 Method and device for realizing SV message processing based on FPGA on-chip cache
CN107800590A (en) * 2017-10-31 2018-03-13 南方电网科学研究院有限责任公司 Transmission equipment delay monitoring method and device and switch transmission delay monitoring system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
新一代智能变电站SV直采和GOOSE共口传输方案研究;李宝伟等;《电力系统保护与控制》;20140101;全文 *

Also Published As

Publication number Publication date
CN108667852A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN103414547B (en) A kind of main website controls method, main website and the system of many slave stations
US9065763B2 (en) Transmission of data over a low-bandwidth communication channel
CN103763085B (en) Method and device for high-speed acquisition and combination of multi-path data
CN111262796A (en) Ethernet communication system and method based on time sensitivity
CN105530697A (en) A method for supporting industrial Internet of Things business time synchronization
CN106230541B (en) A kind of Site synch system and method for Industrial Ethernet
CN110191032B (en) Method for accessing non-standard real-time Ethernet to time-sensitive network
CA2833465A1 (en) Synchronization control system
CN104168582A (en) Micro cell base station system, related equipment and data processing method
CN104202131A (en) Method for improving transmission real-time of sample data in electric power distribution network system
CN103178987A (en) Digital transformer substation distribution testing method based on ZigBee wireless technology
CN104202328B (en) A kind of method, configuration module and the subscription end of subscription GOOSE/SMV messages
CN103152136A (en) Method for receiving multipath IEC61850-9-2 sampling value in real time by using programmable logic device
CN108667852B (en) Method for framing and sending SV message by FPGA
CN116781797A (en) Protocol message conversion method and equipment
CN103279650B (en) The sampling value synchronization interpolation method of compatible data delay jitter or loss
EP3905538B1 (en) Time synchronization method and apparatus
CN107294870A (en) Message sending, receiving method and device and message processing method and system
CN107861412A (en) Signal acquisition method, apparatus and system
Kazme et al. Evaluating 5G Communication for IEC 61850 Digital Substations: Historical Context and Latency Challenges
CN202817898U (en) Power distribution terminal based on EtherCAT industrial Ethernet
CN103763088A (en) Precise time unified management method for centralized serial feature data stream
CN116896596A (en) Internet of things system supporting multi-protocol access and access method
CN106712881B (en) A kind of method and device of processing acquisition data
CN105487441A (en) Substation lightning arrester data synchronous acquisition and transmission equipment and control method thereof

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