A component control system simulation platform and method based on soft bus
The component-based control system simulation platform based on soft bus solves the problem of poor scalability of the traditional simulation environment, realizes plug-and-play and real-time management of functional modules, and improves the flexibility and efficiency of the simulation environment.
Patent Information
- Application Number
- CN202210112578.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-29
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-01-29
AI Technical Summary
The embedded software simulation environment of traditional control systems has poor scalability and reusability and cannot meet complex system structure and timing requirements. Moreover, the traditional simulation environment does not support plug-and-play functions, which increases development time and difficulty.
Using a component-based control system simulation platform based on soft bus, through the hierarchical design of hardware abstraction layer, application layer, model simulation layer and management layer, modularization and unified management of functional components are realized, and dynamic loading and scheduling of functional components are supported. Ensure system timing management and real-time performance.
It realizes plug-and-play function modules, improves the scalability and flexibility of the simulation environment, shortens development time and debugging time, and improves the efficiency of embedded software testing and verification.
Smart Images

Figure CN114625024B
Abstract
Description
Technical Field
[0001] The invention relates to a soft bus-based component control system simulation software design method, which is mainly used for the design and implementation of satellite control system simulation software, and efficiently and reliably completes the construction of control system embedded software simulation environment, belonging to the field of spacecraft control technology. Background Art
[0002] With the development of space mission requirements and spacecraft control technology, the scale of control systems is getting larger and larger, the system structure and control timing are becoming more and more complex, and the types of stand-alone component products and interface types are also increasing. On the one hand, due to the characteristics of control system embedded software (such as the variety of stand-alone component types and interface types, complex and changeable protocols, large amounts of information exchange data, and strict simulation timing requirements), it brings great difficulty to software testing and verification; on the other hand, with the increasing number of spacecraft under development, the software development cycle is facing a trend of becoming shorter and shorter. The traditional way of customizing the development test and verification environment can no longer meet the needs of current tasks:
[0003] (1) Traditional simulation environments generally develop hardware modules based on specific control system models, and then develop software modules based on hardware modules. This is a simple architecture in which modules execute functions. The data resources called between functional modules are often intertwined, resulting in high data coupling. As a result, the simulation software has poor scalability and reusability.
[0004] (2) When the control system structure changes (such as the number of sensor types, interface types, or data protocols), the change or access of new nodes must not only consider the change or change of the new functional module, but also the impact on other modules and the scheduling relationship between modules, which often results in a large-scale change or even the change of the entire simulation system. That is, the traditional simulation environment does not support plug-and-play functions, which increases the development time and difficulty of the simulation environment; Summary of the invention
[0005] The technical problem solved by the present invention is: to overcome the shortcomings of the existing methods, starting from the efficiency, versatility and scalability of building a control system embedded software simulation environment, to provide a component control system simulation platform and method based on a soft bus.
[0006] The technical solution of the present invention is: a component control system simulation platform based on a soft bus, the simulation platform is used to form a closed-loop system with a target computer running control system software, the simulation platform includes a hardware abstraction layer, an application layer, a model simulation layer and a management layer;
[0007] The application layer encapsulates the peripheral devices of the target computer into functional components. The encapsulated functional components are used to realize the corresponding peripheral device data calculation and protocol processing. The encapsulated functional components are set with a soft bus standard interface and are connected to the soft bus through the interface;
[0008] The management layer manages and dispatches all functional components in a unified manner through the soft bus, and realizes the timing management of the control system;
[0009] The hardware abstraction layer is used to manage the interface resources and interface drivers between all peripheral devices of the target computer and the target computer; and to achieve data interaction with the application layer under the timing management of the management layer;
[0010] The model simulation layer is connected to the soft bus and obtains data from the application layer under the timing management of the management layer to realize the calculation of the orbit and attitude motion laws of the control system, and feeds the calculation results back to the application layer through the management layer.
[0011] Preferably, the application layer separately compiles and encapsulates each functional component according to the soft bus standard interface specification, and there is no coupling of shared resources between the functional components, and they only access each other with the outside world through the soft bus standard interface.
[0012] Preferably, the functional components include sensor components, actuator components, and satellite service components; the sensor components include star sensor components, inertial sensor components, earth sensor components, and sun sensor components; the actuator components include momentum wheel components, torque gyro components, magnetic torquer components, and propulsion module components; the satellite service components include remote control unit components, telemetry unit components, link monitoring components, and navigation calculation components.
[0013] Preferably, the soft bus standard interface includes an initialization interface, a control interface, an input interface and an output interface;
[0014] When the system is initialized, the identity of the functional component is transmitted to the soft bus through the initialization interface to complete the registration of the functional component and complete the adaptation with the control system. The adaptation information includes the component function type, interface type, and protocol type.
[0015] During system operation, the functional components are dynamically loaded or shielded, or the data or protocol fault status of the functional components are set through the control interface; during system operation, the data interaction between the functional components and the peripheral devices is completed through the input interface and the output interface.
[0016] Preferably, the management layer includes a resource manager, a memory resource pool, a task scheduling module and a timing scheduling module;
[0017] The timing scheduling module manages according to the control timing of the control system to ensure that periodic tasks run at a fixed frequency and that triggered tasks can respond and process in a timely manner;
[0018] The task scheduling module is responsible for the task scheduling of functional components, realizing the dynamic loading or shielding of functional components, or the data or protocol fault status setting of functional components;
[0019] A list is set in the memory resource pool to record the storage address, data resources and data attributes of data resources; the data resources include the calculation results of the model simulation layer, the calculation data and protocol processing data of each functional component in the application layer, and the interface resource data of the hardware abstraction layer;
[0020] The resource manager is responsible for the protection and read and write operations of the memory resource pool.
[0021] Preferably, the interface resources refer to the peripheral IO logic of the target computer CPU board, including serial port, bit port, A / D, D / A, 1553B bus, and CAN bus.
[0022] Preferably, the management of interface resources includes the management of the content of sent and received data and the transmission timing.
[0023] Preferably, the interface driver refers to a driver program for interface resources, which is an interface function for an application layer functional component to operate a hardware layer interface resource.
[0024] Preferably, the management of the interface driver refers to the encapsulation management of the peripheral device hardware driver protocol, and the purpose of the functional component calling the interface resource is achieved by shielding the application layer functional component from the logical address or physical memory of the peripheral device hardware.
[0025] Preferably, the timing management of the control system includes simulation cycle management, interrupt management, orbit and attitude dynamics calculation time management, data transmission time management, data delay management, and time accuracy is better than 1 microsecond to meet the strong real-time requirements of the simulation platform.
[0026] Preferably, the application layer should respond to interrupts by way of a callback function, completing data calculations and protocol processing with strong real-time requirements in the callback function without taking up too much execution time (less than 500 microseconds), thereby ensuring the timeliness of data calculations and protocol processing of application layer functional components.
[0027] A simulation method implemented by using the soft bus-based component control system simulation platform comprises the following steps:
[0028] Step 1: System initialization settings, including management layer initialization, model simulation layer initialization, application layer initialization and hardware abstraction layer initialization;
[0029] The management layer initializes and completes the timing parameter settings of the system, including the simulation cycle of the control system, the interrupt trigger cycle and the phase difference between the interrupt and simulation cycle, the satellite service simulation cycle, the orbit and attitude dynamics calculation cycle, the data transmission time, and the data delay;
[0030] The model simulation layer is initialized to complete the setting of the initial values of the control system dynamics trajectory calculation and the initial values of the attitude calculation;
[0031] The application layer initializes and completes the registration of the function type, interface type, and protocol type of the functional component, and completes the adaptation with the control system;
[0032] The hardware abstraction layer initializes the number of peripheral device interfaces, interface types, and allocation of physical memory;
[0033] Step 2: System closed-loop simulation process. The closed-loop simulation process includes the following steps:
[0034] (7) When the control system simulation cycle arrives, the target computer reads the sensor data received from the sensor component of the application layer and the navigation data received from the satellite service component, completes the attitude and orbit calculation, solves the control command, sends the control command to the actuator component of the application layer through the soft bus, and sends the telemetry data to the satellite service component of the application layer through the soft bus;
[0035] (8) The actuator component of the application layer responds to interrupts through callback functions, receives control instructions from the target computer, and performs protocol processing and data calculations for reading by the model simulation layer;
[0036] (9) When the orbit and attitude dynamics calculation cycle arrives, the model simulation layer reads the data received from the actuator component of the application layer as the input of the orbit and attitude calculation, completes the calculation of the satellite orbit and attitude motion law, and sends the calculated sensor attitude data to the sensor component of the application layer through the soft bus;
[0037] (10) The sensor actuator component of the application layer responds to interrupts by means of callback functions, receives sensor data sent by the model simulation layer, and performs data calculation and protocol processing for the target computer to read;
[0038] (11) When the satellite service simulation cycle arrives, the satellite service component reads the telemetry data sent by the target computer, and at the same time calculates the navigation data and performs protocol processing for the target computer to read;
[0039] Repeat steps (1) to (5) until the simulation is finished.
[0040] The beneficial effects of the present invention compared with the prior art are:
[0041] (1) The present invention aims to solve the problem of poor scalability of the custom development of the traditional control system embedded software simulation environment. The present invention adopts a soft bus and component modularization to achieve plug-and-play of functional modules. The nodes can be modified or increased or decreased according to the different configurations of the system to achieve system scalability without changing other nodes of the system.
[0042] (2) The present invention separates the application layer from the hardware interface layer, realizes the interoperability between application software and hardware driver through the hardware abstraction layer, and uniformly manages the interface resources by the functional modules of the hardware driver layer. The application layer directly sends and receives interface resource data through the corresponding functional components without knowing the physical address of the node where the application layer is located;
[0043] (3) The present invention divides the application layer into multiple functional modules. The functional modules are written and encapsulated separately according to certain interface specifications. There is no coupling of shared resources between the functional modules. They can only access each other through standard interfaces. Modification of a module does not affect other modules.
[0044] (4) The present invention schedules the task cycle, priority and other timing requirements of each module through the task scheduling module of the management layer to ensure the real-time performance and timing authenticity of the simulation system;
[0045] In summary, the present invention has better flexibility, convenient maintainability and scalability, and while ensuring the real-time and authenticity of the simulation environment, it shortens the development time and debugging time of the simulation environment, thereby improving the efficiency of embedded software testing and verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a hierarchical structure diagram of the control system simulation software of the present invention;
[0047] Figure 2 Schematic diagram of the standard interface of functional components;
[0048] Figure 3 Schematic diagram of the soft bus scheduling of functional components. DETAILED DESCRIPTION
[0049] The following is combined with the attached Figure 1-3 The present invention is further introduced.
[0050] The present invention is based on the efficiency, versatility and extensibility of the construction of the embedded software simulation environment of the control system, and provides a component-based control system simulation platform based on a soft bus, which is divided into four levels: hardware abstraction layer, application layer, model simulation layer and management layer. The application layer encapsulates the peripheral devices of the target computer into functional components, and each encapsulated functional component is used to realize the corresponding peripheral device data calculation and protocol processing. The encapsulated functional component sets a soft bus standard interface and is connected to the soft bus through the interface; the management layer uniformly manages and schedules each functional component through the soft bus, and realizes the timing management of the control system; the hardware abstraction layer is used to realize the management of the interface resources between all peripheral devices of the target computer and the target computer; and realizes data interaction with the application layer under the timing management of the management layer; the model simulation layer is connected to the soft bus, and obtains data from the application layer under the timing management of the management layer, which is used to realize the calculation of the orbit and posture motion law of the control system, and the calculation results are fed back to the application layer through the management layer.
[0051] 1. Hierarchical design of control system simulation platform
[0052] like Figure 1 As shown, the present invention divides the spacecraft control system simulation platform into four levels: hardware abstraction layer, application layer, model simulation layer and management layer.
[0053] The hardware abstraction layer is used to simulate the peripheral IO logic of the target computer CPU board, including serial ports, bit ports, A / D, D / A, 1553B bus, CAN bus and other interfaces, and manage the content of data sent and received and the transmission timing. The hardware abstraction layer is the hardware interface layer of the control system simulation, including interface resource management and interface driver management, providing a unified standard management platform for peripheral device interface drivers and interface resources, managing the hardware and software resources of the control system simulation platform, connecting the application layer functional components with the peripheral device hardware, and being responsible for the encapsulation of the interface driver protocol, which is the basis for information interaction between the functional components and the peripheral device hardware.
[0054] The interface resource management module provides a standard interface for the application layer functional components to access interface resource data information. The interface driver management module receives requests from the interface resource management module to schedule the interface driver program, operate the hardware, complete information collection and data output, and feed back relevant device data information to the interface resource management module. At the same time, the interface resource management module also receives requests from the management layer to perform timing management of tasks and resources as well as memory resource management.
[0055] The application layer includes attitude measurement sensor components, attitude control actuator components, satellite service function components, etc. It is the key to control system simulation and manages the data and protocols of the control system host computer (such as satellite service) and the lower computer (such as various sensors and actuators). The application layer function components are modularly developed according to the soft bus interface standard, connected to the soft bus through these interfaces, and managed by the management layer. The function components operate on the interface resources through the hardware abstraction layer, and do not need to care about how to obtain data and the physical memory of the interface resources.
[0056] The attitude measurement sensor components include star sensor components, inertial sensor components, earth sensor components, sun sensor components, etc.; the actuator components include momentum wheel components, torque gyro components, magnetic torquer components, propulsion module components, etc.; the satellite service components include remote control unit components, telemetry unit components, link monitoring components, navigation calculation components, etc.
[0057] The model simulation layer includes an orbital dynamics calculation module and an attitude dynamics calculation module, which are dynamic models that describe the laws of satellite orbit and attitude motion. The satellite dynamics model is an important basis for control system design and an indispensable prerequisite for closed-loop testing and simulation of control system software. The input of the model is the control instructions of the actuator, including thruster jet pulse width, momentum wheel control instructions, control torque gyro control instructions, magnetic torquer control instructions, sailboard drive mechanism control instructions and other information; the output of the model includes real-time orbit data, satellite attitude and measurement data of various sensors.
[0058] The management layer includes a resource manager, a memory resource pool, a task scheduling module and a timing scheduling module, which realize the system's task scheduling, timing management, and dynamic loading, creation and deletion of each functional module or functional component.
[0059] The timing scheduling module manages according to the control timing of the control system to ensure that periodic tasks run at a fixed frequency and that triggered tasks can respond and process in a timely manner;
[0060] The task scheduling module is responsible for the task scheduling of functional components, realizing the dynamic loading or shielding of functional components, or the data or protocol fault status setting of functional components;
[0061] A list is set in the memory resource pool to record the storage address, data resources and data attributes of data resources; the data resources include the calculation results of the model simulation layer, the calculation data and protocol processing data of each functional component in the application layer, and the interface resource data of the hardware abstraction layer;
[0062] The resource manager is responsible for the protection and read and write operations of the memory resource pool.
[0063] 2. Control system functional components
[0064] The satellite control system is a strong real-time system, which is usually composed of various attitude sensors, on-board control computers and actuators, etc., combined with satellite telemetry, remote control and navigation information calculation service systems to form a satellite-ground large loop control. Among them, attitude sensors are mainly classified into star sensors, inertial sensors, sun sensors, earth sensors, moon sensors, etc. according to the objects measured. The on-board control computer as a controller is used to process the satellite attitude information measured by the attitude sensor according to the given algorithm through the embedded on-board control software, calculate the required control signal, and output the control signal to the corresponding actuator, so as to achieve the purpose of controlling the satellite attitude and orbit. The actuators mainly include thrusters, momentum wheels, magnetic torquers, control torque gyroscopes, sailboard drive mechanisms, etc. According to the interface type and protocol, there are more types of attitude sensors, actuators, remote control and telemetry systems and control computers. The present invention encapsulates these components into independent functional components as a single machine or system, describes them through a component model, and each functional component has a fixed interface standard.
[0065] like Figure 2 As shown in the figure, the standard interface of the functional component includes the initialization interface, the control interface, the input interface and the output interface. When the system is initialized, the identity of the functional component is transmitted to the soft bus through the initialization interface to complete the registration of the functional component and complete the adaptation with the control system. The adaptation information includes the component function type, interface type and protocol type. During the operation of the system, the functional component can be dynamically loaded or blocked through the control interface, and the data or protocol failure status of the functional component can also be set. During the operation of the system, the data interaction between the functional component and the peripheral device is completed through the input interface and the output interface. These interfaces provide channels for the soft bus to operate the functional components. The soft bus realizes the scheduling management of the components by calling these standard interfaces.
[0066] 3. Soft bus design
[0067] The soft bus is the core of the component-based control system simulation platform, scheduling functional components through the functional component standard interface;
[0068] When the system is initialized, the soft bus obtains the identity of the functional component through the initialization interface of the functional component, completes the registration of the functional component in the control system simulation platform, and completes the adaptation with the control system, wherein the adaptation information includes the component function type, interface type, and protocol type;
[0069] During system operation, the soft bus dynamically loads or shields functional components through the control interface, or sets the data or protocol fault status of functional components; and completes data interaction between functional components and peripheral devices through the input interface and output interface.
[0070] The functional components of the application layer are connected to the soft bus through these standard interfaces. The soft bus structure reduces the coupling between functional components. Functional components apply to the soft bus for the resources they need to use and the tasks they create. The soft bus manages and schedules the competition for resources between modules, repeated resource applications, and task creation and scheduling.
[0071] The soft bus is the implementer of the control system simulation software function and data resource scheduling. It completes the scheduling of functional components with the cooperation of the management task scheduling module and the timing scheduling module. Figure 3 As shown, the soft bus implements the protection and operation of the memory resource pool and the interaction of data resources through the resource manager. The corresponding data resource management refers to the data interaction between different functional components, so that the functional components can apply for the corresponding data resources at any level and update the solution data at different levels in time to ensure the synchronization of operation and solution at different levels.
[0072] The soft bus controls the operation of functional components, obtains module information through standard interfaces, manages the creation and scheduling of tasks of each functional module, and reads and writes resources. The management and communication mechanism of the soft bus organically combines each node and each functional module in the system to complete the functional tasks of the simulation software.
[0073] 4. Simulation Platform Operation
[0074] The simulation platform periodic closed-loop simulation operation includes the following steps:
[0075] Step 1: System initialization settings, including management layer initialization, model simulation layer initialization, application layer initialization and hardware abstraction layer initialization;
[0076] The management layer initializes and completes the timing parameter settings of the system, including the simulation cycle of the control system, the interrupt trigger cycle and the phase difference between the interrupt and simulation cycle, the satellite service simulation cycle, the orbit and attitude dynamics calculation cycle, the data transmission time, the data delay, etc.
[0077] The model simulation layer is initialized to complete the setting of the initial values of the control system dynamics trajectory calculation and the initial values of the attitude calculation;
[0078] The application layer initializes and completes the registration of the function type, interface type, and protocol type of the functional component, and completes the adaptation with the control system;
[0079] The hardware abstraction layer initializes the number of peripheral device interfaces, interface types, and allocation of physical memory;
[0080] Step 2: System closed-loop simulation process. The closed-loop simulation process includes the following steps:
[0081] (1) When the control system simulation cycle arrives, the target computer reads the sensor data received from the sensor component of the application layer and the navigation data received from the satellite service component, completes the attitude and orbit calculation, solves the control command, sends the control command to the actuator component of the application layer through the soft bus, and sends the telemetry data to the satellite service component of the application layer through the soft bus;
[0082] (2) The actuator component of the application layer responds to interrupts through callback functions, receives control instructions from the target computer, and performs protocol processing and data calculations for reading by the model simulation layer;
[0083] (3) When the orbit and attitude dynamics calculation cycle arrives, the model simulation layer reads the data received from the actuator component of the application layer as the input of the orbit and attitude calculation, completes the calculation of the satellite orbit and attitude motion law, and sends the calculated sensor attitude data to the sensor component of the application layer through the soft bus;
[0084] (4) The sensor actuator component of the application layer responds to interrupts by means of callback functions, receives sensor data sent by the model simulation layer, and performs data calculation and protocol processing for the target computer to read;
[0085] (5) When the satellite service simulation cycle arrives, the satellite service component reads the telemetry data sent by the target computer, and at the same time calculates the navigation data and performs protocol processing for the target computer to read;
[0086] (6) Repeat steps (1) to (5) until the simulation is completed.
[0087] The contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.
Claims
1. A component control system simulation platform based on a soft bus, the simulation platform is used to form a closed-loop system with a target computer running control system software, characterized in that: The simulation platform includes a hardware abstraction layer, an application layer, a model simulation layer and a management layer; The application layer encapsulates the peripheral devices of the target computer into functional components. The encapsulated functional components are used to realize the corresponding peripheral device data calculation and protocol processing. The encapsulated functional components are set with a soft bus standard interface and are connected to the soft bus through the interface; The management layer manages and dispatches all functional components in a unified manner through the soft bus, and realizes the timing management of the control system; The hardware abstraction layer is used to manage the interface resources and interface drivers between all peripheral devices of the target computer and the target computer; And realize data interaction with the application layer under the timing management of the management layer; The model simulation layer is connected to the soft bus and obtains data from the application layer under the timing management of the management layer to calculate the orbit and attitude motion laws of the control system, and feeds the calculation results back to the application layer through the management layer; The management layer includes a resource manager, a memory resource pool, a task scheduling module and a timing scheduling module; The timing scheduling module manages according to the control timing of the control system to ensure that periodic tasks run at a fixed frequency and that triggered tasks can respond and process in a timely manner; The task scheduling module is responsible for the task scheduling of functional components, realizing the dynamic loading or shielding of functional components, or the data or protocol fault status setting of functional components; A list is set in the memory resource pool to record the storage address, data resources and data attributes of data resources; the data resources include the calculation results of the model simulation layer, the calculation data and protocol processing data of each functional component in the application layer, and the interface resource data of the hardware abstraction layer; The resource manager is responsible for the protection and read and write operations of the memory resource pool.
2. The platform according to claim 1, characterized in that: The application layer writes and encapsulates each functional component separately according to the soft bus standard interface specification. There is no coupling of shared resources between functional components, and they can only access each other through the soft bus standard interface.
3. The platform according to claim 1, characterized in that: The functional components include sensor components, actuator components, and satellite service components; the sensor components include star sensor components, inertial sensor components, earth sensor components, and sun sensor components; the actuator components include momentum wheel components, torque gyro components, magnetic torquer components, and propulsion module components; the satellite service components include remote control unit components, telemetry unit components, link monitoring components, and navigation calculation components.
4. The platform according to claim 1, characterized in that: The soft bus standard interface includes an initialization interface, a control interface, an input interface and an output interface; When the system is initialized, the identity of the functional component is transmitted to the soft bus through the initialization interface to complete the registration of the functional component and complete the adaptation with the control system. The adaptation information includes the component function type, interface type, and protocol type. During system operation, the functional components are dynamically loaded or shielded, or the data or protocol fault status of the functional components are set through the control interface; during system operation, the data interaction between the functional components and the peripheral devices is completed through the input interface and the output interface.
5. The platform according to claim 1, characterized in that: The interface resources refer to the peripheral IO logic of the target computer CPU board, including serial port, bit port, A / D, D / A, 1553B bus, and CAN bus.
6. The platform according to claim 1, characterized in that: The management of interface resources includes the management of the content of sent and received data and the transmission timing.
7. The platform according to claim 1, characterized in that: The interface driver refers to the driver program of the interface resource, which is the interface function of the application layer functional component to operate the hardware layer interface resource.
8. The platform according to claim 1, characterized in that: Interface driver management refers to the encapsulation management of peripheral device hardware driver protocols, which enables functional components to call interface resources by shielding the logical address or physical memory of peripheral device hardware from application layer functional components.
9. The platform according to claim 1, characterized in that: The timing management of the control system includes simulation cycle management, interrupt management, orbit and attitude dynamics calculation time management, data transmission time management, and data delay management. The time accuracy is better than 1 microsecond, which is used to meet the strong real-time requirements of the simulation platform.
10. The platform according to claim 1, characterized in that: The application layer should respond to interrupts by means of callback functions, complete data calculations and protocol processing with strong real-time requirements in the callback functions, and not take up too much execution time, that is, less than 500 microseconds, to ensure the timeliness of data calculations and protocol processing of application layer functional components.
11. A simulation method implemented using the platform of claim 3, characterized in that The steps include: Step 1: System initialization settings, including management layer initialization, model simulation layer initialization, application layer initialization and hardware abstraction layer initialization; The management layer initializes and completes the timing parameter settings of the system, including the simulation cycle of the control system, the interrupt trigger cycle and the phase difference between the interrupt and simulation cycle, the satellite service simulation cycle, the orbit and attitude dynamics calculation cycle, the data transmission time, and the data delay; The model simulation layer is initialized to complete the setting of the initial values of the control system dynamics trajectory calculation and the initial values of the attitude calculation; The application layer initializes and completes the registration of the function type, interface type, and protocol type of the functional component, and completes the adaptation with the control system; The hardware abstraction layer initializes the number of peripheral device interfaces, interface types, and allocation of physical memory; Step 2: System closed-loop simulation process. The closed-loop simulation process includes the following steps: (1) When the control system simulation cycle arrives, the target computer reads the sensor data received from the sensor component of the application layer and the navigation data received from the satellite service component, completes the attitude and orbit calculation, solves the control instructions, and sends the control instructions to the actuator component of the application layer through the soft bus. At the same time, the telemetry data is sent to the satellite service component of the application layer through the soft bus. (2) The actuator component of the application layer responds to interrupts through callback functions, receives control instructions from the target computer, and performs protocol processing and data calculations for the model simulation layer to read; (3) When the orbit and attitude dynamics calculation cycle arrives, the model simulation layer reads the data received from the actuator component of the application layer as the input of the orbit and attitude calculation, completes the calculation of the satellite orbit and attitude motion law, and sends the calculated sensor attitude data to the sensor component of the application layer through the soft bus; (4) The sensor actuator component of the application layer responds to interrupts through callback functions, receives sensor data sent by the model simulation layer, and performs data calculation and protocol processing for the target computer to read; (5) When the satellite service simulation cycle arrives, the satellite service component reads the telemetry data sent by the target computer, and at the same time calculates the navigation data and performs protocol processing for the target computer to read; (6) Repeat steps (1) to (5) until the simulation is completed.
Citation Information
Patent Citations
Design method of inter-satellite communication system of formation small satellites based on Petri net
CN102004827A
Static planning-based software bus data communication management method
CN107368373A
