CN103942058B - A kind of EMBEDDED AVIONICS method for upgrading software and system - Google Patents

A kind of EMBEDDED AVIONICS method for upgrading software and system Download PDF

Info

Publication number
CN103942058B
CN103942058B CN201310017187.1A CN201310017187A CN103942058B CN 103942058 B CN103942058 B CN 103942058B CN 201310017187 A CN201310017187 A CN 201310017187A CN 103942058 B CN103942058 B CN 103942058B
Authority
CN
China
Prior art keywords
file
upgrade
filename
values
terminal device
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.)
Active
Application number
CN201310017187.1A
Other languages
Chinese (zh)
Other versions
CN103942058A (en
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.)
GRANDSTREAM NETWORKS Inc
SHENZHEN GRANDSTREAM NETWORKS TECHNOLOGY Co Ltd
Original Assignee
GRANDSTREAM NETWORKS Inc
SHENZHEN GRANDSTREAM NETWORKS TECHNOLOGY 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 GRANDSTREAM NETWORKS Inc, SHENZHEN GRANDSTREAM NETWORKS TECHNOLOGY Co Ltd filed Critical GRANDSTREAM NETWORKS Inc
Priority to CN201310017187.1A priority Critical patent/CN103942058B/en
Publication of CN103942058A publication Critical patent/CN103942058A/en
Application granted granted Critical
Publication of CN103942058B publication Critical patent/CN103942058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of EMBEDDED AVIONICS method for upgrading software, this method include:The file that different file directorys is used to download corresponding different operating is created under the system of terminal device, the file directory includes following one or more:ADD, MOD, DEL and SKIP;The information of upgrade file table of firmware updating is downloaded from server end, compare the filename and check value in the ancient deed information table of the information of upgrade file table and the terminal device storage, thus determine any operation for performing increase, revising, delete and skipping;Operation to performing increase or revision, parameter is used as using deviant and file size, send the request for obtaining respective file data to the server, the terminal device receives it to be decrypted after the file data and is reduced to compressed package files and is saved in the ADD/MOD catalogues;Start escalation process, corresponding catalogue is directly unziped to according to the file path recorded in the compressed package to the file in the ADD catalogues;Ancient deed is first deleted to the file in the MOD catalogues and decompresses covering again.Invention software upgrade method makes the software upgrading of terminal device more fast and safely, reduces the harmful effect brought by device upgrade to user to greatest extent, while reduces the complexity and maintenance cost of maintaining terminal equipment.

Description

A kind of EMBEDDED AVIONICS method for upgrading software and system
Technical field
The invention belongs to communication technique field, more particularly to the method for upgrading software of embedded communication apparatus.
Background technology
With the popularization of multimedia intelligent equipment, in order to meet new demand and repair known to software that user proposes equipment The problem of and the new function module of addition, it usually needs software upgrading is carried out to equipment.In EMBEDDED AVIONICS, especially The common upgrade method such as multimedia intelligent equipment is mainly copied upgrade file in equipment to by SD card or USB data line, The legacy data in the storage mediums such as FLASH is wiped, then new file decompression is installed in FLASH by upgrade procedure and completes to rise Level, or pass through OTA(Aerial upgrade)Completed in the form of upgrade patch.
But there are following limitation for above method:(1)It is complicated, it is necessary to people goes to upgrade manually, easily because operation is lost Occurs upgrading failure by mistake;(2)Need to remove updating apparatus one by one, be unfavorable for large-scale software deployment, increase the cost of maintenance And complexity;(3)Update time is grown.With the increase of software function, firmware volume constantly increases, and causes the transmission solution of firmware The pressure time greatly increases.(4)If by OTA patches form upgrading, need to pass through when version number's span of new and old edition is larger Multiple patch installing is upgraded to latest edition, adds the complexity of plant maintenance.
The content of the invention
It is an object of the invention to provide a kind of EMBEDDED AVIONICS method for upgrading software, to solve it is complicated, Update time grow and can not large scale deployment the problem of.
In order to realize foregoing invention purpose, technical scheme is as follows:
A kind of EMBEDDED AVIONICS method for upgrading software, this method include:
The file that different file directorys is used to download corresponding different operating, the text are created under the system of terminal device Part catalogue includes following one or more:ADD, MOD, DEL and SKIP;
The information of upgrade file table of firmware updating, the information of upgrade file table and the end are downloaded from server end Filename and check value in the ancient deed information table of end equipment storage, thus determine to perform increase, revise, delete and skip Any operation;
Operation to performing increase or revision, using deviant and file size as parameter, sends to the server and obtains Take the request of respective file data, the terminal device receives it to be decrypted after the file data and is reduced to press Contracting APMB package is simultaneously saved in the ADD/MOD catalogues;
Start escalation process, it is direct according to the file path recorded in the compressed package to the file in the ADD catalogues Unzip to corresponding catalogue;Ancient deed is first deleted to the file in the MOD catalogues and decompresses covering again;Scan the terminal device All local ancient deeds in file system, calculation document name MD5 values establish file path and the filename MD5 values correspondences of the two Relation table Record, contrasts the filename MD5 values in the filename and Record under the DEL catalogues one by one, if identical from The path of the file and the file according to route deletion are read in the Record files.
In addition, the present invention also provides a kind of EMBEDDED AVIONICS software update system, which includes:Firmware updating system Make device, server, and the terminal device equipped with memory module and update device, the server is set with each terminal Standby communication connection, it is built-in with the firmware updating of the firmware updating producing device completion so that the terminal device carries out software The upgrading of version, the firmware updating producing device include:Calculator, compression encrypting module and file packetization module, wherein:
Calculator, is responsible for carrying out compressing file bag file size, offset address calculating, and to compressing file bag MD5 values and filename MD5 values carry out computing;
Encrypting module is compressed, for being compressed to single target file and encryption;
File packetization module, generates the information of upgrade file table for tissue, makes the firmware updating header file, system Make file bag.
The update device of terminal device further comprises:File download module, comparison module, document analysis module and upgrading Execution module, wherein, file download module, for obtaining the firmware updating header file, upgrade file from the server end Information table, file bag, and create the file subdirectory for being used to perform different operating set at least one:ADD、MOD、DEL And SKIP;Comparison module, for whether having in the ancient deed information table of the terminal device and the filename MD5 value phases Whether same list item, the MD5 values of the compressed package are identical;Document analysis module, for parsing the information of upgrade file Data in table, obtain the filename MD5 values, file size, file offset address, file MD5 values.
The update time of terminal device can greatly be shortened using technical solution provided by the invention, so as to reduce because setting The influence caused by user for upgrading., only need to will be new without removing updating apparatus one by one for equipment manager During firmware updating is uploaded onto the server, all terminal devices can all go automatically to upgrade, for containing any legacy version software All it can be upgraded to it by same firmware for terminal device newest, without carrying out staged upgrading, so as to reduce maintenance Complexity and reduction maintenance cost.
Brief description of the drawings
Fig. 1 is the schematic diagram of terminal equipment software upgrade system in the specific embodiment of the invention;
Fig. 2 is terminal equipment software upgrading method flow chart in the specific embodiment of the invention;
Fig. 3 is the method flow diagram that firmware updating is made in the specific embodiment of the invention;
Fig. 4 is that terminal device parses firmware updating and classifying downloaded flow chart in the specific embodiment of the invention;
Fig. 5 is the flow chart that terminal device carries out updating operation in the specific embodiment of the invention.
Embodiment
The basic principle of the present invention is that each filename, check value, deviant and file size are recorded in firmware updating It is written to etc. information and by specified form in information of upgrade file table id T.When terminal device determines to need upgrading according to than Compared with the ancient deed information table LIDT in firmware updating and terminal device(Local IDT)In filename and check value determine not Need to perform different updating operation modes with file, for example increase, revise, delete, skip.This method is for comprising any old All by same firmware it can be made to be upgraded to latest edition for the terminal device of version software.
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 be the specific embodiment of the invention in terminal equipment software upgrade system schematic diagram, the upgrading as seen from the figure System includes:Firmware updating producing device 100, server 200, and terminal device 300.
Different updating operations are performed in order to realize the present invention for different file to achieve the purpose that quickly to upgrade, into Specific firmware updating must be made before row software upgrading to be compared upgrade file for terminal device, classify.The upgrading Firmware manufacturing process is completed by the firmware updating producing device 100 of software supplier.Make the upgrading The basic principle of firmware is:The information such as each filename, check value, deviant and file size are recorded in firmware updating by finger Fixed form is written in information of upgrade file table id T.When terminal device determines to need upgrading according to more above-mentioned IDT and end Filename and check value in the ancient deed information table LIDT of end equipment storage determine that different files need to perform different upgradings Mode of operation, such as increase, revision, deletion etc..Calculator 110, compression encryption mould are equipped with firmware updating producing device 100 Block 120, and file packetization module 130.
Wherein, calculator 110, are responsible for carrying out MD5 numerical computations to each file destination name and its compressed file, with And calculating, the calculating of compressed package offset address to compressed package files size.Illustrated below by taking file info.txt as an example, The filename MD5 values of 110 calculation document info.txt of calculator:a1425019a18343a4b03cfb8c9e72d245;Calculate The file MD5 values of the info.zip compressed packages of file info.txt compression generations: 08a4a0cf5af90fbb286cc8067f3057a4.The file size for calculating info.zip compressed packages at the same time is 181065, The offset address being packaged into file bag system.img is 6243994.
Encrypting module 120 is compressed, for being compressed to single target file and encryption, such as by above-mentioned file Info.txt compressions generate info.zip compressed packages, the path of file are included in compressed package at the same time, additionally to above-mentioned compressed package It is encrypted.
File packetization module 130, filename MD5 values, info.zip texts for the info.txt that obtains above-mentioned processing Part MD5 values, file size, file offset address etc. generate an IDT list items write-in information of upgrade file table id T by format organization In;Compressed package info.zip is encrypted and is packed into file bag system.img;Pre-set version is believed Breath:V1.2.0, facility information:Vendor:Grandstream Type:IP phone Modle:0x17, IDT file size and The information such as the size of system.img are written in header file HEAD by form, finally system.img by HEAD, IDT, together Firmware updating firmware.bin is packaged into, and server 200 is uploaded to by firmware updating producing device 100.Work as terminal device 300 in need carry out communication with server 200 when being upgraded and download above-mentioned firmware updating.
Terminal device 300 includes memory module 310 and update device 320, and update device 320 further comprises:Under file Carry module 321, comparison module 322, document analysis module 323 and upgrade execution module 324.
File download module 321, for obtaining each table in firmware updating header file HEAD, IDT file from server end Item, need execution to increase or revise file such as info.zip in the file bag operated etc..It is being in terminal device additionally Three sub- directory A DD, MOD, DEL are created under update_system catalogues in system.
Comparison module 322, for whether there is in the ancient deed information table LIDT that is stored in comparison terminal equipment from terminal Equipment obtain IDT information, such as IDT list item identical with the filename MD5 values of file info.txt, i.e., to filename MD5 values, File MD5 values are compared.
Document analysis module 323, the header file HEAD for being downloaded to file download module 321 are parsed, and obtain text Part version information and facility information, to judge whether the being firmware updating of the model terminal device, whether be new version;At the same time The deviant and file size of IDT files are obtained by the parsing to HEAD.Downloaded when file download module 321 and obtain IDT texts After part, this document parsing module 323 is used to parse the filename MD5 values obtained in each IDT list item informations in IDT files, text Part length, file offset address, file MD5 values etc.;And for the file of download to be decrypted, data block is reduced For compressed package files info.zip.
Upgrade execution module 324, performs the file in different directories ADD, MOD, DEL different updating operations.First, All local ancient deeds in program scanning terminal device file system in addition to the file under update_system catalogues, calculate File path and the filename MD5 values mapping table Record of the two are established after filename MD5 values.DEL catalogues are contrasted one by one Under filename and Record in filename MD5 values, if identical from Record files read this document path and root According to the above-mentioned file of route deletion, delete and finish until the All Files in DEL.For the file in ADD catalogues, program root is decompressed Corresponding catalogue is directly unziped to according to the file path recorded in each compressing file bag.File in MOD catalogues is first deleted old File decompresses covering, the i.e. combination of DEL and ADD operation again.Treat All Files after treatment, delete old LIDT, and by IDT Save as new LIDT.
Memory module 310, for storing ancient deed, the ancient deed information table LIDT of terminal device system(Local IDT), And download the data such as the file bag info.txt after obtained compressed file bag info.zip and decompression.
Fig. 2 is terminal equipment software upgrading method flow chart in the specific embodiment of the invention, as shown in the figure present invention upgrading Method mainly includes following operating procedure:
Step S201:Make firmware updating:Scan destination folder, calculate and record each file filename MD5 values, File MD5 values, then will be added to after compressing file encryption packing in file bag and record deviant and text of this document in bag Part length, by information such as the filename MD5 values of each file of record, file MD5 values, deviant and file sizes by specifying Form is written in information of upgrade file table id T, after the packing of last All Files to be done, generates firmware header, then will IDT, file bag and the header of generation are fabricated on firmware updating uploads onto the server together.
Step S202:The server of terminal device to storage firmware updating, which is sent, obtains the request of firmware updating header.
Step S203:The firmware updating header being analyzed and acquired by, judges whether that meeting upgrading requires, however, it is determined that be suitable Version, then terminal device to server send obtain IDT request.
Step S204:The comparison of filename MD5 values and file MD5 values, the ancient deed stored in comparison terminal equipment It whether there is the IDT information obtained from terminal device in information table LIDT, it is such as identical with the filename MD5 values of file info.txt IDT list items, i.e., filename MD5 values, file MD5 values are compared, according to needed for determining comparative result perform operation kind Class simultaneously creates different directories:ADD, MOD and DEL.
Step S205:Downloaded and arranged respectively according to the comparative result of filename MD5 values in above-mentioned steps S204 and file MD5 values Catalogue file:Its deviant and file size are obtained from IDT, acquisition file request is initiated and by under to server as parameter The file of load is stored in ADD/MOD catalogues;To the file in DEL catalogues, calculate and record its filename MD5 values and corresponding File path;Any operation is not done to the file for performing SKIP.
Step S206:Start upgrade execution module, the file in upgrade procedure addition or renewal ADD/MOD catalogues is simultaneously DEL catalogue files are deleted, preserve new IDT catalogue files into terminal device, complete system upgrade.
Fig. 3 is the method flow diagram that firmware updating is made in the specific embodiment of the invention.In order to soft using the present invention Part upgrade method, specific firmware updating must be made to the file of required upgrading.Making the basic principle of firmware updating is: The information such as each filename MD5 values, file MD5 values, deviant and file size are recorded in firmware updating by the form specified It is written in information of upgrade file table id T.Deposited when terminal device determines to need upgrading according to more above-mentioned IDT and terminal device Filename MD5 values and file MD5 values in the file information table LIDT of storage determine that different files need to perform different upgrading behaviour Make mode, such as increase, revision, deletion etc..Illustrated below by taking file info.txt as an example, specific production method is such as Under:
Step S301:MD5 calculating is carried out to single target file info.txt.
Program scanning destination folder of packing reads file info.txt, calculates file by MD5 calculation procedures first The MD5 values of name character string " info.txt ":a1425019a18343a4b03cfb8c9e72d245.
Step S302:MD5 calculating is carried out again after file info.txt is compressed generation info.zip, obtains file MD5 values.
File info.txt is compressed into generation info.zip compressed packages by ZIP, the path of file is included in compressed package, together When to calculate the MD5 values of compressed package info.zip be 08a4a0cf5af90fbb286cc8067f3057a4 and size is 181065。
Step S303:By compressed package info.zip encryptions and calculate offset address.
Compressed package info.zip is encrypted and is packed into file bag system.img, at the same calculate its Offset address in system.img is 6243994 and is preserved.
Step S304:Tissue generation IDT list items are simultaneously write in information of upgrade file table id T files.
Filename MD5 values that above-mentioned steps are obtained, file size, file offset address, file MD5 values etc. are by form group Knit one IDT list item of generation to be written in IDT files, wherein each table item size is identical.The behaviour of repeat step S301 ~ S304 Make until All Files is all packed into file bag system.img.
Step S305:Firmware updating header file HEAD is made, and generation liter that HEAD, IDT, system.img are packed together Level firmware.
Program of finally packing is by pre-set version information:V1.2.0, facility information:Vendor:Grandstream Type:IP phone Modle:The information such as 0x17, IDT file size and the size of system.img is write literary to the end by form In part HEAD, HEAD, IDT, system.img are finally packaged into firmware updating firmware.bin together.
Fig. 4 is that terminal device parses firmware updating and classifying downloaded flow chart in the specific embodiment of the invention, as seen from the figure, Parsing of the terminal device to firmware updating, which is downloaded, mainly includes following operating procedure:
Step S401:The address of upgrade server is set or set directly in terminal device by remote control tool.
Step S402:Whether operating file download module goes in detection service device to have when terminal device timing or every time startup Firmware, downloads the header file HEAD of firmware updating if having, and parses and therefrom obtains terminal device information and version information, into one Whether step judges whether it is the firmware updating of the model terminal device, is new version, if update_ then in systems Three sub- directory A DD, MOD, DEL are created under system catalogues, and enter step 403, otherwise terminate to upgrade.
Step S403:According to the deviant and file size of file information table IDT in header file HEAD, from server under Carry the file information table IDT of firmware updating.
Step S404:Parsing IDT files therefrom obtain the IDT list item informations of file info.txt, retrieve and compare preservation Whether there is the IDT table identical with the filename MD5 values of file info.txt in ancient deed information table LIDT in terminal device , above-mentioned MD5 values are a1425019a18343a4b03cfb8c9e72d245, are grasped if performing ADD increases to info.txt without if Make, the further MD5 values of contrast compressed package info.zip if having, i.e., whether with 08a4a0cf5af90fbb286cc8067f3057a4 is identical, MOD revision operations is performed if differing, otherwise file Info.txt skips the next IDT list items of processing without upgrading.
Step S405:File such as info.txt for performing ADD/MOD operations, using its deviant as 6243994 and text Part length is used as parameter for 181065, and file download module is sent by procotols such as tftp/http/https to server Obtain file request.
Step S406:Server is received after the request of terminal device according to above-mentioned deviant and file size, such as Info.txt, is to read the Data Concurrent that size is 181065 at 6243994 to give terminal device from firmware updating start offset.
Step S407:File download module in terminal device receives and data is transmitted to document analysis module after data, Document analysis module is decrypted data and data block is reduced to compressed package files info.zip, and file is saved in In ADD/MOD catalogues, while delete corresponding IDT list items in IDT and LIDT.
Repeat step S403 ~ S407, S408 is entered step after IDT list items all in IDT are all disposed.
Step S408:Remaining list item in ancient deed information table LIDT is run after fame in DEL mesh with its filename MD5 values respectively Record is lower to create empty file.
Fig. 5 is the flow chart that terminal device carries out updating operation in the specific embodiment of the invention.Terminal device starts upgrading Execution module, into upgrade mode, different upgrading behaviour is performed to the file of different directories ADD, MOD, DEL of above-mentioned generation Make, as shown in figure 5, the updating operation method specifically includes:
Step S501:The file in DEL catalogues is handled first, is removed in program scanning terminal device file system All local ancient deeds outside file under update_system catalogues, and calculation document name MD5 values establish file path and text The part name MD5 values mapping table Record of the two.The filename in the filename and Record under DEL catalogues is contrasted one by one MD5 values, if reading the path of this document in the identical file from Record and according to route deletion file, until in DEL catalogues All Files is deleted and finished.
Step S502:For the file in ADD catalogues, decompression program is directly solved according to the file path recorded in compressed package It is pressed onto corresponding catalogue.
Step S503:For the file in MOD catalogues, first delete ancient deed and decompress covering again, i.e. DEL and ADD operation With reference to.
Step S504:Treat All Files after treatment, delete old LIDT, and IDT is saved as to new LIDT.
Step S505:Restart terminal device and enter new system.
In addition, in order to carry out the large scale deployment of software upgrading to terminal device, it is also necessary to carry out following operation:Terminal is set Standby control client sends upgrade server address by DHCP option 66 to terminal device(server name)And send Upgrade command;After all terminal devices receive upgrade command and server address, the old server address of heavy duty simultaneously starts liter Level program, then upgrade procedure according to Fig. 3 to described in Fig. 5 the step of complete terminal device upgrading.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should all be included in the protection scope of the present invention.

