CN112345999B - Electric energy meter, load record generation method thereof and computer readable storage medium - Google Patents

Electric energy meter, load record generation method thereof and computer readable storage medium Download PDF

Info

Publication number
CN112345999B
CN112345999B CN202011101355.1A CN202011101355A CN112345999B CN 112345999 B CN112345999 B CN 112345999B CN 202011101355 A CN202011101355 A CN 202011101355A CN 112345999 B CN112345999 B CN 112345999B
Authority
CN
China
Prior art keywords
electric energy
energy meter
load record
load
record
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
CN202011101355.1A
Other languages
Chinese (zh)
Other versions
CN112345999A (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.)
Wasion Group Co Ltd
Original Assignee
Wasion Group 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 Wasion Group Co Ltd filed Critical Wasion Group Co Ltd
Priority to CN202011101355.1A priority Critical patent/CN112345999B/en
Publication of CN112345999A publication Critical patent/CN112345999A/en
Application granted granted Critical
Publication of CN112345999B publication Critical patent/CN112345999B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries

Abstract

The invention discloses an electric energy meter, a load record generation method thereof and a computer readable storage medium. The load record generation method of the electric energy meter comprises the following steps: when the electric energy meter is detected to enter a test mode, acquiring first current time of the electric energy meter; determining a first generation time sequence of the load record according to the first current time and a preset rule; and sequentially adjusting the time of the electric energy meter to each generation time point in the first generation time sequence, and freezing target data of the electric energy meter at the adjusted generation time point to generate a load record. The invention can shorten the time for generating the load record.

Description

