CN114510357B - Satellite transmitting field test authentication service message interaction method and system - Google Patents

Satellite transmitting field test authentication service message interaction method and system Download PDF

Info

Publication number
CN114510357B
CN114510357B CN202111666775.9A CN202111666775A CN114510357B CN 114510357 B CN114510357 B CN 114510357B CN 202111666775 A CN202111666775 A CN 202111666775A CN 114510357 B CN114510357 B CN 114510357B
Authority
CN
China
Prior art keywords
message
data
satellite
control instruction
type
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
CN202111666775.9A
Other languages
Chinese (zh)
Other versions
CN114510357A (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.)
Support Department Of 63790 Unit Of Chinese Pla
Beijing Institute of Spacecraft System Engineering
Original Assignee
Support Department Of 63790 Unit Of Chinese Pla
Beijing Institute of Spacecraft System Engineering
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 Support Department Of 63790 Unit Of Chinese Pla, Beijing Institute of Spacecraft System Engineering filed Critical Support Department Of 63790 Unit Of Chinese Pla
Priority to CN202111666775.9A priority Critical patent/CN114510357B/en
Publication of CN114510357A publication Critical patent/CN114510357A/en
Application granted granted Critical
Publication of CN114510357B publication Critical patent/CN114510357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • 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
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Abstract

The application provides a satellite transmitting field test authentication service message interaction method, wherein a test authentication service system and each satellite development unit data system are distributed with proto files, when the test authentication service system and each satellite development unit data system need to transmit data, different proto files are adopted to convert the data to be transmitted into a set message structure according to the type of the data to be transmitted, the problems of various data formats, low transmission efficiency, large transmission data quantity, no forward and backward compatibility and the like of satellite equipment products of different development units are solved, the data processing efficiency and stability of the satellite transmitting field test authentication system are improved, the accuracy and the high efficiency of conversion are ensured, the data structure can be updated once the requirement is changed, the deployed program is not influenced, the length of the data carried in the data message is reduced, and the serialization and reverse serialization cost of the data is reduced.

Description

Satellite transmitting field test authentication service message interaction method and system
Technical Field
The application belongs to the field of spacecraft test authentication, and particularly relates to a satellite transmitting field test authentication service message interaction method and system.
Background
With the increasing demand and reliance on aerospace equipment by informationized warfare, I' me army is faced with the challenge of transitioning aerospace equipment from "trial" to true "equipment type". In recent years, I'm army has been exploring and trying to test and check strategies and methods that aim to enhance the ability of aerospace equipment to develop.
The method ensures that the 'good use of the satellite' is the original purpose of carrying out satellite launching field test identification during the in-orbit service period of the satellite, but traditional space equipment test identification in China is carried out after the system is launched, wherein the exposed defects are difficult to correct in the in-orbit operation of the space equipment, and meanwhile, the key decision support strength of test data and evaluation results to the mining program is weak, so that the aim of reducing the mining risk is difficult to achieve, and therefore, the method is necessary to carry out the space equipment launching field test identification as the last gateway before the satellite is launched.
The satellite transmitting field test identification work needs to acquire data from each satellite development unit, and the data formats and information interaction flows of different development units are various, so that the difficulty of satellite transmitting field test identification business transmission, acquisition and data analysis is great, and most of systems currently adopt custom application layer protocols or XML, JSON and other standard data formats to realize data analysis and transmission. The following problems exist for this type of protocol parsing in large part:
1) The custom application layer protocol is adopted: the protocol header and message body strategy is generally adopted, wherein the protocol header is a fixed boundary, the message body is a mixed code, each byte is required to be read one by one according to the agreed byte order, so that other code logic in the program is written, and as whether the spliced byte stream protocol is correct or not cannot be intuitively judged, and when the protocol is expanded or modified, both a producer and a consumer of data need to modify the program, and the workload is extremely high.
2) Protocols described using XML/JSON: the XML format has lower analysis efficiency, and XML needs to transmit marks, so that data is greatly increased compared with the custom protocol byte stream data and data in data volume, and when the transmitted data volume is large, the transmission efficiency becomes a great problem. Protocols described using JSON: the data structure is simple and support for complex data structures is limited.
3) Forward and backward compatibility is not high: when the intersystem protocol is upgraded, all relevant parts must be rewritten into the protocol analysis part, and the others cannot analyze the protocol correctly.
Disclosure of Invention
In order to solve the problems, the application provides a satellite transmitting field test authentication service message interaction method and system, which are based on a protobuf data protocol to rapidly unify various data in different formats generated by satellite equipment products of different development units, and improve the data processing efficiency and stability of the satellite transmitting field test authentication system.
A satellite transmitting field test authentication service message interaction method includes that when a test authentication service system and each satellite development unit data system conduct message interaction through a message bus, one party obtaining a message is a message data consumer, and one party sending the message is a message data producer;
the message data producer calls a corresponding proto file according to the data type of the original message data to be transmitted to compile to obtain a message structure corresponding to the current data type, then codes each field of the original message data to be transmitted by using the current obtained message structure to obtain a binary format serialized message, and transmits the serialized message to a message bus;
and the message data consumer acquires the serialized message from the message bus in a subscription mode, calls a corresponding proto file to compile according to the data type of the serialized message to obtain a message structure corresponding to the current data type, analyzes the received serialized message by using the current obtained message structure to obtain data of each field contained in the serialized message, and finally reads the data of each field into the message structure corresponding to the current data type constructed by the universal programming language to form a standardized message object.
Further, different data types correspond to different proto files, wherein the data types include telemetry source codes, telemetry parameter results, remote control instruction information, environment data information and file transfer information.
Further, when the data type is telemetry source code, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, virtual channel vcid, source packet identification pkid and source code data;
when the data type is a telemetry parameter result, the message structure defined by the corresponding proto file is a message length msglen, a message type msgtype, a model code sat, a data flow identification flow, a message count cnt, a generation time and a data content vals, wherein the data content is a repeatable unit, and each unit comprises a parameter code parameter, a parameter type, a source code value raw, an engineering value val and a display content display;
when the data type is remote control instruction information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, instruction source address source, instruction destination address target and instruction content data;
when the data type is environment data information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, temperature temp and humidity humi;
when the data type is file transmission information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time and file full path filepath.
Further, the binary format serialized message is formed by splicing a data header, a data area and a data tail in sequence, wherein the data header comprises a data length field and a data type field, the data area comprises a Protobuf data field obtained by encoding each field of original message data, and the data tail comprises a CRC (cyclic redundancy check) field obtained by performing cyclic redundancy check on the data area.
Further, after the message data consumer obtains the serialized message, multiple judging operations are executed first, and then the serialized message is analyzed, wherein the multiple judging operations are as follows:
judging whether the serialized message is a complete message formed by splicing a data head, a data area and a data tail, if so, judging whether the data length information contained in the data head is consistent with the actual length of the serialized message, if so, judging whether a corresponding proto file exists in the data type contained in the data head, and if so, calling the corresponding proto file to analyze a Protobuf data field in the data area.
Further, if the data system of each satellite development unit is a message data producer, the original message data to be transmitted is the data required for completing the test authentication service;
and if the test authentication service system is a message data producer, the original message data to be transmitted is control instruction data for the satellite.
Further, the general programming language is Java, C++, or Python.
Further, the satellite transmitting field test authentication service message interaction system comprises a satellite data acquisition module, a first authentication message serialization module, a first authentication message deserialization module, a satellite authentication service processing module, a second authentication message serialization module, a second authentication message deserialization module and a satellite instruction sending module;
the satellite data acquisition module is used for acquiring various different types of request messages of a satellite measurement and control site, completing data aggregation tasks and generating json object data;
the first authentication message serialization module is used for calling a corresponding proto file according to the data type of the json object data to compile to obtain a message structure corresponding to the current data type, then using the currently obtained message structure to encode the json object data to obtain a binary format serialization message, and transmitting the serialization message to a message bus;
the second authentication message deserializing module is used for subscribing the serialized message in the message bus, calling the corresponding proto file to compile according to the data type of the serialized message to obtain a message structure corresponding to the current data type, analyzing the received serialized message by using the current obtained message structure, finally reading the analyzed data into the message structure corresponding to the current data type constructed by the universal programming language to obtain reduced json object data, and storing the json object data into the data cache area;
the satellite identification service processing module is used for acquiring the json object data from the data cache area, distributing the request message in the json object data to the corresponding processing function for processing according to the type of the request message to obtain a set task requirement, and finally generating control instruction information for the satellite according to the set task requirement;
the second authentication message serialization module is used for calling a proto file corresponding to the control instruction information to compile so as to obtain a message structure corresponding to the control instruction information, then using the currently obtained message structure to encode the control instruction information so as to obtain control instruction information in a binary format, and transmitting the control instruction information in the binary format to the message bus;
the first authentication message deserialization module is used for subscribing the control instruction information in the message bus, calling the proto file corresponding to the control instruction information to compile the control instruction information to obtain a message structure corresponding to the control instruction information, analyzing the control instruction information by using the currently obtained message structure, and finally reading the data obtained by analysis into the message structure corresponding to the current data type constructed by the universal programming language to obtain the restored control instruction information;
the satellite instruction sending module is used for decoding the first identification message deserializing module to obtain original instruction message data, sending the original instruction message data to the satellite, and controlling the satellite.
The beneficial effects are that:
1. the application provides a satellite transmitting field test authentication service message interaction method, wherein a test authentication service system and each satellite development unit data system are distributed with proto files, when the test authentication service system and each satellite development unit data system need to transmit data, different proto files are adopted to convert the data to be transmitted into a set message structure according to the type of the data to be transmitted, the problems of various data formats, low transmission efficiency, large transmission data quantity, no forward and backward compatibility and the like of satellite equipment products of different development units are solved, the data processing efficiency and stability of the satellite transmitting field test authentication system are improved, the accuracy and the high efficiency of conversion are ensured, the data structure can be updated once the requirement is changed, the deployed program is not influenced, the length of the data carried in the data message is reduced, and the serialization and reverse serialization cost of the data is reduced.
2. The application provides a satellite transmitting field test authentication service message interaction method, which is used for carrying out serialization processing and reverse serialization on test authentication data based on a protobuf data protocol, has good forward and backward compatibility, can upgrade a data structure without damaging a program depending on an old data format, and does not worry about large-scale code reconstruction or program migration caused by change of a message structure.
3. The application provides a satellite transmitting field test authentication service message interaction method, which sets corresponding proto files for telemetry source codes, telemetry parameter results, remote control instruction information, environment data information and file transmission information, and meets the requirement of diversification of data formats of satellite equipment products of different development units.
4. The application provides a satellite transmitting field test identification service message interaction system, wherein the designed satellite transmitting field test identification data acquisition, transmission and analysis interface protocol standard realizes the data compatibility of various identification satellites, solves the problem of cross-system isolation of different development units in the traditional test identification mode, has good data readability and simple operation, reduces the dependence of an upper service system on a terminal communication protocol, and enables the transmitting field to have independent identification test evaluation and rapid test transmitting capability on military satellites.
Drawings
FIG. 1 is a schematic diagram of message interaction provided by the present application;
FIG. 2 is a diagram showing a telemetry source code proto message definition format provided by the present application;
FIG. 3 is a diagram illustrating a telemetry parameter result proto message definition format provided by the present application;
FIG. 4 is a diagram showing a definition format of a remote control command message proto message according to the present application;
FIG. 5 is a diagram showing a definition format of a proto message of environmental data information provided by the present application;
FIG. 6 is a diagram illustrating a file transfer proto message definition format according to the present application;
FIG. 7 is a diagram illustrating a serialized message transport format definition provided by the present application;
FIG. 8 is a schematic block diagram of a satellite transmitting field test authentication service message interaction system provided by the application;
FIG. 9 is a flow chart of a test authentication data process provided by the present application;
FIG. 10 is a flow chart of authentication message serialization provided by the present application;
fig. 11 is a flow chart of the authentication message deserialization provided by the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
Example 1
As shown in FIG. 1, in a satellite transmitting field test authentication service message interaction method, when a test authentication service system and each satellite development unit data system interact with each other through a message bus, one party obtaining a message is a message data consumer, and the party sending the message is a message data producer; that is, if the trial authentication service system needs to acquire information from each satellite development unit data system, the trial authentication service system is a message data consumer, each satellite development unit data system is a message data producer, and if the trial authentication service system needs to send information to each satellite development unit data system, the trial authentication service system is a message data producer, each satellite development unit data system is a message data consumer.
The message data producer calls a corresponding proto file according to the data type of the original message data to be transmitted to compile to obtain a message structure corresponding to the current data type, then encodes each field of the original message data to be transmitted by using the current obtained message structure to obtain a binary format serialized message, and transmits the serialized message to a message bus. If the data system of each satellite development unit is a message data producer, the original message data to be transmitted is the data required by the completion of test authentication service; and if the test authentication service system is a message data producer, the original message data to be transmitted is control instruction data for the satellite.
The message data consumer acquires the serialized message from the message bus in a subscription mode, calls a corresponding proto file to compile according to the data type of the serialized message to obtain a message structure corresponding to the current data type, analyzes the received serialized message by using the current obtained message structure to obtain data of each field contained in the serialized message, and finally reads the data of each field into the message structure corresponding to the current data type constructed by general programming languages such as Java, C++, python and the like to form a standardized message object.
The following takes a test authentication service system and each satellite development unit data system as a message data producer and a message data consumer respectively as an example, and an exemplary method for interaction of a satellite transmitting field test authentication service message according to the present application is illustrated in fig. 9, and the following procedure is as follows:
1) The test authentication service system and the data system of each satellite development unit are provided with a proto file, and the proto file can be compiled to obtain a designated message structure corresponding to the message type; the proto file defines a definition file of ProtoBuf data for fig. 2 to 6, and distributes the definition file to a producer and a consumer of message data, and the process proceeds to step 2.
Further, different data types correspond to different proto files, wherein the data types comprise telemetry source codes, telemetry parameter results, remote control instruction information, environment data information and file transmission information; fig. 2 to 6 respectively define corresponding proto files for telemetry source code, telemetry parameter result, remote control instruction information, environment data information and file transmission information of test authentication, specifically as follows:
fig. 2 provides a satellite transmission field test authentication service telemetry source code structured data file (.proto) including message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, virtual channel vcid, source packet identification pkid, source code data.
FIG. 3 provides a structured data file (. Proto) of satellite transmission field test authentication service telemetry parameters, including message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, time of generation, data content vals (repeated nesting), wherein the data content is a repeatable unit, and each unit includes parameter code parameter, parameter type, source code value raw, engineering value val, and presentation content display.
Fig. 4 provides a satellite transmission field test authentication service remote control instruction information structured data file (.proto) including message length msglen, message type msgtype, model code sat, data stream identification flow, message count cnt, generation time, instruction source address source, instruction destination address target, instruction content data.
Fig. 5 provides a satellite transmission field test authentication service environment data information structured data file (.proco) including message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, temperature temp, humidity humi.
Fig. 6 provides a satellite transmission field test authentication service file transfer information structured data file (.proto) including message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, time of generation, file full path filepath.
2) The satellite development unit data system firstly serves as a producer of message data to obtain original message data required by test authentication service, and according to the data type, the original message data is subjected to serialization processing by using a corresponding message structure, the data structure or the object is converted into a binary data format, and the step 3 is entered.
3) And (3) carrying out network transmission on the serialized message data generated in the step (2) to a message bus, and entering the step (4).
4) The test authentication service system obtains the serialized message from the message bus as a message data consumer through a subscription mode at this time to perform deserialization processing, specifically, calls a corresponding message structure according to the message type to analyze the received message to obtain the meaning of each field of the original message data, and forms one or more standardized message objects according to the telemetry source code, the telemetry parameter result, the remote control instruction information, the environment data information and the file transmission information type to perform test authentication service data processing work, and then the step 5 is entered.
5) If the trial identifies that the service system requires further manipulation of the satellite, step 6 is entered, otherwise step 9 is entered.
6) The test authentication service system is used as a message producer to generate control instruction data for satellites according to the next task requirement, and the message data is subjected to serialization processing by using a corresponding message structure according to the data type, the data structure or the object is converted into a binary data format, the binary data format is pushed to a message bus, and the step 7 is entered;
7) The satellite data system is used as an instruction message data consumer to acquire the instruction message after the serialization processing from the message bus in a subscription mode to perform deserialization processing, specifically, the satellite data system calls a corresponding message structure according to the instruction message type to analyze the received instruction message to obtain the meaning of each field of the original message data, forms a message object according to the remote control instruction information type, performs remote control instruction sending operation, and enters step 8.
8) Step 2 is entered.
9) The flow exits.
Further, the application discloses a dynamic reconfigurable satellite transmitting field test authentication service message interaction method, which designs a general authentication message transmission format based on a structured data file (proto) specified in fig. 2-6 and a Protobuf data field specified in the proto file, and comprises a data head, a data area and a data tail as shown in fig. 7, and specifically comprises the following steps:
the data header comprises a data length and a data type, wherein a data length field occupies 4 bytes, the value is the total byte number contained in the data packet and is used for defining the limit of the data packet, and a receiver can extract the data packet from a received byte stream according to the value of the field and can also verify the data integrity of the data packet; the data type field identifies the message type of the data packet for corresponding processing of the message.
Data area: this is the test identification Protobuf data field, which is the binary data obtained by the sequence of Protobuf, and is the data required for completing the test identification service or the control instruction data to the satellite. The receiver needs to deserialize the data to obtain the original Protobuf data and then process the data.
Data tail: CRC check field: and occupies 4 bytes and contains a CRC check field obtained after cyclic redundancy check is carried out on the data area.
Further, the serialization process according to the present application, as shown in fig. 10, comprises the following specific steps:
1) After the message producer collects the message data, the data type of the message is determined, wherein the data type refers to telemetry source codes, telemetry parameter results, remote control instruction information, environment data information and file transmission information types, and the step 2 is entered.
2) Calling a message structure compiled by the proto file of the type according to the data type, coding each field in the message to generate a binary byte stream, completing the serialization coding of the original data, forming a message data area, and entering step 3.
3) And (4) acquiring the byte number of the Message object after serialization to obtain the Message length, combining the Message type to form a Message data head, and entering step 4.
4) And (5) calculating CRC of the whole message, forming a message data tail, and entering step 5.
5) Splicing the data head, the data area and the data tail, and serializing to form a complete authentication message data structure.
Meanwhile, the reverse serialization process of the present application, as shown in fig. 11, specifically comprises the following steps:
1) Starting to receive the message data, judging whether the data in the receiving buffer area is a piece of complete message data, and if so, entering step 2; if not, go to step 1.
2) Judging whether the length information in the message data head is consistent with the actual length of the message, if so, entering a step 3, if not, indicating that the message is wrong, and after error processing, entering a step 6.
3) And (3) calculating CRC according to the message data head and the message data area, comparing with the CRC in the message data tail, if the CRC is consistent, entering a step (4), if the CRC is inconsistent, indicating that the message is wrong, and after error processing, entering a step (6).
4) Judging whether the message type is one of telemetry source code, telemetry parameter result, remote control instruction information, environment data information and file transmission information, if so, entering step 5, if not, indicating that the message is wrong, and entering step 6 after error processing.
5) According to the message type, a message structure compiled by the proto file of the type is called, binary strings generated in the serialization process are converted into data structures or objects, the data are stored in a buffer memory area, and then the request message is distributed to corresponding processing functions for processing according to the type of the request message. Step 1 is entered.
6) The deserialization process ends.
Therefore, the application provides a dynamic reconfigurable satellite transmitting field test authentication service message interaction method, which uses a protobuf data protocol to carry out serialization and deserialization, thereby ensuring the accuracy and the high efficiency of conversion; once the demand is changed, the data structure can be updated without affecting deployed programs, so that the length of data carried in a data message can be reduced, and the serialization and deserialization cost of the data can be reduced; that is, the present application has good compatibility of forward and backward, and can upgrade the data structure without damaging the program depending on the old data format, and there is no fear of large-scale code reconstruction or program migration due to the change of the message structure.
Example two
Further, if the test authentication service system needs to further control the satellite through the data system of each satellite development unit, the control requirement and other messages need to be processed in a serialization manner and in a reverse serialization manner by using a protobuf data protocol, and then the information is sent to the satellite from the data system of each satellite development unit.
Based on this, as shown in fig. 8, the application provides a dynamic reconfigurable satellite transmission field test authentication service message interaction system, which comprises a satellite data acquisition module, a first authentication message serialization module, a first authentication message deserialization module, a satellite authentication service processing module, a second authentication message serialization module, a second authentication message deserialization module and a satellite instruction sending module; the satellite data acquisition module, the first identification message serialization module, the first identification message deserialization module and the satellite instruction sending module are arranged in a satellite equipment ground measurement and control system, and the second identification message serialization module, the second identification message deserialization module and the satellite identification service processing module are arranged in a satellite equipment test identification system.
The satellite data acquisition module is used for acquiring various different types of request messages of a satellite measurement and control site, completing data aggregation tasks and generating json object data;
the first authentication message serialization module is used for calling a corresponding proto file according to the data type of the json object data to compile to obtain a message structure corresponding to the current data type, then using the currently obtained message structure to encode the json object data to obtain a binary format serialization message, and transmitting the serialization message to a message bus;
the second authentication message deserializing module is used for subscribing the serialized message in the message bus, calling the corresponding proto file to compile according to the data type of the serialized message to obtain a message structure corresponding to the current data type, analyzing the received serialized message by using the current obtained message structure, finally reading the analyzed data into the message structure corresponding to the current data type constructed by the universal programming language to obtain reduced json object data, and storing the json object data into the data cache area;
the satellite identification service processing module is used for acquiring the json object data from the data cache area, distributing the request message in the json object data to the corresponding processing function for processing according to the type of the request message to obtain a set task requirement, and finally generating control instruction information for the satellite according to the set task requirement;
the second authentication message serialization module is used for calling a proto file corresponding to the control instruction information to compile so as to obtain a message structure corresponding to the control instruction information, then using the currently obtained message structure to encode the control instruction information so as to obtain control instruction information in a binary format, and transmitting the control instruction information in the binary format to the message bus;
the first authentication message deserialization module is used for subscribing the control instruction information in the message bus, calling the proto file corresponding to the control instruction information to compile the control instruction information to obtain a message structure corresponding to the control instruction information, analyzing the control instruction information by using the currently obtained message structure, and finally reading the data obtained by analysis into the message structure corresponding to the current data type constructed by the universal programming language to obtain the restored control instruction information;
the satellite instruction sending module is used for decoding the first identification message deserializing module to obtain original instruction message data, sending the original instruction message data to the satellite, and controlling the satellite.
Therefore, the application solves the problem of cross-system isolation of different development units in the traditional test identification mode, and the centralized analysis and encapsulation of the communication data between the acquisition terminal of each satellite development unit and the test identification data center has good data readability and simple operation, reduces the dependence of an upper service system on a terminal communication protocol, and ensures that a transmitting field has independent identification test evaluation and rapid test transmitting capability on military satellites.
Of course, the present application is capable of other various embodiments and its several details are capable of modification and variation in light of the present application by one skilled in the art without departing from the spirit and scope of the application as defined in the appended claims.

Claims (6)

1. A satellite transmitting field test authentication service message interaction method is characterized in that when a test authentication service system and each satellite development unit data system conduct message interaction through a message bus, one party obtaining a message is a message data consumer, and the party sending the message is a message data producer;
after completing data aggregation tasks and generating json object data, calling a corresponding proco file according to the data type of the json object data to compile to obtain a message structure corresponding to the current data type, encoding each field of original message data to be transmitted by using the currently obtained message structure to obtain a serialized message in a binary format, and transmitting the serialized message to a message bus;
the message data consumer acquires the serialized message from the message bus in a subscription mode, calls a corresponding proto file to compile according to the data type of the serialized message to obtain a message structure corresponding to the current data type, analyzes the received serialized message by using the current obtained message structure, reads the data obtained by analysis into the message structure corresponding to the current data type constructed by the universal programming language to obtain reduced json object data, and stores the json object data in a data cache area;
the message data consumer is used for acquiring the json object data from the data cache area, distributing the request message in the json object data to the corresponding processing function for processing according to the type of the request message to obtain a set task requirement, and finally generating control instruction information for the satellite according to the set task requirement;
the message data producer is used for calling a proto file corresponding to the control instruction information to compile the proto file to obtain a message structure corresponding to the control instruction information, then using the currently obtained message structure to encode the control instruction information to obtain control instruction information in a binary format, and transmitting the control instruction information in the binary format to the message bus;
the message data consumer is used for subscribing the control instruction information in the message bus, calling the proto file corresponding to the control instruction information to compile the control instruction information to obtain a message structure corresponding to the control instruction information, analyzing the control instruction information by using the currently obtained message structure, and finally reading the analyzed data into the message structure corresponding to the current data type constructed by the universal programming language to obtain the restored control instruction information;
the message data consumer is used for sending the decoded original instruction message data to the satellite and controlling the satellite;
different data types correspond to different proto files, wherein the data types comprise telemetry source codes, telemetry parameter results, remote control instruction information, environment data information and file transmission information;
when the data type is telemetry source code, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, virtual channel vcid, source packet identification pkid and source code data;
when the data type is a telemetry parameter result, the message structure defined by the corresponding proto file is a message length msglen, a message type msgtype, a model code sat, a data flow identification flow, a message count cnt, a generation time and a data content vals, wherein the data content is a repeatable unit, and each unit comprises a parameter code parameter, a parameter type, a source code value raw, an engineering value val and a display content display;
when the data type is remote control instruction information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, instruction source address source, instruction destination address target and instruction content data;
when the data type is environment data information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, temperature temp and humidity humi;
when the data type is file transmission information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time and file full path filepath.
2. The method for interacting the satellite transmission field test authentication service message according to claim 1, wherein the binary format serialized message is formed by splicing a data header, a data area and a data tail in sequence, wherein the data header comprises a data length field and a data type field, the data area comprises a Protobuf data field obtained by encoding each field of original message data, and the data tail comprises a CRC check field obtained by performing cyclic redundancy check on the data area.
3. The method for interacting with satellite transmission field test authentication service messages according to claim 2, wherein after the message data consumer obtains the serialized message, multiple judgment operations are performed first and then the serialized message is parsed, wherein the multiple judgment operations are as follows:
judging whether the serialized message is a complete message formed by splicing a data head, a data area and a data tail, if so, judging whether the data length information contained in the data head is consistent with the actual length of the serialized message, if so, judging whether a corresponding proto file exists in the data type contained in the data head, and if so, calling the corresponding proto file to analyze a Protobuf data field in the data area.
4. The method for interacting a satellite transmission field test authentication service message as claimed in claim 1, wherein if the data system of each satellite development unit is a message data producer, the original message data to be transmitted is data required for completing the test authentication service;
and if the test authentication service system is a message data producer, the original message data to be transmitted is control instruction data for the satellite.
5. A satellite stadium trial qualification service message interaction method as claimed in claim 1, wherein the general programming language is Java, c++, or Python.
6. The satellite transmitting field test authentication service message interaction system is characterized by comprising a satellite data acquisition module, a first authentication message serialization module, a first authentication message deserialization module, a satellite authentication service processing module, a second authentication message serialization module, a second authentication message deserialization module and a satellite instruction sending module;
the satellite data acquisition module is used for acquiring various different types of request messages of a satellite measurement and control site, completing data aggregation tasks and generating json object data;
the first authentication message serialization module is used for calling a corresponding proto file according to the data type of the json object data to compile to obtain a message structure corresponding to the current data type, then using the currently obtained message structure to encode the json object data to obtain a binary format serialization message, and transmitting the serialization message to a message bus;
the second authentication message deserializing module is used for subscribing the serialized message in the message bus, calling the corresponding proto file to compile according to the data type of the serialized message to obtain a message structure corresponding to the current data type, analyzing the received serialized message by using the current obtained message structure, finally reading the analyzed data into the message structure corresponding to the current data type constructed by the universal programming language to obtain reduced json object data, and storing the json object data into the data cache area;
the satellite identification service processing module is used for acquiring the json object data from the data cache area, distributing the request message in the json object data to the corresponding processing function for processing according to the type of the request message to obtain a set task requirement, and finally generating control instruction information for the satellite according to the set task requirement;
the second authentication message serialization module is used for calling a proto file corresponding to the control instruction information to compile so as to obtain a message structure corresponding to the control instruction information, then using the currently obtained message structure to encode the control instruction information so as to obtain control instruction information in a binary format, and transmitting the control instruction information in the binary format to the message bus;
the first authentication message deserialization module is used for subscribing the control instruction information in the message bus, calling the proto file corresponding to the control instruction information to compile the control instruction information to obtain a message structure corresponding to the control instruction information, analyzing the control instruction information by using the currently obtained message structure, and finally reading the data obtained by analysis into the message structure corresponding to the current data type constructed by the universal programming language to obtain the restored control instruction information;
the satellite instruction sending module is used for decoding the first identification message deserialization module to obtain original instruction message data, sending the original instruction message data to a satellite and controlling the satellite;
different data types correspond to different proto files, wherein the data types comprise telemetry source codes, telemetry parameter results, remote control instruction information, environment data information and file transmission information;
when the data type is telemetry source code, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, virtual channel vcid, source packet identification pkid and source code data;
when the data type is a telemetry parameter result, the message structure defined by the corresponding proto file is a message length msglen, a message type msgtype, a model code sat, a data flow identification flow, a message count cnt, a generation time and a data content vals, wherein the data content is a repeatable unit, and each unit comprises a parameter code parameter, a parameter type, a source code value raw, an engineering value val and a display content display;
when the data type is remote control instruction information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, instruction source address source, instruction destination address target and instruction content data;
when the data type is environment data information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time, temperature temp and humidity humi;
when the data type is file transmission information, the message structure defined by the corresponding proto file is message length msglen, message type msgtype, model code sat, data flow identification flow, message count cnt, generation time and file full path filepath.
CN202111666775.9A 2021-12-31 2021-12-31 Satellite transmitting field test authentication service message interaction method and system Active CN114510357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666775.9A CN114510357B (en) 2021-12-31 2021-12-31 Satellite transmitting field test authentication service message interaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666775.9A CN114510357B (en) 2021-12-31 2021-12-31 Satellite transmitting field test authentication service message interaction method and system

Publications (2)

Publication Number Publication Date
CN114510357A CN114510357A (en) 2022-05-17
CN114510357B true CN114510357B (en) 2023-11-17

Family

ID=81547758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666775.9A Active CN114510357B (en) 2021-12-31 2021-12-31 Satellite transmitting field test authentication service message interaction method and system

Country Status (1)

Country Link
CN (1) CN114510357B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115795210B (en) * 2022-11-03 2023-08-29 北京航天驭星科技有限公司 Data processing method and system for commercial aerospace satellite remote control instruction
CN116578874B (en) * 2023-07-10 2023-11-21 武汉能钠智能装备技术股份有限公司四川省成都市分公司 Satellite signal attribute appraising method and device based on network protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943911A (en) * 2019-12-19 2020-03-31 北京轻元科技有限公司 High-efficiency data transmission method for Internet of things based on protobuf
US10896078B1 (en) * 2019-07-24 2021-01-19 Jpmorgan Chase Bank, N.A. Method and system for implementing a multi-platform framework for shared services
CN113746842A (en) * 2021-09-03 2021-12-03 唯品会(广州)软件有限公司 Message sending method based on Protobuf protocol dynamic analysis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10896078B1 (en) * 2019-07-24 2021-01-19 Jpmorgan Chase Bank, N.A. Method and system for implementing a multi-platform framework for shared services
CN110943911A (en) * 2019-12-19 2020-03-31 北京轻元科技有限公司 High-efficiency data transmission method for Internet of things based on protobuf
CN113746842A (en) * 2021-09-03 2021-12-03 唯品会(广州)软件有限公司 Message sending method based on Protobuf protocol dynamic analysis

Also Published As

Publication number Publication date
CN114510357A (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN114510357B (en) Satellite transmitting field test authentication service message interaction method and system
CN109921843B (en) Beidou short message communication method for satellite remote education system
CN110719296B (en) Method for automatically analyzing message data in terminal communication protocol
CN113821018B (en) Carrier rocket test system
CN106648817B (en) Cross-platform data object transmission method
CN101651683A (en) Method for generating analysis source code of signaling message
CN112306884A (en) Program test control and execution method and corresponding device, equipment and medium
CN106878285B (en) Communication method applied to programming and testing system of anti-fuse device
CN103378994A (en) Method and terminal for testing communication equipment
CN116405091B (en) Method and device for analyzing telemetry data, electronic equipment and storage medium
CN112235316A (en) Data communication method for instrument integration
CN109872411B (en) Multisource asynchronous flight control data processing method based on time sequence unification
CN111625244A (en) 3GPP protocol-based ASN.1-PER dynamic and static encoding and decoding method
CN114845328B (en) Polymorphism NR radio frequency test system, test case generation method and test method
CN111104276A (en) Chip testing system and method
CN113438226B (en) Message generating and analyzing method, device and system based on hybrid transmission protocol
CN107911157B (en) Universal satellite command automation technology data processing system and method
CN104993906A (en) Message transmission method and system
CN114330246A (en) Universal data stream analyzing method and system
CN111464398A (en) Self-organizing centreless network high-level protocol testing method, equipment and storage medium
CN107168720B (en) SPI (Serial peripheral interface) configuration method based on FPGA (field programmable Gate array)
CN114756492A (en) 1553B data bus processing method suitable for multiple carriers
CN117041391A (en) Universal analysis processing method for Ethernet communication message protocol
CN113596035B (en) ROS cross-platform communication method and system
CN117579726A (en) Universal analysis processing system for Ethernet communication message protocol

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