Mirror image type embedded program firmware upgrading method

A firmware upgrade and embedded technology, applied in software deployment, software engineering design, instruments, etc., can solve the problems of easy failure of firmware upgrade and high production cost, and achieve the effect of easy start-up, simple drive and fast speed

Pending Publication Date: 2020-06-09
WAHLAP TECH CO LTD
View PDF9 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to overcome the shortcomings of high production cost and easy failure of firmware upgrade in the prior art, the present invention provides a mirror-type embedded program firmware upgrade method that can reduce costs, ensure successful upgrade, and have simple procedures

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
  • Mirror image type embedded program firmware upgrading method
  • Mirror image type embedded program firmware upgrading method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further described below in conjunction with accompanying drawing and specific embodiment:

[0028] Such as figure 1 The illustrated embodiment is a method for upgrading the firmware of a mirrored embedded program, comprising the following steps:

[0029] Step 100, dividing the FALSH virtual memory of the single-chip microcomputer into slice A and slice B of equal memory size;

[0030] Step 200, read the block mark by the charged erasable programmable read-only memory EEprom, if the block mark is 0xAA, then jump to block A, run the program of block A, and go to step 300; if the block mark is 0x55, then jump Go to area B, run the program of area B, and turn to step 300;

[0031] Step 300, the single-chip microcomputer detects whether a firmware upgrade is required, and when the firmware upgrade is required in the area A, save the firmware package data and perform the firmware upgrade;

[0032] Such as figure 2 As shown, in step 301, the ...

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 mirror image type embedded program firmware upgrading method. The method comprises the following steps: dividing a FLASH virtual memory of a single-chip microcomputer into adistrict A and a district B; reading the district mark through an electrified erasable programmable read-only memory (EEPROM), if the district mark is 0*AA, skipping to a district A, and running a program of the district A; if the district mark is 0 * 55, skipping to a district B, and running a program of the district B; and detecting, by the single-chip microcomputer, whether firmware upgrading is needed or not, and when firmware upgrading is needed, storing firmware package data for firmware upgrading. The invention has the following beneficial effects: a Data flash chip and a peripheral circuit are reduced, and the cost is reduced; the starting code is simple, the driving is simple, and after the upgrading is successful, the Dataflash data does not need to be read; the program design issimple and the framework logic is clear; successful upgrading is ensured; and normal use is not influenced in the upgrading process.

Description

technical field [0001] The invention relates to the technical field of electricity meter estimation upgrades, in particular to a mirror-type embedded program firmware upgrade method that can reduce costs, ensure successful upgrades, and have simple procedures. Background technique [0002] Now the customer's requirement for the energy meter is that it needs to support the firmware upgrade function. At present, if firmware upgrade is required, the first method: send the firmware package to be upgraded to the energy meter through GPRS, save the firmware package of the energy meter to DataFlash, and wait for the data to be accepted before upgrading the program; the second method: through GPRS Or send a command through the serial port to enter the upgrade function, and then update the firmware while sending the upgrade package. [0003] The first method has the following problems: 1. The cost is high, the operation is complicated, and a Dataflash chip needs to be added, and the...

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/65G06F8/654
CPCG06F8/65G06F8/654
Inventor 郑海锋陈建锋张亮钱红斌余其奇牛延谋
Owner WAHLAP TECH CO LTD
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