Electric energy meter, load record generation method thereof and computer readable storage medium
Technical Field
The invention relates to the technical field of electric energy meter measurement, in particular to an electric energy meter, a load record generation method thereof and a computer readable storage medium.
Background
With the development of economy in China and the continuous popularization of electric appliances, the requirements of enterprises and residents on electric power are increasingly improved, and the requirements on electric energy metering and efficiency are also increasingly high. The accuracy of the electric energy meter, which is used as a main measuring instrument for electric energy measurement, is very important for enterprises, residents and power supply departments.
The functional test is an important means for ensuring the accuracy of the electric energy meter, and the load record is used as the experimental data of the functional test of the electric energy meter, so that the more the data is, the higher the accuracy of the functional test result is.
In the existing load record generation scheme, an external host is communicated with an electric energy meter, and the time of the electric energy meter is modified to generate load records. Therefore, how to shorten the time for generating the load record is a problem that needs to be solved at present.
Disclosure of Invention
The invention mainly aims to provide an electric energy meter, a load record generation method thereof and a computer readable storage medium, aiming at shortening the time for generating load records.
In order to achieve the above object, the present invention provides a load record generating method for an electric energy meter, the load record generating method for an electric energy meter comprising:
when the electric energy meter is detected to enter a test mode, acquiring first current time of the electric energy meter;
determining a first generation time sequence of the load record according to the first current time and a preset rule;
and sequentially adjusting the time of the electric energy meter to each generation time point in the first generation time sequence, and freezing target data of the electric energy meter at the adjusted generation time point to generate a load record.
Optionally, the load record generating method further includes:
when a test mode exit instruction is received, switching the operation mode of the electric energy meter to a normal mode;
acquiring second current time of the electric energy meter, and determining a second generation time sequence of the load record according to the second current time and the preset rule;
and when the real-time is detected to be any time point in the second generation time sequence, target data of the electric energy meter at any generation time point in the second generation time sequence is frozen to generate a load record.
Optionally, the load record generating method further includes:
and when the switching of the running mode of the electric energy meter is detected, clearing the historical load record of the storage area to store the generated load record into the cleared storage area.
Optionally, the load record generating method further includes:
acquiring the number of current load records in real time, and detecting whether the number reaches a preset threshold value;
and if the number reaches a preset threshold value, executing load record verification operation.
Optionally, the step of performing a load record verification operation includes:
acquiring an initial time point from the first generation time sequence as a target time point;
generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result;
sequentially acquiring next time points from the generated time sequence as the target time points, and executing the following steps: and generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result until the load record is inquired in a traversing manner to obtain a final inquiry result.
Optionally, the step of querying the load record according to the record search command to obtain an intermediate query result includes:
putting the record searching command into a communication port drive cache of the electric energy meter so as to start a load recording module of the electric energy meter;
and inquiring the load record according to the record searching command through the load record module to obtain an intermediate inquiry result.
Optionally, the final query result includes an intermediate query result corresponding to each target time point, and the load record generating method further includes:
detecting whether all the intermediate query results in the final query result are successfully searched;
if all the intermediate query results are successfully searched, generating prompt information without error in verification;
and if at least one of the intermediate query results is failed, acquiring load record information of which the intermediate query result is failed, and generating corresponding verification error prompt information according to the load record information.
Optionally, the load record generating method further includes:
when a load record query instruction is received, acquiring target query time according to the load record query instruction;
and generating a target query command according to the target query time, querying the load record according to the target query command to obtain a target query result, and returning the target query result to a query end corresponding to the load record query command.
In addition, to achieve the above object, the present invention also provides an electric energy meter, including: the load record generation method comprises the steps of the load record generation method of the electric energy meter, wherein the load record generation method comprises the following steps of storing the load record of the electric energy meter in a memory, storing the load record generation program in the memory and running on the processor, and executing the load record generation program by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a load record generation program which, when executed by a processor, implements the steps of the load record generation method of the electric energy meter as described above.
The invention provides an electric energy meter, a load record generation method thereof and a computer readable storage medium, wherein when the electric energy meter is detected to enter a test mode, first current time of the electric energy meter is obtained; then, determining a first generation time sequence of the load record according to the first current time and a preset rule; further, the time of the electric energy meter is sequentially adjusted to each generation time point in the first generation time sequence, and the target data of the electric energy meter at the adjusted generation time point is frozen to generate the load record. By the mode, automatic generation of the load record can be realized, the scheme in the embodiment of the invention does not need to communicate with an external host, and the generation time only depends on the adjustment interval time, so that the time for generating the load record can be greatly saved, and the generation efficiency is improved. In addition, the condition that the load recording of partial time points is lost due to unreliable communication in the prior art can be avoided.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a load record generation method of an electric energy meter according to the present invention;
fig. 3 is a flowchart illustrating a load record generating method of an electric energy meter according to a second embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal equipment of the embodiment of the invention is an electric energy meter.
As shown in fig. 1, the electric energy meter may include: a processor 1001, such as a CPU, a communication bus 1002, a network interface 1003, and a memory 1004. The communication bus 1002 is used to implement connection communication among these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the power meter configuration shown in fig. 1 does not constitute a limitation of the power meter and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1004, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, and a load record generation program.
In the terminal shown in fig. 1, the network interface 1003 is mainly used for connecting to other device terminals (such as a background server, an inquiry terminal, and the like) and performing data communication with the other device terminals; and the processor 1001 may be configured to call the load record generation program stored in the memory 1004 and perform the following operations:
when the electric energy meter is detected to enter a test mode, acquiring first current time of the electric energy meter;
determining a first generation time sequence of the load record according to the first current time and a preset rule;
and sequentially adjusting the time of the electric energy meter to each generation time point in the first generation time sequence, and freezing target data of the electric energy meter at the adjusted generation time point to generate a load record.
Further, the processor 1001 may call the load record generation program stored in the memory 1004, and also perform the following operations:
when a test mode exit instruction is received, switching the running mode of the electric energy meter to a normal mode;
acquiring second current time of the electric energy meter, and determining a second generation time sequence of the load record according to the second current time and the preset rule;
and when the real-time is detected to be any time point in the second generation time sequence, target data of the electric energy meter at any generation time point in the second generation time sequence is frozen to generate a load record.
Further, the processor 1001 may call the load record generation program stored in the memory 1004, and also perform the following operations:
and when the switching of the running mode of the electric energy meter is detected, clearing the historical load record of the storage area to store the generated load record into the cleared storage area.
Further, the processor 1001 may call the load record generation program stored in the memory 1004, and also perform the following operations:
acquiring the number of current load records in real time, and detecting whether the number reaches a preset threshold value;
and if the number reaches a preset threshold value, executing load record verification operation.
Further, the processor 1001 may call the load record generation program stored in the memory 1004, and also perform the following operations:
acquiring an initial time point from the first generation time sequence as a target time point;
generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result;
sequentially acquiring next time points from the generated time sequence as the target time points, and executing the following steps: and generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result until the load record is inquired in a traversing manner to obtain a final inquiry result.
Further, the processor 1001 may call the load record generation program stored in the memory 1004, and also perform the following operations:
sending the record searching command to a communication port drive cache of the electric energy meter so as to start a load recording module of the electric energy meter;
and querying the load record according to the record searching command through the load record module to obtain an intermediate query result.
Further, the final query result includes an intermediate query result corresponding to each target time point, and the processor 1001 may call the load record generation program stored in the memory 1004, and further perform the following operations:
detecting whether all the intermediate query results in the final query result are successfully searched;
if all the intermediate query results are successfully searched, generating prompt information without error in verification;
and if at least one of the intermediate query results is failed, acquiring load record information of which the intermediate query result is failed, and generating corresponding prompt information of verification errors according to the load record information.
Further, the processor 1001 may call the load record generation program stored in the memory 1004, and also perform the following operations:
when a load record query instruction is received, acquiring target query time according to the load record query instruction;
and generating a target query command according to the target query time, querying the load record according to the target query command to obtain a target query result, and returning the target query result to a query end corresponding to the load record query command.
Based on the hardware structure, the invention provides various embodiments of the load record generation method of the electric energy meter.
The invention provides a load record generation method of an electric energy meter.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a load record generation method of an electric energy meter according to the present invention.
In this embodiment, the load record generating method of the electric energy meter includes:
step S10, when detecting that the electric energy meter enters a test mode, acquiring first current time of the electric energy meter;
in the existing load record generation scheme, an external host is communicated with an electric energy meter, and the time of the electric energy meter is modified to generate a load record. The time required for generating one load record by the scheme at least needs 3 seconds, and the method specifically comprises the following steps: first, the process of communicating the external host with the power meter takes 1-2 seconds. The process comprises the steps that an external host generates a time modification command message, the external host sends the time modification command message to the electric energy meter through a communication port of the electric energy meter, the electric energy meter receives the command from a communication port drive receiving cache and analyzes and executes the time modification command, the time of the electric energy meter is modified to the time specified by the command, and the electric energy meter constructs a response message and sends the response message to the external host. Secondly, the command of changing the time of the external host can only change the time to 59 seconds of the previous 1 minute of the next freezing point, and the electric energy meter needs to run for at least 1 second to reach the next freezing point to generate a load record. For example, the next freezing point is 2020, 7, 20, 13 and 00, the external host can only issue a time change command to change the electricity meter to 59 in 2020, 7, 20, and 12, and the external host needs to run for 1 second to 13 in 2020, 7, and 20, 00 to freeze and generate a load record.
Since the calibration standard for load records is generally 28800 load records, if one load record calculation is generated in 3 seconds, 28800 load records require 86400 seconds, namely 1 day. And even if the meter time is changed at such a frequency, such a test cannot guarantee that every time change command is received and successfully responded to by the power meter, since every external communication is not reliable.
Therefore, the existing load record generation scheme takes a long time, and in addition, the time actually required to generate the load record may be longer due to unreliable external communication. Moreover, the communication is unsuccessful, which results in the loss of the load record at some time points, which is extremely disadvantageous for the verification of the subsequent load record.
Therefore, the technical scheme provided by the invention can directly acquire the current time after the electric energy meter enters the test mode by rewriting the software program, determine the generation time sequence of the load record according to the current time, further sequentially adjust the time of the electric energy meter to each generation time point in the generation time sequence, and freeze the target data of the electric energy meter at the adjusted generation time point to generate the load record. Through the mode, automatic generation of load records can be realized, the scheme in the embodiment of the invention does not need to communicate with an external host, the generation time only depends on the adjustment interval time, if the time of the electric energy meter is adjusted every 100ms, one record can be generated every 100ms, and 28800 records can be generated only in 2880 seconds (28800 x 100ms =2880 seconds), namely 48 minutes. In addition, the scheme of the embodiment of the invention does not need to communicate with an external host, so that the condition that the load records of partial time points are missed due to unreliable communication in the prior art can be avoided.
The load record generation method of the electric energy meter of the embodiment is realized by the electric energy meter. In this embodiment, when it is detected that the electric energy meter enters the test mode, the current time of the electric energy meter is obtained, and is distinguished from the subsequent current time of switching to the normal mode, and the current time is recorded as the first current time.
Step S20, determining a first generation time sequence of the load record according to the first current time and a preset rule;
then, a first generation time series of the load records is determined according to the first current time and a preset rule. Specifically, an initial generation time point may be determined according to the first current time, and then the first generation time series of the load record may be determined based on the initial generation time point and a preset rule. The generation time point of the load record is a time point which can be divided by the load record storage interval, and if the load record storage interval is 15 minutes, the generation time point of the load record is 4 time points of 0 minute, 15 minutes, 30 minutes and 45 minutes per hour. The preset rule may be preset based on a calibration standard of the electric energy meter, and includes a detection frequency and a detection number, for example, the calibration standard is to freeze data every 15min and calibrate 28800 records, and correspondingly, the detection frequency may be set every 15min, and the detection number is greater than or equal to the calibration number (greater than this, in order to avoid the situation that load records are obtained without freezing, and the total number of the load records cannot reach the calibration number).
For example, taking the above criteria as an example, if the first current time is 2020 and 7, 20 and 12, then the initial generation time point is determined to be 2020-7 to 20-00: 2020-7-20 13.
And S30, sequentially adjusting the time of the electric energy meter to each generation time point in the first generation time sequence, and freezing target data of the electric energy meter at the adjusted generation time point to generate a load record.
Then, the time of the electric energy meter is sequentially adjusted to each generation time point in the first generation time sequence, and target data of the electric energy meter at the adjusted generation time points are frozen to generate a load record. Wherein, the data to be frozen is the data of the related object, such as voltage, and can be specifically set according to the verification requirement; the load record includes the point in time of generation and its target data.
Of course, it can be understood that, in a specific implementation, the first generation time sequence may not need to be generated at one time, the time of the electric energy meter may be adjusted to the initial generation time point, after the corresponding load record is obtained, the next generation time point is determined (the next generation time point is the current time plus load record storage interval), and then the time of the electric energy meter is adjusted to the next generation time point, so as to obtain the corresponding load record, and so on, so as to obtain the load record of each generation time point.
The embodiment of the invention provides a load record generation method of an electric energy meter, which comprises the steps of acquiring first current time of the electric energy meter when the electric energy meter is detected to enter a test mode; then, determining a first generation time sequence of the load record according to the first current time and a preset rule; further, the time of the electric energy meter is sequentially adjusted to each generation time point in the first generation time sequence, and the target data of the electric energy meter at the adjusted generation time points is frozen to generate the load record. By the mode, automatic generation of the load record can be realized, the scheme in the embodiment of the invention does not need to communicate with an external host, and the generation time only depends on the adjustment interval time, so that the time for generating the load record can be greatly saved, and the generation efficiency is improved. In addition, the condition that the load recording of partial time points is lost due to unreliable communication in the prior art can be avoided.
Further, based on the first embodiment described above, a second embodiment of the load record generation method of the electric energy meter of the present invention is proposed. Referring to fig. 3, fig. 3 is a schematic flow chart of a load record generating method of an electric energy meter according to a second embodiment of the present invention.
In this embodiment, the load record generating method further includes:
step S40, when a test mode exit instruction is received, switching the running mode of the electric energy meter to a normal mode;
in this embodiment, when the test mode exit instruction is received, the operation mode of the electric energy meter is switched to the normal mode.
Step S50, acquiring second current time of the electric energy meter, and determining a second generation time sequence of the load record according to the second current time and the preset rule;
and then, acquiring the current time of the electric energy meter in the switching mode, distinguishing the current time from the current time of the electric energy meter in the switching mode, recording the current time as second current time, and then determining a second generation time sequence of the load record according to the second current time and a preset rule. The process of determining the second generated time sequence is consistent with the process of determining the first generated time sequence, and reference may be made to the first embodiment, which is not described herein again.
Step S60, acquiring real-time of the electric energy meter, and freezing target data of the electric energy meter at any generation time point in the second generation time sequence when the real-time is detected to be any time point in the second generation time sequence so as to generate a load record.
And further, acquiring the real-time of the electric energy meter, and freezing the target data of the electric energy meter at any generation time point in the second generation time sequence when the real-time is detected to be any time point in the second generation time sequence so as to generate a load record.
Specifically, when detecting whether the real-time is a certain time point of the second generated time sequence, the real-time of the electric energy meter may be compared with a first generated time point (a generated time point arranged at a first position) in the current second generated time sequence, and if the comparison is successful (i.e., the real-time is the same as the first generated time point), the first generated time point may be deleted to update the second generated time sequence, so as to facilitate subsequent comparison; if the comparison fails, whether the real-time point is smaller than the first generation time point can be detected, if so, the real-time of the electric energy meter is continuously acquired, if so, whether the real-time point is smaller than a second generation time point in the current second generation time sequence is continuously detected, and if not, the first generation time point is deleted to update the second generation time sequence so as to facilitate subsequent comparison.
In addition, in the present embodiment, the load record is generated from the generation time point obtained by matching and the target data corresponding to the generation time point.
In this embodiment, when the operation mode of the electric energy meter is switched to the normal mode, a corresponding second generation time sequence is generated, the real-time of the electric energy meter is acquired, and when it is detected that the real-time is any time point in the second generation time sequence, the target data of the electric energy meter at any generation time point in the second generation time sequence is frozen to generate the load record. By the mode, the load record under the normal mode of the electric energy meter can be automatically generated.
Further, based on the first and second embodiments described above, a third embodiment of the load record generation method of the electric energy meter of the present invention is proposed.
In this embodiment, the load record generating method further includes:
and step A, when the switching of the operation mode of the electric energy meter is detected, clearing the historical load record of the storage area so as to store the generated load record into the cleared storage area.
In this embodiment, when it is detected that the operation mode of the electric energy meter is switched, that is, the test mode is switched to the normal mode or the normal mode is switched to the test mode, the historical load record of the storage area may be cleared, that is, the load record generated in the previous mode is cleared, and then the load record generated in the current mode is stored in the storage area after the clearing.
By the method, the load data generated in the previous mode can be prevented from being mixed with the load data generated in the current mode, so that the accuracy of the subsequent data detection result and the accuracy of the verification result of the load record can be ensured.
Further, based on the first embodiment described above, a fourth embodiment of the load record generation method of the electric energy meter of the present invention is proposed.
In this embodiment, after the step S30, the method further includes:
step B, acquiring the number of current load records in real time, and detecting whether the number reaches a preset threshold value;
in this embodiment, the number of current load records is obtained in real time, and whether the number reaches a preset threshold is detected, where the preset threshold is preset based on the calibration standard of the electric energy meter, that is, the number is calibrated 28800 times.
If the number reaches a preset threshold, executing the step C: and executing load record verification operation.
If the number reaches a preset threshold value, the load record is generated completely, and at the moment, the load record verification operation can be executed, namely self-verification is carried out.
Specifically, the step C includes:
step C1, acquiring an initial time point from the first generation time sequence as a target time point;
step C2, generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result;
in this embodiment, an initial time point is obtained from the first generation time sequence as a target time point; and then, generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result. In the query, it is queried whether the load record corresponding to the target query time in the record search command exists or not, and whether the data of the load record exists or not, and certainly, it may also be detected whether the data meets the preset requirement or not, and the intermediate query result may be a query success or a query failure.
As an implementation, during the query, the query program may be rewritten, and then the load record may be queried according to the record search command, so as to obtain an intermediate query result.
As another embodiment, step C2 includes:
step C21, the record searching command is put into a communication port drive cache of the electric energy meter so as to start a load recording module of the electric energy meter to perform record query;
and step C22, inquiring the load record through the load record module according to the record searching command to obtain an intermediate inquiry result.
As another embodiment, during query, the record searching command is put into a communication port drive cache of the electric energy meter to start a load recording module of the electric energy meter; and then, querying the load record through a load record module according to the record searching command to obtain an intermediate query result. By the method, the query program does not need to be rewritten, only the code for placing the record searching command into the communication port drive cache of the electric energy meter needs to be added, and the code of the query part can be used for prolonging the original code, so that the development efficiency can be improved, the development time can be saved, and the ROM and RAM resources of the electric energy meter processor can be saved.
Step C3, sequentially obtaining next time points from the generated time sequence as the target time points, and executing step C2: generating a record searching command according to the target time point, inquiring the load record according to the record searching command to obtain an intermediate inquiry result until the load record is inquired in a traversing way to obtain a final inquiry result, and by the mode, traversing verification can be completed on all 28800 records, and if the 28800 records are inquired in a master station terminal communication mode, at least 28800 times of communication is needed, so that the verification time of the 28800 records can be greatly saved, and the test efficiency is improved.
After obtaining the intermediate query result corresponding to the initial time point, sequentially obtaining the next time point from the generated time sequence as a target time point, and continuously executing: and generating a record searching command according to the target time point, inquiring the load record according to the record searching command to obtain an intermediate inquiry result until the load record is inquired in a traversing manner, and obtaining a final inquiry result. That is, the generation time points of the first generation time series are sequentially acquired, and the corresponding record search command is generated for searching.
Of course, it will be appreciated that the self-assay protocol described above is equally applicable to the normal mode.
In this embodiment, a record search command is automatically constructed, the constructed record search command is placed in a communication port drive cache of the electric energy meter, a message of a load record data reading command read by the master station is simulated, and all load records are searched in a protocol manner to obtain a query result, so as to verify whether the load records meet requirements. By the aid of the method, automatic verification of the load record can be realized, verification time can be greatly saved and verification efficiency is improved compared with a method of performing verification through external communication.
Further, based on the fourth embodiment, a fifth embodiment of the load record generation method of the electric energy meter according to the present invention is provided.
In this embodiment, the final query result includes an intermediate query result corresponding to each target time point, and after step C3 in the fourth embodiment, the method further includes:
step D, detecting whether all the intermediate query results in the final query result are successfully searched;
if all the intermediate query results are found successfully, executing the step E1: generating prompt information without error in verification;
if at least one of the intermediate query results is a query failure, executing step E2: and acquiring load record information with the intermediate query result as the failed query result, and generating corresponding verification error prompt information according to the load record information.
In this embodiment, after the final query result (i.e., the intermediate query result corresponding to the load record of each target time point) is obtained, it may be detected whether each intermediate query result in the final query result is a successful search; if all the intermediate query results are successfully searched, generating prompt information without error in verification; if at least one of the intermediate query results is failed, acquiring load record information of which the intermediate query result is failed, and generating corresponding verification error prompt information according to the load record information to prompt a worker about the query error and the error condition so as to facilitate the worker to analyze and detect in time.
Further, based on the first embodiment described above, a sixth embodiment of the load record generation method of the electric energy meter of the present invention is proposed.
In this embodiment, the load record generating method further includes:
step F, when a load record query instruction is received, acquiring target query time according to the load record query instruction;
in this embodiment, the electric energy meter may support both automatic verification and manual verification, and verification is usually performed in a sampling manner during manual verification, specifically, one or more points may be randomly sampled to trigger the load record query instruction, and correspondingly, when the electric energy meter receives the load record query instruction, the target query time is obtained according to the load record query instruction.
And G, generating a target query command according to the target query time, querying the load record according to the target query command to obtain a target query result, and returning to a query end corresponding to the load record query command.
And then, generating a target query command according to the target query time, querying the load record according to the target query command to obtain a target query result, and returning the target query result to a query end corresponding to the load record query command. The specific query method is the same as the self-verification query method, and reference may be made to the fourth embodiment, which is not described herein again.
In this embodiment, a load record query instruction triggered by the query end may be received to generate a target query command for querying, so that verification of the load record of the target query time may be achieved based on a manual verification requirement.
The present invention also provides a computer-readable storage medium having stored thereon a load record generation program, which when executed by a processor implements the steps of the load record generation method for an electric energy meter according to any one of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the load record generation method of the electric energy meter, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A load record generation method of an electric energy meter is characterized by comprising the following steps:
when the electric energy meter is detected to enter a test mode, acquiring first current time of the electric energy meter;
determining a first generation time sequence of the load record according to the first current time and a preset rule;
sequentially adjusting the time of the electric energy meter to each generation time point in the first generation time sequence, and freezing target data of the electric energy meter at the adjusted generation time point to generate a load record;
the load record generation method further comprises:
when a test mode exit instruction is received, switching the running mode of the electric energy meter to a normal mode;
acquiring second current time of the electric energy meter, and determining a second generation time sequence of the load record according to the second current time and the preset rule;
and acquiring real-time of the electric energy meter, and freezing target data of the electric energy meter at any generation time point in the second generation time sequence to generate a load record when the real-time is detected to be any time point in the second generation time sequence.
2. The method of generating a load record for an electric energy meter according to claim 1, wherein the method of generating a load record further comprises:
and when the switching of the operation mode of the electric energy meter is detected, clearing the historical load record of the storage area so as to store the generated load record into the cleared storage area.
3. The method of generating a load record for an electric energy meter according to claim 1, wherein the method of generating a load record further comprises:
acquiring the number of current load records in real time, and detecting whether the number reaches a preset threshold value;
and if the number reaches a preset threshold value, executing load record verification operation.
4. The method of generating a load log for an electric energy meter according to claim 3, wherein the step of performing a load log verification operation comprises:
acquiring an initial time point from the first generation time sequence as a target time point;
generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result;
sequentially acquiring next time points from the generated time sequence as the target time points, and executing the following steps: and generating a record searching command according to the target time point, and inquiring the load record according to the record searching command to obtain an intermediate inquiry result until the load record is inquired in a traversing manner to obtain a final inquiry result.
5. The method for generating load records of an electric energy meter according to claim 4, wherein the step of querying the load records according to the record searching command to obtain an intermediate query result comprises:
putting the record searching command into a communication port drive cache of the electric energy meter so as to start a load recording module of the electric energy meter;
and inquiring the load record according to the record searching command through the load record module to obtain an intermediate inquiry result.
6. The method for generating load record of electric energy meter according to claim 4, wherein the final query result includes an intermediate query result corresponding to each target time point, and the method for generating load record further includes:
detecting whether all the intermediate query results in the final query result are successfully searched;
if all the intermediate query results are successfully searched, generating prompt information without error in verification;
and if at least one of the intermediate query results is failed, acquiring load record information of which the intermediate query result is failed, and generating corresponding verification error prompt information according to the load record information.
7. The method of generating a load record for an electric energy meter according to claim 1, wherein the method of generating a load record further comprises:
when a load record query instruction is received, acquiring target query time according to the load record query instruction;
and generating a target query command according to the target query time, querying the load record according to the target query command to obtain a target query result, and returning the target query result to a query end corresponding to the load record query command.
8. An electric energy meter, characterized in that the electric energy meter comprises: memory, a processor and a load record generating program stored on the memory and executable on the processor, the load record generating program when executed by the processor implementing the steps of the load record generating method of an electric energy meter according to any of claims 1 to 7.
9. A computer-readable storage medium, characterized in that a load record generation program is stored thereon, which when executed by a processor implements the steps of the load record generation method of an electric energy meter according to any one of claims 1 to 7.
CN202011101355.1A 2020-10-14 2020-10-14 Electric energy meter, load record generation method thereof and computer readable storage medium Active CN112345999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011101355.1A CN112345999B (en) 2020-10-14 2020-10-14 Electric energy meter, load record generation method thereof and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011101355.1A CN112345999B (en) 2020-10-14 2020-10-14 Electric energy meter, load record generation method thereof and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112345999A CN112345999A (en) 2021-02-09
CN112345999B true CN112345999B (en) 2023-03-14

Family

ID=74361950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011101355.1A Active CN112345999B (en) 2020-10-14 2020-10-14 Electric energy meter, load record generation method thereof and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112345999B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105319527A (en) * 2015-11-23 2016-02-10 中国电力科学研究院 An electric energy meter load record test method
CN107328968A (en) * 2017-06-27 2017-11-07 威胜集团有限公司 For freezing and event log data storage method for electric energy meter
CN110581571A (en) * 2019-08-29 2019-12-17 昆明理工大学 dynamic optimization scheduling method for active power distribution network
CN111062176A (en) * 2019-12-09 2020-04-24 国网山西省电力公司长治供电公司 Low-voltage user loop impedance binary linear model construction and solving method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11079417B2 (en) * 2014-02-25 2021-08-03 Itron, Inc. Detection of electric power diversion
US10969414B2 (en) * 2018-04-04 2021-04-06 Sunpower Corporation Monitoring electric systems for wiring faults

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105319527A (en) * 2015-11-23 2016-02-10 中国电力科学研究院 An electric energy meter load record test method
CN107328968A (en) * 2017-06-27 2017-11-07 威胜集团有限公司 For freezing and event log data storage method for electric energy meter
CN110581571A (en) * 2019-08-29 2019-12-17 昆明理工大学 dynamic optimization scheduling method for active power distribution network
CN111062176A (en) * 2019-12-09 2020-04-24 国网山西省电力公司长治供电公司 Low-voltage user loop impedance binary linear model construction and solving method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于n阶平均发散度的混沌时序可预测尺度研究";岳毅宏等;《系统仿真学报》;20041231;第2565-2566页 *

Also Published As

Publication number Publication date
CN112345999A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN103530199A (en) Software running error repairing method, device and system
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN112118149B (en) Device testing method, electronic device, and storage medium
CN114124694A (en) Configuration method and configuration device of Internet of things equipment, electronic equipment and medium
CN100428824C (en) Method for carrying out active inquiry maintenance on mobile terminal
CN112526319A (en) Chip testing method and device, processor chip and server
CN108255700B (en) Test result generation method and device
CN112345999B (en) Electric energy meter, load record generation method thereof and computer readable storage medium
CN112910749B (en) CAN channel connection equipment identification method and data transmission method and system
CN113194448B (en) Bluetooth device testing method, testing terminal and readable storage medium
CN115840707A (en) Flash test method, device and medium
CN115373710A (en) Vehicle OTA upgrade control method and device, vehicle and storage medium
CN114389981A (en) Detection method and device for edge server 5G module and storage medium
CN112104028B (en) Charging device, electric quantity correction method of wireless earphone and readable storage medium
CN112765041B (en) Game automation testing method and device and electronic equipment
CN109560964B (en) Equipment compliance checking method and device
CN113703836A (en) SCPI instruction management method for spacecraft power system evaluation
CN113656318A (en) Software version testing method and device and computer equipment
CN108304203B (en) Multi-meter firmware upgrading method and device
CN114185804A (en) Interface testing method and device and terminal equipment
CN113110991A (en) Page element positioning method and device, storage medium and electronic device
CN111738388A (en) Parameter configuration method and device of measuring instrument, computer equipment and storage medium
CN113408014A (en) Terminal equipment identification system and method thereof
US20240103064A1 (en) Product line testing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant