Mechanism model embedded multi-level state machine refined modeling simulation and visualization method

By embedding mechanism models in the state machine model and using simulation results to judge state flow in real time, the existing state machine model has solved the problems of poor response capabilities and high maintenance costs in the face of dynamic changes, and achieved more efficient state machine simulation and A wider range of adaptation.

CN119442606APending Publication Date: 2025-02-14BEIJING GONGGONG DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411440612.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When faced with dynamic changes and complex systems, existing state machine models are difficult to accurately represent and process, resulting in poor response capabilities and high maintenance costs.

Method used

The multi-level state machine fine modeling simulation and visualization method embedded in the mechanism model is used to drive the state machine state switching through the mechanism model, and the simulation results are used to dynamically judge the state flow in real time.

Benefits of technology

It improves the state machine's response ability to dynamic changes, reduces maintenance costs, enhances simulation accuracy, and adapts to the transformation of task scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119442606A_ABST
    Figure CN119442606A_ABST
Patent Text Reader

Abstract

The invention provides a mechanism model embedded multi-level state machine refined modeling simulation and visualization method, and relates to the technical field of digital twin modeling simulation. The mechanism model embedded multi-level state machine refined modeling simulation and visualization method comprises the following steps: step 1, constructing a state machine model; 2, constructing a complex mechanism model; step 3, constructing a visual model; step 4, constructing a logic interaction relationship between the mechanism model and the state machine model; and step 5, mechanism model driving visualization is carried out. In the invention, the model drives the state machine, the state switching logic of the state machine and the switching time point are judged according to the mechanism model simulation result, the state switching is carried out when the mechanism model simulation meets the preset requirement, the state switching is more accurate, and the task scene change is more accurate. And the rapid conversion of the state machine can be realized only by modifying a mechanism model driving scene or rapidly iterating scene conversion, and the state machine does not need to be reconstructed, so that the application range is wider.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital twin modeling and simulation, and specifically to a multi-level state machine refined modeling, simulation and visualization method with embedded mechanism model. Background Art

[0002] State machine modeling is a modeling tool that uses state diagrams and equations to create mixed-signal finite state machine models. It is mainly used to describe the state sequence that an object goes through during its life cycle and how it responds to various events from the outside world. In industrial production, state machine modeling is used to describe and control the workflow of various devices to ensure that the devices can operate according to the predetermined state sequence. With the continuous development of computer technology and the continuous expansion of its application fields, state machine modeling has gradually become an important modeling tool. It can not only help designers better understand and control system behavior, but also improve the reliability and maintainability of the system.

[0003] With the rise of technologies such as the Internet of Things and artificial intelligence, the application scope of state machine modeling is also expanding. For example, in smart home systems, state machine modeling can be used to describe and control the working status of various smart devices; in autonomous driving systems, state machine modeling can be used to describe the behavior decisions of vehicles in different driving scenarios, etc.

[0004] But state machine models are usually based on static, predefined states and transition rules. However, in actual applications, the system may encounter some unforeseen situations or changes in requirements. These dynamic changes may be difficult to accurately represent and handle in the state machine model. When the state machine model becomes complex, its implementation and maintenance may become very difficult. Developers need to invest a lot of time and effort to ensure the correctness and stability of the model. In addition, when system requirements change, the entire state machine model may need to be redesigned and implemented.

[0005] Therefore, those skilled in the art provide a multi-level state machine refined modeling, simulation and visualization method with embedded mechanism model to solve the problems raised in the above background technology. Summary of the invention

[0006] 1. Technical issues to be resolved

[0007] In view of the shortcomings of the prior art, the present invention provides a multi-level state machine refined modeling, simulation and visualization method with embedded mechanism model, which is used to address the shortcomings of the state machine such as poor response capability to dynamic changes and high maintenance cost. A state machine flow method is provided based on the simulation results at a specific moment and real-time dynamic judgment based on predetermined logic, which is used to improve the response capability of tasks and system timing process changes and improve the simulation accuracy of the state machine.

[0008] (II) Technical solution

[0009] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0010] A multi-level state machine refined modeling, simulation and visualization method with embedded mechanism model includes the following processes:

[0011] Step 1. State machine model construction;

[0012] Step 2. Complex mechanism model construction;

[0013] Step 3. Visual model construction;

[0014] Step 4. Construct a logical interaction relationship between the mechanism model and the state machine model;

[0015] Step 5. Mechanistic model-driven visualization.

[0016] Furthermore, the state machine model construction in step 1 specifically includes:

[0017] 1) According to the requirements of the task scenario, set the overall state machine including the process framework, clarify all events that can trigger state transitions, define corresponding trigger conditions for events, trigger the state machine state change when one or more conditions are met, and output the actions that need to be performed for state transition in the form of data when the state transition occurs;

[0018] 2) Use state diagrams to visually represent the relationships between states, events, and transition rules. Use state nodes and transition edges to represent different states of the system and the transition conditions between states. For the completed state machine model, test it with simple instructions to ensure that the state machine model can correctly respond to state changes.

[0019] Furthermore, the construction of the complex mechanism model in step 2 specifically includes:

[0020] 1) Analyze the task scenario to obtain the specific system model involved in the task scenario, clarify the interactive interface relationship between the system models, and preliminarily form the system model framework and system interface information;

[0021] 2) Fill in the mechanism for the formed system model framework, determine the granularity of the mechanism model according to the task scenario, task objectives, task process, timing relationship, etc., refine the model for key indicators to form a high-precision mechanism model, simplify the models related to auxiliary indicators, ensure the efficiency of model simulation, and form a complete closed loop of the system model.

[0022] Furthermore, the step 2 also includes: the system model should retain the interface of event-related parameters, such as the data interface of the driving state and related variables, the interface for receiving state change feedback information, and connect the state information to the closed loop of the mechanism model.

[0023] Furthermore, the visualization model construction of step 3 specifically includes: describing the scene according to the mechanism model, constructing two-dimensional and three-dimensional visualization display scenes through dynamic components and CAD models of objects, so as to intuitively display the operation process of the task scene.

[0024] Furthermore, the logical interaction relationship between the mechanism model and the state machine model in step 4 specifically includes: connecting the key indicator interface model of the mechanism model to the state machine model, the state machine model determines the task stage status according to the corresponding status of the indicator, switches the state when the indicator meets the state machine switching logic, and transmits the state characteristic value to the mechanism model to drive the mechanism model to change the stage, realize the mechanism model driving the state machine switching, and close the mechanism model loop with real-time state feedback.

[0025] Furthermore, the mechanism model driven visualization in step 5 specifically includes: driving the visualization component to perform real-time display through the real-time simulation results of the mechanism model, and intuitively displaying the real-time status of the scene.

[0026] (III) Beneficial effects

[0027] The present invention provides a multi-level state machine refined modeling simulation and visualization method with embedded mechanism model. It has the following beneficial effects:

[0028] 1. The present invention provides a multi-level state machine refined modeling, simulation and visualization method with a mechanism model embedded. The state machine is driven by the model, and the state machine state switching logic and switching time point are judged by the mechanism model simulation results. When the mechanism model simulation meets the preset requirements, the state switching is performed, and the state switching is more accurate.

[0029] 2. The present invention provides a multi-level state machine refined modeling, simulation and visualization method with embedded mechanism model. For task scenario changes, it is only necessary to modify the mechanism model-driven scenario or quickly iterate the scenario change to achieve rapid state machine conversion, without the need for state machine reconstruction, and has a wider range of adaptability.

[0030] 3. The present invention provides a multi-level state machine refined modeling, simulation and visualization method with embedded mechanism model, which is used to address the shortcomings of the state machine, such as poor response capability to dynamic changes and high maintenance cost. A state machine flow method is provided based on the simulation results at a specific moment and real-time dynamic judgment based on predetermined logic, which is used to improve the response capability of tasks and system timing process changes and improve the simulation accuracy of the state machine. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a general process flow chart of the present invention;

[0032] Figure 2 It is a state machine model diagram of the present invention;

[0033] Figure 3 It is the mechanism model diagram of the present invention;

[0034] Figure 4 It is a state diagram for visualizing the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the specific embodiments of the present invention to clearly and completely describe the technical solutions in the specific embodiments of the present invention. Obviously, the specific embodiments described are only part of the specific embodiments of the present invention, not all of the specific embodiments. Based on the specific embodiments of the present invention, all other specific embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] The specific implementation of the present invention provides a multi-level state machine refined modeling simulation and visualization method with a mechanism model embedded, including the following process:

[0038] Step 1. State machine model construction;

[0039] 1) According to the requirements of the task scenario, set the overall state machine including the process framework, clarify all events that can trigger state transitions, define corresponding trigger conditions for events, trigger the state machine state change when one or more conditions are met, and output the actions that need to be performed for state transition in the form of data when the state transition occurs;

[0040] 2) Use state diagrams to visually represent the relationship between states, events, and transition rules. Use state nodes and transition edges to represent different states of the system and the transition conditions between states. For the completed state machine model, test it with simple instructions to ensure that the state machine model can correctly respond to state changes.

[0041] Step 2. Complex mechanism model construction;

[0042] 1) Analyze the task scenario to obtain the specific system model involved in the task scenario, clarify the interactive interface relationship between the system models, and preliminarily form the system model framework and system interface information;

[0043] 2) Fill the mechanism of the formed system model framework, determine the granularity of the mechanism model according to the task scenario, task goal, task process, time sequence relationship, etc., refine the model for key indicators to form a high-precision mechanism model, simplify the models related to auxiliary indicators, ensure the efficiency of model simulation, and form a complete closed loop of the system model;

[0044] The system model should retain the interface for event-related parameters, such as the data interface for the driving state and related variables, the interface for receiving feedback information on state changes, and connect the state information to the closed loop of the mechanism model;

[0045] Step 3. Visual model construction;

[0046] Describe the scene according to the mechanism model, and construct two-dimensional and three-dimensional visual display scenes through dynamic components and CAD models to intuitively display the operation process of the task scene;

[0047] Step 4. Construct a logical interaction relationship between the mechanism model and the state machine model;

[0048] The key indicator interface model of the mechanism model is connected to the state machine model. The state machine model determines the task stage status according to the corresponding indicator status. When the indicator meets the state machine switching logic, the state is switched and the state characteristic value is transmitted to the mechanism model to drive the mechanism model to change the stage. The mechanism model drives the state machine switching and the real-time state feedback mechanism model is closed.

[0049] Step 5. Mechanism model driven visualization;

[0050] The real-time simulation results of the mechanism model drive the visualization components for real-time display, intuitively showing the real-time status of the scene.

[0051] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with an example of a satellite communication network. The overall solution architecture is as follows: Figure 1 shown.

[0052] Step 1). In the context of building a satellite communication network, a new satellite is launched to supplement the construction of inter-satellite and satellite-to-ground networks. The overall flow chart is as follows: Figure 2 As shown, the entire process is analyzed, and the construction of the satellite network is divided into multiple states, including: ground launch, satellite-rocket separation, inter-satellite network construction, and satellite-ground network construction;

[0053] A state machine model for the entire mission phase is constructed based on the corresponding systems and processes. The model defines the corresponding interfaces. The satellite separation segment mark is used to determine the launch from the ground to the separation of the satellite and the rocket. The relative positions and distances between satellites and the antenna orientation are used to determine the in-orbit flight of the satellite to the construction of the inter-satellite network after the separation of the satellite and the rocket. The matching of the link construction between the satellite and the ground is determined by the arc segment of the measurement and control area where the satellite is located.

[0054] Step 2). Construct a satellite mechanism model, such as Figure 3 As shown, it includes an energy system, a propulsion system, a GNC system, and a payload system (communication). The energy system is used to perform real-time power on and off control of the equipment. The propulsion system simulates the changes of the satellite from launch to satellite-rocket separation. The GNC system performs satellite attitude and orbit control. The communication system is used to establish inter-satellite and satellite-to-ground communication networks. Key information such as separation status, real-time orbit, and feasibility analysis of the communication network are calculated in real time through the mechanism model.

[0055] Step 3). Build a satellite system visualization interface, which mainly includes the satellite body and satellite sailboard. The visualization can show the status of the sailboard. The sailboard is composed of multiple single boards, which are assembled according to relative positions.

[0056] Step 4). After the simulation starts, the propulsion system is driven by the state machine to send instructions and start fuel calculation. According to the preset active segment flight program, when the propulsion system meets the program time requirements, the rocket separation calculation is performed. When the separation is completed, the flag is passed to the state machine model, and the state machine model switches the state after the rocket and satellite separation;

[0057] The mechanism model performs satellite in-orbit operation and payload work. When the payload establishes a connection with the in-orbit satellite, the state machine model enters the intersatellite network construction stage. When the payload calculates that the satellite cannot establish a communication link or the power supply fails, there is no need to modify the state machine logic. The corresponding stage can be quickly located through the model data. When the GNC outputs orbit data and the payload determines that a communication connection can be established with the corresponding ground station, the state machine model makes a judgment based on the real-time data, switches to the corresponding state information, and feeds back the mechanism model for subsequent state simulation.

[0058] Step 5). Satellite launch, satellite-rocket separation, and inter-satellite network construction can be driven by real-time simulation to visualize the satellite status changes in the corresponding stages.

[0059] In the present invention, the state machine is driven by a model, and the state machine state switching logic and switching time point are judged by the mechanism model simulation results. When the mechanism model simulation meets the preset requirements, the state switching is performed, and the state switching is more accurate.

[0060] In the present invention, for task scenario changes, it is only necessary to modify the mechanism model to drive the scenario or quickly iterate the scenario change to achieve rapid conversion of the state machine, without the need to reconstruct the state machine, and the adaptability is wider.

[0061] In the present invention, a state machine flow method is provided based on the simulation results at a specific moment and real-time dynamic judgment based on predetermined logic to address the shortcomings of the state machine's poor response capability to dynamic changes and high maintenance cost, so as to improve the response capability of tasks and system timing flow changes and improve the simulation accuracy of the state machine.

[0062] Although specific embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the specific embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A multi-level state machine refined modeling simulation and visualization method with embedded mechanism model, characterized in that: The process includes: Step 1. State machine model construction; Step 2. Complex mechanism model construction; Step 3. Visual model construction; Step 4. Construct a logical interaction relationship between the mechanism model and the state machine model; Step 5. Mechanistic model-driven visualization.

2. The multi-level state machine refined modeling simulation and visualization method with embedded mechanism model according to claim 1 is characterized in that: The state machine model construction in step 1 specifically includes: 1) According to the requirements of the task scenario, set the overall state machine including the process framework, clarify all events that can trigger state transitions, define corresponding trigger conditions for events, trigger the state machine state change when one or more conditions are met, and output the actions that need to be performed for state transition in the form of data when the state transition occurs; 2) Use state diagrams to visually represent the relationships between states, events, and transition rules. Use state nodes and transition edges to represent different states of the system and the transition conditions between states. For the completed state machine model, test it with simple instructions to ensure that the state machine model can correctly respond to state changes.

3. The multi-level state machine refined modeling simulation and visualization method with embedded mechanism model according to claim 1 is characterized in that: The construction of the complex mechanism model in step 2 specifically includes: 1) Analyze the task scenario to obtain the specific system model involved in the task scenario, clarify the interactive interface relationship between the system models, and preliminarily form the system model framework and system interface information; 2) Fill in the mechanism for the formed system model framework, determine the granularity of the mechanism model according to the task scenario, task objectives, task process, timing relationship, etc., refine the model for key indicators to form a high-precision mechanism model, simplify the models related to auxiliary indicators, ensure the efficiency of model simulation, and form a complete closed loop of the system model.

4. The multi-level state machine refined modeling simulation and visualization method with embedded mechanism model according to claim 3 is characterized in that: The step 2 also includes: the system model should retain the interface of event-related parameters, such as the data interface of the driving state and related variables, the interface for receiving the feedback information of the state change, and connect the state information to the closed loop of the mechanism model.

5. The multi-level state machine refined modeling simulation and visualization method with embedded mechanism model according to claim 1 is characterized in that: The visualization model construction of step 3 specifically includes: describing the scene according to the mechanism model, constructing two-dimensional and three-dimensional visualization display scenes through dynamic components and CAD models of objects, so as to intuitively display the operation process of the task scene.

6. The multi-level state machine refined modeling simulation and visualization method with embedded mechanism model according to claim 1 is characterized in that: The logical interaction relationship between the mechanism model and the state machine model in step 4 specifically includes: connecting the key indicator interface model of the mechanism model to the state machine model, the state machine model determines the task stage status according to the corresponding status of the indicator, switches the state when the indicator meets the state machine switching logic, and transmits the state characteristic value to the mechanism model to drive the mechanism model to change the stage, realize the mechanism model driving the state machine switching, and close the mechanism model loop with real-time state feedback.

7. The multi-level state machine refined modeling simulation and visualization method with embedded mechanism model according to claim 1 is characterized in that: The mechanism model driven visualization in step 5 specifically includes: driving the visualization component to perform real-time display through the real-time simulation results of the mechanism model, and intuitively displaying the real-time status of the scene.