Multi-mode uplink data processing method
By introducing transit software, the complex modification of different types of command systems in the ground testing system is solved, and the results of simplifying the process, reducing maintenance costs and improving testing efficiency are achieved.
Patent Information
- Application Number
- CN202410260191.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, ground testing systems need to make corresponding modifications according to different models when sending instructions, resulting in complex processes and high maintenance costs, which affects testing efficiency.
Transfer software is introduced, which can be simply modified according to the model and used in conjunction with the instruction system to achieve data processing requirements for different models.
The modification process of different types of instruction systems has been simplified, the maintenance cost of instruction systems has been reduced, and the testing efficiency has been improved.
Smart Images

Figure CN119449192A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an uplink data processing method, and in particular to a multi-mode uplink data processing method. Background Art
[0002] In ground testing, it is necessary to send instructions to test related functions. Basically, uplink instructions are required in every test link of the satellite, so the purpose of the software system is to ensure that the instructions reach the "destination" accurately. Traditional ground test systems all use C / S architecture (server-client, that is, Client-Server (C / S) structure. The C / S structure usually adopts a two-layer structure. The server is responsible for data management, and the client is responsible for completing the interactive tasks with the user), so when sending instructions, the client forwards them to the server, and then the server performs centralized processing. For our testing, the C / S architecture is very troublesome because a large number of people are involved in our testing or experiments. If time is spent on installing the client, it will undoubtedly delay the progress of the experiment or even the entire model.
[0003] The current test is based on the B / S architecture, which is a software system architecture, referring to the browser-Web server (Broswer-Server), and adopts a three-layer architecture, namely the presentation layer, business logic layer, and data access layer. This selection solves the above-mentioned drawbacks, and only requires that the PC (personal computer) is in the same local area network and can be used with a general browser. Because the ground uplink methods include ground measurement, measurement and control, and data transmission, and there are special protocols between them, and the special protocols have different methods for different models. Summary of the invention
[0004] In order to simplify the process problem that different model instruction systems need to be modified accordingly in the prior art, this application provides a multi-mode uplink data processing method, introducing a transfer software, which can be simply modified corresponding to the model, so that only the transfer software is simply modified and then used in conjunction with the instruction system to meet the needs of different models. The use of the instruction system reduces the maintenance cost of the instruction system in the later stage and improves the test efficiency.
[0005] The technical solution of the present invention is: a multi-mode uplink data processing method, adding transfer software, after receiving the instruction sent by the client, the transfer software performs corresponding processing according to the currently selected channel, and then forwards it to different targets.
[0006] Furthermore, the channels include a ground measurement channel, a measurement and control channel, and a data transmission channel.
[0007] Furthermore, when the selected channel is a ground measurement channel, it is necessary to connect the serial port first; upon receiving the instruction, the ground measurement channel first reads the instruction length, removes invalid data, reorganizes the instruction again, and finally writes it into the serial port.
[0008] Furthermore, for the ground measurement channel, during ground testing, the satellite service front end is the control and display terminal of the ground measurement, and is connected to the ground measurement serial port on the satellite through the RS422 asynchronous serial port to perform uplink and downlink data interaction between the ground and the satellite; the serial port configuration information is: baud rate: 115200; data bit: 8; stop bit: 1; check bit: odd check;
[0009] In the ground measurement channel, the instruction source data is offset by 8 bytes to obtain the 2-byte current instruction length, and the 5-byte protocol length is added to this basis to intercept the valid data corresponding to the instruction source code according to the calculated length; 0x3553, i.e., the remote control identifier, is added to the front of the intercepted instruction, and the current data block is checked and calculated, and finally framed according to the format of Table 1; the data length is: remote control identifier + total length of data packet field;
[0010] Table 1
[0011]
[0012] After the command is reassembled, call the SerialPort.Write() method to write it into the serial port. After writing is completed, the data before and after the command is reassembled are displayed and saved in text format.
[0013] Furthermore, when the selected channel is a measurement and control channel, it is necessary to connect to the measurement and control ground detection first; after the measurement and control channel receives the instruction, it removes invalid data, adds the measurement and control ground detection protocol, and sends the instruction to the measurement and control ground detection through TCP for subsequent processing.
[0014] Furthermore, for the measurement and control channel, the connection with the measurement and control ground inspection adopts the Socket interface and TCP / IP communication protocol;
[0015] Under the measurement and control channel, there are two types of instructions: scrambled and unscrambled instructions. When the uplink channel is selected as remote control on the software interface, its fixed data is judged to distinguish whether it is a scrambled instruction. If it is a scrambled instruction, the instruction length needs to be descrambled, and the effective length bytes of the current instruction are obtained through descrambling, and the current instruction is intercepted and replaced. If it is an unscrambled instruction, skip to the next step; then add the measurement and control ground inspection protocol to the current instruction.
[0016] After the instruction packaging is completed, it is determined whether the current measurement and control channel is connected. If it is connected, the data is directly sent to the measurement and control instruction port; and it is stored after the sending is completed.
[0017] Furthermore, when the selected channel is a digital transmission channel, it is necessary to first connect to the digital transmission ground detection;
[0018] Under the digital transmission channel, there are injection instructions and normal instructions;
[0019] For common commands: the digital transmission channel receives the command, adds appropriate padding frames before and after the command, then adds the digital transmission ground detection protocol, and finally sends it to the digital transmission ground detection command port;
[0020] For injection instructions: the data transmission channel needs to read the given file, frame it, and then forward it.
[0021] Further, for injection instructions: this type of instruction is payload injection data, which needs to be framed;
[0022] The injection instruction types include four types: load 1 injection, load 1 reconstruction, load 2 injection and load 2 reconstruction;
[0023] On the configuration interface of each data injection, if the frame header is checked, it means that the current injected data has been framed and the length is 1024 bytes. In this case, the instruction transfer software will not process its internal data. It only needs to identify the frame header of 0x1ACFFC1D, offset 1024 bytes each time, and cache it in the instruction source data queue;
[0024] Payload 1 injection: Because the length of each data packet of its instruction is inconsistent, it is necessary to read the length in the data packet; after reading, it is stored in the queue of remote control frames to be assembled;
[0025] Payload 1 reconstruction, Payload 2 injection, Payload 2 reconstruction: The length of each data source packet is fixed, Payload 1 reconstruction is 524 bytes, Payload 2 injection is 864 bytes, and Payload 2 reconstruction is 786 bytes. When these three types are selected, first divide the size of the injected file by the length of the currently selected type to determine whether it is an integer multiple. If it is not an integer multiple, the user is prompted whether to continue the operation. After the split is completed, it is stored in the queue to be assembled.
[0026] Finally, the queue to be framed is traversed, and the framing operation is performed according to the format shown in Table 2; after the framing is completed, an appropriate amount of padding frames are added before and after the data block, and finally the data transmission ground detection protocol is added and sent to the data transmission instruction port;
[0027] Table 2
[0028]
[0029] The beneficial effects of the present invention are: providing a multi-mode uplink data processing method, introducing a transfer software, and the transfer software can be simply modified corresponding to the model, so that only the transfer software is simply modified, and then used in conjunction with the instruction system to meet the needs of different models. The instruction system is used in conjunction, which reduces the maintenance cost of the instruction system in the later stage and improves the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a schematic diagram of the upper and lower channels of instructions.
[0031] Figure 2 The flowchart is a method for processing an injection instruction when the type instruction is an injection instruction. DETAILED DESCRIPTION
[0032] The present invention will be further described below in conjunction with the accompanying drawings.
[0033] The multi-mode uplink data processing method adds a transfer software, which receives the instruction sent by the client, performs corresponding processing according to the currently selected channel, and then forwards it to different targets.
[0034] The software is programmed in C#. Figure 1 As shown in the figure, the TCP / IP communication method is used in the measurement and control data transmission mode. The command front end is the client and the transfer software is the server. First, fill in the command on the client, click send and forward it to the command transfer software. The transfer software performs corresponding processing according to the currently selected channel and then forwards it to different targets. The channels include ground measurement, measurement and control, and data transmission. The specific processing methods are shown below.
[0035] Ground measurement: You need to connect to the serial port first. When the ground measurement receives the command, it first reads the command length, removes invalid data, reorganizes it again, and finally writes it into the serial port.
[0036] Measurement and control: Both the current mode and the following data transmission need to be connected to the measurement and control ground detection first. The measurement and control ground detection is the server, with one receiving port and one sending port. After the measurement and control receives the command, it removes invalid data, adds the measurement and control ground detection protocol, and sends the command to the measurement and control ground detection through TCP for subsequent processing.
[0037] Data transmission: receive the command, add appropriate amount of padding frames before and after the command, then add the data transmission ground detection protocol, and finally send it to the data transmission ground detection command port. Another way is to inject data, which requires reading the given file, framing it, and forwarding it after a series of processing.
[0038] The specific design is as follows:
[0039] Preprocessing
[0040] The received command is judged to see if the frame header is 0x1ACFFC1D. The frame header is used to identify whether it is a command type. If it does not meet the frame header, it is treated as invalid data. Then the virtual channel is judged to see if it is a padding frame. The padding frame is also treated as invalid data.
[0041] Geodesy
[0042] Ground measurement is one of the important telemetry and remote control channels during ground testing of satellites. During ground testing, the satellite service front end is the control and display terminal of ground measurement, and is connected to the ground measurement serial port on the satellite through the RS422 asynchronous serial port to exchange data uplink and downlink between the ground and the satellite. The serial port configuration information is: baud rate: 115200; data bit: 8; stop bit: 1; parity bit: odd parity.
[0043] In the ground measurement channel, the instruction source data is offset by 8 bytes to obtain the 2-byte current instruction length, and the 5-byte protocol length is added to this, and the valid data corresponding to the instruction source code according to the calculated length is intercepted. The intercepted instruction is preceded by 0x3553, i.e., the remote control identifier, and the current data block is checked and calculated, and finally framed according to the format in Table 1. The data length is: remote control identifier + total length of data packet field.
[0044] Table 1
[0045]
[0046] After the command is reassembled, call the SerialPort.Write() method (write the data to the serial port output buffer) to write it to the serial port. After writing is completed, the data before and after the command is reassembled is displayed and saved in text format for subsequent inspection.
[0047] Measurement and Control
[0048] The connection with the measurement and control ground inspection uses the Socket interface (the so-called socket is the abstraction of the endpoint for two-way communication between application processes on different hosts in the network), TCP / IP (Transmission Control Protocol / Internet Protocol, Transmission Control Protocol / Internet Protocol refers to a protocol cluster that can realize information transmission between multiple different networks) communication protocol, and the measurement and control ground inspection IP and command port are represented by the IPEndPoint class (the IPEndPoint class contains the host and local or remote port information required for the application to connect to the service on the host. By combining the host IP address and port number of the service, the IPEndPoint class forms a connection point to the service. It is mainly used to represent network endpoints as IP addresses and port numbers). This class represents a network endpoint. Use the Socket's Connect(EndPointremoteEP) method to connect to the command server port (establish a connection with the remote host). The connection method for data transmission is consistent with this.
[0049] Under the measurement and control channel, there are two types of instructions, scrambled and unscrambled. When the uplink channel is selected as remote control on the software interface, its fixed data is judged to identify whether it is a scrambled instruction. If it is a scrambled instruction, the following operations need to be performed. If it is a scrambled instruction, skip the next operation. Scrambled instructions need to descramble the instruction length, obtain the effective length bytes of the current instruction through descrambling, and intercept and replace the current instruction. Then add the measurement and control ground inspection protocol to the current instruction.
[0050] After the instruction is packaged, it is determined whether the current measurement and control channel is connected. If it is connected, it is directly sent () to the measurement and control instruction port (sends the data to the connected socket). After the sending is completed, it is also stored.
[0051] Digital Transmission
[0052] The connection with the digital ground detector uses the Socket interface and TCP / IP communication protocol. The digital ground detector IP and the command port are represented by the IPEndPoint class, which represents a network endpoint. The Socket Connect (EndPointremoteEP) method is used to connect to the command server port.
[0053] Under the digital transmission channel, there are injection instructions and normal instructions.
[0054] 1. General instructions
[0055] After obtaining the current instruction, the length of its instruction source code should be 1024 bytes, and no other processing is done on its source code. In the digital transmission channel, the instruction content can only be obtained when the digital transmission is in a locked state. Therefore, in order to ensure the effectiveness of the digital communication link, a certain number of padding frames need to be added before and after the instruction. Even if the padding frames are lost before and after the lock, it will not affect the transmission of valid instructions. Finally, add the digital transmission protocol to the data with the padding frames added, which is consistent with the above-mentioned measurement and control ground inspection protocol. Finally, determine the current digital transmission connection status. If it is in a normal connection state, send it directly to its instruction port.
[0056] 2. Injection Instructions
[0057] This type of instruction is payload injection data and needs to be framed. There are four types of injection instructions: payload 1 injection, payload 1 reconstruction, payload 2 injection, and payload 2 reconstruction. The first type of data requires special processing, and the processing methods of other instructions are similar. The processing method is as follows: Figure 2 shown.
[0058] On the configuration interface of each data injection, if the frame header is checked, it means that the current injected data has been framed and the length is 1024 bytes. In this case, the instruction transfer software will not process its internal data. It only needs to identify the frame header of 0x1ACFFC1D, offset 1024 bytes each time, and cache it in the instruction source data queue.
[0059] Payload 1 injection: Because the length of each data packet is inconsistent, it is necessary to read the length of the data packet. After reading, it is stored in the queue of remote control frames to be assembled.
[0060] Payload 1 reconstruction, Payload 2 injection, Payload 2 reconstruction: The length of each data source packet is fixed, Payload 1 reconstruction is 524 bytes, Payload 2 injection is 864 bytes, and Payload 2 reconstruction is 786 bytes. When selecting these three types, first divide the size of the injected file by the length of the currently selected type to determine whether it is an integer multiple. If it is not an integer multiple, the user is prompted to continue the operation. After the split is completed, it is stored in the queue to be assembled.
[0061] Finally, the queue to be framed is traversed, and the frame operation is performed according to the format shown in Table 2. After the frame is completed, an appropriate amount of padding frames are added before and after the data block, and finally the data transmission ground detection protocol is added and sent to the data transmission instruction port.
[0062] Table 2
[0063]
[0064] The transfer software can be simply modified according to the model, so that only the transfer software can be simply modified and then used in conjunction with the instruction system to meet the needs of different models. The use of the instruction system reduces the maintenance cost of the instruction system in the later stage and improves the test efficiency.
[0065] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A multi-mode uplink data processing method, characterized in that: Add transfer software, which receives the instructions sent by the client, performs corresponding processing according to the currently selected channel, and then forwards it to different targets.
2. The multi-mode uplink data processing method according to claim 1, characterized in that: The channels include ground measurement channels, measurement and control channels, and data transmission channels.
3. The multi-mode uplink data processing method according to claim 1, characterized in that: When the selected channel is a ground measurement channel, it is necessary to connect the serial port first; upon receiving the instruction, the ground measurement channel first reads the instruction length, removes invalid data, reorganizes the instruction again, and finally writes it into the serial port.
4. The multi-mode uplink data processing method according to claim 3, characterized in that: For the ground measurement channel, during ground testing, the satellite service front end is the control and display terminal of the ground measurement, and is connected to the ground measurement serial port on the satellite through the RS422 asynchronous serial port to perform uplink and downlink data interaction between the ground and the satellite; the serial port configuration information is: baud rate: 115200; data bit: 8; stop bit: 1; Parity bit: odd parity; In the ground measurement channel, the instruction source data is offset by 8 bytes to obtain the 2-byte current instruction length, and the 5-byte protocol length is added to this, and the valid data corresponding to the instruction source code according to the calculated length is intercepted; 0x3553, i.e., the remote control identifier, is added to the front of the intercepted instruction, and the current data block is checked and calculated, and finally framed according to the format in Table 1; The data length is: remote control identification + total length of data packet field; Table 1 After the command is reassembled, call the SerialPort.Write() method to write it into the serial port. After writing is completed, the data before and after the command is reassembled are displayed and saved in text format.
5. The multi-mode uplink data processing method according to claim 1, characterized in that: When the selected channel is a measurement and control channel, it is necessary to connect to the measurement and control ground detection first; after the measurement and control channel receives the instruction, it removes invalid data, adds the measurement and control ground detection protocol, and sends the instruction to the measurement and control ground detection through TCP for subsequent processing.
6. The multi-mode uplink data processing method according to claim 5, characterized in that: For the measurement and control channel, the connection with the measurement and control ground inspection adopts the Socket interface and TCP / IP communication protocol; Under the measurement and control channel, there are two types of instructions: scrambled and unscrambled instructions. When the uplink channel is selected as remote control on the software interface, its fixed data is judged to distinguish whether it is a scrambled instruction. If it is a scrambled instruction, the instruction length needs to be descrambled, and the effective length bytes of the current instruction are obtained through descrambling, and the current instruction is intercepted and replaced. If it is an unscrambled instruction, skip to the next step; then add the measurement and control ground inspection protocol to the current instruction. After the instruction packaging is completed, determine whether the current measurement and control channel is connected. If it is connected, directly send the data to the measurement and control instruction port; And store it after sending is completed.
7. The multi-mode uplink data processing method according to claim 1, characterized in that: When the selected channel is a digital transmission channel, you need to connect the digital transmission ground detection first; Under the digital transmission channel, there are injection instructions and normal instructions; For common commands: the digital transmission channel receives the command, adds appropriate padding frames before and after the command, then adds the digital transmission ground detection protocol, and finally sends it to the digital transmission ground detection command port; For injection instructions: the data transmission channel needs to read the given file, frame it, and then forward it.
8. The multi-mode uplink data processing method according to claim 7, characterized in that: For injection instructions: This type of instruction is payload injection data and needs to be framed; The injection instruction types include four types: load 1 injection, load 1 reconstruction, load 2 injection and load 2 reconstruction; On the configuration interface of each data injection, if the frame header is checked, it means that the current injected data has been framed and the length is 1024 bytes. In this case, the instruction transfer software will not process its internal data. It only needs to identify the frame header of 0x1ACFFC1D, offset 1024 bytes each time, and cache it in the instruction source data queue; Payload 1 injection: Because the length of each data packet of its instruction is inconsistent, it is necessary to read the length in the data packet; after reading, it is stored in the queue of remote control frames to be assembled; Payload 1 reconstruction, Payload 2 injection, Payload 2 reconstruction: The length of each data source packet is fixed, Payload 1 reconstruction is 524 bytes, Payload 2 injection is 864 bytes, and Payload 2 reconstruction is 786 bytes. When these three types are selected, first divide the size of the injected file by the length of the currently selected type to determine whether it is an integer multiple. If it is not an integer multiple, the user is prompted whether to continue the operation. After the split is completed, it is stored in the queue to be assembled. Finally, the queue to be framed is traversed, and the framing operation is performed according to the format shown in Table 2; after the framing is completed, an appropriate amount of padding frames are added before and after the data block, and finally the data transmission ground detection protocol is added and sent to the data transmission instruction port; Table 2