Application compression loading method based on horizon system

By using the application compression loading method in the Tianmai system, using network communication and lossless data compression algorithms to compress and decompress the application image, the problem of inefficiency in traditional loading methods is solved, and the storage space and loading efficiency are improved.

CN120104583APending Publication Date: 2025-06-06SHENYANG AIRCRAFT DESIGN & RES INST YANGZHOU COLLABORATIVE INNOVATION RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510175728.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

As the complexity of airborne avionics systems increases, the scale of application images increases, resulting in inefficient traditional startup loading methods, which makes it difficult to meet the needs of storage capacity and startup efficiency.

Method used

The application compression loading method based on Tianmai system is adopted to transmit the application image through network communication between the PC and the embedded CPU, and the lossless data compression algorithm is used in the system boot layer and module support layer to compress and decompress the image. The startup address is configured in the memory and directly transport the compressed image from the non-volatile storage medium to the memory for startup.

Benefits of technology

Saves the storage space of non-volatile storage media, reduces the time from the storage media to memory, and improves the efficiency of application loading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104583A_ABST
    Figure CN120104583A_ABST
Patent Text Reader

Abstract

The invention discloses an application compression loading method based on a horizon system. The method comprises design of a PC end, a system guide layer, a module support layer and a core operating system layer. Wherein the PC end program is responsible for network transmission of an application mirror image, the system guide layer program compresses and burns the application mirror image received from a network, the module support layer program carries and decompresses the application mirror image, and the core operation system layer program is responsible for loading and starting the application mirror image. Compared with an existing celestial system application mirror image loading method, the problem that the capacity of a nonvolatile storage medium is insufficient due to the fact that the application mirror image is too large is solved, the loading time of the application program is shortened, and the starting efficiency of the system is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an embedded real-time operating system application technology, and belongs to the field of airborne embedded computing. Background Art

[0002] With the development of technology, airborne avionics systems are becoming more and more complex. The number of application software deployed on an embedded CPU module is increasing. As the application software processing tasks increase, the software scale is also increasing, resulting in the continuous increase in the size of the application image generated after the application software is compiled. In order to meet the substantial increase in the number and scale of application images, traditional designs are more concerned with increasing the storage capacity of non-volatile storage media, or increasing the number of non-volatile storage media in a limited printed circuit board (PCB), which brings many difficulties to hardware design and cost savings.

[0003] At present, the startup address of the application image in the Tianmai system must be configured in the operating system in advance. The conventional startup address is often configured on the non-volatile storage medium. When the core operating system starts the application, the image needs to be moved from the non-volatile storage medium to the memory for operation. Considering the increase in the scale of a single application image, the traditional loading and startup method of directly moving from the non-volatile storage medium to the memory will greatly reduce the startup efficiency. Summary of the invention

[0004] The purpose of the present invention is to provide an application compression loading method based on the Tianmai system, which saves the storage capacity of the non-volatile storage medium on the machine, while reducing the time of transferring from the non-volatile storage medium to the memory address, thereby improving the efficiency of application loading.

[0005] In order to achieve the above object, the technical solution of the present invention is:

[0006] A method for compressing and loading an application based on the Tianmai system includes the design of a PC terminal, a system boot layer, a module support layer, and a core operating system layer.

[0007] When the system starts to the system boot layer, the PC first establishes network communication with the network port of the embedded CPU, and transmits the application image to the memory of the CPU module through network communication.

[0008] When the system boots to the system boot layer, the system boot layer compresses the application image received to the memory using a lossless data compression algorithm, and after the compression is completed, writes the compressed application image to the non-volatile storage medium.

[0009] When the system boots to the module support layer, the module support layer reads the compressed application image written to the non-volatile storage medium into the memory, and uses a decompression algorithm corresponding to the lossless data compression algorithm to decompress the image into the memory.

[0010] When the system boots to the core operating system layer, the core operating system layer will directly start the application image from the memory according to the pre-configured startup address.

[0011] Beneficial effects of the present invention: The present invention innovatively configures the startup address of the application image in a fixed area on the memory in the Tianmai system, and burns the application image to a fixed address on a non-volatile storage medium after compression. When loading, it is moved from the non-volatile storage medium to the memory. Since the compressed image is moved, the transfer time is also reduced synchronously with the compression rate. The compressed application image after transfer is decompressed to the startup address on the memory for startup, which saves storage space of the non-volatile storage medium, reduces the transfer time, and improves the efficiency of application loading and startup. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is the system boot layer operation flow chart.

[0013] Figure 2 This is the module support layer operation flow chart.

[0014] Figure 3 This is the operation flow chart of the core operating system layer.

[0015] Figure 4 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with specific implementation methods.

[0017] Build an application loading system for a host PC and CPU module, including:

[0018] A host PC, as a node for network transmission, realizes the network transmission of the mirror;

[0019] A CPU module, based on Feiteng's FT2000 / 4 processor, with Tianmai 3 version 1063 operating system, and non-volatile storage medium using Sevenstar Huachuang's SPI Nor Flash. The CPU module is responsible for establishing network communication with the PC, receiving, compressing, burning, decompressing images, and loading and starting application images.

[0020] The specific process of an application compression loading method based on the Tianmai system is as follows:

[0021] 1) Connect the serial port and network port of the CPU module to the PC through a network cable and a USB-to-serial cable respectively. After the CPU module is powered on, connect to the system boot layer in the PC serial port tool.

[0022] 2) The PC establishes network communication with the CPU module network port by establishing socket communication, and downloads the application image app.bin to the memory address DA of the CPU module;

[0023] 3) The system boot layer compresses the application image app.bin into app.zip through the lossless data compression algorithm (deflate) interface, and burns app.zip to the specified address FA of the flash through the flash erase interface;

[0024] 4) Call the flash read interface in the module support layer to read app.zip from the flash specified address FA to the memory address DB;

[0025] 5) The module support layer uses the inflate interface corresponding to the lossy data compression algorithm to decompress the compressed image app.zip in the memory address DB to another predetermined memory address DC to obtain the decompressed image app.bin;

[0026] 6) Change the startup address of app.bin to the memory address DC in the configuration file of the Tianmai core operating system layer;

[0027] 7) After the Tianmai core operating system is started, the decompressed application image can be booted from the memory address DC.

[0028] Although the specific implementation of the present invention is described above to facilitate technical personnel in the technical field to understand the present invention, it should be clear that the present invention is not limited to the scope of the specific implementation mode. For ordinary technical personnel in this technical field, as long as various changes are within the spirit and scope of the present invention defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.

Claims

1. A method for compressing and loading an application based on the Tianmai system, characterized in that: It includes the design of PC side, system boot layer, module support layer and core operating system layer.

2. The application compression loading method based on the Tianmai system according to claim 1 is characterized in that: When the system starts to the system boot layer, the PC first establishes network communication with the network port of the embedded CPU, and transmits the application image to the memory of the CPU module through network communication.

3. The application compression loading method based on the Tianmai system according to claim 1 is characterized in that: When the system boots to the system boot layer, the system boot layer compresses the application image received to the memory using a lossless data compression algorithm, and after the compression is completed, writes the compressed application image to the non-volatile storage medium.

4. The application compression loading method based on the Tianmai system according to claim 1 is characterized in that: When the system boots to the module support layer, the module support layer reads the compressed application image written to the non-volatile storage medium into the memory, and uses a decompression algorithm corresponding to the lossless data compression algorithm to decompress the image into the memory.

5. The application compression loading method based on the Tianmai system according to claim 1 is characterized in that: When the system boots to the core operating system layer, the core operating system layer will directly start the application image from the memory according to the pre-configured startup address.