CN102999397A - Embedded software upgrading and checking method - Google Patents

Embedded software upgrading and checking method Download PDF

Info

Publication number
CN102999397A
CN102999397A CN201210547063XA CN201210547063A CN102999397A CN 102999397 A CN102999397 A CN 102999397A CN 201210547063X A CN201210547063X A CN 201210547063XA CN 201210547063 A CN201210547063 A CN 201210547063A CN 102999397 A CN102999397 A CN 102999397A
Authority
CN
China
Prior art keywords
file
information
fileinfo
data
verification
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
CN201210547063XA
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.)
Sichuan Jiuzhou Electric Group Co Ltd
Original Assignee
Sichuan Jiuzhou Electric Group 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 Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN201210547063XA priority Critical patent/CN102999397A/en
Publication of CN102999397A publication Critical patent/CN102999397A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an embedded software upgrading and checking method. The method comprises the steps of data encapsulation, data check and data comparison. The software safety upgrading is guaranteed in a multi-check comparison mode. According to the method, the safety of the embedded software upgrading is greatly improved, and the possibility of software even equipment breakdown due to wrong file upgrading is avoided, so that the error correction property, the performance extensibility and functional improvement of the embedded equipment are guaranteed, and a guarantee is provided for safely and reliably using the embedded equipment by a user.

Description

A kind of method of embedded software upgrade checkout
Technical field
The present invention relates to field of embedded software, particularly relate to a kind of method of embedded software upgrade checkout.
Background technology
Embedded device is to be implanted to controlled device inside through the computer software of cutting out, carry application-specific provides service for the user equipment, such as consumer electronics, intelligent appliance, the network equipment, Medical Instruments, space equipment, the aspects such as Industry Control have been widely used in the middle of family's Working Life.Software upgrading is in the correction of embedded device problem, and performance improvement satisfies user's new demand aspect and plays a part very important.And the upgrade checkout mode that current on the market various embedded devices provide and dangerous, the illegal file of mistake is written into equipment, probably make the upgrading failure and then cause the software crash equipment failure, so safe and reliable method of calibration is that the embedded software upgrading is indispensable.
Summary of the invention
The objective of the invention is for above-mentioned software upgrading of the prior art, propose a kind of more tight reliably verification mode, guarantee that software upgrading is safe and efficient.
The present invention adopts following technical scheme: a kind of embedded software upgrade checkout method may further comprise the steps:
Step 1: add successively product information structure and header check code, fileinfo structure and upgrade file check code, upgrade file itself, by the package file of data encapsulation Cheng Xin;
Step 2: the package file that is combined in the download step one is to the data buffer;
Step 3: to the package file that from the data buffer, gets access to, successively its product information and fileinfo are carried out data check;
Step 4: the file that verification in the step 3 is passed through is installed to the catalogue of appointment, and obtains installation file information to the data buffer, and obtains before fileinfo and compare;
Step 5: comparing result is identical in the step 4, upgrades successfully.
In said method, binary mode is adopted in the encapsulation in the described step 1.
In said method, the downloading mode in the described step 2 can also pass through the outside access way of usb interface or serial ports for by network modes such as http or ftp.
In said method, the product information in the described step 3 is verified as itself does verification to the product information header structure.
In said method, described fileinfo is verified as file size contrast and the file verification to filename.
Can find out from architectural feature of the present invention, the invention has the advantages that: the present invention is by the product information verification, the product information comparison, the software version comparison, the software document verification, software document is than reciprocity multiple check comparison mode, greatly increased the safety of embedded software upgrading, avoid wrong upgrade file to cause the possibility of software even equipment collapse, thereby guaranteed the mistake property revised of embedded device, performance ductility, functional promotion is for the user can use embedded device that guarantee is provided safely and reliably.
Description of drawings
The present invention will illustrate by embodiment and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is embedded software upgrade data encapsulation process of the present invention;
Fig. 2 is embedded software upgrade checkout comparison process of the present invention.
Embodiment
The present invention is described further below in conjunction with accompanying drawing.
Fig. 1 is the process of data encapsulation, and whole data comprise product information, fileinfo, three parts of file content.
Product information wherein: vendor name vender, product type model, hardware version hardver, software version softver forms a structure, this structure is carried out the crc32 verification, produce the product information check code and and the new structure of this structure composition become the product information content;
Fileinfo: the file that upgrade is carried out crc32 verification and calculation document length, then defined file title and file size and check code are formed new structure together become fileinfo;
File content: namely upgrade file is own;
Three above-mentioned parts adopt binary mode to be organized into new package file in order.
Fig. 2 is the data check comparison process, and whole process comprises the verification, file contrast of the obtaining of upgrade file, file internal data format, finishes upgrading at last.
Obtaining of upgrade file wherein: embedded device gets access to the upgrading package file by external interface modes such as network or serial ports, USB, puts into the data buffer, and download at the networking can adopt http or ftp mode.
The verification of file internal data format:
At first be to the product information verification, in the upgrade file that from the data buffer, has got access to, go out the product message part by the Rule Extraction of encapsulation of data before, take out crc check code and message part and carry out verification, see whether data make mistakes in the transmission encapsulation process; After verification is correct, take out successively vendor name, product type, hardware version whether see with embedded device on be consistent; All conform to and then take out software version, see whether be higher than embedded device current version number, be higher than then and upgrade.
Next to file verification, in the upgrade file that has got access to from the data buffer, the Rule Extraction outfile message part of encapsulation of data then takes out the file content part before pressing, press the filename name in the fileinfo, whether the same with the file size contrast in the fileinfo; Take out crc check code and file content and partly carry out verification, see whether data make mistakes in the transmission encapsulation process;
The file contrast: in the situation that said process is all finished smoothly, installation file forms new system software or application software to assigned catalogue; Read the file content of new installation to the data buffer, do contrast with the file content that gets access to before, contrast unanimously then represents to upgrade successfully.
Disclosed all features in this instructions except mutually exclusive feature, all can make up by any way.
Disclosed arbitrary feature in this instructions (comprising any accessory claim, summary and accompanying drawing) is unless special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, unless special narration, each feature is an example in a series of equivalences or the similar characteristics.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. embedded software upgrade checkout method is characterized by and may further comprise the steps:
Step 1: add successively product information structure and header check code, fileinfo structure and upgrade file check code, upgrade file itself, by the package file of data encapsulation Cheng Xin;
Step 2: the package file that is combined in the download step one is to the data buffer;
Step 3: to the package file that from the data buffer, gets access to, successively its product information and fileinfo are carried out data check;
Step 4: the file that verification in the step 3 is passed through is installed to the catalogue of appointment, and obtains installation file information to the data buffer, and obtains before fileinfo and compare;
Step 5: comparing result is identical in the step 4, upgrades successfully.
2. method of calibration according to claim 1 is characterized by the encapsulation employing binary mode in the described step 1.
3. method of calibration according to claim 1 is characterized by downloading mode in the described step 2 for by network modes such as http or ftp, can also be by usb interface or the outside input mode of serial ports.
4. method of calibration according to claim 1 is characterized by product information in the described step 3 and is verified as the product information header structure itself is done verification.
5. method of calibration according to claim 4 is characterized by described fileinfo and is verified as file size contrast and file verification to filename.
CN201210547063XA 2012-12-17 2012-12-17 Embedded software upgrading and checking method Pending CN102999397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210547063XA CN102999397A (en) 2012-12-17 2012-12-17 Embedded software upgrading and checking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210547063XA CN102999397A (en) 2012-12-17 2012-12-17 Embedded software upgrading and checking method

Publications (1)

Publication Number Publication Date
CN102999397A true CN102999397A (en) 2013-03-27

Family

ID=47927998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210547063XA Pending CN102999397A (en) 2012-12-17 2012-12-17 Embedded software upgrading and checking method

Country Status (1)

Country Link
CN (1) CN102999397A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217167A (en) * 2014-09-11 2014-12-17 株洲南车时代电气股份有限公司 Software version checking method for multi-software system
CN104881312A (en) * 2015-06-02 2015-09-02 嘉应学院 FPGA (Field Programmable Gate Array) logic code iterable upgrading method and circuit
CN106469078A (en) * 2016-08-31 2017-03-01 青岛海信电器股份有限公司 A kind of upgrade method of intelligent appliance and device
CN108170461A (en) * 2017-12-28 2018-06-15 北京四达时代软件技术股份有限公司 Difference upgrade package generation method, difference upgrade method and device
CN109213510A (en) * 2018-09-21 2019-01-15 深圳市鼎阳科技有限公司 A kind of application program updating method and storage medium for embedded device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0556150A (en) * 1991-08-28 1993-03-05 Nec Corp Command system for subscriber data editing
CN101436138A (en) * 2007-11-16 2009-05-20 苏州科达通信技术发展有限公司 Control device and control method for software upgrade and dynamic rolling back
CN102043634A (en) * 2009-10-23 2011-05-04 康佳集团股份有限公司 Embedded system and embedded software upgrading method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0556150A (en) * 1991-08-28 1993-03-05 Nec Corp Command system for subscriber data editing
CN101436138A (en) * 2007-11-16 2009-05-20 苏州科达通信技术发展有限公司 Control device and control method for software upgrade and dynamic rolling back
CN102043634A (en) * 2009-10-23 2011-05-04 康佳集团股份有限公司 Embedded system and embedded software upgrading method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217167A (en) * 2014-09-11 2014-12-17 株洲南车时代电气股份有限公司 Software version checking method for multi-software system
CN104881312A (en) * 2015-06-02 2015-09-02 嘉应学院 FPGA (Field Programmable Gate Array) logic code iterable upgrading method and circuit
CN104881312B (en) * 2015-06-02 2017-11-03 嘉应学院 The method and circuit of a kind of FPGA logical code iteration upgrading
CN106469078A (en) * 2016-08-31 2017-03-01 青岛海信电器股份有限公司 A kind of upgrade method of intelligent appliance and device
CN108170461A (en) * 2017-12-28 2018-06-15 北京四达时代软件技术股份有限公司 Difference upgrade package generation method, difference upgrade method and device
CN108170461B (en) * 2017-12-28 2021-07-27 北京四达时代软件技术股份有限公司 Differential upgrade package generation method, differential upgrade method and device
CN109213510A (en) * 2018-09-21 2019-01-15 深圳市鼎阳科技有限公司 A kind of application program updating method and storage medium for embedded device

Similar Documents

Publication Publication Date Title
CN102999397A (en) Embedded software upgrading and checking method
CN105262627B (en) Firmware upgrading method, device and system
CN104714819B (en) File system upgrade package production method, upgrade method and device, terminal
CN102622253B (en) A kind of method of single-chip microcomputer and online upgrading thereof
CN104111832A (en) Android application program installation package packing method and system and unpacking method
WO2009120003A3 (en) Method of generating connection statistics for each user connected to website
CN103187104B (en) The error correction method of DRAM memory
WO2016082547A1 (en) Upgrade file manufacturing method and apparatus and upgrade file acquiring method and apparatus
CN105706099A (en) Software update device, and software update program
CN109413154A (en) Conversion method of data format, device, computer equipment and storage medium
CN106941501B (en) Data communication method and device
CN102316376A (en) Method for set-top box to automatically update data and system
KR100847560B1 (en) Circuits and methods for correcting errors in downloading firmware
CN106569843A (en) Method and device for generating OTA central package
CN108170461A (en) Difference upgrade package generation method, difference upgrade method and device
CN103425932B (en) Signature calibration method and terminal device
CN104503803A (en) Linux kernel and file system upgrading method
CN107239358A (en) Startup method, mobile terminal and the device with store function of Android system
CN105763944B (en) Module TV and its screen end upgrade method
CN106657361B (en) A kind of Android installation kit OTA upgrade method that code addition is obscured
CN103902323B (en) A kind of lung ventilator method for upgrading software and its system
CN105302613A (en) Method and system for updating EOC software by adopting combined files
CN101464876A (en) Data updating method for electronic dictionary machine
CN101488877B (en) Method for on-line downloading monoboard programme
KR101847824B1 (en) System and method for firmware update of smart key

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130327