CN109062549B - Method and device for writing satellite channel telemetering decoding program by artificial intelligence - Google Patents
Method and device for writing satellite channel telemetering decoding program by artificial intelligence Download PDFInfo
- Publication number
- CN109062549B CN109062549B CN201810806221.6A CN201810806221A CN109062549B CN 109062549 B CN109062549 B CN 109062549B CN 201810806221 A CN201810806221 A CN 201810806221A CN 109062549 B CN109062549 B CN 109062549B
- Authority
- CN
- China
- Prior art keywords
- channel
- definition
- writing
- telemetering
- telemetry
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radio Relay Systems (AREA)
Abstract
The invention relates to a method and a device for writing a satellite channel telemetering decoding program by artificial intelligence. The method comprises the following steps: formatting description channel telemetry information; establishing a ground decoding program source code writing decision tree; and writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree. The method is based on the digital satellite channel telemetering formatted description, establishes a ground decoding program source code writing decision tree, and automatically generates a source code simulating the process of processing channel telemetering data by a ground measurement and control station. The invention can solve the problem of automatic writing of a satellite channel telemetering ground decoding source program, greatly reduce the simulation development workload of a telemetering subsystem in the spacecraft simulation process and improve the research and development efficiency.
Description
Technical Field
The invention relates to a source code intelligent writing method, in particular to a method and a device for writing a satellite channel telemetering decoding program in an artificial intelligence manner.
Background
The simulation technology is a technology for simulating a real world by using a digital world, and has the advantages of high controllability, no destructiveness, permission of repeated operation, small limitation by practical conditions and the like. The simulation technology can improve the development efficiency and quality of products and shorten the research and development period.
From the middle of the 20 th century, with the development of the aerospace field, the simulation technology provides effective assistance for aerospace. Especially, in recent 20 years, along with rapid development and fusion of technologies such as computers, visualization and the like, the simulation technology is applied in a large scale in the process of developing the aerospace products, plays a role in playing a great role in key links such as design and the like, and becomes a main component of a digital developing mode of the aerospace products.
Measurement and control simulation is an important component of an aerospace digital product, and a ground remote measurement system is an important system for ensuring safe flight of a satellite. The system has the function of recording flight data, and is an important means for collecting and analyzing telemetering data and verifying the on-orbit state of the satellite.
For different satellites, corresponding telemetry subsystems are provided, and for a plurality of satellites, a set of telemetry subsystem needs to be developed independently, so that the workload is large, the period is long, and particularly, a plurality of different programmers participate in the system, so that the error rate is high.
Disclosure of Invention
In view of the above, the present invention has been developed to provide a method and apparatus for an artificial intelligence written satellite channel telemetry decoding program that overcomes, or at least partially solves, the above-mentioned problems.
In a first aspect, an embodiment of the present invention provides a method for writing a satellite channel telemetry decoding program with artificial intelligence, where the method includes: formatting description channel telemetry information; establishing a ground decoding program source code writing decision tree; and writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree.
In one embodiment, the formatted description channel telemetry information comprises:
the channel telemetry information is formatted using a database.
In one embodiment, the database comprises a channel telemetry information definition data table;
the channel telemetry information is described in a format using a database, including:
the channel telemetering information definition data table completes telemetering state quantity definition and channel distribution information definition;
the related data table defined by the telemetering state quantity completes the definition of the state quantity intra-satellite transmission information and the definition of a telemetering coding and decoding mode;
and the related data table defined by the channel allocation information completes the telemetering main channel allocation definition, the channel content definition, the telemetering working condition definition and the state quantity definition.
In one embodiment, the building a ground decoding program source code writing decision tree includes:
performing multi-level decomposition on the source code of the satellite telemetry channel decoding program; establishing a writing decision tree of a source code of a satellite telemetry channel decoding program; and establishing an artificial intelligence programmer for executing the standard writing operation according to the branch condition of the decision tree.
In one embodiment, the terrestrial decoding program source code comprises:
dividing the source code into a universal code and a personalized code according to whether the content of the source code is variable; the universal code comprises a data transceiving simulation source file and a telemetry data decoding function source file; the personalized code comprises a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel distribution working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file.
In one embodiment, writing a satellite channel telemetry decoding program based on the channel telemetry information and the decision tree comprises:
completing writing of the universal code by inserting the fixed code;
the personalization code includes:
completing writing of a telemetry channel definition head file and a telemetry parameter macro definition head file according to the definition of the satellite telemetry subsystem and the definition of the telemetry state quantity;
according to the wave channel distribution information definition and the telemetering working condition definition, analyzing a source file according to the wave channel distribution working condition and judging the writing of the source file according to the wave channel working condition;
and finishing writing the channel working condition decoding source file according to the channel distribution information definition and the state quantity definition.
In a second aspect, an embodiment of the present invention provides an apparatus for writing a satellite channel telemetry decoding program with artificial intelligence, including:
the formatting module is used for formatting the description channel telemetering information;
the establishing module is used for establishing a writing decision tree of the source code of the ground decoding program;
and the writing module is used for writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree.
In one embodiment, the formatting module is specifically configured to format the channel telemetry information using a database.
In one embodiment, the database includes a channel telemetry information definition data table;
the formatting module is specifically used for completing the definition of the telemetering state quantity and the definition of the channel distribution information by the channel telemetering information definition data table; the related data table defined by the telemetering state quantity completes the definition of the state quantity intra-satellite transmission information and the definition of a telemetering coding and decoding mode; and the related data table defined by the channel allocation information completes the telemetering main channel allocation definition, the channel content definition, the telemetering working condition definition and the state quantity definition.
In one embodiment, the establishing module is specifically configured to perform multi-level decomposition on a satellite telemetry channel decoding program source code; establishing a writing decision tree of a source code of a satellite telemetry channel decoding program; and establishing an artificial intelligent programmer for executing standard writing operation according to the branch condition of the decision tree.
In one embodiment, the terrestrial decoding program source code comprises: dividing the source code into a universal code and a personalized code according to whether the content of the source code is variable; the universal code comprises a data transceiving simulation source file and a telemetry data decoding function source file; the personalized code comprises a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel distribution working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file.
In one embodiment, the writing module includes: the universal code writing module is used for completing universal code writing by adopting fixed code insertion;
the personalized code writing module is used for completing the writing of a telemetry channel definition head file and a telemetry parameter macro definition head file according to the definition of the satellite telemetry subsystem and the definition of the telemetry state quantity; the device is used for analyzing the source file according to the wave channel distribution information definition and the telemetering working condition definition and finishing the analysis of the wave channel distribution working condition and the writing of the source file according to the wave channel working condition judgment; and the writing unit is used for finishing writing of the channel working condition decoding source file according to the channel distribution information definition and the state quantity definition.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
the method for writing the satellite channel telemetering decoding program by artificial intelligence provided by the embodiment of the invention comprises the following steps: formatting description channel telemetry information; establishing a ground decoding program source code writing decision tree; and writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree. The method is based on the digital satellite channel telemetering formatted description, establishes a ground decoding program source code writing decision tree, and automatically generates a source code simulating the process of processing channel telemetering data by a ground measurement and control station. The invention can solve the problem of automatic writing of a satellite channel telemetering ground decoding source program, greatly reduce the simulation development workload of the telemetering subsystem in the spacecraft simulation process and improve the research and development efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a method for artificial intelligence writing a satellite channel telemetry decoding program provided by an embodiment of the invention;
FIG. 2 is a block diagram illustrating a database structure provided by an embodiment of the present invention;
fig. 3 is a flowchart of step S103 according to an embodiment of the present invention;
fig. 4 is a flowchart of step S1033 provided by the embodiment of the present invention;
FIG. 5 is a flowchart of step S1034 according to an embodiment of the present invention;
fig. 6 is a block diagram of an apparatus for writing a satellite channel telemetry decoding program with artificial intelligence according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention relates to a satellite channel telemetering decoding program, also called a telemetering subsystem, which is a satellite channel telemetering decoding simulation program developed for each satellite.
The artificial intelligence programmer involved in the method is established as follows: performing multi-level decomposition on a source code of the digital aircraft; establishing a writing decision tree of a digital aircraft source code; establishing an artificial intelligence programmer for executing standard writing operation according to the branch condition of the decision tree;
an artificial intelligence programmer writing source code specification decision and execution method comprises the following steps: (1) clustering the minimum decomposition result, and giving out an applicable object and an applicable condition of the clustered branches;
(2) and after clustering the minimum decomposition result, establishing a decision tree.
The clustering criteria include generality:
clustering application layer codes in the code hierarchy according to the universality, wherein the application layer codes comprise three parts, namely general aircraft, general aircraft of the same type and special aircraft models;
selecting a source code writing execution method according to the application range, the change frequency and the change mode factors, and establishing an intelligent programmer; the writing operation specification execution method comprises saving the writing operation specification execution method into a file, saving the writing operation specification execution method into a database and fixing writing logic in an artificial intelligence programmer.
Referring to fig. 1, a method for writing a satellite channel telemetry decoding program through artificial intelligence according to an embodiment of the present invention includes steps S101 to S103:
s101, formatting description channel telemetering information;
s102, establishing a writing decision tree of a source code of a ground decoding program;
s103, writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree.
Step S101, formatting and describing channel telemetering information, for example, enabling the types and units of stored data to be consistent; or the data storage mode is kept consistent, for example, unified into binary format data (both the octal original code and the hexadecimal original code are converted into binary source code). The channel telemetry information may be stored in a formatted document, such as an eXtensible Markup Language (XML) formatted document or a lightweight data interchange (JavaScript Object Notification) document. The XML document and the JSON document are easy to read and write by people and easy to analyze and generate by machines. The embodiments of the present disclosure do not limit this.
In step S102, a ground decoding program source code writing decision tree is established, that is: the method is mainly characterized in that the source code of the ground decoding program is defined in a standardized manner, common points in the telemetry decoding process of different satellite channels are converted into the standardized definition, and artificial intelligent writing is facilitated.
And step S103, writing a satellite channel telemetering decoding program according to the channel telemetering information described in the formatting of S101 and the decision tree in the step S102.
In the embodiment, the method is based on the source code of the digital satellite channel telemetering ground decoding program of the formatted description, common points in different satellite channel telemetering decoding processes are converted into standardized definitions and data formatted descriptions, and data configuration information is adopted at different points; namely: and automatically writing the source code of the decoding program according to the data record information according to the program definition specification. The method can greatly reduce the simulation development workload of the telemetry subsystem in the spacecraft simulation process, avoid repeated development work of people, reduce the error rate, improve the program development efficiency and further improve the research and development efficiency.
In one embodiment, step S101 includes using a database to format the channel telemetry information. For example, according to the programming language of the written code, databases such as Access, Oracle, DB2, Sybase, MS SQL Server, information x, MySQL, etc. may be selected for use, for example, when the programming language is asp. Any one of the databases can describe the wave channel telemetry information in a formatted manner, that is, the corresponding content can be configured in a manner of updating a data table, for example, 1 day, 10 hours, and 60 minutes, and is uniformly updated into data divided into units: 1440 min, 600 min, 60 min.
Further, the database in the above embodiment includes a channel telemetry information definition data table, and step S101 is specifically implemented, as shown in fig. 2, that the channel telemetry information definition data table 2 completes telemetry state quantity definition 21 and channel allocation information definition 22, and the telemetry state quantity definition 21 completes state quantity intra-satellite transmission information definition 211 and telemetry coding and decoding mode definition 212; channel allocation information definition 22 completes telemetry primary channel allocation definition 221, channel content definition 222, telemetry operating conditions 223, and state quantity definition 224.
Taking the Access database definition as an example, the method comprises a channel telemetering information definition data table, wherein the data table comprises telemetering state quantity definition and channel allocation information definition, and the method respectively has the following characteristics:
(1) telemetry state quantity definition: the related data table of the telemetering state quantity defines the information of the name, the data type, the encoding and decoding modes of the intra-satellite and inter-satellite transmission process and the like of the telemetering state quantity.
(2) The channel allocation information defines: and the relevant data of the channel allocation information carries out formatted description on the channel allocation information from a plurality of levels of telemetering main channels, channel combinations including working conditions, working condition trigger conditions, working condition inclusion state quantities or source packets.
(3) Data table relationships: and the related data table of the telemetering state quantity definition completes the related definitions of the state quantity type, the content and the processing mode. The channel allocation information defines that the configured telemetering state quantities sequentially form a working condition, a source packet, a channel combination and a channel according to the channel allocation requirement.
For example, satellite position vectors Rx, Ry, Rz and satellite attitude vectors θ x, θ y, θ z are downloaded through multiplexed channels.
Firstly, defining the state quantity downloaded from the satellite as follows:
TABLE 1 State quantity definition
The satellite position vector and the attitude vector are downloaded alternately through a wave channel, and the wave channel combination used is defined through a main wave channel distribution table, as shown in a table 2;
TABLE 2 Main channel definition
Serial number | Number of occupied channels | Initial wave channel | Termination channel | Name (R) |
1 | 1 | 1 | 2 | Channel1 |
The channel allocation working condition definition table defines the working conditions contained in the channels, as shown in table 3;
TABLE 3 definition of channel conditions
Channel number | Operating mode ID | Name of operating mode | Working conditions | Content of operating conditions |
1 | 1 | Channel1Case1 | 1 | Physical quantity |
1 | 2 | Channel1Case2 | 2 | Physical quantity |
The working condition definition table defines conditions triggered by the working conditions, as shown in table 4;
TABLE 4 definition of operating conditions
Working condition number | Condition numbering | Number of state quantity | Condition | Logical relationships |
1 | 1 | 3 | 3 is an even number | Is free of |
2 | 2 | 3 | 3 is an odd number | Is free of |
The operating condition containing state table defines the state quantity contained in each operating condition.
TABLE 5 Condition-including status gauge
Working condition number | Number of internal state quantity of working condition | State quantity attributes | Number of state quantity | Dimension of state quantity |
1 | 1 | Single machine state quantity | 1 | 3 |
2 | 1 | Single |
2 | 3 |
Through the combination, the configuration of the telemetry channel for telemetering and downloading the satellite position and attitude information is formatted and described and is used as the input of the subsequent artificial intelligence programmer for automatically writing the source code.
In this embodiment, for different satellites, the telemetry subsystem design has both a similar framework structure and different telemetry information definitions. A source code writing method of a digital satellite channel telemetering ground decoding program based on formatted description converts common points in different satellite channel telemetering decoding processes into standardized definitions and database description, and different points adopt database configuration information. And combining the two to realize the automatic writing of the source code of the decoding program. The method can greatly reduce the workload of the simulation development of the telemetry subsystem, reduce the error rate and improve the research and development efficiency.
A process for writing a satellite channel telemetering decoding program source code by an artificial intelligence programmer relates to an information acquisition module, a writing decision tree building module and an automatic writing module.
The information acquisition module reads the formatted description record of the telemetering channel telemetering information under the current working condition written by the artificial intelligence programmer, and the formatted description record comprises telemetering state quantity definition information and channel distribution definition information.
The intelligent decision module establishes a decision tree for automatic writing of a channel telemetry decoding program. And establishing a source code program set according to the source code of the existing satellite channel telemetry decoding program. The intelligent decision module clusters the source code assembly according to the universality of the codes. The result of the clustering divides the source code into a variable portion and an immutable portion. And further clustering the variable parts and the invariable parts according to functions to obtain functional files. Wherein, the immutable part mainly includes fixed code files such as data receiving and dispatching simulation, data processing, etc., namely: a data transceiving analog source file and a telemetry data decoding function source file; the variable part mainly comprises related files such as telemetry channel definition, parameter definition, channel allocation definition and the like, namely a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel allocation working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file. And establishing an intelligent writing decision tree according to the clustering division result, and determining the writing standard of each file.
And the automatic writing module converts the formatted description recording result of the satellite design result into a satellite channel telemetering ground decoding program source code according to the decision tree result. And in the writing process, a corresponding C language engineering file is created, and the required codes are written into the file, so that automatic writing is realized.
In one embodiment, step S102 establishes a ground decoding program source code writing decision tree, including: performing multi-level decomposition on a satellite telemetry channel decoding program source code; establishing a writing decision tree of a source code of a satellite telemetry channel decoding program; and establishing an artificial intelligence programmer for executing the standard writing operation according to the branch condition of the decision tree.
Further, the bottom decoding program source code is defined in a standardized manner, and can be further implemented as an invariable part and a variable part according to whether the decoding program source code changes with the database configuration information in the generation process. The invariable part mainly comprises fixed code files such as data transceiving simulation, data processing and the like, namely: a data transceiving analog source file and a telemetry data decoding function source file; the variable part mainly comprises related files such as telemetry channel definition, parameter definition, channel allocation definition and the like, namely a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel allocation working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file.
This is illustrated below simply by two examples.
For example, the general code file can be divided into five types of files, namely negotiation registration, communication data transceiving simulation, data reading and writing preprocessing, file reading and writing and processing and a mathematical function library according to function division. The five types of files are respectively stored in five folders of Agent, Data, File, IO and Maths and are stored as fixed C/C + + source files and header files. And adding the data into decoding program engineering in a direct copying mode.
The encoding and decoding mathematical function library file is used as an independent file, and processing functions corresponding to all encoding and decoding modes which can be supported by a decoding program are saved. The coding and decoding method comprises linear compression, remote measurement value and binary original code, binary complement code, binary offset code, eight-system original code, sixteen-system original code conversion, binary and temperature quantity conversion, binary and remote measurement voltage quantity conversion, linear interpolation and table look-up method.
And secondly, for example, the personalized code file can be divided into two parts, namely data transmission definition and wave channel analysis according to the functional division.
Parameters required by the program deployment process are defined in a header file mode, and the file is realized in a fixed template mode. When writing a file, firstly writing a fixed header file and a mode macro definition variable. Variables involved in the data transfer are then defined, such as by char array. The array contains content written according to the contents of the federal configuration related data sheet. And finally, defining the telemetry transmission channel in a macro definition mode.
The channel analysis part is divided into 3 files, and the functions of data packet decoding, channel decoding and working condition decoding are respectively realized. The writing format, the header file, the variable definition and call, the function definition and statement call content are specified in the file.
a. The writing format is standardized: the function defines the line wrapping after the curly brace. Variable declarations are one line empty from the concrete operation statement. The operator is empty before and after the operator. The same level of code alignment, different levels are indented in sequence. The two functions are spaced one grid apart.
b. Header file specification: the header files contained in the file comprise a system header file and a user defined header file, the content of the system header file is fixed, and the system header file and the user defined header file are directly written through code segments.
c. Variable declaration and invocation specification: and the name and the type of the telemetering state quantity are determined according to the name and the type of telemetering basic byte data and telemetering comprehensive byte data in the related data table, and the variable type identifier is added as a variable prefix during naming. The telemetry state quantity is defined as a static variable. The telemetry channel combination is defined as char array, the array length is the number of occupied channels, for example, the array name is defined as "chr + start channel number + end channel number".
d. Function definition and declaration call specification: the method comprises the steps of realizing the process from main channel analysis to channel combination by using an independent function, fixing the input and output of the function, and specifically dividing the specific contents into telemetering channel combination array definition, temporary state quantity definition, channel analysis to channel combination level and calling the next layer of analysis function, wherein the temporary state quantity definition is a fixed code segment, and the rest contents are written according to a telemetering main channel distribution table.
The working condition analytic function is divided into two layers, and the first layer is working condition judgment. For example, the function name is defined as 'Parse + channel combination name', and the function inputs the current receiving frame number and the telemetering channel combination array variable; and defining a temporary variable ucConditontoindex, assigning values to the variables according to the working condition judgment result, and calling a state quantity analysis function according to the variable assignment result. The second layer is a state quantity analysis function, for example, the name of a normalized function is defined as 'ParseChannel + initial channel number + termination channel number + case + working condition sequence number', and the function input frame number ucFrameIndex and the telemetering channel combined array variable. And the function solves the state quantity from the working condition array into the telemetering state quantity variable and calls a corresponding decoding function for decoding. For the state quantity which does not adopt the coding, directly copying the corresponding length content from the working condition array variable into the corresponding state quantity; for the state quantity adopting coding, firstly copying the content with corresponding length from the working condition array variable into a temporary variable, then calling a decoding function to decode the temporary variable represented by binary system into a physical quantity and storing the physical quantity into the corresponding state quantity.
In one embodiment, the source code generation of the ground telemetry decoding program completes analysis of channel download content, including conditional analysis, channel multiplexing determination, and decoding of corresponding telemetry data under multiplexing. And step S103, writing the universal code and the personalized code.
Referring to fig. 3, the main flow includes the following steps:
s1031, copying a fixed code file;
the fixed code copies the corresponding file to the final folder as defined in the specification.
S1032, channel definition file writing;
and completing writing according to the channel definition file writing specification and the related data sheet of the federal configuration.
S1033, writing a channel analysis file; the writing of the channel analysis file comprises writing of a header file, writing of a working condition allocation function statement and writing of a channel analysis function.
S1034, writing a working condition analysis file; the working condition analysis file writing comprises head file writing, state quantity writing, decoding mode related definition writing, a working condition analysis function, a working condition distribution function and a state quantity analysis function.
Wherein: referring to fig. 4, the step S1033 includes 4 sub-steps:
s401, creating a file; files are created by file flow operations.
S402, writing a header file; the header file reference comprises a system header file and a user-defined header file. The header file is written as a fixed code in a file stream manner.
S403, writing a working condition allocation function statement; and traversing the telemetering main channel distribution table, and establishing a working condition distribution function by each channel combination. According to the function definition specification, the statement of the work condition allocation function is written.
S404, writing a working condition distribution function statement; the function uses a fixed template, and the function name and the function input are fixed codes. For example, for multiple conditions, the function uses a fixed if … elseif structure to perform the determination.
For the aforementioned operation modes such as the operation modes 1 and 2 of the data in table 4 and table 5, the judgment condition is the parity of the transmission times. The writing result of the judgment condition is
if(usSendIndex% 2==0)
{ParseChannel1Case1();}
else
{ParseChannel1Case2();}
Traversing the telemetering main channel distribution table, determining a channel combination and a corresponding channel, and writing a telemetering channel combination variable definition code. Temporary variables used in the decoding process are then written in a fixed code fashion. And (5) writing the calling of the working condition analysis function.
And traversing the telemetering main channel distribution table, distributing the main channel content to the corresponding channel combination variable array, and writing the call of the working condition distribution function.
Referring to fig. 5, the step S1034 includes the following steps:
s501, creating a file; files are created by file flow operations.
S502, writing a header file; the header file reference comprises a system header file and a user header file; the header file is written as a fixed code in a file stream manner.
S503, writing the telemetering state quantity; the telemetry state quantity definition is divided into a single state quantity definition and an integrated byte data definition.
In the writing process, a channel content definition table is read firstly, a measurement and control basic byte data ID and a measurement and control comprehensive byte data ID used in the telemetry process are obtained and stored in a list array. And defining the ID of the measurement and control basic byte data contained in the supplementary comprehensive byte data according to the internal bits of the measurement and control comprehensive byte data.
Traversing the list array, extracting the name and the type information of the state quantity in the corresponding data table, and completing the automatic writing of the state quantity definition according to the state quantity definition specification.
And writing serial port packet related variables including a source packet buffer area, the total length of a sending packet and address offset counting for the state quantity adopting a source packet downloading mode.
S504, writing the related definition of the decoding mode; and traversing the counted state quantity, and writing a linear interpolation table for the state quantity adopting a linear interpolation decoding mode.
S505, writing a working condition analytic function; and traversing the working condition definition table and extracting all the working conditions. And establishing a working condition analysis function by adopting a fixed template, and putting a state quantity decoding process required by judging all working conditions into the function.
S506, writing a working condition distribution function; and traversing the telemetering main channel distribution table, and establishing a working condition distribution function by each channel combination. Firstly, writing the statement of the condition function under the wave channel combination and the definition of the temporary variables of the condition state. And then, assigning values to the working condition states according to the working condition conditions, and marking the second working condition belonging to the wave channel combination under the current condition. The working condition is inserted in the form of code segments, and the source file is stored in an independent folder and named by the name of the working condition. For example, a switch … case … statement is used for judging the working condition state, and a corresponding state quantity analysis function is called according to the assignment result.
S507, writing a state quantity analysis function; and traversing the wave channel distribution working condition definition table, and determining the function name according to the corresponding working condition number under each wave channel combination. Temporary variables involved in subsequent data forwarding in the writing decoding process comprise a forwarding character string array and a forwarding packet format (packet header, variable ID and variable type). The traversal working condition comprises state quantities, and decoding of each state quantity is written in sequence. The writing specification is defined in detail in the source code specification of the decoding program. And writing a data forwarding code for each variable, wherein the data forwarding code comprises a group packing code and a data sending function call.
S508, unpacking and writing the source packet; for the case where the condition content is a source packet, an unpacking function is invoked.
The function is a fixed code segment, completes the packet length statistics under different frames, and analyzes the content of the source packet when the total length of the statistics is larger than the total length of the source packet, and the analyzing process is similar to the state quantity analyzing function.
The method for writing the satellite channel telemetering decoding program by artificial intelligence provided by the invention has no strict execution sequence in the related execution steps, and is not limited.
Based on the same inventive concept, the embodiment of the invention also provides a device for writing the satellite channel telemetering decoding program by artificial intelligence, and as the principle of the problem solved by the device is similar to the method for writing the satellite channel telemetering decoding program by artificial intelligence, the implementation of the device can refer to the implementation of the method, and repeated parts are not repeated.
In a second aspect, an embodiment of the present invention provides an apparatus for writing a satellite channel telemetry decoding program with artificial intelligence, as shown in fig. 6, including:
a formatting module 61 for formatting the description channel telemetry information;
the establishing module 62 is used for establishing a writing decision tree of the source code of the ground decoding program;
and a writing module 63, configured to write a satellite channel telemetry decoding program according to the channel telemetry information and the decision tree.
In one embodiment, the formatting module 61 is specifically configured to format the channel telemetry information using a database.
In one embodiment, the database includes a channel telemetry information definition data table;
the formatting module 61 is specifically configured to complete telemetry state quantity definition and channel allocation information definition in the channel telemetry information definition data table; the related data table defined by the telemetering state quantity completes the definition of the state quantity intra-satellite transmission information and the definition of a telemetering coding and decoding mode; and the related data table defined by the channel allocation information completes the telemetering main channel allocation definition, the channel content definition, the telemetering working condition definition and the state quantity definition.
In one embodiment, the establishing module is specifically configured to perform multi-level decomposition on a satellite telemetry channel decoding program source code; establishing a writing decision tree of a source code of a satellite telemetry channel decoding program; and establishing an artificial intelligence programmer for executing the standard writing operation according to the branch condition of the decision tree.
In one embodiment, the terrestrial decoding program source code comprises: dividing the source code into a universal code and a personalized code according to whether the content of the source code is variable; the universal code comprises a data transceiving simulation source file and a telemetry data decoding function source file; the personalized code comprises a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel distribution working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file.
In one embodiment, the writing module 63 includes: a universal code writing module 631 for completing universal code writing by adopting fixed code insertion;
the personalized code writing module 632 is used for completing the writing of the telemetry channel definition header file and the telemetry parameter macro definition header file according to the satellite telemetry subsystem definition and the telemetry state quantity definition; the device is used for analyzing the source file according to the wave channel distribution information definition and the telemetering working condition definition and finishing the analysis of the wave channel distribution working condition and the writing of the source file according to the wave channel working condition judgment; and the writing unit is used for finishing writing of the channel working condition decoding source file according to the channel distribution information definition and the state quantity definition.
As will be appreciated by one skilled in the art, 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, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (4)
1. A method for writing a satellite channel telemetering decoding program through artificial intelligence is characterized by comprising the following steps:
formatting description channel telemetry information;
establishing a ground decoding program source code writing decision tree; according to the existing satellite channel remote
Testing a decoding program source code and establishing a source code program set; clustering a source code program set aiming at the universality of the codes; the clustering result divides the source code into a variable part and an invariable part; further clustering the variable part and the invariable part according to functions to obtain a functional file; establishing an intelligent writing decision tree according to clustering division results, and determining writing specifications of all files;
writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree;
the formatted description channel telemetry information includes: using a database to format and describe the channel telemetering information; the database comprises a channel telemetry information definition data table;
the channel telemetry information is described in a format using a database, including:
using the channel telemetering information definition data table to complete telemetering state quantity definition and channel allocation information definition;
using the relevant data table defined by the telemetering state quantity to complete the state quantity intra-satellite transmission information definition and the telemetering coding and decoding mode definition;
using the relevant data table defined by the channel allocation information to complete the main channel allocation definition, channel content definition, and working condition and state quantity definition of remote measurement;
the terrestrial decoding program source code comprising:
dividing the source code into a universal code and a personalized code according to whether the content of the source code is variable; the universal code comprises a data transceiving simulation source file and a telemetry data decoding function source file; the personalized code comprises a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel distribution working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file;
writing a satellite channel telemetry decoding program according to the channel telemetry information and the decision tree, comprising:
completing writing of the universal code by inserting the fixed code;
the personalization code includes:
completing writing of a telemetering channel definition head file and a telemetering parameter macro definition head file according to the definition of the satellite telemetering subsystem and the definition of the telemetering state quantity;
according to the wave channel distribution information definition and the telemetering working condition definition, analyzing a source file according to the wave channel distribution working condition and judging the writing of the source file according to the wave channel working condition;
and finishing writing the channel working condition decoding source file according to the channel distribution information definition and the state quantity definition.
2. The method of claim 1, wherein the building a ground decoding program source code written decision tree comprises:
performing multi-level decomposition on a satellite telemetry channel decoding program source code; establishing a writing decision tree of a source code of a satellite telemetry channel decoding program; and establishing an artificial intelligence programmer for executing the standard writing operation according to the branch condition of the decision tree.
3. An apparatus for artificial intelligence writing a satellite channel telemetry decoding program, comprising:
the formatting module is used for formatting the description channel telemetering information;
the establishing module is used for establishing a writing decision tree of the source code of the ground decoding program; establishing a source code program set according to the source code of the existing satellite channel telemetering decoding program; clustering a source code program set aiming at the universality of the codes; the clustering result divides the source code into a variable part and an invariable part; further clustering the variable part and the invariable part according to functions to obtain a functional file; establishing an intelligent writing decision tree according to the clustering division result, and determining the writing specification of each file;
the writing module is used for writing a satellite channel telemetering decoding program according to the channel telemetering information and the decision tree; the formatting module is specifically used for describing the formatting of the channel telemetering information by using a database; the database comprises a channel telemetry information definition data table;
the formatting module is specifically configured to use the channel telemetry information definition data table to complete telemetry state quantity definition and channel allocation information definition; using the relevant data table defined by the telemetering state quantity to complete the state quantity intra-satellite transmission information definition and the telemetering coding and decoding mode definition; using the relevant data table defined by the channel allocation information to complete the telemetering main channel allocation definition, the channel content definition, the telemetering working condition definition and the state quantity definition;
the terrestrial decoding program source code comprising: according to whether the content of the source code is available
Dividing the source code into a universal code and a personalized code; the universal code comprises a data transceiving analog source file and a telemetry data decoding function source file; the personalized code comprises a telemetry channel definition head file, a telemetry parameter macro definition head file, a channel distribution working condition analysis source file, a channel working condition judgment source file and a channel working condition decoding source file;
the writing module includes: universal code writing module for inserting fixed codes
Completing writing of the universal codes;
the personalized code writing module is used for completing writing of a telemetry channel definition head file and a telemetry parameter macro definition head file according to the definition of the satellite telemetry subsystem and the definition of the telemetry state quantity; according to the wave channel distribution information definition and the telemetering working condition definition, analyzing a source file according to the wave channel distribution working condition and judging the writing of the source file according to the wave channel working condition; and finishing writing the channel working condition decoding source file according to the channel distribution information definition and the state quantity definition.
4. The apparatus of claim 3, wherein the setup module is specifically configured to perform a multi-level decomposition of a satellite telemetry channel decoding program source code; establishing a writing decision tree of a source code of a satellite telemetry channel decoding program; and establishing an artificial intelligence programmer for executing the standard writing operation according to the branch condition of the decision tree.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810806221.6A CN109062549B (en) | 2018-07-20 | 2018-07-20 | Method and device for writing satellite channel telemetering decoding program by artificial intelligence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810806221.6A CN109062549B (en) | 2018-07-20 | 2018-07-20 | Method and device for writing satellite channel telemetering decoding program by artificial intelligence |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109062549A CN109062549A (en) | 2018-12-21 |
CN109062549B true CN109062549B (en) | 2022-07-01 |
Family
ID=64834999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810806221.6A Active CN109062549B (en) | 2018-07-20 | 2018-07-20 | Method and device for writing satellite channel telemetering decoding program by artificial intelligence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109062549B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542002A (en) * | 2011-12-08 | 2012-07-04 | 北京空间飞行器总体设计部 | Satellite telemetry data treatment system and realization method thereof |
CN106094587A (en) * | 2016-06-23 | 2016-11-09 | 中国空间技术研究院 | A kind of satellite frame telemetry channel determines system and method |
CN106407531A (en) * | 2016-09-05 | 2017-02-15 | 北京空间飞行器总体设计部 | Incremental model-based spacecraft telemetering method |
CN108287958A (en) * | 2018-01-15 | 2018-07-17 | 北京航空航天大学 | Artificial intelligence program person writes the limited decision Method of digital aircraft source code |
CN108287959A (en) * | 2018-01-15 | 2018-07-17 | 北京航空航天大学 | Artificial intelligence program person writes digital aircraft source code specifications decision and executes method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7099753B2 (en) * | 2004-04-27 | 2006-08-29 | The Boeing Company | Automatic generation of telemetry flight software, accompanying specifications, and decode files |
-
2018
- 2018-07-20 CN CN201810806221.6A patent/CN109062549B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542002A (en) * | 2011-12-08 | 2012-07-04 | 北京空间飞行器总体设计部 | Satellite telemetry data treatment system and realization method thereof |
CN106094587A (en) * | 2016-06-23 | 2016-11-09 | 中国空间技术研究院 | A kind of satellite frame telemetry channel determines system and method |
CN106407531A (en) * | 2016-09-05 | 2017-02-15 | 北京空间飞行器总体设计部 | Incremental model-based spacecraft telemetering method |
CN108287958A (en) * | 2018-01-15 | 2018-07-17 | 北京航空航天大学 | Artificial intelligence program person writes the limited decision Method of digital aircraft source code |
CN108287959A (en) * | 2018-01-15 | 2018-07-17 | 北京航空航天大学 | Artificial intelligence program person writes digital aircraft source code specifications decision and executes method |
Non-Patent Citations (1)
Title |
---|
数字卫星源代码生成技术;董云峰等;《2015年小卫星技术交流会论文集》;20160621;第50-53页 * |
Also Published As
Publication number | Publication date |
---|---|
CN109062549A (en) | 2018-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110825362B (en) | Low-code application software development system and method | |
CN109933306B (en) | Self-adaptive hybrid cloud computing framework generation method based on operation type recognition | |
US20210174006A1 (en) | System and method for facilitating complex document drafting and management | |
CN103838672A (en) | Automated testing method and device for all-purpose financial statements | |
Guller | Big data analytics with Spark: A practitioner's guide to using Spark for large scale data analysis | |
CN107967316A (en) | A kind of method of data synchronization, equipment and computer-readable recording medium | |
CN108280023B (en) | Task execution method and device and server | |
CN103246733A (en) | Dynamic form system based on metadata and generation method thereof | |
CN105528418B (en) | A kind of design documentation generation method and device | |
CN109062565B (en) | Artificial intelligence writing method for telemetry source code of digital satellite AOS protocol | |
CN104298496B (en) | data analysis type software development framework system | |
CN104915378A (en) | Rapid statistics task generation system and method suitable for big data | |
US8965746B2 (en) | System and method for validating an electrical network model | |
CN106557470A (en) | data extraction method and device | |
CN108536745A (en) | Tables of data extracting method, terminal, equipment and storage medium based on Shell | |
CN108763323B (en) | Meteorological grid point file application method based on resource set and big data technology | |
US20140095550A1 (en) | Converting source objects to target objects | |
CN106096159B (en) | A kind of implementation method of distributed system behavior simulation analysis system under cloud platform | |
CN109062549B (en) | Method and device for writing satellite channel telemetering decoding program by artificial intelligence | |
CN109086035B (en) | Artificial intelligent writing method for satellite AOS protocol remote control source program | |
CN105335135A (en) | Data processing method and center node | |
US11977473B2 (en) | Providing a pseudo language for manipulating complex variables of an orchestration flow | |
CN109062566B (en) | Artificial intelligent writing method for telemetry source code of digital spacecraft channel | |
CN114036769B (en) | Avionics system physical architecture-oriented function deployment scheme generation method and device | |
CN108958719A (en) | Digital aircraft buffer information handles source code artificial intelligence Writing method |
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 |