CN113364515A - Satellite remote control method, device, equipment and storage medium based on Xstate - Google Patents
Satellite remote control method, device, equipment and storage medium based on Xstate Download PDFInfo
- Publication number
- CN113364515A CN113364515A CN202110610591.4A CN202110610591A CN113364515A CN 113364515 A CN113364515 A CN 113364515A CN 202110610591 A CN202110610591 A CN 202110610591A CN 113364515 A CN113364515 A CN 113364515A
- Authority
- CN
- China
- Prior art keywords
- remote control
- satellite
- state machine
- command
- xstate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/14—Relay systems
- H04B7/15—Active relay systems
- H04B7/185—Space-based or airborne stations; Stations for satellite systems
- H04B7/1851—Systems using a satellite or space-based relay
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/14—Relay systems
- H04B7/15—Active relay systems
- H04B7/185—Space-based or airborne stations; Stations for satellite systems
- H04B7/1851—Systems using a satellite or space-based relay
- H04B7/18519—Operations control, administration or maintenance
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Astronomy & Astrophysics (AREA)
- Aviation & Aerospace Engineering (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Selective Calling Equipment (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
The application relates to a satellite remote control method, a satellite remote control device, satellite remote control equipment and a storage medium based on an Xstate. The method comprises the following steps: acquiring a remote control task of a satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a state conversion target; and translating the format of the remote control task into an Xstate data type, and executing the Xstate task obtained after translation so as to realize the automatic remote control operation of the satellite. The method describes the remote control task of the satellite through a state machine, and realizes the instruction sending of the satellite, the control of the observation station and the interpretation of the received data (the telemetering data of the satellite and the state of the observation station) through the automation of the running state machine, thereby realizing the automation of the satellite remote control operation; moreover, the mode of the state machine is easier for operators on duty to understand, compile and change the remote control task, and the realization of the automation of the satellite remote control operation is simplified, so that the management cost of the satellite in-orbit operation is reduced.
Description
Technical Field
The present application relates to the field of satellite remote control processing, and in particular, to an Xstate-based satellite remote control method, apparatus, device, and storage medium.
Background
The satellite remote control operation refers to a process that a measurement, operation and control center located on the ground executes a series of tasks of sending remote control instructions according to the monitoring states of a satellite, a measurement station and the like. Generally, the remote control command for registering the satellite requires an on-duty person to confirm the execution result, for example, after the remote control command is sent, whether the command is normally received by the satellite is confirmed manually according to the command sending process log. And often, the instruction execution condition needs to be compared and judged according to the remote measurement result, one remote control task may include the sending and execution of a plurality of instructions, the person on duty needs to stare at the remote measurement data and send out corresponding instructions in time, and the remote control process is tense and monotonous.
In order to reduce the burden of the satellite operator on duty, how to realize the automation of the satellite remote control operation is a technical problem to be solved urgently by the technical personnel in the field by releasing the operator on duty from the cycle of sending repeated instructions to the telemetry interpretation.
Disclosure of Invention
Based on the method, the device, the equipment and the storage medium for satellite remote control based on the Xstate, automation of satellite remote control operation can be realized, and the realization mode is simple.
In a first aspect, an embodiment of the present application provides an Xstate-based satellite remote control method, including:
acquiring a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the states;
and translating the format of the remote control task into an Xstate data type, and executing the translated Xstate task to realize automatic remote control operation on the satellite.
In a second aspect, an embodiment of the present application provides an Xstate-based satellite remote control apparatus, including:
the first acquisition module is used for acquiring a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the command to be remotely controlled;
the translation module is used for translating the format of the remote control task into an Xstate data type;
and the execution module is used for executing the Xstate task obtained after translation so as to realize automatic remote control operation on the satellite.
In a third aspect, an embodiment of the present application provides an Xstate-based satellite remote control device, including a memory and a processor, where the memory stores a computer program, and the processor implements, when executing the computer program, the steps of the Xstate-based satellite remote control method provided in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the Xstate-based satellite remote control method provided in the first aspect of the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, the remote control task of the satellite is described through the state machine, and the command sending to the satellite, the control to the observation station and the interpretation to the received data (the remote measurement data of the satellite and the state of the observation station) are automatically realized by operating the state machine, so that the automation of the satellite remote control operation is realized; and compared with the method for realizing the automatic remote control operation by compiling the script, the method for realizing the automatic remote control operation by the satellite remote control operation by the state machine is easier for operators on duty to understand, compile and change the remote control task, and simplifies the realization of the automation of the satellite remote control operation, thereby reducing the management cost of the in-orbit operation of the satellite.
Drawings
Fig. 1 is a schematic structural diagram of a system to which an Xstate-based satellite remote control method according to an embodiment of the present disclosure is applied;
fig. 2 is a schematic flowchart of an Xstate-based satellite remote control method according to an embodiment of the present application;
FIG. 3 is a schematic representation of a remote task provided by an embodiment of the present application;
fig. 4 is a schematic flowchart of a process for generating a remote control task according to an embodiment of the present application;
FIG. 5 is another schematic representation of a remote task provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of an Xstate-based satellite remote control device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an Xstate-based satellite remote control device according to an embodiment of the present application.
Detailed Description
The satellite remote control method based on the Xstate provided by the embodiment of the application can be applied to the system shown in fig. 1. The system may include, among other things, an orbiting satellite 101, a ground station 102, and a telemetry control center 103. The satellite 101 may be a low orbit satellite or a satellite in a geosynchronous orbit; the ground stations 102 are distributed at different geographical locations and are used for information transmission with the satellite 101; the remote control center 103 is connected with the ground station 102 through a network, and performs information interaction with the satellite 101 through the ground station 102 to realize remote control operation of the satellite 101.
In the traditional technology, the automatic remote control operation of the satellite can be realized by adopting a script writing mode. However, this approach requires the attendant to learn the syntax of a complete set of scripts in order to write or modify the remote control job. This requires too much personnel on duty, which inevitably increases the cost of managing the in-orbit operation of the satellite. Therefore, the technical scheme provided by the embodiment of the application not only realizes the automation of the satellite remote control operation, but also simplifies the implementation mode of the automatic remote control operation.
It should be noted that the execution subject of the method embodiments described below may be an Xstate-based satellite remote control device, which may be implemented by software, hardware, or a combination of software and hardware as part or all of the telemetry control center (i.e., Xstate-based satellite remote control equipment).
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 2 is a schematic flowchart of an Xstate-based satellite remote control method according to an embodiment of the present disclosure. As shown in fig. 2, the method may include:
s201, obtaining a remote control task of the satellite.
The remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the states.
A remote control operation can be seen as a workflow, which is the process of transitioning from one state to another. Thus, the remote control job can be regarded as a finite state machine, and a given remote control task is described by the finite state machine. In general, a finite state machine may include a plurality of states, which may be an initial state, an intermediate state, and a final state, the state machine being in a complete state when the finite state machine enters the final state. Therefore, in order to describe the remote control task of the satellite through the finite state machine, for each state, the embodiment of the application adds a command item and an interpretation item in each state.
The command item is used to specify a command to be remotely controlled to be executed in the state, where the command to be remotely controlled describes an action of an initiator of a remote control task, and may be a command to a satellite or a task to a survey station (i.e., a ground station). Of course, the command to be remotely controlled may invoke other remote control tasks. The interpretation item is used to specify interpretation logic of received data (the received data includes telemetry data of a satellite or status data of a station, etc.), that is, interpretation includes interpretation of the telemetry data of the satellite and interpretation of the status of the station. For example, after interpreting the remote direct command count in the received data plus one, it can be determined that the satellite has received a command from the telemetry center.
Of course, for each state, conversion items are included in addition to the command items and interpretation items described above. The transition item is used to specify a transition target for each state, i.e., the transition target is used to represent a transformation of each state. For example, the state "execute command one" (for example, the command to be remotely controlled in the state can be the discharge switch of the storage battery pack is turned off) is converted into the state "delay one" (for example, the command to be remotely controlled in the state can be the waiting delay).
Illustratively, the telemetry task (i.e., finite state machine) of the satellite acquired by the telemetry center is shown in fig. 3, and as can be seen from fig. 3, the telemetry task includes a plurality of states, namely, an "initial state", a "remote lock waiting state", an "instruction one execution", a "delay one", an "instruction two execution", a "success state", and a "failure state", respectively, where the "success state" and the "failure state" are the final states of the telemetry task. Each state may include a command to be remotely controlled, interpretation logic, and a transition target corresponding to the state.
Specifically, each state of the finite state machine shown in fig. 3 is described below, for example, the to-be-remotely-controlled name in the initial state is null, the corresponding interpretation logic is "save remote control direct instruction count", and the corresponding conversion target is the state "wait for remote control locking"; the remote control waiting command in the state of waiting for remote control locking is null, the corresponding interpretation logic is 'comparing whether the remote control channel carrier locking indication is greater than 5', and the corresponding conversion target is in the state of 'executing instruction one'; the command to be remotely controlled in the state of executing the instruction I is 'storage battery pack discharge on-off', the corresponding interpretation logic is 'counting of the remote control direct instruction plus one', and the corresponding conversion target is 'state delay one'; the command to be remotely controlled in the state of 'delay one' is 'delay 2 seconds', the corresponding judgment logic is null, and the corresponding conversion target is in the state of 'execution instruction two'; the command to be remotely controlled in the state of executing the instruction II is 'the data transmission task of the standby machine of the measurement and control data transmission all-in-one machine is started', the corresponding interpretation logic is 'counting of the remote control direct instruction plus one', and the corresponding conversion target is in the state of 'success state'.
The finite-state machine shown in fig. 3 can realize the remote control operation of switching on and off the discharge of the storage battery pack of the satellite and switching on the data transmission task of the standby machine of the measurement and control data transmission all-in-one machine. It should be noted that each state in fig. 3 is only an example, and in practical applications, each state of the finite state machine used for representing the remote control task may be set based on an actual telemetry requirement, which is not limited in this embodiment.
S202, translating the format of the remote control task into an Xstate data type, and executing the translated Xstate task to realize the automatic remote control operation of the satellite.
Js (hereinafter, Xstate) is one implementation of a finite state machine. The Xstate finite state machine is well-suited for a variety of situations and conforms to the World Wide Web Consortium (W3C) standard, and can be conveniently implemented using a variety of tools. Thus, the automated execution of the above-described remoting task described by the finite state machine can be realized based on Xstate.
In practical applications, the remote control task is not in the format of Xstate, and the reason why the remote control task is not stored in the format of Xstate is as follows:
(1) the special types of command (staring instruction and station survey task) and data interpretation (telemetry data interpretation of satellite and interpretation of station survey state) do not exist in the Xstate, and the Xstate is forcibly stored and loses intuitiveness.
(2) The data structure of the Xstate is not in a standard JSON format, and special consideration is needed for storage and verification.
Therefore, when the remote control task is executed, the format of the remote control task needs to be translated into the data type required by the Xstate so as to meet the format requirement of the Xstate. In the execution stage of the finite state machine, the command to be remotely controlled is only translated into interface call, and the interpretation logic is translated into event processing of satellite telemetering information or station state information, and the execution is carried out according to the jump among the states in the finite state machine. After the translated Xstate task is obtained, traversing the current state remote control command and interpretation logic in the Xstate task from the initial state, calling a function matched with the type of the remote control command to execute the remote control command, calling a function matched with the type of the interpretation logic to execute the interpretation logic, completing the execution of the current state, jumping to the next state to continue the execution until the final state of the finite state machine is executed, and completing the automatic remote control operation of the satellite. Of course, the above-mentioned function matching with the type of the command to be remotely controlled and the function matching with the type of the judgment logic need to be created in advance and stored in the database so as to remotely control the call when the task is executed.
Alternatively, the remoting task may be initiated in a separate process in order to avoid that the automatic execution of the remoting task affects the main program of the telemetry center. If overtime happens or the number of state jumps is larger than a preset threshold value, prompt information can be output to apply for intervention of an operator on duty.
In practical applications, in order to enable the attendant to clearly know the execution process of the remote control task, on the basis of the above embodiment, optionally, the execution process of the Xstate task may be visually displayed.
The method comprises the steps that a simple execution visualization library is attached to the Xstate, and the Xstate execution process can be generated into a flow chart and displayed by executing the visualization library so as to realize the visualization of the remote control task execution process. Compared with the realization of automatic remote control operation by a script mode, the flow chart generation process of the finite-state machine is much simpler. Of course, the execution process of the Xstate task may also be shown in a form of a table, and the specific way of visualizing the execution process of the remote control task in the embodiment of the present application is not limited.
Optionally, the telemetry control center may also store the execution process of the Xstate task in a log form. In this way, the operator on duty can also clearly know the execution process of the remote control task through the log so as to confirm the execution result.
According to the satellite remote control method based on the Xstate, the remote control task of the satellite is described through the state machine, and the command sending to the satellite, the control to the observation station and the interpretation to the received data (the remote measurement data of the satellite and the state of the observation station) are automatically realized by operating the state machine, so that the automation of the satellite remote control operation is realized; and compared with the method for realizing the automatic remote control operation by compiling the script, the method for realizing the automatic remote control operation by the satellite remote control operation by the state machine is easier for operators on duty to understand, compile and change the remote control task, and simplifies the realization of the automation of the satellite remote control operation, thereby reducing the management cost of the in-orbit operation of the satellite.
In an embodiment, there is further provided a process of describing a satellite remote control task by a finite state machine, that is, a process of creating a finite state machine for remote control operation, on the basis of the foregoing embodiment, optionally, as shown in fig. 4, before the foregoing S201, the method may further include:
s401, an initial state machine is established for the satellite.
The initial state machine comprises a plurality of states to be edited, wherein the states to be edited comprise command items, interpretation items of received data and conversion items of the states to be edited. The command item is used for specifying a command required to be executed by the state, and describes the action of an initiator of the remote control task, such as issuing an instruction, issuing an inspection station task or delaying for 2 seconds. Of course, the command item may call other remote control jobs. The interpretation item is used to specify the interpretation logic of the received data (i.e. the telemetry data of the satellite and the status of the station), which describes the response actions of the remote task as the data stream receiving party, such as storing the telemetry value, comparing the telemetry value, waiting for the telemetry value plus one or waiting for the specified station signal, etc., but may also be null, indicating no operation. Transition targets are used to represent transitions between states.
The identifier of the state to be edited (such as a name, the name of the state to be edited must be unique), the command item, the interpretation item and the conversion item in the state to be edited are allowed to be edited by a user, so that the definition of each state to be edited is realized. In one embodiment, selection controls may be provided at corresponding positions of each state to be edited, the command item, the interpretation item, and the conversion item in each state to be edited, and alternative content is provided under each selection control. For the content needing to be input, an input control can also be provided at the corresponding position, so that the user can input the corresponding content through the input control. For example, for a command parameter in a command item, a specific parameter value input by a user may be obtained through an input control. And the remote measurement control center detects the selection operation generated by triggering the selection control by the user, selects the corresponding alternative content according to the selection operation, and takes the selected alternative content as the editing result of the corresponding project.
Optionally, the command entry includes at least one of the following fields: command type, command instruction, and command parameters.
The command type refers to a specific type to which the command belongs, such as a type "issue instruction" or "wait for delay" and the like. The command instruction is used to indicate a specific command belonging to the above-described command types, such as a specific command "battery pack discharge on/off", and the command type to which the specific command belongs is "issue instruction". The command parameter refers to a parameter required by the command, and the parameter of the command "wait for delay" may be a delay duration (e.g., 2 seconds). Optionally, the command item may further include a field "command event" for indicating the execution result of the command, such as a command type "issue instruction", and the corresponding command event may be a transmission success or a transmission failure. For another example, the command type "wait for delay" may correspond to a command event that may be a timeout. Optionally, the correspondence between the command type and the command event may also be established in advance. Therefore, after the user edits the command type, the corresponding command event can be automatically generated based on the command type selected by the user.
Optionally, the interpretation item comprises at least one of the following fields: type of interpretation, source of interpretation, and interpretation parameters.
The interpretation type refers to a specific type to which the interpretation logic for the command belongs, such as storing a remote measurement value, comparing the remote measurement value, waiting for the remote measurement value plus one or waiting for a specific station measurement signal. The interpretation source refers to the source of the interpretation logic, and if the interpretation type is the stored remote value, the interpretation source may be the remote direct instruction count. Generally, the remote command receiving count is saved in the initial state of the finite state machine, so that whether the subsequent command is received by the satellite can be judged by comparing the received remote direct command count. If the interpretation type is a comparison remote measurement value, the remote measurement source can compare whether the voltage of the bus on the satellite is greater than a preset threshold value so as to determine a subsequent command. The interpretation parameter refers to a parameter required by the interpretation logic, for example, the parameter of the "remote direct instruction count" of the interpretation logic is 1. Optionally, the interpretation item may further include a field "interpretation event" for identifying an execution result of the interpretation logic, such as a determination type "comparison telemetry value", and the corresponding interpretation event may be comparison success or comparison failure. Optionally, a corresponding relationship between the interpretation type and the interpretation event may also be established in advance. Therefore, after the judgment type is edited by the user, the corresponding judgment event can be automatically generated based on the judgment type selected by the user.
Optionally, the conversion entry includes at least one of the following fields: a conversion event and a conversion target.
The conversion event does not need to be edited by a user generally, and as can be seen from the above description, after the user selects the command type and the interpretation type, the corresponding conversion event is automatically generated, and the user only needs to edit the conversion target corresponding to the conversion event. The transition target here refers to the state to which the state is to be jumped. Therefore, the user can easily realize the flow control of sequential execution, branch execution, circular execution and the like by simply selecting the conversion target, and the operation difficulty of the operator on duty is greatly reduced.
In order to facilitate the user (i.e. the attendant) to edit the initial state machine, on the basis of the above embodiment, the initial state machine may be optionally shown in a table form.
S402, obtaining the editing result of the user aiming at the state to be edited.
The user can edit the initial state machine based on actual remote control operation, specifically edit the name of each state to be edited, edit the command type, command instruction and command parameter in the command item in each state to be edited, edit the judgment type, judgment source and judgment parameter in the judgment item, and edit the conversion target in the conversion item. The remote measurement control center detects the selection operation generated by triggering the selection control by the user and the input operation generated by triggering the input control by the user, selects the corresponding alternative content according to the selection operation, acquires the input content (such as command parameters, interpretation parameters and the like) according to the input operation, and takes the selected alternative content and the acquired input content as the editing result corresponding to the state to be edited.
And S403, filling the initial state machine based on the editing result to obtain a target state machine.
After the editing result of each editing state is obtained, the remote sensing control center fills the editing result to the corresponding position in the initial state machine, and therefore the target state machine is obtained.
For example, as shown in fig. 5, the generated target state machine may include a plurality of states, respectively, "initial state", "remote control lock waiting state", "instruction one execution", "delay one execution", "instruction two execution", "success state", and "failure state", each of which may include a command item, an interpretation item, and a conversion item. The command items may include command types, command instructions, and command parameters. The interpretation items may include interpretation type, interpretation source, and interpretation parameters. The conversion item may include a conversion event and a conversion target. Specifically, for the initial state, the command item is empty, the judgment type in the interpretation item is a stored remote control value, the interpretation source is a stored remote control direct instruction count, the conversion event in the conversion item is a storage success, and the conversion target is a state of 'waiting for remote control locking'; for the state of 'waiting for remote control locking', the command item is empty, the interpretation type in the interpretation item is a comparative remote control value, the source of the interpretation is a remote control channel carrier locking indication, the interpretation parameter is 5, the conversion event in the conversion item is successful, and the conversion target is the state of 'execute instruction one'; for the state of 'execute instruction one', the instruction type in the instruction item is an issue instruction, the instruction is the discharge on-off of the storage battery pack, the conversion type in the conversion item is the addition of one to the waiting remote control value, the interpretation source is the remote control direct instruction count, the interpretation parameter is 1, the conversion event in the conversion item is successful, and the conversion target is the state of 'delay one'; for the state of 'delay one', the command type in the command item is waiting, the command instruction is null, the command parameter is 5 seconds, the interpretation item is null, the conversion event in the conversion item is overtime, and the conversion target is the state of 'execute instruction two'; for the state of executing the instruction II, the instruction type in the instruction item is an issued instruction, the instruction is 'the test and control data transmission integrated machine standby data transmission task is started', the instruction parameter is null, the interpretation type in the interpretation item is the addition of one to the waiting remote measurement value, the source of the interpretation is the remote control direct instruction count, the interpretation parameter is 1, the conversion event in the conversion item is successful, and the conversion target is the state of 'successful state'.
For simplicity, a state may contain only one command item and one interpretation item. Even so, the expression capability of the method can meet the requirements of most scenes. In the following, some description is given for other slightly more complex flow cases, and so on.
It has just been mentioned that one interpretation logic can be executed in one state, and if a plurality of interpretation logics need to be executed, one state can be simply added after the state, the command item is set to be null, and another interpretation logic is added in the interpretation item, so that a plurality of condition AND' interpretation logics are realized.
If more than one condition "or" interpretation logic is required, e.g., only one of the interpretation logic needs to be satisfied, then the issue instruction TC001 (assuming the issue instruction belongs to the state X). For the situation, a delayed command is added in the state A to which the first interpretation logic belongs, if the interpretation is successful, the state X is jumped, and if the interpretation is overtime, the state B is jumped. Then, the second parameter is interpreted in the state B, a delayed command is added in the state B, if the interpretation is successful, the state X is jumped to, and if the interpretation is overtime, the state A is jumped to. Thus, it is possible to satisfy the interpretation logic of the plurality of conditions "or" by alternately executing the plurality of interpretation logics. In general, this is rare and the description is only intended to illustrate the feasibility of this design.
S404, determining the target state machine as a remote control task of the satellite.
In order to ensure the correctness of the automatic remote operation on the satellite, on the basis of the foregoing embodiment, optionally, the process of S404 may be: and storing the target state machine in a JSON form, checking the correctness of the target state machine, and determining the target state machine as a remote control task of the satellite under the condition of determining the correctness of the target state machine.
After the remote control task is described by the finite state machine, a JSON form can be adopted to store the remote control task. All states in the finite state machine are formed into an array according to the sequence of the table, each item of the array represents a state, and each field in the state represents each column of the table respectively.
The JSON and the table are in an intuitive corresponding relation, and great convenience is provided for editing and modifying the remote control task. Commercial satellite companies need to be able to quickly cope with various needs, and easy modification of terrestrial software is also very important.
The target state machine is easy to verify, and the target state machine is stored in the form of JSON, so that the target state machine can be verified only by judging whether the JSON file has some necessary fields or not and whether the fields conform to a given format or not.
In the embodiment, the finite state machine is used for describing and editing the remote control task, the logic of the remote control task is expressed in a simpler mode, and after the initial state machine is established, the operator on duty only needs to edit the state to be edited in the initial state machine, so that the operator on duty can operate immediately by hands, the personnel cost is reduced, and the management cost of the in-orbit operation of the satellite is further reduced. Meanwhile, the satellite remote control task is stored in a JSON format, so that most databases support, and a large number of third-party databases can be used, thereby being beneficial to editing, storing and verifying the remote control task.
Fig. 6 is a schematic structural diagram of an Xstate-based satellite remote control device according to an embodiment of the present application. As shown in fig. 6, the apparatus may include: a first obtaining module 601, a translation module 602, and an executing module 603.
Specifically, the first obtaining module 601 is configured to obtain a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the command to be remotely controlled;
the translation module 602 is used for translating the format of the remote control task into an Xstate data type;
the execution module 603 is configured to execute the Xstate task obtained after the translation, so as to implement the automatic remote control operation of the satellite.
According to the satellite remote control device based on the Xstate, the remote control task of the satellite is described through the state machine, and the command sending to the satellite, the control to the survey station and the interpretation to the received data (the telemetry data of the satellite and the state of the survey station) are automatically realized by operating the state machine, so that the automation of the satellite remote control operation is realized; and compared with the method for realizing the automatic remote control operation by compiling the script, the method for realizing the automatic remote control operation by the satellite remote control operation by the state machine is easier for operators on duty to understand, compile and change the remote control task, and simplifies the realization of the automation of the satellite remote control operation, thereby reducing the management cost of the in-orbit operation of the satellite.
On the basis of the foregoing embodiment, optionally, the apparatus further includes: the device comprises a creating module, a second obtaining module, a filling module and a determining module.
Specifically, the creating module is configured to create an initial state machine for the satellite before the first obtaining module 601 obtains the remote control task of the satellite; the initial state machine comprises a plurality of states to be edited, wherein the states to be edited comprise command items, interpretation items of received data and conversion items of the states to be edited;
the second acquisition module is used for acquiring an editing result of the user aiming at the state to be edited;
the filling module is used for filling the initial state machine based on the editing result to obtain a target state machine;
the determining module is used for determining the target state machine as a remote control task of the satellite.
On the basis of the foregoing embodiment, optionally, the apparatus further includes: and a display module.
Specifically, the display module is configured to display the initial state machine in a table form after the creation module creates the initial state machine for the satellite.
On the basis of the foregoing embodiment, optionally, the determining module is specifically configured to store the target state machine in a JSON form, check correctness of the target state machine, and determine the target state machine as the remote control task of the satellite when it is determined that the target state machine is correct.
Optionally, the command entry includes at least one of the following fields: command type, command instruction, and command parameters; the interpretation item includes at least one of the following fields: interpretation type, interpretation source and interpretation parameters; the conversion entry includes at least one of the following fields: a conversion event and a conversion target.
Optionally, the display module is further configured to visually display an execution process of the Xstate task.
On the basis of the foregoing embodiment, optionally, the apparatus further includes: and a storage module.
Specifically, the storage module is configured to store the execution process of the Xstate task in a log form.
In one embodiment, an Xstate-based satellite remote control device is also provided, and a schematic structural diagram of the Xstate-based satellite remote control device can be shown in fig. 7. The device may include a processor and a memory connected by a system bus. Wherein the processor of the device is configured to provide computing and control capabilities. The memory of the device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the device is used for storing data in the satellite remote control process based on the Xstate. The computer program is executed by a processor to implement an Xstate based satellite remote control method.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the devices to which the present application may be applied, and that a particular device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an Xstate-based satellite remote control device is provided, comprising a memory having a computer program stored therein and a processor that when executed implements the steps of:
acquiring a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the states;
and translating the format of the remote control task into an Xstate data type, and executing the translated Xstate task to realize the automatic remote control operation of the satellite.
In one embodiment, the processor, when executing the computer program, further performs the steps of: creating an initial state machine for the satellite; acquiring an editing result of the user aiming at the state to be edited; filling the initial state machine based on the editing result to obtain a target state machine; determining the target state machine as a remote control task of the satellite; the initial state machine comprises a plurality of states to be edited, wherein the states to be edited comprise command items, interpretation items of received data and conversion items of the states to be edited.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and displaying the initial state machine in a table form.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and storing the target state machine in a JSON form, checking the correctness of the target state machine, and determining the target state machine as a remote control task of the satellite under the condition of determining the correctness of the target state machine.
Optionally, the command entry includes at least one of the following fields: command type, command instruction, and command parameters; the interpretation item includes at least one of the following fields: interpretation type, interpretation source and interpretation parameters; the conversion entry includes at least one of the following fields: a conversion event and a conversion target.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and visually displaying the execution process of the Xstate task.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and storing the execution process of the Xstate task in a log form.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for the command to be remotely controlled and a conversion target of the states;
and translating the format of the remote control task into an Xstate data type, and executing the translated Xstate task to realize automatic remote control operation on the satellite.
The Xstate-based satellite remote control device, the Xstate-based satellite remote control equipment and the storage medium provided in the above embodiments can execute the Xstate-based satellite remote control method provided in any embodiment of the disclosure, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments can be referred to the Xstate-based satellite remote control method provided in any embodiment of the present disclosure.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. An Xstate-based satellite remote control method is characterized by comprising the following steps:
acquiring a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the states;
and translating the format of the remote control task into an Xstate data type, and executing the translated Xstate task to realize the automatic remote control operation of the satellite.
2. The method of claim 1, wherein prior to said acquiring a remote mission of said satellite, said method further comprises:
creating an initial state machine for the satellite; the initial state machine comprises a plurality of states to be edited, wherein the states to be edited comprise command items, interpretation items of received data and conversion items of the states to be edited;
acquiring an editing result of the user aiming at the state to be edited;
filling the initial state machine based on the editing result to obtain a target state machine;
and determining the target state machine as a remote control task of the satellite.
3. The method of claim 2, wherein after the creating an initial state machine for a satellite, the method further comprises:
and displaying the initial state machine in a table form.
4. The method of claim 2, wherein determining the target state machine as a remote mission for the satellite comprises:
and storing the target state machine in a JSON form, checking the correctness of the target state machine, and determining the target state machine as a remote control task of the satellite under the condition of determining the correctness of the target state machine.
5. The method of claim 2, wherein the command entry comprises at least one of the following fields: command type, command instruction, and command parameters;
the interpretation item includes at least one of the following fields: interpretation type, interpretation source and interpretation parameters;
the conversion entry includes at least one of the following fields: a conversion event and a conversion target.
6. The method of any one of claims 1 to 5, further comprising:
and visually displaying the execution process of the Xstate task.
7. The method of any one of claims 1 to 5, further comprising:
and storing the execution process of the Xstate task in a log form.
8. An Xstate-based satellite remote control, comprising:
the first acquisition module is used for acquiring a remote control task of the satellite; the remote control task is described by a state machine and comprises a plurality of states, wherein the states comprise a command to be remotely controlled, interpretation logic for receiving data and a conversion target of the command to be remotely controlled;
the translation module is used for translating the format of the remote control task into an Xstate data type;
and the execution module is used for executing the Xstate task obtained after translation so as to realize the automatic remote control operation of the satellite.
9. An Xstate-based satellite remote control device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110610591.4A CN113364515B (en) | 2021-06-01 | 2021-06-01 | Satellite remote control method, device, equipment and storage medium based on Xstate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110610591.4A CN113364515B (en) | 2021-06-01 | 2021-06-01 | Satellite remote control method, device, equipment and storage medium based on Xstate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113364515A true CN113364515A (en) | 2021-09-07 |
CN113364515B CN113364515B (en) | 2023-01-10 |
Family
ID=77530911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110610591.4A Active CN113364515B (en) | 2021-06-01 | 2021-06-01 | Satellite remote control method, device, equipment and storage medium based on Xstate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113364515B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114648869A (en) * | 2022-03-10 | 2022-06-21 | 东方电子股份有限公司 | Remote control instruction operation method for electric power protection measurement and control device |
CN115242287A (en) * | 2022-01-04 | 2022-10-25 | 北京电子工程总体研究所 | Ground measurement, operation and control method and system for satellite constellation |
CN117081658A (en) * | 2023-09-27 | 2023-11-17 | 中国人民解放军32039部队 | Automatic generation method and device for remote control operation script of communication satellite payload |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020075328A1 (en) * | 2000-12-15 | 2002-06-20 | Frederic Letzelter | Contextual and dynamic command navigator for CAD and related systems |
US20060100752A1 (en) * | 2004-11-11 | 2006-05-11 | In-Jun Kim | Automatic operation system and method for automating satellite control operation and satellite ground control system using the same |
US20070258511A1 (en) * | 2006-05-03 | 2007-11-08 | Knight Jerry E | Adaptive code generator for satellite navigation receivers |
US20120127011A1 (en) * | 2010-11-24 | 2012-05-24 | Industrial Technology Research Institute | Method, System and Devices for Remote Control and Be-Controlled |
US20170245098A1 (en) * | 2016-02-23 | 2017-08-24 | Kind Troll Inc. | Method And System For Computer-Aided Stateful Live-Action Game Play |
CN110704133A (en) * | 2019-09-11 | 2020-01-17 | 北京控制工程研究所 | Satellite subpackage remote control receiving control method based on finite-state machine |
CN111007536A (en) * | 2019-12-11 | 2020-04-14 | 西安中科天塔科技股份有限公司 | Automatic satellite remote control method, device and system |
-
2021
- 2021-06-01 CN CN202110610591.4A patent/CN113364515B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020075328A1 (en) * | 2000-12-15 | 2002-06-20 | Frederic Letzelter | Contextual and dynamic command navigator for CAD and related systems |
US20060100752A1 (en) * | 2004-11-11 | 2006-05-11 | In-Jun Kim | Automatic operation system and method for automating satellite control operation and satellite ground control system using the same |
US20070258511A1 (en) * | 2006-05-03 | 2007-11-08 | Knight Jerry E | Adaptive code generator for satellite navigation receivers |
US20120127011A1 (en) * | 2010-11-24 | 2012-05-24 | Industrial Technology Research Institute | Method, System and Devices for Remote Control and Be-Controlled |
US20170245098A1 (en) * | 2016-02-23 | 2017-08-24 | Kind Troll Inc. | Method And System For Computer-Aided Stateful Live-Action Game Play |
CN110704133A (en) * | 2019-09-11 | 2020-01-17 | 北京控制工程研究所 | Satellite subpackage remote control receiving control method based on finite-state machine |
CN111007536A (en) * | 2019-12-11 | 2020-04-14 | 西安中科天塔科技股份有限公司 | Automatic satellite remote control method, device and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242287A (en) * | 2022-01-04 | 2022-10-25 | 北京电子工程总体研究所 | Ground measurement, operation and control method and system for satellite constellation |
CN114648869A (en) * | 2022-03-10 | 2022-06-21 | 东方电子股份有限公司 | Remote control instruction operation method for electric power protection measurement and control device |
CN117081658A (en) * | 2023-09-27 | 2023-11-17 | 中国人民解放军32039部队 | Automatic generation method and device for remote control operation script of communication satellite payload |
CN117081658B (en) * | 2023-09-27 | 2024-05-17 | 中国人民解放军32039部队 | Automatic generation method and device for remote control operation script of communication satellite payload |
Also Published As
Publication number | Publication date |
---|---|
CN113364515B (en) | 2023-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113364515B (en) | Satellite remote control method, device, equipment and storage medium based on Xstate | |
CN110795078B (en) | Architecture method of APP engineering operation system based on IOS system | |
CN101930400B (en) | SDK (Software Development Kit) automatic test system and method | |
CN104407973A (en) | Method and device for realizing automatic unit test | |
CN105159170A (en) | Console system suitable for multi-satellite parallel test | |
CN101719097A (en) | Debug method and system of automation test script and automation application server | |
CN111026670B (en) | Test case generation method, test case generation device and storage medium | |
CN113190443A (en) | Test method, test device, computer equipment and storage medium | |
CN104731566A (en) | Testing device, method and system for IDE (Integrated Development Environment) | |
CN112231228A (en) | Firmware upgrade test method, device, platform, equipment and storage medium | |
CN111695827A (en) | Business process management method and device, electronic equipment and storage medium | |
CN111782513A (en) | Satellite ground universal automatic test method based on DLL | |
CN112905441A (en) | Test case generation method, test method, device and equipment | |
CN109634734A (en) | Automatic compiling dissemination method, device and computer readable storage medium | |
KR101449201B1 (en) | Automatic software test system for steel processing | |
CN117252559B (en) | Business process processing method, device, computer equipment and storage medium | |
CN113094251A (en) | Embedded system testing method and device, computer equipment and storage medium | |
KR101689984B1 (en) | Programmable controller, programmable controller system, and execute error information creation method | |
CN110716943A (en) | Missing data additional recording method and device, computer equipment and storage medium | |
CN112596651B (en) | Acceptance method, device, equipment and storage medium for power distribution terminal debugging | |
CN116069334B (en) | Cloud-protogenesis-based online development and code hosting method and system | |
CN114398290B (en) | Program debugging method, device, equipment and medium | |
CN114237634A (en) | Application release risk identification method, device, equipment, medium and program product | |
CN111190725B (en) | Task processing method, device, storage medium and server | |
CN113791977A (en) | Code development processing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |