Firmware program upgrade method and electric energy meter thereof

A firmware program and program technology, applied in the firmware program upgrade method and the field of electric energy meters, can solve the problems of increasing data download time, complicated implementation process, and high error rate in the process, so as to ensure reliability and integrity, and the method is simple and reliable. The effect of improving reliability

Inactive Publication Date: 2019-02-26
WASION GROUP HLDG
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the single-project compilation method has the following defects: when the adjustment range of the target firmware program is relatively large, the built-in code generated by the compiler may change, and this change can affect the compilation output of the boot area, causing it to change at the same time. Thereby reducing the reliability of the firmware program upgrade; at the same time, the single-project compilation method can only output the entire file and then add verification information, but cannot verify the application program alone. The implementation process is more complicated, and often the complex process has a high error rate; Finally, the single-project compilation method can only output files as a whole, and the data volume of each downloaded program needs to include the boot program, which increases the data download time and increases the risk of communication errors

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Firmware program upgrade method and electric energy meter thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] like figure 1 Shown is the method flowchart of the method of the present invention: this firmware program upgrade method provided by the present invention includes the following steps:

[0038] S1. The device to be upgraded downloads the target firmware program to its own memory (such as an external flash); in the process of downloading the target firmware program, every time a number of data is received, a CRC check is performed in the device to be upgraded to ensure that the downloaded target Integrity and correctness of the firmware program; at the same time, it is also recommended to include a power-off resume transmission mechanism during downloading, so as to ensure the integrity of the target firmware program download;

[0039] S2. Check the target firmware program downloaded in step S1;

[0040] S3. Overwrite the current firmware program stored locally in the device to be upgraded with the qualified target firmware program;

[0041] S4. The boot program and th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a firmware program upgrading method, comprising the steps of downloading a target firmware program and verifying the target firmware program. The target firmware program overwrites the stored current firmware program; The boot program and the target firmware program are compiled independently by using the dual-engineering compilation method. Integrating the independent bootprogram engineering file and the target firmware program engineering file into one target firmware program file and storing it; The integrated file is written into the controller of the device to beupgraded to complete the firmware program upgrade of the device to be upgraded. The invention also discloses an electric energy meter including the firmware program upgrading method. The invention compiles and integrates the boot program and the target firmware program separately and independently, and adopts various protection mechanisms to ensure the reliability and integrity in the firmware upgrading process, so the method of the invention can greatly improve the reliability of the firmware upgrading, and the method of the invention is simple, reliable and simple to realize.

Description

technical field [0001] The invention specifically relates to a firmware program upgrading method and an electric energy meter thereof. Background technique [0002] With the development of economy and technology, various types of electronic products have been widely used in people's production and life, bringing endless convenience to people's production and life. [0003] At the same time, with the rapid development of electronic technology, in order to prolong the life cycle of electronic products, upgrading the firmware program of the core inside the electronic product has become one of the important means. Especially metering instruments (such as electric energy meters, smart water meters, smart gas meters or smart heat meters, etc.), because they undertake metering tasks, and the realization of metering tasks is mostly based on firmware programs, therefore, including metering meters The firmware upgrade of electronic products is particularly important. [0004] Taking...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/654G06F8/41G01R22/00
CPCG01R22/00G06F8/41G06F8/654
Inventor 石理宁杨勇
Owner WASION GROUP HLDG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products