Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for updating firmware program

A firmware program and firmware upgrade technology, which is applied in the field of data communication, can solve problems such as firmware upgrade failure, limited application range, and easily damaged equipment, and achieve the effect of avoiding irreversible damage

Active Publication Date: 2009-01-28
BEIJING INHAND NETWORKS TECH
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The disadvantages of this method are: firstly, the firmware needs to interrupt the normal operation of the device during the upgrade process, and the on-site operation of the operator and the use of special tools are required during the upgrade process; secondly, because only one copy of the firmware program is saved in the Flash, when When the firmware upgrade fails, the Flash must be sent to the factory for repair
[0008] The disadvantage of this method is that the normal operation of the device needs to be suspended during the firmware upgrade process, and because the bootloader function is generally relatively simple, it is impossible to use a more complicated communication interface or communication protocol to obtain new firmware, so the scope of application of this method It is usually limited to the local upgrade of the device, and the on-site operation of the operator is also required during the upgrade process; similarly, in this method, because only one firmware program is saved in the Flash, the Flash must be sent to the factory when the firmware fails to upgrade. repair
[0011] The disadvantage of this method is that if the device fails to upgrade due to abnormal termination during the upgrade process, including power cut off, network connection interruption (or failure to connect), server stop running, etc., the firmware upgrade fails. The end of the device is easy to destroy the original firmware of the device, that is, the old firmware, resulting in the device not working properly
However, the three methods mentioned above are difficult to completely avoid the failure of the device due to the failure of the firmware upgrade.

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
  • Method and device for updating firmware program
  • Method and device for updating firmware program
  • Method and device for updating firmware program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] A method for upgrading firmware programs according to the present invention, its specific implementation method can be divided into two process descriptions of new firmware download and new firmware validity detection and switching, such as figure 1 Shown is the new firmware download process as follows:

[0048] First, define the system flag F, the length is 2 bytes, and the meaning of each bit is as follows:

[0049] Table 1. Bit definition of system flag F

[0050]

[0051] Firmware index (I); represent the address of old and new firmware in Flash;

[0052] Reserved (R): Represented as a reserved bit in the system flag F;

[0053] Failure Count (CNT): Indicates the number of failures to load the main control program for the new firmware.

[0054] Step 11, the main program runs;

[0055] After the device starts normally, the main program works normally;

[0056] Step 12, download new firmware;

[0057] The new firmware is obtained through the serial port or ne...

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

An upgrading device of firmware program is prepared for simultaneously storing new firmware and old firmware downloaded by firmware download processing module into flash memory, judging whether new firmware is correct or not by new firmware effectiveness detection module and loading master control program in new firmware through loading treatment module if it is or otherwise loading master control program in old firmware for realizing switch-over between load and new firmware.

Description

technical field [0001] The invention relates to the fields of data communication and industrial control, in particular to a method and device for updating firmware programs. Background technique [0002] Firmware (Firmware) is hardware with software functions. In the early days, this kind of hardware was generally EROM or EPROM (Electrically Erasable Programmable Read-Only Memory) with software, etc. Usually, the programs stored in these hardware cannot be stored. It is directly read or modified by the user, and it is difficult or impossible for the end user to change the firmware. Generally, there is no need to upgrade the firmware. Even if a serious error (Bug) is found in the firmware, it must be brought by a professional. Replace the EPROM on the original machine with the EPROM with the written program. [0003] Due to the progress of the current integrated circuit, the firmware of the device uses flash memory (Flash Memory for short: Flash) as the carrier, and the Flas...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 李明韩传俊
Owner BEIJING INHAND NETWORKS TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products