CN111181994B - Message encoding method and device based on FT3 protocol - Google Patents

Message encoding method and device based on FT3 protocol Download PDF

Info

Publication number
CN111181994B
CN111181994B CN202010006073.7A CN202010006073A CN111181994B CN 111181994 B CN111181994 B CN 111181994B CN 202010006073 A CN202010006073 A CN 202010006073A CN 111181994 B CN111181994 B CN 111181994B
Authority
CN
China
Prior art keywords
parameter information
information
digital message
filling
channel parameter
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
CN202010006073.7A
Other languages
Chinese (zh)
Other versions
CN111181994A (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.)
Electric Power Research Institute of Yunnan Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Yunnan Power Grid 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 Electric Power Research Institute of Yunnan Power Grid Co Ltd filed Critical Electric Power Research Institute of Yunnan Power Grid Co Ltd
Priority to CN202010006073.7A priority Critical patent/CN111181994B/en
Publication of CN111181994A publication Critical patent/CN111181994A/en
Application granted granted Critical
Publication of CN111181994B publication Critical patent/CN111181994B/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/08Protocols for interworking; Protocol conversion
    • 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/03Protocol definition or specification 
    • 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)
  • Communication Control (AREA)

Abstract

In the method, an FPGA circuit constructs a digital message frame according to command information issued by an upper computer, and fills data information into the digital message frame to generate a digital message. The method provided by the application can be suitable for simulating the digital quantity of different protocol types under the FT3 protocol, so that the simulated digital quantity is transmitted to the direct current control protection device, and whether the direct current control protection device can work normally is detected.

Description

