Embedded evaluation system based on rule engine and virtual simulation
Through the embedded evaluation system based on the rules engine and virtual simulation, the existing embedded system evaluation methods are solved, and efficient and flexible embedded system evaluation is realized, which can simulate complex operating environments and improve the comprehensiveness and accuracy of the evaluation.
Patent Information
- Application Number
- CN202411715127.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-11-27
AI Technical Summary
The existing embedded system evaluation methods are costly and have a long cycle, making it difficult to cover all possible operating scenarios and boundary conditions. The flexibility of traditional evaluation tools is poor, making it difficult to meet the evaluation needs of complex embedded systems.
The embedded evaluation system based on rules engine and virtual simulation is adopted. The behavior of embedded devices and circuit systems is simulated through the simulation model module. The rule engine module monitors the simulation process in real time and judges the system status based on preset rules. The user front-end module configures simulation models and evaluation rules, and displays simulation phenomena and outputs evaluation results.
It realizes comprehensive evaluation of embedded systems without the need for actual hardware, reduces evaluation costs, improves evaluation efficiency and flexibility, can simulate complex and extreme operating environments, and improves the comprehensiveness and accuracy of evaluation.
Smart Images

Figure CN119690033A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual simulation systems, and in particular to an embedded evaluation system based on a rule engine and virtual simulation. Background Art
[0002] With the widespread application of embedded systems in various industries, such as industrial automation, automotive electronics, medical equipment, etc., the requirements for their performance and reliability are increasing. Traditional embedded system evaluation methods often rely on the construction of physical hardware and actual operation tests. This method is not only costly and time-consuming, but also difficult to cover all possible operation scenarios and boundary conditions. In addition, the evaluation content of traditional embedded simulation evaluation tools is simple or single, and the evaluation function points cannot be flexibly configured according to user needs. When the embedded system becomes complex or needs to evaluate function points with certain logical associations, traditional embedded evaluation tools are difficult to meet the requirements, and evaluators need to spend a lot of time and energy to organize the evaluation results.
[0003] Therefore, it is of great significance to develop an embedded evaluation system based on rule engine and virtual simulation. Summary of the invention
[0004] In order to solve the problems existing in the prior art, the purpose of the present invention is to provide an embedded evaluation system based on a rule engine and virtual simulation to solve the problems of high cost, long cycle and poor flexibility of embedded system evaluation in the prior art.
[0005] The present invention achieves the above-mentioned purpose through the following technical solutions:
[0006] An embedded evaluation system based on rule engine and virtual simulation, comprising:
[0007] The simulation model module is used to simulate the behavior of embedded devices and their circuit systems, and provide a virtual test environment to simulate different hardware conditions, input signals and fault conditions;
[0008] A rule engine module is used to trigger actions or make intelligent decisions according to preset rules; wherein the rule engine module monitors the data in the simulation process in real time and determines whether the circuit system is in a normal working state according to the rules;
[0009] User front-end module, through which the simulation model is configured, evaluation rules are defined, simulation phenomena are displayed, and evaluation results are output;
[0010] Wherein, before the simulation starts, the simulation model module sends all basic rules of the microcontroller and electronic module involved in the simulation to the rule engine module to form a rule base;
[0011] When the simulation starts, the simulation model module starts to simulate the circuit system according to the user configuration. The rule engine module monitors the data in the simulation process in real time, matches it with the rules in the rule base, and determines whether the circuit system is working normally.
[0012] According to an embedded evaluation system based on rule engine and virtual simulation provided by the present invention, the simulation model module realizes the simulation operation of microcontrollers, sensors, actuators, and electronic circuits through virtualization software.
[0013] According to an embedded evaluation system based on a rule engine and virtual simulation provided by the present invention, the simulation model is configured as a device for adding a logical interface to a code fragment of a key behavior, and the logical interface is configured to send data to a user front-end module and a rule engine module; wherein, through the data sent by the logical interface, a real-time display of simulation phenomena and real-time tracking results of simulation events are obtained, and the operating status of the simulation system is monitored and analyzed.
[0014] According to an embedded evaluation system based on rule engine and virtual simulation provided by the present invention, the rule engine module includes:
[0015] The rule base module is used to store all business rules;
[0016] The rule execution module is used to define logical conditions and corresponding actions;
[0017] The fact acquisition module is used to obtain data input into the rule engine in real time;
[0018] The reasoning module is used to match rules and execute corresponding actions based on the rule set and facts in the working memory.
[0019] According to an embedded evaluation system based on rule engine and virtual simulation provided by the present invention, the user front-end module includes:
[0020] Simulation building module, used to support users to build circuits and write codes;
[0021] The rule definition module provides a graphical rule definition interface to support user-defined evaluation rules;
[0022] Simulation display module, used to display simulation phenomena;
[0023] The evaluation result display module is used to output the evaluation results.
[0024] According to an embedded evaluation system based on a rule engine and virtual simulation provided by the present invention, the simulation building module is configured to allow the construction of a required circuit diagram before the evaluation process begins, and the circuit diagram includes at least one microcontroller and various electronic modules and components connected thereto; wherein the constructed circuit information is automatically sent to the simulation model so that the simulation model can start and configure corresponding components for simulation operation based on this information.
[0025] According to an embedded evaluation system based on a rule engine and virtual simulation provided by the present invention, before the evaluation starts, the embedded code is written or uploaded through a specified interface. The system has a built-in GCC compiler for compiling the embedded code provided by the user into an executable program; when the simulation is officially started, the GDB interface integrated in the system is responsible for loading the compiled executable program into a virtual microcontroller to simulate the program execution process in a real environment.
[0026] According to an embedded evaluation system based on rule engine and virtual simulation provided by the present invention, the rule definition module specifically includes:
[0027] Nodes and connecting lines. Nodes are used to represent the basic units of rules, conditions or actions, and connecting lines are used to represent the logical relationship between nodes.
[0028] Allows you to select rules from the preset rule library and add corresponding nodes in the rule definition module according to the selected rules;
[0029] Provides a user interface to specify conditions for added nodes and define actions to be performed when the conditions are met. These conditions and actions are set in the form of node attributes;
[0030] Allows drag-and-drop and connection operations, and flexible use of connection lines in the graphical interface to connect various nodes according to logical relationships to form a complete evaluation rule process;
[0031] Provides editing function to modify the properties of each node directly in the graphical interface;
[0032] After completing the addition, connection and property setting of nodes, the corresponding evaluation rules are automatically generated and saved, and the evaluation rules can be executed based on the graphically defined structure and logic.
[0033] According to an embedded evaluation system based on rule engine and virtual simulation provided by the present invention, data is exchanged between the simulation model module, the rule engine module and the user front-end module through a network protocol to achieve communication and collaboration between the modules.
[0034] According to an embedded evaluation system based on rule engine and virtual simulation provided by the present invention, the network protocol supports the simulation model module to send the real-time data generated during the simulation process to the rule engine module for rule matching and intelligent decision-making, and also supports the rule engine module to feed back the decision results or triggered action instructions to the simulation model module to adjust the simulation behavior;
[0035] The network protocol also ensures that the user front-end module can communicate bidirectionally with the simulation model module and the rule engine module. On the one hand, it receives and displays the simulation phenomena and status information sent by the simulation model module, and on the other hand, it allows the user to configure simulation parameters, define or modify evaluation rules through the front-end interface, and send these configurations and rules to the corresponding modules through the network protocol for execution.
[0036] It can be seen that compared with the prior art, the system provided by the present invention has the following beneficial effects:
[0037] 1. The present invention uses virtual simulation technology to conduct a comprehensive evaluation of the embedded system without purchasing actual hardware, which greatly reduces the evaluation cost.
[0038] 2. The virtual simulation environment provided by the present invention can be quickly built and modified, and the evaluation scene and parameters can be quickly adjusted to improve the evaluation efficiency.
[0039] 3. The evaluation system based on the rule engine of the present invention can dynamically adjust the evaluation rules and processes according to different evaluation requirements, thereby realizing flexible configuration of the evaluation process.
[0040] 4. The virtual simulation technology of the present invention can simulate extreme and complex operating environments, help evaluators discover potential problems and defects, and improve the comprehensiveness and accuracy of the evaluation.
[0041] 5. The present invention separates the simulation model, rule engine and user front end according to their functions, and interacts and collaborates through the network. This modular design can improve the system's performance, flexibility, scalability, fault tolerance, etc. When users need to upgrade a function or add an extension, there is no need to redevelop the entire system.
[0042] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a principle diagram of an embodiment of an embedded evaluation system based on rule engine and virtual simulation of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0046] See also Figure 1 The present invention provides an embedded evaluation system based on rule engine and virtual simulation, comprising:
[0047] The simulation model module is used to simulate the behavior of embedded devices and their circuit systems, and provide a virtual test environment to simulate different hardware conditions, input signals and fault conditions, so that the system can perform functional verification and performance evaluation without the need for real embedded hardware.
[0048] The rule engine module is used to trigger actions or make intelligent decisions according to preset rules. The rule engine module monitors the data in the simulation process in real time and determines whether the circuit system is in a normal working state according to the rules. It can be seen that the rule engine module is the decision-making core of the entire system. It tracks the data and events in the simulation environment and triggers actions or makes intelligent decisions according to preset rules.
[0049] User front-end module, through which the simulation model is configured, evaluation rules are defined, simulation phenomena are displayed, and evaluation results are output.
[0050] Wherein, before the simulation starts, the simulation model module sends all basic rules of the microcontroller and electronic modules involved in the simulation to the rule engine module to form a rule base;
[0051] When the simulation starts, the simulation model module starts to simulate the circuit system according to the user configuration. The rule engine module monitors the data in the simulation process in real time, matches it with the rules in the rule base, and determines whether the circuit system is working normally.
[0052] In this embodiment, the simulation model module realizes the simulation operation of the microcontroller, sensor, actuator, and electronic circuit through virtualization software.
[0053] In this embodiment, the simulation model is configured as a device for adding a logical interface to the code fragment of the key behavior, and the logical interface is configured to send data to the user front-end module and the rule engine module; wherein, the data sent through the logical interface obtains the real-time display of the simulation phenomenon and the real-time tracking results of the simulation event, so as to monitor and analyze the running status of the simulation system.
[0054] Specifically, an embedded device is a device that integrates a dedicated circuit system and software. Its hardware part usually includes a microcontroller, sensors, actuators and other electronic circuits, and its software part is usually an executable program running on a microcontroller.
[0055] In order to simulate embedded devices, the simulation model uses various virtualization software to realize the simulation operation of microcontrollers, sensors, actuators, and electronic circuits. For example, QEMU can be used to simulate microcontrollers, and the embedded code can be compiled into executable programs through GCC, and the executable programs on the microcontroller can be loaded into QEMU using the GDB interface; programming tools such as SystemC, SystemC-AMS, SPICE, and C++ can be used to realize the simulation of sensors, actuators, and basic electronic circuits (resistors, capacitors, diodes, transistors, power supplies, switches, etc.).
[0056] Since the simulation model realizes the simulation of all controller behaviors and electronic signals, users can add logical interfaces to the code snippets of key behaviors, which can send data to the user front end and the rule engine, thereby realizing real-time display of simulation phenomena and real-time tracking of simulation events. Before the simulation starts, the simulation model will send all the basic rules of the microcontrollers and electronic modules involved in the simulation to the rule engine to form a rule base.
[0057] In order to meet the needs of user operations, the simulation model must also have other interfaces for interacting with the user front end, so as to realize functions such as running simulation, stopping simulation, configuring circuits, modifying codes, and compiling codes.
[0058] In this embodiment, the rule engine module is a system that can execute business rules. It automatically makes decisions based on input data by parsing predefined rule sets. The rule engine can separate business logic (evaluation content) from application (simulation software) code, so that business rules (evaluation targets) can be flexibly defined, modified and executed. There are many common rule engines that can implement these functions, such as Drools, Jess, Easy Rules, etc. In order to realize the evaluation of embedded simulation models, the rule engine module needs to have the following core modules:
[0059] The rule base module is used to store all business rules. After the user configures the circuit information of the simulation model, the simulation model will send the basic rules that are allowed to be loaded in this evaluation to the rule engine. For example, if the user adds button 1 to the circuit, the simulation model will tell the rule engine that the basic rules that can be added include "button 1 pressed" and "button 1 popped up", and the rule engine will save these basic rules one by one in the rule base.
[0060] The module for executing rules is used to define logical conditions and corresponding actions. Among them, rules are usually conditional expressions composed of "if-then" statements. For example, "If button 1 is pressed, LED 1 lights up". This function can be used to evaluate whether the functions of button 1 and LED 1 are normal. Before the evaluation function starts, users can use the rule definition module provided by the front end to select several basic rules from the rule library on the graphical interface according to actual needs, and then combine them into a rule set (evaluation target).
[0061] The fact acquisition module is used to obtain data input into the rule engine in real time (simulation model data and user interaction data), and the rule engine will evaluate the rules based on this data, such as whether button 1 is pressed or released, whether LED 1 is on or off, etc.
[0062] The reasoning module is used to match rules and execute corresponding actions based on the rule set and facts in the working memory. The reasoning engine determines which rules need to be triggered through the reasoning process, and finally the rule engine sends the triggered information to the user front end for display.
[0063] In this embodiment, the main function of the user front end is to provide users with a friendly interactive interface, so that users can easily configure simulation content, define evaluation rules, observe simulation scenes, and analyze evaluation results. There are many development tools that can implement these functions, such as using C++ or C# to develop Windows-based applications, and using JavaScript to develop browser-based Web applications. Specifically, the user front end needs to include the following functional modules:
[0064] The simulation building module is used to support users to build circuits and write codes on the front-end interface according to their own needs.
[0065] The rule definition module provides a graphical rule definition interface to support users to define evaluation rules, thereby reducing the difficulty of use for embedded developers and university teachers. After the rule definition is completed, the defined information will be sent to the rule engine. After the evaluation is started, the reasoning module of the rule engine will compare the information with the facts.
[0066] The simulation display module is used to display simulation phenomena. After running the simulation or starting the evaluation, the simulation front end will start the simulation display module. At this time, the simulation model will continuously send simulation phenomena to the user front end, such as "led1 lights up", and the simulation front end needs to display these phenomena to the simulation display module in real time. In addition, the simulation display module also provides an interface that supports user interaction so that users can inject events into the simulation model. For example, the user needs to send the "button 1 pressed, popped up" event to the simulation model.
[0067] The evaluation result display module is used to output the evaluation results. After the evaluation starts, the simulation model will continuously send simulation behavior information to the rule engine, and the rule engine will compare this information in real time. When the rule engine finds that the simulation facts can meet the user-defined rules, it will send the reasoning results to the user front end. This information can be displayed in the evaluation result display module during or after the evaluation.
[0068] In this embodiment, the simulation construction module is configured to allow the construction of the required circuit diagram before the evaluation process begins, and the circuit diagram includes at least one microcontroller and various electronic modules and components connected thereto; wherein the constructed circuit information is automatically sent to the simulation model so that the simulation model can start and configure the corresponding components for simulation operation based on this information.
[0069] In this embodiment, before the evaluation begins, the embedded code is written or uploaded through the specified interface. The system has a built-in GCC compiler for compiling the embedded code provided by the user into an executable program. When the simulation is officially started, the system-integrated GDB interface is responsible for loading the compiled executable program into the virtual microcontroller to simulate the program execution process in a real environment.
[0070] It can be seen that users need to build the required circuit diagram before the evaluation starts, including the microcontroller and various electronic modules and components. The completed circuit information will be sent to the simulation model, and the simulation model will start the relevant components according to the specific information. Users also need to write or upload embedded code before the evaluation starts, and then use the system's GCC to compile the embedded code into an executable program. After the simulation starts, the GDB interface will load the executable program into the virtual microcontroller for execution.
[0071] In this embodiment, the rule definition module specifically includes:
[0072] Nodes and connecting lines. Nodes are used to represent the basic units of rules, conditions or actions, and connecting lines are used to represent the logical relationship between nodes.
[0073] It allows you to select rules from the preset rule library and add corresponding nodes in the rule definition module according to the selected rules.
[0074] Provides a user interface to specify conditions for the added nodes and define the actions to be performed when the conditions are met. These conditions and actions are set in the form of node attributes.
[0075] It allows drag-and-drop and connection operations, and flexibly uses connection lines in the graphical interface to connect various nodes according to logical relationships to form a complete evaluation rule process.
[0076] Provides editing function to modify the properties of each node directly in the graphical interface.
[0077] After completing the addition, connection and property setting of nodes, the corresponding evaluation rules are automatically generated and saved, and the evaluation rules can be executed based on the graphically defined structure and logic.
[0078] It can be seen that in the graphical rule definition module, the main graphical elements displayed are nodes and connecting lines. Each node represents a basic unit of a rule, condition or action, and each connecting line represents the logical relationship between nodes. Users can obtain rules from the previous rule library, add conditions and actions, and then add nodes to the rule definition module, and then connect these nodes with connecting lines. Users can also modify the properties of each node (such as condition judgment, action parameters, etc.) to finally form evaluation rules.
[0079] In this embodiment, the simulation model module, the rule engine module and the user front-end module perform data exchange through a network protocol to achieve communication and collaboration between the modules.
[0080] Among them, the network protocol supports the simulation model module to send the real-time data generated during the simulation process to the rule engine module for rule matching and intelligent decision-making. It also supports the rule engine module to feed back the decision results or triggered action instructions to the simulation model module to adjust the simulation behavior. The network protocol also ensures that the user front-end module can communicate with the simulation model module and the rule engine module in a two-way manner. On the one hand, it receives and displays the simulation phenomena and status information sent by the simulation model module. On the other hand, it allows users to configure simulation parameters, define or modify evaluation rules through the front-end interface, and send these configurations and rules to the corresponding modules through the network protocol for execution. For example, TCP, HTTP, MQTT, WebSocket and other protocols can be used for data exchange between the simulation model module, the rule engine module and the user front-end module.
[0081] In practical applications, this embodiment also provides an application method of an embedded evaluation system based on a rule engine and virtual simulation, including:
[0082] 1. Build the circuit: Use the user front end to build the circuit of the embedded device, including the embedded microcontroller, various peripheral electronic modules and components, and then save it.
[0083] 2. Write code: Use the user front end to write embedded code, and then compile the program to ensure that the program can run normally.
[0084] 3. Simulation operation: Use the simulation function provided by the system to run the embedded simulation system and observe whether the execution effect of the embedded system meets the evaluation requirements. If not, the circuit and code can be modified until the requirements are met.
[0085] 4. Define rules: Open the rule definition module on the user front end and define the evaluation rules. Rules are usually defined based on conditions such as device status, communication data, user input, etc., and trigger conditions and subsequent actions can be set.
[0086] 5. Start the evaluation: Run the evaluation and observe the simulation phenomenon. The evaluation system will automatically execute the simulation and rule engine according to the evaluation rules set by the user, and record the evaluation results. When the simulation model module generates new events or data, the rule engine will automatically evaluate this information, determine whether the triggering conditions of certain rules are met, and perform corresponding actions (such as controlling devices, sending notifications, generating reports, etc.). The system supports dynamic loading or modification of rules at runtime, which is convenient for users to debug and optimize during the simulation process.
[0087] 6. Observation results: The system ends the evaluation (timed stop, automatic stop when the rules are met, manual stop), and displays the evaluation results in the evaluation result display module on the user front end.
[0088] In summary, most simulation tools on the market currently have serious scripting problems and single simulation functions. For example, they can only support a small number of microcontrollers or do not support user free programming, and do not support free circuit construction. The present invention adopts open source general computer simulation and virtualization tools QEMU, industrial-grade electronic circuit simulation frameworks SystemC, System-AMS, SPICE, etc., which are powerful and can realize the simulation of complex and large embedded systems. The connection between electronic modules is not restricted, and the simulation of controller instruction level and electronic signal timing level can be supported.
[0089] Furthermore, the traditional electronic circuit simulation model does not have an automatic evaluation function, has few evaluation functions, or the evaluation task does not support arbitrary modification by the user. For large embedded systems with complex evaluation targets, the burden on the evaluator is still very large. The present invention combines the rule engine technology to achieve the separation of business logic (evaluation content) and application (simulation software) code, so that business rules (evaluation targets) can be flexibly defined, modified and executed, which is more suitable for the automated evaluation of large and complex embedded systems. After the embedded simulation circuit is built, the evaluation engine automatically obtains the basic rules of all simulation modules, and the user freely matches the required evaluation functions in the rule base. The user's operation will not affect the simulation model, and the evaluator does not need to care about the technical implementation of the embedded system and the simulation system.
[0090] Furthermore, the evaluation function points on the traditional embedded evaluation system must be implemented by the simulation model developers, because these evaluation function codes are coupled with the simulation model codes, and other developers cannot intervene, which makes the simulation model codes more complicated and bloated and difficult to maintain. The present invention realizes the separation of business logic (evaluation content) and application program (simulation software) codes, and the two do not affect each other, can be developed in parallel and maintained separately, and when the function of one side needs to be upgraded, it will not affect the other side. The developers responsible for the rule engine do not need to care about the implementation method of the simulation model, which greatly reduces the development threshold and development time of the system.
[0091] Furthermore, traditional computer software integrates the simulation model, rule engine and user front end together, while the present invention separates the three according to their functions and interacts and collaborates through the network. This modular design can improve the performance, flexibility, scalability, fault tolerance, etc. of the system. When the user needs to upgrade a function or add an extension, there is no need to redevelop the entire system.
[0092] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.
[0093] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.
Claims
1. An embedded evaluation system based on rule engine and virtual simulation, characterized in that: include: The simulation model module is used to simulate the behavior of embedded devices and their circuit systems, and provide a virtual test environment to simulate different hardware conditions, input signals and fault conditions; A rule engine module is used to trigger actions or make intelligent decisions according to preset rules; wherein the rule engine module monitors the data in the simulation process in real time and determines whether the circuit system is in a normal working state according to the rules; User front-end module, through which the simulation model is configured, evaluation rules are defined, simulation phenomena are displayed, and evaluation results are output; Wherein, before the simulation starts, the simulation model module sends all basic rules of the microcontroller and electronic module involved in the simulation to the rule engine module to form a rule base; When the simulation starts, the simulation model module starts to simulate the circuit system according to the user configuration. The rule engine module monitors the data in the simulation process in real time, matches it with the rules in the rule base, and determines whether the circuit system is working normally.
2. The system according to claim 1, characterized in that: The simulation model module realizes the simulation operation of microcontrollers, sensors, actuators, and electronic circuits through virtualization software.
3. The system according to claim 1, characterized in that: The simulation model is configured as a device for adding a logical interface to the code fragment of key behaviors, and the logical interface is configured to send data to the user front-end module and the rule engine module; wherein, the data sent through the logical interface obtains the real-time display of the simulation phenomenon and the real-time tracking results of the simulation event, and the operating status of the simulation system is monitored and analyzed.
4. The system according to claim 1, characterized in that: The rule engine module includes: The rule base module is used to store all business rules; The rule execution module is used to define logical conditions and corresponding actions; The fact acquisition module is used to obtain data input into the rule engine in real time; The reasoning module is used to match rules and execute corresponding actions based on the rule set and facts in the working memory.
5. The system according to claim 1, characterized in that: The user front-end module comprises: Simulation building module, used to support users to build circuits and write codes; The rule definition module provides a graphical rule definition interface to support user-defined evaluation rules; Simulation display module, used to display simulation phenomena; The evaluation result display module is used to output the evaluation results.
6. The system according to claim 5, characterized in that: The simulation construction module is configured to allow the construction of the required circuit diagram before the evaluation process begins, and the circuit diagram includes at least one microcontroller and various electronic modules and components connected thereto; wherein the constructed circuit information is automatically sent to the simulation model so that the simulation model can start and configure the corresponding components for simulation operation based on this information.
7. The system according to claim 5, characterized in that: Before the evaluation begins, the embedded code is written or uploaded through the specified interface. The system has a built-in GCC compiler, which is used to compile the embedded code provided by the user into an executable program. When the simulation is officially started, the system-integrated GDB interface is responsible for loading the compiled executable program into the virtual microcontroller to simulate the program execution process in a real environment.
8. The system according to claim 5, characterized in that: The rule definition module specifically includes: Nodes and connecting lines. Nodes are used to represent the basic units of rules, conditions or actions, and connecting lines are used to represent the logical relationship between nodes. Allows you to select rules from the preset rule library and add corresponding nodes in the rule definition module according to the selected rules; Provides a user interface to specify conditions for added nodes and define actions to be performed when the conditions are met. These conditions and actions are set in the form of node attributes; Allows drag-and-drop and connection operations, and flexible use of connection lines in the graphical interface to connect various nodes according to logical relationships to form a complete evaluation rule process; Provides editing function to modify the properties of each node directly in the graphical interface; After completing the addition, connection and property setting of nodes, the corresponding evaluation rules are automatically generated and saved, and the evaluation rules can be executed based on the graphically defined structure and logic.
9. The system according to any one of claims 1 to 8, characterized in that: The simulation model module, the rule engine module and the user front-end module perform data interaction through a network protocol to achieve communication and collaboration between the modules.
10. The system according to any one of claims 1 to 8, characterized in that: The network protocol supports the simulation model module to send the real-time data generated during the simulation process to the rule engine module for rule matching and intelligent decision-making, and also supports the rule engine module to feed back the decision results or triggered action instructions to the simulation model module to adjust the simulation behavior; The network protocol also ensures that the user front-end module can communicate bidirectionally with the simulation model module and the rule engine module. On the one hand, it receives and displays the simulation phenomena and status information sent by the simulation model module, and on the other hand, it allows the user to configure simulation parameters, define or modify evaluation rules through the front-end interface, and send these configurations and rules to the corresponding modules through the network protocol for execution.
Citation Information
Patent Citations
Extensible embedded simulation test system
CN102681941A
Hardware based network simulation system and method
CN104954166A
Embedded software testing method and system based on DSP
CN111611167A
Configurable automatic test method and system based on embedded simulation verification software
CN112084113A
Lightweight embedded 3D simulation method and system
CN117216951A
Cited By
Sensor and ECU simulation system and method based on multi-protocol fusion
CN121722107A
A sensor and ECU simulation system and method based on multi-protocol fusion
CN121722107B