CN104657184A - Upgrading method by corresponding files to multi-embedded equipment - Google Patents

Upgrading method by corresponding files to multi-embedded equipment Download PDF

Info

Publication number
CN104657184A
CN104657184A CN201510105271.8A CN201510105271A CN104657184A CN 104657184 A CN104657184 A CN 104657184A CN 201510105271 A CN201510105271 A CN 201510105271A CN 104657184 A CN104657184 A CN 104657184A
Authority
CN
China
Prior art keywords
file
instb
bag
equipment
information
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.)
Granted
Application number
CN201510105271.8A
Other languages
Chinese (zh)
Other versions
CN104657184B (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 Electronic Corp 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 Electronic Corp Co Ltd filed Critical Chengdu Guangda Electronic Corp 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 invention provides an upgrading method by corresponding files to multi-embedded equipment. The upgrading method comprises the following steps: downloading an Instb packet and analyzing header information of the Instb packet; determining whether the downloaded file is the Instb packet or not; verifying the integrity of the Instb packet; reading equipment information inside equipment to be upgraded, and matching the equipment information with an equipment table in the Instb packet one by one; extracting subfiles contained in the Instb packet from the Instb packet one by one according to a subfile information table in the Instb packet; if the extracted subfile is an equipment configuration file, reading equipment information in the configuration file; if the equipment information is consistent with that inside the equipment to be upgraded, upgrading the configuration file and continuously reading next subfile. According to the upgrading method provided by the invention, a plurality of upgrading files of multiple equipment are combined into a file; the multiple equipment is upgraded by using the file, so that the number of upgrading files can be greatly reduced, and the upgrading efficiency of the equipment is favorably improved.

Description

The upgrade method of the corresponding multi-embedding formula equipment of a kind of file
Technical field
The present invention relates to a kind of device updating method, especially relate to the upgrade method of the corresponding multi-embedding formula equipment of a kind of file.
Background technology
At present, embedded system is made up of two parts substantially: boot, operating system.
Boot: for the device of initialization CPU and periphery, fundamental purpose guides operating system normally to run.
Operating system: the core of embedded system, is mainly used in the scheduling managing multitask; Some fundamental operations such as managing internal memory and peripherals.
Another according to different application scenarioss, some embedded system also includes some configuration files, the parameter etc. needed for running containing facility information and each components of system as directed in these configuration files.
In the production development process of reality, shorten the development time to reach and save the objects such as production cost, usual same development teams can be selected to be applied to multiple embedded product with a CPU.Use the equipment with a CPU, same boot and operating system can be run, and load different configuration informations, to realize different functions.Different CPU but due to differences such as framework and compiling rules, can not share same boot and operating system program.
In reality by developing with a CPU and comprising in the upgrade maintenance of the embedded device of configuration file, due to factors such as embedded device are wide in variety, distribution is assorted.Often run into following problem: one, upgrade file is many, be unfavorable for that plant maintenance personnel manage upgrade file, file is easily obscured, and affects device upgrade efficiency; Two, plant maintenance personnel use alternative document upgrading by mistake, cause equipment normally to run, even cannot start; Three, when device upgrade is safeguarded, leak upgrading part system file, cause equipment work abnormal.
Summary of the invention
The object of the invention is to: for prior art Problems existing, the upgrade method of the corresponding multi-embedding formula equipment of a kind of file is provided, solve existing by developing with a CPU and comprising the very inconvenient problem of the upgrade maintenance of the embedded device of configuration file.
Goal of the invention of the present invention is achieved through the following technical solutions:
A upgrade method for the corresponding multi-embedding formula equipment of file, it is characterized in that, the method comprises the following steps:
(1) Instb bag is downloaded in the internal memory of equipment to be upgraded, and resolve the header information of Instb bag;
(2) whether the file that confirmation is downloaded is Instb bag, if it is carries out step (3), otherwise exits upgrading;
(3) integrality of effect Instb bag, if complete, then carry out step (4), otherwise exits upgrading;
(4) read in the facility information of device interior to be upgraded, and one by one with Instb bag in equipment list mate, if having and this facility information coupling, then carry out step (5), otherwise exit upgrading;
(5) according to the son file information table in Instb bag, comprised son file is extracted one by one from Instb bag, if the son file extracted is device configuration file, then read the facility information in this configuration file, if this facility information is consistent with the facility information of device interior to be upgraded, then configuration file is upgraded and continue to read next son file.
Preferably, described Instb bag is made up of header information, equipment list, son file information table and son file, it is the magic number of Instb bag, the file effect information for authenticating documents integrality that described header information comprises for marking this file, described equipment list enumerates out the facility information of all devices that Instb bag is supported, described son file comprises the configuration file of boot file, operating system file and plurality of devices.
Preferably, whether the described file confirming to download is that the step that Instb wraps comprises: judge that whether the magic number of this file is consistent with the magic number that Instb defines, if consistent, is Instb bag.
Preferably, the method of the integrality of described effect Instb bag comprises: the content according to the header information of Instb bag carries out proof test value calculating to Instb bag, file effect information after having calculated and in Instb bag compares, if both are consistent, then illustrates that Instb bag is complete.
Preferably, be provided with facility information in described equipment to be upgraded, the facility information in different equipment to be upgraded is different.
Preferably, described step (5) also comprises step: if the son file extracted is not device configuration file, then directly treats updating apparatus and upgrade, and continues to read next son file.
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 with this file, plurality of devices are upgraded, greatly reducing the quantity of upgrade file, be conducive to improving device upgrade efficiency;
2, first check correctness and the integrality of upgrade file, effectively can avoid the problem that the equipment using illegal document upgrading to cause cannot start, wherein illegal file refers to upgrade file destroyed in non-upgrade file or data transmission procedure;
3, carry out matching unit information, effectively avoid and use the upgrade file of non-equipment to upgrade, and the problem that the equipment work caused is abnormal or equipment cannot start;
4, program selects upgrading automatically, decreases manual operation link, it also avoid the problem that maintainer leaks upgrading and repeatedly upgrading simultaneously, and greatly shortens update time.
Accompanying drawing explanation
Fig. 1 is the data structure diagram of Instb bag;
Fig. 2 is the process flow diagram of effect Instb bag integrality of the present invention;
Fig. 3 is the process flow diagram that the present invention carries out equipment support to be upgraded coupling;
Fig. 4 the present invention carries out Instb son file upgrading process flow diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment
The present invention is mainly used in by developing with a CPU and comprising the upgrade maintenance of the embedded device of configuration file.Principle of the present invention is: distribute a special facility information (as device number) first to each embedded device to be upgraded, identical not with other equipment of this information, and by this information, be kept in the specific configuration file of equipment, when dispatching from the factory, the Flash of write device, no longer changes after dispatching from the factory.Then by these embedded devices to be upgraded configuration file boil down to file bag of the boot file that shares and operating system file and each equipment, here this file bag called after Instb is wrapped.Finally, wrapped to each device upgrade by Instb.
Instb bag consists of the following components (as shown in Figure 1): header information, equipment list, son file information table and son file.Wherein header information comprises magic number, file verification information etc.; The effect of magic number is this file of mark is Instb bag; File verification packets of information, containing the proof test value of Instb length and Instb, is used for the integrality of authenticating documents; Equipment list wraps the information of supported all equipment for enumerating out this Instb; Son file can be the configuration file etc. of boot file, operating system file and plurality of devices.These files by specific compress mode compression, and are sequentially arranged in the end of file.And all information of these files are left in son file information table, for decompress(ion), extraction during upgrading.
When using Instb bag to upgrade to equipment, key step is as follows:
The first step, downloads to Instb bag in the internal memory of equipment to be upgraded, and resolves the header information of Instb bag.
Second step, as shown in Figure 2, first confirms whether the file downloaded is Instb bag, concrete confirmation method is, judges that whether the magic number of this file is consistent with the magic number of Instb package definition, if consistent, carries out next step operation, otherwise exit upgrading, and point out customer upgrade file incorrect; Then the integrality of Instb bag is checked, concrete grammar is, content according to the header information of Instb bag carries out proof test value calculating to Instb bag, original checksums value after having calculated and in Instb bag compares, if both are consistent, then illustrate that Instb bag is complete, otherwise exit upgrading, and it is wrong to promote customer upgrade file.
3rd step, as shown in Figure 3, reads in the facility information of device interior to be upgraded, and mates with the equipment list in Instb bag one by one.If had and this facility information to be upgraded coupling, then carry out next step updating operation, otherwise exit upgrading, and point out this upgrade file of user not support this equipment.
4th step, as shown in Figure 4, according to the son file information table in Instb bag, extracts comprised son file one by one from Instb bag.If the son file extracted is configuration file, then read the facility information in this configuration file, if this facility information is consistent with the facility information preserved in equipment to be upgraded, then configuration file is upgraded, otherwise ignore this configuration file.If this file is not configuration file, then directly upgrade.Until complete the upgrading of all son files.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, it should be pointed out that all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a upgrade method for the corresponding multi-embedding formula equipment of file, it is characterized in that, the method comprises the following steps:
(1) Instb bag is downloaded in the internal memory of equipment to be upgraded, and resolve the header information of Instb bag;
(2) whether the file that confirmation is downloaded is Instb bag, if it is carries out step (3), otherwise exits upgrading;
(3) integrality of effect Instb bag, if complete, then carry out step (4), otherwise exits upgrading;
(4) read in the facility information of device interior to be upgraded, and one by one with Instb bag in equipment list mate, if having and this facility information coupling, then carry out step (5), otherwise exit upgrading;
(5) according to the son file information table in Instb bag, comprised son file is extracted one by one from Instb bag, if the son file extracted is device configuration file, then read the facility information in this configuration file, if this facility information is consistent with the facility information of device interior to be upgraded, then configuration file is upgraded and continue to read next son file.
2. the upgrade method of the corresponding multi-embedding formula equipment of a kind of file according to claim 1, it is characterized in that, described Instb bag is made up of header information, equipment list, son file information table and son file, it is the magic number of Instb bag, the file effect information for authenticating documents integrality that described header information comprises for marking this file, described equipment list enumerates out the facility information of all devices that Instb bag is supported, described son file comprises the configuration file of boot file, operating system file and plurality of devices.
3. the upgrade method of the corresponding multi-embedding formula equipment of a kind of file according to claim 1, it is characterized in that, whether the described file confirming to download is that the step that Instb wraps comprises: judge that whether the magic number of this file is consistent with the magic number that Instb defines, if consistent, is Instb bag.
4. the upgrade method of the corresponding multi-embedding formula equipment of a kind of file according to claim 1, it is characterized in that, the method of the integrality of described effect Instb bag comprises: the content according to the header information of Instb bag carries out proof test value calculating to Instb bag, file effect information after having calculated and in Instb bag compares, if both are consistent, then illustrate that Instb bag is complete.
5. the upgrade method of the corresponding multi-embedding formula equipment of a kind of file according to claim 1, it is characterized in that, be provided with facility information in described equipment to be upgraded, the facility information in different equipment to be upgraded is different.
6. the upgrade method of the corresponding multi-embedding formula equipment of a kind of file according to claim 1, it is characterized in that, described step (5) also comprises step: if the son file extracted is not device configuration file, then directly treat updating apparatus to upgrade, and continue to read next son file.
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 true CN104657184A (en) 2015-05-27
CN104657184B 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)

Cited By (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
CN109426507A (en) * 2017-08-25 2019-03-05 中车株洲电力机车研究所有限公司 A kind of cabinet equipment document distribution method and system
CN112631632A (en) * 2020-12-30 2021-04-09 北京天融信网络安全技术有限公司 System upgrading method, framework, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050132356A1 (en) * 2003-12-16 2005-06-16 Microsoft Corporation Self-describing software image update components
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050132356A1 (en) * 2003-12-16 2005-06-16 Microsoft Corporation Self-describing software image update components
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

Cited By (5)

* 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
CN109426507A (en) * 2017-08-25 2019-03-05 中车株洲电力机车研究所有限公司 A kind of cabinet equipment document distribution method and system
CN109426507B (en) * 2017-08-25 2022-01-21 中车株洲电力机车研究所有限公司 Case equipment file management method and system
CN112631632A (en) * 2020-12-30 2021-04-09 北京天融信网络安全技术有限公司 System upgrading method, framework, electronic equipment and readable storage medium
CN112631632B (en) * 2020-12-30 2024-03-12 北京天融信网络安全技术有限公司 System upgrade method, framework, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN104657184B (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN104581397B (en) The method for upgrading system and device of android set top box
CN104714819B (en) File system upgrade package production method, upgrade method and device, terminal
CN106648803A (en) Online upgrading method for DSP chip
CN106484453B (en) Method and device for realizing system upgrading
CN106707848A (en) Control program organization structure of control system and download method
CN104008060B (en) Method for detecting compatibility of plug-in and host, and detection server
CN105528225A (en) Application loading method and loading apparatus
CN104850427B (en) A kind of code upgrade method and device
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN104820676B (en) A kind of method and device for judging version number's size
CN111831538A (en) Debugging method, device and storage medium
CN104657184A (en) Upgrading method by corresponding files to multi-embedded equipment
WO2021174860A1 (en) Special code-based method for batch upgrading multi-firmware distributed board card
CN106681783A (en) Detection method and system for SVN code
CN104503898A (en) Method and system for checking embedded software debugging parameter in real time
CN110119348B (en) Software upgrading test method and terminal
CN108182078A (en) A kind of missile equipment not bomb disposal on-line software updating method of optimization
CN110147246A (en) Version checking method and device, storage medium and the terminal of space download technology
CN104133743A (en) Method and device for burning file into EMMC (Embedded MultiMedia Card)
CN107479924B (en) Software upgrading verification method based on Android system
CN111459496A (en) Method for generating tamper-proof program file and method for upgrading equipment
KR101412465B1 (en) Verification system and verification method of code block for separating execution based contents
CN110826074A (en) Application vulnerability detection method and device and computer readable storage medium
CN101695172B (en) Method and device for independent description and encoding of message interfaces of communication equipment
CN115102855B (en) Online upgrading method and system for intelligent water meter embedded software

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

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.

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

Granted publication date: 20180928

Termination date: 20210311

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