Spacecraft on-orbit maintenance injection code generation method based on secondary linking

A spacecraft and secondary link technology, applied in the direction of parser generation, creation/generation of source code, compiler construction, etc., can solve problems such as troublesome instruction code, improve efficiency and correctness, improve maintainability, and improve implementation. The effect of efficiency

Active Publication Date: 2017-11-03
BEIJING INST OF CONTROL ENG
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And when the writing of the on-orbit maintenance software needs to use library functions that were not used in the original on-orbit running software, the original method of relocating instruction codes through file parsing is cumbersome to implement

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Spacecraft on-orbit maintenance injection code generation method based on secondary linking
  • Spacecraft on-orbit maintenance injection code generation method based on secondary linking
  • Spacecraft on-orbit maintenance injection code generation method based on secondary linking

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0034] (1) On the premise of ensuring that the source file compilation directory of the spacecraft on-orbit software is consistent with the state when the executable code of the spacecraft on-orbit software is generated, use the compiler sparc-rtems-gcc to compile the spacecraft on-orbit software through the makefile. Compile the source file compilation directory of the software and implement a link to generate a linked executable file a.out, and then use the sparc-rtems-objcopy command to convert the file format of the linked executable file a.out to generate ELF format The in-orbit state object file a.o.

[0035] (2) In the source file compilation directory of the spacecraft on-orbit software, create a new injection code source file task_inject.c for on-orbit maintenance, and write the on-orbit maintenance source code in the task_inject.c source file, as shown in Table 1:

[0036] Table 1 Example of source code for on-orbit maintenance

[0037]

[0038] (3) Use the compi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a spacecraft on-orbit maintenance injection code generation method based on secondary linking. The method comprises the steps that (1) the state of spacecraft on-orbit running software is restored, and an on-orbit state target file is generated; (2) an on-orbit maintenance source code is written; (3) a compiler is used to independently compile the written on-orbit maintenance source code, and a to-be-uploaded target file is generated; (4) a script file for secondary linking is newly created; (5) the on-orbit state target file and the to-be-uploaded target file are linked based on the established script file for secondary linking, and a new executable file is generated; and (6) the new executable file is converted into a linking instruction file or a BIN file, and an injection code instruction with a designated initial address is directly extracted from the linking instruction file or the BIN file. Through the method, on the premise of guaranteeing that an original on-orbit software binary code does not change, a relocation process of all address relevant items in on-orbit maintenance software is automatically realized, and therefore the generation efficiency and correctness of a spacecraft on-orbit maintenance injection code are greatly improved.

Description

technical field [0001] The invention relates to a method for generating injection codes for on-orbit maintenance of spacecraft based on secondary links, and belongs to the field of on-orbit maintenance of spacecraft. Background technique [0002] The on-orbit maintenance capability of the spacecraft software is an indispensable means to ensure the long life of the spacecraft. Compared with the redundant backup of hardware, this method is more economical and more flexible. The method of improving the spacecraft's long life and high reliability through software on-orbit maintenance has been paid more and more attention. [0003] At present, the main processor platform of my country's spacecraft in orbit is the sparc series architecture. The main means of on-orbit operation and maintenance of spacecraft is to implement software on-orbit maintenance. The maintenance of spacecraft on-orbit software is mainly based on the method of hook function. Note an executable instruction ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/37
Inventor 李振松索旭华傅秀涛奚坤陈朝晖党纪红董晓刚杜建伟刘新彦李光旭周中泽
Owner BEIJING INST OF CONTROL ENG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products