A boot sector application software system based on parameter configuration

By using a parameter-configurable boot sector application software system, the characteristic information of the boot software is abstracted as configuration parameters, which solves the problem of low development efficiency caused by the large number of configuration items in the boot sector application software, and realizes efficient and reliable software development and production.

CN119396473BActive Publication Date: 2025-11-18BEIJING INST OF CONTROL ENG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411211952.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2025-11-18
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

In existing technologies, the number of configuration items in the boot sector application software is enormous, resulting in a huge workload for software development and affecting development efficiency and reliability.

Method used

By adopting a parameter-configurable boot sector application software system, the characteristic information of the boot software is abstracted as configuration parameters to realize the productization of the software and simplify the development process.

Benefits of technology

This improved the development efficiency and reliability of the guidance area application software, enabling mass production and highly applicable software systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396473B_ABST
    Figure CN119396473B_ABST
Patent Text Reader

Abstract

A kind of parameter configuration-based boot area application software system, including: application software initialization module, star time processing module, communication function module, memory operation module, remote control instruction processing module and telemetry packaging module.The present application can realize the batch development of boot area application software by the parameter configuration of the characteristic information of general boot area application software, and the method solves the problem of huge workload caused by the large number of configuration items of current boot area application software.The method has been used in multiple satellite attitude and orbit control subsystems and single machine products, and a large number of software configuration items have been completed, which is practical, applicable and effective in improving the efficiency of software development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a boot sector application software system based on parameter configuration, belonging to the field of embedded software development technology. Background Technology

[0002] The spacecraft attitude and orbit control subsystem software includes guidance area software and attitude and orbit control software. The guidance area software comprises guidance area system software and guidance area application software. The guidance area system software is responsible for computer guidance and program loading, while the guidance area application software is responsible for on-orbit modification functions after program errors. The attitude and orbit control software is responsible for on-orbit attitude and orbit control tasks.

[0003] The computer's storage structure uses a PROM+EEPROM / FLASH+SRAM configuration. The PROM stores the boot sector software, including the boot sector system software and boot sector application software. The EEPROM / FLASH stores the attitude and orbit control software. For example... Figure 2 As shown, under normal circumstances, after the computer powers on, the guidance system software moves itself to SRAM for execution, then loads the attitude and orbit control software from EEPROM / FLASH into SRAM. Upon successful loading, it jumps to the attitude and orbit control software in SRAM to complete the spacecraft's attitude and orbit control tasks. If loading fails or the attitude and orbit control software encounters errors and undergoes continuous resets, the attitude and orbit control application software cannot run and enters the guidance application software. The guidance application software is primarily responsible for on-orbit modifications. After correcting the erroneous FLASH / EEPROM / SRAM addresses, it exits the guidance application software and re-enters the attitude and orbit control application software.

[0004] To ensure the reliability of spacecraft in orbit, almost all attitude and orbit control computers and individual components need to be equipped with guidance area application software, which has a large number of configuration items. If the traditional development method is used, and each configuration item is developed separately, the workload would be enormous. Summary of the Invention

[0005] The problem solved by this invention is to overcome the shortcomings of the prior art and propose a boot sector application software system based on parameter configuration. This solves the problem of huge workload caused by the large number of configuration items in the boot sector application software, greatly improves development efficiency and software reliability.

[0006] The technical solution of this invention is:

[0007] A parameter-configurable boot sector application software system includes: an application software initialization module, a satellite timing processing module, a communication function module, a memory operation module, a remote control command processing module, and a telemetry packaging module;

[0008] Satellite time processing module: Maintains satellite time counts on the satellite and outputs the satellite time counts to the telemetry packaging module;

[0009] Application software initialization module: Loads the corresponding configuration parameters from a fixed address in the memory, and performs parameter configuration and initialization for the memory, communication function module, remote control command processing module and telemetry packaging module respectively; the configuration parameters are configured by the software developers into the fixed address in the memory according to the characteristics of different product models;

[0010] Communication function module: Receives external bus data output from external data management computer, polls the external bus data, and if a remote control command message is found, outputs the remote control command message to the remote control command processing module; if a telemetry message is found, calls the telemetry packaging module to package the software status telemetry data and download it.

[0011] Remote control command processing module: Receives remote control command messages output by the communication function module, parses the remote control command messages according to configuration parameters, and judges the correctness of the parsed remote control command messages; according to the parsed command type, calls the memory operation module to complete memory read modification, memory download, memory data verification, memory comparison, memory copy and memory erase, completes command execution, and feeds back the command execution result to the telemetry packaging module;

[0012] Memory operation module: Controlled by instructions output by the remote control instruction processing module, it completes tasks such as reading and modifying memory, downloading memory data, verifying memory data, comparing memory data, copying memory data, and erasing memory data, and feeds back the memory operation results to the telemetry packaging module.

[0013] Telemetry Packaging Module: Packs and downloads software status telemetry data; among which, application software status telemetry data includes: satellite time counts output by the satellite time processing module, command execution results output by the remote control command execution module, and memory operation results fed back by the memory operation module.

[0014] Preferably, the memory includes one or more of SRAM memory, EEPROM memory, and FLASH memory.

[0015] Preferably, the configuration parameters used by the application software initialization module to configure the memory are: memory configuration parameters;

[0016] The memory configuration parameters are used to initialize the memory address space according to preset memory address and length parameters;

[0017] The configuration parameters for the communication function module in the application software initialization module include: communication interface configuration parameters and communication protocol configuration parameters;

[0018] The communication interface configuration parameters and communication protocol configuration parameters are used to initialize the communication bus between the communication function module and the data management computer according to the preset communication bus parameters.

[0019] Preferably, the configuration parameters used by the application software initialization module to configure the remote control command processing module are: command format configuration parameters;

[0020] The instruction format configuration parameters include: key field parameters, offset parameters for boot sector instruction types, offset parameters for boot sector injected instruction codes, and checksum calculation parameters;

[0021] Key field parameters: These are fixed identifiers used to verify the correctness of the instruction.

[0022] Offset parameter for boot sector instruction type: used to distinguish between different types of boot sector instructions;

[0023] Offset parameter for injected instruction code in the boot sector: used to obtain the starting position of the valid instruction content;

[0024] Checksum calculation parameters: used to verify the correctness of instructions.

[0025] Preferably, the configuration parameters for the application software initialization module to configure the telemetry packaging module are: telemetry format related configuration parameters;

[0026] The telemetry format configuration parameters include: the length of the telemetry fixed header, the telemetry fixed header, the telemetry verification method, the telemetry verification word width, the telemetry verification word length, and the telemetry verification offset.

[0027] Preferably, the application software initialization module loads the corresponding configuration parameters from a fixed address in the memory, which further includes: system software interaction configuration parameters;

[0028] The system software interaction configuration parameters are used to define the absolute address of the system software interface function and the absolute address of the system software interface variable corresponding to the application software initialization module loading the system software interface function.

[0029] Preferably, the system software interaction configuration parameters include:

[0030]

[0031]

[0032] The advantages of this invention compared to the prior art are:

[0033] Adopting a product-oriented design approach, this paper proposes a parameter-configurable boot sector application software system. It abstracts the characteristic information of the boot software as configuration parameters for a general boot software, enabling software developers to achieve product-level production of the boot sector application software through parameter configuration. This effectively improves the efficiency and reliability of boot sector application software development. This general boot sector application software has been used in multiple GNC systems and standalone products, completing a large number of software configuration tasks, demonstrating strong practicality and good applicability. Attached Figure Description

[0034] Figure 1 This is a flowchart of the general boot sector application software operation of the present invention;

[0035] Figure 2 This is a computer storage structure diagram of the present invention;

[0036] Figure 3 This is a block diagram of the application software system for the guidance area of ​​this invention. Detailed Implementation

[0037] The implementation method of this invention involves designing a general boot sector application software to implement the main software operation process and core functions, extracting the feature information of the boot sector application software as configuration parameters, so that software developers can complete the development of the corresponding configuration item boot sector application software through parameter configuration.

[0038] This invention discloses a boot sector application software system based on parameter configuration, comprising two parts: general boot sector application software and configuration parameters. The general boot sector application software implements the main software execution flow, such as... Figure 3 As shown, it includes: an application software initialization module, a satellite timing processing module, a communication function module, a memory operation module, a remote control command processing module, and a telemetry packaging module. Configuration parameters are characteristic information abstracted by designers from various constraints. When using this invention, software developers only need to configure the configuration parameters according to the characteristics of the software configuration items to complete the development of the boot area application software.

[0039] The following provides a detailed explanation of each module of the general boot sector application software.

[0040] Satellite time processing module: Maintains satellite time counts on the satellite and outputs the satellite time counts to the telemetry packaging module;

[0041] Application software initialization module: Loads corresponding configuration parameters from a fixed address in the memory, and performs parameter configuration and initialization for the memory, communication function module, remote control command processing module, and telemetry packaging module respectively; the configuration parameters are configured by the software developers into the fixed address in the memory according to the characteristics of different product models; Communication function module: Receives external bus data output from an external data management computer, polls the external bus data, and if a remote control command message is found, outputs the remote control command message to the remote control command processing module; if a telemetry message is found, it calls the telemetry packaging module to package the software status telemetry data and transmit it.

[0042] Remote control command processing module: Receives remote control command messages output by the communication function module, parses the remote control command messages according to configuration parameters, and judges the correctness of the parsed remote control command messages; based on the parsed command type, it calls the memory operation module to complete memory read modification, memory download, memory data verification, memory comparison, memory copying, and memory erasure, completes command execution, and feeds back the command execution results to the telemetry packaging module; Memory operation module: Controlled by the commands output by the remote control command processing module, it completes memory read modification, memory download, memory data verification, memory comparison, memory copying, and memory erasure, and feeds back the memory operation results to the telemetry packaging module;

[0043] Telemetry Packaging Module: Packs and downloads software status telemetry data; the application software status telemetry data includes: satellite time counts output by the satellite time processing module, command execution results output by the remote control command execution module, and memory operation results fed back by the memory operation module. The memory includes one or more of SRAM, EEPROM, and FLASH memory.

[0044] The application software initialization module configures the memory using the following parameters: memory configuration parameters. These parameters are used to initialize the memory address space based on preset memory address and length parameters.

[0045] The application software initialization module configures the communication function module with the following parameters: communication interface configuration parameters and communication protocol configuration parameters. These parameters are used to initialize the communication bus between the communication function module and the data management computer based on preset communication bus parameters.

[0046] The configuration parameters for the remote control command processing module in the application software initialization module are: command format configuration parameters. These parameters include: key field parameters, offset parameters for the command type in the guidance area, offset parameters for the command code injected into the guidance area, and checksum calculation parameters.

[0047] Key field parameters: These are fixed identifiers used to verify the correctness of the instruction.

[0048] Offset parameter for boot sector instruction type: used to distinguish between different types of boot sector instructions;

[0049] Offset parameter for injected instruction code in the boot sector: used to obtain the starting position of the valid instruction content;

[0050] Checksum calculation parameters: used to verify the correctness of instructions.

[0051] The configuration parameters for the telemetry packetization module in the application software initialization module are: telemetry format related configuration parameters. These include: length of the fixed telemetry header, fixed telemetry header, telemetry verification method, telemetry verification word width, telemetry verification word length, and telemetry verification offset.

[0052] System software interaction configuration parameters include:

[0053]

[0054] The application software initialization module loads corresponding configuration parameters from fixed addresses in memory, including system software interaction class configuration parameters. These system software interaction class configuration parameters define the absolute addresses of the system software interface functions and variables corresponding to the system software interface functions loaded by the application software initialization module.

[0055] The configuration parameters of this invention are mainly divided into six categories: memory configuration parameters, communication interface configuration parameters, communication protocol configuration parameters, instruction format configuration parameters, telemetry format-related configuration parameters, and system software interaction configuration parameters. Developers configure these parameters based on the characteristics of each configuration item. After the general guidance zone application software loads the parameters, these characteristic parameters are applied to modules such as application software initialization and communication functions. This invention enables batch development of guidance zone application software by configuring parameters based on the characteristic information of the general guidance zone application software. This method solves the problem of the enormous workload caused by the large number of configuration items in current guidance zone application software. This method has been used in multiple satellite attitude and orbit control subsystems and stand-alone products, completing a large number of software configuration tasks. It is highly practical, widely applicable, and effectively improves the efficiency of software development.

[0056] Example

[0057] (1) Design a general-purpose boot sector application software

[0058] The operation flow of the general boot sector application software is as follows: Figure 1As shown, when the software runs, it first loads configuration parameters from a fixed address, parses the configuration parameters, and then initializes the software according to the loaded configuration parameters, including initializing the communication interface and loading the system software interface functions. After initialization, it starts to poll, interpret, and execute instructions every cycle. If the received instruction is to exit the minimum mode instruction, it exits the guide area software and enters the attitude and orbit control software.

[0059] The general boot sector application software communication interface supports three different types of communication interfaces: 1553B, SpaceWire, and serial port. In the general software, the interface type can be configured to select the corresponding interface parsing configuration parameter module and interface chip initialization module.

[0060] The general boot sector application software supports multiple communication protocol types, including the common 1553B protocol, the 1553B CCSDS protocol, and the SpaceWire network communication protocol. Users can select different protocol types and corresponding message query modules through configuration parameters.

[0061] The general boot sector application software implements core memory operation functions, including memory modification module, memory download module, memory copy module, memory comparison module, memory verification module, memory erase module, exit minimum mode module, user-configurable instruction format related parameters, and the general boot sector software can identify and execute instruction types.

[0062] (2) Extract configuration parameters

[0063] After conducting general requirements analysis and functional decomposition of the boot software, the software's characteristic information was abstracted, and several types of configuration parameters were designed, including memory configuration parameters, communication interface configuration parameters, instruction execution configuration parameters, and telemetry configuration parameters.

[0064] (a) Memory configuration parameters: The memory operation module operates on the memory, which requires specifying the memory address range. Different product models of computers have different memory types, and the starting address and capacity of each type of memory are different. Therefore, this characteristic information is extracted as a configuration parameter to achieve configurability. The design of this type of configuration parameter is shown in Table 1.

[0065] Table 1 Memory Configuration Parameters

[0066]

[0067] (b) Communication interface configuration parameters: The application software initialization module initializes the communication external bus, requiring the address range of the communication external bus to be clearly defined. For example, for the 1553B communication external bus, the register base address and RAM base address of the 1553B chip need to be configured; for the SpaceWire communication external bus, the base address of the SpaceWire chip needs to be configured. The relevant parameter design for the 1553B is shown in Table 2.

[0068] Table 2 1553B Interface Configuration Parameters / Communication Interface Configuration Parameters

[0069]

[0070] (c) Communication Protocol Configuration Parameters: The communication function module polls the external bus data on the external communication bus to query remote control command messages. Therefore, it is necessary to configure the parameters related to the communication protocol to correctly receive bus messages. For example, for the 1553B external communication bus, it is necessary to configure the sub-address for command reception, the sub-address for telemetry transmission from memory, other communication-related sub-addresses, and the corresponding data block address space allocation for each sub-address, etc., which vary depending on the product model. For the SpaceWire external communication bus, it is necessary to configure the channel number and the DPRAM address space used for receiving commands.

[0071] Table 3 1553B Protocol Configuration Parameters / Communication Protocol Configuration Parameters

[0072]

[0073] (d) Command format and telemetry format related configuration parameters: The remote control command processing module needs to verify the correctness of received commands and parse them. Therefore, it is necessary to extract information such as the checksum verification method, checksum position, and length as feature information for user configuration. The telemetry packaging module needs to package the satellite's status variables according to the format required by the product model. Therefore, telemetry-related configuration parameters need to be designed, and software developers can configure the telemetry parameters as needed.

[0074] Table 4 Command Parsing Configuration Parameters / Command Format Configuration Parameters

[0075]

[0076] Table 5 Telemetry Format Configuration Parameters

[0077]

[0078] (e) Configuration parameters for interaction with system software: The application software initialization module needs to initialize the software's data segment and load the system software's interface functions. Therefore, the address of the application software's data segment in the boot sector and the absolute addresses of the interface functions provided by the system software in the boot sector need to be set as configuration parameters for user configuration.

[0079] Table 6 System Software Interaction Configuration Parameters

[0080]

[0081] (3) Parameter loading process

[0082] The general boot sector application software is compiled separately and padded to 19.5k, with 512 bytes of configuration parameters. It is also compiled separately to generate a 0.5k executable file. The two are compiled separately and then concatenated. Figure 2 The contents of the PROM memory are shown. The boot software reads 0.5k of parameters from the configured fixed address and parses them.

[0083] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications to the technical solutions of the present invention by utilizing the methods and techniques disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall fall within the protection scope of the technical solutions of the present invention.

[0084] The contents not described in detail in this specification are common knowledge to those skilled in the art.

Claims

1. A boot sector application software system based on parameter configuration, characterized in that, include: Application software initialization module, satellite timing processing module, communication function module, memory operation module, remote control command processing module, and telemetry packaging module; Satellite time processing module: Maintains satellite time counts on the satellite and outputs the satellite time counts to the telemetry packaging module; Application software initialization module: Loads the corresponding configuration parameters from the fixed address of the memory, and performs parameter configuration and initialization processing on the memory, communication function module, remote control command processing module and telemetry packaging module respectively; the configuration parameters are configured into the fixed address of the memory by the software developers according to the characteristics of different satellite attitude and orbit control subsystems and single-unit product models; Communication function module: Receives external bus data output from external data management computer, polls the external bus data, and if a remote control command message is found, outputs the remote control command message to the remote control command processing module. If the telemetry message is found, the telemetry packaging module is called to package the application software status telemetry data and download it. Remote control command processing module: Receives remote control command messages output by the communication function module, parses the remote control command messages according to the configuration parameters, and judges the correctness of the parsed remote control command messages; according to the parsed command type, calls the memory operation module to complete the work of reading and modifying memory, downloading memory, verifying memory data, comparing memory, copying memory and erasing memory, completes the command execution, and feeds back the command execution result to the telemetry packaging module; Memory operation module: Controlled by instructions output by the remote control instruction processing module, it completes tasks such as reading and modifying memory, downloading memory data, verifying memory data, comparing memory data, copying memory data, and erasing memory data, and feeds back the memory operation results to the telemetry packaging module. Telemetry Packaging Module: Packs and downloads application software status telemetry data; among which, application software status telemetry data includes: satellite time counts output by the satellite time processing module, instruction execution results output by the remote control instruction execution module, and memory operation results fed back by the memory operation module.

2. The boot sector application software system based on parameter configuration as described in claim 1, characterized in that, The memory includes one or more of SRAM memory, EEPROM memory, and FLASH memory.

3. The boot sector application software system based on parameter configuration as described in claim 2, characterized in that, The configuration parameters for the memory in the application software initialization module are: memory configuration parameters; The memory configuration parameters are used to initialize the memory address space according to preset memory address and length parameters; The configuration parameters for the communication function module in the application software initialization module include: communication interface configuration parameters and communication protocol configuration parameters; The communication interface configuration parameters and communication protocol configuration parameters are used to initialize the communication bus between the communication function module and the data management computer according to the preset communication bus parameters.

4. The boot sector application software system based on parameter configuration as described in claim 3, characterized in that, The configuration parameters for the remote control command processing module in the application software initialization module are: command format configuration parameters; The instruction format configuration parameters include: key field parameters, offset parameters for boot sector instruction types, offset parameters for boot sector injected instruction codes, and checksum calculation parameters; Key field parameters: These are fixed identifiers used to verify the correctness of the instruction. Offset parameter for boot sector instruction type: used to distinguish between different types of boot sector instructions; Offset parameter for injected instruction code in the boot sector: used to obtain the starting position of the valid instruction content; Checksum calculation parameters: used to verify the correctness of instructions.

5. A boot sector application software system based on parameter configuration as described in claim 3 or 4, characterized in that, The configuration parameters for the application software initialization module to configure the telemetry packaging module are: telemetry format related configuration parameters; The telemetry format configuration parameters include: the length of the telemetry fixed header, the telemetry fixed header, the telemetry verification method, the telemetry verification word width, the telemetry verification word length, and the telemetry verification offset.

6. The boot sector application software system based on parameter configuration as described in claim 5, characterized in that, The corresponding configuration parameters loaded from a fixed address in memory by the application software initialization module also include: system software interaction configuration parameters; The system software interaction configuration parameters are used to define the absolute address of the system software interface function and the absolute address of the system software interface variable corresponding to the application software initialization module loading the system software interface function.

7. A boot sector application software system based on parameter configuration as described in claim 6, characterized in that, The system software interaction configuration parameters include: data segment address, text segment address, absolute address of system software interface function, and absolute address of system software interface variable; the data segment address represents the data segment address of the boot sector application software; the text segment address represents the text segment address of the boot sector application software; the absolute address of the system software interface function indicates that the boot sector application software loads the system software interface function through this address; the absolute address of the system software interface variable indicates that the boot sector application software reads the system software variable through this address.

Citation Information

Patent Citations

  • Satellite software system and satellite software system configuration method

    CN109753305A

  • Satellite service software rapid guiding device and method

    CN113051007A