CN115100843B - Method, system and equipment for testing communication reliability of intelligent electric energy meter - Google Patents

Method, system and equipment for testing communication reliability of intelligent electric energy meter Download PDF

Info

Publication number
CN115100843B
CN115100843B CN202210572193.2A CN202210572193A CN115100843B CN 115100843 B CN115100843 B CN 115100843B CN 202210572193 A CN202210572193 A CN 202210572193A CN 115100843 B CN115100843 B CN 115100843B
Authority
CN
China
Prior art keywords
test
frame
electric energy
energy meter
interference
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
CN202210572193.2A
Other languages
Chinese (zh)
Other versions
CN115100843A (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.)
Anhui Nanrui Zhongtian Electric Power Electronics Co ltd
Original Assignee
Anhui Nanrui Zhongtian Electric Power Electronics 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 Anhui Nanrui Zhongtian Electric Power Electronics Co ltd filed Critical Anhui Nanrui Zhongtian Electric Power Electronics Co ltd
Priority to CN202210572193.2A priority Critical patent/CN115100843B/en
Publication of CN115100843A publication Critical patent/CN115100843A/en
Application granted granted Critical
Publication of CN115100843B publication Critical patent/CN115100843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C25/00Arrangements for preventing or correcting errors; Monitoring arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • 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/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/50Receiving or transmitting feedback, e.g. replies, status updates, acknowledgements, from the controlled devices
    • G08C2201/51Remote controlling of devices based on replies, status thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/60Arrangements in telecontrol or telemetry systems for transmitting utility meters data, i.e. transmission of data from the reader of the utility meter

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention belongs to the field of power equipment testing, and particularly relates to a method, a system and equipment for testing communication reliability of an intelligent ammeter. The test method comprises the following steps: the electric energy meter is in communication connection with the upper computer, and the upper computer sets corresponding test parameters according to the test plan and prepares a source test data set. The upper computer configures channel parameters and sets the baud rate of different data transmission; and then reading the meter address of the electric energy meter through a command containing the wildcard address. Under the condition that the communication signal is effective, the upper computer sequentially or selectively executes the following test tasks according to a preset test scheme: 1. multi-load communication performance; 2. error frame identification performance; 3. interference frame identification performance; and after the test is finished, a corresponding test log is generated, and the test result of the communication reliability of the electric energy meter is comprehensively evaluated. The invention solves the problems that the existing intelligent ammeter is dependent on manual work in the test of communication reliability, the test process is complex and the test efficiency is low.

Description

Method, system and equipment for testing communication reliability of intelligent electric energy meter
Technical Field
The invention belongs to the field of power equipment testing, and particularly relates to a method, a system and equipment for testing communication reliability of an intelligent ammeter.
Background
The intelligent electric energy meter is a metering terminal for customer power consumption, is one of basic equipment for realizing data acquisition in an intelligent power grid, particularly an intelligent power distribution network, bears the tasks of original electric energy data acquisition, metering and transmission, and is a foundation for realizing information integration, analysis optimization and information display; is also an indispensable and important component of intelligent power distribution systems. At present, electric energy meters used in distribution networks in China have all been transited from mechanical electric energy meters to intelligent electric energy meters.
In the process of realizing the transmission of the metering data, the electric energy meter needs to be communicated with components such as a fusion terminal or a concentrator. The communication reliability of the intelligent electric energy meter is one of important indexes for evaluating the communication performance of the intelligent electric energy meter, and is a key for ensuring the reliable operation of the intelligent electric energy meter in actual use. At present, in field operation, communication problems of an intelligent electric energy meter, such as non-uniform communication protocol, non-matching receiving and transmitting time sequence, communication redundancy and the like, are generally encountered. These can cause errors in the statistics of the user's electricity usage metering data; thereby affecting the interests of the power consumer or creating difficulties for management on the marketing side of the grid.
Based on the problems, the communication reliability test is required before the intelligent electric energy meter leaves the factory and is installed and applied, and the data obtained in the test process can provide basis for the communication reliability evaluation of the intelligent electric energy meter. The communication reliability assessment is a key for ensuring that the electric energy meter can work normally. However, the communication reliability test task of the existing intelligent electric energy meter still highly depends on manual processing and is limited by the performance of test equipment, and the prior art can only complete the test task of a few electric energy meters in one test process; large-scale synchronous testing cannot be performed. In addition, the electric energy meter communication reliability test item comprises a plurality of test contents, and different test tasks in the existing test method are independently unfolded, so that the electric energy meter may need to be subjected to repeated tests, and the test process and the data analysis process of the electric energy meter are very complicated. The above reasons all lead to relatively low communication reliability test efficiency of the intelligent electric energy meter, and the requirements of customers cannot be met.
Disclosure of Invention
The intelligent ammeter communication reliability testing device aims at solving the problems that the existing intelligent ammeter communication reliability testing work is highly dependent on manual work, the testing efficiency is low, and synchronous testing of a large number of electric energy meters is difficult. The invention provides a method, a system and equipment for testing communication reliability of an intelligent electric energy meter.
The invention is realized by adopting the following technical scheme:
a method for testing communication reliability of an intelligent electric energy meter comprises the following steps of; the test method is used for simulating various complex communication scenes of the electric energy meter in actual work and evaluating the communication performance of the electric energy meter in different communication scenes.
The test method comprises the following steps:
the electric energy meter to be tested is in communication connection with the upper computer through the communication module, the upper computer sets corresponding test parameters according to the test plan, and prepares a source test data set, so that initialization of a test task is completed.
The upper computer configures channel parameters and sets the baud rate of different data transmission; and reading the meter address of the electric energy meter through a command containing the universal address, and judging that the current communication channel is effective when the meter address is read under any baud rate condition.
Under the condition that the communication signal is effective, the upper computer sequentially or selectively executes the following test tasks according to a preset test scheme:
1. multi-load communication performance
The upper computer changes the baud rate of the electric energy meter, then selects a transmission frame from the source test data set as a source test frame, and sends the quick continuous source test frame to the electric energy meter through the current communication channel. And collecting data of each corresponding target test frame returned by the electric energy meter. The upper computer analyzes the correctness of each received target test frame and the matching degree of the receiving and transmitting time sequence of the test frame. And further analyzing the multi-load communication efficiency of the electric energy meter.
2. Error frame identification performance
The upper computer selects a transmission frame from the source test data set, then sequentially modifies all character segments except for a 'link user data' segment in the transmission frame according to a frame format of data transmission to obtain a plurality of error frame test data, and then sequentially sends the error frames to the electric energy meter through a current communication channel. And after the electric energy meter receives the error frame, analyzing, and when the error frame is identified, returning the received error message to the upper computer. And the upper computer receives the corresponding error message and judges that the electric energy meter can identify the corresponding error frame. And after all the error frames are tested, the upper computer evaluates and obtains the error frame identification rate of the electric energy meter according to the number of the received error messages.
3. Interference frame identification performance
The upper computer selects a transmission frame from the source test data set, sets corresponding interference frame test data according to different interference targets, and then sequentially sends each interference frame to the electric energy meter through the current communication channel. After the electric energy meter receives the interference frame, analyzing the message, when the interference frame is identified, generating a corresponding response frame according to the corresponding normal transmission frame, and returning a correct response frame to the upper computer. And after the upper computer receives the correct response frame, judging that the electric energy meter can identify the corresponding interference frame. And after all the interference frames are tested, the upper computer evaluates and obtains the interference frame identification rate of the electric energy meter according to the number of the received correct response frames.
The upper computer records corresponding information after each test task in the test scheme is executed, generates a corresponding test log after all the test tasks are completed, and comprehensively evaluates the test result of the communication reliability of the electric energy meter.
As a further improvement of the invention, in the test stage, the upper computer reads the address of the electric energy meter through the RS485 interface, and the data transmission baud rate setting range of each test task execution stage comprises 1200bps, 2400bps, 4800bps and 9600bps respectively; wherein 9600bps is the default communication rate of the power meter.
As a further improvement of the invention, in the multi-load communication performance test stage, the upper computer sends out quick continuous frames to the electric energy meter according to preset different time intervals, and detects the response accuracy and feedback time sequence matching degree of the electric energy meter to the quick continuous frames; wherein the frame interval of the fast successive frames is not higher than 500ms.
As a further improvement of the present invention, the fields of the transmission frame format of the communication protocol employed by the electric energy meter respectively include: start character, length field, control field, address field, frame header check HCS, link user data, frame end check FCS, end character.
The error types adopted in the error frame test stage respectively comprise: a start character error, a length field error, a control field error, an address field error, a frame header check code error, a frame end check code error, and an end character error.
As a further improvement of the invention, in the error frame test stage, the upper computer automatically generates error frame data containing all error types according to a test plan, and counts the number of response frames returned by the electric energy meter according to analysis contents of each error frame, so as to calculate the interference frame identification rate of the electric energy meter in the current round of test, wherein the calculation formula of the error frame identification rate is as follows:
error frame identification rate= (number of error messages received/number of error frames transmitted) ×100%
As a further improvement of the invention, the types of interference employed in the interference frame test process include frame preamble byte interference, byte interference after an ending symbol, communication delay waiting and communication byte delay.
As a further improvement of the present invention, the number of interfering bytes is selectively increased or decreased, or the contents of any preceding byte or ending symbol byte are changed, among the added frame preceding byte interference and ending symbol byte interference.
As a further improvement of the invention, in the interference frame test stage, the upper computer automatically generates interference frame data containing all interference types according to a test plan, and counts the number of response frames returned by the electric energy meter according to analysis contents of all interference frames, so as to calculate the interference frame identification rate of the electric energy meter in the current round of test, wherein the calculation formula of the interference frame identification rate is as follows:
interference frame identification rate= (number of response frames received/number of interference frames transmitted) ×100%
The invention further comprises a system for testing the communication reliability of the intelligent ammeter, and the system adopts the method for testing the communication reliability of the intelligent ammeter to measure the communication reliability of the intelligent ammeter. The test system comprises: the system comprises a test scheme organization module, a continuous frame generation module, an error frame generation module, an interference frame generation module, a task execution module, a response analysis module and a reliability evaluation module.
The test scheme organization module is used for making a corresponding test task table according to a preset test plan, wherein the test task table comprises one or more of a multi-load communication test task, an error frame identification test task and an interference frame identification test task. The test scheme organization module is also used for setting corresponding test parameters for each test task in the test task list according to the test plan and preparing a source test data set.
The continuous frame generation module is used for selecting part of transmission frames from the source test data set to serve as source test frames; and time intervals are set for each source test frame to obtain a quick succession of frames for carrying out the multi-load communication test.
The error frame generation module is used for selecting part of transmission frames from the source test data set, and then sequentially modifying all character segments except for a 'link user data' segment in the transmission frames according to the frame format of data transmission to obtain a plurality of error frames for carrying out error frame identification test.
The interference frame generation module is used for selecting transmission frames from the source test data set and setting corresponding interference frames according to different interference targets. The interference types in the interference target comprise frame leading byte interference, byte interference after an ending symbol, communication delay waiting and communication byte delay.
The task execution module is used for configuring channel parameters and setting baud rates of different data transmission; and reading the meter address of the electric energy meter through a command containing the universal address, and judging that the current communication channel is effective when the meter address is read under any baud rate condition. And under the condition that the communication signal is effective, sequentially executing the multi-load communication test task, and/or the error frame identification test task and/or the interference frame identification test task according to the test task table. And transmitting the quick continuous frame, and/or the error frame, and/or the interference frame to the electric energy meter in the test task execution process.
The response analysis module is used for collecting response frames returned by the electric energy meter in any test task execution stage, analyzing the response frames and calculating multi-load communication efficiency, error frame identification rate and/or interference frame identification rate of the electric energy meter.
The reliability evaluation module is used for comprehensively evaluating the communication reliability of the electric energy meter according to the multi-load communication efficiency, the error frame recognition rate and the interference frame recognition rate of the electric energy meter.
The invention also includes a test device for communication reliability of an intelligent ammeter, the test device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor. Each functional module in the testing equipment is deployed by adopting the mode of the testing system of the communication reliability of the intelligent electric energy meter, and is electrically connected with each electric energy meter to be tested. And then the processor executes a computer program to implement the steps of the method for testing the communication reliability of the intelligent electric energy meter, so as to complete the work of evaluating the communication reliability of each electric energy meter.
The technical scheme provided by the invention has the following beneficial effects:
the method for testing the communication reliability of the intelligent electric energy meter can simulate the complex communication environment of the electric energy meter in the actual operation process, automatically change the baud rate of the intelligent electric energy meter, simultaneously send the rapid continuous frame, the error frame and the interference frame to the intelligent electric energy meter, and test the communication condition of the electric energy meter under different transmission frames. Further testing the communication efficiency of the intelligent ammeter under the condition of multiple loads, the accuracy of analysis of a communication protocol, the shielding processing capacity of an error communication frame and the anti-interference capacity of communication of the intelligent ammeter; and finally evaluating and obtaining a judging result of the communication reliability of the intelligent electric energy meter.
The system and the terminal for testing the communication reliability of the intelligent electric energy meter can be electrically connected with a large number of electric energy meters. And then obtaining the meter addresses of different electric energy meters, and finally executing different test tasks aiming at the different electric energy meters. Therefore, the invention can support synchronous test of a large number of electric energy meters, and simultaneously can execute different types of test tasks for different electric energy meters according to the needs, thereby reducing the labor cost of the test process and greatly improving the test efficiency of the communication reliability test of the electric energy meters.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a step flowchart of the whole flow of a testing method for communication reliability of an intelligent ammeter according to embodiment 1 of the present invention.
Fig. 2 is a program flow chart of an implementation process of a method for testing communication reliability of an intelligent ammeter according to embodiment 1 of the present invention.
Fig. 3 is a system topology diagram of a test system for communication reliability of an intelligent ammeter according to embodiment 2 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Example 1
The embodiment provides a method for testing communication reliability of an intelligent ammeter; the test method is used for simulating various complex communication scenes of the electric energy meter in actual work and evaluating the communication performance of the electric energy meter in different communication scenes.
As shown in fig. 1 and 2, the test method provided in this embodiment includes the following steps:
firstly, the electric energy meter to be tested is connected with an upper computer in a communication way through a communication module, the upper computer sets corresponding test parameters according to a test plan, a source test data set is prepared, and then initialization of a test task is completed.
Secondly, the upper computer configures channel parameters and sets the baud rate of different data transmission; and then reading the meter address of the electric energy meter through a command containing the wildcard address AAAAAAAAAAAA. And when the reading of the table address is completed under any baud rate condition, judging that the current communication channel is valid.
In the test stage of the embodiment, the upper computer reads the address of the electric energy meter through the RS485 interface, and the data transmission baud rate setting range of each test task execution stage respectively comprises 1200bps, 2400bps, 4800bps and 9600bps; wherein 9600bps is the default communication rate of the power meter.
Next, under the condition that the communication signal is valid, the upper computer sequentially or selectively executes the following test tasks according to the test scheme:
1. multi-load communication performance
The upper computer changes the baud rate of the electric energy meter, then selects a transmission frame from the source test data set as a source test frame, and sends the quick continuous source test frame to the electric energy meter through the current communication channel. And collecting data of each corresponding target test frame returned by the electric energy meter. The upper computer analyzes the correctness of each received target test frame and the matching degree of the receiving and transmitting time sequence of the test frame. And further analyzing the multi-load communication efficiency of the electric energy meter.
In the multi-load communication performance test task of the embodiment, the upper computer sends out quick continuous frames to the electric energy meter according to preset different time intervals, and detects the response accuracy and feedback time sequence matching degree of the electric energy meter to the quick continuous frames; wherein the frame interval of the fast successive frames belongs to an adjustable parameter and the frame interval is not higher than 500ms.
2. Error frame identification performance
The upper computer selects a transmission frame from the source test data set, then sequentially modifies all character segments except for a 'link user data' segment in the transmission frame according to a frame format of data transmission to obtain a plurality of error frame test data, and then sequentially sends the error frames to the electric energy meter through a current communication channel. And after the electric energy meter receives the error frame, analyzing, and when the error frame is identified, returning the received error message to the upper computer. And the upper computer receives the corresponding error message and judges that the electric energy meter can identify the corresponding error frame. And after all the error frames are tested, the upper computer evaluates and obtains the error frame identification rate of the electric energy meter according to the number of the received error messages.
In this embodiment, the transmission frame format of the communication protocol adopted by the electric energy meter is as follows:
table 1: frame format for electric energy meter communication protocol
Initial character (68H)
Length domain L
Control field C
Address domain A
Frame header check HCS
Link user data
Frame check FCS
End character (16H)
The fields in the frame format sequentially comprise: start character, length field, control field, address field, frame header check HCS, link user data, frame end check FCS, end character. In generating an error frame, at least all fields in the frame format except for "link user data" should be modified to obtain an error frame of the corresponding type. The error types adopted in the error frame test stage respectively comprise: a start character error, a length field error, a control field error, an address field error, a frame header check code error, a frame end check code error, and an end character error. In the scheme of error frame identification test task, the software of the upper computer needs to generate various error frames of different types and randomly send the error frames to the electric energy meter for testing.
The test procedure for erroneous frame identification is generally as follows: when the upper computer sends a message for reading the electricity meter to the electricity meter, the correct transmission frame data is as follows: 68 17 00 43 05 02 00 00 00 00 00 a1 4a fa 05 01 09 40 00 02 00 00 25 3a 16. And analyzing the message according to the format of a frame format of 'initial character-length-control domain-address domain-frame header check-link user data-frame check-end character', and obtaining data and meaning corresponding to each byte. The corresponding error frame is the content that changes the character except the section of 'link user data' into the content that does not satisfy the frame format. For example, the frame start character data 68 is changed, the length field data 17 is changed, and the like, thereby forming an error frame. The test software sends the error frame to the smart meter. And after receiving the transmission frame, the intelligent ammeter returns the received error message to the upper computer. The upper computer receives the error frame data returned by the intelligent ammeter, and test software in the upper computer can judge that the ammeter can identify the error frame.
In the error frame test stage, the upper computer automatically generates error frame data containing all error types according to a test plan, counts the number of response frames returned by the electric energy meter according to analysis contents of each error frame, and further calculates the interference frame identification rate of the electric energy meter in the current round of test, wherein the calculation formula of the error frame identification rate is as follows:
error frame identification rate= (number of error messages received/number of error frames transmitted) ×100%.
3. Interference frame identification performance
The upper computer selects a transmission frame from the source test data set, sets corresponding interference frame test data according to different interference targets, and then sequentially sends each interference frame to the electric energy meter through the current communication channel. After the electric energy meter receives the interference frame, analyzing the message, when the interference frame is identified, generating a corresponding response frame according to the corresponding normal transmission frame, and returning a correct response frame to the upper computer. And after the upper computer receives the correct response frame, judging that the electric energy meter can identify the corresponding interference frame. When interference is applied, the electric energy meter should not crash or fly away. And after all the interference frames are tested, the upper computer evaluates and obtains the interference frame identification rate of the electric energy meter according to the number of the received correct response frames.
The interference types adopted in the interference frame test process of the embodiment include: frame preamble byte interference, end symbol post byte interference, communication latency waiting, and communication byte latency. In the added frame leading byte interference and ending symbol post byte interference, the number of interference bytes is increased or reduced, or the content of any leading byte and ending symbol post byte is changed. In the interference frame identification test, the test scheme should include at least all the test tasks of the interference frame type. And requires the electric energy meter to accurately identify any type of interference frame.
The test procedure for interfering frame identification is generally as follows: the upper computer sends a message for reading the electricity meter to the electricity meter, and the correct transmission frame data is as follows: 68 17 00 43 05 02 00 00 00 00 00 a1 4a fa 05 01 09 40 00 02 00 00 25 3a 16. And analyzing the message according to the format of a frame format of 'initial character-length-control domain-address domain-frame header check-link user data-frame check-end character', and obtaining data and meaning corresponding to each byte. The protocol specifies that the preamble byte is 4 FEs, i.e. the complete message is: FE 68 17 00 43 05 02 00 00 00 00 00 a1 4a fa 05 01 09 40 00 02 00 00 25 3a 16. Under normal conditions, if the message lacks a leading byte or has an extra byte after the character is finished, the intelligent electric energy meter can also recognize the content of the message. Therefore, in the interference frame test of this embodiment, 4 FEs are changed to 2 FEs, or changed to FE 68 FE, or data FE 68 FE is added after the transmission frame, so as to form an interference frame. After receiving the interference frame, the electric energy meter should also be able to recognize the message and return the correct response frame. When the electric energy meter can return a correct response frame, test software in the upper computer judges that the intelligent electric energy meter can identify an interference frame.
In the interference frame test stage, the upper computer automatically generates interference frame data containing all interference types according to a test plan, and counts the number of response frames returned by the electric energy meter according to analysis content of each interference frame, so as to calculate the interference frame identification rate of the electric energy meter in the current round of test, wherein the calculation formula of the interference frame identification rate is as follows:
interference frame identification rate= (number of response frames received/number of interference frames transmitted) ×100%.
And finally, after each test task in the test scheme is executed, the upper computer records corresponding information, generates a corresponding test log after all the test tasks are completed, and comprehensively evaluates the test result of the communication reliability of the electric energy meter.
Example 2
On the basis of embodiment 1, this embodiment further provides a system for testing communication reliability of the smart electric energy meter, where the system measures communication reliability of the smart electric energy meter by using the method for testing communication reliability of the smart electric energy meter as in embodiment 1. As shown in fig. 3, the test system includes: the system comprises a test scheme organization module, a continuous frame generation module, an error frame generation module, an interference frame generation module, a task execution module, a response analysis module and a reliability evaluation module.
The test scheme organization module is used for making a corresponding test task table according to a preset test plan, wherein the test task table comprises one or more of a multi-load communication test task, an error frame identification test task and an interference frame identification test task. The test scheme organization module is also used for setting corresponding test parameters for each test task in the test task list according to the test plan and preparing a source test data set.
The continuous frame generation module is used for selecting part of transmission frames from the source test data set to serve as source test frames; and time intervals are set for each source test frame to obtain a quick succession of frames for carrying out the multi-load communication test.
The error frame generation module is used for selecting part of transmission frames from the source test data set, and then sequentially modifying all character segments except for a 'link user data' segment in the transmission frames according to the frame format of data transmission to obtain a plurality of error frames for carrying out error frame identification test.
The interference frame generation module is used for selecting transmission frames from the source test data set and setting corresponding interference frames according to different interference targets. The interference types in the interference target comprise frame leading byte interference, byte interference after an ending symbol, communication delay waiting and communication byte delay.
The task execution module is used for configuring channel parameters and setting baud rates of different data transmission; and reading the meter address of the electric energy meter through a command containing the universal address, and judging that the current communication channel is effective when the meter address is read under any baud rate condition. And under the condition that the communication signal is effective, sequentially executing the multi-load communication test task, and/or the error frame identification test task and/or the interference frame identification test task according to the test task table. And transmitting the quick continuous frame, and/or the error frame, and/or the interference frame to the electric energy meter in the test task execution process.
The response analysis module is used for collecting response frames returned by the electric energy meter in any test task execution stage, analyzing the response frames and calculating multi-load communication efficiency, error frame identification rate and/or interference frame identification rate of the electric energy meter.
The reliability evaluation module is used for comprehensively evaluating the communication reliability of the electric energy meter according to the multi-load communication efficiency, the error frame recognition rate and the interference frame recognition rate of the electric energy meter.
Example 3
The embodiment provides test equipment for communication reliability of an intelligent electric energy meter, which belongs to computer equipment and comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor. Each functional module in the test device is deployed by adopting the test system of the communication reliability of the intelligent ammeter in embodiment 2, and is electrically connected with each ammeter to be tested. Then, the processor executes the computer program to implement the steps of the method for testing the communication reliability of the intelligent ammeter according to embodiment 1, and further, the work of evaluating the communication reliability of each ammeter is completed.
The computer device may be a smart phone, tablet computer, notebook computer, desktop computer, rack-mounted server, blade server, tower server, or rack-mounted server (including a stand-alone server, or a server cluster composed of multiple servers) capable of executing a program, or the like. The computer device of the present embodiment includes at least, but is not limited to: a memory, a processor, and the like, which may be communicatively coupled to each other via a system bus.
In this embodiment, the memory (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of a computer device, such as a plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card) or the like, which are provided on the computer device. Of course, the memory may also include both internal storage units of the computer device and external storage devices. In this embodiment, the memory is typically used to store an operating system and various application software installed on the computer device. In addition, the memory can be used to temporarily store various types of data that have been output or are to be output.
The processor may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor is typically used to control the overall operation of the computer device. In this embodiment, the processor is configured to run the program code or process data stored in the memory, so as to implement a processing procedure of a method for testing communication reliability of an intelligent ammeter as in embodiment 1, and synchronously execute each communication reliability testing task on a large batch of the ammeter according to specific requirements; and obtaining the communication reliability evaluation result of each electric energy meter.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (6)

1. The method is characterized by being used for simulating various complex communication scenes of the electric energy meter in actual work and evaluating communication performance of the electric energy meter in different communication scenes; the testing method comprises the following steps:
the electric energy meter to be tested is in communication connection with the upper computer through the communication module, the upper computer sets corresponding test parameters according to a test scheme, prepares a source test data set and further completes initialization of a test task;
the upper computer configures channel parameters and sets the baud rate of different data transmission; reading the meter address of the electric energy meter through a command containing a general address, and judging that the current communication channel is effective when the meter address is read under any baud rate condition; the upper computer reads the address of the electric energy meter through the RS485 interface, and the data transmission baud rate setting range of each test task execution stage comprises 1200bps, 2400bps, 4800bps and 9600bps respectively; wherein 9600bps is the default communication rate of the electric energy meter;
under the condition that the communication signals are effective, the upper computer sequentially or selectively executes the following test tasks according to the test scheme:
1. multi-load communication performance
The upper computer changes the baud rate of the electric energy meter, then selects a transmission frame from the source test data set as a source test frame, and sends a rapid continuous source test frame to the electric energy meter through a current communication channel; collecting data of each corresponding target test frame returned by the electric energy meter; the upper computer analyzes the correctness of each received target test frame and the matching degree of the receiving and transmitting time sequence of the test frame; further analyzing the multi-load communication efficiency of the electric energy meter;
in the multi-load communication performance test stage, the upper computer sends out quick continuous frames to the electric energy meter according to preset different time intervals, and detects the response accuracy of the electric energy meter to the quick continuous frames and the feedback time sequence matching degree; wherein the frame interval of the fast successive frames is not higher than 500ms;
2. error frame identification performance
The upper computer selects a transmission frame from the source test data set, then sequentially modifies all character segments except for a 'link user data' segment in the transmission frame according to a frame format of data transmission to obtain a plurality of error frame test data, and then sequentially sends the error frames to the electric energy meter through a current communication channel; the electric energy meter analyzes after receiving the error frame, and returns the received error message to the upper computer after identifying the error frame; the corresponding error message received by the upper computer judges that the electric energy meter can identify the corresponding error frame; after all error frames are tested, the upper computer evaluates and obtains the error frame identification rate of the electric energy meter according to the number of the received error messages;
the fields of the transmission frame format of the communication protocol adopted by the electric energy meter respectively comprise: start character, length field, control field, address field, frame head check HCS, link user data, frame tail check FCS, end character; the error types adopted in the error frame test stage respectively comprise: a start character error, a length field error, a control field error, an address field error, a frame header check code error, a frame end check code error, and an end character error;
3. interference frame identification performance
The upper computer selects a transmission frame from the source test data set, sets corresponding interference frame test data according to different interference targets, and then sequentially sends each interference frame to the electric energy meter through the current communication channel; after the electric energy meter receives the interference frame, analyzing the message, and when the electric energy meter recognizes the interference frame, generating a corresponding response frame according to the corresponding normal transmission frame; and returning a correct response frame to the upper computer; after the upper computer receives the correct response frame, the electric energy meter is judged to be capable of identifying the corresponding interference frame; after all the interference frames are tested, the upper computer evaluates and obtains the interference frame identification rate of the electric energy meter according to the number of the received correct response frames;
the interference type adopted in the interference frame test process comprises frame leading byte interference, byte interference after ending symbol, communication delay waiting and communication byte delay;
the upper computer records corresponding information after each test task in the test scheme is executed, generates a corresponding test log after all the test tasks are completed, and comprehensively evaluates the test result of the communication reliability of the electric energy meter.
2. The method for testing communication reliability of intelligent ammeter according to claim 1, wherein: in the error frame test stage, the upper computer automatically generates error frame data containing all error types according to a test plan, and counts the number of response frames returned by the electric energy meter according to analysis contents of each error frame, so as to calculate the error frame identification rate of the electric energy meter in the current round of test, wherein the calculation formula of the error frame identification rate is as follows:
error frame identification rate= (number of error messages received/number of error frames transmitted) ×100%.
3. The method for testing communication reliability of intelligent ammeter according to claim 1, wherein: in the added frame leading byte interference and ending symbol post byte interference, the number of interference bytes is increased or reduced, or the content of any leading byte and ending symbol post byte is changed.
4. The method for testing communication reliability of intelligent ammeter according to claim 3, wherein: in the interference frame test stage, the upper computer automatically generates interference frame data containing all interference types according to a test plan, and counts the number of response frames returned by the electric energy meter according to analysis content of each interference frame, so as to calculate the interference frame identification rate of the electric energy meter in the current round of test, wherein the calculation formula of the interference frame identification rate is as follows:
interference frame identification rate= (number of response frames received/number of interference frames transmitted) ×100%.
5. A test system for communication reliability of an intelligent electric energy meter is characterized in that: the communication reliability of the intelligent ammeter is measured by adopting the method for testing the communication reliability of the intelligent ammeter according to any one of claims 1-4; the test system includes:
the test scheme organization module is used for making a corresponding test task table according to a preset test plan, wherein the test task table comprises one or more of a multi-load communication test task, an error frame identification test task and an interference frame identification test task; the test scheme organization module is also used for setting corresponding test parameters for each test task in the test task list according to the test plan and preparing a source test data set;
a continuous frame generation module for selecting a portion of the transmission frames from the source test dataset as source test frames; setting a time interval for each source test frame to obtain a rapid continuous frame for carrying out multi-load communication test;
the error frame generation module is used for selecting part of transmission frames from the source test data set, and then modifying all character segments except for a 'link user data' segment in the transmission frames in sequence according to the frame format of data transmission to obtain a plurality of error frames for carrying out error frame identification test;
the interference frame generation module selects a transmission frame from the source test data set, and then sets a corresponding interference frame according to different interference targets; the interference type in the interference target comprises frame leading byte interference, byte interference after ending symbol, communication delay waiting and communication byte delay;
the task execution module is used for configuring channel parameters and setting baud rates of different data transmission; reading the meter address of the electric energy meter through a command containing a general address, and judging that the current communication channel is effective when the meter address is read under any baud rate condition; under the condition that the communication signal is effective, sequentially executing a multi-load communication test task, and/or an error frame identification test task and/or an interference frame identification test task according to the test task table; transmitting the rapid continuous frames, and/or error frames and/or interference frames to an electric energy meter in the execution process of the test task;
the response analysis module is used for collecting response frames returned by the electric energy meter in any test task execution stage, analyzing the response frames and calculating the multi-load communication efficiency, and/or the error frame identification rate and/or the interference frame identification rate of the electric energy meter; the method comprises the steps of,
the reliability evaluation module is used for comprehensively evaluating the communication reliability of the electric energy meter according to the multi-load communication efficiency, the error frame identification rate and the interference frame identification rate of the electric energy meter.
6. A test device for communication reliability of an intelligent ammeter, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that: each functional module in the test equipment is deployed by adopting the intelligent ammeter communication reliability test system as set forth in claim 5 and is electrically connected with each ammeter to be tested; the computer program is then executed by a processor to perform the steps of the method for testing the communication reliability of the intelligent ammeter according to any one of claims 1-4, thereby completing the task of evaluating the communication reliability of each ammeter.
CN202210572193.2A 2022-05-24 2022-05-24 Method, system and equipment for testing communication reliability of intelligent electric energy meter Active CN115100843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210572193.2A CN115100843B (en) 2022-05-24 2022-05-24 Method, system and equipment for testing communication reliability of intelligent electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210572193.2A CN115100843B (en) 2022-05-24 2022-05-24 Method, system and equipment for testing communication reliability of intelligent electric energy meter

Publications (2)

Publication Number Publication Date
CN115100843A CN115100843A (en) 2022-09-23
CN115100843B true CN115100843B (en) 2024-01-02

Family

ID=83288278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210572193.2A Active CN115100843B (en) 2022-05-24 2022-05-24 Method, system and equipment for testing communication reliability of intelligent electric energy meter

Country Status (1)

Country Link
CN (1) CN115100843B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102759724A (en) * 2012-07-19 2012-10-31 浙江省电力公司电力科学研究院 Testing method and system for communication reliability of intelligent electric energy meters
CN106324555A (en) * 2016-10-25 2017-01-11 湖南威胜信息技术有限公司 General virtual electric energy meter for electric energy meter data acquisition terminal test system
CN109613467A (en) * 2018-10-30 2019-04-12 杭州海兴电力科技股份有限公司 For realizing the test equipment and test method of the multilist test at simulation scene

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102759724A (en) * 2012-07-19 2012-10-31 浙江省电力公司电力科学研究院 Testing method and system for communication reliability of intelligent electric energy meters
CN106324555A (en) * 2016-10-25 2017-01-11 湖南威胜信息技术有限公司 General virtual electric energy meter for electric energy meter data acquisition terminal test system
CN109613467A (en) * 2018-10-30 2019-04-12 杭州海兴电力科技股份有限公司 For realizing the test equipment and test method of the multilist test at simulation scene

Also Published As

Publication number Publication date
CN115100843A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN113014449B (en) Local communication protocol pressure testing method and system of electricity consumption information acquisition system
CN110532168B (en) Full-link interface pressure measurement method and device, computer equipment and storage medium
CN108092854B (en) Test method and device for train-level Ethernet equipment based on IEC61375 protocol
CN102118282A (en) Communication protocol consistency detection method and system
CN114205427B (en) Method, apparatus and storage medium for protocol docking debugging
CN112230095B (en) Load identification module hardware interface detection equipment and automatic detection method thereof
CN108595390B (en) Method for verifying parameter consistency of SCD and IED of intelligent substation
CN109618364A (en) Terminal uplink communication module detection system and detection method
CN113590471B (en) Communication terminal equipment simulation system and application method thereof
CN204989367U (en) Low pressure user transmission line detecting system that visits one house after another
CN115100843B (en) Method, system and equipment for testing communication reliability of intelligent electric energy meter
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN115061079A (en) Electric energy meter metering error online measurement method and batch test system
CN113269478B (en) Concentrator abnormal data reminding method and system based on multiple models
CN115563773A (en) Interface signal adjusting method, device, equipment and storage medium
CN112838938B (en) Test system of Internet of things platform
CN109212346B (en) Debugging method of low-voltage intelligent power distribution cabinet
CN112800102A (en) Alarm correlation calculation method and device and calculation equipment
CN106597358A (en) Traceability verification method of network electric energy meter
CN110992671A (en) Ammeter address forwarding method, device and system and electronic equipment
CN114944052B (en) Automatic test method and system for meter reading stability of electricity acquisition terminal
CN111143644A (en) Identification method and device of Internet of things equipment
CN112910086B (en) Intelligent substation data verification method and system
CN114363205B (en) High-speed link impedance mutation analysis method, system, terminal and storage medium

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