Method and system for batch remote operation and maintenance and data checking of electric meter terminals in distribution station building
By creating parallel threads within the distribution transformer substation, automated remote operation and maintenance and data verification of the meter terminals are achieved, solving the problem of low efficiency in traditional operation and maintenance methods, improving operation and maintenance efficiency and security, and reducing the need for human resources.
Patent Information
- Application Number
- CN202511194707.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-25
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-08-25
AI Technical Summary
Traditional methods of maintaining electricity meter terminals are inefficient, prone to errors, pose safety hazards, and consume a large amount of human resources.
A method for batch remote operation and maintenance and data verification of meter terminals in distribution substations is adopted. By creating parallel communication protocol stack management, dynamic topology diagram and batch operation and maintenance and data verification operation threads, the automation, remote operation and maintenance and data verification of meter terminals are realized.
It improved operational efficiency, reduced human resource investment, ensured the speed, accuracy and security of operations and maintenance, avoided misoperation, and saved human resources.
Smart Images

Figure CN120711048B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of electric digital data processing of electric meter terminal, and particularly relates to a batch remote operation and maintenance and data checking method and system for electric meter terminals in distribution transformer station. BACKGROUND
[0002] With the increasing construction scale of distribution network, the number of distribution transformer stations in the distribution network is also increasing, and various electric meter terminals are installed in each distribution transformer station to measure and process power consumption data.
[0003] In daily work, the staff often needs to operate the electric meter terminals in the distribution transformer station for operation and data checking. The traditional operation mode is mainly that the staff uses a notebook computer or a portable handheld device to enter the interval cabinet room where the electric meter terminal is located, connects the electric meter terminal by manual wiring, calls or issues various power consumption data, working state data, historical data files, parameters, fixed values and firmware of the electric meter terminal, and completes the operation and data checking of the electric meter terminal on site to ensure the fault-free operation of the electric meter terminal and the accuracy of the power consumption measurement data. Generally, the on-site operation of the electric meter terminal is completed by a team of at least 2-3 people. This traditional electric meter terminal operation mode is low in efficiency and prone to errors, and there are certain safety hazards in the distribution transformer station, and a large amount of human resources is occupied. SUMMARY
[0004] To solve the above technical problems, the present application provides a batch remote operation and maintenance and data checking method and system for electric meter terminals in distribution transformer stations. The technical solution adopted by the present application is as follows:
[0005] The batch remote operation and maintenance and data checking method for electric meter terminals in distribution transformer stations creates a communication protocol stack management thread, a dynamic topology graph thread for electric meter terminals in distribution transformer stations and a batch electric meter terminal operation and data checking operation thread, and the three threads run in parallel to complete the batch remote operation and maintenance and data checking of the electric meter terminals. The specific steps are as follows:
[0006] The communication protocol stack management thread loads the communication protocol, starts the matched communication protocol and obtains the electric meter terminal communication data, performs data receiving frame processing on the electric meter terminal communication data to obtain real-time data of the electric meter terminal, and puts the real-time data of the electric meter terminal into a received data storage area; performs data sending frame processing, checks whether there is an operation and data checking command issued by other threads, and sends data to the electric meter terminal if there is;
[0007] The dynamic topology graph thread for electric meter terminals in distribution transformer stations performs topology graph drawing, topology graph data fitting based on real-time data of the electric meter terminals and single electric meter terminal operation and data checking processing;
[0008] Batch meter terminal operation and data checking operation thread, thread pool is established, syncLock synchronization lock and dataMutux data mutex two class variables are provided in thread pool class, after batch meter terminal operation and data checking operation, according to the order of each meter terminal end, thread is released back to thread pool.
[0009] Preferably, the specific steps of the communication protocol stack management thread include:
[0010] Generating a communication protocol in the form of a dynamic library;
[0011] Calling the protocol stack establishment function to establish the communication protocol stack, and the communication protocol stack adopts a tree-shaped map data structure;
[0012] For unknown communication protocols, first, try to communicate 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 the completely matched communication protocol is found, record the meter terminal type for real-time data communication; If automatic matching is not successful, manual matching is entered; If manual matching is not successful, it means that the protocol in the communication protocol stack is incomplete, and secondary development is carried out.
[0013] Preferably, the data receiving frame processing steps are: 1) calling the communication interface driver function recvfrom to receive meter terminal communication data; 2) judging the obtained meter terminal communication data, retaining if it conforms to the communication protocol format, and discarding if it does not conform; 3) for the meter terminal communication data conforming to the protocol format, performing data interpretation processing according to the format requirements of the communication protocol; 4) the interpreted data is the real-time data of the meter terminal, which is put into the receiving data storage area;
[0014] Data sending frame processing steps: 1) obtaining operation / maintenance commands; 2) converting the operation / maintenance commands into data format messages specified by the communication protocol and storing them in the sending data storage area, and the sending data storage area is provided with a list cache queue; 3) calling the communication interface driver function sendto to send data to the meter terminal, and the data format message sent comes from the list cache queue.
[0015] Preferably, in the meter terminal dynamic topology graph thread in the distribution transformer station room, the graph module drawing technology is adopted for topology graph drawing, the standardized topology graph and data report conforming to the field standard are automatically generated through modularized graph elements, and the drawing process utilizes the standard graph elements and custom graph elements stored in the model graph library for drawing; The dynamic data / operation report fitting technology is adopted for real-time topology graph data fitting.
[0016] Preferably, the dynamic data / operation report fitting technology adopts a multi-path IO time-division multiplexing strategy and a synchronous non-blocking message notification mechanism, when the dynamic data is acquired, a map binary tree structure array of data destination id is established, 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 graph element / operation report on the topology graph, the graph element / operation report executes data processing according to the pushed data, and the display, direction, color and format information of the graph element / operation report are dynamically changed.
[0017] Preferably, in the batch electric meter terminal operation and data checking operation thread, the thread pool establishment adopts an independent class implementation, the thread pool adopts a list queue structure, and each unit in the list queue structure stores a thread data structure, including a thread ID, a corresponding electric meter terminal ID, a thread start / closure function pointer, a thread running state and a thread calling number.
[0018] Preferably, the syncLock synchronous lock is used to realize the data synchronization in parallel operation and data checking operation, and the dataMutux data mutual exclusion is used to realize that multiple threads do not conflict and cover when writing memory data.
[0019] The batch remote operation and data checking system of the electric meter terminal in the distribution and transformation station house is used for realizing the batch remote operation and data checking method of the electric meter terminal in the distribution and transformation station house, and comprises an operation host based on a domestic self-controllable operating system, a communication protocol stack module, a dynamic topology graph module of the electric meter terminal in the distribution and transformation station house and a batch electric meter terminal operation and data checking operation module running on the operation host; the communication protocol stack module provides a protocol selection and configuration interface and configures parameters according to different electric meter terminal types; the dynamic topology graph display module of the electric meter terminal in the distribution and transformation station house automatically fits the electric meter terminal in the distribution and transformation station house to corresponding graph elements on a topology graph, displays position information and state data, and provides dynamic coloring and prompt alarm; the operation data report of the electric meter terminal is automatically matched to the graph element, and the operation report interface of the electric meter terminal is popped up by clicking; and the batch electric meter terminal operation and data checking operation module performs parallel operation and data checking on multiple electric meter terminals at the same time.
[0020] Preferably, the operation host is installed with a domestic self-controllable operating system, a bottom resource library, a GUI development environment, a database and security software.
[0021] Preferably, the domestic self-controllable operating system adopts an operating system with a DDE graphical interface, and the kernel is Linux 6.
[0022] The application has the following beneficial effects:
[0023] The method provided by the application supports mainstream communication protocols, automatically matches communication protocols, realizes plug-and-play of the electric meter terminal, realizes various operation and maintenance and data checking operations on the electric meter terminal by using a report operation interface, and realizes batch operation and maintenance and data checking operations on the electric meter terminal; the system provided by the application installs a domestic self-controllable operating system on the operation host to ensure information security, collects data of the dispersed electric meter terminals on the operation host through remote communication technology, realizes centralized management of the electric meter terminals in the distribution transformer station house, and realizes batch operation and maintenance and data checking operations. BRIEF DESCRIPTION OF DRAWINGS
[0024] The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and serve to explain the principles of the application, and do not limit the application. In the drawings:
[0025] Figure 1 is a flowchart of the batch remote operation and maintenance and data checking method of the electric meter terminal of the first embodiment of the application;
[0026] Figure 2 is a flowchart of the communication protocol stack management thread of the first embodiment of the application;
[0027] Figure 3 is a flowchart of the batch operation and maintenance and data checking operation of the first embodiment of the application;
[0028] Figure 4 is an architecture diagram of the batch remote operation and maintenance and data checking system of the electric meter terminal of the second embodiment of the application. DETAILED DESCRIPTION
[0029] The technical solutions of the application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the application, rather than all the embodiments of the application.
[0030] Embodiment one:
[0031] As shown in the figure, the batch remote operation and maintenance and data checking method of the electric meter terminal in the distribution transformer station house comprises the following steps: Figure 1
[0032] Step 1, initialization to establish three working threads:
[0033] 1.1, creating a communication protocol stack management thread for managing the scheduling operation of the communication protocol stack;
[0034] 1.2, creating a dynamic topology graph thread of the electric meter terminal in the distribution transformer station house for completing drawing, display and data processing of the topology graph;
[0035] 1.3, creating batch meter terminal operation and data checking operation thread, used to complete the creation and management of thread pool.
[0036] Step 2, three working threads are started in sequence and run in parallel to complete batch remote operation and data checking of meter terminals. The specific steps are as follows:
[0037] 2.1, communication protocol stack management thread:
[0038] 2.1.1, load communication protocol, go to step 2.1.1-1 and 2.1.1-2 respectively;
[0039] 2.1.1-1, perform protocol list matching, start the matched communication protocol, call the communication interface driver function recvfrom to obtain meter terminal communication data, and perform data receiving frame processing and data sending frame processing on the meter terminal communication data;
[0040] 2.1.1-2, parameter configuration, read the topology parameter file in the meter terminal dynamic topology graph thread in the distribution station room when performing parameter configuration; each different communication protocol needs to configure different communication parameters, 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.
[0041] The meter terminals in the distribution station room are connected to the communication network, and the communication protocol stack management thread completes the collection of meter terminal communication data by calling the communication interface driver function recvfrom of the communication network. The standard protocol stack used for communication with meter terminals currently includes IEC104, IEC103, IEC101, Modbus, DLT645, etc. The communication protocol stack management thread loads these communication protocols into the communication protocol stack, and when communicating with the meter terminal, it automatically matches the corresponding communication protocol to perform data exchange.
[0042] The flow of the communication protocol stack management thread is shown in Figure 2 , and the specific steps include:
[0043] The communication protocol is generated in the form of a dynamic library, and each communication protocol has a globally uniformly defined ID, type, name, parameter, data frame format, framing and deframing interface, and binary tree of data transmission control session. These elements constitute the basic components of a communication protocol.
[0044] Protocol stack establishment. The protocol stack establishment function is called to establish the communication protocol stack, which uses a tree-shaped map data structure, with the key value being the protocol global ID and the Value value being a struct data structure containing the name, parameters and data frame format of the communication protocol. The communication protocol stack is a global variable and can be accessed completely. The establishment of the communication protocol stack is carried out in the initialization stage and is resident in memory after establishment, for calling by other modules.
[0045] Protocol automatic matching. When communicating with the electric meter terminal, for unknown communication protocols, first, try to communicate with the electric 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 matched communication protocol is found, record the type of the electric meter terminal, and then perform real-time data communication; if automatic matching is not successful, switch to manual matching; if manual matching is also not successful, it means that the protocols in the communication protocol stack are incomplete, prompting is needed, and secondary development is needed to be expanded.
[0046] Data receiving frame processing steps: 1) call the communication interface driver function recvfrom to receive the electric meter terminal communication data; 2) discriminate the obtained electric meter terminal communication data, keep it if it conforms to the communication protocol format, otherwise discard it; 3) for the electric meter terminal communication data that conforms to the protocol format, perform data interpretation processing according to the format requirements of the communication protocol; 4) the interpreted data is the real-time data of the electric meter terminal, which is put into the received data storage area for calling by other modules; 5) when fitting the real-time topology graph data in the dynamic topology graph thread of the electric meter terminal in the distribution station house, obtain the real-time data of the electric meter terminal after frame from the received data storage area.
[0047] Data sending frame processing steps: 1) obtain the operation and maintenance / command; 2) convert the operation and maintenance / command into a data format message specified by the communication protocol and store it in the sending data storage area, which 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 electric meter terminal, and the data format message sent comes from the list cache queue of the sending data storage area.
[0048] First, perform data receiving frame processing, and then perform data sending frame processing. The data sending frame processing mainly checks whether there are batch operation and maintenance commands and data calibration commands issued by the batch electric meter terminal operation and maintenance and data calibration operation thread, or operation and maintenance commands issued by the dynamic topology graph thread of the electric meter terminal in the distribution station house, and if so, sends data to the electric meter terminal, and if not, returns to continue checking.
[0049] Is the data expired? If not and there is data, execute the data receiving frame processing step; if expired and there is no data, execute the protocol automatic matching.
[0050] 2.2, the electric meter terminal dynamic topology graph thread in the distribution station building:
[0051] The electric meter terminal dynamic topology graph thread in the distribution station building includes topology graph drawing (using a graph model drawing technique), real-time topology graph data fitting (using a dynamic data / operation and maintenance report fitting technique), and single electric meter terminal operation and maintenance and data checking processing.
[0052] The graph model drawing technique automatically generates a topology graph and data report that conforms to the field standard through modularized graph elements. The drawing process uses standard graph elements and custom graph elements stored in the model graph library for drawing. The size, color, border, direction, and font of the graph elements have been input in advance into the model graph library.
[0053] The specific steps include:
[0054] Each electric meter terminal graph element / operation and maintenance report has globally uniformly defined ID, type, name, data format, data vector direction, change period time, and minimum / maximum / mutation / step / normal value parameters. These parameter data constitute a basic graph element model unit, and any complex or combined graph element model is composed of basic graph element model units.
[0055] The dynamic data comes from the in-memory database, which labels each data with a data tag. The data tag mainly includes data source id, data destination id, type and quality description, time stamp description, and life cycle time data segments. At the same time, the in-memory database establishes an in-memory operation and maintenance report map data structure. The key of the in-memory operation and maintenance report map data structure is the electric meter terminal graph element ID, and the value is the vector dynamic array. The array content is the operation and maintenance entry information of the electric meter terminal.
[0056] The dynamic data / operation and maintenance report fitting technique mainly uses a multi-channel IO time division 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. The type and quality description of each data point is judged. Invalid data is automatically deleted, and valid data is automatically pushed to the corresponding graph element / operation and maintenance report on the topology graph. The graph element / operation and maintenance report executes data processing according to the pushed data, and dynamically changes the display, direction, color, and format of the graph element / operation and maintenance report and other related information.
[0057] The single meter terminal operation and maintenance and data checking processing only needs to click the button on the meter terminal graph element, according to the ID of the meter terminal graph element, to find the operation and maintenance report map data structure, and to show the vector dynamic data information in the value of the map data structure, to perform the operation and maintenance and data checking operation command issuing.
[0058] The topology graph is automatically generated according to a parameter file; the parameter file defines various parameter data in the topology graph, such as the number, type, position, color, connection point, data association information and meter terminal matching data.
[0059] 2.3, batch meter terminal operation and data checking operation thread, supports maximum 128 meter terminals for parallel operation and data checking operation at the same time. As shown in Figure 3 The specific steps include:
[0060] The thread pool is established by using an independent class, the thread pool in the class uses a list queue structure, each unit in the list queue structure stores a thread data structure, including thread ID, corresponding meter terminal ID, thread start / close function pointer, thread running state and thread calling number, and the initialization list quantity is 128, that is, the maximum thread quantity is 128.
[0061] The thread pool class provides two class variables, syncLock synchronization lock and dataMutux data mutual exclusion. The syncLock synchronization lock ensures the accuracy and synchronization of data during parallel operation and data checking operation, and the dataMutux data mutual exclusion ensures that multiple threads do not conflict and cover when writing memory data.
[0062] After the batch meter terminal operation and data checking operation is completed, the threads are released back to the thread pool in the order of each meter terminal end, to save memory resources and facilitate next use; all batch operation and data checking operation information is recorded into the database, the database table is established according to the operation order id, and the field is longBinary type, used to save all information of the batch operation.
[0063] The main purpose of establishing the thread pool is to perform batch operation and data checking of the meter terminal, and to allocate a thread for each meter terminal for operation and data checking. The advantages of this are: 1) multiple meter terminals can be operated at the same time; 2) data does not fight, and there is no conflict, and the data is completely accurate.
[0064] In the dynamic topology graph thread of the electric meter terminal in the distribution transformer station house, it is the operation and maintenance and data checking operation interface of a single electric meter terminal, because the user sometimes performs operation and maintenance and data checking operation on a certain electric meter terminal on the topology graph; in the batch electric meter terminal operation and maintenance and data checking operation thread, operation and maintenance and data checking operation is performed on multiple electric meter terminals simultaneously in an interface. The operation and maintenance and data checking command issuing and display of the two operation modes are the same, and the purpose of providing two operation and display interfaces is to prevent user misoperation.
[0065] Embodiment two
[0066] As shown in Figure 4 , the embodiment two of the present application provides a batch remote operation and maintenance and data checking system of electric meter terminals in a distribution transformer station house based on a domestic self-controllable operating system, which is used to realize the batch remote operation and maintenance and data checking method of electric meter terminals in a distribution transformer station house as described in embodiment one. The batch remote operation and maintenance and data checking system of electric meter terminals is realized by establishing an operation and maintenance host based on a domestic self-controllable operating system and developing the batch remote operation and maintenance and data checking system of electric meter terminals on the operation and maintenance host. The batch remote operation and maintenance and data checking system of electric meter terminals includes a communication protocol stack module, a dynamic topology graph module of electric meter terminals in a distribution transformer station house and a batch electric meter terminal operation and maintenance and data checking operation module, and the details are as follows:
[0067] (1) Operation and maintenance host based on a domestic self-controllable operating system.
[0068] The operation and maintenance host adopts a domestic server or a domestic PC, installs a graphical domestic self-controllable operating system, and develops software adapted to the domestic operating system based on a C++ / GUI (cross-platform application development framework) open source architecture development platform.
[0069] The domestic self-controllable operating system adopts an operating system with a DDE graphical interface, and its kernel is Linux 6. Various security software is installed to ensure information security. A C++ / GUI development kit, a bottom layer resource library and database software are installed to develop the batch remote operation and maintenance and data checking system of electric meter terminals based on C++ / GUI and adapted to the domestic self-controllable operating system. The specific construction steps of the operation and maintenance host based on the domestic self-controllable operating system are as follows:
[0070] 11. The installation process of the domestic self-controllable operating system is relatively simple, and it can be installed according to the installation manual. It needs to be specially noted that the operation of disk partition needs to be performed in a manual partition mode, and needs to be partitioned according to 5 areas, which are as follows:
[0071] efi partition, 300M;
[0072] swap partition, greater than or equal to host memory;
[0073] / boot partition, boot file partition, 2-5G;
[0074] / root partition, files and tool software for installing operating system; 300-500G;
[0075] / home partition, user personal files, generally the remaining space of the hard disk, but not less than 100G.
[0076] 12、The installation of the underlying resource library involves many underlying resource libraries, mainly including: gcc / g++ compiler library, cmake construction library, device access library, media operation library, configuration file access library, interface library and network device interface library and other necessary resource libraries. The installation of the underlying resource library is mainly for adapting to the domestic controllable operating system, and has the characteristics of customization and versioning. The installation of the underlying resource library needs to be carried out in the following order:
[0077] sudo apt-get update;
[0078] sudo apt upgrade;
[0079] sudo apt install software-properties-common;
[0080] sudo apt-get install build-essential gcc g++ cmake libxkbcommon-x11-dev libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev libxcb-xfixes0-dev libxcb-util-dev;
[0081] sudo apt-get install libx11-dev libxext-dev libxtst-dev libsm-dev libxrender-dev libfontconfig-dev libfreetype6-dev;
[0082] sudo apt install libxfixes-dev libxi-dev libxcb1-dev libxcb-glx0-dev.
[0083] 13、The installation steps of C++ / GUI development environment are as follows:
[0084] Put everywhere-src-5.14.2.tar.xz under the / home directory;
[0085] Unzip, tar -xvf everywhere-src-5.14.2.tar.xz;
[0086] Enter the decompressed directory, cd everywhere-src-5.14.2;
[0087] Run. / configure;
[0088] Run sudo make -j4, about 20 minutes;
[0089] Run sudo make install -j4, about 10 minutes; Default installation directory: / usr / local / 5.14.2.
[0090] 14、The installation steps of the database are as follows:
[0091] Create a mysql_bundle directory under the / home / admin directory, 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, which will produce 9 subfiles, and then install the 9 subfiles by using the dpkg command;
[0092] Execute the following instructions in sequence according to the order (must be in order):
[0093] sudo dpkg -i mysql-common_8.0.30-1debian10_amd64.deb;
[0094] sudo dpkg -i mysql-community-client-plugins_8.0.30-1debian10_amd64.deb;
[0095] sudo dpkg -i mysql-community-client-core_8.0.30-1debian10_amd64.deb;
[0096] sudo dpkg -i mysql-community-client_8.0.30-1debian10_amd64.deb;
[0097] sudo dpkg -i mysql-client_8.0.30-1debian10_amd64.deb;
[0098] sudo dpkg -i mysql-community-server-core_8.0.30-1debian10_amd64.deb;
[0099] sudo dpkg -i mysql-community-server_8.0.30-1debian10_amd64.deb;
[0100] sudo dpkg -i libmysqlclient21_8.0.30-1debian10_amd64.deb;
[0101] sudo dpkg -i libmysqlclient-dev_8.0.30-1debian10_amd64.deb.
[0102] In summary, the operation and maintenance host installation of domestic self-controllable operating system needs the above 4 steps, the main innovation is how the domestic self-controllable operating system is transformed into a system suitable for stable and long-term operation in a specific industrial environment through customized installation, and can be used as a platform for customized software development. This feature is in line with the current policy of promoting the industrialization of software platforms in China.
[0103] (2) Develop a batch remote operation and data checking system for electric meter terminals.
[0104] 21. Communication protocol stack module.
[0105] Supports multiple mainstream communication protocols such as IEC104, IEC103, IEC101, Modbus, DLT645, etc. Uses dynamic library form, easy to extend and call, conducive to secondary development; provides protocol selection and configuration interface, configures parameters according to different electric meter terminal types.
[0106] 22. Electric meter terminal dynamic topology graph display module in distribution and transformation station.
[0107] According to the actual physical wiring diagram of the distribution and transformation station, the electric meter terminals in the distribution and transformation station are automatically fitted to the corresponding graph elements on the topology graph, displaying position information and state data, and providing dynamic coloring and prompt alarm, facilitating intuitive display and operation; operation and maintenance data report is automatically matched to the electric meter terminal graph element, and clicking automatically pops up the operation and maintenance report interface for the electric meter terminal.
[0108] 23. Batch electric meter terminal operation and maintenance and data checking operation module.
[0109] Parallel operation and data checking of multiple electric meter terminals at the same time, improving work efficiency; thread pool technology is adopted, the number of threads in the thread pool is 128, which means that a maximum of 128 electric meter terminals can be operated at the same time; the thread pool has synchronization lock and data mutual exclusion mechanism. After the operation and maintenance operation is completed, the thread is released back to the thread pool, saving memory resources and facilitating the next operation and maintenance operation; all batch operation and maintenance and data checking information will be recorded in the database, facilitating data backtracking.
[0110] The embodiment of the present application improves the reliability and safety of electric meter terminal operation and maintenance through remote, automatic and visual operation mode, maximally avoids misoperation on electric meter terminals during operation and maintenance, and protects personnel and equipment from damage; batch electric meter terminal operation and maintenance and data checking operation are realized through software system, which significantly improves work efficiency: before, on-site personnel operate through portable computers or handheld devices, and it takes 15-30 minutes to complete the operation of one electric meter terminal, and only 15-20 electric meter terminals can be operated and maintained in a day; after batch operation and maintenance, a maximum of 128 electric meter terminals can be operated and maintained within 1 hour, and the work efficiency is improved by more than 10 times; traditional electric meter terminal operation and maintenance in the transformer station house generally requires 2-3 people on site, and only 1-2 people are needed for operation and maintenance using the present application, and in special cases, one person can complete all operation and maintenance and data checking operations.
[0111] In the embodiment of the present application, the technical features not described in detail are existing technology or conventional technical means, which will not be described here.
[0112] Finally, it should be noted that: the above embodiments are only specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, but not to limit it, and the protection scope of the present application is not limited to this. Those skilled in the art should understand that any skilled person 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 application, or make equivalent replacement to part of the technical features; and these modifications, changes or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and all should be covered in the protection scope of the present application.
Claims
1. A method for batch remote operation and maintenance and data checking of electric meter terminals in a distribution station building, characterized in that, The communication protocol stack management thread, the power transformer station indoor electric meter terminal dynamic topology graph thread and the batch electric meter terminal operation and data checking operation thread are created, and the three threads are run in parallel to complete the batch remote operation and data checking of the electric meter terminal, and the specific steps are as follows: The communication protocol stack management thread loads the communication protocol, starts the matched communication protocol and obtains the electric meter terminal communication data, performs data receiving frame processing on the electric meter terminal communication data to obtain the real-time data of the electric meter terminal, and stores the real-time data of the electric meter terminal in the received data storage area; performs data sending frame processing, checks whether there is an operation and data checking command issued by other threads, and sends data to the electric meter terminal if there is; The power transformer station indoor electric meter terminal dynamic topology graph thread performs topology graph drawing, topology graph data fitting based on the real-time data of the electric meter terminal and single electric meter terminal operation and data checking processing; The batch electric meter terminal operation and data checking operation thread establishes a thread pool, provides two class variables of syncLock synchronization lock and dataMutux data mutual exclusion in the thread pool class, and releases the threads back to the thread pool in the order of the end of each electric meter terminal operation and data checking operation; The specific steps of the communication protocol stack management thread include: Generating the communication protocol in the form of a dynamic library; Calling the protocol stack establishment function to establish the communication protocol stack, and the communication protocol stack adopts a tree-shaped map data structure; For unknown communication protocols, first perform trial communication with the electric 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, and find the completely matched communication protocol until the real-time data communication of the electric meter terminal type is recorded; if no automatic matching is successful, manual matching is performed; if manual matching is unsuccessful, it means that the protocol in the communication protocol stack is incomplete, and secondary development is performed; The data receiving frame processing steps are: 1) calling the communication interface driver function recvfrom to receive the electric meter terminal communication data; 2) discriminating the obtained electric meter terminal communication data, retaining the data meeting the communication protocol format and discarding the data not meeting the communication protocol format; 3) performing data interpretation processing on the electric meter terminal communication data meeting the protocol format according to the format requirements of the communication protocol; 4) storing the interpreted data, i.e. the real-time data of the electric meter terminal, in the received data storage area; The data sending frame processing steps are: 1) obtaining the operation and checking command; 2) converting the operation and checking command into a data format message specified by the communication protocol and storing it in the sending data storage area, and the sending data storage area is provided with a list buffer queue; 3) calling the communication interface driver function sendto to send data to the electric meter terminal, and the data format message sent comes from the list buffer queue.
2. The method according to claim 1, wherein, In the thread of dynamic topology graph of electric meter terminal in distribution station house, the topology graph is drawn by using the graph model drawing technology, the topology graph and data report table conforming to the field standard are automatically generated by using the modularized graph element, the standard graph element and the customized graph element stored in the model graph library are used for drawing in the drawing process; the real-time topology graph data fitting is performed by using the dynamic data / operation and maintenance report fitting technology.
3. The method of claim 2, wherein the method further comprises: receiving a first batch of meter data from the first meter terminal unit; and transmitting a first batch of meter data to the first meter terminal unit. The dynamic data / operation and maintenance report fitting technology adopts the strategy of multi-path IO time division multiplexing and the synchronous non-blocking message notification mechanism, when the dynamic data is acquired, the map binary tree structure array of data destination id is established, the type and quality description of each data point are judged, the invalid data is automatically deleted, and the effective data is automatically pushed to the corresponding graph element / operation and maintenance report in the topology graph, the graph element / operation and maintenance report executes the data processing according to the pushed data, and the display, direction, color and format information of the graph element / operation and maintenance report are dynamically changed.
4. The method of claim 1, wherein the method further comprises: In the thread of batch electric meter terminal operation and data checking operation, the thread pool is established by using an independent class, the thread pool adopts the list queue structure, each unit in the list queue structure stores the thread data structure, including thread ID, corresponding electric meter terminal ID, thread start / closure function pointer, thread running state and thread calling frequency.
5. The method of claim 4, wherein the method further comprises: The syncLock synchronous lock is used for realizing the data synchronization in the parallel operation and data checking operation, and the dataMutux data mutual exclusion is used for realizing that multiple threads do not conflict and cover when writing the memory data.
6. The system for batch remote operation and maintenance and data checking of electric meter terminals in distribution station house, characterized in that, The batch remote operation and data checking method for electric meter terminal in distribution station house is used for realizing the batch remote operation and data checking method for electric meter terminal in distribution station house as claimed in claim 1, including the operation host based on the domestic self-controllable operating system, and the communication protocol stack module, the dynamic topology graph module of electric meter terminal in distribution station house and the batch electric meter terminal operation and data checking operation module running on the operation host; The communication protocol stack module provides the protocol selection and configuration interface, and configures the parameters according to different electric meter terminal types; the dynamic topology graph display module of electric meter terminal in distribution station house automatically fits the electric meter terminal in distribution station house to the corresponding graph element of the topology graph, displays the position information and state data, and provides the dynamic coloring and prompt alarm, the operation and maintenance data report is automatically matched to the electric meter terminal graph element, and the operation and maintenance report interface for the electric meter terminal is popped by clicking; the batch electric meter terminal operation and data checking operation module performs the parallel operation and data checking on multiple electric meter terminals at the same time.
7. The system according to claim 6, wherein, The operation host is installed with the domestic self-controllable operating system, the underlying resource library, the GUI development environment, the database and the security software.
8. The system according to claim 7, characterized in that, The domestic self-controllable operating system adopts the operating system with DDE graphical interface, and the kernel is Linux 6.
Citation Information
Patent Citations
Running error and running diagnosis analyzing method and system for intelligent electric meter
CN107462863A
Self-healing and self-checking method for distribution automation master station
CN113991869A