Claims (10)

  1. A kind of 1. EMBEDDED AVIONICS method for upgrading software, it is characterised in that the described method includes:
    The file that different file directorys is used to download corresponding different operating, the file mesh are created under the system of terminal device Record includes following one or more:ADD, MOD, DEL and SKIP;
    The information of upgrade file table of firmware updating is downloaded from server end, the information of upgrade file table is set with the terminal Filename and check value in the ancient deed information table of standby storage, thus determine times for performing increase, revising, delete and skipping One kind operation;
    Operation to performing increase or revision, using deviant and file size as parameter, acquisition pair is sent to the server Answer the request of file data, the terminal device, which receives it to be decrypted after the file data, is reduced to compressed package File is simultaneously saved in the ADD/MOD catalogues;
    Start escalation process, the file in the ADD catalogues is directly decompressed according to the file path recorded in the compressed package To corresponding catalogue, ancient deed is first deleted to the file in the MOD catalogues and decompresses covering again.
  2. 2. upgrade method according to claim 1, it is characterised in that the upgrade method further includes:Make the upgrading Firmware, including:Tissue generates the information of upgrade file table, makes firmware updating header file, makes file bag, wherein the liter Level file information table includes Message Digest 5 numerical value, file offset address, the file size of file and filename;The making File bag is the generation file bag that is encrypted and packs to compressing file bag.
  3. 3. upgrade method according to claim 2, it is characterised in that the Message Digest 5 number of the file and filename Value refers to the MD5 values and filename MD5 values of the compressing file bag.
  4. 4. upgrade method according to claim 3, it is characterised in that the firmware updating header file includes:Version information, Facility information, the size of information of upgrade file table, the size of file bag.
  5. 5. upgrade method according to claim 4, it is characterised in that the method further includes:
    When the not no list item identical with the filename MD5 values in the ancient deed information table, then to the corresponding text of the list item Part performs increase operation, otherwise further compares the MD5 values of compressed package, and revision operation is carried out if differed.
  6. 6. the upgrade method according to claim 2 or 5, it is characterised in that the startup escalation process further includes:Scanning institute All local ancient deeds in terminal device file system are stated, calculation document name MD5 values establish file path and filename MD5 values The mapping table Record of the two, contrasts the filename MD5 values in the filename and Record under the DEL catalogues one by one, If identical read the path of the file and the file according to route deletion from the Record files.
  7. 7. a kind of EMBEDDED AVIONICS software update system, including:Firmware updating producing device, server, and equipped with depositing The terminal device of module and update device is stored up, the server is connected with each terminal device communication, and receives the liter The firmware updating that level firmware producing device is completed carries out the upgrading of software version for the terminal device, it is characterised in that institute Stating firmware updating producing device includes:Calculator, compression encrypting module and file packetization module, wherein,
    The calculator, is responsible for carrying out file size to compressing file bag, offset address calculates, and to file and filename Message Digest 5 numerical value carries out computing;
    The compression encrypting module, for being compressed to single target file and encryption;
    The file packetization module, for tissue generation information of upgrade file table, makes firmware updating header file, making file Bag, it is solid finally to carry out packing generation upgrading by the information of upgrade file table, the firmware updating header file and the file bag Part.
  8. 8. upgrade-system as claimed in claim 7, it is characterised in that the Message Digest 5 numerical value of the file and filename Refer to the MD5 values and filename MD5 values of the compressing file bag.
  9. 9. upgrade-system as claimed in claim 8, it is characterised in that the update device of the terminal device further comprises: File download module, comparison module, document analysis module and upgrade execution module, wherein,
    The file download module, for obtaining the firmware updating header file, upgrade file letter from the server end Table, the file bag are ceased, and creates the file subdirectory for being used to perform different operating set at least one:ADD、MOD、 DEL and SKIP;
    The comparison module, for whether having in the ancient deed information table of the terminal device and the filename MD5 values Whether identical list item, the MD5 values of the compressed package are identical;
    The document analysis module, for parsing data in the information of upgrade file table, obtains the filename MD5 values, text Part length, file offset address, file MD5 values;
    The upgrade execution module, is responsible for subdirectory:File in ADD, MOD, DEL and SKIP performs different upgrading behaviour Make, corresponding catalogue is directly unziped to according to the file path recorded in compressed package to the file decompression program in ADD catalogues;It is right File in MOD catalogues first deletes ancient deed and decompresses covering again.
  10. 10. upgrade-system as claimed in claim 9, it is characterised in that the upgrade execution module is additionally operable to scan the end All local ancient deeds in end equipment file system, calculation document name MD5 values establish both file path and filename MD5 values Mapping table Record, the filename MD5 values in the filename and Record under the DEL catalogues are contrasted one by one, if phase The path of the file and the file according to route deletion are read with from the Record files.
