CN111597063A - Method for testing reliability of software upgrading file of electric energy meter - Google Patents

Method for testing reliability of software upgrading file of electric energy meter Download PDF

Info

Publication number
CN111597063A
CN111597063A CN202010339660.8A CN202010339660A CN111597063A CN 111597063 A CN111597063 A CN 111597063A CN 202010339660 A CN202010339660 A CN 202010339660A CN 111597063 A CN111597063 A CN 111597063A
Authority
CN
China
Prior art keywords
file
upgrade
upgrading
electric energy
energy meter
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.)
Pending
Application number
CN202010339660.8A
Other languages
Chinese (zh)
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 CN202010339660.8A priority Critical patent/CN111597063A/en
Publication of CN111597063A publication Critical patent/CN111597063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/008Reliability or availability analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for testing the reliability of an electric energy meter software upgrading file, which comprises the following steps: judging whether an import check value of an upgrade import file is consistent with a preset check value of an upgrade source file; judging whether the upgrading file of the storage unit is consistent with the upgrading source file or not; judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading; and judging that the software of the electric energy meter is successfully upgraded. Compared with the prior art, the method and the device have the advantages that the check value of the upgrade import file is compared with the check value of the source file, the upgrade file of the storage unit is directly compared with the upgrade source file, and the upgraded identifier is directly compared with the identifier before upgrading, so that the situation that the upgrade of the electric energy meter software fails due to the fact that the upgrade file of the storage unit stored in the electric energy meter memory is inconsistent with the upgrade source file caused by the communication channel can be avoided, the accuracy of the upgrade file is guaranteed, and the upgrade success rate of the electric energy meter software is improved.

Description

Method for testing reliability of software upgrading file of electric energy meter
Technical Field
The invention relates to the technical field of power grids, in particular to a method for testing reliability of software upgrading files of an electric energy meter.
Background
With the recent strong push of the south/national grid to the transformation of smart grids, hundreds of millions of smart meters are installed on the power grid. According to statistics, 20% of faults generated by the existing electric energy meter are software faults, and the electric energy meter can only be replaced after the electric energy meter is in fault, so that resource waste is caused. The new generation of intelligent electric energy meter provides a software online upgrading function, and the reliability of a software upgrading file directly influences the online operation quality of the electric energy meter.
The existing reliability test of the software upgrading file of the electric energy meter mainly judges whether the software upgrading is successful or not by reading the hash value and the software version of the upgrading file through upper computer software, but the method can not effectively test the common problem of influencing the accuracy of the upgrading file in the data transmission process, so that the software upgrading of the intelligent electric energy meter fails, and finally the intelligent electric energy meter can be possibly failed.
Disclosure of Invention
The embodiment of the application provides a method for testing the reliability of an electric energy meter software upgrading file, and aims to solve the problems that the existing testing method adopts a closed communication module, so that the flexibility is poor in the testing process, and the interface characteristics, the number of interfaces and the error data injection mode are fixed and single, so that the good expandability, upgradability and universality are lacked.
On one hand, the method for testing the reliability of the software upgrading file of the electric energy meter, provided by the embodiment of the application, comprises the following steps:
importing an upgrade source file into an upper computer to obtain an upgrade import file;
calculating a preset check value according to a preselected check mode, and calculating an import check value according to the upgrade import file;
judging whether the imported check value is consistent with the preset check value or not;
if the import check value is consistent with the preset check value, the upgrade import file is sent to an electric energy meter storage to obtain a storage unit upgrade file;
judging whether the storage unit upgrading file is consistent with the upgrading source file or not;
if the storage unit upgrading file is consistent with the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file;
judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading;
and if the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading, judging that the electric energy meter software is upgraded successfully.
With reference to the aspect, in a first possible implementation manner, the determining whether the storage unit upgrade file is consistent with the upgrade source file specifically includes:
reading the data in the EEPROM command in the memory cell upgrading file by taking the length of 180 bytes as one frame to obtain reading data;
judging whether the reading data is consistent with the data with the length of 180 bytes in the upgrading source file or not;
if the storage unit upgrade file is consistent with the upgrade source file, upgrading the electric energy meter software according to the storage unit upgrade file, and specifically comprising the following steps:
and if the reading data is consistent with the data with the length of 180 bytes in the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file.
With reference to the aspect, in a second possible implementation manner, the method further includes:
and if the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, judging that the electric energy meter software fails to be upgraded.
In a second aspect, a method for testing reliability of a software upgrade file of an electric energy meter provided in an embodiment of the present application includes:
importing an upgrade and error correction file into an upper computer to obtain an upgrade and error correction import file, wherein the upgrade and error correction file is a file in which an upgrade source file is subjected to fault injection;
sending the upgrade and error correction import file to an electric energy meter storage to obtain a storage unit upgrade and error correction file;
judging whether the upper computer can identify that the upgrading and error-correcting file of the storage unit is inconsistent with the upgrading source file;
and if the upper computer can identify that the upgrading and error-correcting file of the storage unit is inconsistent with the upgrading source file, the program has protectiveness.
With reference to the second aspect, in a third possible implementation manner, the performing fault injection on the upgrade source file includes: at least one of correcting partial bytes of the upgrade source file, correcting the check code of the upgrade source file, and deleting partial data of the upgrade source file.
With reference to the second aspect, in a fourth possible implementation manner, the method further includes:
if the upper computer cannot identify that the storage unit upgrading and error correcting file is inconsistent with the upgrading source file, judging whether the upper computer can identify that the electric energy meter software cannot be upgraded according to the storage unit upgrading and error correcting file;
if the upper computer can recognize that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit, the program has protectiveness.
With reference to the fourth possible implementation manner, in a fifth possible implementation manner, the method further includes:
if the upper computer can not recognize that the electric energy meter software can not be upgraded according to the storage unit upgrading and error correcting file, upgrading the electric energy meter software according to the storage unit upgrading and error correcting file, and judging whether the upper computer can recognize that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading;
and if the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the program has protectiveness.
In a third aspect, the method for testing reliability of the software upgrade file of the electric energy meter provided by the embodiment of the present application includes: importing an upgrade source file into an upper computer to obtain an upgrade import file;
sending the upgrade import file to an electric energy meter storage to obtain a storage unit upgrade file;
performing fault injection processing on the storage unit upgrading file to obtain a storage unit upgrading and error correcting file;
judging whether the upper computer can identify that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit;
if the upper computer can recognize that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit, the program has protectiveness.
With reference to the third aspect, in a sixth possible implementation manner, the method further includes: if the upper computer can not recognize that the electric energy meter software can not be upgraded according to the storage unit upgrading and error correcting file, upgrading the electric energy meter software according to the storage unit upgrading and error correcting file, and judging whether the upper computer can recognize that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading;
and if the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the program has protectiveness.
With reference to the third aspect, in a seventh possible implementation manner, the performing fault injection processing on the storage unit upgrade file includes: at least one of correcting partial bytes of the upgrade file of the storage unit, correcting the check code of the upgrade file of the storage unit, and deleting partial data of the upgrade file of the storage unit.
As can be seen from the above embodiments, the method includes: importing an upgrade source file into an upper computer to obtain an upgrade import file; calculating a preset check value according to a preselected check mode, and calculating an import check value according to an upgrade import file; judging whether the imported check value is consistent with a preset check value or not; if the import check value is consistent with the preset check value, the upgrade import file is sent to the electric energy meter storage to obtain a storage unit upgrade file; judging whether the upgrading file of the storage unit is consistent with the upgrading source file or not; if the storage unit upgrading file is consistent with the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file; judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading; and if the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading, judging that the electric energy meter software is successfully upgraded.
Compared with the prior art, the method and the device have the advantages that whether the upgrade import file is correct or not is judged through the check value, the upgrade import file is sent to the electric energy meter storage to be stored after the upgrade import file is judged to be correct, whether the upgrade file of the storage unit is consistent with the upgrade source file is judged, the electric energy meter software is upgraded according to the upgrade file of the storage unit after the upgrade import file is judged to be consistent, whether the mark of the upgraded electric energy meter software is consistent with the mark before the upgrade is judged, and the mark of the upgraded electric energy meter software and the mark before the upgrade indicate that the electric energy meter software is upgraded successfully. The embodiment of the application compares the check value of the upgrade import file with the check value of the source file, the upgrade file of the storage unit is directly compared with the upgrade source file, and the upgraded identifier is directly compared with the identifier before upgrading, so that the upgrade file of the storage unit which is stored in the electric energy meter storage device and is inconsistent with the upgrade source file due to a communication channel can be avoided, the failure condition of upgrading the electric energy meter software is caused, the accuracy of upgrading the file is ensured, and the success rate of upgrading the electric energy meter software is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The above and other objects, features and advantages of the present invention will become more apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the invention.
FIG. 1 is a schematic diagram illustrating a principle of reliability testing of a software upgrade file of an electric energy meter according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating an exemplary reliability test of a software upgrade file of an electric energy meter according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an exemplary reliability test of a software upgrade file of a power meter according to another embodiment of the present application;
fig. 4 is a flowchart illustrating an exemplary reliability test of a software upgrade file of a power meter according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of 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 invention.
Fig. 1 is a schematic diagram illustrating a principle of reliability testing of a software upgrade file of an electric energy meter according to an embodiment of the present application. The device mainly comprises: external equipment, host computer and electric energy meter. The external device is a terminal device used for storing the upgrade file, the upper computer can obtain the upgrade source file from the external device, and the upper computer is used for executing the method of the embodiment of the application. The electric energy meter is communicated with the upper computer, and an electric energy meter storage unit is arranged in the electric energy meter and used for storing the software upgrading file and upgrading the software in the electric energy meter.
With reference to the flowchart of the reliability test of the software upgrade file of the electric energy meter shown in fig. 2, the embodiment shown in fig. 2 is a method for determining the accuracy of the software upgrade file in the process of importing a source file to an upper computer and finally sending the source file to a software memory of the electric energy meter, and the method includes the following steps:
step 101: importing an upgrade source file into an upper computer to obtain an upgrade import file;
step 102: calculating a preset check value according to a preselected check mode, and calculating an import check value according to the upgrade import file;
specifically, a check mode is preselected according to the type adopted during program design, for example, a CRC32 check mode is adopted, and the upper computer calculates a check value of 4 bytes of the upgrade source file and then calculates an import check value of the upgrade import file. .
Step 103: judging whether the imported check value is consistent with the preset check value or not;
step 104: if the import check value is consistent with the preset check value, the upgrade import file is sent to an electric energy meter storage to obtain a storage unit upgrade file;
specifically, if the import check value is inconsistent with the preset check value, it is prompted that the upgrade import file is incorrect, it is indicated that the upgrade import file has an error, and the subsequent upgrade operation is not continued; if the import check value is consistent with the preset check value, prompting that the upgrade import file is correct, indicating that the upgrade import file is not changed in the import process, and continuing to perform subsequent upgrade operation. And the subsequent operation is to send the upgrade import file to the electric energy meter storage to obtain a storage unit upgrade file. Here, the upgrade import file may be transmitted to the electric energy meter storage in a frame-by-frame manner.
Step 105: judging whether the storage unit upgrading file is consistent with the upgrading source file or not;
step 106: if the storage unit upgrading file is consistent with the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file;
specifically, the determining whether the storage unit upgrade file is consistent with the upgrade source file specifically includes:
reading the data in the EEPROM command in the memory cell upgrading file by taking the length of 180 bytes as one frame to obtain reading data;
judging whether the reading data is consistent with the data with the length of 180 bytes in the upgrading source file or not;
if the storage unit upgrade file is consistent with the upgrade source file, upgrading the electric energy meter software according to the storage unit upgrade file, and specifically comprising the following steps:
and if the reading data is consistent with the data with the length of 180 bytes in the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file.
And if the storage unit upgrading file is inconsistent with the upgrading source file, the electric energy meter software is not upgraded, and the storage unit upgrading file is prompted to be incorrect.
Step 107: judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading;
step 108: and if the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading, judging that the electric energy meter software is upgraded successfully.
Specifically, if it can be determined through steps 101 to 106 that an accurate storage unit upgrade file is obtained, the electric energy meter software is upgraded according to the accurate storage unit upgrade file. And after upgrading, continuously judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading, if so, indicating that the upgraded electric energy meter software is the version before upgrading, and successfully upgrading the electric energy meter software. And if the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the upgraded electric energy meter software is not the version before upgrading, and the electric energy meter software fails to be upgraded.
As can be seen from the above embodiments, the method includes: importing an upgrade source file into an upper computer to obtain an upgrade import file; calculating a preset check value according to a preselected check mode, and calculating an import check value according to an upgrade import file; judging whether the imported check value is consistent with a preset check value or not; if the import check value is consistent with the preset check value, the upgrade import file is sent to the electric energy meter storage to obtain a storage unit upgrade file; judging whether the upgrading file of the storage unit is consistent with the upgrading source file or not; if the storage unit upgrading file is consistent with the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file; judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading; and if the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading, judging that the electric energy meter software is successfully upgraded.
Compared with the prior art, the method and the device have the advantages that whether the upgrade import file is correct or not is judged through the check value, the upgrade import file is sent to the electric energy meter storage to be stored after the upgrade import file is judged to be correct, whether the upgrade file of the storage unit is consistent with the upgrade source file is judged, the electric energy meter software is upgraded according to the upgrade file of the storage unit after the upgrade import file is judged to be consistent, whether the mark of the upgraded electric energy meter software is consistent with the mark before the upgrade is judged, and the mark of the upgraded electric energy meter software and the mark before the upgrade indicate that the electric energy meter software is upgraded successfully. The embodiment of the application compares the check value of the upgrade import file with the check value of the source file, the upgrade file of the storage unit is directly compared with the upgrade source file, and the upgraded identifier is directly compared with the identifier before upgrading, so that the upgrade file of the storage unit which is stored in the electric energy meter storage device and is inconsistent with the upgrade source file due to a communication channel can be avoided, the failure condition of upgrading the electric energy meter software is caused, the accuracy of upgrading the file is ensured, and the success rate of upgrading the electric energy meter software is improved.
With reference to the flowchart of the reliability test of the software upgrade file of the electric energy meter shown in fig. 3, the method shown in fig. 3 is a method for simulating an error of the upgrade file and testing the protection of a software program, and the method includes the following steps:
step 201: importing an upgrade and error correction file into an upper computer to obtain an upgrade and error correction import file, wherein the upgrade and error correction file is a file in which an upgrade source file is subjected to fault injection;
step 202: sending the upgrade and error correction import file to an electric energy meter storage to obtain a storage unit upgrade and error correction file;
step 203: judging whether the upper computer can identify that the upgrading and error-correcting file of the storage unit is inconsistent with the upgrading source file;
step 204: and if the upper computer can identify that the upgrading and error-correcting file of the storage unit is inconsistent with the upgrading source file, the program has protectiveness.
The method shown in fig. 3 is to perform fault injection processing on information in an upgrade source file, where the fault injection of the upgrade source file includes: at least one of correcting partial bytes of the upgrade source file, correcting the check code of the upgrade source file, and deleting partial data of the upgrade source file. After fault injection processing is carried out on the upgrade source file, an upgrade and error correction import file is obtained, and then the upgrade and error correction import file is sent to the electric energy meter storage, and a storage unit upgrade and error correction file is obtained. The storage unit upgrading and error correcting file stored in the electric energy meter storage is also an error upgrading file, and the storage unit upgrading and error correcting file is compared with the upgrading source file. The contrast mode can also be that the length of 180 bytes is taken as a frame, and the data in the EEPROM command in the error-correcting file is updated and read by the reading storage unit. And then judging whether the reading data is consistent with the corresponding 180-byte-length data in the upgrade source file. And if the upper computer can recognize that the upgrading error-correcting file of the storage unit is inconsistent with the upgrading source file, the current program is protected. By utilizing the program, the program can be prevented from flying away or crashing due to undetected upgrade file errors after the upgrade is finished, and the upgrade quality of product software is improved.
Further, if the upper computer cannot identify that the storage unit upgrading and error correcting file is inconsistent with the upgrading source file, whether the upper computer can identify that the electric energy meter software cannot be upgraded according to the storage unit upgrading and error correcting file is continuously judged. If the upper computer can recognize that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit, the program has protectiveness.
Further, if the upper computer cannot recognize that the electric energy meter software cannot be upgraded according to the storage unit upgrading and error correcting file, the electric energy meter software is upgraded according to the storage unit upgrading and error correcting file, and whether the identification of the upgraded electric energy meter software is inconsistent with the identification before upgrading can be judged;
and if the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the program has protectiveness.
The protection performance of the program can be tested to the maximum extent by uploading a process method for judging the protection performance of the program according to the hierarchy (judging whether an upper computer can identify that a storage unit upgrading and error correcting file is inconsistent with an upgrading source file, judging whether the upper computer can identify that electric energy meter software cannot be upgraded according to the storage unit upgrading and error correcting file, and judging whether the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading).
The method shown in fig. 4 is a method for simulating an upgrade file error and testing the protection of a software program. The simulation upgrade file error shown in fig. 3 is a fault injection process for the upgrade source file. The simulation upgrade file shown in fig. 4 is subjected to a fault injection process after the upgrade file is sent to the electric energy meter storage unit to obtain a storage unit upgrade file. With reference to the flowchart of the reliability test of the software upgrade file of the electric energy meter shown in fig. 4, the method includes the following steps:
step 301: importing an upgrade source file into an upper computer to obtain an upgrade import file;
step 302: sending the upgrade import file to an electric energy meter storage to obtain a storage unit upgrade file;
step 303: performing fault injection processing on the storage unit upgrading file to obtain a storage unit upgrading and error correcting file;
step 304: judging whether the upper computer can identify that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit;
step 305: if the upper computer can recognize that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit, the program has protectiveness.
Wherein, the fault injection processing of the storage unit upgrade file comprises: at least one of correcting partial bytes of the upgrade file of the storage unit, correcting the check code of the upgrade file of the storage unit, and deleting partial data of the upgrade file of the storage unit.
Further, the method further comprises:
if the upper computer can not recognize that the electric energy meter software can not be upgraded according to the storage unit upgrading and error correcting file, upgrading the electric energy meter software according to the storage unit upgrading and error correcting file, and judging whether the upper computer can recognize that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading;
and if the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the program has protectiveness.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for testing reliability of a software upgrade file of an electric energy meter is characterized by comprising the following steps:
importing an upgrade source file into an upper computer to obtain an upgrade import file;
calculating a preset check value according to a preselected check mode, and calculating an import check value according to the upgrade import file;
judging whether the imported check value is consistent with the preset check value or not;
if the import check value is consistent with the preset check value, the upgrade import file is sent to an electric energy meter storage to obtain a storage unit upgrade file;
judging whether the storage unit upgrading file is consistent with the upgrading source file or not;
if the storage unit upgrading file is consistent with the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file;
judging whether the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading;
and if the identifier of the upgraded electric energy meter software is consistent with the identifier before upgrading, judging that the electric energy meter software is upgraded successfully.
2. The method for testing the reliability of the software upgrade file of the electric energy meter according to claim 1, wherein judging whether the upgrade file of the storage unit is consistent with the upgrade source file specifically comprises:
reading the data in the EEPROM command in the memory cell upgrading file by taking the length of 180 bytes as one frame to obtain reading data;
judging whether the reading data is consistent with the data with the length of 180 bytes in the upgrading source file or not;
if the storage unit upgrade file is consistent with the upgrade source file, upgrading the electric energy meter software according to the storage unit upgrade file, and specifically comprising the following steps:
and if the reading data is consistent with the data with the length of 180 bytes in the upgrading source file, upgrading the electric energy meter software according to the storage unit upgrading file.
3. The method for testing the reliability of the electric energy meter software upgrade file according to claim 1, further comprising:
and if the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, judging that the electric energy meter software fails to be upgraded.
4. A method for testing reliability of a software upgrade file of an electric energy meter is characterized by comprising the following steps:
importing an upgrade and error correction file into an upper computer to obtain an upgrade and error correction import file, wherein the upgrade and error correction file is a file in which an upgrade source file is subjected to fault injection;
sending the upgrade and error correction import file to an electric energy meter storage to obtain a storage unit upgrade and error correction file;
judging whether the upper computer can identify that the upgrading and error-correcting file of the storage unit is inconsistent with the upgrading source file;
and if the upper computer can identify that the upgrading and error-correcting file of the storage unit is inconsistent with the upgrading source file, the program has protectiveness.
5. The method for testing the reliability of the software upgrade file of the electric energy meter according to claim 4, wherein the fault injection of the upgrade source file comprises: at least one of correcting partial bytes of the upgrade source file, correcting the check code of the upgrade source file, and deleting partial data of the upgrade source file.
6. The method for testing the reliability of the electric energy meter software upgrade file according to claim 4, further comprising:
if the upper computer cannot identify that the storage unit upgrading and error correcting file is inconsistent with the upgrading source file, judging whether the upper computer can identify that the electric energy meter software cannot be upgraded according to the storage unit upgrading and error correcting file;
if the upper computer can recognize that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit, the program has protectiveness.
7. The method for testing the reliability of the electric energy meter software upgrade file according to claim 6, further comprising:
if the upper computer can not recognize that the electric energy meter software can not be upgraded according to the storage unit upgrading and error correcting file, upgrading the electric energy meter software according to the storage unit upgrading and error correcting file, and judging whether the upper computer can recognize that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading;
and if the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the program has protectiveness.
8. A method for testing reliability of a software upgrade file of an electric energy meter is characterized by comprising the following steps:
importing an upgrade source file into an upper computer to obtain an upgrade import file;
sending the upgrade import file to an electric energy meter storage to obtain a storage unit upgrade file;
performing fault injection processing on the storage unit upgrading file to obtain a storage unit upgrading and error correcting file;
judging whether the upper computer can identify that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit;
if the upper computer can recognize that the electric energy meter software cannot be upgraded according to the upgrading and error-correcting file of the storage unit, the program has protectiveness.
9. The method for testing the reliability of the electric energy meter software upgrade file according to claim 8, further comprising:
if the upper computer can not recognize that the electric energy meter software can not be upgraded according to the storage unit upgrading and error correcting file, upgrading the electric energy meter software according to the storage unit upgrading and error correcting file, and judging whether the upper computer can recognize that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading;
and if the upper computer can identify that the identifier of the upgraded electric energy meter software is inconsistent with the identifier before upgrading, the program has protectiveness.
10. The method for testing the reliability of the software upgrade file of the electric energy meter according to claim 8, wherein the performing the fault injection process on the upgrade file of the storage unit comprises: at least one of correcting partial bytes of the upgrade file of the storage unit, correcting the check code of the upgrade file of the storage unit, and deleting partial data of the upgrade file of the storage unit.
CN202010339660.8A 2020-04-26 2020-04-26 Method for testing reliability of software upgrading file of electric energy meter Pending CN111597063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010339660.8A CN111597063A (en) 2020-04-26 2020-04-26 Method for testing reliability of software upgrading file of electric energy meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010339660.8A CN111597063A (en) 2020-04-26 2020-04-26 Method for testing reliability of software upgrading file of electric energy meter

