CN110515744A - A kind of method of spacecraft software information interaction - Google Patents

A kind of method of spacecraft software information interaction Download PDF

Info

Publication number
CN110515744A
CN110515744A CN201910752944.7A CN201910752944A CN110515744A CN 110515744 A CN110515744 A CN 110515744A CN 201910752944 A CN201910752944 A CN 201910752944A CN 110515744 A CN110515744 A CN 110515744A
Authority
CN
China
Prior art keywords
data
frame
variable
data cell
cell
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.)
Pending
Application number
CN201910752944.7A
Other languages
Chinese (zh)
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.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201910752944.7A priority Critical patent/CN110515744A/en
Publication of CN110515744A publication Critical patent/CN110515744A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Abstract

The embodiment of the invention provides a kind of methods of spacecraft software information interaction, realize the standardization of information exchange during spacecraft software work, it include: the fixed member's variable allocation space for being in memory data cell, according to the relevant variable progress assignment that the source data for needing to encode is in memory, a data cell is obtained;Obtained multiple data cells are packaged at least two data frames, the operation to the data frame packet containing data cell is realized by data frame;Two data frame units are packaged into an I/O data;The information exchange between spacecraft software main program frame and spacecraft software function component is carried using each I/O data.The technical solution provided according to embodiments of the present invention can effectively improve the development efficiency of spacecraft software and the reuse degree of building blocks of function, advantageously reduce spacecraft software overlapping development cost, improve the robustness and extendable ability of spacecraft software.

Description

