A data recording and playback method for a simulator and a related device
Through the data recording and playback method of the simulator, the problem of low efficiency in the full range simulator is solved, the problem of rapid positioning and complete reproduction of the problem is achieved, and the efficiency of solving the problem is improved.
Patent Information
- Application Number
- CN202310075850.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-16
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2043-01-16
AI Technical Summary
When the existing technology investigates DCS engineering problems or software platform problems in full-range simulators, it is difficult to reproduce the problems that occur on the spot, and it takes a long time to locate the problems, resulting in low efficiency in solving the problems.
It provides a data recording and playback method of an emulator. By responding to a start recording command, it acquires the communication data packets in the emulator in a preset period, stores and assigns a unique identity to each data packet, responds to a stop recording command, stops the acquisition and storage of data packets, responds to a playback command, plays the stored communication data packets, and displays the currently played packet unique identity.
This method can quickly locate problems, completely reproduce problems, significantly shorten the time for problem investigation, and improve the efficiency of solving problems.
Smart Images

Figure CN116170292B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of nuclear power technology, and in particular to a data recording and playback method for a simulator and related devices. Background Art
[0002] The full-range simulator is a key equipment for nuclear power plant construction. According to international practice and nuclear power plant construction standards, each new nuclear power plant should be equipped with at least one full-range simulator for operator training and license examinations, providing a safe and reliable tool for operators and managers to improve their operation and management skills. It is an essential equipment for nuclear power plant operator training and license examinations, and one of the main equipment on the critical path of nuclear power project construction.
[0003] During the teaching and training stage and the early working condition debugging stage, the full-range simulator system needs to be used frequently. In particular, in the early working condition debugging stage, various working conditions need to be debugged based on the full-range simulator. In the early working condition debugging stage, problems discovered through the full-range simulator (for example: DCS engineering problems and software platform problems) will directly affect the establishment and debugging of the working conditions, as well as the stability of the DCS system, thereby restricting the overall progress of the working condition debugging.
[0004] In current technology, problems (DSC engineering problems or software platform problems) are generally checked by copying and analyzing on-site logs, records and other information. It is difficult to reproduce the problems that occur on site by using the above methods, and it takes a long time to locate the problems. Therefore, the time for troubleshooting is long, resulting in low efficiency in solving the problems. Summary of the invention
[0005] Based on the above problems, the present application provides a data recording and playback method and device for a simulator, which can quickly locate the problem and completely reproduce the problem, greatly shortening the time for troubleshooting the problem and improving the efficiency of solving the problem.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] In a first aspect, the present application discloses a data recording and playback method for a simulator, characterized in that the method comprises:
[0008] In response to a start recording command, acquiring communication data packets in the simulator at a preset period;
[0009] Storing acquired communication data packets, the communication data packets carrying corresponding unique identifiers; the unique identifiers are set for the acquired communication data packets according to a time sequence;
[0010] In response to a stop recording command, stopping the acquisition and storage of the communication data packet;
[0011] In response to a playback command, the stored communication data packet is played back;
[0012] Based on the communication data packet currently being played back, a unique identifier of the communication data packet currently being played back is displayed.
[0013] Optionally, the replaying of the stored communication data packet includes:
[0014] Obtain stored communication data packets;
[0015] Parsing the stored communication data packet to obtain corresponding communication data;
[0016] Running the corresponding communication data enables playback of the stored communication data packets.
[0017] Optionally, before replaying the stored communication data packet in response to the playback command, the method further includes:
[0018] Pre-set the initial communication data packet;
[0019] The replaying of the stored communication data packets includes:
[0020] Based on the time sequence, the stored communication data packets are played back starting from the starting communication data packet.
[0021] Optionally, before replaying the stored communication data packet in response to the playback command, the method further includes:
[0022] Pre-set the end communication data packet;
[0023] The replaying of the stored communication data packets includes:
[0024] Based on the time sequence, the stored communication data packets are played back starting from the starting communication data packet;
[0025] When the playback of the communication data packet is completed, the playback of the stored communication data packet is directly terminated.
[0026] Optionally, the method of replaying the stored communication data packets includes: replaying one by one, and replaying continuously;
[0027] The one-by-one playback includes: in response to the one-by-one playback operation, individually playing back the stored communication data packets;
[0028] The continuous playback includes: in response to the continuous playback operation, continuously playing back the stored communication data packets until the playback ends.
[0029] Optionally, the method of replaying the stored communication data packet further includes: replaying;
[0030] The replaying includes: in response to the replaying operation, replaying the communication data packet currently being played back.
[0031] In a second aspect, the present application discloses a data recording and playback device for a simulator, characterized in that the device comprises:
[0032] A recording module, for acquiring communication data packets in the simulator at a preset period in response to a start recording command;
[0033] A storage module, used to store acquired communication data packets, wherein the communication data packets carry corresponding unique identifiers; the unique identifiers are set for the acquired communication data packets according to a time sequence;
[0034] A stop module, used for stopping the acquisition and storage of the communication data packet in response to a stop recording command;
[0035] A playback module, for playing back the stored communication data packets in response to a playback command;
[0036] The display module is used to display the unique identifier of the communication data packet currently being played back based on the communication data packet currently being played back.
[0037] Optionally, the playback module is specifically used for:
[0038] In response to a playback command, acquiring a stored communication data packet;
[0039] Parsing the stored communication data packet to obtain corresponding communication data;
[0040] Running the corresponding communication data enables playback of the stored communication data packets.
[0041] Optionally, the device further comprises: an initial setting module, used to pre-set an initial communication data packet;
[0042] The playback module is also used to, in response to the playback command, play back the stored communication data packets starting from the starting communication data packet based on the time sequence;
[0043] Optionally, the device further comprises: an end setting module, used to pre-set an end communication data packet;
[0044] The playback module is also used to, in response to a playback command, replay the stored communication data packets starting from the start communication data packet based on time sequence; when the playback of the end communication data packet is completed, directly end the playback of the stored communication data packets.
[0045] Optionally, the playback module includes a one-by-one playback module and a continuous playback module;
[0046] The one-by-one playback module is used to individually play back the stored communication data packets in response to the one-by-one playback operation;
[0047] The continuous playback module is used to respond to the continuous playback operation and continuously playback the stored communication data packets until the playback ends.
[0048] Compared with the prior art, the present application has the following beneficial effects: recording, storing and replaying the interactive data in the simulator can reproduce the interactive phenomena of the simulator, and the module correlation problems can still be fully reproduced, that is, the complete reproduction of the phenomenon / problem is achieved; and based on the unique identification of the communication data packet, the problem can be quickly located, thereby greatly reducing the time required for troubleshooting and thereby improving the efficiency of problem solving. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0050] Figure 1 A schematic diagram of the structure of a full-range simulator provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of a flow chart of a data recording and playback method for a simulator provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of a playback interface of a recording and playback device provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of the structure of a recording and playback device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] As described above, the current method of troubleshooting is to copy and analyze the on-site logs, records and other information of the full-range simulator. Taking the on-site log as an example, the problem is located and reproduced by copying and analyzing the on-site log of the full-range simulator. Since the number of on-site logs of the full-range simulator is huge, and the on-site logs of the full-range simulator are for each individual module that constitutes the full-range simulator, it takes a long time to locate and fully reproduce the problem, resulting in a long time for troubleshooting, which makes the efficiency of problem solving low. Furthermore, since the on-site logs of the full-range simulator are for each individual module, it involves the correlation problems between the modules generated under complex working conditions. It is difficult to reproduce the correlation problems between the modules by analyzing the on-site logs, which leads to the failure of locating and reproducing the problem, and the problem cannot be found, which leads to the failure of problem solving.
[0055] The current technology also has a method of replaying data through storage backtracking. This method can reproduce the phenomenon after the problem occurs to a large extent. For example, an operator clicks a switch button, which causes a problem in the simulated DCS system. However, this method cannot locate and reproduce the problem, so it cannot troubleshoot and solve the problem.
[0056] In summary, the present application provides a data recording and playback method for a simulator, the method comprising: in response to a start recording command, acquiring communication data packets in the simulator at a preset period; storing the acquired communication data packets, the communication data packets being defined with corresponding unique identifiers in chronological order; in response to a stop recording command, stopping the acquisition and storage of the communication data packets; replaying the communication data packets based on the stored communication data packets; and displaying the unique identifier of the communication data packet currently being replayed based on the communication data packet currently being replayed. The method records, stores and replays the interactive data in the simulator, and can reproduce the interactive process of the full range of simulators, and can still fully reproduce the module correlation problems at the system level, that is, achieve complete reproduction of the phenomenon / problem; and based on the unique identifier of the communication data packet, the problem can be quickly located, thereby greatly reducing the time required for troubleshooting the problem, thereby improving the efficiency of problem solving.
[0057] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] Example 1
[0059] Combine the following Figure 1-Figure 3 A data recording and playback method for a simulator provided in an embodiment of the present application is introduced in detail.
[0060] First combine Figure 1 The composition structure of the full-scale simulator is described as follows: The full-scale simulator includes a model server 101 , a model gateway 102 and a virtual DCS server 103 .
[0061] The model server 101 mainly runs the nuclear power plant process system model, and is connected to the virtual DCS server 103 through the model gateway 102 , and the model server 101 communicates and transmits data with the virtual DCS server through the model gateway 102 .
[0062] The process system model of a nuclear power plant mainly includes: nuclear reactor model. A nuclear reactor, also known as an atomic reactor or reactor, is a device that can maintain a controllable self-sustaining chain nuclear fission reaction to achieve nuclear energy utilization. The nuclear reactor is the core device of a nuclear power plant. The nuclear reactor is based on the fission of atomic nuclei to achieve nuclear power generation.
[0063] The model gateway 102 is mainly used to transmit communication data between the model server 101 and the virtual DCS server.
[0064] The virtual DCS server 103 is obtained by simulating the actual DCS through software. The use of the virtual DCS server 103 can effectively improve the realism of the full-range simulator.
[0065] Distributed Control System (DCS) is an instrument control system based on microprocessors, which adopts the design principles of decentralized control functions, centralized display operations, and taking into account the design principles of decentralized autonomy and comprehensive coordination. It adopts the basic design concept of decentralized control and centralized operation and management, and adopts a multi-level hierarchical, cooperative and autonomous structure. Its main features are its centralized management and decentralized control, so it is widely used in nuclear power, metallurgy, petrochemical and other industries.
[0066] Combine the following Figure 2 , a data recording and playback method for a simulator provided in an embodiment of the present application is introduced in detail.
[0067] S210, the recording and playback device responds to the start recording command to obtain the communication data packets in the simulator at a preset period.
[0068] The start recording command is a command for starting communication data recording.
[0069] Specifically, the start recording command may be to turn on the "recording" switch of the model gateway in the full-range simulator through software control / user operation during the operation of the full-range simulator.
[0070] Specifically, the communication data packets between the model server 101 and the virtual DCS server 103 (the communication data packets transmitted in the model gateway 102) are obtained at a preset period.
[0071] Specifically, the communication data between the model server 101 and the virtual DCS server 103 is obtained at a preset period, the communication data within a preset period is packaged into a communication data packet, and the communication data packets in the full range simulator are obtained at a preset period.
[0072] S220: The recording and playback device stores the acquired communication data packet, where the communication data packet carries a corresponding unique identifier.
[0073] Specifically, the acquired communication data packets may be stored in a cloud server or a specific database.
[0074] Specifically, the corresponding unique identifier carried by the communication data packet is assigned to the acquired communication data packets in chronological order to distinguish each communication data packet. In this way, when replaying the communication data packet, the unique identifier of the communication data packet can be used to replay the specified time interval and quickly locate the problem.
[0075] S230: The recording and playback device stops acquiring and storing communication data packets in response to the stop recording command.
[0076] The stop recording command is a command used to stop recording communication data.
[0077] Specifically, the stop recording command may be to turn off the "recording" switch of the model gateway in the full-range simulator through software control / user operation during the operation of the full-range simulator.
[0078] S240: The recording and playback device plays back the stored communication data packets in response to the playback command.
[0079] Specifically, the recording and playback device obtains the communication data packet from the cloud server or a specific database storing the communication data packet, parses the obtained communication data packet, obtains the corresponding communication data, and runs the corresponding communication data to realize the playback of the stored communication data packet. The playback of the stored communication data packet realizes the playback of the data interaction in the full-range simulator, that is, the data interaction between the model server 101 and the virtual DCS server 103 corresponding to the communication data packet (data transmission in the model gateway 102). Because it is the interactive data in the full-range simulator that is played back, the correlation problem between the modules can be fully reproduced, so the phenomenon corresponding to the full-range simulator can be quickly reproduced by playing back the communication data packet. Since each communication data packet has a corresponding unique identifier, the unique identifier can indicate the time when the phenomenon / problem corresponding to the corresponding communication data packet is performed, thereby realizing the rapid location and reproduction of the problem, reducing the time for troubleshooting, and thus improving the speed of problem solving.
[0080] S250: The recording and playback device displays a unique identifier of the communication data packet currently being played back based on the communication data packet currently being played back.
[0081] Specifically, the recording and playback device can display the unique identifier of the communication data packet currently being played back in real time, so that on-site operators, trainers, etc. can intuitively obtain the communication data packet currently being played back, so that on-site operators, trainers, etc. can quickly locate the problem based on the unique identifier of the communication data packet currently being played back.
[0082] For ease of understanding, the following Figure 3 A schematic diagram of a playback interface provided by an embodiment of the present application is shown, and a method for replaying a communication data packet provided by an embodiment of the present application is introduced in detail.
[0083] Specifically, the recording and playback device pre-sets the starting communication data packet, that is, sets the unique identifier corresponding to the starting communication data packet, and plays back the stored communication data packets starting from the starting communication data packet based on the time sequence (or the sequence of the unique identifiers of the communication data packets).
[0084] Specifically, through user operation, in the setting box 302 corresponding to the starting communication data packet corresponding to the starting setting 301 of the playback interface, the unique identifier corresponding to the starting communication data packet is filled in, and playback can be started from the starting communication data packet.
[0085] Replay data starting from the starting communication data packet. For example, based on the phenomenon of the full-range simulator, on-site operators or trainers can determine the approximate time when a problem may occur. The communication data packet 200 cycles (wherein the preset cycle is 100 milliseconds) before that time can be set as the starting communication data packet. Replaying data starting from the starting communication data packet can locate the time when the problem occurred and reproduce the problem that occurred at that time, while greatly reducing the number of communication data packets replayed, thereby reducing the time for troubleshooting the problem and further improving the efficiency of problem solving.
[0086] Furthermore, the recording and playback device plays back the communication data packets, and can select a playback mode, which includes: one-by-one playback and continuous playback.
[0087] Specifically, the one-by-one playback is to individually play back the stored communication data packets period by period in response to the one-by-one playback operation.
[0088] For ease of understanding, the following description takes the setting of the initial communication data packet as an example.
[0089] One-by-one playback is based on the one-by-one playback operation, and a single data packet is played back from the initial communication data packet. For example: the communication data packet uniquely identified as N is set as the initial communication data packet. When the user clicks the icon of one-by-one playback 303 on the playback interface, the communication data packet uniquely identified as N is played back. When the user clicks the icon of one-by-one playback 303 on the playback interface again, the communication data packet uniquely identified as N+1 is played back (i.e., the next communication data packet in the time sequence of the communication data packet uniquely identified as N is played back). The one-by-one playback method is adopted to realize the playback of each communication data packet one by one. The communication data packets around the time when the problem occurs can be played back one by one. The phenomenon reproduced by the playback of the communication data packets can be analyzed in detail, which improves the accuracy of problem troubleshooting.
[0090] Specifically, the continuous playback is to continuously play back the stored communication data packets in response to the continuous playback operation until the playback ends.
[0091] For ease of understanding, the following description takes the setting of the initial communication data packet as an example.
[0092] Continuous playback is based on continuous playback operations, and continuous playback is performed from the initial communication data packet. For example: set the communication data packet uniquely identified as N as the initial communication data packet. When the user clicks the icon of continuous playback 304 on the playback interface, the communication data packet uniquely identified as N is played back. When the playback of communication data packet N is completed, the communication data packet uniquely identified as N+1 is automatically played back without the need for user operation again. The continuous playback method is adopted to achieve continuous playback of communication data packets, and the phenomena occurring in the full-range simulator are reproduced more coherently. Correlation problems can be analyzed based on continuous phenomena, which further improves the fidelity of reproduction of correlation problems at the system level, thereby reducing the time for troubleshooting problems.
[0093] Furthermore, the initial state can be restored, that is, the position of the initial communication data packet can be restored, and the playback mode can be re-selected to play back the communication data packet. Repeated playback of the communication data packet can more accurately identify the problem, thereby improving the efficiency of problem solving.
[0094] Furthermore, the recording and playback device can pre-set the end communication data packet, that is, set the unique identifier corresponding to the end communication data packet, and replay the stored communication data packets starting from the starting data packet (the first communication data packet) based on the time sequence (or the order of the unique identifiers of the communication data packets). When the playback of the end communication data packet is completed, the playback of the stored communication data packet is directly ended.
[0095] Specifically, through user operation, in the setting box 306 corresponding to the end communication data packet corresponding to the end setting 305 of the playback interface, the unique identifier corresponding to the end communication data packet is filled in, so that the playback can be automatically ended after the playback of the end communication data packet is completed. According to the approximate time of the problem occurrence provided by the on-site operator, training personnel, etc., the starting communication data packet and the end communication data packet are set, which can greatly reduce the number of communication data packets played back, further reduce the time required for troubleshooting, and thus improve the efficiency of problem solving.
[0096] Furthermore, the unique identifier of the communication data packet currently being played back is displayed. Specifically, in the playback interface, in the display box of the unique identifier of the currently played back communication data packet 308 corresponding to the current playback 307 on the playback interface, the unique identifier of the currently played back communication data packet can be displayed in real time, so that on-site operators, trainers, etc. can intuitively obtain the currently played back communication data packet, so that on-site operators, trainers, etc. can quickly locate the problem based on the unique identifier of the currently played back communication data packet.
[0097] In summary, the embodiment of the present application provides a data recording and playback method for a simulator, the method comprising: in response to a start recording command, acquiring communication data packets in the simulator at a preset period; storing the acquired communication data packets, the communication data packets being defined with corresponding unique identifiers in chronological order; in response to a stop recording command, stopping the acquisition and storage of the communication data packets; replaying the communication data packets based on the stored communication data packets; and displaying the unique identifier of the communication data packet currently being replayed based on the communication data packet currently being replayed. The method records, stores and replays the interactive data in the simulator, which can reproduce the interactive process of the simulator, and can still fully reproduce the module correlation problems at the system level, that is, achieve complete reproduction of the phenomenon / problem; and can display the unique identifier of the communication data packet currently being replayed, and can realize rapid location of the problem based on the unique identifier of the communication data packet, thereby greatly reducing the time required for troubleshooting the problem, and thus improving the efficiency of problem solving.
[0098] Furthermore, the unique identifier of the communication data packet currently being played back can be displayed in real time, so that on-site operators, trainers, etc. can intuitively obtain the communication data packet currently being played back, so that on-site operators, trainers, etc. can quickly locate the problem based on the unique identifier of the communication data packet currently being played back.
[0099] Combine the following Figure 4 , introduces the structure of a data recording and playback device for a simulator provided in an embodiment of the present application.
[0100] The data recording and playback device of the simulator includes: a recording module 401 , a storage module 402 , a stop module 403 , a playback module 404 , and a display module 405 .
[0101] The recording module 401 is used to obtain communication data packets in the simulator at a preset period in response to a start recording command.
[0102] The storage module 402 is used to store the acquired communication data packets. The communication data packets carry corresponding unique identifiers, which are assigned to the communication data packets according to the time sequence.
[0103] The stop module 403 is used to stop acquiring and storing communication data packets in response to a stop recording command.
[0104] The playback module 404 is used to play back the stored communication data packets in response to the playback command.
[0105] The display module 405 is used to display the unique identifier of the communication data packet currently being played back based on the communication data packet currently being played back.
[0106] Furthermore, the playback module 404 is specifically used to: in response to a playback command, obtain a stored communication data packet; parse the stored communication data packet to obtain corresponding communication data; and run the corresponding communication data to achieve playback of the stored communication data packet.
[0107] Furthermore, the data recording and playback device of the simulator also includes: a starting setting module for presetting a starting communication data packet;
[0108] The playback module 404 is further configured to respond to a playback command and, based on a time sequence, playback the stored communication data packets starting from the initial communication data packet.
[0109] Furthermore, the data recording and playback device of the simulator also includes: an end setting module for presetting an end communication data packet;
[0110] The playback module 404 is also used to respond to the playback command and playback the stored communication data packets starting from the start communication data packet based on the time sequence; when the playback of the end communication data packet is completed, the playback of the stored communication data packets is directly terminated.
[0111] Furthermore, the playback module 404 specifically includes: a one-by-one playback module and a continuous playback module.
[0112] The one-by-one playback module is specifically used to individually play back the stored communication data packets in response to the one-by-one playback operation.
[0113] The continuous playback module is specifically used to continuously play back the stored communication data packets in response to the continuous playback operation until the playback ends.
[0114] The embodiment of the present application provides a data recording and playback device for a simulator, including: a recording module 401 for acquiring communication data packets in the simulator at a preset period in response to a start recording command; a storage module 402 for storing acquired communication data packets; a stop module 403 for stopping the acquisition and storage of communication data packets in response to a stop recording command; a playback module 404 for replaying stored communication data packets in response to a playback command; and a display module 405 for displaying the unique identifier of the communication data packet currently being replayed based on the communication data packet currently being replayed. Recording, storing and replaying the interactive data in the simulator can reproduce the interactive phenomenon of the simulator, and can still fully reproduce the module correlation problem, that is, achieve complete reproduction of the phenomenon / problem; and displaying the unique identifier of the communication data packet currently being replayed can realize rapid location of the problem based on the unique identifier, thereby greatly reducing the time required for troubleshooting the problem, thereby improving the efficiency of problem solving.
[0115] Furthermore, the unique identification of the communication data packet currently being played back can be displayed in real time, so that on-site operators, trainers, etc. can intuitively obtain the unique identification of the communication data packet currently being played back, so as to quickly locate the problem.
[0116] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method and device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data recording and playback method for a simulator, characterized in that: The method comprises: In response to a start recording command, a communication data packet in the simulator is acquired at a preset period; wherein the communication data packet in the simulator is a communication data packet between the model server and the virtual DCS server; Storing acquired communication data packets, the communication data packets carrying corresponding unique identifiers; the unique identifiers are set for the acquired communication data packets according to a time sequence; In response to a stop recording command, stopping the acquisition and storage of the communication data packet; In response to a playback command, the stored communication data packet is played back; Based on the communication data packet currently being played back, displaying a unique identifier of the communication data packet currently being played back; The replaying of the stored communication data packets includes: Obtain stored communication data packets; Parsing the stored communication data packet to obtain corresponding communication data; Running the corresponding communication data, thereby realizing playback of the stored communication data packets; Before replaying the stored communication data packet in response to the replay command, the method further includes: Pre-set the start communication data packet and the end communication data packet; The replaying of the stored communication data packets includes: Based on the time sequence, the stored communication data packets are played back starting from the starting communication data packet; When the playback of the communication data packet is completed, the playback of the stored communication data packet is directly terminated.
2. The method according to any one of claim 1, characterized in that: The method of replaying the stored communication data packets includes: replaying one by one and replaying continuously; The one-by-one playback includes: in response to the one-by-one playback operation, individually playing back the stored communication data packets period by period; The continuous playback includes: in response to the continuous playback operation, continuously playing back the stored communication data packets until the playback ends.
3. A data recording and playback device for a simulator, characterized in that: The device comprises: A recording module, for obtaining communication data packets in the simulator at a preset period in response to a start recording command; wherein the communication data packets in the simulator are communication data packets between the model server and the virtual DCS server; A storage module, used to store acquired communication data packets, wherein the communication data packets carry corresponding unique identifiers; the unique identifiers are set for the acquired communication data packets according to a time sequence; A stop module, used for stopping the acquisition and storage of the communication data packet in response to a stop recording command; A playback module, for playing back the stored communication data packets in response to a playback command; A display module, configured to display a unique identifier of the communication data packet currently being played back based on the communication data packet currently being played back; The playback module is specifically used to: in response to a playback command, obtain a stored communication data packet; parse the stored communication data packet to obtain corresponding communication data; and run the corresponding communication data to achieve playback of the stored communication data packet; The device further comprises: a start setting module and an end setting module; the start setting module is used to pre-set a start communication data packet, and the end setting module is used to pre-set an end communication data packet; The playback module is also used to, in response to a playback command, replay the stored communication data packets starting from the start communication data packet based on time sequence; when the playback of the end communication data packet is completed, directly end the playback of the stored communication data packets.
4. The device according to claim 3, characterized in that The playback module includes a one-by-one playback module and a continuous playback module; The one-by-one playback module is used to individually play back the stored communication data packets period by period in response to the one-by-one playback operation; The continuous playback module is used to continuously playback the stored communication data packets in response to the continuous playback operation until the playback ends.
Citation Information
Patent Citations
Method for recording and displaying real-time data of analog machine, and system
CN105187788A