CN111239675B - Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing - Google Patents

Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing Download PDF

Info

Publication number
CN111239675B
CN111239675B CN202010111110.0A CN202010111110A CN111239675B CN 111239675 B CN111239675 B CN 111239675B CN 202010111110 A CN202010111110 A CN 202010111110A CN 111239675 B CN111239675 B CN 111239675B
Authority
CN
China
Prior art keywords
meter
time
chip microcomputer
single chip
setting
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
CN202010111110.0A
Other languages
Chinese (zh)
Other versions
CN111239675A (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 CN202010111110.0A priority Critical patent/CN111239675B/en
Publication of CN111239675A publication Critical patent/CN111239675A/en
Application granted granted Critical
Publication of CN111239675B publication Critical patent/CN111239675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Measurement Of Unknown Time Intervals (AREA)

Abstract

The application discloses a multi-meter parallel traversal testing method and a multi-meter parallel traversal testing system for minute freezing of an electric energy meter with a multi-core module, wherein the method comprises the following steps: the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer; the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the meter address; judging whether the single chip microcomputer receives a reply frame with correct setting; if yes, delaying to wait for the electric energy meter to store for a plurality of minutes; judging whether the time setting times reach a preset value or not; if not, updating the set time, and sending a time setting instruction to the intelligent ammeter again according to the updated set time until the time setting times reach a preset value; if so, the test is finished, and a test finished data frame is sent to the upper computer. According to the method, the single chip microcomputer is used for setting the time of the electric energy meter to replace the original PC communication setting method of the upper computer, the response speed of the single chip microcomputer is greatly improved compared with PC software, a large amount of test time is saved, and the test efficiency is effectively improved.

Description

Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing
Technical Field
The application relates to the technical field of intelligent electric energy meters, in particular to a multi-meter parallel traversal testing method and system for minute freezing of a multi-core module electric energy meter.
Background
With the development of national economic technology and the improvement of living standard of people, electric energy becomes essential secondary energy in production and life of people, and brings endless convenience to production and life of people. The importance and reliability of the electric energy meter as the only component in the electric power system that meters electric energy is self-evident.
The minute freezing is the recording of the intelligent ammeter on the real-time power load running state and characteristics in the running process of the power system, the intelligent ammeter records the minute freezing record according to the time interval period set by a user, the minute freezing record indicates which data objects are set by the user, and the interval period and the maximum depth recorded by each data object can be set by the user. During the ammeter production, need carry out the function detection to the ammeter function, ensure that its function satisfies newly-released multicore module electric energy meter specification requirement.
During testing, if the requirement of the data storage function is satisfied, the testing time of the function of the electric energy meter is too long, so that the testing of the requirement can be completed by modifying the time of the electric energy meter. Most of the existing testing methods are that an upper computer directly performs data interaction on an electric energy meter through testing software, and the data interaction comprises setting of relevant time data and reading of frozen data. However, the processing speed of the upper computer test software is slow, which causes a long test time and affects the test efficiency.
Disclosure of Invention
The application provides a multi-meter parallel traversal testing method and system for the minute freezing of a multi-core module electric energy meter, and aims to solve the problem that the test time for the minute freezing of the multi-core module electric energy meter is long at present.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application discloses a multi-meter parallel traversal testing method for minute freezing of an electric energy meter with a multi-core module, where the method includes:
the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer;
the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the meter address;
judging whether the single chip microcomputer receives a reply frame with correct setting;
if the single chip microcomputer receives a reply frame with correct setting, delaying to wait for the electric energy meter to store for a period of minutes;
judging whether the time setting times reach a preset value or not;
if the time setting times do not reach a preset value, updating the setting time, and sending a time setting instruction to the intelligent ammeter again according to the updated setting time until the time setting times reach the preset value;
and if the time setting times reach a preset value, the test is finished, and a test finished data frame is sent to the upper computer.
Optionally, the singlechip sends the time setting instruction to corresponding smart electric meter according to the set time and the table address, and includes:
the upper computer sends a meter number reading command;
the single chip microcomputer forwards the meter number reading command to a corresponding serial port;
judging whether the single chip microcomputer receives a correct reply frame;
if the single chip microcomputer receives the correct reply frame, storing a table address corresponding to the table number to a table address cache region of the single chip microcomputer;
and the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the timestamp of the data frame sent by the upper computer and the cached table address framing.
Optionally, the singlechip sends the time setting instruction to corresponding smart electric meter according to the set time and the table address, and includes:
the upper computer sends a table number setting command to the single chip microcomputer;
the single chip microcomputer solidifies the meter address of the intelligent electric meter according to the meter address of the meter address cache region;
judging whether the single chip microcomputer receives a correct reply frame;
and if the single chip microcomputer receives the correct reply frame, the single chip microcomputer sends a time setting instruction to the intelligent electric meter according to the timestamp of the data frame sent by the upper computer and the solidified meter address.
Optionally, the delaying waiting for the electric energy meter to store across minutes includes:
the delay time is the difference between the second time of one minute and the second time of the set time.
Optionally, updating the set time includes:
and the singlechip directly adds 1 to the preset time and minutes to update the set time.
In a second aspect, the embodiment of the present application further discloses a multi-meter parallel traversal testing method for minute freezing of an electric energy meter with a multi-core module, where the method includes:
the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer;
the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the first meter address;
judging whether the single chip microcomputer receives a reply frame with correct setting;
if the single chip microcomputer receives a reply frame with correct setting, starting to store the electric energy meter in a time-delay mode spanning minutes;
the single chip microcomputer sequentially sends time setting instructions to the corresponding intelligent electric meters according to the setting time and the residual meter addresses;
judging whether the single chip microcomputer receives correctly set reply frames in sequence;
if the single chip microcomputer receives the correctly set reply frames in sequence, judging whether the delay time is up;
if the delay time is up, stopping the data delay of the cross-minute;
judging whether the time setting times reach a preset value or not;
if the time setting times do not reach a preset value, updating the setting time, and sending a time setting instruction to the intelligent ammeter again according to the updated setting time until the time setting times reach the preset value;
and if the time setting times reach a preset value, the test is finished, and a test finished data frame is sent to the upper computer.
In a third aspect, an embodiment of the present application further discloses a multi-meter parallel traversal testing system for minute freezing of an electric energy meter with a multi-core module, including:
the upper computer is in communication connection with the single chip microcomputer and is used for sending a time setting instruction of the intelligent electric meter to the single chip microcomputer;
and the single chip microcomputer is provided with a plurality of communication serial ports, the communication serial ports are in communication connection with the intelligent electric meter and are used for forwarding time setting instructions to the corresponding intelligent electric meter according to the setting time and the meter address, and when the time setting instructions are correctly set, the single chip microcomputer delays to wait for the electric energy meter to store in a time-spanning mode until the time setting times reach a preset value.
Optionally, each communication serial port is connected with the intelligent electric meter in a one-to-one correspondence manner.
Optionally, each communication serial port is connected with a plurality of intelligent electric meters.
Compared with the prior art, the beneficial effect of this application is:
the multi-meter parallel traversal testing method for freezing the multi-core module electric energy meter in minutes realizes interaction of data of the electric energy meter through the single chip microcomputer, the setting of the time of the electric energy meter through the lower computer replaces the original communication setting method of the upper computer, a large amount of testing time can be saved in one-year time period traversal, the processing speed of the single chip microcomputer is compared with that of PC software, the corresponding speed is greatly improved, the testing time can be greatly shortened, and the testing efficiency is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
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 schematic block diagram of an exemplary multi-meter parallel traversal test model for minute freezing of a multi-core module electric energy meter;
fig. 2 is a flowchart of a multi-meter parallel traversal testing method for minute freezing of an electric energy meter with a multi-core module according to an embodiment of the present application;
fig. 3 is a detailed flowchart of S102 in the multi-meter parallel traversal testing method for minute freezing of the multi-core module electric energy meter according to the embodiment of the present application;
fig. 4 is another detailed flowchart of S102 in the multi-meter parallel traversal testing method for minute freezing of the multi-core module electric energy meter according to the embodiment of the present application;
FIG. 5 is a schematic block diagram of another exemplary multi-meter parallel traversal test model for minute freeze of a multi-core module power meter;
fig. 6 is a flowchart of another multi-meter parallel traversal testing method for minute freezing of an electric energy meter of a multi-core module according to the embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below 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 the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
According to the published requirements in the single-phase multi-core modular function specification Q/GDW 1354-:
4.1.5 freezing
a) Freezing data such as electric energy, instantaneous quantity, self-monitoring error and the like according to a scheduled interval period. The total positive and negative active electric energy, voltage, current, frequency, one-minute average active power, one-minute average reactive power and power factor are stored for at least 1 year at intervals of 1 min. The forward fundamental wave total electric energy and the reverse fundamental wave total electric energy, the forward harmonic wave total electric energy and the reverse harmonic wave total electric energy and the four-quadrant reactive electric energy are stored for at least 1 year at intervals of 15 min.
b) The frozen content and the identifier should conform to DL/T698.45-2017, and the frozen content and the identifier are not allowed to be changed when being shipped from a factory, so that effective support is provided for data tracing. And (4) recommending the frozen object to be executed according to a recommended table for configuring the metering module of the electric energy meter A.2.
c) And the power failure moment misses the minute freezing moment, and the data can be frozen in the next minute of the power failure moment when the power is on.
d) The time is set in the future direction, the minute freezing moment is missed, and the next freezing moment before the time is modified is compensated. And (5) setting the time back to the historical direction, and covering the frozen data of the original minutes.
e) Considering that the minute freezing is used as legal data for tracing, and the reliability of data storage is guaranteed, each minute freezing record is recommended to be subjected to Cyclic Redundancy Check (CRC) Check storage.
During the ammeter production, need carry out function detection to the ammeter function, ensure that its function satisfies the standard requirement. During testing, if the requirement of the data storage function is satisfied, the testing time of the function of the electric energy meter is too long, so that the testing of the function requirement can be completed by modifying the time of the electric energy meter.
Most of the existing testing methods are that an upper computer directly performs data interaction on an electric energy meter through testing software, and the data interaction comprises setting of relevant time data and reading of frozen data. Taking the example of the related data stored once at the interval of 1min as an example, the number of the related time nodes is 525600 minutes (60 × 24 × 365 minutes 525600 minutes in 1 year), the electricity meter time needs to be modified 525600 times, the communication time of the PC and the electricity meter word is 300ms, and the time required for completing the function test is 525600 × 300(ms) ═ 157680(s) ═ 43.8 (h).
Because the time for testing the electric energy meter freezing function through the upper computer is longer at present, the application provides a parallel traversal testing method aiming at the requirement of overlong minute freezing testing time.
The application provides a how parallel traversal test method of freezing of multicore module electric energy meter minute is frozen carries out the data through the singlechip and freezes the test, present mainstream singlechip has a plurality of communication serial ports in order to satisfy user's demand, use STM32F10x series singlechip as an example, there are 2-5 uart communication serial ports in the different models of this series singlechip, the electric energy meter quantity of connecting can be 1 or a plurality of under each communication serial port, during the test, a plurality of communication serial ports are parallel, carry out communication modification time to the electric energy meter of hanging down simultaneously, carry out minute data storage test to multicore module electric energy meter.
Example one
As shown in figure 1, an intelligent electric energy meter is connected below each communication serial port of the single chip microcomputer, and the intelligent electric energy meters are in one-to-one correspondence with the communication serial ports of the single chip microcomputer. Issue operating command through the host computer and give the singlechip, the singlechip receives and carries out corresponding instruction after the instruction, operating command includes: entering an in-field mode instruction, setting a meter number instruction, leaving a factory mode instruction, setting a time instruction, freezing a data reading instruction and the like.
As shown in fig. 2, a multi-meter parallel traversal testing method for minute freezing of a multi-core module electric energy meter provided by the embodiment of the present application includes:
s101: and the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer.
S102: and the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the set time and the meter address.
After the electric energy meter and the equipment are powered on, the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer and sends a test data frame; and then the single chip microcomputer forwards a time setting instruction to the corresponding intelligent electric meter according to the setting time and the meter address, wherein the initial setting time is preset time, and the meter address can be obtained through two modes, one mode is a meter reading mode, and the other mode is a setting mode. The specific method for obtaining the meter address by the meter reading mode is shown in fig. 3:
s1021: and the upper computer sends a meter number reading command.
S1022: the single chip microcomputer forwards the meter number reading command to the corresponding serial port.
S1023: and judging whether the singlechip receives a correct reply frame.
S1024: if the single chip microcomputer receives the correct reply frame, the table address corresponding to the table number is stored in a table address cache region of the single chip microcomputer.
S1025: and the singlechip is used for framing according to the timestamp of the data frame sent by the upper computer and the cached table address and sending a time setting instruction to the corresponding intelligent electric meter.
When a meter address is obtained in a meter reading mode, the upper computer sends a meter number reading command, the single chip microcomputer forwards the meter number reading command to the corresponding intelligent electric meter, the intelligent electric meter responds to the single chip microcomputer and then stores the meter number reading command in a meter address cache region of the single chip microcomputer, a correct reply frame is set in a reply mode to the upper computer, then the upper computer sends a test starting command, the single chip microcomputer performs framing according to a timestamp of a data frame sent by the upper computer and the cached meter address, and starts sending a time setting command to the corresponding intelligent electric meter.
The specific method for obtaining the table address by the setting mode is shown in fig. 4:
s1121: and the upper computer sends a meter number setting command to the single chip microcomputer.
S1122: and the single chip microcomputer solidifies the meter address of the intelligent electric meter according to the meter address of the meter address cache region.
S1123: and judging whether the singlechip receives a correct reply frame.
S1124: and if the single chip microcomputer receives the correct reply frame, the single chip microcomputer sends a time setting instruction to the intelligent electric meter according to the timestamp of the data frame sent by the upper computer and the solidified meter address.
When obtaining the table address through the mode of setting up, the host computer sends the table number and sets up the order, the singlechip receives the table number address of the electric energy meter under each communication serial ports of direct solidification behind the table number setting order, the rethread these fixed table addresses carry out the communication, and reply and set up correct reply frame to the host computer, later the host computer sends and begin the test command, the singlechip carries out the framing according to the timestamp of host computer transmission data frame and the table address of solidification, begin to set up the order to corresponding smart electric meter transmission time.
S103: and judging whether the singlechip receives a reply frame with correct setting.
After the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the set time and the meter address, if the single chip microcomputer reads the corresponding meter address, a correct reply frame is set and replied to the single chip microcomputer, and step S104 is executed; and if the single chip microcomputer does not read the corresponding table address, sending an error reply frame to the upper computer, and returning to the step S101.
S104: and if the single chip microcomputer receives the reply frame with correct setting, delaying to wait for the electric energy meter to store for a period of minutes.
And if the single chip microcomputer receives the correctly set reply frame, the single chip microcomputer reads the corresponding meter address, and the corresponding intelligent electric energy meter delays to wait for the electric energy meter to store in a time-span manner. In this example, the delay time is related to the second time of the set time, specifically: the delay time is 60-seconds of the set time.
S105: and judging whether the time setting times reach a preset value or not.
After the time delay waiting electric energy meter is stored across minutes, whether the time setting times reach a preset value needs to be judged, for example, related data which requires to be stored once at an interval of 1min is taken as an example, the time node times are 525600 minutes (60 × 24 × 365 minutes is 525600 minutes in 1 year), and the time of the electric energy meter needs to be modified 525600 times, so that the preset value of the application can be 525600. If the time setting times do not reach the preset value, executing step S106; if the time-setting number of times reaches the preset value, step S107 is performed.
S106: and if the time setting times do not reach the preset value, updating the setting time, and sending a time setting instruction to the intelligent electric meter again according to the updated setting time until the time setting times reach the preset value.
If the time setting times do not reach the preset value, the electric energy meter is not tested completely, the test needs to be continued, the setting time is updated, the time setting instruction is sent to the intelligent electric meter again according to the updated setting time until the time setting times reach the preset value, and whether the data storage of one year in the short-term test meets the requirement or not is achieved. When the set time is updated, the singlechip directly adds one to the original time stamp to obtain new set time.
S107: and if the time setting times reach a preset value, the test is finished, and a test finished data frame is sent to the upper computer.
And if the time setting times reach a preset value, the test of the electric energy meter is finished, and a test finishing data frame is sent to the upper computer to realize the minute freezing test of the electric energy meter.
Example two
When a single serial port of the single chip microcomputer corresponds to one electric energy meter, after time is set for the electric energy meter corresponding to the serial port, the intelligent electric meter needs to wait for the transfer of data of the intelligent electric meter in a minute-crossing mode after a period of time. From the time utilization, this period of time is idle to the singlechip, consequently can articulate a plurality of electric energy meters under a serial ports, carries out cyclic communication to a plurality of electric energy meters, and the former latency of rational utilization improves efficiency of software testing.
As shown in fig. 5, a plurality of electric energy meters are connected below each communication serial port of the single chip microcomputer, and one communication serial port of the single chip microcomputer corresponds to the plurality of electric energy meters. Issue operating command through the host computer and give the singlechip, the singlechip receives and carries out corresponding instruction after the instruction, operating command includes: entering an in-field mode instruction, setting a meter number instruction, leaving a factory mode instruction, setting a time instruction, freezing a data reading instruction and the like.
As shown in fig. 6, another multi-meter parallel traversal testing method for minute freezing of a multi-core module electric energy meter provided in the embodiment of the present application includes:
s201: and the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer.
S202: and the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the first meter address.
The upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer and sends a test data frame after the electric meter and equipment are powered on; and then the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the first meter address, wherein the initial setting time is preset time, and the meter address can be obtained through two modes, one mode is a meter reading mode, and the other mode is a setting mode.
When a meter address is obtained in a meter reading mode, the upper computer sends a meter number reading command, the single chip microcomputer forwards the meter number reading command to the corresponding intelligent electric meter, the intelligent electric meter responds to the single chip microcomputer and then stores the meter number reading command in a meter address cache region of the single chip microcomputer, a correct reply frame is set in a reply mode to the upper computer, then the upper computer sends a test starting command, the single chip microcomputer conducts framing according to a timestamp of a data frame sent by the upper computer and a cached first meter address, and a time setting command is sent to the corresponding intelligent electric meter.
The method comprises the steps that a meter address is obtained through a setting mode, a meter number setting command is sent by an upper computer, the single chip microcomputer directly solidifies the meter number address of the electric energy meter under each communication serial port after receiving the meter number setting command, communication is conducted through the fixed meter addresses, correct reply frames are set in reply to the upper computer, then the upper computer sends a test starting command, the single chip microcomputer conducts framing according to a timestamp of a data frame sent by the upper computer and the solidified first meter address, and the smart electric meter starts to send a time setting command.
S203: and judging whether the singlechip receives a reply frame with correct setting.
After the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the first meter address, if the single chip microcomputer reads the corresponding meter address, a correct reply frame is set and replied to the single chip microcomputer, and step S204 is executed; and if the single chip microcomputer does not read the corresponding table address, sending an error reply frame to the upper computer, and returning to the step S201.
S204: and if the single chip microcomputer receives the reply frame with correct setting, starting to store the electric energy meter in a time-delay mode spanning minutes.
And if the single chip microcomputer receives the correctly set reply frame, the single chip microcomputer reads the corresponding meter address, and the corresponding intelligent electric energy meter delays to wait for the electric energy meter to store in a time-span manner. In this example, the delay time is related to the second time of the set time, specifically: the delay time is 60-seconds of the set time.
S205: and the single chip microcomputer sequentially sends time setting instructions to the corresponding intelligent electric meters according to the setting time and the residual meter addresses.
After the intelligent electric meter corresponding to the first meter address starts the time-delay storage of the electric energy meter in the number of minutes, the single chip microcomputer sequentially sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the remaining meter addresses. If 3 intelligent electric energy meters with different meter addresses are connected below one communication serial port of the single chip microcomputer, the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric energy meter according to the setting time and the second meter address or the third meter address.
S206: and judging whether the singlechip receives the reply frames with correct settings in sequence.
After the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the second meter address or the third meter address, if the single chip microcomputer reads the corresponding meter address, a correct reply frame is set and replied to the single chip microcomputer, and step S207 is executed; and if the single chip microcomputer does not read the corresponding table address, sending an error reply frame to the upper computer, and returning to the step S201.
S207: if the single chip microcomputer receives the reply frames with correct settings in sequence, whether the delay time is reached is judged.
And if the single chip microcomputer receives the correctly set reply frames in sequence, the single chip microcomputer reads the corresponding meter address, and the corresponding intelligent electric meter delays to wait for the electric energy meter to store in a time-span manner. Then judging whether the delay time is reached, if so, executing the step S208; if the delay time is not reached, step S207 is executed continuously.
S208: and if the delay time is up, stopping the cross-minute data delay.
And if the delay time is up, the completion of the data freezing of the electric energy meter in minutes is indicated, and the delay of the data crossing minutes is stopped.
S209: and judging whether the time setting times reach a preset value or not.
After the electric energy meter is stored for a time span of minutes, whether the time setting frequency reaches a preset value needs to be judged, and for example, the time node frequency is 525600 minutes by taking relevant data which is required to be stored for one time at 1min intervals as an example. If the time setting times do not reach the preset value, executing step S210; if the time-setting number of times reaches the preset value, step S211 is executed.
S210: and if the time setting times do not reach the preset value, updating the setting time, and sending a time setting instruction to the intelligent electric meter again according to the updated setting time until the time setting times reach the preset value.
If the time setting times do not reach the preset value, the electric energy meter is not tested completely, the test needs to be continued, the setting time is updated, the time setting instruction is sent to the intelligent electric meter again according to the updated setting time until the time setting times reach the preset value, and whether the data storage of one year in the short-term test meets the requirement or not is achieved. When the set time is updated, the singlechip directly adds one to the original time stamp to obtain new set time.
S211: and if the time setting times reach a preset value, the test is finished, and a test finished data frame is sent to the upper computer.
And if the time setting times reach a preset value, the test of the electric energy meter is finished, and a test finishing data frame is sent to the upper computer to realize the minute freezing test of the electric energy meter.
When a communication serial ports of singlechip articulates a plurality of smart electric meters, a plurality of smart electric meters can carry out cyclic communication, and the original latency of rational utilization reaches and utilizes test time completely, improves efficiency of software testing. In the actual detection process, a plurality of windows can be simultaneously carried out, so that the minute freezing traversal method of the multi-channel parallel multi-core module electric energy meter is realized, the test efficiency is effectively improved, and the test time is shortened.
Most of the existing testing methods are to directly perform data interaction on the electric energy meter through a host computer through testing software, and the data interaction comprises setting of relevant time data and reading of frozen data. Taking the example of the related data stored once at the interval of 1min as an example, the number of the related time nodes is 525600 (60 × 24 × 365 min 525600 min in 1 year), the electricity meter time needs to be modified 525600 times, the communication time of the PC and the electricity meter word is 300ms, and the time required for completing the function test is 525600 × 300ms 157680s 43.8 h. The multi-meter parallel traversal testing method for the multi-core module electric energy meter minute freezing provided by the embodiment of the application realizes the interaction of the data of the electric energy meter through the single chip microcomputer, the original upper computer communication setting method is replaced by using the lower computer to set the time of the electric energy meter, the processing speed of the single chip microcomputer is greatly improved compared with that of PC software, the communication time is about 100ms according to the baud rates of different communication serial ports, and the time for completing the function test is 525600 ms to 14.6h, so that the time required by the test is greatly reduced, and the test efficiency is effectively improved.
Based on the multi-meter parallel traversal test method for the multi-core module electric energy meter minute freezing in the embodiment, the embodiment of the application further provides a multi-meter parallel traversal test system for the multi-core module electric energy meter minute freezing.
The multi-meter parallel traversal test system for the multi-core module electric energy meter minute freezing provided by the embodiment of the application comprises:
and the upper computer is in communication connection with the single chip microcomputer and is used for sending the time setting instruction of the intelligent electric meter to the single chip microcomputer.
And the single chip microcomputer is provided with a plurality of communication serial ports, the communication serial ports are in communication connection with the intelligent electric meter and used for forwarding time setting instructions to the corresponding intelligent electric meter according to the setting time and the meter address, and when the time setting instructions are correctly set, the single chip microcomputer delays to wait for the electric energy meter to store in a time-spanning mode until the time setting times reach a preset value. In this example, each communication serial port of the single chip microcomputer can be connected with the intelligent electric meters in a one-to-one correspondence manner, and can also be connected with a plurality of intelligent electric meters.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
The above-described embodiments of the present application do not limit the scope of the present application.

Claims (8)

1. A multi-meter parallel traversal testing method for minute freezing of an electric energy meter with a multi-core module is characterized by comprising the following steps:
the upper computer sends a time setting instruction of the intelligent electric meter to the single chip microcomputer;
the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the meter address, the upper computer sends a meter number setting command to the single chip microcomputer, and the single chip microcomputer solidifies the meter address of the intelligent electric meter according to the meter address of the meter address cache region;
judging whether the single chip microcomputer receives a correct reply frame;
if the single chip microcomputer receives the correct reply frame, the single chip microcomputer sends a time setting instruction to the intelligent electric meter according to the timestamp of the data frame sent by the upper computer and the solidified meter address;
judging whether the single chip microcomputer receives a reply frame with correct setting;
if the single chip microcomputer receives a reply frame with correct setting, delaying to wait for the electric energy meter to store for a period of minutes;
judging whether the time setting times reach a preset value or not;
if the time setting times do not reach a preset value, updating the setting time, and sending a time setting instruction to the intelligent ammeter again according to the updated setting time until the time setting times reach the preset value;
and if the time setting times reach a preset value, the test is finished, and a test finished data frame is sent to the upper computer.
2. The multi-meter parallel traversal testing method for the minute freezing of the multi-core module electric energy meter according to claim 1, wherein the step of sending a time setting instruction to the corresponding intelligent electric meter by the single chip microcomputer according to the setting time and the meter address comprises the following steps:
the upper computer sends a meter number reading command;
the single chip microcomputer forwards the meter number reading command to a corresponding serial port;
judging whether the single chip microcomputer receives a correct reply frame;
if the single chip microcomputer receives the correct reply frame, storing a table address corresponding to the table number to a table address cache region of the single chip microcomputer;
and the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the timestamp of the data frame sent by the upper computer and the cached table address framing.
3. The multi-meter parallel traversal testing method for multi-core module electric energy meter minute freezing of claim 1, wherein the delay waiting for the electric energy meter to store across minutes comprises:
the delay time is the difference between the second time of one minute and the second time of the set time.
4. The multi-meter parallel traversal test method for minute freeze of a multi-core module electric energy meter as claimed in claim 1, wherein updating the set time comprises:
and the singlechip directly adds 1 to the preset time and minutes to update the set time.
5. A multi-meter parallel traversal testing method for minute freezing of an electric energy meter with a multi-core module is characterized by comprising the following steps:
the method comprises the following steps that a plurality of intelligent electric energy meters with different meter addresses are hung below a communication serial port of a single chip microcomputer, and after the electric energy meters and equipment are powered on, an upper computer sends an intelligent electric meter time setting instruction to the single chip microcomputer;
the single chip microcomputer sends a time setting instruction to the corresponding intelligent electric meter according to the setting time and the first meter address;
judging whether the single chip microcomputer receives a reply frame with correct setting;
if the single chip microcomputer receives a reply frame with correct setting, starting to store the electric energy meter in a time-delay mode spanning minutes;
the single chip microcomputer sequentially sends time setting instructions to the corresponding intelligent electric meters according to the setting time and the residual meter addresses;
judging whether the single chip microcomputer receives correctly set reply frames in sequence;
if the single chip microcomputer receives the correctly set reply frames in sequence, judging whether the delay time is up;
if the delay time is up, stopping the data delay of the cross-minute;
judging whether the time setting times reach a preset value or not;
if the time setting times do not reach a preset value, updating the setting time, and sending a time setting instruction to the intelligent ammeter again according to the updated setting time until the time setting times reach the preset value;
and if the time setting times reach a preset value, the test is finished, and a test finished data frame is sent to the upper computer.
6. The utility model provides a many meters of freezing of multicore module electric energy meter minute are parallel to be traversed test system which characterized in that includes:
the upper computer is in communication connection with the single chip microcomputer and is used for sending a time setting instruction of the intelligent electric meter to the single chip microcomputer;
and the single chip microcomputer is provided with a plurality of communication serial ports, the communication serial ports are in communication connection with the intelligent electric meter and are used for forwarding time setting instructions to the corresponding intelligent electric meter according to the setting time and the meter address, and when the time setting instructions are correctly set, the single chip microcomputer delays to wait for the electric energy meter to store in a time-spanning mode until the time setting times reach a preset value.
7. The multi-core module electric energy meter minute freezing multi-meter parallel traversal test system as claimed in claim 6, wherein each communication serial port is connected with the smart meters in a one-to-one correspondence manner.
8. The multi-meter parallel traversal test system for minute freeze of a multi-core module electric energy meter as claimed in claim 6, wherein each communication serial port is connected to a plurality of the smart meters.
CN202010111110.0A 2020-02-24 2020-02-24 Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing Active CN111239675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010111110.0A CN111239675B (en) 2020-02-24 2020-02-24 Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010111110.0A CN111239675B (en) 2020-02-24 2020-02-24 Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing

Publications (2)

Publication Number Publication Date
CN111239675A CN111239675A (en) 2020-06-05
CN111239675B true CN111239675B (en) 2022-04-12

Family

ID=70869296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010111110.0A Active CN111239675B (en) 2020-02-24 2020-02-24 Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing

Country Status (1)

Country Link
CN (1) CN111239675B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395012B (en) * 2020-11-03 2024-02-27 南方电网数字电网科技(广东)有限公司 Data emptying method and device based on double-core intelligent ammeter and computer equipment
CN112887171B (en) * 2021-02-03 2022-07-29 南方电网数字电网研究院有限公司 Response rate testing method and device of electric energy meter operating system and computer equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4817131A (en) * 1986-06-20 1989-03-28 Badger Meter, Inc. Automatic meter reading system
CN2793730Y (en) * 2005-05-11 2006-07-05 南京迪玛斯电气有限公司 Collective recording device for resident kilowatt meters
CN201364350Y (en) * 2008-07-31 2009-12-16 方建军 Remote centralization meter checking system
CN101876694A (en) * 2009-11-24 2010-11-03 湖北省电力试验研究院 Configuration software based function detection device of multifunctional electric energy meter and method thereof
CN102468984A (en) * 2010-10-29 2012-05-23 北京市电力公司 Method and system for testing electricity consumption information acquisition system, and master station
CN102645644A (en) * 2012-05-16 2012-08-22 北京北研兴电力仪表有限责任公司 Function test device of intelligent electric energy meter
CN102759724A (en) * 2012-07-19 2012-10-31 浙江省电力公司电力科学研究院 Testing method and system for communication reliability of intelligent electric energy meters
CN106600936A (en) * 2016-12-30 2017-04-26 武汉盛帆智能科技有限公司 Centralized multi-meter reading method and device
CN206282421U (en) * 2016-11-28 2017-06-27 重庆高略联信智能技术有限公司 The parallel intelligent wireless ammeter's reading meter repeater of multi-frequency
CN107153638A (en) * 2017-05-31 2017-09-12 广西电网有限责任公司电力科学研究院 A kind of intelligent processing system of the calibrating data of electric energy meter device
CN108520624A (en) * 2018-05-08 2018-09-11 国网安徽省电力有限公司 A kind of low-voltage intelligent acquires the double channels acquisition method of complexes and low pressure acquisition
CN108732977A (en) * 2018-08-30 2018-11-02 四川中电启明星信息技术有限公司 A kind of collecting method and system
CN109614447A (en) * 2018-10-15 2019-04-12 国网新疆电力有限公司阿克苏供电公司 A kind of intelligent electric meter divides the storage method, querying method and device of freezing data

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4817131A (en) * 1986-06-20 1989-03-28 Badger Meter, Inc. Automatic meter reading system
CN2793730Y (en) * 2005-05-11 2006-07-05 南京迪玛斯电气有限公司 Collective recording device for resident kilowatt meters
CN201364350Y (en) * 2008-07-31 2009-12-16 方建军 Remote centralization meter checking system
CN101876694A (en) * 2009-11-24 2010-11-03 湖北省电力试验研究院 Configuration software based function detection device of multifunctional electric energy meter and method thereof
CN102468984A (en) * 2010-10-29 2012-05-23 北京市电力公司 Method and system for testing electricity consumption information acquisition system, and master station
CN102645644A (en) * 2012-05-16 2012-08-22 北京北研兴电力仪表有限责任公司 Function test device of intelligent electric energy meter
CN102759724A (en) * 2012-07-19 2012-10-31 浙江省电力公司电力科学研究院 Testing method and system for communication reliability of intelligent electric energy meters
CN206282421U (en) * 2016-11-28 2017-06-27 重庆高略联信智能技术有限公司 The parallel intelligent wireless ammeter's reading meter repeater of multi-frequency
CN106600936A (en) * 2016-12-30 2017-04-26 武汉盛帆智能科技有限公司 Centralized multi-meter reading method and device
CN107153638A (en) * 2017-05-31 2017-09-12 广西电网有限责任公司电力科学研究院 A kind of intelligent processing system of the calibrating data of electric energy meter device
CN108520624A (en) * 2018-05-08 2018-09-11 国网安徽省电力有限公司 A kind of low-voltage intelligent acquires the double channels acquisition method of complexes and low pressure acquisition
CN108732977A (en) * 2018-08-30 2018-11-02 四川中电启明星信息技术有限公司 A kind of collecting method and system
CN109614447A (en) * 2018-10-15 2019-04-12 国网新疆电力有限公司阿克苏供电公司 A kind of intelligent electric meter divides the storage method, querying method and device of freezing data

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
新一代智能电能表支撑泛在电力物联网技术研究;彭楚宁 等;《电测与仪表》;20190810;第56卷(第15期);第137-142页 *
智能电力抄表***集中器的设计与实现;刘友旗;《贵州大学学报(自然科学版)》;20101231;第27卷(第6期);第86-91页 *
自动抄表管理***;胡令超;《中国优秀博硕士学位论文全文数据库(硕士) 信息科技辑》;20120415(第04期);I138-959-正文第16-18页 *

Also Published As

Publication number Publication date
CN111239675A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN111239675B (en) Multi-meter parallel traversal test method and system for multi-core module electric energy meter minute freezing
CN110829590B (en) Intelligent monitoring system, method, platform and storage medium for line loss of transformer area
CN103577926B (en) A kind of method that realizes the calculating in real time of large scale electric network theory wire loss and high accuracy
CN101458286A (en) Phasor measuring set based on in situ spectroscopic analysis and applied wide domain measuring system
CN112034413A (en) Multi-core modular electric energy meter detection system
CN110867956A (en) Topology automatic identification system and method based on intelligent platform area
CN116154765A (en) Power topological relation identification method and device, computer equipment and storage medium
CN107843870B (en) Method and system for detecting correctness of metering load curve of electric meter
CN106557550B (en) Method and device for realizing rapid storage, retrieval and completion of self-description fixed-point records of power distribution terminal
CN104699553A (en) Clock self-recovery method after failure in acquiring terminal clock battery with electrical information
CN109298698B (en) Full-automatic monitoring system for energy consumption of public building
CN108510164B (en) Online generation method for external network equivalent model of designated area in power system
CN110992671B (en) Ammeter address forwarding method, device and system and electronic equipment
CN203012949U (en) Novel field electricity meter acquiring system
CN116108740A (en) Modeling method and device for power equipment
CN109270360B (en) Method for calculating online line loss with high precision
CN114358553A (en) Power grid rate time interval setting system
CN210244613U (en) Device based on thing networking ammeter collection system
CN103516050A (en) Information collector of distribution network switching station
CN113361983A (en) High-loss transformer area technology cause diagnosis method and system
CN113933739A (en) Direct current fault recording device and fault recording method
CN113642988A (en) Multi-working-condition multi-type energy storage power station cost benefit analysis method and setting system
CN112866830A (en) Meter reading method and device
CN209342888U (en) Work condition analogue battery test circuit
CN114944052B (en) Automatic test method and system for meter reading stability of electricity acquisition terminal

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