A kind of method of spacecraft software information interaction
[technical field]
The present invention relates to a kind of methods of spacecraft software information interaction, belong to computer software development field.
[background technique]
With the raising of space technology and the extension of application demand, the demand of in-orbit extension upgrading is carried out to spacecraft software It is more more and more urgent, but do not fully consider the in-orbit extension upgrading of spacecraft software in spacecraft software design procedure at present Demand.In existing spacecraft software design procedure, about spacecraft software information exchange method, usually specific load is using special Fixed information interacting method, disparate modules information interacting method is general, form disunity, and conventional aerospace device software is caused to exist Some problems: the software degree of coupling is higher, flexibility is insufficient, and upgrading iteration is difficult;The functional module of different spacecraft softwares is general Property poor, software quality be difficult to ensure and development cost is excessively high, it is difficult to product development is carried out to software.Since conventional aerospace device is soft Part these problems are unable to satisfy the requirement of in-orbit extension upgrading.
In order to realize the in-orbit extension upgrading of spacecraft software, spacecraft software need to have building blocks of function may be selected, function The features such as component reusable, this requires spacecraft software that must carry using a kind of general, standard information interacting method Information exchange between main program frame and building.The information interacting method that spacecraft software uses is for Large Spacecraft software Later period upgrading and the integrated of software have great importance, and play finger in the software maintenance management aspect in software development and later period Lead the effect of collaboration.By formulating the information interacting method that can be imitated of row, the development efficiency and function structure of spacecraft software are improved The reuse degree of part advantageously reduces spacecraft software overlapping development cost, improves the robustness and extendable of spacecraft software Ability is greatly convenient by bringing to the update upgrade job of spacecraft software.
[summary of the invention]
In view of this, realizing that spacecraft is soft the present invention provides a kind of method of spacecraft software information interaction with auxiliary Upgrading and expansion during part in-orbit service.
The embodiment of the invention provides a kind of methods of spacecraft software information interaction, comprising:
The source data encoded and its corresponding name label will be needed to be packaged into a data cell;
Obtained multiple data cells are packaged at least two data frames, the data frame packet is contained by data frame realization The operation of data cell;
Two data frame units are packaged into an inputoutput data;
It is carried between spacecraft software main program frame and spacecraft software function component using each inputoutput data Information exchange.
In the above method, the data cell composition, comprising:
Memory address variable myValue, data type are character type pointer, occupy 1 byte, for moving in managing internal memory The space that state is opened up;
Name variable myTitle, data type are character type array, 50 bytes are occupied, for storing data cell Self-description information;
Categorical variable myType, data type are character type array, 20 bytes are occupied, for storing the base of data cell Plinth data type information;
Memory size variable mySize, data type are unsigned int, 4 bytes are occupied, for storing data cell Source data committed memory size;
Col width variable myColumn, data type are unsigned int, 4 bytes are occupied, for storing data cell The col width of two-dimentional source data;
Line variable myRow, data type are unsigned int, 4 bytes are occupied, for storing the two dimension of data cell The line number of source data;
Length variable myLength, data type are unsigned int, 4 bytes are occupied, for storing data cell Source data length, col width variable are multiplied to obtain length variable with line variable.
In the above method, name label is characterized in that:
The name label of source data is the unique identification of data cell, and name label is assigned to name variable myTitle, Realize the index by name variable myTitle to data cell.
In the above method, col width variable myColumn and line variable myRow are characterized in that:
By increasing col width variable myColumn and line variable myRow in data cell forms, so that a data Unit can be used to describe two-dimensional array type source data, realize the coding to two-dimensional array type source data.
In the above method, a data cell packing process includes:
Step 1 is in memory fixed member's variable allocation space of data cell;
The name label of source data is assigned to name variable myTitle by step 2;
Step 3 redistributes space duplication source data in memory, and new storage allocation space address is assigned to memory Address variable myValue;
Step 4 carries out assignment according to fixed member's variable that source data is data left unit, obtains a data sheet Member.
In the above method, a data frame, comprising:
Data frame frame head and data frame frame body;
Wherein, data frame frame head, comprising:
For recording total frame length of data frame committed memory size, data type is unsigned int;And for recording The element number for the data cell that data frame packet contains, data type are unsigned int;
Wherein, data frame frame body is the container of multiple data cell compositions, is used for dynamic additions and deletions data cell.
In the above method, an inputoutput data includes:
Input frame, the multiple data for being input to spacecraft software function component for carrying spacecraft software main program frame Unit;
Output frame is exported for carrying spacecraft software function component to multiple data of spacecraft software main program frame Unit.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantages that
In the technical solution of the embodiment of the present invention, a kind of method that spacecraft software information is interactive is devised: in memory For fixed member's variable allocation space of data cell, the source data encoded according to needs is assigned for the relevant variable in memory Value, obtains a data cell (TTLV, Title-Type-Length-Value);Obtained multiple data cells are packaged into At least two data frames realize the operation to the data frame packet containing data cell by data frame;Two data frame units are beaten It is bundled into input and output (IO) data;Spacecraft software main program frame and spacecraft software function are carried using each I/O data Information exchange between component.The real work ring of the spacecraft software information exchange method and spacecraft and spacecraft software Border, working condition combine, and keep the data structure of the input/output information of different function component unified, meeting spacecraft software has The hardware resource of limit improves the stability of spacecraft software operation, realizes software function during the in-orbit service of spacecraft software The demand that can upgrade and expand.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it is therefore apparent that drawings in the following description are only some embodiments of the invention, common for this field For technical staff, under the premise of not paying creative and laborious, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow chart of spacecraft software information exchange method in the embodiment of the present invention;
Fig. 2 is TTLV data cell schematic diagram in the embodiment of the present invention;
Fig. 3 is TTLV frame composition schematic diagram in the embodiment of the present invention;
Fig. 4 is TTLV-IO data composition schematic diagram in the embodiment of the present invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of spacecraft software information exchange method, referring to FIG. 2, it is the embodiment of the present invention The TTLV data cell of the coding protocol of provided spacecraft software information interaction forms schematic diagram:
In memory it is fixed member's variable allocation space of data cell, is in memory according to the source data for needing to encode Relevant variable carry out assignment, obtain a data cell (TTLV, Title-Type-Length-Value).
The communication mechanism of spacecraft software using master data unit of the format as encapsulation of data of TTLV, i.e., data by Four domains are constituted, name variable myTitle, categorical variable myType, length variable myLength and memory address variable myValue.Most start in the coding of each TTLV, first inserts the memory address variable and name variable of the data, memory address Variable is the core of a TTLV data cell, and name variable is the unique identification of TTLV data cell.According to memory Location variant content correspondingly fills other TTLV data cell correlated variables.
On the other hand, in previous coded format, can only to base data type such as int, float, double etc. into Row coding, can only be repeated as many times coding work if encountering the data to be encoded of array type, reduce working efficiency.Therefore, By increasing col width variable myColumn and line variable myRow, a TTLV data cell is allowed to be used to describe two dimension Array type source data realizes the coding to two-dimensional array type source data, ensure that compatible to the maximum of transmission source data Property.
Obtained multiple data cells are packaged at least two data frames, the data frame packet is contained by data frame realization The operation of data cell.A large amount of information exchange in spacecraft software is completed, needs to solve that multiple data transmit asks Topic.Datagram is by the basic unit of the data of network transmission, includes header (header) and data itself, wherein header is retouched The destination for having stated data and the relationship between other data.Based on this, proposed adoption TTLV frame is as multiple TTLV data The message format that unit transmits.One TTLV frame is made of the two parts such as frame head and frame body, and wherein frame head includes that record should Total frame length of TTLV frame committed memory size and the element number for recording the TTLV data frame packet quantity of data cell containing TTLV, frame Body is then the chained list of multiple TTLV data cell compositions, is used for dynamic additions and deletions data cell, composition schematic diagram is as shown in Figure 3.
In primary information interactive process, after multiple data of this transmission being packaged into TTLV frame, it is sent to and connects Receive node.In TTLV frame packing process, it should be packaged frame body first, each TTLV data are inserted in the form of chained list.It is finally pair Frame head is packaged, the information such as filling frame length.So far, a TTLV frame terminates in the packing process of transmitting terminal, and TTLV frame is being sent out After being sent to receiving end, initial data can be obtained according still further to fixed resolving.Using this communication mechanism, may be implemented to navigate All information exchanges in its device software.
Two data frame units are packaged into an I/O data, carry spacecraft software main program frame using each I/O data Information exchange between spacecraft software function component.In spacecraft software practical work process, main program frame and function Information exchange between energy component is related to the input of information and the output of information, can carry main programs using two TTLV frames Information exchange between frame and building blocks of function.One TTLV-IO data is made of two TTLV frames, is input frame respectively and defeated Frame out, as shown in Figure 4.The TTLV data cell that building blocks of function includes from input frame obtains main program frame and is input to building blocks of function Information, TTLV data cell that main program frame includes from output frame obtains building blocks of function and exports to the letter of main program frame Breath, to realize the information exchange between main program frame and building blocks of function.
The technical solution of the embodiment of the present invention has the advantages that
In the technical solution of the embodiment of the present invention, the method for devising a set of spacecraft software information interaction, according to information Exchange method is packaged packing to the information in spacecraft software, obtains the TTLV data cell of TTLV format, will be multiple TTLV data cell is packaged into a TTLV frame, and two TTLV frames are packaged into a TTLV-IO data, with spacecraft and boat Actual working environment, the working condition of its device software combine, and meet the limited hardware resource of spacecraft software, improve spacecraft The development efficiency of software and the reuse degree of building blocks of function advantageously reduce spacecraft software overlapping development cost, improve spacecraft The robustness and extendable ability of software;The method of spacecraft software information interaction can further apply other information interaction In research field.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
The content that description in the present invention is not described in detail belongs to the well-known technique of those skilled in the art.

Claims (7)

1. a kind of method of spacecraft software information interaction, which is characterized in that the described method includes:
The source data encoded and its corresponding name label will be needed to be packaged into a data cell;
Obtained multiple data cells are packaged at least two data frames, is realized by data frame and data is contained to the data frame packet The operation of unit;
Two data frame units are packaged into an inputoutput data;
The information between spacecraft software main program frame and spacecraft software function component is carried using each inputoutput data Interaction.
2. information interacting method according to claim 1, which is characterized in that the data cell composition, comprising:
Memory address variable myValue, data type are character type pointer, 1 byte are occupied, for dynamically opening in managing internal memory The space warded off;
Name variable myTitle, data type are character type array, 50 bytes are occupied, for storing retouching certainly for data cell State information;
Categorical variable myType, data type are character type array, 20 bytes are occupied, for storing the basic number of data cell According to type information;
Memory size variable mySize, data type are unsigned int, 4 bytes are occupied, for storing the source of data cell Data committed memory size;
Col width variable myColumn, data type are unsigned int, 4 bytes are occupied, for storing the two dimension of data cell The col width of source data;
Line variable myRow, data type are unsigned int, occupy 4 bytes, for storing the two dimensional source number of data cell According to line number;
Length variable myLength, data type are unsigned int, occupy 4 bytes, for storing the source number of data cell According to length, col width variable is multiplied to obtain length variable with line variable.
3. information interacting method according to claim 1, it is characterised in that:
The name label of source data is the unique identification of data cell, and name label is assigned to name variable myTitle, is realized By name variable myTitle to the index of data cell.
4. information interacting method according to claim 1, it is characterised in that:
By increasing col width variable myColumn and line variable myRow in data cell forms, so that a data cell It can be used to describe two-dimensional array type source data, realize the coding to two-dimensional array type source data.
5. information interacting method according to claim 1, which is characterized in that a data cell packing process includes:
Step 1 is in memory fixed member's variable allocation space of data cell;
The name label of source data is assigned to name variable myTitle by step 2;
Step 3 redistributes space duplication source data in memory, and new storage allocation space address is assigned to memory address Variable myValue;
Step 4 carries out assignment according to fixed member's variable that source data is data left unit, obtains a data cell.
6. information interacting method according to claim 1, which is characterized in that a data frame includes:
Data frame frame head and data frame frame body;
Wherein, data frame frame head, comprising:
For recording total frame length of data frame committed memory size, data type is unsigned int;And for recording data The element number for the data cell that frame includes, data type are unsigned int;
Wherein, data frame frame body is the container of multiple data cell compositions, is used for dynamic additions and deletions data cell.
7. information interacting method according to claim 1, which is characterized in that an inputoutput data includes:
Input frame, the multiple data sheets for being input to spacecraft software function component for carrying spacecraft software main program frame Member;
Output frame is exported for carrying spacecraft software function component to multiple data sheets of spacecraft software main program frame Member.
CN201910752944.7A 2019-08-14 2019-08-14 A kind of method of spacecraft software information interaction Pending CN110515744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910752944.7A CN110515744A (en) 2019-08-14 2019-08-14 A kind of method of spacecraft software information interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910752944.7A CN110515744A (en) 2019-08-14 2019-08-14 A kind of method of spacecraft software information interaction

