CN104657184B - A kind of file corresponds to the upgrade method of multi-embedding formula equipment - Google Patents

A kind of file corresponds to the upgrade method of multi-embedding formula equipment Download PDF

Info

Publication number
CN104657184B
CN104657184B CN201510105271.8A CN201510105271A CN104657184B CN 104657184 B CN104657184 B CN 104657184B CN 201510105271 A CN201510105271 A CN 201510105271A CN 104657184 B CN104657184 B CN 104657184B
Authority
CN
China
Prior art keywords
instb
packets
file
subfile
equipment
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.)
Expired - Fee Related
Application number
CN201510105271.8A
Other languages
Chinese (zh)
Other versions
CN104657184A (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.)
Chengdu Guangda Hengji Communication Technology Co., Ltd
Original Assignee
Chengdu Guangda New Network 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 Chengdu Guangda New Network Technology Co Ltd filed Critical Chengdu Guangda New Network Technology Co Ltd
Priority to CN201510105271.8A priority Critical patent/CN104657184B/en
Publication of CN104657184A publication Critical patent/CN104657184A/en
Application granted granted Critical
Publication of CN104657184B publication Critical patent/CN104657184B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides the upgrade method that a kind of file corresponds to multi-embedding formula equipment, and this method includes:It downloads Instb packets and parses the header information of Instb packets;Confirm whether the file downloaded is Instb packets;The integrality of effect Instb packets;The facility information inside equipment to be upgraded is read in, and is matched one by one with the equipment list in Instb packets;According to the subfile information table in Instb packets, included subfile is extracted from Instb packets one by one, if the subfile of extraction is device configuration file, then read the facility information in the configuration file, if the facility information is consistent with the facility information inside equipment to be upgraded, configuration file is upgraded and continues to read next subfile.Multiple upgrade files of plurality of devices are merged into a file by the present invention, and this document is used in combination to upgrade plurality of devices, can greatly reduce the quantity of upgrade file, are conducive to improve device upgrade efficiency.

Description

A kind of file corresponds to the upgrade method of multi-embedding formula equipment
Technical field
The present invention relates to a kind of device updating methods, and the upgrading side of multi-embedding formula equipment is corresponded to more particularly, to a kind of file Method.
Background technology
Currently, embedded system consists of two parts substantially:Bootstrap, operating system.
Bootstrap:Device for initializing CPU and periphery, main purpose are guiding operating system normal operations.
Operating system:The core of embedded system is mainly used for managing the scheduling of multitask;Managing internal memory and periphery are set It is standby to wait some fundamental operations.
Further accordance with different application scenarios, certain embedded systems also include some configuration files, these configuration files The interior parameter etc. containing needed for facility information and the operation of each components of system as directed.
During actual production development, in order to reach the purpose of shortening the development time and saving production cost, usually Same development teams can select to be applied to multiple embedded products with a CPU.Using the equipment with a CPU, can run Same bootstrap and operating system, and different configuration informations is loaded, to realize different functions.Different CPU but by In the differences such as framework and compiling rule, same bootstrap and operating system program cannot be shared.
It is actual by with a CPU develop and include configuration file the upgrade maintenance of embedded device in, due to embedding Enter the factors such as formula equipment is wide in variety, distribution is miscellaneous.Frequently encounter problems with:One, upgrade file is more, is unfavorable for plant maintenance personnel To upgrade file management, file is easy to obscure, and influences device upgrade efficiency;Two, plant maintenance personnel accidentally use alternative document liter Grade, causes equipment to be unable to operate normally, or even can not start;Three, when device upgrade is safeguarded, leakage upgrading part system file is led Cause equipment work abnormal etc..
Invention content
It is an object of the invention to:In view of the problems of the existing technology, a kind of file is provided and corresponds to multi-embedding formula equipment Upgrade method, solve it is existing by with a CPU develop and include configuration file embedded device upgrade maintenance very not Convenient problem.
The goal of the invention of the present invention is achieved through the following technical solutions:
A kind of file corresponds to the upgrade method of multi-embedding formula equipment, which is characterized in that this approach includes the following steps:
(1) Instb packets are downloaded in the memory of equipment to be upgraded, and parses the header information of Instb packets;
(2) confirm whether the file downloaded is Instb packets, if it is carry out step (3), otherwise exit upgrading;
(3) integrality of effect Instb packets, if completely, carrying out step (4), otherwise exiting upgrading;
(4) facility information inside equipment to be upgraded is read in, and is matched one by one with the equipment list in Instb packets, such as Fruit has and the facility information is matched, then carries out step (5), otherwise exit upgrading;
(5) according to the subfile information table in Instb packets, included subfile is extracted from Instb packets one by one, such as The subfile of fruit extraction is device configuration file, then reads the facility information in the configuration file, if the facility information and waited for Facility information inside updating apparatus is consistent, then is upgraded to configuration file and continue to read next subfile.
Preferably, the Instb packets are made of header information, equipment list, subfile information table and subfile, the head It is the magic numbers of Instb packets, the file effect information for verifying file integrality that information, which includes for marking this document, described The facility information of all devices of Instb packets support is set out in equipment list, and the subfile includes bootstrap file, operation system The configuration file of system file and plurality of devices.
Preferably, described to confirm that the step of whether file downloaded is Instb packets includes:Judge this document magic number and Whether the magic number that Instb is defined is consistent, is Instb packets if consistent.
Preferably, the method for the integrality of the effect Instb packets includes:According to the content of the header information of Instb packets Check value calculating is carried out to Instb packets, the file effect information after the completion of calculating and in Instb packets is compared, if the two Unanimously, then illustrate that Instb packets are complete.
Preferably, facility information is equipped in the equipment to be upgraded, the facility information in different equipment to be upgraded is different.
Preferably, the step (5) further includes step:If the subfile of extraction is not device configuration file, directly It treats updating apparatus to be upgraded, and continues to read next subfile.
Compared with prior art, the present invention has the following advantages:
1, multiple upgrade files of plurality of devices are merged into a file, then plurality of devices is risen with this document Grade, greatly reduced the quantity of upgrade file, be conducive to improve device upgrade efficiency;
2, the correctness and integrality for first examining upgrade file can be avoided effectively using caused by illegal document upgrading The problem of equipment can not start, wherein illegal file refer to the upgrade file being destroyed in non-upgrade file or data transmission procedure;
3, matching unit information is carried out, effectively avoids and is upgraded using the upgrade file of non-equipment, and is caused Equipment work abnormal or equipment the problem of can not starting;
4, program automatically selects upgrading, reduces manual operation link, at the same also avoid maintenance personnel leak upgrading and again The problem of upgrading again, and greatly shorten update time.
Description of the drawings
Fig. 1 is the data structure diagram of Instb packets;
Fig. 2 is the flow chart of effect Instb packet integralities of the present invention;
Fig. 3 is that the present invention carries out the matched flow chart of equipment support to be upgraded;
Fig. 4 present invention carries out Instb subfiles and upgrades flow chart.
Specific implementation mode
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment
Present invention is mainly used for the upgrade maintenances of the embedded device by developing and including configuration file with a CPU.This The principle of invention is:Each embedded device to be upgraded is given to distribute a special facility information (such as device number) first, this Information is not identical with other equipment, and this information is stored in the specific configuration file of equipment, when manufacture write-in set Standby Flash, is no longer changed after manufacture.Then the bootstrap file these embedded devices to be upgraded shared and behaviour Make system file and one file packet of configuration file boil down to of each equipment, this file packet is named as Instb packets here. Finally, by Instb packets to each device upgrade.
Instb packets consist of the following components (as shown in Figure 1):Header information, equipment list, subfile information table and Ziwen Part.Wherein header information includes magic number, file verification information etc.;The effect of magic number is that label this document is Instb packets;Text Part check information includes Instb length and the check value of Instb, for verifying the integrality of file;Equipment list is for enumerating Go out the information of the supported all equipment of the Instb packets;Subfile can be bootstrap file, operating system file and more The configuration file etc. of kind equipment.These files are compressed by specific compress mode, and are sequentially arranged in the end of file.And by this All information of a little files are stored in subfile information table, decompression, extraction when for upgrading.
When being upgraded to equipment using Instb packets, key step is as follows:
The first step downloads to Instb packets in the memory of equipment to be upgraded, and parses the header information of Instb packets.
Second step, as shown in Fig. 2, first confiring that whether the file of download is Instb packets, specific confirmation method is to judge Whether the magic number of this document and the magic number of Instb package definitions are consistent, carry out next step operation if consistent, otherwise exit Upgrading, and prompt customer upgrade file incorrect;Then the integrality of Instb packets is checked, specific method is, according to Instb packets Header information content to Instb packets carry out check value calculating, after the completion of calculating and Instb packets in original checksums value ratio Compared with if the two is consistent, illustrating that Instb packets are complete, otherwise exit upgrading, and it is wrong to promote customer upgrade file.
Third walks, as shown in figure 3, read in the facility information inside equipment to be upgraded, and one by one with the equipment in Instb packets Table is matched.If there is matched with the facility information to be upgraded, then next step updating operation is carried out, upgrading is otherwise exited, And user's upgrade file is prompted not support this equipment.
4th step extracts institute from Instb packets one by one as shown in figure 4, according to the subfile information table in Instb packets Including subfile.If the subfile of extraction is configuration file, the facility information in the configuration file is read, if this sets Standby information is consistent with the facility information preserved in equipment to be upgraded, then upgrades to configuration file, otherwise ignores this configuration text Part.If this document is not configuration file, directly upgraded.Upgrading until completing all subfiles.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, it is noted that all All any modification, equivalent and improvement made by within the spirit and principles in the present invention etc. should be included in the guarantor of the present invention Within the scope of shield.

Claims (4)

1. a kind of file corresponds to the upgrade method of multi-embedding formula equipment, which is characterized in that this approach includes the following steps:
(1) Instb packets are downloaded in the memory of equipment to be upgraded, and parses the header information of Instb packets, the Instb packets It is made of header information, equipment list, subfile information table and subfile, the header information includes for marking this document to be The support of Instb packets is set out in the magic number of Instb packets, the file verification information for verifying file integrality, the equipment list All devices facility information, the subfile includes the configuration of bootstrap file, operating system file and plurality of devices File;
(2) confirm whether the file downloaded is Instb packets, if it is carry out step (3), otherwise exit upgrading;
(3) integrality for verifying Instb packets, if completely, carrying out step (4), otherwise exiting upgrading;
(4) facility information inside equipment to be upgraded is read in, and is matched one by one with the equipment list in Instb packets, if there is It is matched with the facility information, then step (5) is carried out, upgrading is otherwise exited;
(5) according to the subfile information table in Instb packets, included subfile is extracted from Instb packets one by one, if carried The subfile taken is device configuration file, then reads the facility information in the configuration file, if the facility information and to be upgraded Facility information inside equipment is consistent, then is upgraded to configuration file and continue to read next subfile;If extraction Subfile is not device configuration file, then directly treats updating apparatus and upgraded, and continues to read next subfile.
2. a kind of file according to claim 1 corresponds to the upgrade method of multi-embedding formula equipment, which is characterized in that described true The step of whether file for recognizing download is Instb packets include:Judge the magic number of this document and whether magic number that Instb is defined Unanimously, it is Instb packets if consistent.
3. a kind of file according to claim 1 corresponds to the upgrade method of multi-embedding formula equipment, which is characterized in that the school The step of integrality for testing Instb packets includes:Check value meter is carried out to Instb packets according to the content of the header information of Instb packets It calculates, the file verification information after the completion of calculating and in Instb packets is compared, if the two is consistent, illustrates that Instb packets have been Whole.
4. a kind of file according to claim 1 corresponds to the upgrade method of multi-embedding formula equipment, which is characterized in that described to wait for Facility information is equipped in updating apparatus, the facility information in different equipment to be upgraded is different.
CN201510105271.8A 2015-03-11 2015-03-11 A kind of file corresponds to the upgrade method of multi-embedding formula equipment Expired - Fee Related CN104657184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510105271.8A CN104657184B (en) 2015-03-11 2015-03-11 A kind of file corresponds to the upgrade method of multi-embedding formula equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510105271.8A CN104657184B (en) 2015-03-11 2015-03-11 A kind of file corresponds to the upgrade method of multi-embedding formula equipment

Publications (2)

Publication Number Publication Date
CN104657184A CN104657184A (en) 2015-05-27
CN104657184B true CN104657184B (en) 2018-09-28

Family

ID=53248363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510105271.8A Expired - Fee Related CN104657184B (en) 2015-03-11 2015-03-11 A kind of file corresponds to the upgrade method of multi-embedding formula equipment

Country Status (1)

Country Link
CN (1) CN104657184B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302613A (en) * 2015-11-23 2016-02-03 武汉烽火网络有限责任公司 Method and system for updating EOC software by adopting combined files
CN109426507B (en) * 2017-08-25 2022-01-21 中车株洲电力机车研究所有限公司 Case equipment file management method and system
CN112631632B (en) * 2020-12-30 2024-03-12 北京天融信网络安全技术有限公司 System upgrade method, framework, electronic device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520996A (en) * 2011-12-07 2012-06-27 上海市共进通信技术有限公司 Cross-platform common upgrade mirror information generation and upgrade method in embedded apparatus
CN102567049A (en) * 2011-12-09 2012-07-11 惠州市德赛西威汽车电子有限公司 Upgrade method of embedded operating system
CN103530154A (en) * 2013-10-12 2014-01-22 北京神州绿盟信息安全科技股份有限公司 Method and equipment for product upgrading

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7549148B2 (en) * 2003-12-16 2009-06-16 Microsoft Corporation Self-describing software image update components

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520996A (en) * 2011-12-07 2012-06-27 上海市共进通信技术有限公司 Cross-platform common upgrade mirror information generation and upgrade method in embedded apparatus
CN102567049A (en) * 2011-12-09 2012-07-11 惠州市德赛西威汽车电子有限公司 Upgrade method of embedded operating system
CN103530154A (en) * 2013-10-12 2014-01-22 北京神州绿盟信息安全科技股份有限公司 Method and equipment for product upgrading

Also Published As

Publication number Publication date
CN104657184A (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN104581397B (en) The method for upgrading system and device of android set top box
US9158538B2 (en) User-extensible rule-based source code modification
CN106294171B (en) Test macro, the method and apparatus of product automatic deployment
CN104657184B (en) A kind of file corresponds to the upgrade method of multi-embedding formula equipment
US20130179865A1 (en) Automated error checking system for a software application and method therefor
CN102592023A (en) Register designing method and register designing device in integrated circuit designing process
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN104850427B (en) A kind of code upgrade method and device
CN106899437A (en) A kind of method and apparatus of POS module firmware of upgrading
CN107402776A (en) A kind of mobile phone wireless upgrading stm32 singlechip controller firmware methods based on bluetooth 4
CN110083374A (en) A kind of upgrading rollback method, system and terminal device
CN104820676B (en) A kind of method and device for judging version number's size
CN105373728A (en) Advertisement prompting system and method
CN108182078B (en) Optimized missile-borne device non-dismantling software online upgrading method
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN106445584B (en) The management method and system of software module
CN102262684A (en) Method and device for generating webpage page of mobile terminal
CN103186463B (en) Determine the method and system of the test specification of software
CN107643893A (en) A kind of program detecting method and device
CN105786636B (en) A kind of system repair and device
CN110119348B (en) Software upgrading test method and terminal
CN112732561A (en) Project deployment method and device, computer equipment and storage medium
CN110308923A (en) A kind of test method and its system of OTA upgrading
CN105117329A (en) Application automatic online system and method
CN107729043A (en) Method of calibration, device and the computer-readable recording medium of increment AKU

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant after: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY CO., LTD.

Address before: High tech Zone Shiyang street Chengdu city Sichuan Province, Qingyun 610041 village five group No. fifty-five Shiyang Industrial Park No. two building four floor

Applicant before: Chengdu Guangda Electronic Corporation Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200729

Address after: Floor 2, No.16, Gaopeng Avenue, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Guangda Hengji Communication Technology Co., Ltd

Address before: 610041 building four, building two, Shiyang Industrial Park, five village, Shiyang village, fifty-five village, Chengdu hi tech Zone, Sichuan, Qingyun

Patentee before: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180928

Termination date: 20210311