Publications (1)

Publication Number Publication Date
CN111597063A true CN111597063A (en) 2020-08-28

Family

ID=72182291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010339660.8A Pending CN111597063A (en) 2020-04-26 2020-04-26 Method for testing reliability of software upgrading file of electric energy meter

Country Status (1)

Country Link
CN (1) CN111597063A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012004597A2 (en) * 2010-07-09 2012-01-12 Charles Graham Palmer Data processing apparatus and system
CN104063254A (en) * 2014-07-14 2014-09-24 威胜集团有限公司 Online upgrading method for electric energy meter
CN107678960A (en) * 2017-09-26 2018-02-09 国网冀北电力有限公司电力科学研究院 Intelligent electric energy meter software Black-box Testing system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012004597A2 (en) * 2010-07-09 2012-01-12 Charles Graham Palmer Data processing apparatus and system
CN104063254A (en) * 2014-07-14 2014-09-24 威胜集团有限公司 Online upgrading method for electric energy meter
CN107678960A (en) * 2017-09-26 2018-02-09 国网冀北电力有限公司电力科学研究院 Intelligent electric energy meter software Black-box Testing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
欧习洋 等: "IR46 智能电能表软件可靠性设计与测试研究" *

Similar Documents

Publication Publication Date Title
CN102279776B (en) Error checking and correcting ability testing method and device
CN111078459B (en) Method, device and system for testing semiconductor chip
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN112380046B (en) Calculation result verification method, system, device, equipment and storage medium
CN110737548B (en) Data request method and server
CN104133743B (en) A kind of by burning file to the method for EMMC chip and device
CN117391099A (en) Data downloading and checking method and system for smart card and storage medium
CN116930727B (en) Chip detection method based on circuit board
CN112181444B (en) DSP multi-core data programming method based on 1553B bus
US6539338B1 (en) Self-diagnostic testing of a network interface adapter
CN112395129A (en) Storage verification method and device, computing chip, computer equipment and storage medium
CN112579141A (en) Firmware updating method, device, equipment and storage medium of embedded system
CN111597063A (en) Method for testing reliability of software upgrading file of electric energy meter
CN113010114A (en) Data processing method and device, computer equipment and storage medium
CN113688051A (en) Electric energy meter software upgrading test method and storage medium
CN117112288B (en) Disk array verification method and device, storage medium and electronic equipment
CN117854581B (en) Memory test system and memory test method
CN116662210B (en) Interface regression testing method, device and application
CN116048871A (en) Automatic verification method and device for SSD equipment, computer equipment and storage medium
CN113687294B (en) Testing method and device for dual-core intelligent ammeter, computer equipment and storage medium
CN117667549A (en) SE chip testing method and device, electronic equipment and medium
CN117369875A (en) Random instruction stream execution verification method and device and electronic equipment
CN115856572A (en) Method and device for determining chip test coverage rate problem
CN115469903A (en) Firmware upgrading method and device, embedded equipment and storage medium
CN115712522A (en) Verification method and device for ECC (error correction code) module of memory chip and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200828

RJ01 Rejection of invention patent application after publication