Message encoding method and device based on FT3 protocol
Technical Field
The application relates to the technical field of testing of control protection devices in direct current converter stations, in particular to a message encoding method and device based on an FT3 protocol.
Background
In a dc transmission system, a converter station is usually set up to convert ac power into dc power or vice versa and to meet the requirements of a power system for safety, stability and power quality. The converter station is provided with a direct current control protection device, the direct current control protection device receives signals transmitted by the voltage current transformers, and whether each voltage current transformer can normally operate or not is judged according to the signals. In order to realize the function, it is necessary to ensure that the dc control protection device can normally work, and in practical application, a test system is usually used to detect whether the dc control protection device can normally work, that is, the test system is required to simulate a voltage current transformer in the converter station to transmit a signal to the dc control protection device.
In a converter station, a traditional voltage current transformer is arranged, and an analog quantity signal is transmitted to a direct current control protection device; there is also a photoelectric voltage current transformer, which transmits digital signals to the dc control protection device, and the digital signals are generally digital messages under the FT3 protocol. In a converter station project, due to the fact that different suppliers of photoelectric voltage and current transformers exist, the provided FT3 protocol is different, the FT3 protocol has the characteristics of privacy and protocol variety diversity, and the requirements of high sampling frequency and high transmission rate are met, so that great difficulty is brought to field detection of a direct current control protection device.
At present, due to the characteristics of privacy and diversified protocol formats of the FT3 protocol, no test system can meet the output simulation function of the FT3 protocol of the converter station, or only individual protocol simulation can be realized, and diversified simulation of different protocols cannot be met. A certain manufacturer makes flexible and direct diversified protocols into a template library, but the converter station has multiple projects and multiple types of protocols, and the template library can only be suitable for the FT3 protocol which is tested and changed in data format and cannot be suitable for the untested FT3 protocol. Therefore, there is a need for a digital analog converter that can be applied to different types of protocols, so as to transmit the analog digital to the dc control protection device to detect whether the dc control protection device can work normally.
Disclosure of Invention
The application provides a message coding method and device based on an FT3 protocol, which are used for solving the problem that the existing test system is not suitable for digital quantity simulation of different protocol types.
In a first aspect of the present application, a message encoding method based on an FT3 protocol is provided, the method is applied to an FPGA circuit in a test system, the test system further includes an upper computer connected to the FPGA circuit via a network, the upper computer is configured to send command information to the FPGA circuit, and the method includes:
receiving command information sent by an upper computer, wherein the command information comprises the total byte length of a digital message and parameter information corresponding to each byte, and the parameter information comprises identification information corresponding to each byte and data information corresponding to the identification information;
constructing a digital message frame according to the identification information;
and filling the data information into the digital message frame to generate a digital message.
Optionally, constructing a digital message frame according to the identification information includes:
reserving a plurality of byte positions for the digital message according to the total byte length of the digital message, and numbering the byte positions in a sequence from small to large;
and establishing an association relation between each byte position and the identification information, and taking the plurality of byte positions after the association relation is established as a digital message frame.
Optionally, the parameter information includes initial parameter information, fixed parameter information, channel parameter information, sampler parameter information, and check code information;
filling data information into the digital message frame to generate a digital message, wherein the method comprises the following steps:
if the parameter information is initial parameter information, filling data information corresponding to the initial parameter information to a byte position corresponding to the initial parameter information;
if the parameter information is fixed parameter information, filling data information corresponding to the fixed parameter information to a byte position corresponding to the fixed parameter information;
if the parameter information is channel parameter information, processing data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information;
if the parameter information is sampler parameter information, filling data information corresponding to the sampler parameter information to a byte position corresponding to the sampler parameter information;
and if the parameter information is check code information, filling data information corresponding to the check code information to a byte position corresponding to the check code information.
Optionally, before filling data information into the digital message frame and generating a digital message, the method further includes:
judging whether a spare byte position exists in the digital message frame, wherein the spare byte position does not have associated identification information;
and if so, filling the spare byte position by using preset data information.
Optionally, if the parameter information is channel parameter information, processing data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information, including:
if the channel parameter information is voltage channel parameter information, acquiring a voltage value and a voltage conversion coefficient corresponding to the voltage channel parameter information;
taking the product of the voltage numerical value and the voltage conversion coefficient as a voltage code value corresponding to the voltage channel parameter information, and filling the voltage code value to a byte position corresponding to the voltage channel parameter information;
and/or the presence of a gas in the gas,
if the channel parameter information is current channel parameter information, acquiring a current numerical value and a current conversion coefficient corresponding to the current channel parameter information;
and taking the product of the current numerical value and the current conversion coefficient as a current code value corresponding to the current channel parameter information, and filling the current code value to a byte position corresponding to the current channel parameter information.
In a second aspect of the present application, a message coding device based on FT3 protocol is provided, the FPGA circuit in test system is applied to the device, test system still include with FPGA circuit network connection's host computer, the host computer be used for to FPGA circuit sends command information, the device includes:
the receiving module is used for receiving command information sent by an upper computer, wherein the command information comprises the total byte length of the digital message and parameter information corresponding to each byte, and the parameter information comprises identification information corresponding to each byte and data information corresponding to the identification information;
the construction module is used for constructing a digital message frame according to the identification information;
and the generating module is used for filling the data information into the digital message frame to generate a digital message.
Optionally, the building module includes:
the reservation unit is used for reserving a plurality of byte positions for the digital message according to the total byte length of the digital message and numbering the byte positions in a sequence from small to large;
and the association relationship establishing unit is used for establishing the association relationship between each byte position and the identification information, and taking the plurality of byte positions after the association relationship is established as a digital message frame.
Optionally, the generating module includes:
the first filling unit is used for filling data information corresponding to the initial parameter information to a byte position corresponding to the initial parameter information if the parameter information is the initial parameter information;
the second filling unit is used for filling the data information corresponding to the fixed parameter information to the byte position corresponding to the fixed parameter information if the parameter information is the fixed parameter information;
the third filling unit is used for processing the data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information if the parameter information is the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information;
a fourth filling unit, configured to fill, if the parameter information is sampler parameter information, data information corresponding to the sampler parameter information to a byte position corresponding to the sampler parameter information;
and the fifth filling unit is used for filling the data information corresponding to the check code information to the byte position corresponding to the check code information if the parameter information is the check code information.
Optionally, the apparatus further comprises:
the judging module is used for judging whether a spare byte position exists in the digital message frame before generating the digital message, and the spare byte position does not have associated identification information;
and the filling module is used for filling the spare byte position by using preset data information under the condition that the judging module determines that the spare byte position exists.
Optionally, the third filling unit includes:
the first obtaining subunit is configured to obtain a voltage value and a voltage conversion coefficient corresponding to the voltage channel parameter information if the channel parameter information is the voltage channel parameter information;
the first padding subunit is configured to take a product of the voltage value and the voltage scaling factor as a voltage code value corresponding to the voltage channel parameter information, and pad the voltage code value to a byte position corresponding to the voltage channel parameter information;
and/or the presence of a gas in the gas,
the second obtaining subunit is configured to obtain a current value and a current conversion coefficient corresponding to the current channel parameter information if the channel parameter information is the current channel parameter information;
and the second filling subunit is used for taking the product of the current numerical value and the current conversion coefficient as a current code value corresponding to the current channel parameter information, and filling the current code value to a byte position corresponding to the current channel parameter information.
According to the technical scheme, the embodiment of the application provides a message encoding method and device based on the FT3 protocol, in the method, the FPGA circuit constructs a digital message frame according to command information issued by an upper computer, and data information is filled into the digital message frame to generate a digital message. The method provided by the application can be suitable for simulating the digital quantity of different protocol types under the FT3 protocol, so that the simulated digital quantity is transmitted to the direct current control protection device, and whether the direct current control protection device can work normally is detected.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a message encoding method based on an FT3 protocol according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a message encoding method based on an FT3 protocol according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to a work flow chart shown in fig. 1, an embodiment of the present application provides a message encoding method based on an FT3 protocol, where the method is applied to an FPGA circuit in a test system, the test system further includes an upper computer connected to the FPGA circuit in a network, and the upper computer is configured to send command information to the FPGA circuit, and the method includes the following steps:
step 101, receiving command information sent by an upper computer, wherein the command information comprises the total byte length of a digital message and parameter information corresponding to each byte, and the parameter information comprises identification information corresponding to each byte and data information corresponding to the identification information.
In this step, the parameter information corresponds to different parameter types, and the parameter types include a start parameter, a fixed parameter, a channel parameter, a sampler parameter, and a check code. The initial parameter and the fixed parameter are usually preset, and the data information corresponding to the initial parameter is usually 0564H, occupying two byte positions; the fixed parameters typically include a logical device name and a sampled data state, each occupying a byte position. The channel parameters typically include voltage channel parameters for storing voltage code values and current channel parameters for storing current code values. The data information corresponding to the sampler parameters usually includes three types, 0, 1, and 2, which respectively represent different sampler types and different counting modes corresponding to the different sampler types. The check code corresponds to the type of the digital message, and the type of the check code can be obtained according to the type of the digital message, for example, the check code can be generated by the following polynomial:
G(x)=x16+x13+x12+x11+x10+x8+x6+x5+x2+x1
the identification information is used for indicating the parameter type to be filled in each byte in the digital message, and the data information is original data which is sent by an upper computer and corresponds to the parameter type. And according to different parameter types, directly filling the original data to corresponding byte positions, or processing the original data and filling the processed result to the corresponding byte positions.
And 102, constructing a digital message frame according to the identification information.
In an implementation manner, step 102 specifically includes the following steps:
step 1021, reserving a plurality of byte positions for the digital message according to the total byte length of the digital message, and numbering the byte positions in a sequence from small to large;
step 1022, establishing an association relationship between each byte position and the identification information, and using the multiple byte positions after the association relationship is established as a digital message frame.
In the embodiment of the present application, the parameter information corresponds to different parameter types, where the parameter types include a start parameter, a fixed parameter, a channel parameter, a sampler parameter, and a check code. The initial parameter and the fixed parameter are both determined by the type of the digital message, and are usually preset, the sampler parameter and the check code are both auxiliary parameters in the digital message, the purpose of the FPGA circuit generating the digital message is to transmit the digital message to a direct current control protection device or other tested devices, and the key information in the digital message is a voltage code value and a current code value carried by a channel parameter, that is, the channel parameter is directly related to the specific type of the digital message which needs to be generated by the FPGA circuit. Therefore, as the type of the digital message changes, the channel parameters will change accordingly, i.e. the channel parameters are not fixed or unchanged.
The channel parameters comprise voltage channel parameters and current channel parameters, the start bit and the end bit of each channel parameter are sent to the FPGA circuit by the upper computer in the form of command information, and the FPGA circuit constructs a digital message frame.
And 103, filling the data information into the digital message frame to generate a digital message.
In an implementable manner, since the parameter information corresponds to different parameter types, based thereon, step 103 comprises the steps of:
if the parameter information is initial parameter information, filling data information corresponding to the initial parameter information to a byte position corresponding to the initial parameter information;
if the parameter information is fixed parameter information, filling data information corresponding to the fixed parameter information to a byte position corresponding to the fixed parameter information;
if the parameter information is channel parameter information, processing data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information;
if the parameter information is sampler parameter information, filling data information corresponding to the sampler parameter information to a byte position corresponding to the sampler parameter information;
and if the parameter information is check code information, filling data information corresponding to the check code information to a byte position corresponding to the check code information.
According to the technical scheme, the embodiment of the application provides a message coding method based on the FT3 protocol, and in the method, the FPGA circuit generates a digital message according to command information sent by an upper computer. The method provided by the application can be suitable for simulating the digital quantity of different protocol types under the FT3 protocol, so that the simulated digital quantity is transmitted to the direct current control protection device, and whether the direct current control protection device can work normally is detected.
Optionally, if the parameter information is channel parameter information, processing data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information, including:
if the channel parameter information is voltage channel parameter information, acquiring a voltage value and a voltage conversion coefficient corresponding to the voltage channel parameter information;
taking the product of the voltage numerical value and the voltage conversion coefficient as a voltage code value corresponding to the voltage channel parameter information, and filling the voltage code value to a byte position corresponding to the voltage channel parameter information;
and/or the presence of a gas in the gas,
if the channel parameter information is current channel parameter information, acquiring a current numerical value and a current conversion coefficient corresponding to the current channel parameter information;
and taking the product of the current numerical value and the current conversion coefficient as a current code value corresponding to the current channel parameter information, and filling the current code value to a byte position corresponding to the current channel parameter information.
In the embodiment of the application, after the digital message is generated, the digital message is transmitted to the tested equipment according to the message sampling rate and the baud rate sent by the upper computer.
Optionally, before filling data information into the digital message frame and generating a digital message, the method further includes:
judging whether a spare byte position exists in the digital message frame, wherein the spare byte position does not have associated identification information;
and if the spare byte exists, filling the spare byte position by using preset data information.
Referring to a schematic structural diagram shown in fig. 2, an embodiment of the present application provides a message encoding device based on an FT3 protocol, where the device is applied to an FPGA circuit in a test system, the test system further includes an upper computer connected to the FPGA circuit through a network, the upper computer is configured to send command information to the FPGA circuit, and the device includes:
a receiving module 100, configured to receive command information sent by an upper computer, where the command information includes a total byte length of a digital message and parameter information corresponding to each byte, and the parameter information includes identification information corresponding to each byte and data information corresponding to the identification information;
a constructing module 200, configured to construct a digital message frame according to the identification information;
a generating module 300, configured to fill the data information into the digital message frame, and generate a digital message.
Optionally, the building module includes:
the reservation unit is used for reserving a plurality of byte positions for the digital message according to the total byte length of the digital message and numbering each byte position according to the sequence from small to large;
and the association relationship establishing unit is used for establishing the association relationship between each byte position and the identification information, and taking the plurality of byte positions after the association relationship is established as a digital message frame.
Optionally, the generating module includes:
a first padding unit, configured to pad data information corresponding to the initial parameter information to a byte position corresponding to the initial parameter information if the parameter information is the initial parameter information;
the second filling unit is used for filling the data information corresponding to the fixed parameter information to the byte position corresponding to the fixed parameter information if the parameter information is the fixed parameter information;
the third filling unit is used for processing the data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information if the parameter information is the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information;
a fourth filling unit, configured to fill, if the parameter information is sampler parameter information, data information corresponding to the sampler parameter information to a byte position corresponding to the sampler parameter information;
and the fifth filling unit is used for filling the data information corresponding to the check code information to the byte position corresponding to the check code information if the parameter information is the check code information.
Optionally, the apparatus further comprises:
the judging module is used for judging whether a spare byte position exists in the digital message frame before generating the digital message, and the spare byte position does not have associated identification information;
and the filling module is used for filling the spare byte position by using preset data information under the condition that the judging module determines that the spare byte position exists.
Optionally, the third filling unit includes:
the first obtaining subunit is configured to obtain a voltage value and a voltage conversion coefficient corresponding to the voltage channel parameter information if the channel parameter information is the voltage channel parameter information;
the first padding subunit is configured to take a product of the voltage value and the voltage scaling factor as a voltage code value corresponding to the voltage channel parameter information, and pad the voltage code value to a byte position corresponding to the voltage channel parameter information;
and/or the presence of a gas in the gas,
a second obtaining subunit, configured to obtain, if the channel parameter information is current channel parameter information, a current value and a current conversion coefficient corresponding to the current channel parameter information;
and the second filling subunit is used for taking the product of the current numerical value and the current conversion coefficient as a current code value corresponding to the current channel parameter information, and filling the current code value to a byte position corresponding to the current channel parameter information.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the description in the method embodiment.
The present application has been described in detail with reference to specific embodiments and illustrative examples, but the description is not intended to limit the application. Those skilled in the art will appreciate that various equivalent substitutions, modifications or improvements may be made to the presently disclosed embodiments and implementations thereof without departing from the spirit and scope of the present disclosure, and these fall within the scope of the present disclosure. The protection scope of this application is subject to the appended claims.

Claims (8)

1. A message coding method based on an FT3 protocol is characterized in that the method is applied to an FPGA circuit in a test system, the test system further comprises an upper computer connected with the FPGA circuit through a network, the upper computer is used for sending command information to the FPGA circuit, and the method comprises the following steps:
receiving command information sent by an upper computer, wherein the command information comprises the total byte length of a digital message and parameter information corresponding to each byte, and the parameter information comprises identification information corresponding to each byte and data information corresponding to the identification information; the parameter information corresponds to different parameter types, and the parameter types comprise an initial parameter, a fixed parameter, a channel parameter, a sampler parameter and a check code; wherein, the channel parameter changes with the type of the digital message;
constructing a digital message frame according to the identification information;
filling the data information into the digital message frame to generate a digital message, and transmitting the digital message to a direct current control protection device to detect whether the direct current control protection device can work normally or not;
wherein, according to the identification information, constructing a digital message frame comprises:
reserving a plurality of byte positions for the digital message according to the total byte length of the digital message, and numbering the byte positions in a sequence from small to large;
and acquiring a start bit and an end bit of each channel parameter, establishing an association relation between each byte position and the identification information, and taking a plurality of byte positions after the association relation is established as a digital message frame.
2. The method of claim 1, wherein the parameter information comprises start parameter information, fixed parameter information, channel parameter information, sampler parameter information, and check code information;
filling data information into the digital message frame to generate a digital message, wherein the method comprises the following steps:
if the parameter information is initial parameter information, filling data information corresponding to the initial parameter information to a byte position corresponding to the initial parameter information;
if the parameter information is fixed parameter information, filling data information corresponding to the fixed parameter information to a byte position corresponding to the fixed parameter information;
if the parameter information is channel parameter information, processing data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information;
if the parameter information is sampler parameter information, filling data information corresponding to the sampler parameter information to a byte position corresponding to the sampler parameter information;
and if the parameter information is check code information, filling data information corresponding to the check code information to a byte position corresponding to the check code information.
3. The method of claim 1, further comprising, prior to populating data information into the digital message framework to generate a digital message:
judging whether a spare byte position exists in the digital message frame, wherein the spare byte position does not have associated identification information;
and if so, filling the spare byte position by using preset data information.
4. The method according to claim 2, wherein if the parameter information is channel parameter information, processing data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information, includes:
if the channel parameter information is voltage channel parameter information, acquiring a voltage value and a voltage conversion coefficient corresponding to the voltage channel parameter information;
taking the product of the voltage numerical value and the voltage conversion coefficient as a voltage code value corresponding to the voltage channel parameter information, and filling the voltage code value to a byte position corresponding to the voltage channel parameter information;
and/or the presence of a gas in the gas,
if the channel parameter information is current channel parameter information, acquiring a current numerical value and a current conversion coefficient corresponding to the current channel parameter information;
and taking the product of the current numerical value and the current conversion coefficient as a current code value corresponding to the current channel parameter information, and filling the current code value to a byte position corresponding to the current channel parameter information.
5. The utility model provides a message coding device based on FT3 agreement, its characterized in that, the FPGA circuit of device in being applied to test system, test system still include with FPGA circuit network connection's host computer, the host computer be used for to FPGA circuit sends command information, the device includes:
the receiving module is used for receiving command information sent by an upper computer, wherein the command information comprises the total byte length of the digital message and parameter information corresponding to each byte, and the parameter information comprises identification information corresponding to each byte and data information corresponding to the identification information; the parameter information corresponds to different parameter types, and the parameter types comprise an initial parameter, a fixed parameter, a channel parameter, a sampler parameter and a check code; wherein, the channel parameter changes with the type of the digital message;
the construction module is used for constructing a digital message frame according to the identification information;
the generating module is used for filling the data information into the digital message frame to generate a digital message, and transmitting the digital message to the direct current control protection device so as to detect whether the direct current control protection device can normally work;
wherein the building block comprises:
the reservation unit is used for reserving a plurality of byte positions for the digital message according to the total byte length of the digital message and numbering the byte positions in a sequence from small to large;
and the association relationship establishing unit is used for acquiring the start bit and the end bit of each channel parameter, establishing the association relationship between each byte position and the identification information, and taking a plurality of byte positions after the association relationship is established as a digital message frame.
6. The apparatus of claim 5, wherein the generating module comprises:
the first filling unit is used for filling data information corresponding to the initial parameter information to a byte position corresponding to the initial parameter information if the parameter information is the initial parameter information;
the second filling unit is used for filling the data information corresponding to the fixed parameter information to the byte position corresponding to the fixed parameter information if the parameter information is the fixed parameter information;
the third filling unit is used for processing the data information corresponding to the channel parameter information to obtain a code value corresponding to the channel parameter information if the parameter information is the channel parameter information, and filling the code value to a byte position corresponding to the channel parameter information;
a fourth filling unit, configured to fill, if the parameter information is sampler parameter information, data information corresponding to the sampler parameter information to a byte position corresponding to the sampler parameter information;
and a fifth filling unit, configured to fill, if the parameter information is check code information, data information corresponding to the check code information to a byte position corresponding to the check code information.
7. The apparatus of claim 5, further comprising:
the judging module is used for judging whether a spare byte position exists in the digital message frame before generating the digital message, and the spare byte position does not have associated identification information;
and the filling module is used for filling the spare byte position by using preset data information under the condition that the judging module determines that the spare byte position exists.
8. The apparatus of claim 6, wherein the third filling unit comprises:
the first acquiring subunit is configured to acquire a voltage value and a voltage conversion coefficient corresponding to the voltage channel parameter information if the channel parameter information is voltage channel parameter information;
the first padding subunit is configured to take a product of the voltage value and the voltage scaling factor as a voltage code value corresponding to the voltage channel parameter information, and pad the voltage code value to a byte position corresponding to the voltage channel parameter information;
and/or the presence of a gas in the gas,
the second obtaining subunit is configured to obtain a current value and a current conversion coefficient corresponding to the current channel parameter information if the channel parameter information is the current channel parameter information;
and the second filling subunit is used for taking the product of the current numerical value and the current conversion coefficient as a current code value corresponding to the current channel parameter information, and filling the current code value to a byte position corresponding to the current channel parameter information.
CN202010006073.7A 2020-01-03 2020-01-03 Message encoding method and device based on FT3 protocol Active CN111181994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010006073.7A CN111181994B (en) 2020-01-03 2020-01-03 Message encoding method and device based on FT3 protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010006073.7A CN111181994B (en) 2020-01-03 2020-01-03 Message encoding method and device based on FT3 protocol