CN201310017187.1A 2013-01-17 2013-01-17 A kind of EMBEDDED AVIONICS method for upgrading software and system Active CN103942058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310017187.1A CN103942058B (en) 2013-01-17 2013-01-17 A kind of EMBEDDED AVIONICS method for upgrading software and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310017187.1A CN103942058B (en) 2013-01-17 2013-01-17 A kind of EMBEDDED AVIONICS method for upgrading software and system

Publications (2)

Publication Number Publication Date
CN103942058A CN103942058A (en) 2014-07-23
CN103942058B true CN103942058B (en) 2018-04-27

Family

ID=51189735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310017187.1A Active CN103942058B (en) 2013-01-17 2013-01-17 A kind of EMBEDDED AVIONICS method for upgrading software and system

Country Status (1)

Country Link
CN (1) CN103942058B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808273B (en) * 2014-12-30 2019-03-29 Tcl集团股份有限公司 Method for upgrading software and software updating apparatus
CN106095500A (en) * 2016-06-08 2016-11-09 江苏中威科技软件系统有限公司 A kind of method and system of automatic software updating
CN106372538A (en) * 2016-08-30 2017-02-01 苏州国芯科技有限公司 Firmware protection method based on SoC (System on Chip)
JP6747223B2 (en) * 2016-09-29 2020-08-26 セイコーエプソン株式会社 Server and server control method
CN108173888A (en) * 2016-12-06 2018-06-15 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software of distributed system, apparatus and system
CN107291497B (en) * 2017-06-08 2021-02-05 Tcl通力电子(惠州)有限公司 Multi-firmware upgrading method and system and readable storage medium
CN109284123A (en) * 2017-07-21 2019-01-29 深圳市中兴微电子技术有限公司 It is a kind of to divide the method and system for realizing compressed version upgrading using version
CN107885519A (en) * 2017-11-09 2018-04-06 上海奕瑞光电子科技股份有限公司 Firmware packings, upgrade method, system, storage medium and the flat panel detector of flat panel detector
CN107943501A (en) * 2017-11-30 2018-04-20 深圳市东微智能科技股份有限公司 Embedded device upgrade method, device, computer equipment and storage medium
CN107844318B (en) * 2017-12-11 2021-08-24 维沃移动通信有限公司 Upgrading method of operating system, mobile terminal and server
CN110650169A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Terminal equipment upgrading method and device
CN109358879A (en) * 2018-10-15 2019-02-19 广东宝莱特医用科技股份有限公司 A method of updating monitor system part programs
CN109388618B (en) * 2018-10-15 2021-02-12 密卡思(深圳)电讯有限公司 Method and device for compressing, decompressing, encrypting and decrypting file of embedded system
CN112579385B (en) * 2019-09-29 2024-09-27 中国石油天然气集团有限公司 Method and device for monitoring server file
CN111078153B (en) * 2019-12-20 2023-08-01 同方知网数字出版技术股份有限公司 Distributed storage method based on file
CN111552511B (en) * 2020-05-14 2023-06-16 山东省计算中心(国家超级计算济南中心) Method for recovering file name by unpacking firmware of Internet of things of VxWorks system
CN111813436B (en) * 2020-06-17 2022-08-19 中车株洲电力机车研究所有限公司 Method and system for updating configuration files in batch
CN111970161B (en) * 2020-09-21 2021-07-13 浙江大学 Internet of things application differential upgrading method based on address prediction
CN113225397A (en) * 2021-05-06 2021-08-06 深圳沃迪声科技股份有限公司 Firmware upgrading method and device for embedded equipment, terminal and storage medium
CN113342383B (en) * 2021-06-30 2022-10-11 广州市保伦电子有限公司 Remote online burning upgrading method for single chip microcomputer
CN113568636A (en) * 2021-07-08 2021-10-29 深圳市骁巨智能科技有限公司 Intelligent watch OTA upgrading system and method
CN116185460A (en) * 2023-04-26 2023-05-30 深圳市鼎盛科电子有限公司 Method and device for automatically upgrading embedded system software

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1493262A1 (en) * 2002-04-11 2005-01-05 HI/FN, Inc. Method, system and computer product for processing packets with layered headers
KR20070081868A (en) * 2006-02-14 2007-08-20 삼성전자주식회사 Method for updating software efficiently in mobile communication system
CN101436141A (en) * 2008-11-21 2009-05-20 深圳创维数字技术股份有限公司 Firmware upgrading and encapsulating method and device based on digital signing
CN101719072A (en) * 2009-11-23 2010-06-02 青岛海信宽带多媒体技术有限公司 Embedded type terminal equipment software upgrading method and upgrading device
CN102064960A (en) * 2010-11-26 2011-05-18 北京安天电子设备有限公司 Method, server and system for software upgrading

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1493262A1 (en) * 2002-04-11 2005-01-05 HI/FN, Inc. Method, system and computer product for processing packets with layered headers
KR20070081868A (en) * 2006-02-14 2007-08-20 삼성전자주식회사 Method for updating software efficiently in mobile communication system
CN101436141A (en) * 2008-11-21 2009-05-20 深圳创维数字技术股份有限公司 Firmware upgrading and encapsulating method and device based on digital signing
CN101719072A (en) * 2009-11-23 2010-06-02 青岛海信宽带多媒体技术有限公司 Embedded type terminal equipment software upgrading method and upgrading device
CN102064960A (en) * 2010-11-26 2011-05-18 北京安天电子设备有限公司 Method, server and system for software upgrading

Also Published As

Publication number Publication date
CN103942058A (en) 2014-07-23

Similar Documents

Publication Publication Date Title
CN103942058B (en) A kind of EMBEDDED AVIONICS method for upgrading software and system
US10031744B2 (en) Incremental upgrade method, apparatus for applying method and storage medium
CN104714819B (en) File system upgrade package production method, upgrade method and device, terminal
CN106815370B (en) Method, device and system for updating resource file
JP6236533B2 (en) Method and apparatus for creating differential update package, system differential update method and apparatus
CN106021023B (en) Application program recovery method and device and terminal
WO2016192197A1 (en) Software upgrade method, apparatus and system of terminal, and computer storage medium
KR102319657B1 (en) Managing operations on stored data units
US10965732B2 (en) Streaming zip
CN102591683B (en) The update method of a kind of embedded OS and system
CN104317667A (en) DMI FRU synchronization method
WO2013178048A1 (en) Method and device for generating firmware over-the-air upgrade package
CN106648766B (en) Method and device for generating patch upgrade patch based on folder and differentially upgrading patch based on folder
CN106302753A (en) The method and system of client-side program incremental update
US20130067237A1 (en) Providing random access to archives with block maps
CN103177077B (en) The storage of a kind of APK file and output intent
CN103793482A (en) Data synchronization method and system
CN103916440A (en) Remote upgrade method and device
CN104778129A (en) Implementation method and device of virtual storage of mobile terminal
CN105446975A (en) File packing method and device
CN103761095B (en) Method for generating universal upgrade file head data information
CN103019795A (en) Method and system for upgrading software basic data
CN105760183A (en) File processing method, device, and communication system
CN103218244A (en) Software updating and upgrading method of communication equipment
CN104182532B (en) Terminal file cleaning method and device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant