CN111142934A - Design method of file format capable of being loaded - Google Patents
Design method of file format capable of being loaded Download PDFInfo
- Publication number
- CN111142934A CN111142934A CN201911190361.6A CN201911190361A CN111142934A CN 111142934 A CN111142934 A CN 111142934A CN 201911190361 A CN201911190361 A CN 201911190361A CN 111142934 A CN111142934 A CN 111142934A
- Authority
- CN
- China
- Prior art keywords
- file
- software
- loaded
- data file
- data
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention belongs to the field of airborne computer system software, and provides a design method of a loadable file format. The problems of system operation errors, even crash and the like caused by unmatched software or data versions in the existing method are avoided, and therefore the safety and maintainability of the software data loading process are improved. The method mainly comprises the following steps: 1. formulating a file format of a loadable file; 2. generating basic information of software to be loaded; 3. reading the information of a data file of software to be loaded, and generating information related to the attribute of the data file; 4. appointing a channel number of a parameter data file aiming at the parameter data file of the software to be loaded; 5. determining the checksum of a data file of software to be loaded, and storing the checksum of the data file in a corresponding area of a file format; 6. and storing the data file of the software to be loaded to a corresponding area of the file format, thereby generating a loadable file.
Description
Technical Field
The invention belongs to the field of airborne computer system software, in particular to a design method of a loaded file format, and provides a data file format for loading software of an airborne computer with the purposes of software version control, data safety and maintainability.
Background
The software and data in the onboard computer software often need to be updated due to user requirement change, joint test, upgrading and the like, particularly, when an external field is changed, the onboard computer cannot be detached and loaded by using a simulator, and currently, the software and data in the computer are loaded on line mostly through communication interfaces such as RS422(RS232 and RS485), ARINC429 and the like.
Currently, in the field of onboard computers, a loading tool is generally used for directly loading executable codes and data, version management, data verification and the like of software are difficult to perform in this way, and simultaneously, software loading is inconvenient to manage. In addition, the above-mentioned manner of directly loading software and data is also difficult to further extend and maintain, such as checking solidified software and data in the computer.
Disclosure of Invention
The invention aims to provide a loadable file format design method, which can form a universal data file which can be used for loading software on line, and avoid the problems of system operation error, even crash and the like caused by unmatched software or data versions brought by the existing method, thereby improving the safety and maintainability of the software data loading process.
The specific technical scheme of the invention is as follows:
the invention provides a design method of a loadable file format, which comprises the following steps:
step 1: formulating a file format of a loadable file; the file format comprises a storage area of basic information of the software to be loaded, an information storage area of a data file of the software to be loaded, a channel number storage area of a parameter data file of the software to be loaded, a checksum storage area of the data file of the software to be loaded and a data file storage area of the software to be loaded;
step 2: generating basic information of software to be loaded;
the basic information comprises file marks generated according to loading types, version numbers generated according to software versions, name abbreviations generated according to software names, and version numbers and name abbreviations stored in corresponding areas of file formats;
and step 3: reading the information of a data file of software to be loaded, and generating information related to the attribute of the data file; the data file attribute related information comprises file modification time and file size; storing the file modification time and the file size in a corresponding area of a file format;
and 4, step 4: appointing a channel number of a parameter data file aiming at the parameter data file of the software to be loaded; the parameter data is a non-executable binary file; storing the channel number of the parameter data file into a corresponding area of a file format;
and 5: determining the checksum of a data file of software to be loaded, and storing the checksum of the data file in a corresponding area of a file format;
step 6: and storing the data file of the software to be loaded to a corresponding area of the file format, thereby generating a loadable file.
The invention has the beneficial effects that:
the invention adds file mark, version number, file modification time, file size, channel number and check sum to the data file of the software to be loaded, thereby generating a new file as a file lattice which can be loaded, thus greatly improving the universality and safety of software loading.
Drawings
FIG. 1 is a diagram of a file format composition that may be loaded;
FIG. 2 is a detail of a data file;
FIG. 3 is a diagram illustrating the contents of a data file after a loadable file format has been generated.
Detailed Description
The invention generates a new file by combining the data file to be loaded with the basic information of the software to be loaded, the information of the data file of the software to be loaded, the channel number of the parameter data file of the software to be loaded and the checksum of the data file of the software to be loaded. The storage area contained in the file format can be seen in fig. 1. The same file to be loaded only needs to generate a loadable file format once, and the loadable file format can be directly used for loading later. Besides, in practical application, the problem of byte alignment of each processor and the number of bytes of a data packet required by the used communication bus are considered, and corresponding blank bytes are added into the file format for storage and communication.
The invention is further illustrated with reference to the following figures and examples.
Taking a certain data file to be loaded shown in fig. 2 as an example, a specific implementation is described, a communication bus used in the embodiment is RS232, and the specific implementation content also considers the byte alignment problem during communication.
Step 1: and formulating a file format of the loadable file. The file format comprises a storage area of basic information of the software to be loaded, an information storage area of a data file of the software to be loaded, a channel number storage area of a parameter data file of the software to be loaded, a checksum storage area of the data file of the software to be loaded and a data file storage area of the software to be loaded;
table 1 shows a file format satisfying fig. 1. This embodiment requires all data except the data file to be sent separately over the RS232 bus, so some blank bytes are added as appropriate to make the communication data byte aligned.
TABLE 1
Step 2: and generating basic information of the software to be loaded. The basic information comprises file marks generated according to loading types, version numbers generated according to software versions, name abbreviations generated according to software names, and the version numbers and the name abbreviations stored in corresponding areas of file formats; the basic information of the software to be loaded can be seen in fig. 2.
And step 3: and reading the information of the data file of the software to be loaded. Generating data file attribute related information, wherein the data file attribute related information comprises file modification time and file size; storing the file modification time and the file size in a corresponding area of a file format; the information of the data file itself of the software to be loaded can be seen in fig. 2.
And 4, step 4: and aiming at the parameter data file of the software to be loaded, specifying the channel number of the parameter data file. The parameter data is a non-executable binary file; storing the channel number of the parameter data file into a corresponding area of a file format; the parameter data file of this embodiment is the only data file of the software, and its channel number is 0.
And 5: determining the checksum of a data file of software to be loaded, and storing the checksum of the data file in a corresponding area of a file format; and calculating the checksum of the data file to be 0xFAA91CBD by applying a CRC algorithm.
Step 6: and storing the data file of the software to be loaded to a corresponding area of the file format. The storage results are given in table 2.
TABLE 2
After the data are combined according to the format of table 2, the loadable file format shown in fig. 3 is generated.
And 7: and loading the software through the loadable file generated in the step 6.
Claims (2)
1. A design method of a loadable file format is characterized by comprising the following steps:
step 1: formulating a file format of a loadable file; the file format comprises a storage area of basic information of the software to be loaded, an information storage area of a data file of the software to be loaded, a channel number storage area of a parameter data file of the software to be loaded, a checksum storage area of the data file of the software to be loaded and a data file storage area of the software to be loaded;
step 2: generating basic information of software to be loaded;
the basic information comprises file marks generated according to loading types, version numbers generated according to software versions, name abbreviations generated according to software names, and version numbers and name abbreviations stored in corresponding areas of file formats;
and step 3: reading the information of a data file of software to be loaded, and generating data file attribute related information, wherein the data file attribute related information comprises file modification time and file size; storing the file modification time and the file size in a corresponding area of a file format;
and 4, step 4: appointing a channel number of a parameter data file aiming at the parameter data file of the software to be loaded; the parameter data is a non-executable binary file; storing the channel number of the parameter data file into a corresponding area of a file format;
and 5: determining the checksum of a data file of software to be loaded, and storing the checksum of the data file in a corresponding area of a file format;
step 6: and storing the data file of the software to be loaded to a corresponding area of the file format, thereby generating a loadable file.
2. The loadable file format design method according to claim 1, wherein: and calculating the checksum of the data file of the software to be loaded through a CRC algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911190361.6A CN111142934B (en) | 2019-11-28 | 2019-11-28 | Method for designing loadable file format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911190361.6A CN111142934B (en) | 2019-11-28 | 2019-11-28 | Method for designing loadable file format |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111142934A true CN111142934A (en) | 2020-05-12 |
CN111142934B CN111142934B (en) | 2023-06-13 |
Family
ID=70517292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911190361.6A Active CN111142934B (en) | 2019-11-28 | 2019-11-28 | Method for designing loadable file format |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111142934B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571370A (en) * | 2003-07-18 | 2005-01-26 | 华为技术有限公司 | A data loading method for communication equipment |
US20060179083A1 (en) * | 2005-02-08 | 2006-08-10 | Raghavendra Kulkarni | Systems and methods for storing, backing up and recovering computer data files |
CN101192151A (en) * | 2006-11-28 | 2008-06-04 | 国际商业机器公司 | Methods and systems for file version control management |
CN102081596A (en) * | 2009-11-30 | 2011-06-01 | 英业达股份有限公司 | Conversion method for file format of circuit board view program |
CN103530121A (en) * | 2013-10-15 | 2014-01-22 | 武汉邮电科学研究院 | Method of compatibility of multiple hardware platforms by RRU single software version |
CN104461881A (en) * | 2014-12-03 | 2015-03-25 | 陕西千山航空电子有限责任公司 | ICD-oriented ARINC429 bus signal simulation test assembly |
WO2015158000A1 (en) * | 2014-04-18 | 2015-10-22 | 华为终端有限公司 | Software upgrade method, device and equipment |
-
2019
- 2019-11-28 CN CN201911190361.6A patent/CN111142934B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571370A (en) * | 2003-07-18 | 2005-01-26 | 华为技术有限公司 | A data loading method for communication equipment |
US20060179083A1 (en) * | 2005-02-08 | 2006-08-10 | Raghavendra Kulkarni | Systems and methods for storing, backing up and recovering computer data files |
CN101192151A (en) * | 2006-11-28 | 2008-06-04 | 国际商业机器公司 | Methods and systems for file version control management |
CN102081596A (en) * | 2009-11-30 | 2011-06-01 | 英业达股份有限公司 | Conversion method for file format of circuit board view program |
CN103530121A (en) * | 2013-10-15 | 2014-01-22 | 武汉邮电科学研究院 | Method of compatibility of multiple hardware platforms by RRU single software version |
WO2015158000A1 (en) * | 2014-04-18 | 2015-10-22 | 华为终端有限公司 | Software upgrade method, device and equipment |
CN104461881A (en) * | 2014-12-03 | 2015-03-25 | 陕西千山航空电子有限责任公司 | ICD-oriented ARINC429 bus signal simulation test assembly |
Non-Patent Citations (2)
Title |
---|
陈培新 等: "嵌入式系统固件文件格式分析研究", 《计算机技术与发展》 * |
魏雪菲等: "一种1553B数据加卸载系统设计与实现", 《航空科学技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN111142934B (en) | 2023-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109729072B (en) | Communication protocol information processing method and device and electronic equipment | |
US20130132936A1 (en) | Apparatus and method for packing a software package of version upgrade | |
EP1376343A1 (en) | Mechanism for downloading software components from a remote source for use by a local software application | |
CN105446806B (en) | A kind of processing method and processing device of the application program without response | |
CN102937903B (en) | A kind of packaging file update method of feature based coupling | |
CN102520948A (en) | Application program maintenance and update method and device | |
CN111143358A (en) | Report configuration method and system | |
US20060106781A1 (en) | Database management system, database management method, and program | |
US20110067019A1 (en) | Delta compression using multiple pointers | |
CN102662789A (en) | Method for adding CRC (cyclic redundancy check) to ELF (executable linkable format) file | |
CN105094852A (en) | Tool for importing and exporting data EXCEL | |
CN104267978A (en) | Method and device for generating differential packet | |
CN107273152A (en) | The solution that a kind of anti-locking system ECU software is upgraded by mistake | |
CN103761095B (en) | Method for generating universal upgrade file head data information | |
CN110597591A (en) | Interface multi-language implementation method and device of embedded equipment and storage medium | |
CN110083378B (en) | Automatic software upgrading method and device based on file system | |
CN109462661B (en) | Data synchronization method and device, computer equipment and storage medium | |
CN106569843A (en) | Method and device for generating OTA central package | |
CN102521127A (en) | Universal bus data analyzing system | |
CN111142934A (en) | Design method of file format capable of being loaded | |
US20040030855A1 (en) | Method for setting up disk-array device, computer-readable storage medium, and information processing device | |
CN110019485A (en) | A kind of product data storage method, terminal device and storage medium | |
US20210349855A1 (en) | Method of data structuring for difference between old and new data and device thereof | |
CN116088926B (en) | Decision component version management method | |
US8893105B2 (en) | Activation-based regulatory updates |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |