Method, System, Storage Medium and Electronic Device for Batch Generation of Satellite Commands
By generating batch instructions for satellites, the problem of lack of integration and batch processing of test instructions in the existing technology is solved, efficient instruction generation and version control are achieved, and comprehensive satellite testing capabilities are improved.
Patent Information
- Application Number
- CN202310035147.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-10
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2043-01-10
AI Technical Summary
The existing technology lacks instruction generation methods that integrate different testing stages during satellite development, resulting in the lack of inheritance and traceability of the flow of test instructions, and the batch processing of remote control information in the entire stage of satellite development is impossible, resulting in low processing efficiency.
By traversing the satellite's basic instruction list, multiple four-byte basic instruction codes are obtained, and fixed characters of each basic instruction code are determined according to the interface protocol, splicing and verification are performed to generate valid test instructions. At the same time, for remote control commands, a remote control command list and remote control frame full-frame command are generated.
It realizes batch generation of satellite instructions, improves instruction generation efficiency, solves the problem of instruction version control, and expands the scope of satellite comprehensive testers, and improves testing capabilities.
Smart Images

Figure CN116155350B_ABST
Abstract
Description
BACKGROUND OF THE INVENTION
[0002] From the single-unit acceptance and delivery to the overall satellite assembly in the satellite factory, the overall satellite factory acceptance test, and then to the launch, various ground tests need to be experienced. The main test stages involved in the satellite development process generally include single-unit acceptance tests, overall satellite stage tests, environmental experiment stage tests, satellite ground station TT&C docking tests, launch site tests, etc. In order to complete the test work at each stage, test instructions suitable for different stages need to be sent. During the single-unit acceptance and delivery, CAN instructions need to be sent to the lower computer by simulating the satellite service through the bus monitoring software. During the overall satellite stage, remote control instructions need to be sent to the satellite by simulating the ground TT&C station. During the docking experiment stage between the satellite and the satellite ground TT&C station, complete remote control frame full-frame instructions need to be sent. The basic format of the satellite instructions is fixed characters plus valid data codes plus checksums as specified by the protocol. For CAN instructions, its basic format is the arbitration field, the control field plus the valid data field. The arbitration field and the control field are 4-byte fixed characters. The valid data field contains 1 byte of data packet identification, four bytes of valid instructions, and 1 byte of checksum SUM. SUM is the cumulative sum of the data packet and the valid bytes; for remote control instructions, its format is basically the leading header plus the data field plus the error control field. The leading header includes information such as the satellite version number and the spacecraft identification frame length. This part is fixed characters; the data field is the actual valid instruction code, and the length is generally fixed. If the valid characters are not enough for the fixed length, characters need to be filled; the error control field is the exclusive OR sum checksum; the remote control frame has a higher-level protocol encapsulation on top of the remote control instruction. The remote control frame format is generally the satellite synchronization word, the mode word, the remote control injection data, and the CRC checksum;
[0003] As the management center of the satellite mission, the on-board computer needs to communicate with each lower computer through the CAN bus; the TT&C ground station and the satellite perform information interaction tasks such as telemetry, remote control, and data transmission according to the specified interface protocol; it can be seen that from the single unit to the subsystem and then to the overall satellite, different-level tests need to generate test instructions according to different communication interface protocols to complete the corresponding test tasks. Regardless of the test instructions at which stage, the valid data of these instructions are 4-byte code instructions, also known as basic instructions. This basic instruction code is provided by the single-unit developer and is a command that allows external devices to perform relevant operations on this single unit, and it is the content that will cause the single unit to generate an actual response. Different formats of test instructions are each encapsulated on the basis of the basic instruction.
[0004] Currently, the test instructions have the following problems:
[0005] 1) The generation of the current instruction does not consider integrating each test stage. For example, the single-machine acceptance test belongs to the scope of work of the subsystem designers, the overall satellite test belongs to the scope of work of the overall designers, and the ground TT&C docking also belongs to the scope of work of the overall designers. In the previous working methods, each stage was independent of each other, the transfer of test instructions had no inheritance and was not traceable, and the frequent changes in the technical status during the development brought great challenges to the management of the final test instruction version.
[0006] 2) The current test instruction generation method does not achieve batch processing of test instructions for the entire satellite development stage. Specifically:
[0007] The existing tools can meet the generation of single test instructions without batch processing. Even if batch processing is carried out, it is only for the remote control instructions in the overall satellite test stage, and the test instructions in the single-machine acceptance stage and the full-frame instructions of the remote control frames required for docking with the satellite TT&C ground station are not considered. That is, a batch processing method for the remote control information in the entire satellite development stage cannot be realized, which severely restricts the current remote control information processing efficiency. Summary of the Invention
[0008] The technical problem to be solved by the present invention is to provide a method, system, storage medium and electronic device for batch generating instructions of a satellite in view of the deficiencies of the prior art.
[0009] The technical solution of a method for batch generating instructions of a satellite according to the present invention is as follows:
[0010] Traverse the basic instruction list corresponding to the satellite to obtain multiple four-byte basic instruction codes;
[0011] Based on the corresponding interface protocol, determine the fixed characters of each four-byte basic instruction code respectively;
[0012] Concatenate any four-byte basic instruction code with the fixed characters corresponding to the four-byte basic instruction code to obtain the instruction valid data corresponding to the four-byte basic instruction code, and perform exclusive OR and check on the instruction valid data corresponding to the four-byte basic instruction code based on the corresponding interface protocol to generate a two-byte check code corresponding to the four-byte basic instruction code. Concatenate the four-byte basic instruction code with the check code corresponding to the four-byte basic instruction code to obtain the valid test instruction corresponding to the four-byte basic instruction code until the valid test instructions corresponding to each four-byte basic instruction code are obtained.
[0013] The beneficial effects of a method for batch generating instructions of a satellite according to the present invention are as follows:
[0014] It can batch generate valid test instructions, greatly improving the instruction generation efficiency and also solving the problem of instruction version control caused by frequent changes in the technical status.
[0015] Based on the above solution, an instruction batch generation method for a satellite of the present invention can be further improved as follows.
[0016] Furthermore, it further includes:
[0017] Generate a list of remote control instructions according to the valid test instructions for the remote control instructions, and generate the full-frame instructions of the remote control frame corresponding to each remote control instruction in the list of remote control instructions.
[0018] Furthermore, the generation of the full-frame instructions of the remote control frame corresponding to each remote control instruction in the list of remote control instructions includes:
[0019] Traverse the list of remote control instructions, obtain the remote control instruction codes of each remote control instruction, and obtain the fixed characters of the full-frame of the remote control frame corresponding to each remote control instruction;
[0020] Traverse the list of remote control instructions, obtain the remote control instruction codes of each remote control instruction, and obtain the fixed characters of the full-frame of the remote control frame corresponding to each remote control instruction;
[0021] Concatenate the remote control instruction code of any remote control instruction and the fixed characters of the full-frame of the remote control frame corresponding to the remote control instruction to obtain the valid data of the full-frame instruction of the remote control frame corresponding to the remote control instruction. Perform CRC16 check on the valid data of the full-frame instruction of the remote control frame corresponding to the remote control instruction to generate a two-byte check code corresponding to the remote control instruction. Concatenate the fixed characters of the full-frame of the remote control frame corresponding to the remote control instruction, the remote control instruction code, the check code, and the padding word to obtain the full-frame instruction of the remote control frame corresponding to the remote control instruction, until the full-frame instructions of the remote control frames corresponding to each remote control instruction are obtained.
[0022] Valid data of the full-frame instruction of the remote control frame Valid data of the full-frame instruction of the remote control frame
[0023] Furthermore, the transmission protocol is CAN protocol or remote control protocol.
[0024] The technical solution of an instruction batch generation system for a satellite of the present invention is as follows:
[0025] It includes a traversal acquisition module, a fixed character determination module, and a valid test instruction generation module;
[0026] The traversal acquisition module is used for: traversing the basic instruction list corresponding to the satellite, and obtaining a plurality of four-byte basic instruction codes;
[0027] The fixed character determination module is used for: respectively determining the fixed characters of each four-byte basic instruction code based on the transmission protocol corresponding to each four-byte basic instruction code;
[0028] The effective test instruction generation module is used to: splice any four-byte basic instruction code with the fixed character corresponding to the four-byte basic instruction code to obtain the instruction effective data corresponding to the four-byte basic instruction code, and perform exclusive OR and checksum on the instruction effective data corresponding to the four-byte basic instruction code based on the corresponding interface protocol to generate a two-byte checksum corresponding to the four-byte basic instruction code, and splice the four-byte basic instruction code with the checksum corresponding to the four-byte basic instruction code to obtain the effective test instruction corresponding to the four-byte basic instruction code until the effective test instruction corresponding to each four-byte basic instruction code is obtained.
[0029] The beneficial effects of an instruction batch generation system for a satellite according to the present invention are as follows:
[0030] It can batch generate effective test instructions, greatly improving the efficiency of instruction generation and also solving the problem of instruction version control caused by frequent changes in the technical state.
[0031] On the basis of the above solution, an instruction batch generation system for a satellite according to the present invention can also be improved as follows.
[0032] Further, it further includes a list generation module and a remote control frame generation module;
[0033] The list generation module is used to: generate a remote control instruction list according to the effective test instructions for remote control instructions;
[0034] The remote control frame generation module is used to: generate a full remote control frame instruction corresponding to each remote control instruction in the remote control instruction list.
[0035] Further, the remote control frame generation module is specifically used to:
[0036] Traverse the remote control instruction list to obtain the remote control instruction code of each remote control instruction, and obtain the full fixed character of the remote control frame corresponding to each remote control instruction; for the remote control instruction code of any remote control instruction
[0037] and the full fixed character of the remote control frame corresponding to the remote control instruction are spliced to obtain the 5 effective data of the full remote control frame instruction corresponding to the remote control instruction, perform CRC16 checksum on the effective data of the full remote control frame instruction corresponding to the remote control instruction to generate a two-byte checksum corresponding to the remote control instruction, and splice the full fixed character of the remote control frame corresponding to the remote control instruction, the remote control instruction code, the checksum and the padding word to obtain the full remote control frame instruction corresponding to the remote control instruction until the full remote control frame instruction corresponding to each remote control instruction is obtained.
[0038] 0 Effective data of the full remote control frame instruction Effective data of the full remote control frame instruction Further, the transmission protocol is a CAN protocol or a remote control protocol.
[0039] A storage medium of the present invention stores instructions, and when a computer reads the instructions, the computer executes the method for batch generating instructions of a satellite as described in any one of the above.
[0040] An electronic device of the present invention includes a processor and the above storage medium, and the processor executes the instructions in the storage medium. Description of the Drawings
[0041] Figure 1 It is a schematic flowchart of a method for batch generating instructions of a satellite according to an embodiment of the present invention;
[0042] Figure 2 It is a schematic structural diagram of a system for batch generating instructions of a satellite according to an embodiment of the present invention. Detailed Embodiments
[0043] As Figure 1 shown, a method for batch generating instructions of a satellite according to an embodiment of the present invention includes the following steps:
[0044] S1. Traverse the four-byte basic instruction list corresponding to the satellite to obtain a plurality of basic instruction codes;
[0045] S2. Based on the corresponding interface protocol, respectively determine the fixed characters of each four-byte basic instruction code, where the transmission protocol is the CAN protocol or the remote control protocol.
[0046] S3. Concatenate any four-byte basic instruction code and the fixed characters corresponding to the four-byte basic instruction code to obtain the instruction valid data corresponding to the four-byte basic instruction code, and perform exclusive OR and check on the instruction valid data corresponding to the four-byte basic instruction code based on the transmission protocol corresponding to the four-byte basic instruction code to generate a two-byte check code corresponding to the four-byte basic instruction code. Concatenate the four-byte basic instruction code and the check code corresponding to the four-byte basic instruction code to obtain the valid test instruction corresponding to the four-byte basic instruction code until the valid test instruction corresponding to each four-byte basic instruction code is obtained.
[0047] The present invention can batch generate valid test instructions, greatly improving the efficiency of instruction generation and also solving the problem of instruction version control caused by frequent changes in the technical state.
[0048] Optionally, in the above technical solution, it further includes:
[0049] S4. Generate a remote control instruction list according to the valid test instruction that is a remote control instruction, and generate a full-frame remote control instruction corresponding to each remote control instruction in the remote control instruction list.
[0050] Optionally, in the above technical solution, in S4, generating the full-frame commands of the remote control frames corresponding to each remote control command in the remote control command list includes:
[0051] S41. Traverse the remote control command list, obtain the remote control command codes of each remote control command, and obtain the full-frame fixed characters of the remote control frames corresponding to each remote control command;
[0052] S42. Concatenate the remote control command code of any remote control command and the full-frame fixed characters of the remote control frame corresponding to the remote control command to obtain the valid data of the full-frame command of the remote control frame corresponding to the remote control command. Perform CRC16 check on the valid data of the full-frame command of the remote control frame corresponding to the remote control command to generate a two-byte check code corresponding to the remote control command. Concatenate the full-frame fixed characters, remote control command code, check code, and padding characters corresponding to the remote control command to obtain the full-frame command of the remote control frame corresponding to the remote control command until the full-frame commands of the remote control frames corresponding to each remote control command are obtained.
[0053] The technical effects of the present invention are as follows:
[0054] 1) It can provide guidance for testers and guide testers to complete the production of commands for the entire process of satellite development. For satellite comprehensive testers, they generally do not have access to the previous acceptance and subsequent docking tests, and their work has strong limitations. Through this method, the work scope of satellite comprehensive testers can be extended to acceptance tests and docking tests, broadening the work scope of satellite comprehensive testers and improving the satellite comprehensive test ability.
[0055] 2) It has strong versatility and ease of use. By copying the 4-byte commands in the ICD file into the software and clicking the button, the required test commands can be generated.
[0056] 3) The efficiency of generating test commands is greatly improved. For example, it used to take 5S to generate one test command, and 500 seconds for 100 commands. Now, using the same time, not only can 100 commands be batch-generated within the time of one command, but also the test commands required for each stage can be generated, greatly improving the test efficiency.
[0057] 4) Using the four-byte command codes provided by the ICD file, test commands for each stage can be batch-generated, such as CAN test commands in the acceptance stage, remote control test commands in the whole satellite stage, and full-frame test commands of remote control frames required to meet the docking of ground measurement and control stations. And the test commands for each stage are integrated into one page, with clear corresponding relationships and traceability, greatly improving the efficiency of command generation and also solving the problem of command version control caused by frequent changes in the technical status.
[0058] In the above embodiments, although the steps are numbered as S1, S2, etc., these are just specific embodiments given in this application. Those skilled in the art can adjust the execution order of S1, S2, etc. according to the actual situation, which is also within the protection scope of the present invention. It can be understood that in some embodiments, it may include some or all of the above embodiments.
[0059] As Figure 2 shown, an instruction batch generation system 200 for a satellite according to an embodiment of the present invention includes a traversal acquisition module 210, a fixed character determination module 220, and a valid test instruction generation module 230;
[0060] The traversal acquisition module 210 is configured to: traverse the basic instruction list corresponding to the satellite and acquire a plurality of four-byte basic instruction codes;
[0061] The fixed character determination module 220 is configured to: respectively determine the fixed characters of each four-byte basic instruction code based on the transmission protocol corresponding to each four-byte basic instruction code;
[0062] The valid test instruction generation module 230 is configured to: splice any four-byte basic instruction code and the fixed character corresponding to the four-byte basic instruction code to obtain the instruction valid data corresponding to the four-byte basic instruction code, and perform exclusive OR and check on the instruction valid data corresponding to the four-byte basic instruction code based on the corresponding interface protocol to generate a two-byte check code corresponding to the four-byte basic instruction code, and splice the four-byte basic instruction code and the check code corresponding to the four-byte basic instruction code to obtain the valid test instruction corresponding to the four-byte basic instruction code until the valid test instructions corresponding to each four-byte basic instruction code are obtained.
[0063] The present invention can batch generate valid test instructions, greatly improving the instruction generation efficiency and also solving the instruction version control problem caused by frequent replacement of the technical state.
[0064] Optionally, in the above technical solution, it further includes a list generation module and a remote control frame generation module;
[0065] The list generation module is configured to: generate a remote control instruction list according to the valid test instructions for remote control instructions;
[0066] The remote control frame generation module is configured to: generate the full remote control frame instructions corresponding to each remote control instruction in the remote control instruction list.
[0067] Optionally, in the above technical solution, the remote control frame generation module is specifically configured to:
[0068] Traverse the list of remote control instructions, obtain the remote control instruction codes of each remote control instruction, and obtain the fixed characters of the full frame of the remote control frame corresponding to each remote control instruction; concatenate the remote control instruction code of any remote control instruction and the fixed characters of the full frame of the remote control frame corresponding to this remote control instruction to obtain the valid data of the full frame of the remote control frame corresponding to this remote control instruction, perform CRC16 check on the valid data of the full frame of the remote control frame corresponding to this remote control instruction, generate a two-byte check code corresponding to this remote control instruction, and concatenate the fixed characters of the full frame of the remote control frame, the remote control instruction code, the check code and the padding word corresponding to this remote control instruction to obtain the full frame instruction of the remote control frame corresponding to this remote control instruction, until the full frame instructions of the remote control frames corresponding to each remote control instruction are obtained.
[0069] Optionally, in the above technical solution, the transmission protocol is a CAN protocol or a remote control protocol.
[0070] For the parameters and the steps of each unit module in the above-mentioned instruction batch generation system 200 of a satellite according to the present invention to implement corresponding functions, reference can be made to the parameters and steps in the embodiments of the instruction batch generation method of a satellite in the above text, and details are not described herein again.
[0071] A storage medium of the present invention stores instructions, and when a computer reads the instructions, the computer is made to execute the instruction batch generation method of a satellite according to any one of the above.
[0072] An electronic device of the present invention includes a processor and the above storage medium, and the processor executes the instructions in the storage medium. Among them, the electronic device can be a computer, a mobile phone, etc.
[0073] Those skilled in the art of the present technology know that the present invention can be implemented as a system, a method or a computer program product.
[0074] Therefore, the present disclosure can be specifically implemented in the following forms, that is: it can be completely hardware, can also be completely software (including firmware, resident software, microcode, etc.), and can also be a form combining hardware and software. Generally referred to as "circuit", "module" or "system" in this article. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable media contains computer-readable program code.
[0075] Any combination of one or more computer-readable media may be employed. The computer-readable media may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present document, a computer-readable storage medium may be any tangible medium that contains or stores a program which can be used by or in connection with an instruction execution system, apparatus, or device.
[0076] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art may make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for batch generating commands of a satellite, characterized in that, Including: Traverse the basic instruction list corresponding to the satellite to obtain multiple four-byte basic instruction codes; Based on the corresponding interface protocol, respectively determine the fixed characters of each four-byte basic instruction code; Concatenate any four-byte basic instruction code and the fixed characters corresponding to the four-byte basic instruction code to obtain the instruction valid data corresponding to the four-byte basic instruction code, and perform exclusive OR and checksum on the instruction valid data corresponding to the four-byte basic instruction code based on the corresponding interface protocol to generate two-byte checksum corresponding to the four-byte basic instruction code. Concatenate the four-byte basic instruction code and the checksum corresponding to the four-byte basic instruction code to obtain the valid test instruction corresponding to the four-byte basic instruction code until the valid test instruction corresponding to each four-byte basic instruction code is obtained.
2. The method for batch generating instructions of a satellite according to claim 1, wherein Also including: Generate a remote control instruction list according to the valid test instruction that is a remote control instruction, and generate the full-frame remote control instruction corresponding to each remote control instruction in the remote control instruction list.
3. The method for batch generating instructions of a satellite according to claim 2, wherein, The generating the full-frame remote control instruction corresponding to each remote control instruction in the remote control instruction list includes: Traverse the remote control instruction list to obtain the remote control instruction code of each remote control instruction, and obtain the full-frame fixed characters of the remote control frame corresponding to each remote control instruction; Concatenate the remote control instruction code of any remote control instruction and the full-frame fixed characters of the remote control frame corresponding to the remote control instruction to obtain the valid data of the full-frame remote control instruction corresponding to the remote control instruction, perform CRC16 checksum on the valid data of the full-frame remote control instruction corresponding to the remote control instruction to generate two-byte checksum corresponding to the remote control instruction. Concatenate the full-frame fixed characters of the remote control frame, the remote control instruction code, the checksum and the padding word corresponding to the remote control instruction to obtain the full-frame remote control instruction corresponding to the remote control instruction until the full-frame remote control instruction corresponding to each remote control instruction is obtained.
4. A method for batch generating instructions of a satellite according to any one of claims 1 to 3, characterized in that The interface protocol is a CAN interface protocol or a remote control interface protocol.
5. An instruction batch generation system for a satellite, characterized in that, Including a traversal acquisition module, a fixed character determination module and a valid test instruction generation module; The traversal acquisition module is used for: traversing the basic instruction list corresponding to the satellite to obtain multiple four-byte basic instruction codes; The fixed character determination module is used for: based on the interface protocol corresponding to each four-byte basic instruction code, respectively determine the fixed characters of each four-byte basic instruction code; The valid test instruction generation module is used for: concatenating any four-byte basic instruction code and the fixed characters corresponding to the four-byte basic instruction code to obtain the instruction valid data corresponding to the four-byte basic instruction code, and performing exclusive OR and checksum on the instruction valid data corresponding to the four-byte basic instruction code based on the corresponding interface protocol to generate two-byte checksum corresponding to the four-byte basic instruction code. Concatenate the four-byte basic instruction code and the checksum corresponding to the four-byte basic instruction code to obtain the valid test instruction corresponding to the four-byte basic instruction code until the valid test instruction corresponding to each four-byte basic instruction code is obtained.
6. The batch instruction generation system for a satellite according to claim 5, wherein, Also including a list generation module and a full-frame remote control instruction generation module; The list generation module is used for: generating a remote control instruction list according to the valid test instruction that is a remote control instruction; The remote control frame full-frame instruction generation module is used to: generate the remote control frame full-frame instruction corresponding to each remote control instruction in the remote control instruction list.
7. The instruction batch generation system of a satellite according to claim 6, characterized in that, Specifically, the full-frame instruction generation module is used to: Traverse the remote control instruction list to obtain the remote control instruction code of each remote control instruction, and obtain the remote control frame full-frame fixed character corresponding to each remote control instruction; splice the remote control instruction code of any remote control instruction and the remote control frame full-frame fixed character corresponding to this remote control instruction to obtain the valid data of the remote control frame full-frame instruction corresponding to this remote control instruction, perform CRC16 check on the valid data of the remote control frame full-frame instruction corresponding to this remote control instruction, generate the check code of two bytes corresponding to this remote control instruction, and splice the remote control frame full-frame fixed character, remote control instruction code, check code and padding word corresponding to this remote control instruction to obtain the remote control frame full-frame instruction corresponding to this remote control instruction, until the remote control frame full-frame instruction corresponding to each remote control instruction is obtained.
8. A satellite command batch generation system according to any one of claims 5 to 7, characterized in that, The interface protocol is a CAN interface protocol or a remote control interface protocol.
9. A storage medium, characterized in that, The storage medium stores instructions, and when the computer reads the instructions, the computer is made to execute the method for batch generating instructions of a satellite according to any one of claims 1 to 4.
10. An electronic device, characterized in that, It includes a processor and the storage medium according to claim 9, and the processor executes the instructions in the storage medium.
Citation Information
Patent Citations
Method for testing smart card and card reader
CN106934310A
Unit test method, device and system and storage medium
CN114168466A