Publications (1)

Publication Number Publication Date
CN110515744A true CN110515744A (en) 2019-11-29

Family

ID=68625281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910752944.7A Pending CN110515744A (en) 2019-08-14 2019-08-14 A kind of method of spacecraft software information interaction

Country Status (1)

Country Link
CN (1) CN110515744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653663A (en) * 2020-10-20 2021-04-13 同方电子科技有限公司 Information exchange protocol method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932050A (en) * 2012-11-07 2013-02-13 北京邮电大学 Separation modular satellite system and method based on medium earth obit (MEO) data relay
CN103034499A (en) * 2012-12-13 2013-04-10 中国航空无线电电子研究所 General data format conversion method and system for network data transmission of airborne equipment
CN106844855A (en) * 2016-12-20 2017-06-13 北京航天测控技术有限公司 A kind of conventional data interaction models build, based on the model based coding and coding/decoding method
CN107147657A (en) * 2017-05-31 2017-09-08 飞智控(天津)科技有限公司 Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus
CN107395264A (en) * 2017-07-19 2017-11-24 上海航天测控通信研究所 A kind of communicator and method based on IP+over+CCSDS+AOS standards

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932050A (en) * 2012-11-07 2013-02-13 北京邮电大学 Separation modular satellite system and method based on medium earth obit (MEO) data relay
CN103034499A (en) * 2012-12-13 2013-04-10 中国航空无线电电子研究所 General data format conversion method and system for network data transmission of airborne equipment
CN106844855A (en) * 2016-12-20 2017-06-13 北京航天测控技术有限公司 A kind of conventional data interaction models build, based on the model based coding and coding/decoding method
CN107147657A (en) * 2017-05-31 2017-09-08 飞智控(天津)科技有限公司 Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus
CN107395264A (en) * 2017-07-19 2017-11-24 上海航天测控通信研究所 A kind of communicator and method based on IP+over+CCSDS+AOS standards

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653663A (en) * 2020-10-20 2021-04-13 同方电子科技有限公司 Information exchange protocol method

Similar Documents

Publication Publication Date Title
CN101304373B (en) Method and system for implementing high-efficiency transmission chunk data in LAN
CN105472044B (en) A kind of DL/T645 based on XML and GOOSE mapping method
CN101937406A (en) Method and system for driving 1394 devices in VxWorks operating system
CN103037032A (en) Method using field programmable gate array (FPGA) to achieve 32-bit-addressing of SV data
CN113094355A (en) Model instantiation method, device, equipment and medium based on domestic communication protocol
CN106569789B (en) Task submission method and device
CN108667817A (en) Message converting system and message forwarding method
CN110515744A (en) A kind of method of spacecraft software information interaction
CN110166485B (en) Protocol scheduling and using method and device
CN103222286A (en) Route switching device, network switching system and route switching method
CN101320453B (en) Electronic official document circulation automatization method based on Web service
CN100531123C (en) Method and device for converting data-packet-mode into element-frame-mode
CN106657377B (en) A kind of WIA-PA/ interconnects manufacture network information service adapter and implementation method entirely
CN106713462A (en) Network data packet processing method and device
CN108377431B (en) Network resource checking method of GPON and test system thereof
CN101471955A (en) Method for writing equipment data in dual-controller network storage circumstance
CN105117353A (en) FPGA with general data interaction module and information processing system using same
CN112698950B (en) Memory optimization method for industrial Internet of things edge equipment
CN101261580B (en) System and method for processing data
CN111046021B (en) Internet of things type distribution transformer terminal application development platform
CN102571412A (en) Target machine server of embedded distributed system
CN103118023B (en) A kind of method and system of the data of transmission specification in a network
CN101505543A (en) Method and system for parallel processing AT command
CN112003767A (en) Method for sending simulation message
CN114448495B (en) Equipment batch adding method and device based on TDMA satellite network management

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191129