Publications (2)

Publication Number Publication Date
CN111181994A CN111181994A (en) 2020-05-19
CN111181994B true CN111181994B (en) 2022-06-10

Family

ID=70650833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010006073.7A Active CN111181994B (en) 2020-01-03 2020-01-03 Message encoding method and device based on FT3 protocol

Country Status (1)

Country Link
CN (1) CN111181994B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630404B (en) * 2021-07-29 2023-03-28 北京中交兴路信息科技有限公司 Protocol message transmission method, device, storage medium and terminal
CN114398322B (en) * 2021-12-07 2023-10-03 中国船舶重工集团公司第七0七研究所 Network file management method suitable for underwater equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103837854A (en) * 2014-02-20 2014-06-04 国家电网公司 Digital electric energy meter calibration device based on FT3 interface
CN106950526A (en) * 2017-02-09 2017-07-14 武汉科技大学 Protocol converter for DC converter station current transformer digit check
CN207249095U (en) * 2017-10-16 2018-04-17 云南电网有限责任公司电力科学研究院 A kind of DC electronic mutual inductor testing apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017182302A1 (en) * 2016-04-19 2017-10-26 Nagravision S.A. Method and system to detect abnormal message transactions on a network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103837854A (en) * 2014-02-20 2014-06-04 国家电网公司 Digital electric energy meter calibration device based on FT3 interface
CN106950526A (en) * 2017-02-09 2017-07-14 武汉科技大学 Protocol converter for DC converter station current transformer digit check
CN207249095U (en) * 2017-10-16 2018-04-17 云南电网有限责任公司电力科学研究院 A kind of DC electronic mutual inductor testing apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于IEC60044-8标准的电子式电流互感器数字输出编码模块的FPGA实现;朱雷等;《电力自动化设备》;20060825(第08期);全文 *
电子式互感器接口应用技术研究;杜振华等;《电工技术》;20150331(第03期);第7-10,12页 *
符合FT3帧格式的电子式互感器的仿真研究;于飞等;《***仿真学报》;20180108(第01期);全文 *

Also Published As

Publication number Publication date
CN111181994A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
KR101012464B1 (en) Testing method and its apparatus of digital substation Merging Unit
CN111181994B (en) Message encoding method and device based on FT3 protocol
US20100054276A1 (en) System and method for providing communication between intelligent electronic devices via an open channel
CN101494553B (en) Method and apparatus for self-definition of alarm information format
CN108092835A (en) The detection method and device of electric automobile charging pile
CN112532484B (en) Transparent protocol conversion method and device for joint debugging test of stability control test system
CN112562299A (en) Distribution network automation terminal distributed test method
JP2011041455A (en) Apparatus and method of testing report communication in power transformation automation system
CN111328095A (en) Wireless reconnection test board and method
CN110708206A (en) Method and equipment for measuring air interface time delay of base station
CN109639671B (en) Method and system suitable for synchronous measurement data transmission
CN110838946A (en) Automatic acceptance system and method based on simulation substation
CN112532618B (en) Non-transparent protocol conversion method and device for joint debugging test of stability control test system
CN104901706B (en) A kind of digitalized electric energy quality monitoring terminal detection means and its data transfer device
CN111751776B (en) Time verification system and method for digital relay protection tester
CN113162977A (en) Information processing method and device, equipment and storage medium
CN114114956A (en) Real-time digital simulation system based on external stability control simulation model
CN214751515U (en) Test system of stability control system
CN112285459A (en) Flexible direct current line traveling wave protection test method and computer readable storage medium
CN205992988U (en) A kind of group system product tester
CN213986800U (en) Error magnitude traceability device of digital direct current electric energy meter
CN107171886B (en) Network storm detection equipment and detection method
CN213426183U (en) Detection system for SDN terminal equipment
CN117648244A (en) Communication interface simulation debugging method and platform
CN204701629U (en) A kind of for the storehouse inspection platform in subway wireless communication system

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