A general data recording device and recording method for simulation test
Patent Information
- Application Number
- CN202310305800.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-03-27
AI Technical Summary
目前,数据记录装置的设计方法严重依赖模型协议,数据记录装置的程序代码与具体的模型协议紧密耦合,模型协议新增或稍有调整,即会对记录装置造成不良影响,导致记录错误数据,丢失记录数据,甚至数据记录装置宕机,最终严重影响LVC仿真试验效果
[0045]本发明提出的用于仿真试验的通用数据记录装置,能够将具体的、多变的模型协议与通用的、过程性的数据记录装置框架相分离,使得数据记录装置能够自动的根据模型协议调整实现代码,从而解决或缓解数据记录装置与模型协议的严重依赖问题。
Smart Images

Figure CN116466922B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of simulation testing. More specifically, it relates to a general data recording device and method for simulation testing. Background Technology
[0002] LVC simulation experiments involve various interaction standards and architectures, such as the DIS standard (IEEE Std 1278, Distributed Interactive Simulation), the HLA standard (IEEE Std 1516, IEEE Standard for Modeling), and the TENA architecture (Test and Training Enabling Architecture), as well as the OMG DDS specification (Object Management Group Data Distributed Service), which is gradually becoming a research hotspot with the popularization of the Logistics Network. Each architecture or standard specification implies a simulation object model format. For example, DIS uses Protocol Data Units (PDUs), HLA defines Object Model Templates (OMTs), and TENA defines the TENA Meta-Model. Applications use the corresponding simulation object model format to define the data content they interact with, i.e., the model protocol. In LVC simulation experiments, model protocols are characterized by complexity, variability, and inconsistency, and a single joint digital simulation experiment generally involves multiple model protocols.
[0003] Data logging devices are used to record network-based experimental data in LVC simulation experiments to support subsequent simulation analysis and evaluation. Currently, the design methodology of data logging devices heavily relies on model protocols. The program code of the data logging device is tightly coupled with the specific model protocol; any addition or slight adjustment to the model protocol can adversely affect the logging device, leading to incorrect data recording, data loss, or even device crashes, ultimately severely impacting the effectiveness of LVC simulation experiments. Therefore, to adapt to new or adjusted model protocols, manual modification and adjustment of the data logging device code is usually required, which is technically challenging, time-consuming, and prone to errors. Summary of the Invention
[0004] The purpose of this invention is to provide a universal data recording device and method for simulation experiments, so as to solve at least one of the problems existing in the prior art.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] The first aspect of the present invention provides a general data recording device for simulation experiments, the device comprising:
[0007] A data logging device generation wizard component is used to create at least one data logging component;
[0008] The data logging component is used to implement data logging functionality.
[0009] Optionally, the data recording device generates a wizard component that can be directly started and run in response to a user's double-click or command-line method.
[0010] Optionally, the data recording component can be started and run directly in response to a user's double-click or command-line method.
[0011] Optionally, the data recording device generation wizard component includes a visualization module, a compiler configuration module, a protocol parser loading module, a protocol configuration module, a parameter pre-configuration module, a data recording component template module, a file generation module, and a component generation module; wherein
[0012] The visualization module is used to provide a wizard-style interface window and controls for inputting configuration information;
[0013] The compiler configuration module is used to configure and schedule the compiler, and to set compile-time and link-time dependencies;
[0014] The protocol parser loading module is used to configure and schedule the model protocol parser and parse the application model protocol configured by the user.
[0015] The protocol configuration module is used to specify the application model protocol and the content of the data records;
[0016] The parameter pre-configuration module is used to configure at least one setting parameter of the data recording component;
[0017] The data recording component template module is used to provide data recording component template content;
[0018] The file generation module is used to generate the program implementation file of the data recording component based on the configuration information and the content of the data recording component template;
[0019] The component generation module is used to schedule and monitor the compiler to compile the program implementation file, and to provide real-time feedback on compilation information and generate the data record component.
[0020] Optionally, the data recording component includes a configuration module, a data path module, an operation control module, a memory management module, a data recording module, and a file management module; wherein
[0021] The configuration module is used to configure the operating parameters of the data recording component;
[0022] The data path module is used to establish or disconnect the link between the data recording component and the simulation experiment;
[0023] The operation control module is used to control the operation of the data recording component;
[0024] The memory management module is used to manage the memory of the data recording component;
[0025] The data recording module is used to receive the data from the simulation experiment and output a recording file;
[0026] The file management module is used to manage the naming of the record files.
[0027] Optionally, the data recording device generates a wizard component and the data recording component are deployed on the same or different computers.
[0028] Optionally, the data recording component and the simulation experiment are deployed on the same or different computers.
[0029] A second aspect of the present invention provides a recording method for a general data recording device for simulation experiments, characterized in that the method includes...
[0030] Use the data logging device to generate a wizard component to create at least one data logging component;
[0031] Implement data recording functionality using a data recording component.
[0032] Optionally, the creation of at least one data record component includes
[0033] Configure the relevant parameters of the data recording component;
[0034] Configure the protocol parser and the computer environment for the protocol parser;
[0035] Configure the model protocol;
[0036] Configure the compiler and the computer environment for the compiler;
[0037] Generate the program implementation file for the data recording component;
[0038] The compiler is scheduled to compile and link the data record components.
[0039] Optionally, the implementation of the data recording function includes
[0040] During the simulation test preparation phase, the data recording component is added to the simulation test;
[0041] When data needs to be recorded, the recording function of the data recording component is activated;
[0042] When data recording is not required, pause or stop the recording function of the data recording component;
[0043] After generating the data record, the results are provided to the user in the form of a record file.
[0044] The beneficial effects of this invention are as follows:
[0045] The general data recording device for simulation experiments proposed in this invention can separate specific and variable model protocols from a general and procedural data recording device framework, enabling the data recording device to automatically adjust its implementation code according to the model protocol, thereby solving or alleviating the serious dependency problem between the data recording device and the model protocol. Attached Figure Description
[0046] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0047] Figure 1 A schematic diagram of a general data recording device for simulation experiments provided in an embodiment of the present invention is shown. Detailed Implementation
[0048] To more clearly illustrate the present invention, the following description, in conjunction with embodiments and accompanying drawings, further explains the invention. Similar components in the drawings are indicated by the same reference numerals. Those skilled in the art should understand that the specific description below is illustrative rather than restrictive and should not be construed as limiting the scope of protection of the present invention.
[0049] Traditional data recording devices typically receive and record simulation model data by embedding the simulation application's model protocol within the program code. This type of device is highly coupled with the specific application model protocol, requiring manual code modifications for adding or changing the protocol. This can lead to high technical barriers, high device debugging costs, and high device maintenance costs.
[0050] In view of this, one embodiment of the present invention provides a general data recording device for simulation experiments, the device including a data recording device generation wizard component for creating at least one data recording component; the data recording component is used to implement the data recording function.
[0051] Specifically, in LVC simulation, a wizard-based, simulation model-independent general-purpose data logging device includes two components: a data logging device generation wizard component and a data logging component. This device relies on both components to function; that is, it must include at least the data logging device generation wizard component and one or more data logging components. Neither the data logging device generation wizard component nor the data logging component can be missing.
[0052] One or more data recording components are isomorphic components, with the same deployment method and operation process, and can be used in parallel in the same scenario.
[0053] This embodiment decouples the specific, differentiated model protocol code from the general, procedural program framework, generating and constructing a data recording device in a "wizard" manner. The "wizard" establishes a connection between the data recording device and the specific model protocol. When a model protocol is added or changed, the "wizard" can generate and construct a data recording device adapted to the new or changed model protocol.
[0054] In one possible implementation, the data recording device generates a wizard component that is directly launched in response to a user's double-click or command-line method.
[0055] In one possible implementation, the data recording component is started and run directly in response to a user's double-click or command-line method.
[0056] Specifically, the data recording device generation wizard component is a standalone, executable application, physically in the form of an executable device, which users can launch and run directly by double-clicking or via command line.
[0057] Furthermore, the data recording component is a standalone, executable application, physically taking the form of an executable device, which users can launch and run directly by double-clicking or via command line.
[0058] In one possible implementation, the data recording device generation wizard component includes a visualization module, a compiler configuration module, a protocol parser loading module, a protocol configuration module, a parameter pre-configuration module, a data recording component template module, a file generation module, and a component generation module; wherein the visualization module is used to provide a wizard-style interface window and controls for inputting configuration information; the compiler configuration module is used to configure and schedule the compiler, and set compile-time dependencies and link-time dependencies; the protocol parser loading module is used to configure and schedule the model protocol parser, and parse the application model protocol configured by the user; the protocol configuration module is used to specify the application model protocol and the content of the data recording; the parameter pre-configuration module is used to configure at least one setting parameter of the data recording component; the data recording component template module is used to provide data recording component template content; the file generation module is used to generate the program implementation file of the data recording component according to the configuration information and the data recording component template content; the component generation module is used to schedule and monitor the compiler to compile the program implementation file, and provide real-time feedback on compilation information and generate the data recording component.
[0059] Specifically, such as Figure 1 As shown, the data recording device generation wizard component ① includes eight modules: visualization module, compiler configuration module, protocol parser loading module, protocol configuration module, parameter pre-configuration module, data recording component template module, file generation module, and component generation module.
[0060] The visualization module provides a visual wizard-style interface window, where users can input relevant configuration information through controls such as input boxes, option boxes, and buttons;
[0061] The compiler configuration module is used to configure and schedule the compiler required for the compilation and linking of the data record component, and has the function of setting compile-time dependencies and link-time dependencies.
[0062] The protocol parser loading module is used to configure and schedule specific interaction standard specifications or architecture model protocol parsers④, and supports parsing user-configured application model protocols⑤.
[0063] The protocol configuration module is used to specify the application model protocol (⑤) and the specific content of the data record;
[0064] The parameter pre-configuration module is used to configure one or more pre-set parameters for the data recording component;
[0065] The data logging component template module provides general, procedural data logging component template content.
[0066] The file generation module is used to output the program implementation file of data recording component ② based on the user's customized input and the template of data recording component ②.
[0067] The component generation module is used to schedule and monitor the configured compiler ③ to compile the program implementation file of the data record component ②, provide real-time feedback on compilation information, and generate the data record component ②.
[0068] In one possible implementation, the data recording component includes a configuration module, a data path module, an operation control module, a memory management module, a data recording module, and a file management module; wherein the configuration module is used to configure the operating parameters of the data recording component; the data path module is used to establish or disconnect the link between the data recording component and the simulation experiment; the operation control module is used to control the operation of the data recording component; the memory management module is used to manage the memory of the data recording component; the data recording module is used to receive the data from the simulation experiment and output a recording file; and the file management module is used to manage the naming of the recording file.
[0069] Specifically, the data recording component ② includes six modules: configuration module, data path module, operation control module, memory management module, data recording module, and file management module.
[0070] The configuration module is used to configure the operating parameters of the data recording component ②, including data path parameters, runtime parameters, etc.
[0071] The data pathway module is used to establish or disconnect the link with the simulation experiment;
[0072] The operation control module is used to control the operation of the data recording component ②, and provides control modes such as start, pause, and stop;
[0073] The memory management module provides methods such as memory pools to manage the memory usage of data recording component ②;
[0074] The data logging module is used to receive data from simulation experiments and output a log file.
[0075] The file management module is used to manage the naming of record files (⑦), providing record file names with consecutive serial numbers.
[0076] In one possible implementation, the data recording device generates a wizard component and the data recording component are deployed on the same or different computers.
[0077] Specifically, the data recording device generation wizard component ① and the data recording component ② can be deployed on the same computer or on different computers.
[0078] In one possible implementation, the data recording component and the simulation experiment are deployed on the same or different computers.
[0079] Specifically, during the simulation experiment, the data logging component ②, like other simulation experiment resources ⑥, runs in an interconnected network environment. The data logging component ② can be deployed on the same computer as other simulation experiment resources ⑥, or it can be deployed on a separate computer.
[0080] This embodiment addresses the problem of adverse effects on data logging devices caused by changes in model protocols during LVC simulation. It proposes a wizard-based, model-independent, universal data logging device. This device separates specific, variable model protocols from the general, procedural data logging device framework, enabling the data logging device to automatically adjust its implementation code according to the model protocol. This solves or alleviates the severe dependency between the data logging device and the model protocol.
[0081] Another embodiment of the present invention provides a recording method for a general data recording device for simulation experiments, the method comprising using a data recording device generation wizard component to create at least one data recording component; and using the data recording component to implement the data recording function.
[0082] Specifically, the operation of the general data recording device designed in this method includes two processes: the data recording component ② creation process and the data recording function execution process.
[0083] In one possible implementation, creating at least one data recording component includes configuring relevant parameters of the data recording component; configuring a protocol parser and its computer environment; configuring a model protocol; configuring a compiler and its computer environment; generating a program implementation file for the data recording component; scheduling the compiler to compile and link to generate the data recording component.
[0084] Specifically, the data logging component creation process begins before the simulation experiment; it involves the user using the data logging device's generation wizard component ① to create the data logging component ②. This includes the following steps:
[0085] Configure the relevant parameters of data recording component ②, including the name of data recording component ②, operating parameters, etc.;
[0086] Configure the protocol parser (④) and its dependent computer environment;
[0087] Configuration model protocol ⑤;
[0088] Configure the compiler for the programming language, and the computer environment it depends on;
[0089] Generate the program implementation file for data recording component ②;
[0090] The scheduler compiler ③ compiles and links to generate data record components ②.
[0091] In one possible implementation, the data recording function includes adding the data recording component to the simulation experiment during the simulation experiment preparation stage; activating the recording function of the data recording component when data needs to be recorded; pausing or stopping the recording function of the data recording component when data recording is not required; and providing the results to the user in the form of a recording file after the data recording results are generated.
[0092] Specifically, the data recording function execution process exists during the simulation experiment execution, and it is the process by which the user uses the data recording component ② to complete the corresponding data recording function.
[0093] During the simulation preparation phase, data recording component ② is added to the simulation experiment;
[0094] When data needs to be recorded, activate the recording function of data recording component ②;
[0095] When you do not want to record data, pause or stop the recording function of data recording component ②;
[0096] The results of the data recording are provided to the data requester in the form of a record file ⑦.
[0097] This embodiment addresses the increasingly widespread use of LVC simulation testing as a simulation testing mode. Changes or adjustments to the model protocol are inevitable. This method can effectively improve device quality, lower technical barriers, and save testing costs, and has broad application prospects.
[0098] In the description of this invention, it should be noted that the terms "upper," "lower," etc., indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two elements. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.
[0099] It should also be noted that in the description of this invention, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0100] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. For those skilled in the art, other variations or modifications can be made based on the above description. It is impossible to exhaustively list all the implementation methods here. All obvious variations or modifications derived from the technical solutions of the present invention are still within the protection scope of the present invention.
Claims
1. A general-purpose data recording device for simulation experiments, characterized in that, The device includes A data logging device generation wizard component is used to create at least one data logging component; A data logging component is used to implement data logging functionality; The data recording device generation wizard component includes a visualization module, a compiler configuration module, a protocol parser loading module, a protocol configuration module, a parameter pre-configuration module, a data recording component template module, a file generation module, and a component generation module; in The visualization module is used to provide a wizard-style interface window and controls for inputting configuration information; The compiler configuration module is used to configure and schedule the compiler, and to set compile-time and link-time dependencies; The protocol parser loading module is used to configure and schedule the model protocol parser and parse the application model protocol configured by the user. The protocol configuration module is used to specify the application model protocol and the content of the data records; The parameter pre-configuration module is used to configure at least one setting parameter of the data recording component; The data recording component template module is used to provide data recording component template content; The file generation module is used to generate the program implementation file of the data recording component based on the configuration information and the content of the data recording component template; The component generation module is used to schedule and monitor the compiler to compile the program implementation file, and to provide real-time feedback on compilation information and generate the data record component; The data recording component includes a configuration module, a data path module, an operation control module, a memory management module, a data recording module, and a file management module; in The configuration module is used to configure the operating parameters of the data recording component; The data path module is used to establish or disconnect the link between the data recording component and the simulation experiment; The operation control module is used to control the operation of the data recording component; The memory management module is used to manage the memory of the data recording component; The data recording module is used to receive the data from the simulation experiment and output a recording file; The file management module is used to manage the naming of the record files.
2. The general data recording device for simulation experiments according to claim 1, characterized in that, The data recording device generates a wizard component that can be directly started and run in response to a user's double-click or command-line method.
3. The general data recording device for simulation experiments according to claim 2, characterized in that, The data recording component is started and run directly in response to a user's double-click or command-line method.
4. The general data recording device for simulation experiments according to claim 1, characterized in that, The data recording device generates a wizard component and the data recording component are deployed on the same or different computers.
5. The general data recording device for simulation experiments according to claim 4, characterized in that, The data recording component and the simulation experiment are deployed on the same or different computers.
6. A recording method for a general data recording device for simulation experiments as described in any one of claims 1-5, characterized in that, The method includes Use the data logging device to generate a wizard component to create at least one data logging component; Implement data recording functionality using a data recording component.
7. The recording method of the general data recording device for simulation experiments according to claim 6, characterized in that, The creation of at least one data record component includes Configure the relevant parameters of the data recording component; Configure the protocol parser and the computer environment for the protocol parser; Configure the model protocol; Configure the compiler and the computer environment for the compiler; Generate the program implementation file for the data recording component; The compiler is scheduled to compile and link the data record components.
8. The recording method of the general data recording device for simulation experiments according to claim 7, characterized in that, The implementation of the data recording function includes During the simulation test preparation phase, the data recording component is added to the simulation test; When data needs to be recorded, the recording function of the data recording component is activated; When data recording is not required, pause or stop the recording function of the data recording component; After generating the data record, the results are provided to the user in the form of a record file.
Citation Information
Patent Citations
Matching rule engine supporting combined expression of multivariate protocol variables
CN111580931A
General data analysis software architecture design method based on digital test or training
CN112445471A