Data processing method and device for centralized station terminal access line loss collection module

By using shared memory and message mechanisms in the data processing module terminals of centralized stations, the problem of the main module processing a large amount of power data is solved, reducing data processing volume and improving system performance.

CN113835710BActive Publication Date: 2025-03-11XUCHANG XJ SOFTWARE TECHNOLOGIES LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111075325.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2025-03-11
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

In the data processing method of the terminals of the existing centralized station, the main module needs to process a large amount of electrical data sent by the linear loss acquisition module, resulting in a large amount of data processing and affecting the execution of other tasks. Moreover, multiple software modules face the difficulties of data sharing and module coordination during operation.

Method used

By introducing shared memory and message mechanisms into the data processing module, the main module and the communication module can access data from shared memory when needed, reduce the data processing volume of the main module, and solve the problem of data sharing and module coordination.

Benefits of technology

It effectively reduces the data processing volume of the main module, improves the overall performance of the system, and solves the problem of data sharing and module coordination when multiple software modules are run at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835710B_ABST
    Figure CN113835710B_ABST
Patent Text Reader

Abstract

A data processing method and device for a centralized station terminal access line loss collection module, wherein the data processing module sends a command message to the line loss collection module according to a polling cycle; receives a serial port message sent by the line loss collection module according to the command message; parses and processes the serial port message to obtain real-time electricity data contained in the serial port message; writes the real-time electricity data into a shared memory and sends a message to notify other modules of the station terminal, the other modules including a main module and / or a communication module. Through the shared memory and message mechanism, the main module and the communication module can fetch data from the shared memory when needed, thereby reducing the data processing amount of the main module and solving the problem of data sharing and cooperation between modules when multiple software modules of the centralized DTU are running simultaneously.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power distribution networks, and in particular to a data processing method and device for a centralized station terminal access line loss collection module. Background Art

[0002] Centralized station terminals (centralized DTUs) are required to have line loss measurement functions, which are usually implemented with the help of a matching line loss collection module. The line loss collection module is used to collect the electricity data of each line interval. The line loss collection module is connected to the centralized DTU core unit (including the main module, communication module, etc.) through a serial port. By adding a data processing module to the DTU core unit, data transmission between the line loss collection module and the main module can be realized.

[0003] After the existing data processing module obtains the electricity data sent by the line loss collection module, it forwards the data to the main module, which then processes the data or forwards it to other modules. This method easily causes the main module to process a large amount of data and affects the execution of other tasks. Summary of the invention

[0004] (I) Purpose of the invention

[0005] The purpose of the present invention is to provide a data processing method and device for a centralized station terminal access line loss collection module. Through shared memory and message mechanism, the main module and the communication module can fetch data from the shared memory when needed, thereby reducing the data processing amount of the main module and solving the problem of data sharing and cooperation between modules when multiple software modules of the centralized DTU run simultaneously.

[0006] (II) Technical solution

[0007] In order to solve the above problems, the first aspect of the present invention provides a data processing method for a centralized station terminal access line loss collection module, comprising:

[0008] The data processing module sends a command message to the line loss collection module according to the polling cycle;

[0009] Receiving the serial port message sent by the line loss collection module according to the command message;

[0010] Parsing and processing the serial port message to obtain real-time electricity data contained in the serial port message;

[0011] The real-time electricity data is written into a shared memory and a message is sent to notify other modules of the station terminal, wherein the other modules include a main module and / or a communication module.

[0012] Furthermore, the data processing module sends a command message to the line loss collection module according to the polling cycle, which also includes:

[0013] The data processing module reads the configuration file of the line loss collection module, wherein the configuration file includes serial port parameters and polling cycle;

[0014] Initialize serial port parameters according to the read configuration file and open the serial port.

[0015] Furthermore, the data processing method further includes:

[0016] The data processing module receives the serial port message actively sent by the line loss collection module and obtains the current fixed-point frozen electricity data contained in the actively sent serial port message;

[0017] The current fixed-point frozen electricity data is stored to obtain an electricity data file.

[0018] Specifically, the storing of the current fixed-point frozen electricity data to obtain an electricity data file includes:

[0019] Get the fixed-point frozen electricity data set in the historical electricity data file;

[0020] The current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are combined to form a new fixed-point frozen electricity data set and stored to obtain an updated electricity data file.

[0021] Specifically, the current fixed-point frozen electricity data is combined with the historical fixed-point frozen electricity data set to form a new fixed-point frozen electricity data set and store it, and the process also includes:

[0022] The number of line intervals is obtained from the shared memory, so as to merge the current fixed-point frozen electricity data with the historical fixed-point frozen electricity data set based on the number of line intervals.

[0023] A second aspect of the present invention provides a data processing device for a centralized station terminal access line loss collection module, comprising:

[0024] A command sending unit, used for sending command messages to the line loss collection module according to the polling cycle;

[0025] A message receiving unit, used for receiving a serial port message sent by the line loss collection module according to a command message;

[0026] A message processing unit, used for parsing and processing the serial port message to obtain the real-time electricity data contained in the serial port message;

[0027] A data writing unit, used for writing the real-time electricity data into a shared memory;

[0028] The message sending unit is used to send messages to notify the main module and / or communication module of the station terminal.

[0029] Furthermore, the data processing device further includes:

[0030] A configuration file reading unit, used to read a configuration file of the line loss collection module, wherein the configuration file includes serial port parameters and a polling cycle;

[0031] The serial port initialization unit is used to initialize the serial port parameters and open the serial port according to the read configuration file.

[0032] Furthermore, the data processing device further includes:

[0033] The message receiving unit is also used to receive the serial port message actively sent by the line loss collection module and obtain the current fixed-point frozen electricity data contained in the actively sent serial port message;

[0034] The data storage unit is used to store the current fixed-point frozen electricity data to obtain an electricity data file.

[0035] Specifically, the data storage unit is used to:

[0036] Get the fixed-point frozen electricity data set in the historical electricity data file;

[0037] The current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are combined to form a new fixed-point frozen electricity data set and stored to obtain an updated electricity data file.

[0038] Furthermore, the data processing device further comprises:

[0039] The acquisition unit is used to acquire the number of line intervals from the shared memory, so as to merge the current fixed-point frozen electricity data with the historical fixed-point frozen electricity data set based on the number of line intervals.

[0040] (III) Beneficial effects

[0041] The above technical solution of the present invention has the following beneficial technical effects:

[0042] The data processing method and device of the centralized station terminal access line loss collection module provided in the embodiment of the present invention, through shared memory and message mechanism, enable the main module to fetch data from the shared memory only when needed, thereby reducing the data processing amount of the main module, and solving the problem of data sharing and cooperation between modules encountered when multiple software modules of the centralized DTU run simultaneously. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is a flow chart of a data processing method for a centralized station terminal access line loss collection module provided by an embodiment of the present invention;

[0044] Figure 2 This is a schematic diagram of a system after a centralized station terminal is connected to a line loss collection module according to an embodiment of the present invention;

[0045] Figure 3 It is a flow chart of a data processing method for a centralized station terminal access line loss collection module provided by a specific embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0047] See also Figure 1 and 2 As shown, an embodiment of the present invention provides a data processing method for a centralized station terminal access line loss collection module, comprising:

[0048] Step 101: The data processing module sends a command message to the line loss collection module according to the polling cycle;

[0049] Step 102: receiving a serial port message sent by the line loss collection module according to the command message;

[0050] Step 103: parsing and processing the serial port message to obtain real-time electricity data contained in the serial port message;

[0051] Step 104: Write the real-time electricity data into the shared memory and send a message to notify other modules of the station terminal, wherein the other modules include a main module and / or a communication module.

[0052] Specifically, in the embodiment of the present invention, the message may be a message notifying that new data has been written into the shared memory, or may be a message containing new data, which is not limited in the present invention.

[0053] Furthermore, the data processing module sends a command message to the line loss collection module according to the polling cycle, which also includes:

[0054] The data processing module reads the configuration file of the line loss collection module, wherein the configuration file includes serial port parameters and polling cycle;

[0055] Initialize serial port parameters according to the read configuration file and open the serial port.

[0056] Specifically, in an embodiment of the present invention, the configuration file may include: serial port parameters (serial port number, baud rate, test method, etc.) and polling cycle (time synchronization, electricity call, etc.). The configuration file is used to obtain the serial port parameters and the polling cycle, and the parameters can be adjusted according to actual conditions to meet the user's personalized needs.

[0057] Furthermore, the data processing method further includes:

[0058] The data processing module receives the serial port message actively sent by the line loss collection module and obtains the current fixed-point frozen electricity data contained in the actively sent serial port message;

[0059] The current fixed-point frozen electricity data is stored to obtain an electricity data file.

[0060] Specifically, the storing of the current fixed-point frozen electricity data to obtain an electricity data file includes:

[0061] Get the fixed-point frozen electricity data set in the historical electricity data file;

[0062] The current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are combined to form a new fixed-point frozen electricity data set and stored to obtain an updated electricity data file.

[0063] Among them, see Figure 3 To obtain a fixed-point frozen electricity data set in a historical electricity data file, the data in the centralized DTU electricity data file can be written into the memory when the file data is initialized after power-on, so as to prepare for writing new electricity data into the file.

[0064] This method can cope with the situation where the device loses power and restarts in actual working conditions, and ensure the accuracy and integrity of the electricity data stored in the electricity file.

[0065] Specifically, the current fixed-point frozen electricity data is combined with the historical fixed-point frozen electricity data set to form a new fixed-point frozen electricity data set and store it, and the process also includes:

[0066] The number of line intervals is obtained from the shared memory, and the current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are merged based on the standard format requirements corresponding to the number of line intervals to form a new fixed-point frozen electricity data set and store it to obtain an updated electricity data file. The number of intervals can be modified according to the actual working conditions, so that the centralized DTU can be externally connected to line loss collection modules with different numbers of intervals, and can correctly generate electricity files with the corresponding number of intervals. For example: when the centralized DTU is connected to an 8-interval line loss collection module, the system parameter [Number of Intervals] is set to 8, and the electricity data of the 8 intervals can be stored in the electricity data file according to the format requirements. When the centralized DTU needs to be changed to a 6-interval line loss collection module, it only needs to change the system parameter [Number of Intervals] to 6, and the electricity data of the 6 intervals can be generated into an electricity data file in the required format.

[0067] The following is a specific embodiment of the present invention:

[0068] See also Figure 3 In this embodiment, after power-on, the data processing module executes the following method:

[0069] Read the line loss acquisition module configuration file, initialize the serial port parameters and open the serial port;

[0070] Initialize file data so that the data in the centralized DTU electricity data file is written into the memory;

[0071] Connect shared memory, initialize messages, and execute the main loop.

[0072] A second aspect of the present invention provides a data processing device for a centralized station terminal access line loss collection module, comprising:

[0073] A command sending unit, used for sending command messages to the line loss collection module according to the polling cycle;

[0074] A message receiving unit, used for receiving a serial port message sent by the line loss collection module according to a command message;

[0075] A message processing unit, used for parsing and processing the serial port message to obtain the real-time electricity data contained in the serial port message;

[0076] A data writing unit, used for writing the real-time electricity data into a shared memory;

[0077] The message sending unit is used to send messages to notify other modules of the station terminal, and the other modules include the main module and / or the communication module.

[0078] Furthermore, the data processing device further includes:

[0079] A configuration file reading unit, used to read a configuration file of the line loss collection module, wherein the configuration file includes serial port parameters and a polling cycle;

[0080] The serial port initialization unit is used to initialize the serial port parameters and open the serial port according to the read configuration file.

[0081] Furthermore, the data processing device further includes:

