Batch remote operation and maintenance and data checking method and system for electric meter terminals in distribution transformer station building

Through parallel threads and domestically produced independently controllable operating systems, batch remote operation and maintenance and data verification of electricity meter terminals are realized, solving the problems of low efficiency and safety hazards of traditional operation and maintenance methods, and improving operation and maintenance efficiency and safety.

CN120711048AActive Publication Date: 2025-09-26IESLAB ENERGY CO LTD
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202511194707.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-25
Publication Date
2025-09-26
Estimated Expiration
2045-08-25

AI Technical Summary

Technical Problem

Traditional meter terminal operation and maintenance methods are inefficient, prone to errors, pose safety risks, and occupy a large amount of human resources.

Method used

The communication protocol stack management thread, the meter terminal dynamic topology map thread and the batch meter terminal operation and maintenance and data verification operation thread are run in parallel, combined with the domestically produced independent and controllable operating system to realize batch remote operation and maintenance and data verification of meter terminals.

Benefits of technology

It improves operation and maintenance efficiency, reduces human resource investment, ensures the speed, accuracy and safety of operation and maintenance, avoids misoperation, and realizes centralized management of meter terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120711048A_ABST
    Figure CN120711048A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of electric meter terminal electric digital data processing, and relates to a batch remote operation and maintenance and data checking method and system for electric meter terminals in a distribution transformer station building. The method comprises the following steps: a communication protocol stack management thread loads a communication protocol and executes data receiving frame processing and data sending frame processing; the dynamic topological graph thread of the electric meter terminal in the distribution transformer station building executes topological graph drawing, and topological graph data fitting based on real-time data of the electric meter terminal and operation and maintenance and data checking processing of a single electric meter terminal are carried out; and the batch electric meter terminal operation and maintenance and data checking operation thread is used for establishing a thread pool to carry out batch electric meter terminal operation and maintenance and data checking operation. The system comprises an operation and maintenance host based on a domestic autonomous controllable operating system, and a communication protocol stack module, a dynamic topological graph module of electric meter terminals in a distribution transformer station building and a batch electric meter terminal operation and maintenance and data checking operation module which run on the operation and maintenance host. According to the invention, a communication protocol is automatically matched, and batch operation and maintenance and data checking operation of the ammeter terminal are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric digital data processing of electric meter terminals, and in particular relates to a method and system for batch remote operation and maintenance and data verification of electric meter terminals in a distribution transformer station. Background Art

[0002] As the scale of distribution network construction becomes larger and larger, the number of distribution transformer stations in the distribution network is also increasing. Each distribution transformer station is installed with a variety of meter terminals to measure and process electricity consumption data.

[0003] In their daily work, staff often need to perform maintenance and data verification on meter terminals within distribution substations. Traditionally, this involves staff using laptops or portable handheld devices to enter the meter terminal's compartment cabinet, manually connect to the meter terminal, and retrieve or download the meter terminal's various power data, operating status data, historical data files, parameters, fixed values, and firmware. This completes on-site maintenance and data verification to ensure trouble-free operation and accurate metering data. Typically, on-site maintenance of meter terminals is performed by a team of at least two to three people. This traditional maintenance method is inefficient and prone to errors. It also poses safety risks within the distribution substation and consumes significant human resources. Summary of the Invention

[0004] In order to solve the above technical problems, the present invention provides a method and system for batch remote operation and maintenance and data verification of electric meter terminals in distribution and transformation stations. The technical solutions adopted by the present invention are as follows: The method for batch remote operation and maintenance and data verification of electric meter terminals in distribution transformer substations creates a communication protocol stack management thread, a dynamic topology diagram thread for electric meter terminals in distribution transformer substations, and a batch electric meter terminal operation and maintenance and data verification operation thread. These three threads run in parallel to complete batch remote operation and maintenance and data verification of electric meter terminals. The specific steps are as follows: The communication protocol stack management thread loads the communication protocol, starts the successfully matched communication protocol, obtains the communication data of the meter terminal, performs data reception frame processing on the communication data of the meter terminal to obtain the real-time data of the meter terminal, and stores the real-time data of the meter terminal in the receiving data storage area; performs data transmission frame processing, checks whether there are operation and maintenance and data verification commands issued by other threads, and sends data to the meter terminal if there are any; The dynamic topology thread of the meter terminal in the distribution substation executes topology drawing, topology data fitting based on the real-time data of the meter terminal, and single meter terminal operation and maintenance and data verification processing; The batch meter terminal operation and maintenance and data verification operation threads establish a thread pool. The thread pool class provides two class variables: syncLock synchronization lock and dataMutux data mutex. After the batch meter terminal operation and maintenance and data verification operations are completed, the threads are released back to the thread pool in the order in which each meter terminal is completed.

[0005] Preferably, the specific steps of the communication protocol stack management thread include: Generate communication protocol in the form of dynamic library; Call the protocol stack creation function to create a communication protocol stack, which uses a tree map data structure; For unknown communication protocols, first conduct trial communication with the meter terminal to obtain the communication data frame format, then call the matching communication function to poll each protocol in the communication protocol stack, compare the communication data frame format with the data frame format of each communication protocol, until a completely matching communication protocol is found, record the meter terminal type for real-time data communication; if the automatic matching is not successful, switch to manual matching; if the manual matching is unsuccessful, it means that the protocols in the communication protocol stack are incomplete, and secondary development is required for expansion.

[0006] Preferably, the data reception frame processing steps include: 1) calling the communication interface driver function recvfrom to receive the communication data of the electric meter terminal; 2) judging the acquired communication data of the electric meter terminal, retaining it if it conforms to the communication protocol format, and discarding it if it does not conform to the communication protocol format; 3) performing data interpretation processing on the communication data of the electric meter terminal that conforms to the protocol format according to the format requirements specified in the communication protocol; 4) storing the interpreted data into the real-time data of the electric meter terminal in the received data storage area; Data transmission frame processing steps: 1) Obtain the operation and maintenance / calibration command; 2) Convert the operation and maintenance / calibration command into a data format message specified by the communication protocol and store it in the sending data storage area, which has a list cache queue; 3) Call the communication interface driver function sendto to send data to the meter terminal. The data format message sent comes from the list cache queue.

[0007] Preferably, in the dynamic topology thread of the meter terminal in the distribution transformer station, the topology drawing technology is used to draw the topology map, and the topology map and data reports that meet the field standards are automatically generated through modular graphics elements. The drawing process uses the standard graphics elements and custom graphics elements stored in the model library for drawing; the dynamic data / operation and maintenance report fitting technology is used to fit the real-time topology map data.

[0008] Preferably, the dynamic data / operation and maintenance report fitting technology adopts a multi-channel IO time-sharing multiplexing strategy and a synchronous non-blocking message notification mechanism. After obtaining the dynamic data, a map binary tree structure array of the data destination ID is established, and the type and quality description of each data point are judged. Invalid data is automatically deleted, and valid data is automatically pushed to the corresponding graphic element / operation and maintenance report on the topology map. The graphic element / operation and maintenance report performs data processing based on the pushed data, and dynamically changes the display, direction, color and format information of the graphic element / operation and maintenance report.

[0009] Preferably, in the batch meter terminal operation and maintenance and data verification operation thread, the thread pool is established using an independent class implementation, and the thread pool adopts a list queue structure. Each unit in the list queue structure stores a thread data structure, including the thread ID, the corresponding meter terminal ID, the thread start / shutdown function pointer, the thread running status and the number of times the thread is called.

[0010] Preferably, the syncLock synchronization lock is used to achieve data synchronization during parallel operation and maintenance and data verification operations, and the dataMutux data mutex is used to ensure that multiple threads do not conflict or overwrite when writing memory data.

[0011] The batch remote operation and maintenance and data verification system for meter terminals in the distribution transformer station is used to implement the aforementioned batch remote operation and maintenance and data verification method for meter terminals in the distribution transformer station, including an operation and maintenance host based on a domestically produced independent and controllable operating system, and a communication protocol stack module, a dynamic topology diagram module for meter terminals in the distribution transformer station, and a batch meter terminal operation and maintenance and data verification operation module running on the operation and maintenance host; the communication protocol stack module provides a protocol selection and configuration interface, and configures parameters according to different meter terminal types; the dynamic topology diagram display module for meter terminals in the distribution transformer station automatically fits the meter terminals in the distribution transformer station to the corresponding graphic elements of the topology diagram, displays location information and status data, and provides dynamic coloring and prompt alarms. The operation and maintenance operation data report is automatically matched to the meter terminal graphic element, and clicking it pops up the operation and maintenance report interface for the meter terminal; the batch meter terminal operation and maintenance and data verification operation module performs parallel operation and maintenance operations and data verification on multiple meter terminals at the same time.

[0012] Preferably, the operation and maintenance host is installed with a domestically produced independently controllable operating system, underlying resource library, GUI development environment, database and security software.

[0013] Preferably, the domestically produced independently controllable operating system adopts an operating system with a DDE graphical interface and a Linux 6 kernel.

[0014] Beneficial effects of the present invention: The method provided by the present invention supports mainstream communication protocols, automatically matches communication protocols, and enables plug-and-play use of meter terminals. Various operations and maintenance and data verification operations are performed on meter terminals using a report operation interface, enabling batch operation and maintenance of meter terminals and data verification operations. The system provided by the present invention uses a domestically produced, independently controllable operating system installed on the operation and maintenance host to ensure information security. Through remote communication technology, data from multiple dispersed meter terminals is aggregated onto the operation and maintenance host, enabling centralized management of meter terminals within distribution and transformer substations and batch operation and maintenance and data verification operations. While ensuring speed, accuracy, and security, the present invention improves operation and maintenance efficiency and saves human resource investment. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 This is a flow chart of a method for batch remote operation and maintenance and data verification of electric meter terminals according to a first embodiment of the present invention; Figure 2 This is a flowchart of a communication protocol stack management thread according to a first embodiment of the present invention; Figure 3 This is a flow chart of batch operation and maintenance and data verification operations according to the first embodiment of the present invention; Figure 4 This is an architecture diagram of a batch remote operation and maintenance and data verification system for electric meter terminals according to the second embodiment of the present invention. DETAILED DESCRIPTION

[0016] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, but not all of the embodiments.

[0017] Example 1:

[0018] like Figure 1 As shown in FIG, the method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution transformer station includes the following steps: Step 1: Initialize and create three working threads: 1.1. Create a communication protocol stack management thread to manage the scheduling operations of the communication protocol stack; 1.2. Create a dynamic topology thread for the meter terminals in the distribution substation to complete the topology drawing, display and data processing; 1.3. Create batch meter terminal operation and maintenance and data verification operation threads to complete the creation and management of the thread pool.

[0019] Step 2: The three working threads are started sequentially and run in parallel to complete batch remote operation and maintenance of electricity meter terminals and data verification. The specific steps are as follows: 2.1. Communication protocol stack management thread: 2.1.1. Load the communication protocol and go to steps 2.1.1-1 and 2.1.1-2 respectively; 2.1.1-1. Perform protocol list matching, start the communication protocol that matches successfully, call the communication interface driver function recvfrom to obtain the meter terminal communication data, and perform data reception frame processing and data transmission frame processing on the meter terminal communication data; 2.1.1-2. Parameter configuration: When configuring parameters, read the topology parameter file in the dynamic topology thread of the meter terminal in the distribution transformer station. Each different communication protocol requires different communication parameters to be configured, and the communication parameters of the communication object (meter terminal) are in the topology parameter file, so the topology parameter file needs to be read.

[0020] The meter terminals in the distribution substation are all connected to the communication network. The communication protocol stack management thread collects communication data from the meter terminals by calling the communication interface driver function recvfrom on the communication network. Standard protocol stacks for communicating with meter terminals are currently used, including IEC104, IEC103, IEC101, Modbus, and DLT645. The communication protocol stack management thread loads these protocols into the communication protocol stack and automatically matches the corresponding protocol to perform data exchange when communicating with the meter terminals.

[0021] The process of communication protocol stack management thread is as follows Figure 2 As shown, the specific steps include: The communication protocol is generated in the form of a dynamic library. Each communication protocol has a globally unified definition of ID, type, name, parameters, data frame format, framing and deframing interface, and a binary tree of data transmission control sessions. These elements constitute the basic components of a communication protocol.

[0022] Establish the communication protocol stack. Call the protocol stack creation function to create the communication protocol stack. The communication protocol stack uses a tree-like map data structure, where the key is the protocol's global ID and the value is a struct data structure containing the protocol name, parameters, and data frame format. The communication protocol stack is a global variable and is fully accessible. The communication protocol stack is established during the initialization phase and remains resident in memory, available for use by other modules.

[0023] Automatic protocol matching. When communicating with an electric meter terminal, for unknown communication protocols, a trial communication is first performed to obtain the communication data frame format. The matching communication function is then called to poll each protocol in the communication protocol stack, comparing the communication data frame format with that of each protocol until a fully matching protocol is found. After recording the electric meter terminal type, real-time data communication is performed. If the automatic match fails, manual matching is performed. If manual matching is still unsuccessful, it indicates that the communication protocol stack is incomplete, requiring a prompt and further development.

[0024] Data reception frame processing steps: 1) Call the communication interface driver function recvfrom to receive the meter terminal communication data; 2) Identify the acquired meter terminal communication data, retain it if it conforms to the communication protocol format, and discard it if it does not; 3) For meter terminal communication data that conforms to the protocol format, perform data interpretation processing according to the format requirements specified by the communication protocol; 4) The interpreted data is the real-time data of the meter terminal and is placed in the receiving data storage area for retrieval and use by other modules; 5) When fitting the real-time topology data in the dynamic topology thread of the meter terminal in the distribution transformer station, the deframed real-time data of the meter terminal is obtained from the receiving data storage area.

[0025] Data transmission frame processing steps: 1) Obtain the operation and maintenance / calibration command; 2) Convert the operation and maintenance / calibration command into the data format message specified by the communication protocol and store it in the sending data storage area. The sending data storage area is provided with a list cache queue for storing the data format message to be sent; 3) Call the communication interface driver function sendto to send data to the meter terminal. The data format message to be sent comes from the list cache queue in the sending data storage area.

[0026] First, execute the data receiving frame processing, and then execute the data sending frame processing. The data sending frame processing mainly checks whether there are batch operation and maintenance and data verification commands issued by the batch meter terminal operation and maintenance and data verification operation thread, or operation and maintenance and data verification commands issued by the dynamic topology map thread of the meter terminal in the distribution transformer station. If there are, send data to the meter terminal; if not, return and continue checking.

[0027] Determine whether the data has timed out. If it has not timed out and there is data, execute the data reception frame processing step; if it has timed out and there is no data, execute the protocol automatic matching.

[0028] 2.2. Dynamic topology diagram of meter terminals in distribution transformer station: The dynamic topology diagram thread of the meter terminal in the distribution substation includes: topology diagram drawing (using diagram model drawing technology), real-time topology diagram data fitting (using dynamic data / operation and maintenance report fitting technology) and single meter terminal operation and maintenance and data verification processing.

[0029] Model drawing technology automatically generates topological diagrams and data reports that meet site standards through modular elements. The drawing process utilizes standard and custom elements stored in the model library. The element's size, color, border, orientation, and font are pre-programmed into the model library.

[0030] The specific steps include: Each meter terminal's graphic element / operation and maintenance report has globally uniformly defined parameter data such as ID, type, name, data format, data vector direction, change cycle time, and minimum / maximum / mutation / step / normal values. These parameter data constitute a basic graphic element model unit. Any complex or combined graphic element model is composed of basic graphic element model units.

[0031] Dynamic data comes from an in-memory database, which tags each piece of data. The tags primarily include data segments such as the data source ID, data destination ID, type and quality description, time stamp description, and lifecycle duration. Furthermore, an in-memory operation and maintenance report map data structure is established based on the in-memory database. The key of this map is the meter terminal element ID, and the value is a dynamic vector array containing the meter terminal's operation and maintenance item information.

[0032] Dynamic data / operation and maintenance report fitting technology primarily utilizes a multi-path IO time-sharing multiplexing strategy and a synchronous, non-blocking message notification mechanism. After acquiring dynamic data, a binary tree array structure mapping the data's destination IDs is created. The type and quality description of each data point are determined, invalid data is automatically deleted, and valid data is automatically pushed to the corresponding element / operation and maintenance report on the topology map. The element / operation and maintenance report then processes the pushed data, dynamically changing its display, orientation, color, format, and other related information.

[0033] For single meter terminal operation and maintenance and data verification processing, you only need to click a button on the meter terminal icon. According to the ID of the meter terminal icon, the operation and maintenance report map data structure is searched, and the vector dynamic data information in the value value in the map data structure is displayed to issue operation and maintenance and data verification operation commands.

[0034] The topology map is automatically generated based on the parameter file; the parameter file defines various parameter data such as the number, type, location, color, connection points, data association information and meter terminal matching data of the graphic elements in the topology map.

[0035] 2.3. Batch meter terminal operation and maintenance and data verification operation thread, supporting parallel operation and maintenance and data verification operations for up to 128 meter terminals at the same time. Figure 3 As shown, the specific steps include: The thread pool is established using an independent class. The thread pool in this class uses a list queue structure. Each unit in the list queue structure stores the thread data structure, including the thread ID, the corresponding meter terminal ID, the thread start / shutdown function pointer, the thread running status, the number of times the thread is called, and other data. The initialization list number is 128, that is, the maximum number of threads is 128.

[0036] The thread pool class provides two class variables: the syncLock synchronization lock and the dataMutux data mutex. The syncLock synchronization lock ensures data accuracy and synchronization during parallel operations and data verification. The dataMutux data mutex ensures that multiple threads do not conflict or overwrite when writing to memory data.

[0037] After the batch meter terminal operation and maintenance and data verification operations are completed, the threads are released back to the thread pool in the order in which each meter terminal is completed, saving memory resources and facilitating next use; all batch operation and maintenance and data verification operation information is recorded in the database. The database table is established according to the operation sequence id, and its field is of longBinary type, which is used to store all information of this batch operation and maintenance operation.

[0038] The main purpose of establishing a thread pool is to perform batch maintenance and data verification for electricity meter terminals. Each meter terminal is assigned a thread for maintenance and data verification. The advantages of this are: 1) multiple meters can be maintained simultaneously; 2) data conflicts are eliminated, ensuring complete data accuracy.

[0039] The dynamic topology diagram thread for meter terminals within a distribution substation features the single-meter operation and data verification interface, as users sometimes perform maintenance and data verification operations on a single meter terminal on the topology diagram. The batch meter terminal operation and data verification thread allows for simultaneous maintenance and data verification operations on multiple meter terminals within a single interface. The issuance and display of maintenance and data verification commands for both modes are identical. Providing two operation and display interfaces is intended to prevent user errors.

[0040] Example 2:

[0041] like Figure 4As shown, the second embodiment of the present invention provides a batch remote operation and maintenance and data verification system for electric meter terminals in a distribution transformer station based on a domestically produced independently controllable operating system, which is used to implement the batch remote operation and maintenance and data verification method for electric meter terminals in a distribution transformer station described in the first embodiment. This is achieved by establishing an operation and maintenance host based on a domestically produced independently controllable operating system, and developing a batch remote operation and maintenance and data verification system for electric meter terminals on the operation and maintenance host. The batch remote operation and maintenance and data verification system for electric meter terminals includes: a communication protocol stack module, a dynamic topology diagram module for electric meter terminals in a distribution transformer station, and a batch electric meter terminal operation and maintenance and data verification operation module, specifically as follows: (1) Operation and maintenance host based on domestically produced, independently controllable operating system.

[0042] The operation and maintenance host uses domestic servers or domestic PCs, installs a graphical domestically-controlled independent operating system, and uses C++ / GUI (cross-platform application development framework) as an open source architecture development platform to develop software adapted to the domestic operating system.

[0043] The domestically produced, independently controlled operating system uses an operating system with a DDE graphical interface and a Linux 6 kernel. Various security software is also installed to ensure information security. A C++ / GUI development kit, underlying resource libraries, and database software are installed. Based on C++ / GUI, a batch remote operation and maintenance and data verification system for electric meter terminals is developed for the domestically produced, independently controlled operating system. The specific steps for setting up the operation and maintenance host based on the domestically produced, independently controlled operating system are as follows: 11. The installation process of the domestically produced, independently controlled operating system is relatively simple, and you only need to follow the installation manual. It should be noted that the disk partitioning operation needs to be done manually, and it needs to be divided into 5 zones, namely: efi partition, 300M; The swap partition must be larger than or equal to the host memory; / boot partition, boot file partition, 2-5G; / root partition, for installing operating system files and tool software; 300-500G; / home partition, for user personal files, is generally the remaining space on the hard disk, but should not be less than 100G.

[0044] 12. The installation of underlying resource libraries involves many underlying resource libraries, including: gcc / g++ compiler library, cmake build library, device access library, media operation library, configuration file access library, interface library, network device interface library and other necessary resource libraries. The installation of underlying resource libraries is mainly for adapting to domestically produced independent and controllable operating systems, and has the characteristics of customization and versioning. The installation of underlying resource libraries needs to be carried out in the following order: sudo apt-get update; sudo apt upgrade; sudo apt install software-properties-common; sudo apt-get install build-essential gcc g++ cmake libxkbcommon-x11-dev libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev libxcb-xfixes0-devlibxcb-util-dev; sudo apt-get install libx11-dev libxext-dev libxtst-dev libsm-devlibxrender-dev libfontconfig-dev libfreetype6-dev; sudo apt install libxfixes-dev libxi-dev libxcb1-dev libxcb-glx0-dev.

[0045] 13. The installation steps of C++ / GUI development environment are as follows: Put everywhere-src-5.14.2.tar.xz in the / home directory; Unzip, tar -xvf everywhere-src-5.14.2.tar.xz; Enter the unzipped directory, cd everywhere-src-5.14.2; Run . / configure; Run sudo make -j4, which takes about 20 minutes. Run sudo make install -j4, which takes about 10 minutes. By default, the installation directory is / usr / local / 5.14.2.

[0046] 14. The steps for installing the database are as follows: Create a new mysql_bundle directory in the / home / admin directory and copy the mysql-server_8.0.30 installation file to the mysql_bundle / directory. Unzip the mysql-server_8.0.30 installation file in the mysql_bundle / directory to generate nine sub-files. Then use the dpkg command to install these nine sub-files. Execute the following instructions in sequence to install (must be in sequence): sudo dpkg -i mysql-common_8.0.30-1debian10_amd64.deb; sudo dpkg -i mysql-community-client-plugins_8.0.30-1debian10_amd64.deb; sudo dpkg -i mysql-community-client-core_8.0.30-1debian10_amd64.deb; sudo dpkg -i mysql-community-client_8.0.30-1debian10_amd64.deb; sudo dpkg -i mysql-client_8.0.30-1debian10_amd64.deb; sudo dpkg -i mysql-community-server-core_8.0.30-1debian10_amd64.deb; sudo dpkg -i mysql-community-server_8.0.30-1debian10_amd64.deb; sudo dpkg -i libmysqlclient21_8.0.30-1debian10_amd64.deb; sudo dpkg -i libmysqlclient-dev_8.0.30-1debian10_amd64.deb.

[0047] To summarize, the above four steps are required to install a domestically produced, independently controlled operating system on an operation and maintenance host. The main innovation lies in how the domestically produced, independently controlled operating system can be transformed into a system suitable for stable, long-term operation in a specific industrial environment through customized installation, and can serve as a platform for customized software development. This feature is in line with my country's current policy of vigorously promoting the localization of industrial software platforms.

[0048] (2) Develop a batch remote operation and maintenance and data verification system for electricity meter terminals.

[0049] 21. Communication protocol stack module.

[0050] It supports multiple mainstream communication protocols, such as IEC104, IEC103, IEC101, Modbus, DLT645, etc. It adopts dynamic library format, which is convenient for expansion and calling, and is conducive to secondary development. It provides protocol selection and configuration interface, and configures parameters according to different meter terminal types.

[0051] 22. Dynamic topology display module of meter terminals in distribution and transformation station.

[0052] Based on the actual physical wiring diagram of the distribution transformer station, the meter terminals in the distribution transformer station are automatically fitted to the corresponding graphic elements of the topology map, displaying location information and status data, and providing dynamic coloring and prompt alarms to facilitate intuitive display and operation; the operation and maintenance operation data report is automatically matched to the meter terminal graphic element, and clicking it will automatically pop up the operation and maintenance report interface for the meter terminal.

[0053] 23. Batch meter terminal operation and maintenance and data verification operation module.

[0054] Parallel maintenance and data verification can be performed on multiple electricity meter terminals simultaneously, improving work efficiency. Utilizing a thread pool with 128 threads, the system can simultaneously operate on up to 128 electricity meter terminals. The thread pool features synchronization locks and data mutual exclusion mechanisms. Upon completion of maintenance operations, threads are released back to the thread pool, conserving memory resources and facilitating future maintenance operations. All batch maintenance operations and data verification information are recorded in a database for easy data tracing.

[0055] The embodiments of the present invention improve the reliability and safety of the operation and maintenance of electricity meter terminals through remote, automated and visual operation and maintenance operations, avoid misoperation of the electricity meter terminals during operation and maintenance to the greatest extent, and protect personnel and equipment from damage; implement batch operation and maintenance and data verification operations of electricity meter terminals through a software system, and significantly improve work efficiency: previously, on-site personnel operated through portable computers or handheld devices, and it took 15-30 minutes to complete one electricity meter terminal, and only about 15-20 point meter terminals could be operated and maintained a day. After adopting batch operation and maintenance, the operation and maintenance of up to 128 electricity meter terminals can be completed within 1 hour, and the work efficiency is increased by more than 10 times; the operation and maintenance of electricity meter terminals in traditional distribution and transformation stations generally requires 2-3 people for on-site operation, but with the present invention, only 1-2 people are needed, and in special cases, one person can complete all operation and maintenance and data verification operations.

[0056] In the embodiments of the present invention, technical features not described in detail are all existing technologies or conventional technical means and will not be described in detail here.

[0057] Finally, it should be noted that the above embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them, and the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that any person skilled in the art can modify or easily think of changes to the technical solutions described in the above embodiments within the technical scope disclosed by the present invention, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for remote batch operation and maintenance and data verification of electric meter terminals in distribution and transformation stations, characterized in that: Create a communication protocol stack management thread, a dynamic topology diagram thread for electric meter terminals in the distribution transformer station, and a batch electric meter terminal operation and maintenance and data verification operation thread. These three threads run in parallel to complete batch remote operation and maintenance and data verification of electric meter terminals. The specific steps are as follows: The communication protocol stack management thread loads the communication protocol, starts the successfully matched communication protocol, obtains the communication data of the meter terminal, performs data reception frame processing on the communication data of the meter terminal to obtain the real-time data of the meter terminal, and stores the real-time data of the meter terminal in the receiving data storage area; performs data transmission frame processing, checks whether there are operation and maintenance and data verification commands issued by other threads, and sends data to the meter terminal if there are any; The dynamic topology thread of the meter terminal in the distribution substation executes topology drawing, topology data fitting based on the real-time data of the meter terminal, and single meter terminal operation and maintenance and data verification processing; The batch meter terminal operation and maintenance and data verification operation threads establish a thread pool. The thread pool class provides two class variables: syncLock synchronization lock and dataMutux data mutex. After the batch meter terminal operation and maintenance and data verification operations are completed, the threads are released back to the thread pool in the order in which each meter terminal is completed.

2. The method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution and transformation station according to claim 1 is characterized in that: The specific steps of the communication protocol stack management thread include: Generate communication protocol in the form of dynamic library; Call the protocol stack creation function to create a communication protocol stack, which uses a tree map data structure; For unknown communication protocols, first conduct trial communication with the meter terminal to obtain the communication data frame format, then call the matching communication function to poll each protocol in the communication protocol stack, compare the communication data frame format with the data frame format of each communication protocol, until a completely matching communication protocol is found, record the meter terminal type for real-time data communication; if the automatic matching is not successful, switch to manual matching; if the manual matching is unsuccessful, it means that the protocols in the communication protocol stack are incomplete, and secondary development is required for expansion.

3. The method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution and transformation station according to claim 2 is characterized in that: Data reception frame processing steps: 1) Call the communication interface driver function recvfrom to receive the meter terminal communication data; 2) Identify the acquired meter terminal communication data and retain it if it conforms to the communication protocol format; discard it if it does not; 3) For meter terminal communication data that conforms to the protocol format, perform data interpretation and processing according to the format requirements specified by the communication protocol; 4) The interpreted data is converted into real-time meter terminal data and stored in the received data storage area; Data transmission frame processing steps: 1) Obtain the operation and maintenance / calibration command; 2) Convert the operation and maintenance / calibration command into a data format message specified by the communication protocol and store it in the sending data storage area, which has a list cache queue; 3) Call the communication interface driver function sendto to send data to the meter terminal. The data format message sent comes from the list cache queue.

4. The method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution and transformation station according to claim 1 is characterized in that: In the dynamic topology thread of the meter terminal in the distribution transformer station, the topology drawing technology is used to draw the topology map. The modular graphics elements are used to automatically generate topology maps and data reports that meet the field standards. The drawing process uses the standard graphics elements and custom graphics elements stored in the model library for drawing; the dynamic data / operation and maintenance report fitting technology is used to fit the real-time topology map data.

5. The method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution and transformation station according to claim 4 is characterized in that: The dynamic data / operation and maintenance report fitting technology adopts a multi-channel IO time-sharing multiplexing strategy and a synchronous non-blocking message notification mechanism. After obtaining dynamic data, a map binary tree structure array of the data destination ID is established to judge the type and quality description of each data point. Invalid data is automatically deleted, and valid data is automatically pushed to the corresponding element / operation and maintenance report on the topology map. The element / operation and maintenance report performs data processing based on the pushed data and dynamically changes the display, direction, color and format information of the element / operation and maintenance report.

6. The method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution and transformation station according to claim 1 is characterized in that: In the batch meter terminal operation and maintenance and data verification operation thread, the thread pool is established using an independent class. The thread pool adopts a list queue structure. Each unit in the list queue structure stores the thread data structure, including the thread ID, the corresponding meter terminal ID, the thread start / shutdown function pointer, the thread running status and the number of times the thread is called.

7. The method for batch remote operation and maintenance and data verification of electric meter terminals in a distribution and transformation station according to claim 6 is characterized in that: The syncLock synchronization lock is used to achieve data synchronization during parallel operation and maintenance and data verification operations, and the dataMutux data mutex is used to ensure that multiple threads do not conflict or overwrite when writing memory data.

8. The batch remote operation and maintenance and data verification system for electric meter terminals in distribution and transformation stations is characterized by: The method for implementing batch remote operation and maintenance and data verification of electric meter terminals in a distribution transformer substation as claimed in claim 1 comprises an operation and maintenance host based on a domestically produced independently controllable operating system, and a communication protocol stack module, a dynamic topology diagram module for electric meter terminals in a distribution transformer substation, and a batch electric meter terminal operation and maintenance and data verification operation module running on the operation and maintenance host; The communication protocol stack module provides a protocol selection and configuration interface, and configures parameters according to different meter terminal types; the dynamic topology display module of the meter terminals in the distribution transformer station automatically fits the meter terminals in the distribution transformer station to the corresponding graphic elements of the topology map, displays location information and status data, and provides dynamic coloring and prompt alarms. The operation and maintenance operation data report is automatically matched to the meter terminal graphic element, and clicking it pops up the operation and maintenance report interface for the meter terminal; the batch meter terminal operation and maintenance and data verification operation module performs parallel operation and maintenance operations and data verification on multiple meter terminals at the same time.

9. The batch remote operation and maintenance and data verification system for electric meter terminals in distribution and transformation stations according to claim 8 is characterized in that: The operation and maintenance host is installed with a domestically produced independently controllable operating system, underlying resource library, GUI development environment, database and security software.

10. The batch remote operation and maintenance and data verification system for electric meter terminals in distribution and transformation stations according to claim 9 is characterized in that: The domestically produced, independently controlled operating system uses an operating system with a DDE graphical interface and a Linux 6 kernel.

Citation Information

Patent Citations

  • Running error and running diagnosis analyzing method and system for intelligent electric meter

    CN107462863A

  • Remote verification system and method for telecontrol forwarding data of transformer substation

    CN107612998A

  • Method of processing sleeping ammeter based on state grid Q / GDW3761 protocol

    CN108093039A

  • Abnormal information processing method of intelligent electric meter, computer equipment and storage medium

    CN111210034A

  • Intelligent distribution transformer terminal and intelligent electric meter access method and power distribution Internet of things

    CN111564903A