CN113761045B - Spacecraft uplink control data generation method and device - Google Patents

Spacecraft uplink control data generation method and device Download PDF

Info

Publication number
CN113761045B
CN113761045B CN202111032166.8A CN202111032166A CN113761045B CN 113761045 B CN113761045 B CN 113761045B CN 202111032166 A CN202111032166 A CN 202111032166A CN 113761045 B CN113761045 B CN 113761045B
Authority
CN
China
Prior art keywords
instruction
information
basic
data
extended
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111032166.8A
Other languages
Chinese (zh)
Other versions
CN113761045A (en
Inventor
费江涛
李晓平
刘辛
张朕
苗毅
于天一
梁爽
陈俊刚
莫开胜
帅晓飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unit 63920 Of Pla
Original Assignee
Unit 63920 Of Pla
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unit 63920 Of Pla filed Critical Unit 63920 Of Pla
Priority to CN202111032166.8A priority Critical patent/CN113761045B/en
Publication of CN113761045A publication Critical patent/CN113761045A/en
Application granted granted Critical
Publication of CN113761045B publication Critical patent/CN113761045B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a spacecraft uplink control data generation method and device, wherein the method comprises the following steps: extracting information from the acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction; establishing a link between the basic instruction and the extended instruction by utilizing frame structure information, and performing traversal expansion on the basic instruction and the extended instruction after the link is established to obtain instruction structure tree information; and instantiating the instruction structure tree information according to the acquired control parameters to generate control data. According to the invention, the data quantity of manual maintenance is greatly reduced by extracting, binding and framing the data frame structure, and the control data dynamic combination and structure management of different types of spacecrafts and loads are realized by constructing the instruction structure tree information, so that the flexible control requirement of users on the spacecrafts is met, and the generation efficiency and reliability of injection data are improved.

Description

Spacecraft uplink control data generation method and device
Technical Field
The invention relates to the technical field of spacecrafts, in particular to a method and a device for generating uplink control data of a spacecraft.
Background
With the development of aerospace tasks, the types of spacecrafts are more and more, and the carried load is more and more complex. The ground control center carries out complex control on the spacecraft by means of uplink control data, the structure of the uplink control data tends to be diversified and irregular, and the application process is more flexible. The data structure is defined by a software hard coding mode conventionally, and the generation and framing of uplink control data are carried out, so that the uplink control data are required to be realized by separate programming aiming at different spacecrafts and loads. This approach requires high and enormous effort on the software development and maintenance team. And the part of ground control center adopts a database parameter binding mode to carry out fixed description definition on each control data structure, and uplink control software reads the database binding parameters to carry out framing to generate data, and the structural change of the uplink control data is adapted by manually adjusting the binding parameters. The method can support spacecraft control tasks with small number of data structures and small change, and when the types of the spacecraft are more, the difference of control data structures is large, and the number of the data structures reaches tens of thousands, the workload of manual binding maintenance is huge.
Specifically, in the spacecraft control process, the spacecraft is single in type and simple in control data structure. The data structure is usually defined by a software coding mode, and each type of control data structure is realized by adopting a set of complete codes to generate and frame the uplink control data. After the user inputs the control parameters to be transmitted and the software reads the parameters, the source code conversion and the assembly are carried out according to the data structure type defined by the codes, and a control data file in a binary format or a text format is generated. When the control parameters change, the software code is modified again, and the processing and the generation of a new uplink data structure are realized. The scheme is only suitable for the conditions that the control data structure is simple and few in variety, and for the complex control data structure, the program code amount is huge, and the workload of software development and programming maintenance is great. Because the control data structure description is carried out by adopting a software coding mode, when the control data structure is changed, the software code needs to be changed, and the version control and the reliability of the software are greatly reduced. When the types of the spacecraft are increased, a large number of repeated codes exist in the software, and the maintenance of the software is very heavy.
In addition, part of ground control center adopts database parameter binding mode to describe control data structure, each control data structure is defined as a structural parameter in database, and uplink control software reads database binding parameter to complete loading of control data structure and type. After the software reads the parameters, the source code conversion and the assembly are carried out according to the data structure type bound by the database, and a control data file in a binary format or a text format is generated. When the structure of the control parameter changes, the binding parameter is adjusted manually to adapt to the structural change of the uplink control data, and the software code does not need to be modified any more. The method can support spacecraft control tasks with small number of data structures and small change, and when the types of the spacecraft are more, the difference of control data structures is large, and the number of the data structures reaches tens of thousands, the workload of manual binding maintenance is huge. According to the scheme, each type of control data structure is completely unfolded and bound, and the scheme is visual. However, the top layer structure and the middle layer structure of various control data of the same spacecraft are the same, and the scheme does not fully utilize the characteristic, so that the data structures are classified and integrated, the workload of binding is great, and the storage resources of the database are wasted.
Disclosure of Invention
Aiming at the problems existing in the prior art, the main purpose of the embodiment of the invention is to provide a spacecraft uplink control data generation method and device, which can automatically complete control data framing generation and reduce the workload and complexity of manual binding operation.
In order to achieve the above object, an embodiment of the present invention provides a method for generating uplink control data of a spacecraft, where the method includes:
extracting information from the acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction;
establishing a link between the basic instruction and the extended instruction by using the frame structure information, and performing traversal expansion on the basic instruction and the extended instruction after the link is established to obtain instruction structure tree information;
and instantiating the instruction structure tree information according to the acquired control parameters to generate control data.
Optionally, in an embodiment of the present invention, the extracting information from the acquired external frame structure file to obtain the identifier mapping information includes:
Performing frame structure decomposition and information extraction on the obtained external frame structure file to obtain identification word mapping information; the identification word mapping information is used for mapping identification words and data units.
Optionally, in an embodiment of the present invention, the establishing a link between the basic instruction and the extended instruction by using the frame structure information, performing traversal and expansion on the basic instruction and the extended instruction after the link is established, and obtaining instruction structure tree information includes:
establishing a link between the basic instruction and the extended instruction by utilizing the frame structure information so as to enable the basic identification word of the basic instruction to be associated with the extended identification word of the extended instruction;
traversing the extended identification words of the extended instruction and the basic identification words of the corresponding basic instruction to obtain a plurality of identification word combinations, and expanding the frame structure field of each identification word combination to obtain the instruction structure tree information.
Optionally, in an embodiment of the present invention, the instantiating the instruction structure tree information according to the acquired control parameter, and generating the control data includes:
and acquiring control parameters, instantiating the instruction structure tree information according to an instruction list to be framed in the control parameters, and framing data blocks by using an inner layer framing and outer layer packaging mode to generate the control data.
Optionally, in an embodiment of the present invention, the instantiating the instruction structure tree information according to the instruction list to be framed in the control parameter includes:
grouping the instruction code strings in the extended instructions according to the instruction list to be framed in the control parameters to obtain a plurality of instruction groups;
and determining a basic instruction corresponding to the instruction group of the extended instruction and a link of the basic instruction to an upper node in the instruction structure tree information corresponding to the extended instruction so as to complete the instantiation of the instruction structure tree information.
Optionally, in an embodiment of the present invention, the performing framing of the data blocks by using an inner layer frame and an outer layer encapsulation method, generating the control data includes:
traversing each basic instruction in the instantiated instruction structure tree information, and according to a preset framing rule, assembling identification word fields and frame structure fields of each basic instruction in the instantiated instruction structure tree information to obtain a framing data block;
traversing each extended instruction in the instantiated instruction structure tree information, and packaging the outer side of each extended instruction in the instantiated instruction structure tree information according to a preset packaging rule and the framing data block to generate the control data.
The embodiment of the invention also provides a device for generating the uplink control data of the spacecraft, which comprises the following steps:
the frame structure information module is used for extracting information from the acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction;
the instruction structure tree module is used for establishing a link between the basic instruction and the expansion instruction by utilizing the frame structure information, and performing traversal expansion on the basic instruction and the expansion instruction after the link is established to obtain instruction structure tree information;
and the control data generation module is used for instantiating the instruction structure tree information according to the acquired control parameters to generate control data.
Optionally, in an embodiment of the present invention, the frame structure information module is further configured to perform frame structure decomposition and information extraction on the obtained external frame structure file to obtain identification word mapping information; the identification word mapping information is used for mapping identification words and data units.
Optionally, in an embodiment of the present invention, the instruction structure tree module includes:
A link establishing unit, configured to establish a link between the basic instruction and the extended instruction by using the frame structure information, so that a basic identification word of the basic instruction is associated with an extended identification word of the extended instruction;
the instruction structure tree unit is used for traversing the extended identification words of the extended instruction and the basic identification words of the corresponding basic instruction to obtain a plurality of identification word combinations, and expanding the frame structure field of each identification word combination to obtain the instruction structure tree information.
Optionally, in an embodiment of the present invention, the control data generating module is further configured to obtain a control parameter, instantiate the instruction structure tree information according to an instruction list to be framed in the control parameter, and perform data block framing by using an inner layer frame and an outer layer encapsulation mode to generate the control data.
Optionally, in an embodiment of the present invention, the control data generating module includes:
the instruction group unit groups the instruction code strings in the extended instructions according to the instruction list to be framed in the control parameters to obtain a plurality of instruction groups;
and the instantiation unit is used for determining a basic instruction corresponding to the instruction group of the extended instruction and a link of the basic instruction to an upper node in the instruction structure tree information corresponding to the extended instruction so as to complete the instantiation of the instruction structure tree information.
Optionally, in an embodiment of the present invention, the control data generating module further includes:
the inner layer framing unit is used for traversing each basic instruction in the instantiated instruction structure tree information, and carrying out identification word field assembly and frame structure field assembly on each basic instruction in the instantiated instruction structure tree information according to a preset framing rule to obtain a framing data block;
the outer packaging unit is used for traversing each extended instruction in the instantiated instruction structure tree information, and packaging the outer sides of each extended instruction in the instantiated instruction structure tree information according to a preset packaging rule and the framing data block to generate the control data.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method when executing the program.
The present invention also provides a computer readable storage medium storing a computer program for executing the above method.
According to the invention, the data quantity of manual maintenance is greatly reduced by extracting, binding and framing the data frame structure, the dynamic combination and structure management of the control data of different types of spacecrafts and loads are automatically realized by constructing the instruction structure tree information and utilizing the characteristic of multiple control data repetition structures, the flexible control requirement of users on the spacecrafts is met, and the injection data generation efficiency and reliability are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for generating uplink control data of a spacecraft according to an embodiment of the invention;
FIG. 2 is a schematic diagram of the composition of uplink control data of a spacecraft in an embodiment of the invention;
FIG. 3 is a flow chart of constructing instruction structure tree information in an embodiment of the present invention;
FIG. 4 is a flowchart of an exemplary signaling structure tree information;
FIG. 5 is a flow chart of a data block framing in an embodiment of the present invention;
FIG. 6 is a schematic diagram of a system architecture for applying a method for generating uplink control data of a spacecraft in an embodiment of the invention;
FIG. 7 is a diagram illustrating a hierarchical description of an identifier-to-data unit mapping in accordance with an embodiment of the present invention;
FIG. 8 is a diagram showing association of command information and identification words according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a SHELL1 instruction structure TREE TREE1 according to an embodiment of the present invention;
FIG. 10 is a diagram of an exemplary instruction structure TREE GROUP1_TREE1 according to one embodiment of the invention;
FIG. 11 is a schematic structural diagram of a spacecraft uplink control data generating device according to an embodiment of the invention;
FIG. 12 is a schematic diagram of a command tree module in an embodiment of the present invention;
FIG. 13 is a schematic diagram of a control data generation module according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of a control data generation module according to another embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a spacecraft uplink control data generation method and device.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a method for generating uplink control data of a spacecraft according to an embodiment of the invention, where an execution body of the method for generating uplink control data of a spacecraft provided by the embodiment of the invention includes, but is not limited to, a computer. The method shown in fig. 1 comprises the following steps:
Step S1, extracting information from an acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction.
The fig. 2 shows a schematic diagram (non-real data) of the composition of the upstream control data of the spacecraft, the upstream control data of the spacecraft is composed of multiple layers, multiple lower layer data units are assembled into an upper layer data unit, and finally, the upper layer data unit is assembled into a data frame file for controlling the spacecraft, for example: data frame a and data frame B. The relation of the data units of each layer is a many-to-many relation, and the number of the data units contained in each layer of data can be determined when a user performs spacecraft control. Therefore, it is necessary to design an uplink control data generation method, based on a small number of binding parameters of a data structure, the control data framing and generation are realized in a dynamic combination mode, and the control data of different types of spacecrafts and loads are supported to be quickly generated. In summary, by defining a keyword (identification word) for each data unit, dynamically assembling the identification word to describe different uplink data structures, and adopting a corresponding uplink control data generation method and system, framing generation of control data is completed.
Further, the external frame structure file is obtained in a reading mode, and the information of mapping the identification words and the data units, namely the identification word mapping information, is automatically extracted. Binding the identification word mapping information and the acquired instruction information to a database. The information stored in the database includes: the "identifier word and data unit map" information and instruction information. Specifically, the information of mapping between the identification word and the data unit is that the identification word is the identification of the data unit and is used for indexing the frame structure corresponding to the data unit, and the identification word of the data structure of the same layer is unique.
Further, the instruction information is designed and bound manually by a user according to the control requirement of an external spacecraft development unit, and the content of the instruction information comprises two types, namely a basic instruction and an expansion instruction. The basic instruction is an instruction for realizing the basic control function of the spacecraft and consists of an instruction code number, a basic identification word and extensible attributes. The expansion instruction is a shell of the basic instruction and is used for packaging the basic instruction, so that the basic instruction is conveniently sent to equipment appointed by the spacecraft in batches, and the equipment comprises an instruction code number, an expansion identification word and a maximum length. The extensible attribute of the basic instruction is used for identifying an extensible instruction list which can be packaged, the shells which can be used by different basic instructions are different, and the instruction list of the extensible attribute is also different.
And S2, establishing a link between the basic instruction and the expansion instruction by using the frame structure information, and performing traversal expansion on the basic instruction and the expansion instruction after the link is established to obtain instruction structure tree information.
The frame structure information is acquired from the database, a link is established between the basic instruction and the extended instruction, and dynamic combination association of the extended identification word of the extended instruction and the basic identification word of the basic instruction is realized.
Further, the frame structure information is traversed and unfolded, and instruction structure tree information is constructed. Specifically, by traversing the extended instructions and the identification words corresponding to the basic instructions, a plurality of identification word combinations are obtained, frame structure fields of different identification word combinations are unfolded, tree frame structures of all the extended instructions are established, and instruction structure tree information is obtained.
And step S3, instantiating the instruction structure tree information according to the acquired control parameters to generate control data.
After the control parameters input by the user are acquired, corresponding instruction structure tree information is instantiated according to an instruction list to be framed and related data in the control parameters, framing of the data blocks is performed in a step-by-step generation mode of inner layer framing and outer layer packaging, and complete control data source codes are generated, so that control data are obtained.
As an embodiment of the present invention, extracting information from the acquired external frame structure file to obtain the identifier mapping information includes: performing frame structure decomposition and information extraction on the obtained external frame structure file to obtain identification word mapping information; the identification word mapping information is used for mapping the identification word with the data unit.
And carrying out frame structure decomposition and extraction on the external frame structure file layer by layer to obtain the identification word mapping information. The identification word mapping information is identification word and data unit mapping information, the identification word is identification of the data unit and is used for indexing a frame structure corresponding to the data unit, and the identification word of the data structure of the same layer is unique.
As an embodiment of the present invention, as shown in fig. 3, using the frame structure information to establish a link between the basic instruction and the extended instruction, performing traversal and expansion on the basic instruction and the extended instruction after the link is established, and obtaining instruction structure tree information includes:
step S21, the frame structure information is utilized to establish a link between the basic instruction and the expansion instruction so as to enable the basic identification word of the basic instruction to be associated with the expansion identification word of the expansion instruction;
Step S22, traversing the extended identification words of the extended instruction and the basic identification words of the corresponding basic instruction to obtain a plurality of identification word combinations, and expanding the frame structure field of each identification word combination to obtain the instruction structure tree information.
The frame structure information is acquired from the database, a link is established between the basic instruction and the extended instruction, and dynamic combination association of the extended identification word of the extended instruction and the basic identification word of the basic instruction is realized.
Further, the frame structure information is traversed and unfolded, and instruction structure tree information is constructed. Specifically, by traversing the extended instructions and the identification words corresponding to the basic instructions, a plurality of identification word combinations are obtained, frame structure fields of different identification word combinations are unfolded, tree frame structures of all the extended instructions are established, and instruction structure tree information is obtained.
As one embodiment of the present invention, instantiating the instruction structure tree information according to the acquired control parameter, and generating the control data includes: and acquiring control parameters, instantiating the instruction structure tree information according to an instruction list to be framed in the control parameters, and framing data blocks by using an inner layer framing and outer layer packaging mode to generate the control data.
After the control parameters input by the user are acquired, corresponding instruction structure tree information is instantiated according to an instruction list to be framed and related data in the control parameters, framing of the data blocks is performed in a step-by-step generation mode of inner layer framing and outer layer packaging, and complete control data source codes are generated, so that control data are obtained.
In this embodiment, as shown in fig. 4, according to the instruction list to be framed in the control parameter, instantiating the instruction structure tree information includes:
step S31, grouping the instruction code strings in the extended instruction according to the instruction list to be framed in the control parameter to obtain a plurality of instruction groups;
and step S33, determining a basic instruction corresponding to the instruction group of the extended instruction and a link of the basic instruction to an upper node in the instruction structure tree information corresponding to the extended instruction so as to complete the instantiation of the instruction structure tree information.
Wherein, the control parameters input by the user comprise a plurality of combinations of expansion instructions and basic instructions, and the forms are as follows: command code string shell1+cmd1: parameters a=1, b=2, c=3, instruction code string shell1+cmd2: parameters e=1, f=2, … …. After the control parameters are acquired, sorting and grouping are carried out according to the instruction code strings, and the instruction code strings with the same expansion instruction are grouped into the same group of GROUPi; loading an instruction structure tree TREEi corresponding to the GROUPi expansion instruction, and processing the group of instructions and parameters; searching a basic instruction in the GROUPi in the instruction structure tree TREEi, determining a link from the basic instruction CMDj to an upper node, deleting an instruction link and a child node which do not exist in the GROUPi in the TREEi, completing the instantiation of the instruction structure tree, and instantiating the instruction structure tree TREEi into the GROUPi_TREEi.
In this embodiment, as shown in fig. 5, performing framing of data blocks by using an inner layer framing and outer layer encapsulation method, and generating the control data includes:
step S41, traversing each basic instruction in the instantiated instruction structure tree information, and according to a preset framing rule, assembling identification word fields and frame structure fields of each basic instruction in the instantiated instruction structure tree information to obtain a framing data block.
Traversing child nodes of an instruction CMDj in the GROUPi_TREEi, performing parameter processing and framing from top to bottom, and sequentially assembling an nth identification word field and a frame structure field of the CMDj; when the data unit field is processed, suspending framing of the frame structure of the layer, and framing of the n+1th identification word and the frame structure of the next layer according to the identification word linked by the data unit field, wherein the method comprises the steps of converting the numerical value of the parameter A, B, C into the corresponding source code (the source code conversion method is not related to the invention); sequentially processing the lower layer until the n+x identification words at the bottommost layer according to the rule; when the lowest layer identification word frame structure of the command CMDj is assembled, returning the composed data block DATn+x to the n+x-1 layer as the content of the data unit field of the n+x-1 layer, continuously executing the framing of the n+x-1 layer, and sequentially returning to the upper layer until the 1 st layer of the command CMDj is assembled, and framing the whole data block corresponding to the command CMDj. And continuing to process the next instruction CMDj+1 in the GROUPi_TREEi to complete the framing of the data blocks of all the basic instructions.
Step S42, traversing each extended instruction in the instantiated instruction structure tree information, and packaging the outer side of each extended instruction in the instantiated instruction structure tree information according to a preset packaging rule and the framing data block to generate the control data.
After the basic instruction generates the data block, the data block list DAT1 … DATn is returned to the data unit corresponding to the bottom identification word of the extended instruction sheli. And traversing the child node of the instruction SHELLI in the GROUPi_TREEi, performing parameter processing and framing from top to bottom, wherein the method of framing of each layer is the same as that of the basic instruction except the bottommost layer. When framing the data unit field of the bottommost frame structure, sequentially adding the DATj of the data block list into the data unit field; before adding the data block DATj, it is determined whether the total length of the added data block reaches the maximum length attribute MAX of the instruction sheli. If the length is smaller than the maximum length, continuing to add the data blocks until all the data blocks are added, and finishing the lowest layer framing of the command SHELLI; and processing each layer upwards to finish the outer packaging of the command SHELLI, and generating the final control data source code FRAMEi. If the maximum length MAX is greater than or equal to the maximum length MAX, suspending adding, copying the SHELLI instruction structure tree into SHELLnew, linking the list of the data blocks which are not added under the SHELLnew instruction structure tree, and continuously completing the subsequent package generation of the SHELLI instruction; and then, continuing to process the instruction structure tree SHELlnewi according to the same method, and finishing packaging framing of the instruction SHELlnewi to generate control source code data FRAMEi+1.
In a specific embodiment of the present invention, as shown in fig. 6, a system structure diagram of a method for generating uplink control data of a spacecraft in the embodiment of the present invention is shown, where the system includes 3 main parts: control data structure extraction, framing and generation processing architecture, recognition word dynamic assembly and instruction structure tree construction strategy, and data generation method based on the assemblable recognition word.
In this embodiment, a control data structure extraction, framing, and generation processing architecture is designed. As shown in fig. 6, this architecture is composed of a frame structure extraction binding unit, an instruction structure tree creation unit, and a data step-by-step framing generation unit.
The frame structure extracting and binding unit realizes the functions of extracting identification words and binding the frame structure to a database, the identification word extracting module reads an external frame structure file (file content is shown in fig. 2), and automatically extracts information of mapping identification words and data units (see fig. 7), and the frame structure binding module binds the identification word information and instruction information to the database. The information stored in the database includes: the "identifier word and data unit map" information and instruction information. As shown in fig. 7, the "identifier and data unit mapping" information, the identifier is an identifier of a data unit, and is used to index a frame structure corresponding to the data unit, and the identifier of the data structure of the same layer is unique.
As shown in fig. 8, the instruction information is instruction information which is designed and bound manually by a user according to the control requirement of an external spacecraft development unit, and the content of the instruction information comprises two types of basic instructions and expansion instructions. The basic instruction is an instruction for realizing the basic control function of the spacecraft and consists of an instruction code number, a basic identification word and extensible attributes. The expansion instruction is a shell of the basic instruction and is used for packaging the basic instruction, so that the basic instruction is conveniently sent to equipment appointed by the spacecraft in batches, and the equipment comprises an instruction code number, an expansion identification word and a maximum length. The extensible attribute of the basic instruction is used for identifying an extensible instruction list which can be packaged, the shells which can be used by different basic instructions are different, and the instruction list of the extensible attribute is also different.
Furthermore, the instruction structure tree creation unit loads frame structure information from the database by the binding information loading module, and the instruction structure tree creation module traverses and expands the frame structure information to construct instruction structure tree information and stores the instruction structure tree information into the system cache.
Further, the data step-by-step framing generating unit performs preprocessing such as parameter validity check and data type conversion by receiving control parameters input by an external system, instantiates instruction structure tree information, and is divided into inner layer framing and outer layer packaging two-step control data framing and generating. The inner layer framing completes the source code generation and framing processing of the basic instructions (basic instructions shown in fig. 8), and the outer layer packaging performs secondary packaging on the source codes of the basic instructions according to the expansion instructions (expansion instructions shown in fig. 8) to generate final control data.
In this embodiment, recognition word dynamic assembly and instruction structure tree construction policies are designed. In order to reduce the data volume bound by users and save the storage space of a database, the information of mapping the identification words and the data units and instruction information are respectively stored in the database. The invention designs a dynamic assembly mode of the identification words, combines the basic identification words and the extended identification words, establishes an instruction structure tree (shown in figure 9) and covers different frame structure combination conditions. The processing procedure of the dynamic assembly of the identification words and the construction strategy of the instruction structure tree comprises the following steps:
1) An identification word dynamic association assembly method. By establishing a link between a basic instruction and an extended instruction, dynamic combination association of the extended identification word of the extended instruction and the basic identification word of the basic instruction is realized, and the premise of constructing an instruction structure tree is completed. As shown in fig. 8, the basic instruction and the extended instruction list are read; traversing the expansion instruction list to acquire each expansion instruction SHELLI; traversing all basic instructions according to the SHELLI instruction code, and checking whether the extensible attribute of the basic instruction CMDj contains the instruction code SHELLI; if the extensible attribute of the instruction CMDj contains SHELLI, adding the CMDj into a child node linked list LISTi of SHELLI, otherwise, not processing the instruction CMDj; the next instruction cmdj+1 is continued to be read. After the instruction SHELLI completes the basic instruction list traversal, the construction of the instruction structure tree corresponding to the instruction SHELLI is started.
2) An instruction structure tree information construction method. By traversing the extended instructions and the identification words corresponding to the basic instructions, the frame structure fields of different identification word combinations are unfolded, and the tree frame structure of all the extended instructions is established, as shown in fig. 9.
Taking an instruction code number SHELLI of the extended instruction as a root node of the tree structure; reading the information of 'identification word-data unit mapping' (shown in fig. 7), traversing the extension identification word of the extension instruction SHELLI, acquiring a frame structure corresponding to the ith identification word from the ith layer in fig. 7, adding an identification word field under a root node as a child node, and sequentially linking other fields of the frame structure to the identification word field; continuously acquiring a frame structure corresponding to the (i+1) -th identification word from the (i+1) -th layer, linking the (i+1) -th identification word field to a data unit field of the frame structure corresponding to the (i) -th identification word as a child node, and sequentially linking other fields of the frame structure to the (i+1) -th identification word field; until the traversal of the instruction sheli extended identification word is completed.
Traversing basic instructions in a child node linked list LISTi of the SHELLI in sequence, and adding each basic instruction CMDj to a data unit field of a frame structure corresponding to a last identification word of the extended instruction SHELLI as a child node; basic identification words of a basic instruction CMDj are traversed one by one, frame structure fields corresponding to the identification words are sequentially added, and the adding method is the same as that of an extended instruction. The link of the basic command CMDj to the upper node is dynamic (indicated by a broken line in fig. 9), and a unique link relation is determined according to the extended command and the basic command actually input by the user.
Wherein fig. 9 shows an instruction structure TREE1 of an extended instruction SHELL 1. The system needs to construct an instruction structure tree of all the extended instructions, and stores the instruction structure tree in a cache for the instruction framing to be called.
Further, the target spacecraft means that in the control process of a plurality of spacecraft, the ground control center sends uplink control instructions and data to the corresponding spacecraft, and finally the spacecraft for executing the instructions and the data is the target spacecraft. The routing spacecraft is characterized in that in the control process of a plurality of spacecraft, the ground control center sends uplink control instructions and data to corresponding spacecraft, the uplink control instructions and the data are sent to spacecraft A in part of cases, the uplink control instructions and the data are forwarded to a final target spacecraft by the spacecraft A, and the spacecraft A for forwarding the instructions and the data is the routing spacecraft. The transmission control mode represents the process that a plurality of spacecrafts with association relation are constrained by ground measurement and control capability in the flight process, a ground station can only track one or more of the spacecrafts, and a ground control center sends instructions or data to the tracked spacecrafts, so that the spacecrafts judge target spacecrafts of the instructions and the data and forward the instructions or the data to the corresponding target spacecrafts.
In the present embodiment, a data generation method based on an assemblable identification word is designed. After a user inputs control parameters, a corresponding instruction structure tree is instantiated according to an instruction list to be framed and related data in the control parameters, and framing of data blocks is performed in a step-by-step generation mode of inner layer framing and outer layer encapsulation, so that complete control data source codes are generated. The processing procedure of the data generating method based on the assemblable identification words comprises the following steps:
1) Instantiation of an instruction structure tree. The control parameters input by the user comprise a plurality of combinations of expansion instructions and basic instructions, and the forms are as follows: command code string shell1+cmd1: parameters a=1, b=2, c=3, instruction code string shell1+cmd2: parameters e=1, f=2, … …. After receiving the control parameters, the system sorts and groups the instruction code strings according to the instruction code strings, and divides the instruction code strings with the same expansion instruction into the same group of GROUPi; loading an instruction structure tree TREEi corresponding to the GROUPi expansion instruction, and processing the group of instructions and parameters; the basic instructions in the GROUPi are searched in the instruction structure tree TREEi, the links (the broken line is modified to be a solid line in fig. 9) from the basic instructions CMdj to the upper nodes are determined, the non-existent instruction links and sub-nodes of the GROUPi are deleted in the TREEi, the instantiation of the instruction structure tree is completed, and the instruction structure tree TREEi is instantiated as GROUPi_TREEi.
2) And performing inner layer framing of the basic instruction. Traversing child nodes of an instruction CMDj in the GROUPi_TREEi, performing parameter processing and framing from top to bottom, and sequentially assembling an nth identification word field and a frame structure field of the CMDj; when the data unit field is processed, suspending framing of the frame structure of the layer, and framing of the n+1th identification word and the frame structure of the next layer according to the identification word linked by the data unit field, wherein the framing comprises the steps of converting the numerical value of the parameter A, B, C into the corresponding source code; sequentially processing the lower layer until the n+x identification words at the bottommost layer according to the rule; when the lowest layer identification word frame structure of the command CMDj is assembled, returning the composed data block DATn+x to the n+x-1 layer as the content of the data unit field of the n+x-1 layer, continuously executing the framing of the n+x-1 layer, and sequentially returning to the upper layer until the 1 st layer of the command CMDj is assembled, and framing the whole data block corresponding to the command CMDj. And continuing to process the next instruction CMDj+1 in the GROUPi_TREEi to complete the framing of the data blocks of all the basic instructions.
3) And performing outer packaging of the expansion instruction. After the basic instruction generates the data block, the data block list DAT1 … DATn is returned to the data unit corresponding to the bottom identification word of the extended instruction SHELLI. And traversing the child node of the instruction SHELLI in the GROUPi_TREEi, performing parameter processing and framing from top to bottom, wherein the method of framing of each layer is the same as that of the basic instruction except the bottommost layer. When framing the data unit field of the bottommost frame structure, sequentially adding the DATj of the data block list into the data unit field; before adding the data block DATj, it is determined whether the total length of the added data block reaches the maximum length attribute MAX of the instruction sheli. If the length is smaller than the maximum length, continuing to add the data blocks until all the data blocks are added, and finishing the lowest layer framing of the command SHELLI; and processing each layer upwards to finish the outer packaging of the command SHELLI, and generating the final control data source code FRAMEi. If the maximum length MAX is greater than or equal to the maximum length MAX, suspending adding, copying the SHELLI instruction structure tree into SHELLnew, linking the list of the data blocks which are not added under the SHELLnew instruction structure tree, and continuously completing the subsequent package generation of the SHELLI instruction; and then, continuing to process the instruction structure tree SHELlnewi according to the same method, and finishing packaging framing of the instruction SHELlnewi to generate control source code data FRAMEi+1.
In a specific embodiment of the present invention, this embodiment describes a process of extracting an uplink control data structure of a spacecraft, describes a process of dynamically assembling an identification word and constructing an instruction structure tree, and describes a data generation method of an inner layer frame and an outer layer package in combination with control parameters input by a user.
Providing a frame structure FILE1 by an external system, wherein the content is shown in fig. 2; the expansion instructions defined by the user design are SHELL1 to SHELL5, the basic instructions are CMD1 to CMD5, and the content is shown in FIG. 8; the control parameter FILE input by the user is FILE2, and the content is:
command code string shell1+cmd1, parameters a=1, b=2, c=3;
command code string shell1+cmd2, parameters e=1, f=2;
command code string shell2+cmd1, parameters a=10, b=20, c=30;
command code string shell1+cmd4, parameters x=1.4, y=2.9, z=1.5.
Step one, frame structure information extraction and binding. The system extracts the information of the 'mapping between the identification word and the data unit', and an external user manually performs the instruction information of design and binding according to the extracted information of the 'mapping between the identification word and the data unit' and in combination with the control requirement of an external spacecraft development unit, and stores the information of the 'mapping between the identification word and the data unit' and the instruction information into a database. The frame structure information extraction and binding working steps of the invention are as follows:
(1) As shown in fig. 2, the identification word extraction module performs frame structure decomposition and extraction on the external frame structure FILE1 layer by layer. Firstly, processing the highest layer, and using 11H of a data frame A as an identification word for uniquely identifying the frame structure; the DATAFRAME field corresponds to the underlying data content as a data unit field, which has no specific format for pointing to the underlying structure; the "TAIL" field is the end of frame, which is a fixed value of "00H"; the frame structure to which the identification word "11H" points therefore includes: "11H", "DATAFRAME", "00H".
(2) Continuing to process the data frame B in the same way, extracting the identification word "12H" to point to the frame structure: "12H", "DATAFRAME", "TAIL"; after the highest layer processing of fig. 2 is completed, the repeated identification words are deleted, the frame structure corresponding to the identification words "11H" and "TAIL" is used as the 1 st layer and named as "TOP", and the extraction of the highest layer identification word and data unit mapping information is completed.
(3) Continuing with the second layer of fig. 2, the identification words "21H", "22H", "23H", and corresponding frame structures are extracted in the same way; the second layer is named the name "DATAFRAME" of the data unit of the upper layer (first layer); and the extraction of the second layer of information of the identification word and the data unit mapping is completed.
(4) When processing the third layer, 5 recognition words can be extracted: "31H", "32H", "33H", deleting duplicate identifiers "32H" and "33H", and the final extracted list of identifiers is "31H", "32H", "33H", and frame structure; the processing of the lower layers of fig. 2 continues until the last layer of the frame structure, i.e. the last layer has no data unit fields, is extracted. The "identifier-data unit mapping" information shown in fig. 7 is constructed and stored in the system database.
(5) Binding instruction information such as basic instructions and expansion instructions to a database. The binding of the basic instruction and the expansion instruction is designed manually according to the external requirement, and no fixed program or method is adopted, and the binding is not taken as the content of the invention. The purpose of this process is to design two types of instructions, representing the basic function control instructions and the shell of the basic instructions, respectively. The two types of instructions are added with basic identification words and extended identification words, and the basic identification words and the extended identification words are used for representing frame structures corresponding to the instructions. As shown in fig. 8, the identification words of the command CMD1 are "31H, 41H", and indicate framing using the frame structure corresponding to the "31H" identification word of the 3 rd layer and the frame structure corresponding to the "41H" identification word of the 4 th layer. The extensible nature of a base instruction represents the shell that the instruction can use. As shown in fig. 8, the extensible attribute of the command CMD3 is "SHELL1, SHELL3, SHELL4", which means that the command can be packaged with the extended commands SHELL1, SHELL3, SHELL4, but cannot be packaged with the commands "SHELL2, SHELL 5".
Step two, identifying the dynamic assembly of words and constructing an instruction structure tree. And loading frame structure information from a database by a binding information loading module, traversing and expanding the frame structure information by an instruction tree creation module, constructing instruction structure tree information, and storing the instruction structure tree information into a system cache. The working steps are as follows:
(1) By establishing a link between the basic instruction and the extended instruction, dynamic combination association of the extended identification word of the extended instruction and the basic identification word of the basic instruction is realized. As shown in fig. 8, the basic instruction and the extended instruction list are read; traversing the extended instruction list.
(2) And acquiring a 1 st expansion instruction SHELL1, traversing all basic instructions CMD1 to CMD5 according to the SHELL1 instruction code, and checking whether the expandable attribute of the basic instruction CMD1 contains the instruction code SHELL1. If the extensible attribute of the command CMD1 contains SHELL1, adding the CMD1 into a child node linked LIST LIST1 of SHELL 1; otherwise, not processing the command CMD1; the next command CMD2 is continuously read. When the command SHELL1 completes the processing of the basic command CMD5, the child node LIST1 of SHELL1 contains 5 basic commands "CMD1 to CMD5".
(3) And establishing an instruction structure tree corresponding to the instruction SHELL1. Taking an instruction code number SHELL1 of the extended instruction as a root node of the tree structure; reading the information of the identification word-data unit mapping shown in fig. 7, traversing the extended identification words 11H, 21H of the extended instruction SHELL 1; the frame structure corresponding to the 1 st identification word "11H" is acquired from the 1 st layer of fig. 7, the identification word field "11H" is added below the root node as a child node, the frame structure "DATAFRAME" field is linked to the "11H" node in turn, and the "TAIL" field is linked to the "DATAFRAME" node.
(4) Continuing to acquire a frame structure corresponding to the 2 nd identification word 21H from the 2 nd layer, and linking the identification word field 21H to the data unit field DATAFRAME corresponding to the 1 st identification word 11H as a child node; the SYS field of the frame structure is sequentially linked to the 21H node, and the traversing of the extended identification word of the command SHELL1 is completed.
(5) Traversing the basic commands CMD1 to CMD5 in the child node linked LIST LIST1 of the SHELL1 in turn, and adding the commands CMD1 to CMD5 to the data unit SYS node of the last identification word 12H of the expansion command SHELL1 in turn as child nodes. The links of the base commands CMD1 to CMD5 to the upper level "SYS" node are dynamic (identified by the dashed lines in fig. 9).
(6) Processing basic commands CMD1 to CMD5 one by one, traversing basic identification words 31H and 41H of the basic command CMD1, sequentially adding frame structure fields corresponding to the identification words 31H and 41H, wherein the adding method is the same as that of an expanding command, and linking to the bottommost node: a, B, C parameter information for BLK 1. After the processing of the basic command CMD1 is completed, the processing of CMD2 to CMD5 is continued.
(7) After traversing the child node linked LIST1 of the SHELL1 is completed, the construction of the instruction structure TREE1 corresponding to the instruction SHELL1 is completed, and the system stores the TREE1 into a cache. Fig. 9 shows an instruction structure TREE1 of the extended instruction SHELL 1. The system continues to construct the instruction structure TREEs TREE2 to TREE5 of the extended instructions SHELL2 to SHELL5 according to the steps of (2) to (6), and sequentially stores the instruction structure TREEs TREE2 to TREE5 into a system cache for the instruction framing call.
Thirdly, after a user inputs a control parameter FILE2, a corresponding instruction structure tree is instantiated according to an instruction list to be framed and related data in control parameters, and framing of data blocks is carried out in a step-by-step generation mode of inner layer framing and outer layer packaging, so that complete control data source codes are generated. The working steps are as follows:
(1) The control parameters instruct the grouping. The system reads the control parameter FILE2, sorts and GROUPs the control parameter FILE2 according to the instruction code strings, GROUPs the instruction code strings with the same expansion instruction into the same GROUP, and GROUPs the control parameter FILE2 into 2 GROUPs, GROUP1: shell1+cmd1, shell1+cmd2, shell1+cmd4; GROUP2: SHEL2+CMD1. Next, GROUP1 and GROUP2 are sequentially processed, instruction framing and data generation processing are performed, and GROUP1 is first processed.
(2) An instruction structure tree is instantiated. Loading an instruction structure TREE1 corresponding to an expansion instruction SHELL1 of the GROUP1, searching basic instructions CMD1, CMD2 and CMD4 in the GROUP1 in the instruction structure TREE1, determining links from the basic instructions CMD1, CMD2 and CMD4 to a superior node SYS, deleting links and child nodes of the instructions CMD3 and CMD5 in the TREE1, and completing the instantiation of the instruction structure TREE, wherein FIG. 10 is an instruction structure TREE GROUP1_TREE1 instantiated according to the GROUP1.
(3) The inner layer of the basic instruction frames. Traversing child nodes of the instructions CMD1, CMD2 and CMD4 in the instantiated GROUP1_TREE1, and performing parameter processing and framing from top to bottom. The 1 st identification word "31H" and the frame structure field "DAT" of CMD1 are assembled in sequence, first 31H is converted into source code, and then field "DAT" is processed, because field "DAT" is a data unit field, and framing of the frame structure of "31H" is suspended.
(4) According to the identification word 41H linked by the data unit field DAT, framing the identification word 41H and the frame structure, including converting the parameters A=1, B=2 and C=3 into corresponding data block source CODEs 41; when the bottom layer "41H" of the command CMD1 identifies that the frame structure is assembled, the composed data block "CODE41" is returned to the "31H" layer as the content of the data unit field "DAT" of the "31H".
(5) Continuing the frame structure processing of 31H, framing to generate a data block source CODE CODE31, and sequentially returning to the upper layer until the 1 st layer of the command CMD1 to generate the whole data block source CODE CODECMD1 corresponding to the command CMD 1.
(6) Continuing to process commands "CMD2 and CMD4" in GROUP1_TREE1, and generating data block source codes "CODECMD2" and "CODECMD4". The source code lengths of the generated data blocks "codec cmd1", "codec cmd2", and "codec cmd4" are 65B, 31B, 55B, respectively.
(7) After the basic instruction generates the data blocks, the data block lists "codec cmd1", "codec cmd2", and "codec cmd4" are returned to the expansion instruction SHELL1 as the input contents of the bottom-most identification word "21H" data unit "SYS".
(8) The outer encapsulation of the instruction is expanded. And traversing the child node of the command SHELL1 in the GROUP1_TREE1, performing parameter processing and framing from top to bottom, wherein the framing method of each layer is the same as that of the basic command except the bottommost layer. When framing the "SYS" field of the frame structure of the lowest identification word "21H", the data blocks "CODECMD1", "CODECMD2" and "CODECMD4" are added in sequence to the "SYS" field.
(9) First, a data block "codec 1" is added, and before the data block is added, it is determined whether the total length of the added data block exceeds the maximum length attribute max=100deg.B of the instruction SHELL 1. The length of the data block of the CODECMD1 is 65B, and is smaller than the maximum length, the data block CODECMD1 is added; continuing to add the data block CODECMD2 (length 31B), and adding the data block CODECMD2 if the total added length 65B+31B=96B is smaller than the maximum length; continuing to add the data block codec 4 (length 55B), and if the total length added 96b+55b=151B is greater than the maximum length 100B, suspending the addition; copying the SHELlnew1 instruction structure tree as SHELlnew1, and linking the non-added data block 'CODECMD 4' under the SHELlnew1 instruction structure tree; continuing to complete the data encapsulation of the SHELL1 instruction, a final data block FRAME1 is generated.
(10) And continuing to process the instruction structure tree SHELnew 1 according to the same method, and completing encapsulation framing of the instruction SHELnew 1 to generate control source code data FRAME2.
(11) Continuing to process the GROUP2, and referring to the steps (2) to (10), carrying out the instantiation of the instruction structure tree, the inner layer framing of the basic instruction and the outer layer encapsulation of the extended instruction to generate the final control data source code FRAME3.
The invention designs a spacecraft uplink control data structure extraction, framing and generation processing framework. The whole process of data frame structure extraction, binding and framing is realized, only manual binding instruction information is needed, and the data volume of manual maintenance is greatly reduced. The method designs the dynamic assembly of the identification words and the construction strategy of the instruction structure tree, utilizes the characteristic of multiple control data repetition structures, automatically realizes the dynamic combination and structure management of the control data of different types of spacecrafts and loads, and meets the flexible control demands of users on the spacecrafts. The indexing of the data units is realized by adopting the identification words, the constraint of the maximum length of control data is met, the acquisition of external parameters and the framing generation of the control data are automatically completed, and the generation efficiency and the reliability of the injection data are improved.
The invention realizes the generation and framing of control data of different types of spacecrafts, realizes the indexing of data units by adopting a mode of identifying words, dynamically assembles the identifying words, injects data layering frame according to control requirements, achieves the effect of high multiplexing of the data unit structure, meets the constraint of the maximum length of the control data, automatically completes the acquisition of external parameters and the framing generation of the control data, and simultaneously reduces the workload and complexity of manual binding operation.
Fig. 11 is a schematic structural diagram of a spacecraft uplink control data generating device according to an embodiment of the invention, where the device includes:
the frame structure information module 10 is used for extracting information from the acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction.
The external frame structure file is obtained in a reading mode, and the information of ' mapping identification words and data units ', namely identification word mapping information ', is automatically extracted. Binding the identification word mapping information and the acquired instruction information to a database. The information stored in the database includes: the "identifier word and data unit map" information and instruction information. Specifically, the information of mapping between the identification word and the data unit is that the identification word is the identification of the data unit and is used for indexing the frame structure corresponding to the data unit, and the identification word of the data structure of the same layer is unique.
Further, the instruction information is designed and bound manually by a user according to the control requirement of an external spacecraft development unit, and the content of the instruction information comprises two types, namely a basic instruction and an expansion instruction. The basic instruction is an instruction for realizing the basic control function of the spacecraft and consists of an instruction code number, a basic identification word and extensible attributes. The expansion instruction is a shell of the basic instruction and is used for packaging the basic instruction, so that the basic instruction is conveniently sent to equipment appointed by the spacecraft in batches, and the equipment comprises an instruction code number, an expansion identification word and a maximum length. The extensible attribute of the basic instruction is used for identifying an extensible instruction list which can be packaged, the shells which can be used by different basic instructions are different, and the instruction list of the extensible attribute is also different.
The instruction structure tree module 20 is configured to establish a link between the basic instruction and the extended instruction by using the frame structure information, and traverse and expand the basic instruction and the extended instruction after the link is established, so as to obtain instruction structure tree information.
The frame structure information is acquired from the database, a link is established between the basic instruction and the extended instruction, and dynamic combination association of the extended identification word of the extended instruction and the basic identification word of the basic instruction is realized.
Further, the frame structure information is traversed and unfolded, and instruction structure tree information is constructed. Specifically, by traversing the extended instructions and the identification words corresponding to the basic instructions, a plurality of identification word combinations are obtained, frame structure fields of different identification word combinations are unfolded, tree frame structures of all the extended instructions are established, and instruction structure tree information is obtained.
And the control data generating module 30 is configured to instantiate the instruction structure tree information according to the acquired control parameters, and generate control data.
After the control parameters input by the user are acquired, corresponding instruction structure tree information is instantiated according to an instruction list to be framed and related data in the control parameters, framing of the data blocks is performed in a step-by-step generation mode of inner layer framing and outer layer packaging, and complete control data source codes are generated, so that control data are obtained.
As an embodiment of the present invention, the frame structure information module is further configured to perform frame structure decomposition and information extraction on the obtained external frame structure file to obtain identification word mapping information; the identification word mapping information is used for mapping identification words and data units.
As shown in fig. 12, the instruction structure tree module 20 includes:
a link establishment unit 21 configured to establish a link between the basic instruction and the extended instruction using the frame structure information, so as to associate a basic identification word of the basic instruction with an extended identification word of the extended instruction;
the instruction structure tree unit 22 is configured to traverse the extended identification word of the extended instruction and the basic identification word of the basic instruction corresponding to the extended identification word to obtain a plurality of identification word combinations, and expand the frame structure field of each identification word combination to obtain the instruction structure tree information.
As an embodiment of the present invention, the control data generating module is further configured to obtain a control parameter, instantiate the instruction structure tree information according to an instruction list to be framed in the control parameter, and perform data block framing by using an inner layer framing and outer layer encapsulation mode, so as to generate the control data.
In the present embodiment, as shown in fig. 13, the control data generation module 30 includes:
an instruction group unit 31, configured to group instruction code strings in the extended instruction according to an instruction list to be framed in the control parameter, so as to obtain a plurality of instruction groups;
an instantiation unit 32, configured to determine, in the instruction structure tree information corresponding to the extended instruction, a basic instruction corresponding to an instruction group of the extended instruction and a link to an upper node thereof, so as to complete instantiation of the instruction structure tree information.
In the present embodiment, as shown in fig. 14, the control data generation module 30 further includes:
the inner layer framing unit 33 is configured to traverse each basic instruction in the instantiated instruction structure tree information, and perform, according to a preset framing rule, identification word field assembly and frame structure field assembly on each basic instruction in the instantiated instruction structure tree information, to obtain a framing data block;
the outer layer encapsulation unit 34 is configured to traverse each extended instruction in the instantiated instruction structure tree information, and encapsulate each extended instruction in the instantiated instruction structure tree information according to a preset encapsulation rule and the framing data block, so as to generate the control data.
Based on the same application conception as the spacecraft uplink control data generation method, the invention also provides the spacecraft uplink control data generation device. Because the principle of the spacecraft uplink control data generating device for solving the problem is similar to that of the spacecraft uplink control data generating method, the implementation of the spacecraft uplink control data generating device can refer to the implementation of the spacecraft uplink control data generating method, and repeated parts are omitted.
According to the invention, the data quantity of manual maintenance is greatly reduced by extracting, binding and framing the data frame structure, the dynamic combination and structure management of the control data of different types of spacecrafts and loads are automatically realized by constructing the instruction structure tree information and utilizing the characteristic of multiple control data repetition structures, the flexible control requirement of users on the spacecrafts is met, and the injection data generation efficiency and reliability are improved.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method when executing the program.
The present invention also provides a computer readable storage medium storing a computer program for executing the above method.
As shown in fig. 15, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, a power supply 170. It is noted that the electronic device 600 need not include all of the components shown in fig. 15; in addition, the electronic device 600 may further include components not shown in fig. 15, to which reference is made to the related art.
As shown in fig. 15, the central processor 100, sometimes also referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 100 receives inputs and controls the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 100 can execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides an input to the central processor 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, or the like. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. Memory 140 may also be some other type of device. Memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage 142, the application/function storage 142 for storing application programs and function programs or a flow for executing operations of the electronic device 600 by the central processor 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. A communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and to receive audio input from the microphone 132 to implement usual telecommunication functions. The audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 130 is also coupled to the central processor 100 so that sound can be recorded locally through the microphone 132 and so that sound stored locally can be played through the speaker 131.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (5)

