Secondary development method and device based on character command pattern matching and electronic equipment
By using character command pattern matching technology, data interface specifications and secondary development interfaces are provided for ATK applications, solving the problems of automated operation and third-party integration, and realizing efficient task execution and collaborative operation.
Patent Information
- Application Number
- CN202511531930.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-24
- Publication Date
- 2026-11-06
AI Technical Summary
The ATK application interface cannot automate operations, cannot automate repetitive tasks, and cannot be integrated with third-party applications to extend functionality, making task design, analysis, and verification inconvenient.
By using character command pattern matching technology, we define data interface specifications, encapsulate ATK object model instance functionality, provide character command secondary development interfaces, utilize scripting languages to achieve automated operations, and extend third-party application functionality through character command secondary development interfaces to achieve collaborative operation with ATK.
It enables automated operation of ATK and loosely coupled integration with third-party applications, improving task execution efficiency and reliability, and simplifying collaborative operation of complex tasks.
Smart Images

Figure CN123048099A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of software secondary development technology, and relates to a secondary development method, apparatus and electronic device based on character command pattern matching. Background Technology
[0002] The Aerospace Toolkit (ATK) is based on software engineering principles and the modular requirements of software design. It incorporates object-oriented technology and component technology, constructing an independent software framework with standard interfaces based on the functions of each module. This achieves loose coupling, high cohesion, and layered component integration of modules, ultimately forming an application software system for various engineering scenarios. ATK is a core tool throughout the entire lifecycle of aerospace missions, comprising 16 modules across 5 major categories: standard platform, visibility and coverage, mission analysis, and orbit design. ATK can model complex mission scenarios of various types, including near-Earth, Earth-Moon, and deep space; it possesses high-precision multi-index analysis of visibility, coverage, and regional coverage for general scenarios; it has generalized modeling and solving capabilities for orbital maneuver planning; it has professional analysis functions centered on orbit, such as approach, orbit control safety, and maneuver detection; and it provides rich visualizations including 2D, 3D, and graphical reports. However, the ATK application interface cannot automate operations or perform repetitive tasks; the ATK application interface (API) cannot be integrated with third-party applications to extend their functionality and collaboratively complete task design, analysis, and verification, which brings great inconvenience. Summary of the Invention
[0003] To address the problems existing in the aforementioned traditional methods, this invention proposes a secondary development method, apparatus, and electronic device based on character command pattern matching, which can improve the efficiency and reliability of aerospace mission design software development.
[0004] To achieve the above objectives, the embodiments of the present invention adopt the following technical solutions: On the one hand, a secondary development method based on character command pattern matching is provided, which is applied to the secondary development of aerospace mission toolkits; the method includes the following steps: The data interface between character commands and ATK object model instances is defined in a standardized manner, and ATK object model instances are accessed according to their unique identifier names, thereby enabling dynamic updates of ATK object model instance data.
[0005] By utilizing character command matching technology and service function mechanism, the functionality of ATK object model instances is encapsulated to form a secondary development interface for character commands.
[0006] By using a scripting language and a secondary development interface for character commands, ATK can be automated to perform repetitive tasks.
[0007] Third-party applications extend their functionality through a secondary development interface using character commands, and work in conjunction with ATK to complete task design, analysis, and verification.
[0008] In one embodiment, character command matching technology is an interface technology that connects ATK applications with third-party applications. It exists as an independent process and is used to listen for character commands input by third-party applications. Based on the character command type and ATK object model information, it calls service functions to complete the corresponding functions.
[0009] In one embodiment, an ATK object model instance is an independent object entity in an ATK application; the ATK object model instance is generated by the ATK object model and contains instance type information known to the ATK application.
[0010] In one embodiment, the scripting language is, but is not limited to, C++, Java, Matlab, and Python.
[0011] In one embodiment, when the scripting language is Matlab, the process of completing the rapid transfer of satellite maneuver planning based on the secondary development interface using character command matching in Matlab includes: Step 1: Load the fast transfer Matlab file for satellite maneuver planning; the Matlab file is a character command defined by Matlab according to the character command format, including creating a new scenario FastTransfer and setting the time interval of the scenario.
[0012] Step 2: Send character commands to the ATK application; Step 3: The character command matching process in the ATK application listens for character commands sent by Matlab and calls the corresponding service function according to the command type; Step 4: Access the ATK object model instance based on the ATK object model instance name through the service function, realize the dynamic update of ATK object model instance data and return data in a standardized format; Step 5: Repeat steps 2, 3, and 4 according to the command sequence in the Matlab file to complete all functions of the satellite maneuver planning and rapid transfer case.
[0013] On the other hand, a secondary development device based on character command pattern matching is also provided, which is used for secondary development of aerospace mission toolkits; the device includes: The data interface specification definition module is used to define the data interface between character commands and ATK object model instances, access ATK object model instances according to their unique identifier names, and realize dynamic updates of ATK object model instance data. The character command secondary development interface determination module is used to encapsulate the functionality of ATK object model instances using character command matching technology and service function mechanism to form a character command secondary development interface. The ATK automation operation module is used to automate ATK operations through a scripting language and a secondary development interface for character commands, enabling the automated execution of repetitive tasks. The third-party application and ATK collaboration module is used by third-party applications to extend their functionality through a secondary development interface of character commands, and to work in conjunction with ATK to complete task design, analysis and verification.
[0014] In one embodiment, the character command matching technology in the character command secondary development interface determination module is an interface technology that connects the ATK application and third-party applications. It exists as an independent process and is used to listen for character commands input by the third-party application. Based on the character command type and ATK object model information, it calls the service function to complete the corresponding function.
[0015] In one embodiment, the ATK object model instance in the data interface specification definition module is an independent object entity in the ATK application; the ATK object model instance is generated by the ATK object model and contains instance type information known to the ATK application.
[0016] In one embodiment, the scripting language in the ATK automation operation implementation module is, but is not limited to, C++, Java, Matlab, and Python.
[0017] On another front, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the secondary development method based on character command pattern matching mentioned above.
[0018] One of the above technical solutions has the following advantages and beneficial effects: The aforementioned secondary development method, apparatus, and electronic device based on character command pattern matching encapsulate and manage the functionality of ATK object model instances, providing a character command secondary development interface. Automated operation of ATK is achieved through a scripting language using this interface, enabling the automated execution of repetitive tasks. Third-party applications extend their functionality through this interface, collaborating with ATK to complete task design, analysis, and verification. This method utilizes character command matching technology and service function mechanisms to encapsulate the functionality of ATK object model instances into a character command secondary development interface, making the interface independent of the ATK object model instance functionality, thus facilitating ATK object model program development. It achieves automated ATK operation, eliminating the need for manual user interface operation and monitoring of ATK application execution, automating repetitive tasks and improving task execution efficiency. It also achieves loosely coupled integration with third-party applications, enabling collaborative operation of complex tasks through a simple application programming interface. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating a secondary development method based on character command pattern matching in one embodiment; Figure 2 This is a flowchart of the secondary development process based on character command matching in ATK in one embodiment; Figure 3 This is an example file of a secondary development interface for Matlab using character command matching in one embodiment; Figure 4 This is a schematic diagram illustrating the results of a satellite maneuver planning and rapid transfer case completed using a secondary development interface for character command matching in Matlab, as shown in one embodiment. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0023] It should be noted that, in this document, the reference to "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The presentation of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will understand that the embodiments described herein can be combined with other embodiments. The term "and / or" as used herein refers to any combination of one or more of the associated listed items, and all possible combinations, including such combinations.
[0024] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0025] In one embodiment, such as Figure 1 As shown, a secondary development method based on character command pattern matching is provided. This method is applied to the secondary development of aerospace mission toolkits. This method solves the problems of the inability to automate operations and execute repetitive tasks based on the ATK application interface; and the inability to integrate the ATK application interface (API) with third-party applications to extend their functionality and collaboratively complete task design, analysis, and verification. It provides an efficient and rapid method for automating repetitive tasks using ATK, and an efficient and reliable solution for collaborative operation between ATK and third-party applications to complete task design, analysis, and verification. This method may include the following processing steps 100 to 103: Step 100: Define the data interface between character commands and ATK object model instances in a standardized manner, access ATK object model instances according to their unique identifier names, and realize dynamic updates of ATK object model instance data.
[0026] Specifically, the ATK object model instance is an independent object entity in the ATK application. The ATK object model instance is generated by the ATK object model. One ATK object model can generate multiple ATK object model instances. The ATK object model instance is uniquely identified by the instance name. The ATK object model instance also contains instance type information known to the ATK application.
[0027] Step 101: Use character command matching technology and service function mechanism to encapsulate the ATK object model instance function to form a character command secondary development interface.
[0028] Specifically, the data interface between character commands and ATK object model instances is defined in a standardized manner, and the functions of ATK object model instances are encapsulated using character command matching technology and service function mechanism to form a secondary development interface for character commands.
[0029] Step 102: Use a scripting language and a character command secondary development interface to automate ATK operations and complete repetitive tasks automatically.
[0030] Specifically, it supports multiple languages such as C++, Java, Matlab, and Python to use character command secondary development interfaces to automate ATK operations and complete repetitive tasks.
[0031] This is to improve the level of automation in ATK and meet the need for automated execution of repetitive tasks.
[0032] Step 103: Third-party applications extend their functionality through the character command secondary development interface and work in conjunction with ATK to complete task design, analysis and verification.
[0033] Specifically, it supports third-party applications to extend their functionality through a secondary development interface using character commands, and to work in conjunction with ATK to complete task design, analysis, and verification.
[0034] Third-party applications can extend their functionality through a secondary development interface using character commands, and work in conjunction with ATK to complete task design, analysis, and verification, thereby improving task development efficiency and reliability.
[0035] Improve the integration of the application with third-party applications to extend its functionality and meet the needs of collaborative operation with third-party applications to complete task design, development and verification.
[0036] The aforementioned secondary development method, apparatus, and electronic device based on character command pattern matching encapsulate and manage the functionality of ATK object model instances, providing a character command secondary development interface. Automated operation of ATK is achieved through a scripting language using this interface, enabling the automated execution of repetitive tasks. Third-party applications extend their functionality through this interface, collaborating with ATK to complete task design, analysis, and verification. This method utilizes character command matching technology and service function mechanisms to encapsulate the functionality of ATK object model instances into a character command secondary development interface, making the interface independent of the ATK object model instance functionality, thus facilitating ATK object model program development. It achieves automated ATK operation, eliminating the need for manual user interface operation and monitoring of ATK application execution, automating repetitive tasks and improving task execution efficiency. It also achieves loosely coupled integration with third-party applications, enabling collaborative operation of complex tasks through a simple application programming interface.
[0037] In one embodiment, character command matching technology is an interface technology that connects ATK applications with third-party applications. It exists as an independent process and is used to listen for character commands input by third-party applications. Based on the character command type and ATK object model information, it calls service functions to complete the corresponding functions.
[0038] Specifically, character command matching refers to mapping the format defined by the character command specification to the functions and parameter operations of the ATK application. By inputting different character commands, ATK can perform the corresponding functions. For example, the character command "New / Scenario FastTransfer" can be used to create a new scenario, where the scenario name is set to "FastTransfer".
[0039] In one embodiment, an ATK object model instance is an independent object entity in an ATK application; the ATK object model instance is generated by the ATK object model and contains instance type information known to the ATK application.
[0040] Specifically, the so-called ATK object model instance is the main body that users create, edit, operate, analyze, and delete based on the object model when using ATK, which is based on object-oriented technology. The object model instances in ATK mainly include instances such as scenes, spacecraft, ground stations, targets, sensors, stars, and planets.
[0041] In one embodiment, the scripting language is, but is not limited to, C++, Java, Matlab, and Python.
[0042] In one embodiment, when the scripting language is Matlab, the process of completing the rapid transfer of satellite maneuver planning based on the secondary development interface using character command matching in Matlab includes: Step 1: Load the fast transfer Matlab file for satellite maneuver planning; the Matlab file is a character command defined by Matlab according to the character command format, including creating a new scenario FastTransfer and setting the time interval of the scenario.
[0043] Step 2: Send character commands to the ATK application; Step 3: The character command matching process in the ATK application listens for character commands sent by Matlab and calls the corresponding service function according to the command type; Step 4: Access the ATK object model instance based on the ATK object model instance name through the service function, realize the dynamic update of ATK object model instance data and return data in a standardized format; Step 5: Repeat steps 2, 3, and 4 according to the command sequence in the Matlab file to complete all functions of the satellite maneuver planning and rapid transfer case.
[0044] In one embodiment, such as Figure 2 The diagram shows the secondary development flowchart for character command matching in ATK. It standardizes the data interface between character commands and ATK object model instances, encapsulates the functionality of ATK object model instances into character command service functions, and accesses ATK object model instances by name through these service functions. Character command matching is an independent process in the ATK application that listens for character commands input by third-party applications and calls the corresponding service function based on the command type. Third-party applications send character commands to the ATK application according to the character command format definition.
[0045] In a specific embodiment, such as Figure 3 The image shows an example file of the secondary development interface for Matlab using character command matching, as described in this invention. The ATK secondary development method involved in this invention can be used in various third-party applications. The following example, using the secondary development interface for Matlab using character command matching to complete a rapid transfer of satellite maneuver planning, further illustrates this invention: (1) ATK scenario The ATK scenario is named FastTransfer, with a time range from 00:00:00 on November 5, 2022 to 00:00:00 on November 6, 2022. It includes one satellite object model instance, with the following information: The satellite object model instance is named FastTransfer. The orbit forecaster is set to maneuver planning. The forecast segment, aiming sequence segment, and maneuver segment are inserted and the corresponding parameter values are set.
[0046] (2) Secondary development process based on character command matching a) Matlab defines and writes character commands according to the character command format, including creating a new scenario FastTransfer and setting the scenario time interval to November 5, 2022, 00:00:00 to November 6, 2022, 00:00:00; creating a new satellite object model instance FastTransfer and setting the orbit predictor to maneuver planning; inserting prediction segments, aiming sequence segments, and maneuver segments and setting the corresponding parameter values; and Matlab's secondary development interface example file using character command matching, such as... Figure 2 As shown.
[0047] b) A case study of rapid satellite maneuver planning and transfer completed using the secondary development interface of Matlab with character command matching.
[0048] Step 1: Load the Matlab file for rapid transfer of satellite maneuver planning; Step 2: Send character commands to the ATK application; Step 3: The character command matching process in the ATK application listens for character commands sent by Matlab and calls the corresponding service function according to the command type; Step 4: Access the ATK object model instance based on the ATK object model instance name through the service function, realize the dynamic update of ATK object model instance data and return data in a standardized format; Step 5: Repeat steps 2, 3, and 4 according to the character command sequence in the Matlab file to complete all functions of the satellite maneuvering planning rapid transfer case. The result of the satellite maneuvering planning rapid transfer case completed using the secondary development interface of Matlab character command matching is as follows. Figure 3 As shown.
[0049] It should be understood that, although the above Figure 1 The steps are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise explicitly stated in this document, there is no strict order in which these steps are executed; they can be performed in other orders. Furthermore, the above... Figure 1At least some of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0050] In one embodiment, a secondary development device based on character command pattern matching is also provided. This device is used for secondary development of aerospace mission toolkits; the device includes: The data interface specification definition module is used to define the data interface between character commands and ATK object model instances, access ATK object model instances according to their unique identifier names, and realize dynamic updates of ATK object model instance data. The character command secondary development interface determination module is used to encapsulate the functionality of ATK object model instances using character command matching technology and service function mechanism to form a character command secondary development interface. The ATK automation operation module is used to automate ATK operations through a scripting language and a secondary development interface for character commands, enabling the automated execution of repetitive tasks. The third-party application and ATK collaboration module is used by third-party applications to extend their functionality through a secondary development interface of character commands, and to work in conjunction with ATK to complete task design, analysis and verification.
[0051] In one embodiment, the character command matching technology in the character command secondary development interface determination module is an interface technology that connects the ATK application and third-party applications. It exists as an independent process and is used to listen for character commands input by the third-party application. Based on the character command type and ATK object model information, it calls the service function to complete the corresponding function.
[0052] In one embodiment, the ATK object model instance in the data interface specification definition module is an independent object entity in the ATK application; the ATK object model instance is generated by the ATK object model and contains instance type information known to the ATK application.
[0053] In one embodiment, the scripting language in the ATK automation operation implementation module is, but is not limited to, C++, Java, Matlab, and Python.
[0054] In one embodiment, when the scripting language is Matlab, the process of completing the rapid transfer of satellite maneuver planning based on the secondary development interface using character command matching in Matlab includes: Step 1: Load the fast transfer Matlab file for satellite maneuver planning; the Matlab file is a character command defined by Matlab according to the character command format, including creating a new scenario FastTransfer and setting the time interval of the scenario.
[0055] Step 2: Send character commands to the ATK application; Step 3: The character command matching process in the ATK application listens for character commands sent by Matlab and calls the corresponding service function according to the command type; Step 4: Access the ATK object model instance based on the ATK object model instance name through the service function, realize the dynamic update of ATK object model instance data and return data in a standardized format; Step 5: Repeat steps 2, 3, and 4 according to the command sequence in the Matlab file to complete all functions of the satellite maneuver planning and rapid transfer case.
[0056] It is understood that for a detailed explanation of the secondary development device based on character command pattern matching, please refer to the corresponding explanations of the various embodiments of the secondary development method based on character command pattern matching above, which will not be repeated here. Each module in the aforementioned secondary development device based on character command pattern matching can be implemented entirely or partially through software, hardware, or a combination thereof. Each module can be embedded in hardware or independently of a device with data processing capabilities, or stored in software in the memory of the aforementioned device, so that the processor can call and execute the operations corresponding to each module. The aforementioned device can be, but is not limited to, various types of data processing electronic devices already existing in the art.
[0057] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0058] It is understood that, in addition to the memory and processor mentioned above, the above-mentioned electronic devices also include other hardware and software components not listed in this specification. The specific components can be determined according to the model of the image processing computer in different application scenarios, and will not be listed and described in detail in this specification.
[0059] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0060] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of protection of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and all such modifications and improvements fall within the scope of protection of this application.
Claims
1. A secondary development method based on character command pattern matching, characterized in that, The method is applied to the secondary development of aerospace mission toolkits; the method includes the following steps: The data interface between character commands and ATK object model instances is defined in a standardized manner, and ATK object model instances are accessed according to their unique identifiers, enabling dynamic updates of ATK object model instance data. By utilizing character command matching technology and service function mechanism, the functionality of ATK object model instance is encapsulated to form a secondary development interface for character commands; ATK can be automated by using a scripting language and a secondary development interface for character commands to automate repetitive tasks. Third-party applications extend their functionality through a secondary development interface using character commands, and work in conjunction with ATK to complete task design, analysis, and verification.
2. The secondary development method based on character command pattern matching according to claim 1, characterized in that, Character command matching technology is an interface technology that connects ATK applications with third-party applications. It exists as an independent process and is used to listen for character commands input by third-party applications. Based on the character command type and ATK object model information, it calls service functions to complete the corresponding functions.
3. The secondary development method based on character command pattern matching according to claim 1, characterized in that, The ATK object model instance is an independent object entity in the ATK application; the ATK object model instance is generated by the ATK object model and contains instance type information known to the ATK application.
4. The secondary development method based on character command pattern matching according to claim 1, characterized in that, Scripting languages include, but are not limited to, C++, Java, Matlab, and Python.
5. The secondary development method based on character command pattern matching according to claim 1, characterized in that, When the scripting language is Matlab, the process of completing the rapid transfer of satellite maneuver planning based on the secondary development interface using character command matching in Matlab includes: Step 1: Load the fast transfer Matlab file for satellite maneuver planning; the Matlab file is a character command defined by Matlab according to the character command format, including creating a new scenario FastTransfer and setting the time interval of the scenario; Step 2: Send character commands to the ATK application; Step 3: The character command matching process in the ATK application listens for character commands sent by Matlab and calls the corresponding service function according to the command type; Step 4: Access the ATK object model instance based on the ATK object model instance name through the service function, realize the dynamic update of ATK object model instance data and return data in a standardized format; Step 5: Repeat steps 2, 3, and 4 according to the command sequence in the Matlab file to complete all functions of the satellite maneuver planning and rapid transfer case.
6. A secondary development device based on character command pattern matching, characterized in that, The device is used for secondary development of aerospace mission toolkits; the device includes: The data interface specification definition module is used to define the data interface between character commands and ATK object model instances, access ATK object model instances according to their unique identifier names, and realize dynamic updates of ATK object model instance data. The character command secondary development interface determination module is used to encapsulate the functionality of ATK object model instances using character command matching technology and service function mechanism to form a character command secondary development interface. The ATK automation operation module is used to automate ATK operations through a scripting language and a secondary development interface for character commands, enabling the automated execution of repetitive tasks. The third-party application and ATK collaboration module is used by third-party applications to extend their functionality through a secondary development interface of character commands, and to work in conjunction with ATK to complete task design, analysis and verification.
7. The secondary development device based on character command pattern matching according to claim 6, characterized in that, The character command matching technology in the character command secondary development interface determination module is an interface technology that connects ATK applications with third-party applications. It exists as an independent process and is used to listen for character commands input by third-party applications. Based on the character command type and ATK object model information, it calls service functions to complete the corresponding functions.
8. The secondary development device based on character command pattern matching according to claim 6, characterized in that, The ATK object model instance described in the data interface specification definition module is an independent object entity in the ATK application; the ATK object model instance is generated by the ATK object model and contains instance type information known to the ATK application.
9. The secondary development device based on character command pattern matching according to claim 6, characterized in that, The scripting languages used in the ATK automation operation implementation module are, but are not limited to, C++, Java, Matlab, and Python.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and when the processor executes the computer program, it implements the steps of the secondary development method based on character command pattern matching as described in any one of claims 1 to 5.
