Unlock instant, AI-driven research and patent intelligence for your innovation.

A control method and device for software version upgrade based on dual file system

A control method and dual-file technology, which are applied to program control devices, redundant operation data error detection in operation, and generation of response errors, etc., can solve problems such as mismatches between upgrade files and hardware device versions, and upgrade process errors.

Active Publication Date: 2014-10-15
SUZHOU KEDA TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 2. An error occurred during the upgrade process
[0011] 3. The upgrade file does not match the version of the hardware device

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
  • A control method and device for software version upgrade based on dual file system
  • A control method and device for software version upgrade based on dual file system
  • A control method and device for software version upgrade based on dual file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] figure 1 A flowchart showing a method for controlling an embedded software version upgrade based on a dual file system according to the first embodiment of the present invention. Specifically, in this embodiment, step S2101 is first performed to determine whether the non-volatile memory supports partition backup according to the backup support field. More specifically, a "backup_flag" field is added to the partition header of the non-volatile memory (also called FLASH), and the "backup_flag" field is used as the backup support field to identify whether the system supports partition backup , for example, the partition table structure on the non-volatile memory can be adopted as Figure 7 In the structure shown, the "backup_flag" field can be defined in the following form:

[0033] / * backup_flags * /

[0034] #define MTD_BACKUP_DISABLED 0x00

[0035] #define MTD_BACKUP_ENABLED 0x01

[0036] If the value in the "backup_flag" field is 0x00, it is determined that the no...

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 provides a control method used for version upgrade of embedded software and based on a dual file system, which comprises the steps: setting a first partition and a second partition in a non-volatile memory, storing a first version system in the first partition, setting an upgrade mark field for indicating an upgrade state in a partition table header of the non-volatile memory; writing an upgrade package comprising a second version system into the second partition; judging correctness of the written-in upgrade package; and if the written-in upgrade package is correct, writing an upgrade success mark in the upgrade mark field. The invention further provides a corresponding control device used for the software version upgrade and based on the dual file system. On the premises that matching between upgrade files and equipment, correctness of the upgrade files and write-in correctness are guaranteed, if the condition that a version cannot be used still occurs, a previous version can be returned so that users can update the version again.

Description

technical field [0001] The present invention relates to a software version upgrade system, especially an embedded software version upgrade system. Specifically, it relates to a control method and device for restoring the original normal version of the software version upgrade based on a dual file system when the software upgrade fails unexpectedly. Background technique [0002] At present, most embedded devices support online version upgrades to update device functions. The traditional upgrade method adopts the mode of overwriting the original version. If the upgrade fails, the device will not only be unable to obtain the update of the device function, but also lose the function of the original version. [0003] The main reasons for the comprehensive analysis of the upgrade error are as follows: [0004] 1. The upgrade file is wrong. [0005] a) The upgrade file is not the upgrade file of the specified device. [0006] b) The upgrade file network transmission error, the f...

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): G06F11/14G06F9/445
Inventor 房滔
Owner SUZHOU KEDA TECH