[0082] The message receiving unit is also used to receive the serial port message actively sent by the line loss collection module and obtain the current fixed-point frozen electricity data contained in the actively sent serial port message;

[0083] The data storage unit is used to store the current fixed-point frozen electricity data to obtain an electricity data file.

[0084] Specifically, the data storage unit is used to:

[0085] Get the fixed-point frozen electricity data set in the historical electricity data file;

[0086] The current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are combined to form a new fixed-point frozen electricity data set and stored to obtain an updated electricity data file.

[0087] Furthermore, the data processing device further comprises:

[0088] The acquisition unit is used to acquire the line interval number from the shared memory, so as to merge the current fixed-point frozen electricity data with the historical fixed-point frozen electricity data set based on the format requirement corresponding to the line interval number.

[0089] The device of the present invention corresponds to the method one by one. The specific description and effects of the device can be found in the method embodiment, which will not be repeated here.

[0090] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

Claims

1. A data processing method for a centralized station terminal access line loss collection module, characterized in that: include: The data processing module sends a command message to the line loss collection module according to the polling cycle; Receiving the serial port message sent by the line loss collection module according to the command message; Parsing and processing the serial port message to obtain real-time electricity data contained in the serial port message; Writing the real-time electricity data into a shared memory and sending a message to notify other modules of the station terminal, wherein the other modules include a main module and / or a communication module; The data processing module sends a command message to the line loss collection module according to the polling cycle, and also includes: The data processing module reads the configuration file of the line loss collection module, wherein the configuration file includes serial port parameters and polling cycle; Initialize serial port parameters according to the read configuration file and open the serial port; The data processing module receives the serial port message actively sent by the line loss collection module and obtains the current fixed-point frozen electricity data contained in the actively sent serial port message; The current fixed-point frozen electricity data is stored to obtain an electricity data file, including: Get the fixed-point frozen electricity data set in the historical electricity data file; The current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are combined to form a new fixed-point frozen electricity data set and stored to obtain an updated electricity data file.

2. The data processing method according to claim 1, characterized in that: The step of merging the current fixed-point frozen electricity data with the historical fixed-point frozen electricity data set to form a new fixed-point frozen electricity data set and storing the new data set may also include: The line interval number is obtained from the shared memory, so as to merge the current fixed-point frozen electricity data with the historical fixed-point frozen electricity data set based on the format requirement corresponding to the line interval number.

3. A data processing device for a centralized station terminal access line loss collection module, characterized in that: include: A command sending unit, used for sending command messages to the line loss collection module according to the polling cycle; A message receiving unit, used for receiving a serial port message sent by the line loss collection module according to a command message; A message processing unit, used for parsing and processing the serial port message to obtain the real-time electricity data contained in the serial port message; A data writing unit, used for writing the real-time electricity data into a shared memory; A message sending unit, used to send messages to notify other modules of the station terminal, wherein the other modules include a main module and / or a communication module; A configuration file reading unit, used to read a configuration file of the line loss collection module, wherein the configuration file includes serial port parameters and a polling cycle; The serial port initialization unit is used to initialize the serial port parameters and open the serial port according to the read configuration file; The message receiving unit is also used to receive the serial port message actively sent by the line loss collection module and obtain the current fixed-point frozen electricity data contained in the actively sent serial port message; A data storage unit, used for storing the current fixed-point frozen electricity data to obtain an electricity data file; The data storage unit is used for: Get the fixed-point frozen electricity data set in the historical electricity data file; The current fixed-point frozen electricity data and the historical fixed-point frozen electricity data set are combined to form a new fixed-point frozen electricity data set and stored to obtain an updated electricity data file.

4. The data processing device according to claim 3, characterized in that: Also includes: The acquisition unit is used to acquire the line interval number from the shared memory, so as to merge the current fixed-point frozen electricity data with the historical fixed-point frozen electricity data set based on the format requirement corresponding to the line interval number.

Citation Information

Patent Citations

  • System and method for achieving real-time transmission of transformer substation device information based on shared memory

    CN104378439A