Data collection method, device, equipment and storage medium
By acquiring and analyzing the data of the inspection equipment and adapting according to the device type, the problem of inconsistent data formats of different devices is solved, and efficient data collection and unified storage are achieved.
Patent Information
- Application Number
- CN202211087856.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2042-09-07
AI Technical Summary
In the prior art, the data collected in different types of devices is not uniform in the way of configuring different communication interfaces, and the subsequent processing is relatively complicated.
By obtaining the inspection data sent by the inspection equipment, determining the equipment type according to the data type, and collecting it using the corresponding data collection method, including protocol conversion and data format analysis, and finally the data and acquisition results are stored in the preset database.
It realizes data acquisition of different types of inspection equipment, unifies the data format, simplifies subsequent processing, and improves the efficiency of data acquisition and preservation.
Smart Images

Figure CN117714317B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data acquisition method, device, equipment and storage medium. Background Art
[0002] The communication network is composed of a large number of basic communication devices and server devices. Server devices, as important communication infrastructure, are used to perform various operations such as configuration management and business processing.
[0003] With the development of Internet technology, the application of communication networks in hospital laboratories is becoming more and more extensive. There are many types of equipment in hospital laboratories, and the communication interfaces and communication protocols between different devices are not necessarily the same. Generally, in the hospital's communication network, different communication interfaces need to be configured for different types of equipment according to the type of equipment, and then the data of each device is collected or otherwise processed through different communication interfaces.
[0004] However, due to the frequent replacement of hospital equipment and diverse communication protocols, this processing method, in which different communication interfaces are configured for different types of equipment, does not uniformly collect data, and subsequent processing is more complicated. Summary of the invention
[0005] The purpose of this application is to provide a data collection method, device, equipment and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem that different communication interfaces are configured for different types of devices in the prior art, the collected data formats are not uniform, and the subsequent processing is more complicated.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a data collection method, the method comprising:
[0008] Acquire inspection data sent by inspection equipment;
[0009] Determining the device type of the inspection device according to the inspection data;
[0010] According to the device type, using the data collection method corresponding to the device type, collecting the inspection data and determining the data collection result;
[0011] The inspection data and the data collection results are stored in a preset database.
[0012] Optionally, collecting the inspection data according to the device type and using a data collection method corresponding to the device type to determine a data collection result includes:
[0013] According to the device type, adopting a protocol conversion method corresponding to the device type, converting the inspection data of the device communication protocol into inspection data of a preset communication protocol, wherein the device communication protocol is a communication protocol corresponding to the communication interface type;
[0014] The inspection data of the preset communication protocol is parsed to obtain the data collection result.
[0015] Optionally, parsing the inspection data of the preset communication protocol to obtain the data collection result includes:
[0016] The data format of the inspection data of the preset communication protocol is parsed to obtain the data collection result.
[0017] Optionally, the method further comprises:
[0018] Responding to the protocol analysis and duplex instruction analysis of the inspection data of the preset communication protocol respectively, and obtaining a response result record and a duplex communication record;
[0019] The response result record and the duplex communication record are stored in the preset database.
[0020] Optionally, performing data format parsing on the inspection data of the preset communication protocol to obtain the data collection result includes:
[0021] According to the device type, a data format parsing method corresponding to the device type is adopted to perform data format parsing on the inspection data of the preset communication protocol to obtain the data collection result.
[0022] Optionally, according to the device type, using a data format parsing method corresponding to the device type to perform data format parsing on the inspection data of the preset communication protocol to obtain the data collection result includes:
[0023] If the device type is a file-type device, then according to the file format of the inspection data, a parsing method corresponding to the file format is used to parse the inspection data of the preset communication protocol to obtain the data collection result.
[0024] Optionally, according to the device type, using a data format parsing method corresponding to the device type to perform data format parsing on the inspection data of the preset communication protocol to obtain the data collection result includes:
[0025] If the device type is a serial port device, then according to the data characteristics of the inspection data, feature matching is performed on a preset data feature library to obtain the data format of the inspection data;
[0026] The data format of the inspection data of the preset communication protocol is parsed using a parsing method corresponding to the data format to obtain the data collection result.
[0027] In a second aspect, another embodiment of the present application provides a data acquisition device, the device comprising: an acquisition module, a determination module and a storage module, wherein:
[0028] The acquisition module is used to acquire the inspection data sent by the inspection device;
[0029] The determination module is used to determine the device type of the inspection device according to the inspection data; according to the device type, adopt the data collection method corresponding to the device type to collect the inspection data and determine the data collection result;
[0030] The storage module is used to store the inspection data and the data collection results in a preset database.
[0031] Optionally, the device further comprises: a conversion module and a parsing module, wherein:
[0032] The conversion module is used to convert the inspection data of the device communication protocol into inspection data of a preset communication protocol according to the device type and using a protocol conversion method corresponding to the device type, wherein the device communication protocol is a communication protocol corresponding to the communication interface type;
[0033] The analysis module is used to analyze the inspection data of the preset communication protocol to obtain the data collection result.
[0034] Optionally, the parsing module is specifically used to perform data format parsing on the inspection data of the preset communication protocol to obtain the data collection result.
[0035] Optionally, the parsing module is specifically used to perform response protocol parsing and duplex instruction parsing on the inspection data of the preset communication protocol, respectively, to obtain a response result record and a duplex communication record;
[0036] The storage module is specifically used to store the response result record and the duplex communication record in the preset database.
[0037] Optionally, the parsing module is specifically used to perform data format parsing on the inspection data of the preset communication protocol according to the device type and using a data format parsing method corresponding to the device type to obtain the data collection result.
[0038] Optionally, the parsing module is specifically used to parse the test data of the preset communication protocol according to the file format of the test data and adopt a parsing method corresponding to the file format to obtain the data collection result if the device type is a file-type device.
[0039] Optionally, the apparatus further comprises: a matching module, for performing feature matching on a preset data feature library according to data features of the inspection data to obtain a data format of the inspection data if the device type is a serial port device;
[0040] The analysis module is specifically used to perform data format analysis on the inspection data of the preset communication protocol by adopting the analysis method corresponding to the data format to obtain the data collection result.
[0041] In the third aspect, another embodiment of the present application provides a data acquisition device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the data acquisition device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of any method described in the first aspect above.
[0042] In a fourth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any method described in the first aspect are executed.
[0043] The beneficial effect of the present application is: using the data collection method provided by the present application, after obtaining the inspection data sent by the inspection device, the device type of the inspection device corresponding to the current inspection data will be determined based on the inspection data, and according to the device type, the corresponding data collection method will be used to collect the inspection data. After determining the data collection result, the inspection data and the data collection result will be stored in a preset database. This setting method realizes that for different types of inspection equipment, data collection can be performed through corresponding data collection methods, thereby realizing data collection and storage in non-standard formats. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A flowchart of a data collection method provided in one embodiment of the present application;
[0046] Figure 2 A flowchart of a data collection method provided by another embodiment of the present application;
[0047] Figure 3 A schematic diagram of the structure of a data acquisition device provided in one embodiment of the present application;
[0048] Figure 4 A schematic diagram of the structure of a data acquisition device provided in another embodiment of the present application;
[0049] Figure 5 A schematic diagram of the structure of a data acquisition device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination 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.
[0051] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0052] In addition, the flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of this application, and can also remove one or more operations from the flowchart.
[0053] The following is an explanation of a data collection method provided in an embodiment of the present application in combination with a number of specific application examples. Figure 1 A flow chart of a data collection method provided in one embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0054] S101: Acquire inspection data sent by the inspection device.
[0055] S102: Determine the device type of the inspection device according to the inspection data.
[0056] In an embodiment of the present application, for example, the device type of the inspection device can be determined based on the data type of the inspection data. For example, if the inspection data is file-type data, then the device type of the inspection device is determined to be a file device; if the inspection data is serial port-type data, then the device type of the inspection device is determined to be a serial port device, wherein the serial port device can, for example, further include a COM interface device or a Universal Serial Bus (USB) interface device, etc. The content included in the specific device type can be flexibly adjusted according to user needs and is not limited to the above-mentioned embodiments.
[0057] S103: According to the device type, adopt the data collection method corresponding to the device type to collect the inspection data and determine the data collection result.
[0058] In an embodiment of the present application, before collecting data, it is necessary to first intercept the data corresponding to each device, wherein different device types may have different corresponding data interception methods. For example, the data types include file data and serial port data. For file data, the purpose of interception is to obtain the latest detection data on each device. The acquisition method may be, for example, to obtain the corresponding detection data after completing the relevant detection, or each device saves the device data after its detection, and the server intercepts and saves the data corresponding to each device by monitoring the device files in each device.
[0059] For example, a file system monitoring method can be programmed through a preset programming language. This method can monitor specific files or folders. When a new file is created in a specified specific folder, a Created event will be triggered. For example, changes in attributes such as the file size or the last write time in a specific folder will trigger a Changed event; if a file is deleted in a specific folder, a Deleted event will be triggered. By setting the Path property, the files or folders to be monitored are specified. By setting the Filter property, the types of files or folders to be monitored are set. For example, setting "*.*" means monitoring all files. By setting the NotifyFilter property, the event type to be monitored can be specified. By setting the Enable Raising Events property, it is determined whether to start monitoring.
[0060] The interception of serial port data can be divided into data interception of hardware serial port devices and data interception of software serial port devices. For hardware serial port devices, such as USB interface data, the serial port can be converted into a preset type of network interface to achieve two-way transparent transmission of data between the serial port and the network interface; the serial port device can immediately have the function of a network interface and connect to the network for data communication, thereby greatly extending the communication distance of the serial port device.
[0061] For the interception of software-type serial port data, for example, for a COM interface, the COM interface is also converted into a network interface for data communication, so that software-type serial port devices can also realize network communication.
[0062] In an embodiment of the present application, the preset type of network interface may be, for example, the Transmission Control Protocol / Internet Protocol (TCP / IP), which is a protocol cluster that can implement information transmission between multiple different networks. It should be understood that the above embodiments are only exemplary and are not limited to this.
[0063] S104: Store the inspection data and data collection results in a preset database.
[0064] In an embodiment of the present application, the preset database also stores the log data of each device. During subsequent use, if a communication failure occurs in a device, the possible communication failure of the device can be checked by obtaining the log data corresponding to the device in the preset database. Compared with the prior art, the operation and maintenance personnel need to go to the site of the faulty equipment to analyze and troubleshoot the fault. The troubleshooting method provided by the present application utilizes information technology, which does not require the operation and maintenance personnel to go to the site of the faulty equipment. It can not only realize remote troubleshooting of the fault, but also improve the troubleshooting efficiency.
[0065] By adopting the data collection method provided in the present application, after obtaining the inspection data sent by the inspection device, the device type of the inspection device corresponding to the current inspection data will be determined based on the inspection data, and the inspection data will be collected using the corresponding data collection method based on the device type. After determining the data collection result, the inspection data and the data collection result will be stored in a preset database. This setting method enables data collection for different types of inspection devices through corresponding data collection methods, thereby realizing data collection and storage in non-standard formats.
[0066] Optionally, based on the above embodiment, the embodiment of the present application may further provide a data collection method. The implementation process of determining the data collection result in the above method is illustrated below with reference to the accompanying drawings. Figure 2A flow chart of a data collection method provided in another embodiment of the present application is as follows: Figure 2 As shown, S103 may include:
[0067] S111: According to the device type, a protocol conversion method corresponding to the device type is used to convert the inspection data of the device communication protocol into inspection data of a preset communication protocol, where the device communication protocol is a communication protocol corresponding to the communication interface type.
[0068] S112: Analyze the inspection data of the preset communication protocol to obtain data collection results.
[0069] In an embodiment of the present application, parsing of the inspection data may include, for example: parsing of the response protocol of the inspection data, data format parsing or duplex instruction parsing, etc. The specific content of the analysis can be flexibly adjusted according to user needs, and the present application does not impose any restrictions on this.
[0070] Still taking the analysis of the inspection data as an example, for example, it may include: analyzing the response protocol of the inspection data, data format analysis or duplex instruction analysis, in an embodiment of the present application, the analysis method of the response protocol of the inspection data may be, for example: according to the device type, using the protocol conversion method corresponding to the device type, converting the inspection data of the device communication protocol into inspection data of a preset communication protocol, where the device communication protocol is the communication protocol corresponding to the communication interface type; parsing the inspection data of the preset communication protocol to obtain the data collection result.
[0071] In another embodiment of the present application, the method of performing data format parsing on the inspection data may be, for example: performing data format parsing on the inspection data of the preset communication protocol to obtain the data collection result.
[0072] Among them, in the process of data format parsing for different device types, the data format parsing method corresponding to the device type can be used according to the device type to perform data format parsing on the inspection data of the preset communication protocol to obtain the data collection result.
[0073] For example, if the device type is a file-type device, the data format of the inspection data of the preset communication protocol is parsed using a parsing method corresponding to the file format according to the file format of the inspection data to obtain a data collection result.
[0074] If the device type is a serial port device, then feature matching is performed on the preset data feature library according to the data features of the test data to obtain the data format of the test data; the data format of the test data of the preset communication protocol is parsed using the parsing method corresponding to the data format to obtain the data collection result.
[0075] In another embodiment of the present application, the method of performing duplex instruction parsing on the inspection data can be, for example: respectively performing response protocol parsing and duplex instruction parsing on the inspection data of the preset communication protocol to obtain response result records and duplex communication records; and storing the response result records and duplex communication records in a preset database.
[0076] In an embodiment of the present application, in addition to performing the above-mentioned analysis on the data, before the analysis, it is also necessary to parse the data using a corresponding parsing method based on the data type of the parsed data. For example, for file data, different file types can be determined first, and then the parsing methods corresponding to different file types can be used to parse the data. For example, file types can be divided into standard text file parsing, standard database file parsing, and secondary development parsing based on different file formats.
[0077] Taking the parsing of standard text files as an example, the collected data can be stored in standard text format on a workstation through the data processing program equipped by the device. Such devices will generate files in standard text format through their own data processing software. Relevant data can be obtained by monitoring and analyzing such files.
[0078] For serial port type devices, the analysis of communication data focuses on devices of different brands and models, and the transmitted data is not uniform. Changes in the settings of the equipment workbench may also cause changes in the communication information. The analysis provided by this application is to use the numerous data feature files on the platform to intelligently match the format. Thereby achieving automatic uninterrupted analysis and solving communication problems between diverse and heterogeneous devices. Its principle is similar to full-text feature matching. The difficulty lies in the recognition of a section of feature text, such as identifying which texts are dynamic texts (such as sample numbers, results, units), which are fixed texts (such as device models, module numbers), and which are regular texts (result detection time, expedited signs, paragraph markers).
[0079] In some possible embodiments, in addition to storing the data collection results in a preset database, the data collection results can also be sent to the corresponding inspection equipment. The sending method can be implemented through a sending module. For example, the sending module is responsible for implementing the data sending function, and can be implemented using a standard network communication protocol. Considering the reliability of the implementation, in the embodiments of the present application, the TCP protocol and concurrent programming are used for implementation.
[0080] The data collection method provided by the present application can not only identify the communication formats of different devices, but also unify the communication forms of different types of devices into one mode through a unified interface, thereby realizing data collection and storage in non-standard formats, and when a device fails, the device failure can be checked by remotely viewing the device log.
[0081] The following is an explanation of the data acquisition device provided by the present application in conjunction with the accompanying drawings. The data acquisition device can perform the above Figure 1-Figure 2 For any data collection method, its specific implementation and beneficial effects are as mentioned above and will not be repeated below.
[0082] Figure 3 A schematic diagram of the structure of a data acquisition device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the device includes: an acquisition module 201, a determination module 202 and a storage module 203, wherein:
[0083] An acquisition module 201 is used to acquire the inspection data sent by the inspection device;
[0084] The determination module 202 is used to determine the device type of the inspection device according to the inspection data; according to the device type, the data collection method corresponding to the device type is used to collect the inspection data and determine the data collection result;
[0085] The storage module 203 is used to store the inspection data and data collection results in a preset database.
[0086] Optionally, based on the above embodiment, the embodiment of the present application may also provide a data acquisition device, as follows in conjunction with the accompanying drawings: Figure 3 The implementation process of the given device is described by way of example. Figure 4 A structural diagram of a data acquisition device provided in another embodiment of the present application is shown in FIG. Figure 4 As shown, the device further includes: a conversion module 204 and a parsing module 205, wherein:
[0087] The conversion module 204 is used to convert the inspection data of the device communication protocol into the inspection data of the preset communication protocol according to the device type and using the protocol conversion method corresponding to the device type, wherein the device communication protocol is the communication protocol corresponding to the communication interface type;
[0088] The parsing module 205 is used to parse the inspection data of the preset communication protocol to obtain data collection results.
[0089] Optionally, the parsing module 205 is specifically used to perform data format parsing on the inspection data of the preset communication protocol to obtain data collection results.
[0090] Optionally, the parsing module 205 is specifically used to perform response protocol parsing and duplex instruction parsing on the inspection data of the preset communication protocol, respectively, to obtain a response result record and a duplex communication record;
[0091] The storage module 203 is specifically used to store the response result record and the duplex communication record in a preset database.
[0092] Optionally, the parsing module 205 is specifically configured to perform data format parsing on the inspection data of the preset communication protocol according to the device type and using a data format parsing method corresponding to the device type to obtain a data collection result.
[0093] Optionally, if the device type is a file-type device, the parsing module 205 is specifically used to parse the test data of the preset communication protocol according to the file format of the test data and adopt a parsing method corresponding to the file format to obtain a data collection result.
[0094] like Figure 4 As shown, the device further includes: a matching module 206, which is used to perform feature matching on a preset data feature library according to data features of the inspection data to obtain a data format of the inspection data if the device type is a serial port device;
[0095] The parsing module 205 is specifically used to perform data format parsing on the inspection data of the preset communication protocol by adopting a parsing method corresponding to the data format to obtain a data collection result.
[0096] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0097] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0098] Figure 5 This is a schematic diagram of the structure of a data acquisition device provided in one embodiment of the present application. The data acquisition device can be integrated into a terminal device or a chip of the terminal device.
[0099] like Figure 5 As shown, the data acquisition device includes: a processor 501, a bus 502 and a storage medium 503.
[0100] The processor 501 is used to store programs. The processor 501 calls the program stored in the storage medium 503 to execute the above Figure 1-Figure 2 The corresponding method embodiment has similar specific implementation methods and technical effects, which will not be described here.
[0101] Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program that, when executed by a processor, executes an embodiment corresponding to the above method.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0105] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A data collection method, characterized in that: The method comprises: Acquire inspection data sent by inspection equipment; Determining the device type of the inspection device according to the data type of the inspection data; According to the device type, using the data collection method corresponding to the device type, collecting the inspection data and determining the data collection result; Storing the inspection data and the data collection results in a preset database; The step of collecting the inspection data according to the device type and using a data collection method corresponding to the device type to determine a data collection result includes: According to the device type, using a protocol conversion method corresponding to the device type, converting the inspection data of the device communication protocol into inspection data of a preset communication protocol, the device communication protocol being a communication protocol corresponding to the communication interface type; Parsing the inspection data of the preset communication protocol to obtain the data collection result; The parsing of the inspection data of the preset communication protocol to obtain the data collection result includes: The data format of the inspection data of the preset communication protocol is parsed to obtain the data collection result.
2. The method according to claim 1, characterized in that The method further comprises: Performing response protocol analysis and duplex instruction analysis on the inspection data of the preset communication protocol respectively to obtain a response result record and a duplex communication record; The response result record and the duplex communication record are stored in the preset database.
3. The method according to claim 1, characterized in that The performing data format analysis on the inspection data of the preset communication protocol to obtain the data collection result includes: According to the device type, a data format parsing method corresponding to the device type is adopted to perform data format parsing on the inspection data of the preset communication protocol to obtain the data collection result.
4. The method according to claim 3, characterized in that The method of performing data format parsing on the inspection data of the preset communication protocol according to the device type and adopting the data format parsing method corresponding to the device type to obtain the data collection result includes: If the device type is a file-type device, then according to the file format of the inspection data, a parsing method corresponding to the file format is used to parse the inspection data of the preset communication protocol to obtain the data collection result.
5. The method according to claim 3, characterized in that: The method of performing data format parsing on the inspection data of the preset communication protocol according to the device type and adopting the data format parsing method corresponding to the device type to obtain the data collection result includes: If the device type is a serial port device, then according to the data characteristics of the inspection data, feature matching is performed on a preset data feature library to obtain the data format of the inspection data; The data format of the inspection data of the preset communication protocol is parsed using a parsing method corresponding to the data format to obtain the data collection result.
6. A data acquisition device, characterized in that: The device comprises: an acquisition module, a determination module and a storage module, wherein: The acquisition module is used to acquire the inspection data sent by the inspection device; The determination module is used to determine the device type of the inspection device according to the data type of the inspection data; according to the device type, adopt the data collection method corresponding to the device type to collect the inspection data and determine the data collection result; The storage module is used to store the inspection data and the data collection results in a preset database; The determination module also includes: a conversion module and a parsing module; The conversion module is used to convert the inspection data of the device communication protocol into inspection data of a preset communication protocol according to the device type and using a protocol conversion method corresponding to the device type, wherein the device communication protocol is a communication protocol corresponding to the communication interface type; The analysis module is used to analyze the inspection data of the preset communication protocol to obtain the data collection result; The analysis module is also used to perform data format analysis on the inspection data of the preset communication protocol to obtain the data collection result.
7. A data acquisition device, characterized in that: The device includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, when the data acquisition device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the method described in any one of claims 1-5.
8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is executed.
Citation Information
Patent Citations
Data packet analysis method and device
CN110166480A
Data processing method, device and system and storage medium
CN111694828A