1. The method for generating the uplink control data of the spacecraft is characterized by comprising the following steps:
extracting information from the acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction; the identification word mapping information is information of mapping identification words and data units, wherein the identification words are identification of the data units and are used for indexing a frame structure corresponding to the data units, and the identification words of the data structure of the same layer are unique;
Establishing a link between the basic instruction and the extended instruction by using the frame structure information, and performing traversal expansion on the basic instruction and the extended instruction after the link is established to obtain instruction structure tree information;
instantiating the instruction structure tree information according to the acquired control parameters to generate control data;
the basic instruction is an instruction for realizing the basic control function of the spacecraft and consists of an instruction code number, a basic identification word and an extensible attribute; the expansion instruction is a shell of the basic instruction and is used for packaging the basic instruction, so that the basic instruction is conveniently sent to equipment appointed by the spacecraft in batches, and the equipment comprises an instruction code number, an expansion identification word and a maximum length; the extensible attribute of the basic instruction is used for identifying an extensible instruction list which can be packaged, the shells which can be used by different basic instructions are different, and the instruction list of the extensible attribute is also different;
the step of establishing a link between the basic instruction and the extended instruction by using the frame structure information, and performing traversal expansion on the basic instruction and the extended instruction after the link is established, so as to obtain instruction structure tree information, wherein the step of obtaining the instruction structure tree information comprises the following steps: establishing a link between the basic instruction and the extended instruction by utilizing the frame structure information so as to enable the basic identification word of the basic instruction to be associated with the extended identification word of the extended instruction; traversing the extended identification words of the extended instruction and the basic identification words of the corresponding basic instruction to obtain a plurality of identification word combinations, and expanding frame structure fields of the identification word combinations to obtain the instruction structure tree information;
The step of instantiating the instruction structure tree information according to the acquired control parameters, and the step of generating control data comprises the following steps: acquiring control parameters, instantiating the instruction structure tree information according to an instruction list to be framed in the control parameters, framing data blocks by using an inner layer framing and outer layer packaging mode, and generating the control data;
wherein, the instantiating the instruction structure tree information according to the to-be-framed instruction list in the control parameter includes: grouping the instruction code strings in the extended instructions according to the instruction list to be framed in the control parameters to obtain a plurality of instruction groups; determining a basic instruction corresponding to an instruction group of the extended instruction and a link of the basic instruction to an upper node in instruction structure tree information corresponding to the extended instruction so as to complete instantiation of the instruction structure tree information;
wherein, the performing data block framing by using the inner layer frame and the outer layer encapsulation mode, generating the control data includes: traversing each basic instruction in the instantiated instruction structure tree information, and according to a preset framing rule, assembling identification word fields and frame structure fields of each basic instruction in the instantiated instruction structure tree information to obtain a framing data block; traversing each extended instruction in the instantiated instruction structure tree information, and packaging the outer side of each extended instruction in the instantiated instruction structure tree information according to a preset packaging rule and the framing data block to generate the control data.
2. The method of claim 1, wherein the extracting information from the acquired external frame structure file to obtain the identifier mapping information includes:
performing frame structure decomposition and information extraction on the obtained external frame structure file to obtain identification word mapping information; the identification word mapping information is used for mapping identification words and data units.
3. An apparatus for generating uplink control data of a spacecraft, the apparatus comprising:
the frame structure information module is used for extracting information from the acquired external frame structure file to obtain identification word mapping information, and binding the acquired instruction information and the identification word mapping information to obtain frame structure information; the instruction information comprises a basic instruction and an expansion instruction; the identification word mapping information is information of mapping identification words and data units, wherein the identification words are identification of the data units and are used for indexing a frame structure corresponding to the data units, and the identification words of the data structure of the same layer are unique;
the instruction structure tree module is used for establishing a link between the basic instruction and the expansion instruction by utilizing the frame structure information, and performing traversal expansion on the basic instruction and the expansion instruction after the link is established to obtain instruction structure tree information;
The control data generation module is used for instantiating the instruction structure tree information according to the acquired control parameters to generate control data;
the basic instruction is an instruction for realizing the basic control function of the spacecraft and consists of an instruction code number, a basic identification word and an extensible attribute; the expansion instruction is a shell of the basic instruction and is used for packaging the basic instruction, so that the basic instruction is conveniently sent to equipment appointed by the spacecraft in batches, and the equipment comprises an instruction code number, an expansion identification word and a maximum length; the extensible attribute of the basic instruction is used for identifying an extensible instruction list which can be packaged, the shells which can be used by different basic instructions are different, and the instruction list of the extensible attribute is also different;
the instruction structure tree module is further configured to establish a link between the basic instruction and the extended instruction by using the frame structure information, so that a basic identification word of the basic instruction is associated with an extended identification word of the extended instruction; traversing the extended identification words of the extended instruction and the basic identification words of the corresponding basic instruction to obtain a plurality of identification word combinations, and expanding frame structure fields of the identification word combinations to obtain the instruction structure tree information;
The control data generation module is further used for acquiring control parameters, instantiating the instruction structure tree information according to an instruction list to be framed in the control parameters, framing data blocks in a mode of inner layer framing and outer layer packaging, and generating the control data;
the control data generation module is further used for grouping the instruction code strings in the extended instructions according to the instruction list to be framed in the control parameters to obtain a plurality of instruction groups; determining a basic instruction corresponding to an instruction group of the extended instruction and a link of the basic instruction to an upper node in instruction structure tree information corresponding to the extended instruction so as to complete instantiation of the instruction structure tree information;
the control data generation module is further used for traversing each basic instruction in the instantiated instruction structure tree information, and assembling identification word fields and frame structure fields of each basic instruction in the instantiated instruction structure tree information according to a preset framing rule to obtain a framing data block; traversing each extended instruction in the instantiated instruction structure tree information, and packaging the outer side of each extended instruction in the instantiated instruction structure tree information according to a preset packaging rule and the framing data block to generate the control data.
4. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 2 when executing the computer program.
5. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 2.
CN202111032166.8A 2021-09-03 2021-09-03 Spacecraft uplink control data generation method and device Active CN113761045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111032166.8A CN113761045B (en) 2021-09-03 2021-09-03 Spacecraft uplink control data generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111032166.8A CN113761045B (en) 2021-09-03 2021-09-03 Spacecraft uplink control data generation method and device

Publications (2)

Publication Number Publication Date
CN113761045A CN113761045A (en) 2021-12-07
CN113761045B true CN113761045B (en) 2024-03-26

Family

ID=78792897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111032166.8A Active CN113761045B (en) 2021-09-03 2021-09-03 Spacecraft uplink control data generation method and device

Country Status (1)

Country Link
CN (1) CN113761045B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1405353A (en) * 1973-02-13 1975-09-10 Burroughs Corp Process and apparatus for automatic generation of mini-computer instructions for dicrete classes of applications
US4434459A (en) * 1980-04-25 1984-02-28 Data General Corporation Data processing system having instruction responsive apparatus for both a basic and an extended instruction set
CN107341294A (en) * 2017-06-15 2017-11-10 苏州同元软控信息技术有限公司 Spacecraft Information System Modeling emulation mode based on Modelica language
CN109067704A (en) * 2018-06-28 2018-12-21 中国空间技术研究院 A kind of satellite remote command format design and coding management system and method
CN109189379A (en) * 2018-09-04 2019-01-11 百度在线网络技术(北京)有限公司 code generating method and device
KR20190048364A (en) * 2017-10-31 2019-05-09 한국전자통신연구원 Method for modeling network system instructions with yang language and apparatus for the same
CN112462712A (en) * 2020-11-25 2021-03-09 中国人民解放军63920部队 Multi-spacecraft main and auxiliary sequence cooperative control system and method
CN112650198A (en) * 2020-12-21 2021-04-13 中国人民解放军63920部队 Multi-spacecraft injection plan automatic generation and control method and device
CN112994777A (en) * 2021-02-07 2021-06-18 中国人民解放军63920部队 Multi-cabin spacecraft uplink data generation and control system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8094731B2 (en) * 2009-01-21 2012-01-10 The United States Of America As Represented By The Administrator Of The National Aeronautics And Space Administration System and method for transferring telemetry data between a ground station and a control center
CN109550249B (en) * 2018-11-28 2022-04-29 腾讯科技(深圳)有限公司 Target object control method, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1405353A (en) * 1973-02-13 1975-09-10 Burroughs Corp Process and apparatus for automatic generation of mini-computer instructions for dicrete classes of applications
US4434459A (en) * 1980-04-25 1984-02-28 Data General Corporation Data processing system having instruction responsive apparatus for both a basic and an extended instruction set
CN107341294A (en) * 2017-06-15 2017-11-10 苏州同元软控信息技术有限公司 Spacecraft Information System Modeling emulation mode based on Modelica language
KR20190048364A (en) * 2017-10-31 2019-05-09 한국전자통신연구원 Method for modeling network system instructions with yang language and apparatus for the same
CN109067704A (en) * 2018-06-28 2018-12-21 中国空间技术研究院 A kind of satellite remote command format design and coding management system and method
CN109189379A (en) * 2018-09-04 2019-01-11 百度在线网络技术(北京)有限公司 code generating method and device
CN112462712A (en) * 2020-11-25 2021-03-09 中国人民解放军63920部队 Multi-spacecraft main and auxiliary sequence cooperative control system and method
CN112650198A (en) * 2020-12-21 2021-04-13 中国人民解放军63920部队 Multi-spacecraft injection plan automatic generation and control method and device
CN112994777A (en) * 2021-02-07 2021-06-18 中国人民解放军63920部队 Multi-cabin spacecraft uplink data generation and control system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Research on Teleoperation Service Efficient Scheduling Technique of Long-term On-orbit Spacecraft;Fei J 等;《Academic Journal of Computing & Information Science》;第2卷(第3期);全文 *
基于计算树的航天遥测参数仿真;周倜;苗毅;;系统仿真学报(第05期);全文 *
通用MPDU组帧算法设计;苗毅 等;《系统仿真学报》;第27卷(第08期);全文 *

Also Published As

Publication number Publication date
CN113761045A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN101788906B (en) Resource management method and system thereof
CN103995854A (en) Equipment cross-version upgrading method and device
CN111353235B (en) Component port modeling method based on model drive and terminal
CN106529669A (en) Method and apparatus for processing data sequences
CN101213515A (en) Fine-grained control of z-order elements in XML presentation
CN111104124B (en) Pythrch framework-based rapid deployment method of convolutional neural network on FPGA
CN106569783A (en) Task script executing method and apparatus
CN107943945A (en) Isomery operator management method in a kind of big data analysis development platform
CN101146281A (en) A GUI creation model for mobile terminal
US20100192127A1 (en) System and method for a software product manager
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN105138649B (en) Searching method, device and the terminal of data
CN107463422A (en) Code dispositions method and device, electronic equipment
CN112394932A (en) Automatic browser webpage skin changing method and device
CN113761045B (en) Spacecraft uplink control data generation method and device
CN112860264B (en) Method and device for reconstructing abstract syntax tree
CN111610977A (en) Compiling method and related device
CN108595160B (en) Method and storage medium for calling native object by JS
CN107315801B (en) parallel discrete event simulation system initialization data storage method
US8566814B2 (en) Transporting object packets in a nested system landscape
CN103116622B (en) A kind of sequence value generation method for Ibatis scheme and device
CN102866924B (en) Method and device for scheduling content integration engine
CN104572080A (en) Method and device for managing photo taking mode
CN104572097A (en) Photograph data callback method and photograph data callback device
US20180217870A1 (en) System And Method For Multi-Tiered Real Time Processing Using Configurable Platform Instances

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant