Data acquisition method and system of power test detection instrument and storage medium

By analyzing the communication protocols and registration status of power testing instruments and using virtual entity models for data acquisition, the problem of the lack of a unified data interface for power testing instruments and meters is solved, achieving efficient and seamless data interaction and integration, and improving the reliability and accuracy of data acquisition.

CN118764742BActive Publication Date: 2026-03-20ELECTRIC POWER RES INST STATE GRID SHANXI ELECTRIC POWER
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

The lack of a unified data interface in existing power testing and inspection instruments makes it difficult to interconnect data. Manual recording carries risks such as data loss and incorrect entry, and cannot guarantee the authenticity, reliability and timeliness of the data.

Method used

By parsing the communication protocol of power testing instruments, the device identifier is obtained and the registration status is determined. The data packets are parsed using a virtual entity model, preprocessed, and converted into a unified structure to achieve data acquisition.

Benefits of technology

It overcomes the challenge of compatibility between different protocols, and achieves efficient and seamless data interaction and integration between power testing instruments and equipment, thereby improving the reliability and accuracy of data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764742B_ABST
    Figure CN118764742B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of power equipment monitoring, and discloses a data acquisition method and system for power test detection instruments and a computer readable storage medium, which comprises the following steps: acquiring power test detection instruments of a communication type and corresponding data packets to be acquired; analyzing the communication protocol of the power test detection instruments; if the equipment identifier is successfully analyzed and acquired, it is determined whether the power test detection instruments have been registered; if not, the data packets to be acquired are discarded; if yes, it is detected whether the corresponding virtual entity model exists in a virtual entity pool; if yes, the virtual entity model is used to analyze the data packets to be acquired and acquire entity data; if not, the corresponding virtual entity model is constructed in the virtual entity pool to analyze the data packets to be acquired and acquire entity data; the entity data is pretreated to acquire target data; and the target data is converted into a unified structure to complete the data acquisition of the data packets to be acquired.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power equipment monitoring, in particular to a data acquisition method and system for power test detection instruments and a computer readable storage medium. BACKGROUND

[0002] With the continuous development and expansion of the power system, the number and types of power equipment are also increasing; the state monitoring and index measurement of power equipment are one of the important guarantee means of power safety production and intelligent operation, and are a key component of the new power system. Through real-time monitoring and index measurement of power equipment, potential equipment failures can be detected in time, major accidents can be prevented, and the safe and stable operation of the power system can be ensured.

[0003] However, a large number of existing power test detection instruments often lack a unified data interface, or even do not have a data interface, which makes it difficult to interconnect and interoperate data, increasing the difficulty of data integration and analysis; at this time, data is collected in the form of field notes, and then entered into the computer after the detection is completed, but such manual recording method has the risk of data loss, incorrect entry, etc., and cannot guarantee the authenticity, real-time and reliability of the data. SUMMARY

[0004] Therefore, the technical problem to be solved by the present application is to overcome the problem that the power test detection instruments lack a unified data interface in the prior art, and the manually recorded data cannot guarantee authenticity, reliability and real-time.

[0005] To solve the above technical problems, the present application provides a data acquisition method for power test detection instruments, comprising:

[0006] acquiring a power test detection instrument of a communication type, and a to-be-acquired data packet sent by the power test detection instrument;

[0007] analyzing the communication protocol of the power test detection instrument, and if the device identifier is successfully analyzed and acquired, determining whether the power test detection instrument has been registered based on the device identifier:

[0008] if the power test detection instrument is in an unregistered state, discarding the to-be-acquired data packet;

[0009] if the power test detection instrument is in a registered state, detecting whether a virtual entity model corresponding to the power test detection instrument exists in a virtual entity pool:

[0010] if it exists, analyzing the to-be-acquired data packet using the virtual entity model to acquire entity data;

[0011] If not, a virtual entity model corresponding to the power test detection instrument is constructed in a virtual entity pool, and the virtual entity model is used to analyze the data packet to be collected to obtain entity data.

[0012] The entity data is preprocessed to obtain target data, and the target data is converted into a unified structure to complete data collection of the data packet to be collected.

[0013] Preferably, if the communication protocol of the power test detection instrument fails to be analyzed and the device identifier cannot be obtained, the data packet to be collected is discarded.

[0014] Preferably, a protocol adapter corresponding to the communication protocol used by the power test detection instrument is selected to construct the virtual entity model and stored in the virtual entity pool.

[0015] Preferably, the preprocessing of the entity data includes data cleaning of the entity data, and the data cleaning includes missing value processing, abnormal value processing and repeated value processing.

[0016] Preferably, the conversion of the target data into a unified structure includes converting the type and domain coding rule of the target data into a preset data type, a preset data structure and a preset data coding rule.

[0017] Preferably, the types of the power test detection instrument include a background software device, a communication device, a non-communication device and a suspicious device.

[0018] The embodiment provides a data collection system of a power test detection instrument, which comprises:

[0019] A device control and service layer comprises:

[0020] An adapter comprises a device adaptation module and a virtual entity engine; the device adaptation module is used to analyze the communication protocol of the power test detection instrument and judge whether the power test detection instrument has been registered; and the virtual entity engine is used to construct a virtual entity model corresponding to the power test detection instrument, so that the virtual entity model obtains and analyzes a data packet to be collected to obtain entity data.

[0021] A virtual entity pool is used to store the virtual entity model corresponding to the power test detection instrument.

[0022] A data preprocessing layer comprises:

[0023] A data filtering module is used to preprocess the entity data to obtain target data.

[0024] A data processing module is used to convert the target data into a unified structure.

[0025] a data service layer, on which a service interface is arranged, for calling a virtual entity model in the virtual entity pool and using the virtual entity model to analyze a data packet to be collected to obtain entity data.

[0026] Preferably, the device control and service layer further comprises:

[0027] a protocol registration module for managing registration of communication protocols and devices of the power test detection instrument.

[0028] a protocol repository for storing identifiers of the registered communication protocols and devices of the power test detection instrument.

[0029] Preferably, the data service layer further comprises a connection management module, which is in communication connection with the power test detection instrument and is configured to send the data packet to be collected to the adapter.

[0030] The embodiment provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the data collection method of the power test detection instrument.

[0031] Compared with the prior art, the technical scheme of the embodiment has the following beneficial effects:

[0032] The data collection method of the power test detection instrument provided by the embodiment analyzes the communication protocol and the registration state of the power test detection instrument of the communication type, obtains the data packet to be collected sent by the power test detection instrument with the communication protocol that can be analyzed and that has been registered, analyzes the data packet to be collected by using the virtual entity model corresponding to the power test detection instrument, pre-processes the entity data obtained, and converts the entity data into a unified structure based on a preset standard, so that the communication mode, the interface mode and the data structure difference between typical protocols are overcome, the differences in the hardware type, the interface and the protocol are intelligently shielded in the perception layer, the data intelligent processing and the interconnection and intercommunication in the business layer are formed, the reliability and the accuracy of the power test data collection are improved, and the power test detection instrument can efficiently and seamlessly interact and integrate with the test equipment. BRIEF DESCRIPTION OF DRAWINGS

[0033] In order to make the content of the application more easily understood, the application will be further described in detail below according to specific embodiments of the application and in conjunction with the drawings, in which

[0034] Figure 1 is a step flowchart of the data collection method of the power test detection instrument provided by the embodiment.

[0035] Figure 2It is the principle schematic diagram of the data acquisition method of the power test detection instrument provided by the application;

[0036] Figure 3 It is the architecture schematic diagram of the data acquisition system of the power test detection instrument provided by the application;

[0037] Figure 4 It is the structure schematic diagram of the data acquisition device of the power test detection instrument provided by the application;

[0038] Figure 5 It is the hardware structure schematic diagram of the computer equipment provided by the application. DETAILED DESCRIPTION

[0039] The application will be further described below in conjunction with the drawings and specific embodiments, so that those skilled in the art can better understand the application and implement it, but the embodiments are not as a limitation on the application.

[0040] Referring to Figure 1 The step flow chart of the data acquisition method of the power test detection instrument provided by the application is shown, and the specific steps include:

[0041] S101: Obtain the power test detection instrument of the type of communication type equipment, and the data packet to be collected sent by the power test detection instrument;

[0042] S102: Analyze the communication protocol of the power test detection instrument;

[0043] S102-1: If the communication protocol of the power test detection instrument fails to be analyzed, the device identifier cannot be obtained, and the data packet to be collected is discarded;

[0044] S102-2: If the device identifier is successfully analyzed and obtained, it is judged whether the power test detection instrument has been registered based on the device identifier:

[0045] S103-1: If the power test detection instrument is in an unregistered state, the data packet to be collected is discarded;

[0046] S103-2: If the power test detection instrument is in a registered state, it is detected whether there is a virtual entity model corresponding to the power test detection instrument in the virtual entity pool:

[0047] S104-1: If there is, the virtual entity model is used to analyze the data packet to be collected to obtain entity data;

[0048] S104-2: If not, a virtual entity model corresponding to the power test detection instrument is constructed in a virtual entity pool, and the virtual entity model is used to analyze the to-be-collected data packet,

[0049] acquiring entity data;

[0050] S105: preprocessing the entity data to obtain target data; and converting the target data into a unified structure to complete data collection of the to-be-collected data packet.

[0051] Specifically, in step S104-2, a protocol adapter corresponding to a communication protocol used by the power test detection instrument is selected to construct a virtual entity model, and the virtual entity model is stored in the virtual entity pool.

[0052] Specifically, in step S105, the entity data is preprocessed, including data cleaning of the entity data; the data cleaning includes missing value processing, abnormal value processing, and repeated value processing; and the target data is converted into a unified structure, including converting a type and a domain coding rule of the target data into a preset data type, a preset data structure, and a preset data coding rule.

[0053] The data collection method of the power test detection instrument provided in the application overcomes the communication mode, interface mode, and data structure differentiation adaptation problems among typical protocols, realizes intelligent shielding of differences in hardware types, interfaces, and protocols at the perception layer, forms intelligent data processing and interconnection and intercommunication at the business layer, improves the reliability and accuracy of power test data collection, and enables the power test detection instrument to realize efficient and seamless data interaction and integration with the test equipment.

[0054] Based on the above embodiment, in the embodiment of the application, a data collection method of a power test detection instrument is provided. Figure 2 As shown in FIG. 1, it is a principle schematic diagram of the data collection method of the power test detection instrument, and the specific steps include:

[0055] S201: analyzing a communication protocol and a device registration state of a power test detection instrument of a type of a communication device;

[0056] S202: In the case that the communication protocol of the power test detection instrument is resolvable and the device has been registered, the data packet sent by the power test detection instrument is parsed by using the virtual entity model corresponding to the power test detection instrument to obtain entity data;

[0057] S203: The entity data is preprocessed to obtain filtered data;

[0058] S204: The filtered data is converted into a unified structure.

[0059] Specifically, in step S202, in the case that the communication protocol of the power test detection instrument is resolvable and the device has been registered, it includes: detecting whether the virtual entity model corresponding to the power test detection instrument exists in the virtual entity pool; if the virtual entity model corresponding to the power test detection instrument exists in the virtual entity pool, the data packet sent by the power test detection instrument is directly parsed by using the virtual entity model; if the virtual entity model corresponding to the power test detection instrument does not exist in the virtual entity pool, the virtual entity model is constructed, and the data packet is parsed by using the virtual entity model.

[0060] Specifically, before parsing the communication protocol and the device registration state of the power test detection instrument of the communication type, it further includes: detecting the type of the power test detection instrument, wherein the type includes: a background software device, a communication device, a non-communication device, and a suspicious device; when it is detected that the type of the power test detection instrument is a communication device, step S201 of parsing the communication protocol and the device registration state of the power test detection instrument of the communication type is performed.

[0061] Specifically, after parsing the communication protocol and the device registration state of the power test detection instrument of the communication type, it further includes: in the case that the communication protocol of the power test detection instrument cannot be parsed, or the power test detection instrument is not registered, the data packet sent by the power test detection instrument is rejected.

[0062] Based on the above embodiment, in the present embodiment, the test detection data complete collection method of the power test detection instrument includes:

[0063] Detecting the type of the power test detection instrument; the type includes a background software device, a communication device, a non-communication device, and a suspicious device;

[0064] When it is detected that the type of the power test detection instrument is a communication device, receiving the data packet sent by the power test detection instrument;

[0065] identifying a communication protocol of the received data packet, and determining whether the communication protocol can be parsed:

[0066] If the communication protocol of the received data packet cannot be parsed, it is determined that the communication protocol of the data packet is not registered, and the data packet is rejected.

[0067] If the communication protocol of the received data packet can be parsed to obtain a corresponding device identifier, the device identifier is compared with a registered device polarity, and it is detected whether the power test detection instrument has been registered.

[0068] registered:

[0069] If the power test detection instrument has not been registered, the communication connection of the power test detection instrument is rejected, and the data packet is discarded.

[0070] If the power test detection instrument has been registered, it is detected whether a virtual entity corresponding to the power test detection instrument exists in a virtual entity pool:

[0071] If the virtual entity corresponding to the power test detection instrument exists in the virtual entity pool, the data packet is parsed by using the virtual entity to obtain entity data.

[0072] If the virtual entity corresponding to the power test detection instrument does not exist in the virtual entity pool, a virtual entity is constructed, and the data packet is parsed by using the virtual entity to obtain entity data.

[0073] The obtained entity data is preprocessed to obtain filtered data, and the filtered data is converted into a unified structure.

[0074] The test detection data acquisition method based on intelligent access adaptation provided by the embodiment of the application analyzes the communication protocol and the device registration state of the power test detection instrument of the communication type device; in the case that the communication protocol of the power test detection instrument is analyzable and the device has been registered, the data packet sent by the power test detection instrument is parsed by using the virtual entity model corresponding to the power test detection instrument to obtain entity data; the entity data is preprocessed to obtain filtered data; and the filtered data is converted into a unified structure, which solves the problem that the power test detection instrument lacks a unified data interface in the related art, and manual recording cannot provide authenticity, real-time performance and reliability guarantee, realizes intelligent shielding of differences in hardware types, interfaces and protocols in the perception layer, forms intelligent data processing and interconnection in the business layer, and improves the reliability and accuracy of power test data acquisition.

[0075] In the power test environment, diversified instruments and test equipment jointly build a complex technical ecology, which adopts different interface standards and data communication protocols, forming a complex network. To achieve intelligent access and adaptive test data acquisition technology, the key is to overcome the technical difficulties of protocol conversion and adaptation.

[0076] In the actual industrial internet scene, the demand for protocol conversion mainly manifests in two forms: message integration and protocol proxy. Message integration aims to build a multi-protocol integration platform, which integrates messages reported by each protocol client and shields message differences through the server, so that each protocol client can not only communicate smoothly with the server, but also access data uploaded by other clients without obstacles. This requires the server function of various protocols to be skillfully integrated into the gateway system. However, relying solely on message integration cannot solve the problem of external server resource access. Therefore, the gateway system also needs to have protocol proxy function as a bridge between different protocols to realize the two-way flow of information.

[0077] Different communication protocols have different characteristics. Taking three common protocols in the industrial internet as an example:

[0078] ① HTTP protocol, its communication mode is request-response mode, the server cannot actively push messages, the client needs to request first, and the server responds to data later. It is the most widely used communication protocol in traditional networks.

[0079] ② MQTT protocol, its communication mode is publish-subscribe mode, the publisher and the subscriber are decoupled, the publisher does not care who consumes its published messages, and the subscriber does not care who publishes the messages. Information interaction relies on the theme. MQTT message consists of fixed header, variable header and payload. The fixed header is mandatory, and the other two parts are determined by the flag bit in the fixed header. The transmission layer of the protocol is based on TCP, and the client connection is maintained by heartbeat message. MQTT protocol introduces the concept of topic hierarchy, using the slash separator to separate each level of the topic, which is similar in form to URI, but does not support parameter splicing; at the same time, the subscriber can use the topic filter, and the filter can use wildcards to subscribe to multiple topics at the same time.

[0080] ③CoAP protocol, the original intention of the design is that HTTP protocol overhead is too large to be not suitable for the limited environment of Internet of Things, and it is simplified to adapt to the network scene of Internet of Things equipment. CoAP protocol supports fewer methods than HTTP protocol, only contains Get, Put, Post, Delete these four methods. At the same time, CoAP protocol media type is greatly simplified compared with HTTP protocol, only supports six media types. CoAP protocol adds the Observe method, the client can establish and maintain the observation connection with the server. Similar to the MQTT protocol subscription method, but there are many differences; for example, in the observation connection, according to the server, the observer client can actively initiate a Get request to obtain the resource every certain time, or the server actively pushes the data to all observers of the resource after the resource changes; while the MQTT client only waits for the server to push.

[0081] Based on the above description, in the embodiment of the application, in order to improve the automation degree of real-time data acquisition and the test detection efficiency, the communication protocol and data specification are adapted for the devices with data communication capability using mainstream protocols such as REST / HTTP, CoAP, MQTT, AMQP, DDS, etc. The application embodiment provides a data acquisition method of power test detection instrument, that is, a data acquisition middleware system and a data acquisition gateway, so as to shield the differences in hardware types, interfaces, protocols, etc. in the perception layer, and form intelligent data processing and interconnection in the business layer. Specifically, the application embodiment divides the instruments in the real power test scene into four main categories, and designs a general data acquisition specification and technical scheme supporting unified adaptation according to the category characteristics:

[0082] 1) Equip with background software equipment: design a collection docking tool that can shield different data differences, and obtain instrument data through database docking or service docking (such as webservice or API provided by the product);

[0083] 2) Communication equipment: design an intelligent access adaptation middleware system, use virtual entity technology to intensively process the communication protocols involved in communication type power instruments, realize the conversion and interconnection of heterogeneous protocols;

[0084] 3) Non-communication equipment: research the enhancement scheme of computer vision technology in the detection, segmentation and identification method of instruments in the power test scene, and design a customized scheme for instrument recording in the power test scene;

[0085] 4) Suspicious equipment: there are some equipment in the account data that cannot be accurately classified due to missing feature information, which needs to be further investigated on site to improve the record information, and realize the classification and adaptation of suspicious equipment.

[0086] Specifically, for the communication type device, the embodiment provides a data acquisition system of a power test detection instrument, referring to Figure 3 Fig. 1 is a schematic diagram of an architecture of the data acquisition system of the power test detection instrument according to the embodiment of the application, as shown in the figure, the system comprises: Figure 3

[0087] a device control and service layer, which comprises:

[0088] an adapter, comprising a device adaptation module and a virtual entity engine; the device adaptation module is used for analyzing the communication protocol of the power test detection instrument and judging whether the power test detection instrument has been registered; the virtual entity engine is used for constructing a virtual entity model corresponding to the power test detection instrument, so that the virtual entity model acquires and analyzes a data packet to be acquired and acquires entity data;

[0089] a virtual entity pool, used for storing the virtual entity model corresponding to the power test detection instrument;

[0090] a data preprocessing layer, which comprises:

[0091] a data filtering module, used for preprocessing the entity data and acquiring target data;

[0092] a data processing module, used for converting the target data into a unified structure;

[0093] a data service layer, on which a service interface is arranged, used for calling the virtual entity model in the virtual entity pool and analyzing the data packet to be acquired by using the virtual entity model to acquire entity data.

[0094] The device control and service layer further comprises a protocol registration module, used for managing the communication protocol of the power test detection instrument and the registration of the device; and a protocol warehouse, used for storing the communication protocol and the device identifier of the power test detection instrument which have been registered. The data acquisition system of the power test detection instrument further comprises a connection management module; the connection management module is in communication connection with the power test detection instrument and is used for acquiring the data packet to be acquired and sending the data packet to the adapter.

[0095] Specifically, in the embodiment of the application, the specific functions of each layer in the data acquisition system of the power test detection instrument are described as follows:

[0096] 1. The device control and service layer is used for analyzing the communication protocol and the registration state of the power test detection instrument of the communication type, and in the case that the communication protocol of the power test detection instrument is analyzable and the device has been registered, the virtual entity model corresponding to the power test detection instrument is used to analyze the data packet sent by the power test detection instrument to obtain entity data.​

[0097] a data preprocessing layer, configured to preprocess the entity data to obtain filtered data;

[0098] a data service layer, configured to convert the filtered data into a unified structure.

[0099] Specifically, the device control and service layer comprises:

[0100] an adapter comprising a device adaptation module and a virtual entity engine;

[0101] the device adaptation module is configured to analyze a communication protocol and a device registration state of the power test detection instrument;

[0102] the virtual entity engine is configured to construct a corresponding virtual entity model for the power test detection instrument, and the virtual entity model is configured to analyze a data packet sent by the power test detection instrument to obtain entity data;

[0103] a protocol registration module configured to manage registration of a communication protocol and device registration of the power test detection instrument;

[0104] a protocol repository configured to store a registered communication protocol and / or a device identifier of the power test detection instrument;

[0105] a virtual entity pool configured to store a virtual entity model constructed by the virtual entity engine, and the virtual entity model is configured to provide a virtual entity service for a service interface in the data service layer.

[0106] Specifically, the data preprocessing layer comprises:

[0107] a data filtering module configured to perform data filtering on entity data in a message buffer queue to obtain filtered data;

[0108] a data processing module configured to convert the filtered data into a unified structure and send the filtered data to the data service layer.

[0109] For the system architecture provided by the embodiment of the application, a new device wanting to connect to and send data to the system must register its protocol in the protocol registration module so as to be identified by the system. When the registered device sends data to the system, the device control and service layer receives and identifies the communication protocol of the data stream by polling the identification information of the registered protocol. If the protocol cannot be parsed, it proves that the protocol has not been registered, and the receiving is rejected. If the corresponding device identifier can be parsed, the registered device is compared. If the device has not been registered, the connection is rejected and the data packet is discarded. Otherwise, the system queries whether the corresponding device entity model exists in the virtual entity pool. If not, the virtual entity model is constructed by the corresponding protocol adapter and stored in the pool. Further, the virtual entity model parses the data stream, removes irrelevant metadata information, and sends entity data to the data preprocessing layer. The layer aims to filter a large amount of repeated and worthless data, and converts the filtered data entities of different formats into a unified structure and transmits them to the data service layer. The data service layer can directly call the services provided by the entity pool to control the physical device. When the command from the upper application program reaches this layer, the device control service encapsulated by the entity pool is called to complete the management of the device.

[0110] In the embodiment of the application, the connection management module processes the requests from the devices or gateways, and then the adapter is used to parse the data uploaded by the heterogeneous devices and encapsulate them into a unified format of the upper layer. Similarly, the instructions sent by the upper layer are encapsulated and sent to the corresponding heterogeneous devices, and the adapter is responsible for processing different devices of a specific gateway. The virtual entity engine is the core component of the system. All devices are abstracted into corresponding virtual entity models, so that the heterogeneous devices have a unified structure and attributes and can communicate with each other. The virtual entity model includes the adapter required for protocol parsing and the interface properties exposed by the corresponding physical device to the outside world to assist data exchange and device discovery. It parses the data uploaded by the heterogeneous devices and encapsulates them into a unified format of the upper layer. The heterogeneous devices or instruments interact with the power Internet of Things test management platform through the message processing and message buffer queue of the data preprocessing layer, realizing the independence of the access interface specification of the power Internet of Things terminal device.

[0111] The embodiment of the application overcomes the communication mode, interface mode, and data structure differentiation adaptation problems among typical protocols, simultaneously constructs a data intelligent acquisition framework oriented to business processes, and finally achieves the efficient and seamless data interaction and integration between typical instruments and test devices in power tests.

[0112] Based on the above embodiment, in the embodiment of the application, a data acquisition device for power test detection instruments and meters is also provided. Referring to Figure 4 Fig. 1 is a structural schematic diagram of the data acquisition device for power test detection instruments and meters, and the specific device includes:

[0113] The first analysis unit 31 is configured to analyze the communication protocol and the device registration state of the power test detection instrument of the communication type device.

[0114] The second analysis unit 32 is configured to analyze the data packet sent by the power test detection instrument by using the virtual entity model corresponding to the power test detection instrument, when the communication protocol of the power test detection instrument is analyzable and the device is registered.

[0115] The preprocessing unit 33 is configured to preprocess the entity data to obtain filtered data.

[0116] The conversion unit 34 is configured to convert the filtered data into a unified structure.

[0117] The data acquisition device of the power test detection instrument in the embodiment is used to implement the data acquisition method of the power test detection instrument, and thus the specific implementation of the data acquisition device of the power test detection instrument can be seen from the foregoing embodiment of the data acquisition method of the power test detection instrument. Therefore, the specific implementation can be referred to the description of the corresponding embodiment, and will not be described here again.

[0118] Based on the foregoing embodiment, specifically, the data acquisition device of the power test detection instrument in the embodiment further comprises:

[0119] The first detection unit is configured to detect whether the virtual entity model corresponding to the power test detection instrument exists in the virtual entity pool, when the communication protocol of the power test detection instrument is analyzable and the device is registered.

[0120] The direct processing unit is configured to directly analyze the data packet sent by the power test detection instrument by using the virtual entity model, if the virtual entity model corresponding to the power test detection instrument exists in the virtual entity pool.

[0121] The construction unit is configured to construct the virtual entity model and analyze the data packet by using the virtual entity model, if the virtual entity model corresponding to the power test detection instrument does not exist in the virtual entity pool.

[0122] The rejection unit is configured to reject the data packet sent by the power test detection instrument, when the communication protocol of the power test detection instrument is not analyzable or the power test detection instrument is not registered, after analyzing the communication protocol and the device registration state of the power test detection instrument of the communication type device.

[0123] The second detection unit is configured to detect the type of the power test detection instrument before resolving the communication protocol and the device registration state of the power test detection instrument of the communication type, wherein the type includes: a background software device, a communication type device, a non-communication type device and a suspicious device.

[0124] The execution unit is configured to execute the step of resolving the communication protocol and the device registration state of the power test detection instrument of the communication type when it is detected that the type of the power test detection instrument is the communication type device.

[0125] Based on the above embodiment, the embodiment provides a computer device, as shown in Figure 5 The specific device includes a processor 41 and a memory 42 storing computer program instructions.

[0126] Specifically, the processor 41 includes a central processing unit (CPU), or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits that can be configured to implement the embodiments of the present application.

[0127] In particular, memory 42 can include mass storage for data or instructions. By way of example, and not limitation, memory 42 can include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash drive, a compact disc (CD), a DVD, a Blu-ray disk, a magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Storage 42 can be removable or non-removable (or fixed), as appropriate. Storage 42 can be internal or external, as appropriate. In particular embodiments, storage 42 is non-volatile memory. In particular embodiments, storage 42 includes read-only memory (ROM) and random-access memory (RAM). Where appropriate, this ROM can be mask- programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory (FLASH) or a combination of two or more of these. Where appropriate, this RAM can be static RAM (SRAM), dynamic RAM (DRAM), or a combination of both, where DRAM can be fast-page mode DRAM (FPM DRAM), extended data output DRAM (EDO DRAM), synchronous DRAM (SDRAM), and the like.

[0128] The memory 42 can be used to store or buffer various data files required for processing and / or communication, and possible computer program instructions executed by the processor 41.

[0129] The processor 41 reads and executes the computer program instructions stored in the memory 42 to implement any of the above-mentioned embodiments of the test data acquisition method based on intelligent access adaptation.

[0130] In some embodiments, the computer device can further include a communication interface 43 and a bus 40. As shown, the processor 41, the memory 42, and the communication interface 43 are connected through the bus 40 and complete communication with each other. Figure 5

[0131] The communication interface 43 is used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application. The communication interface 43 can also realize data communication with other components, such as external devices, image / data acquisition devices, databases, external storage, image / data processing workstations, etc.

[0132] ​Bus 40 includes hardware, software, or both, to couple components of the computer device to each other and to couple them both to the rest of the system. The bus 40 includes, but is not limited to, at least one of the following: a data bus, an address bus, a control bus, an expansion bus, a local bus, etc. By way of example and not limitation, the bus 40 can include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or another suitable bus or a combination of two or more of these, as appropriate. Where appropriate, the bus 40 can include one or more buses. Although the present embodiments describe and show a particular bus, the present application contemplates any suitable bus or interconnect.

[0133] In addition, in combination with the test detection data acquisition method based on intelligent access adaptation in the above-embodiment, the embodiment provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the data acquisition method of the power test detection instrument as described above.

[0134] The data acquisition method of the power test detection instrument and meter provided in the application overcomes the communication mode, interface mode, and data structure differentiation adaptation problems among typical protocols, realizes intelligent shielding of differences in hardware types, interfaces, and protocols at the perception layer, forms intelligent data processing and interconnection at the business layer, improves the reliability and accuracy of power test data acquisition, and enables the power test detection instrument and meter to realize efficient and seamless data interaction and integration with the test equipment.

[0135] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0136] The present application is described with reference to flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate one or more functions implemented in the flowcharts and / or block diagrams. Figure 1 The function specified in one or more flows or blocks. Figure 1 The function specified in one or more flows or blocks.

[0137] These computer program instructions can also be stored in a computer-readable memory capable of guiding the computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including instruction devices that implement the functions specified in one or more flows or blocks in the flowcharts and / or block diagrams. Figure 1 The function specified in one or more flows or blocks. Figure 1 The function specified in one or more flows or blocks.

[0138] These computer program instructions can also be loaded into a computer or other programmable data processing devices, so that a series of operational steps are performed on the computer or other programmable data processing devices to generate a computer implemented process, so that the instructions executed on the computer or other programmable data processing devices provide steps for implementing the function specified in the flowchart Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0139] Obviously, the above-mentioned embodiments are only examples for clearly illustrating the present application, and are not intended to limit the embodiments. Based on the above description, other different forms of changes or variations can be made by those skilled in the art. Here, all the embodiments are not required to be exhausted, and the obvious changes or variations derived therefrom are still within the protection scope of the present application.

Claims

1. A data acquisition method for power testing and detection instruments, characterized in that, include: Acquire power testing and inspection instruments of type communication equipment, and the data packets to be collected sent by the power testing and inspection instruments; The communication protocol of the power testing and inspection instrument is parsed. If the device identifier is successfully parsed and obtained, it is determined whether the power testing and inspection instrument has been registered based on the device identifier. If the power testing and inspection instrument is unregistered, the data packet to be collected will be discarded. If the power testing and inspection instrument is in a registered state, then check whether the virtual entity model corresponding to the power testing and inspection instrument exists in the virtual entity pool: If it exists, the virtual entity model is used to parse the data packet to be collected and obtain entity data; If it does not exist, select the protocol adapter corresponding to the communication protocol used by the power testing and inspection instrument to construct a virtual entity model, store it in the virtual entity pool, and use the virtual entity model to parse the data packet to be collected to obtain entity data; The entity data is preprocessed to obtain the target data; The target data is transformed into a unified structure, and the type, structure and encoding rules of the target data are converted into preset data types, preset data structures and preset data encoding rules to complete the data acquisition of the data packets to be collected.

2. The data acquisition method for power testing and inspection instruments according to claim 1, characterized in that, If the communication protocol of the power testing instrument fails to be parsed and the device identifier cannot be obtained, the data packet to be collected is discarded.

3. The data acquisition method for power testing and inspection instruments according to claim 1, characterized in that, The preprocessing of the entity data includes data cleaning; the data cleaning includes handling missing values, outliers, and duplicate values.

4. The data acquisition method for power testing and inspection instruments according to claim 1, characterized in that, The types of electrical testing and inspection instruments include those equipped with background software, communication devices, non-communication devices, and devices of questionable quality.

5. A data acquisition system for power testing and inspection instruments, characterized in that, The system implementing the data acquisition method for power testing and inspection instruments as described in any one of claims 1 to 4 includes: The device control and service layer includes: The adapter includes a device adaptation module and a virtual entity engine; the device adaptation module is used to parse the communication protocol of the power testing and inspection instruments and to determine whether the power testing and inspection instruments have been registered; the virtual entity engine is used to construct a virtual entity model corresponding to the power testing and inspection instruments, so that the virtual entity model can acquire and parse the data packets to be collected and obtain entity data. The virtual entity pool is used to store virtual entity models corresponding to power testing and inspection instruments. The data preprocessing layer includes: The data filtering module is used to preprocess entity data to obtain target data; The data processing module is used to transform the target data into a unified structure; The data service layer has service interfaces that are used to call the virtual entity models in the virtual entity pool and use the virtual entity models to parse the data packets to be collected and obtain entity data.

6. The data acquisition system for power testing and inspection instruments according to claim 5, characterized in that, The device control and service layer also includes: The protocol registration module is used to manage the communication protocols of power testing and inspection instruments and the registration of equipment. Protocol repository, used to store the communication protocols and device identifiers that have been registered for power testing and inspection instruments.

7. The data acquisition system for power testing and inspection instruments according to claim 5, characterized in that, It also includes a connection management module; the connection management module is communicatively connected to the power testing and inspection instruments and is used to acquire the data packets to be collected and send them to the adapter.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps in the data acquisition method for power testing and detection instruments as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and intelligent terminal for obtaining medical data from medical device

    CN103116690A

  • Automatic registration method and system of power Internet of Things terminal, equipment and storage medium

    CN115766913A

  • Communication protocol adaptation method and device for Internet of Things and industrial Internet of Things system

    CN117041383A