CN117459613A - Method for playing back data, electronic device and storage medium - Google Patents

Method for playing back data, electronic device and storage medium Download PDF

Info

Publication number
CN117459613A
CN117459613A CN202311783001.3A CN202311783001A CN117459613A CN 117459613 A CN117459613 A CN 117459613A CN 202311783001 A CN202311783001 A CN 202311783001A CN 117459613 A CN117459613 A CN 117459613A
Authority
CN
China
Prior art keywords
data
unresolved
module
configuration information
parsing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311783001.3A
Other languages
Chinese (zh)
Other versions
CN117459613B (en
Inventor
陈建飞
杨明洪
王迎
郑启勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Guoli Xin'an Technology Co ltd
Original Assignee
Zhejiang Guoli Xin'an Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Guoli Xin'an Technology Co ltd filed Critical Zhejiang Guoli Xin'an Technology Co ltd
Priority to CN202311783001.3A priority Critical patent/CN117459613B/en
Publication of CN117459613A publication Critical patent/CN117459613A/en
Application granted granted Critical
Publication of CN117459613B publication Critical patent/CN117459613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history

Abstract

Embodiments of the present disclosure relate to a method, an electronic device, and a storage medium for playing back data. Wherein the method comprises collecting data via a data collection module to add a time stamp, a data header and a data trailer to the collected data to form unresolved data; in response to determining that an instruction for data playback is received from the parsing module, transmitting unresolved data to the parsing module; and acquiring analysis configuration information through an analysis module, and analyzing the unresolved data according to the analysis configuration information so as to play back the analyzed data. The scheme can be compatible with a wide application scene.

Description

Method for playing back data, electronic device and storage medium
Technical Field
Embodiments of the present disclosure relate generally to the field of data acquisition playback technology, and more particularly, to a method, an electronic device, and a storage medium for playing back data.
Background
In the industrial control application technology, in order to ensure that the control system has perfect system functions and optimal performance parameters during formal production, and data records and data backtracking of long-time operation parameters, the control system needs a set of matched data acquisition and playback system to acquire parameters, data and states of the control system during operation so as to analyze and locate reasons as soon as possible when the control system fails and facilitate optimization of various performances of the control system. The traditional data acquisition and playback system needs to be configured with corresponding data formats, data protocols and the like when data is acquired, and is complex in configuration. And once the configuration is completed, the configuration information is solidified, so that the method can not be flexibly and widely applied to various scenes needing data acquisition and playback.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a method, an electronic device, and a storage medium for playing back data, which are compatible with a wide range of application scenarios.
According to a first aspect of the present disclosure, there is provided a method for playing back data, comprising: collecting data via a data collection module to add a time stamp, a data header and a data packet tail to the collected data to form unresolved data; in response to determining that an instruction for data playback is received from the parsing module, transmitting unresolved data to the parsing module; and acquiring analysis configuration information through an analysis module, and analyzing the unresolved data according to the analysis configuration information so as to play back the analyzed data.
In some embodiments, parsing the configuration information includes at least one of: data type, parsing scheme and transport protocol type.
In some embodiments, parsing the unresolved data according to the parse configuration information includes: extracting a timestamp from the unresolved data; removing a data packet head and a data packet tail aiming at unresolved data; and analyzing the unresolved data after removing the data packet head and the data packet tail according to the analysis configuration information.
In some embodiments, the method further comprises: storing the unresolved data to a target memory via a data acquisition module; and transmitting the unresolved data to the resolving module comprises: the unresolved data is read from the target memory for transfer to the resolution module.
In some embodiments, parsing the unresolved data after removing the header and the trailer according to the parse configuration information includes: determining a data list according to the unresolved data after removing the data packet head and the data packet tail; adding the extracted time stamp to a data list; and dividing the data list into a plurality of data files having a predetermined length.
In some embodiments, playing back parsed data includes: acquiring screening configuration information; and screening the target data from the parsed data according to the screening configuration information so as to play back the target data.
In some embodiments, further comprising: and naming the data file by the timestamp corresponding to the first piece of data in the data file.
In some embodiments, playing back parsed data includes: and fitting the parsed data into a curve about time according to the timestamp corresponding to the parsed data so as to be displayed.
According to a second aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to the first aspect of the present disclosure.
According to a third aspect of the present disclosure, a computer-readable storage medium is provided. The computer readable storage medium has stored thereon a computer program which, when executed by a machine, implements a method according to the first aspect of the present disclosure.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, the same or similar reference numerals denote the same or similar elements.
Fig. 1 shows a flowchart of a method for playing back data of an embodiment of the present disclosure.
Fig. 2 shows a schematic block diagram of a system that may be used to implement the methods of embodiments of the present disclosure.
FIG. 3 illustrates a schematic block diagram of an example electronic device that may be used to implement the methods of embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The term "comprising" and variations thereof as used herein means open ended, i.e., "including but not limited to. The term "or" means "and/or" unless specifically stated otherwise. The term "based on" means "based at least in part on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment. The term "another embodiment" means "at least one additional embodiment". The terms "first," "second," and the like, may refer to different or the same object. Other explicit and implicit definitions are also possible below.
As described above, the conventional data acquisition and playback system needs to be configured with a corresponding data format, data protocol, etc. during data acquisition, and is complex in configuration. For example, the acquisition link and playback link need to be configured prior to data acquisition. For example, the configuration of the data analysis protocol is performed on the acquisition device, including configuration in terms of acquisition period and the like. And, the playback device is configured with a data parsing protocol. After the configuration is completed, the step of data acquisition is executed again, and finally, the playback process is executed again. Therefore, the configuration process is complicated. And once the configuration is completed, the configuration information is solidified, so that the method can not be flexibly and widely applied to various scenes needing data acquisition and playback.
To at least partially address one or more of the above problems, as well as other potential problems, example embodiments of the present disclosure propose a scheme for playback of data. According to the scheme of the disclosure, the configuration of the data analysis protocol is not performed at the data acquisition module, the data is acquired through the data acquisition module, and a time stamp, a data packet header and a data packet tail are added for the acquired data so as to form unresolved data. And the analysis configuration information is acquired through the analysis module, and the unresolved data is analyzed according to the analysis configuration information so as to play back the analyzed data. That is, the parsing configuration information may be configured at the parsing module so that the parsing module flexibly and adaptively parses unresolved data to achieve data playback.
Fig. 1 shows a flowchart of a method 100 for playing back data according to an embodiment of the present disclosure. It should be understood that method 100 may also include additional steps not shown and/or that the illustrated steps may be omitted, the scope of the present disclosure being not limited in this respect. Fig. 2 shows a schematic block diagram of a system 200 that may be used to implement the methods of embodiments of the present disclosure. The method 100 may be implemented based on the system 200. The system 200 includes a data acquisition module 202 and an analysis module 204. The data acquisition module 202 includes, for example, a processor 222, a memory module 224, a communication module 226, a rechargeable real-time clock device 228, and the like. Wherein the data acquisition device may be communicatively coupled to the acquisition object 206 via the communication module 226. The data acquisition device may be communicatively coupled to the acquisition object 206 based on an ethernet interface. The data acquisition device may also be communicatively coupled to the acquisition object 206 based on an RS485/RS422 (a communication protocol) interface.
The data acquisition module 202 may also communicate with the parsing module 204 through the communication module 226. For example, the communication module 226 mainly has three communication modes of ethernet/RS 485/RS422, and the communication module 226 mainly has two main functions of up (data playback) and down (data acquisition). For example, during the data playback process, the parsing module 204 communicates with the data acquisition module 202 through the ethernet interface, so as to facilitate the reading and uploading of the stored data, and the configuration of various parameters, the management of the parameters and the stored data.
The data acquisition module 202 acquires and records the data sent by the acquisition object 206 in three communication modes of Ethernet/RS 485/RS422, and stores the data in the storage module 224.
Processor 222 may be used to perform the data operations involved in system 200, as well as the display of status. The processor 222 receives the stored data information in combination with the data from the rechargeable real-time clock device 228, performs ordered classification and storage of the data, and presents the stored data catalog to the parsing module 204 on a time axis when there is a data upload demand. After the data acquisition module 202 receives the search of the analysis module 204 and explicitly sends out the required time axis interval data instruction, the data is sent to the analysis module 204, and the process of uploading the data is completed.
Processor 222 may be implemented using an MCU (Micro Controller Unit, micro control unit), CPU (Central Processing Unit ), GPU (Graphics Processing Unit, graphics processor), GPGPU (General-purpose Computing on Graphics Processing Units, general-purpose graphics processor), FPGA (Field Programmable Gate Array ), or other programmable logic device, among others. The processor 222 may also be implemented by the electronic device 300 shown in fig. 3.
The parsing module 204 may be, for example, a host computer. The parsing module 204 may also be implemented on the same ethernet device as the data acquisition module 202. The parsing module 204 and the data acquisition module 202 may also be implemented by two ethernet devices.
Referring to fig. 1, at step 102, data is acquired via a data acquisition module to add a time stamp, a data header, and a data packet tail to the acquired data to form unresolved data.
It should be noted that, at the data acquisition module, the configuration of the parsing protocol is not performed, and after the data acquisition module acquires the data for the acquisition object 206, the data acquisition module adds a timestamp, a data packet header and a data packet tail to the acquired data, but does not parse the data, so as to directly form unresolved data.
At step 104, in response to determining that an instruction for data playback is received from parsing module 204, the unresolved data is transmitted to parsing module 204.
In some embodiments, in the real-time playback mode, the data collection module receives instructions from the parsing module 204 regarding data playback, and then transmits the unresolved data to the parsing module 204 in real-time for playback by the parsing module 204.
In some embodiments, in the offline playback mode, the data collection module stores unresolved data to the target memory. The target memory is used for storing unresolved data. The target memory may be a memory module 224 included in the data acquisition module, or may be a memory external to the data acquisition module. Accordingly, transmitting the unresolved data to the resolving module 204 includes: the unresolved data is read from the target memory for transfer to the resolution module 204.
At step 106, the parsing configuration information is obtained via the parsing module 204, and the unresolved data is parsed according to the parsing configuration information, so that the parsed data is played back.
In some embodiments, parsing the unresolved data according to the parse configuration information includes: extracting a timestamp from the unresolved data; removing a data packet head and a data packet tail aiming at unresolved data; and analyzing the unresolved data after removing the data packet head and the data packet tail according to the analysis configuration information.
In some embodiments, parsing the configuration information includes at least one of: data type, parsing scheme and transport protocol type. Illustratively, the transport protocol types may include Modbus-RTU (a transport protocol), modbus/TCP (a transport protocol), profinet (a transport protocol), profibus (a transport protocol), and the like.
According to the method 100, the complex configuration process performed before data acquisition in the conventional data acquisition and playback system is abandoned, and after data acquisition is completed, the analysis module 204 is configured with a data analysis protocol, so that the difficulty in use and deployment is reduced. In addition, the proposal does not need frequent configuration of the acquisition device under different acquisition scenes and different transmission protocols and different application systems, and only needs to flexibly configure and combine on the last analysis configuration information (such as an analysis table). In addition, when the analysis module 204 performs data analysis, the analysis configuration information is not needed to be utilized, and the analysis configuration information is not stored at the data acquisition module, so that the confidentiality degree of data acquisition and playback is remarkably improved. The security and confidentiality of data are ensured in special application scenes. Therefore, based on the method 100, the overall universality and compatibility of the system 200 can be significantly improved, the original data of the data transmission source is better kept from being destroyed, and the method is significantly helpful in analyzing whether the data transmitted by the positioning acquisition object 206 is correct.
In some embodiments, the parsing module 204 may be provided with a user interface to facilitate the user to fill in the required information via the user interface, including, for example, the total length of the data packet, the length of the data packet header, the length of the data packet trailer, etc. In parsing the unresolved data according to the parsing configuration information, the parsing module 204 extracts a timestamp from the unresolved data; removing a data packet head and a data packet tail aiming at unresolved data; so as to analyze the unresolved data after removing the data packet head and the data packet tail according to the analysis configuration information. In some embodiments, the parsing configuration information may be user-defined. The parsing configuration information customized by the user includes, for example, a parsing structure including, for example, a data type, a structure body, and the like.
In some embodiments, parsing module 204 determines a data list from the unresolved data after removing the header and trailer of the data packet; adding the extracted time stamp to a data list; and dividing the data list into a plurality of data files having a predetermined length. In some embodiments, the data file is named by a timestamp corresponding to the first piece of data in the data file, so that a user can conveniently select the required time period data to perform playback analysis according to the requirement. A plurality of data files having a predetermined length are stored in the storage device, and the storage path may be selected by the user or a default storage path may be used.
It should be noted that the parsing module 204 also provides a user interface so that the user can parse configuration information through the user interface configuration. For example, a configuration parsing protocol table may be filled in by a user, where the configuration parsing protocol table is used to store parsing configuration information, and the parsing configuration information includes, for example, a data name, a data length, a data type, a parsing manner, remark information, and the like. The parsing module 204 reads the data file to determine a list of data. The parsing module 204 parses the data in the data list according to the parsing configuration information configured by the user, so as to determine a numerical value corresponding to each data, a physical meaning represented by each data, and the like. The parsing module 204 builds a table in the database for storing parsed data. The parsing module 204 may limit the storage length to prevent the data from being read too long, which may affect the user experience. The parsed data may be stored in the form of a file, and the file name may be named with a timestamp corresponding to the first piece of data. The memory path may be selected by itself or a default memory path may be used. The data file may be a database file, a txt file (text file), an excel table file (table file), or the like.
The parsing module 204 performs data playback, and may support an offline playback mode or a real-time playback mode.
In the offline playback mode, the data file to be played back may be selected by the user through the user interface. The parsing module 204 reads the corresponding data file according to the selection of the user, and displays the reading progress in the reading process; after the reading is completed, the reading completion state is displayed. After the reading is completed, the parsing module 204 parses the data file for playback. The parsing module 204 may also present the data name information in tabular form.
The user can also select the data needed to be played back in the data table through the user interface. Moreover, in order to optimize the user's viewing data experience, a reasonable limit may be placed on the amount of presentation data. After the parsing module 204 obtains the data information selected by the user, the data is displayed in the form of curves with different colors. For example, the parsing module 204 fits the parsed data to a curve with respect to time for display according to the timestamp corresponding to the parsed data. In addition, an auxiliary operation tool is arranged on the user interface, so that a user can perform operations such as enlarging, reducing, translating, rectangular enlarging and the like on the displayed curve and the like. In some embodiments, the parsing module 204 may also perform operations such as comparing, computing, etc. on the parsed data.
In some embodiments, in the real-time playback mode, the parsing module 204 reads the data protocol configuration file selected by the user, and connects the connection objects after configuration; after receiving the data sent by the connection object, the system 100 is parsed by the parsing module 204 according to the data protocol configuration file and then loaded into the designated data pool, so as to display the data content in real time. For example, a first-in first-out principle may be implemented, with the data size being limited by the hardware device memory size.
In some embodiments, playing back parsed data includes: acquiring screening configuration information; and screening the target data from the parsed data according to the screening configuration information so as to play back the target data.
Regarding data filtering, for example, the parsing module 204 obtains file list information selected by the user, reads data names in the file list, and forms a name list for the user to perform a selection operation. The parsing module 204 obtains the name filtering information input by the user, and the user can select the data name to be filtered according to the filtering result, and performs the first filtering on the name list. The parsing module 204 obtains the user input screening date and threshold value, and performs secondary screening on the data according to the date. The parsing module 204 performs three times of screening on the data according to the threshold value, and names the screened data according to the screening condition and the first time of the screening information. In some cases, the file list may be too long, the data size is too large, the parsing module 204 runs under-memory, the parsing module 204 reads the file information length and the filtering result is stored according to the limited length. For the screening result display, the analysis module 204 reads information of two pages before and after display, and judges and updates in real time so as to ensure that the software has limited read data size and smooth display.
In the scheme of the present disclosure, the communication module 226 has the characteristic of flexible configuration, the ethernet supports flexible collocation of UDP/TCP, and the RS485/RS422 flexibly configures the working mode and the communication rate.
In the aspect of data acquisition, besides key information such as network IP, port number and the like and the need of configuration of UDP/TCP working combination modes, the data can be directly sent to a data acquisition device for storage, and the data analysis mode is required to be configured during analysis.
In terms of data playback, two data acquisition and playback methods are provided, the acquired data stream can be directly sent to the analysis module 204 through the Ethernet and real-time data playback is provided, and the acquired data stream can also be sent to the data acquisition device for storage through the Ethernet or the RS485/RS422, and then the analysis module 204 reads the data of the storage device and plays back after analysis.
Fig. 3 shows a schematic block diagram of an example electronic device 300 that may be used to implement methods of embodiments of the present disclosure. As shown, the electronic device 300 includes a central processing unit (i.e., CPU 301) that can perform various suitable actions and processes in accordance with computer program instructions stored in a read only memory (i.e., ROM 302) or computer program instructions loaded from a storage unit 308 into a random access memory (i.e., RAM 303). In the RAM 303, various programs and data required for the operation of the electronic device 300 may also be stored. The CPU 301, ROM 302, and RAM 303 are connected to each other through a bus 304. An input/output interface (i.e., I/O interface 305) is also connected to bus 304.
Various components in the electronic device 300 are connected to the I/O interface 305, including: an input unit 306 such as a keyboard, mouse, microphone, etc.; an output unit 307 such as various types of displays, speakers, and the like; a storage unit 308 such as a magnetic disk, an optical disk, or the like; and a communication unit 309 such as a network card, modem, wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The various procedures and processes described above, such as method 100, may be performed by CPU 301. For example, in some embodiments, the method 100 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 308. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 300 via the ROM 302 and/or the communication unit 309. One or more of the acts of the method 100 described above may be performed when the computer program is loaded into RAM 303 and executed by CPU 301.
The present disclosure relates to methods, electronic devices, computer-readable storage media, and/or computer program products. The computer program product may include computer readable program instructions for performing various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge electronics. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present disclosure can be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
The foregoing is merely an alternative embodiment of the present disclosure, and is not intended to limit the present disclosure, and various modifications and variations may be made to the present disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (9)

1. A method for playing back data, comprising:
collecting data via a data collection module to add a time stamp, a data header and a data packet tail to the collected data to form unresolved data;
in response to determining that an instruction for data playback is received from the parsing module, transmitting unresolved data to the parsing module; and
the method comprises the steps of obtaining analysis configuration information through an analysis module, and analyzing unresolved data according to the analysis configuration information so as to play back the analyzed data;
analyzing the unresolved data according to the analysis configuration information comprises:
extracting a timestamp from the unresolved data;
removing a data packet head and a data packet tail aiming at unresolved data; and
and analyzing the unresolved data after removing the data packet head and the data packet tail according to the analysis configuration information.
2. The method of claim 1, wherein parsing the configuration information comprises at least one of: data type, parsing scheme and transport protocol type.
3. The method as recited in claim 1, further comprising:
storing the unresolved data to a target memory via a data acquisition module; and
transmitting the unresolved data to the resolving module comprises:
the unresolved data is read from the target memory for transfer to the resolution module.
4. The method of claim 1, wherein parsing the unresolved data after removing the header and trailer according to the parse configuration information comprises:
determining a data list according to the unresolved data after removing the data packet head and the data packet tail; adding the extracted time stamp to a data list; and dividing the data list into a plurality of data files having a predetermined length.
5. The method of claim 1, wherein playing back parsed data comprises:
acquiring screening configuration information; and
and screening the target data from the parsed data according to the screening configuration information so as to play back the target data.
6. The method as recited in claim 4, further comprising:
and naming the data file by the timestamp corresponding to the first piece of data in the data file.
7. The method of claim 1, wherein playing back parsed data comprises:
and fitting the parsed data into a curve about time according to the timestamp corresponding to the parsed data so as to be displayed.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
9. A computer readable storage medium, characterized in that a computer program is stored on the computer readable storage medium, which computer program, when executed by a machine, implements the method according to any of claims 1 to 7.
CN202311783001.3A 2023-12-22 2023-12-22 Method for playing back data, electronic device and storage medium Active CN117459613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311783001.3A CN117459613B (en) 2023-12-22 2023-12-22 Method for playing back data, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311783001.3A CN117459613B (en) 2023-12-22 2023-12-22 Method for playing back data, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN117459613A true CN117459613A (en) 2024-01-26
CN117459613B CN117459613B (en) 2024-03-19

Family

ID=89589526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311783001.3A Active CN117459613B (en) 2023-12-22 2023-12-22 Method for playing back data, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117459613B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253915A (en) * 2011-06-16 2011-11-23 中国科学院自动化研究所 Data acquisition and playback system
US20130104177A1 (en) * 2011-10-19 2013-04-25 Google Inc. Distributed real-time video processing
CN103780977A (en) * 2014-02-26 2014-05-07 厦门雅迅网络股份有限公司 Streaming media playing method based on frame alignment technology
US20160371348A1 (en) * 2015-06-22 2016-12-22 Samsung Electronics Co., Ltd. Method and electronic device for displaying related information of parsed data
CN109981475A (en) * 2019-03-27 2019-07-05 无锡海斯凯尔医学技术有限公司 Data transmission, reception, transmission method, equipment, system and readable storage medium storing program for executing
CN111104535A (en) * 2019-11-20 2020-05-05 中国第一汽车股份有限公司 Data management system and data management method
CN111930975A (en) * 2020-06-21 2020-11-13 中国舰船研究设计中心 Ship navigation data playback and analysis system and method
CN112819990A (en) * 2020-12-17 2021-05-18 中国舰船研究设计中心 Marine navigation data monitoring and playback device
CN113422794A (en) * 2021-02-09 2021-09-21 阿里巴巴集团控股有限公司 Traffic recording and playback processing method and device and electronic equipment
CN113872810A (en) * 2021-09-29 2021-12-31 中国建设银行股份有限公司 Service simulation method and device, electronic equipment and storage medium
CN114912432A (en) * 2022-05-13 2022-08-16 深圳市商汤科技有限公司 Data analysis method and device, electronic equipment and storage medium
CN115221210A (en) * 2022-07-25 2022-10-21 中国人民解放军陆军航空兵学院 Method for analyzing maneuvering capacity based on aviation equipment flight parameter data
CN115866587A (en) * 2022-12-15 2023-03-28 苏州卓智创芯电子科技有限公司 Internet of things safety data processing method, device and system based on real-time dynamic transmission
CN115864661A (en) * 2023-03-02 2023-03-28 国网山东省电力公司新泰市供电公司 Remote monitoring method for operating data of power equipment
CN115904388A (en) * 2022-11-29 2023-04-04 北京锐安科技有限公司 Application program protocol analysis method, device, equipment and storage medium
CN116302973A (en) * 2023-02-15 2023-06-23 中国航空无线电电子研究所 Avionics task software host interface test and simulation system
CN116450027A (en) * 2023-03-08 2023-07-18 上海傲显科技有限公司 Data sampling method, device and storage medium based on programmable logic device
CN117148746A (en) * 2022-05-24 2023-12-01 中国科学院沈阳自动化研究所 Remote data acquisition monitoring terminal and method for ship energy management system
CN117155832A (en) * 2023-08-30 2023-12-01 广州工程技术职业学院 Multi-terminal non-invasive recording playback test method and system for UDP transmission protocol

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102253915A (en) * 2011-06-16 2011-11-23 中国科学院自动化研究所 Data acquisition and playback system
US20130104177A1 (en) * 2011-10-19 2013-04-25 Google Inc. Distributed real-time video processing
CN103780977A (en) * 2014-02-26 2014-05-07 厦门雅迅网络股份有限公司 Streaming media playing method based on frame alignment technology
US20160371348A1 (en) * 2015-06-22 2016-12-22 Samsung Electronics Co., Ltd. Method and electronic device for displaying related information of parsed data
CN109981475A (en) * 2019-03-27 2019-07-05 无锡海斯凯尔医学技术有限公司 Data transmission, reception, transmission method, equipment, system and readable storage medium storing program for executing
CN111104535A (en) * 2019-11-20 2020-05-05 中国第一汽车股份有限公司 Data management system and data management method
CN111930975A (en) * 2020-06-21 2020-11-13 中国舰船研究设计中心 Ship navigation data playback and analysis system and method
CN112819990A (en) * 2020-12-17 2021-05-18 中国舰船研究设计中心 Marine navigation data monitoring and playback device
CN113422794A (en) * 2021-02-09 2021-09-21 阿里巴巴集团控股有限公司 Traffic recording and playback processing method and device and electronic equipment
CN113872810A (en) * 2021-09-29 2021-12-31 中国建设银行股份有限公司 Service simulation method and device, electronic equipment and storage medium
CN114912432A (en) * 2022-05-13 2022-08-16 深圳市商汤科技有限公司 Data analysis method and device, electronic equipment and storage medium
CN117148746A (en) * 2022-05-24 2023-12-01 中国科学院沈阳自动化研究所 Remote data acquisition monitoring terminal and method for ship energy management system
CN115221210A (en) * 2022-07-25 2022-10-21 中国人民解放军陆军航空兵学院 Method for analyzing maneuvering capacity based on aviation equipment flight parameter data
CN115904388A (en) * 2022-11-29 2023-04-04 北京锐安科技有限公司 Application program protocol analysis method, device, equipment and storage medium
CN115866587A (en) * 2022-12-15 2023-03-28 苏州卓智创芯电子科技有限公司 Internet of things safety data processing method, device and system based on real-time dynamic transmission
CN116302973A (en) * 2023-02-15 2023-06-23 中国航空无线电电子研究所 Avionics task software host interface test and simulation system
CN115864661A (en) * 2023-03-02 2023-03-28 国网山东省电力公司新泰市供电公司 Remote monitoring method for operating data of power equipment
CN116450027A (en) * 2023-03-08 2023-07-18 上海傲显科技有限公司 Data sampling method, device and storage medium based on programmable logic device
CN117155832A (en) * 2023-08-30 2023-12-01 广州工程技术职业学院 Multi-terminal non-invasive recording playback test method and system for UDP transmission protocol

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHANG XIAOTIAN; CHEN CHEN: "Data mining and event playback on networked information simulation system", 2015 34TH CHINESE CONTROL CONFERENCE (CCC), 14 September 2015 (2015-09-14) *
张宁;张安;张耀中;: "飞行数据综合回放系统设计", 火力与指挥控制, no. 12, 15 December 2013 (2013-12-15) *

Also Published As

Publication number Publication date
CN117459613B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN109284334B (en) Real-time database synchronization method and device, electronic equipment and storage medium
US10923157B2 (en) System and method for event data collection and video alignment
US20130179821A1 (en) High speed logging system
CN113810791A (en) Method for improving intelligent network card/DPU network telemetering technology performance
CN111831383A (en) Window splicing method, device, equipment and storage medium
CN110278272B (en) Universal method for simulating Socket request
CN117459613B (en) Method for playing back data, electronic device and storage medium
CN110347567B (en) Binary data log analysis method and system based on protocol matching
CN117201635A (en) Data processing system and method
CN108604226B (en) System and method for cross-platform synchronization of comments to an electronic document
CN106487855B (en) File uploading method, file accessing method, file uploading device, file accessing device and equipment
KR101200773B1 (en) Method for Extracting InputFormat for Handling Network Packet Data on Hadoop MapReduce
JP5106359B2 (en) Computer program, data capturing apparatus, data capturing method, and data management system
EP3789831A1 (en) System and method for simulating field device in industrial plant
KR102261848B1 (en) Time-synchronized remote system and the operation method thereof
CN114051164A (en) Decoding abnormal code stream generation method and device, electronic equipment and readable storage medium
US8775528B2 (en) Computer readable recording medium storing linking keyword automatically extracting program, linking keyword automatically extracting method and apparatus
CN111541697A (en) On-line communication method based on protocol configuration
CN112052026B (en) Method and device for determining interaction relation between systems
CN113285904A (en) RDP-based method for analyzing disk mapping file information
CN114356490B (en) Financial information visualization processing method and system based on big data
CN112350996A (en) Communication message analysis system and method adaptable to protocol upgrading
CN114374812B (en) Communication information monitoring equipment, method and system of DP (data processing) interface auxiliary channel
US9342522B2 (en) Computer implemented system for analyzing a screen-based user session of a process in a network environment
US20240080356A1 (en) File converter for ran parser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant