CN109120742B - UDP-based power distribution network terminal data acquisition method and device - Google Patents

UDP-based power distribution network terminal data acquisition method and device Download PDF

Info

Publication number
CN109120742B
CN109120742B CN201810990769.0A CN201810990769A CN109120742B CN 109120742 B CN109120742 B CN 109120742B CN 201810990769 A CN201810990769 A CN 201810990769A CN 109120742 B CN109120742 B CN 109120742B
Authority
CN
China
Prior art keywords
distribution network
power distribution
network terminal
terminal equipment
data acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810990769.0A
Other languages
Chinese (zh)
Other versions
CN109120742A (en
Inventor
曹敏
李文云
李维
罗晓嫚
张万杰
杨振明
赵现平
王科
黄星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electric Power Research Institute of Yunnan Power Grid Co Ltd
Original Assignee
Electric Power Research Institute of Yunnan Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Electric Power Research Institute of Yunnan Power Grid Co Ltd filed Critical Electric Power Research Institute of Yunnan Power Grid Co Ltd
Priority to CN201810990769.0A priority Critical patent/CN109120742B/en
Publication of CN109120742A publication Critical patent/CN109120742A/en
Application granted granted Critical
Publication of CN109120742B publication Critical patent/CN109120742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The application discloses a power distribution network terminal data acquisition method and device based on UDP, in the method, a terminal management module receives data acquisition request information generated by an application service module, the request information is loaded into a first UDP message, the first UDP message is transmitted to a target power distribution network terminal device according to the power distribution network terminal device data acquisition request information contained in the first UDP message, the target power distribution network terminal device responds to the request information of the first UDP message to generate a second UDP message and transmits the second UDP message to the terminal management module, the management module extracts power distribution network terminal device data in the second UDP message responded by the power distribution network terminal device, and the power distribution network terminal device data are sent to the application service module. The application solves the problem that in the prior art, an application service module in the power distribution network does not actively initiate connection with the power distribution network terminal equipment for interaction, so that data acquisition of the power distribution network terminal equipment cannot be completed.

Description

UDP-based power distribution network terminal data acquisition method and device
Technical Field
The application relates to the technical application field of intelligent power distribution networks, in particular to a power distribution network terminal data acquisition method and device based on UDP.
Background
Along with the development of the intelligent power grid, the data acquisition work of the power distribution network terminal equipment is very important to the operation and safety of the power distribution network, the condition of the power distribution network terminal equipment can be known by monitoring the data of the power distribution network terminal equipment, and the safe operation of the power distribution network terminal equipment is realized. In addition, many distribution network terminal devices belong to sampling devices with low power consumption, low cost and small data volume, and transmission based on a User Datagram Protocol (UDP) is small and compact, so that many distribution network terminal devices are suitable for collecting terminal data by using the UDP.
The existing power distribution Network terminal data acquisition technology based on UDP is to directly connect an application service module with power distribution Network terminal equipment, because the power distribution Network terminal equipment is an internal Network Address of a power distribution Network, the application service module can only identify a public Network Address, and the application service module and the power distribution Network terminal equipment are not interacted, the application service module cannot directly access the power distribution Network terminal equipment, therefore, the internal Network Address of the power distribution Network terminal equipment needs to be converted into the public Network Address through NAT (Network Address Translation), and the application service module can only access the power distribution Network terminal equipment. The specific conversion method comprises the steps that the application service module receives an intranet address of data information of the power distribution network terminal equipment, the intranet address is converted into a public network address through NAT software of the application service module, and then the application service module accesses the converted public network address.
However, in the research process of the application, the inventor finds that in the existing power distribution network terminal data acquisition method based on the UDP, the application service module does not actively initiate connection with the power distribution network terminal device for interaction, and the session information of the intranet address is quickly released, so that the application service module cannot find the power distribution network terminal device, and therefore, the issuing of the instruction fails, and the data acquisition of the power distribution network terminal device cannot be completed.
Disclosure of Invention
The application provides a UDP-based power distribution network terminal data acquisition method and device, and aims to solve the problem that data acquisition of power distribution network terminal equipment cannot be completed because an application service module in a power distribution network in the prior UDP technology does not actively initiate connection with power distribution network terminal equipment for interaction.
In a first aspect, an embodiment of the present application provides a UDP-based power distribution network terminal data acquisition method, where the power distribution network terminal data acquisition method is applied to a terminal management module in a power distribution network terminal data acquisition system, and the power distribution network terminal data acquisition system further includes: the application service module, the distribution network terminal data acquisition method includes:
receiving data acquisition request information generated by an application service module, wherein the data acquisition request information at least comprises: services provided by the power distribution network terminal equipment, operation parameters of the power distribution network terminal equipment and the environment of the power distribution network terminal equipment;
loading the data acquisition request information of the power distribution network terminal equipment into a first UDP message, wherein the first UDP message comprises the data acquisition request information of the power distribution network terminal equipment;
determining a target power distribution network terminal device corresponding to the first UDP message according to the service provided by the power distribution network terminal device, the operation parameters of the power distribution network terminal device and the environment of the power distribution network terminal device contained in the first UDP message, and transmitting the first UDP message to the target power distribution network terminal device;
receiving a second UDP message responded by the power distribution network terminal equipment according to the power distribution network terminal equipment data acquisition request information in the first UDP message, wherein the second UDP message contains power distribution network terminal equipment data;
extracting the power distribution network terminal equipment data in the second UDP message responded by the power distribution network terminal equipment;
and sending the data of the power distribution network terminal equipment to the application service module.
With reference to the first aspect, in an implementation manner, the method for acquiring data of a power distribution network terminal further includes:
after the power distribution network terminal equipment data in the second UDP message responded by the power distribution network terminal equipment are extracted, distributing an intranet IP address for each power distribution network terminal equipment, and establishing an address mapping table, wherein the address mapping table comprises a power distribution network terminal equipment data acquisition request information address of an application service module and a power distribution network terminal equipment data address responded by the power distribution network terminal equipment;
and maintaining the address mapping table through the periodic interaction of the terminal management module and the power distribution network terminal equipment.
With reference to the first aspect, in an implementation manner, the method for acquiring data of a power distribution network terminal further includes:
finishing the extraction of the data acquisition request information generated by the application service module and the data of the power distribution network terminal equipment responded by the power distribution network terminal equipment;
and converting the format of the data acquisition request information into a data format which can be directly transmitted to terminal equipment and converting the data of the power distribution network terminal equipment into a data format which can be directly transmitted to an application service module.
With reference to the first aspect, in an implementation manner, the method for acquiring data of a power distribution network terminal further includes:
carrying out statistics and classification on relevant information of the power distribution network terminal equipment;
the related information of the terminal equipment at least comprises: the service provided by the terminal equipment of the power distribution network, the operation parameters of the terminal equipment and the environment in which the terminal equipment is located.
With reference to the first aspect, in an implementation manner, the method for acquiring data of a power distribution network terminal further includes:
each distribution network terminal device is bidirectionally connected to the terminal management module, and the terminal management module is bidirectionally connected to the application service module;
an intranet network is arranged between the power distribution network terminal equipment and the terminal management module, and the communication protocol is UDP;
and a public network is arranged between the terminal management module and the application service module, and the communication protocol is HTTP or HTTPS.
In a second aspect, the present application provides a UDP-based power distribution network terminal data acquisition device, where the power distribution network terminal data acquisition device is applied to a terminal management module in a power distribution network terminal data acquisition system, and the power distribution network terminal data acquisition system further includes: the application service module, distribution network terminal data acquisition device based on UDP includes:
a first receiving unit, configured to receive data acquisition request information generated by an application service module, where the data acquisition request information at least includes: services provided by the power distribution network terminal equipment, operation parameters of the power distribution network terminal equipment and the environment of the power distribution network terminal equipment;
the loading unit is used for loading the data acquisition request information of the power distribution network terminal equipment into a first UDP message, wherein the first UDP message comprises the data acquisition request information of the power distribution network terminal equipment;
the transmission unit is used for determining a target power distribution network terminal device corresponding to the first UDP message according to the service provided by the power distribution network terminal device, the operation parameters of the power distribution network terminal device and the environment of the power distribution network terminal device contained in the first UDP message, and transmitting the first UDP message to the target power distribution network terminal device;
the second receiving unit is used for receiving a second UDP message responded by the power distribution network terminal equipment according to the power distribution network terminal equipment data acquisition request information in the first UDP message, wherein the second UDP message contains power distribution network terminal equipment data;
an extraction unit, configured to extract power distribution network terminal device data in the second UDP packet responded by the power distribution network terminal device;
and the sending unit is used for sending the data of the power distribution network terminal equipment to the application service module.
With reference to the second aspect, in an implementation manner, the power distribution network terminal data acquisition device further includes:
a mapping table establishing unit, configured to, after extracting power distribution network terminal device data in the second UDP packet responded by the power distribution network terminal device, allocate an intranet IP address to each power distribution network terminal device, and establish an address mapping table, where the address mapping table includes a power distribution network terminal device data acquisition request information address of an application service module and an address of power distribution network terminal device data responded by the power distribution network terminal device;
and the mapping table maintenance unit is used for maintaining the address mapping table through the periodic interaction of the terminal management module and the power distribution network terminal equipment.
With reference to the second aspect, in an implementation manner, the power distribution network terminal data acquisition device further includes:
the data extraction unit is used for completing extraction of data acquisition request information generated by the application service module and power distribution network terminal equipment data responded by the power distribution network terminal equipment; extracting and converting data formats;
and the data conversion unit is used for converting the format of the data acquisition request information into a data format which can be directly transmitted to terminal equipment and converting the data of the power distribution network terminal equipment into a data format which can be directly transmitted to an application service module.
With reference to the second aspect, in an implementation manner, the power distribution network terminal data acquisition device further includes:
the statistical classification unit is used for performing statistical classification on the relevant information of the power distribution network terminal equipment;
the related information of the terminal equipment at least comprises: the service provided by the terminal equipment of the power distribution network, the operation parameters of the terminal equipment and the environment in which the terminal equipment is located.
With reference to the second aspect, in an implementation manner, the power distribution network terminal data acquisition device further includes:
the bidirectional connection unit is used for bidirectionally connecting each power distribution network terminal device to the terminal management module, and the terminal management module is bidirectionally connected to the application service module;
an intranet network is arranged between the power distribution network terminal equipment and the terminal management module, and the communication protocol is UDP;
and a public network is arranged between the terminal management module and the application service module, and the communication protocol is HTTP or HTTPS.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme, the power distribution network terminal data acquisition method and device based on the UDP are disclosed in the embodiment of the application, the method and device in the application are applied to a terminal management module in a power distribution network terminal data acquisition system, and the power distribution network terminal data acquisition system further comprises: and an application service module. According to the method, a terminal management module receives data acquisition request information generated by an application service module, the data acquisition request information of power distribution network terminal equipment is loaded into a first UDP message, target power distribution network terminal equipment corresponding to the first UDP message is determined according to the data acquisition request information of the power distribution network terminal equipment contained in the first UDP message, the first UDP message is transmitted to the target power distribution network terminal equipment, the target power distribution network terminal equipment responds to the first UDP message to generate a second UDP message, the terminal management module is transmitted, the power distribution network terminal equipment data in the second UDP message responded by the power distribution network terminal equipment are extracted, and the power distribution network terminal equipment data are sent to the application service module.
Compared with the prior art, the terminal management module is added, the problem that the data acquisition of the terminal equipment of the power distribution network cannot be finished when the application service module does not actively initiate the connection with the terminal of the power distribution network for interaction in the data acquisition process of the terminal equipment of the power distribution network is solved, the terminal equipment and the terminal management module can be kept stably connected for a long time through the regular interaction of the terminal equipment and the terminal management module, and the application service module can obtain the data information of the terminal equipment of the power distribution network through the terminal management module.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic flowchart of a UDP-based power distribution network terminal data acquisition method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a UDP-based power distribution network terminal data acquisition device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another UDP-based power distribution network terminal data acquisition device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another UDP-based power distribution network terminal data acquisition device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The embodiment of the application provides a UDP-based power distribution network terminal data acquisition method and device, and aims to solve the problem that data acquisition of power distribution network terminal equipment cannot be completed due to the fact that an application service module in a power distribution network is not interacted with a power distribution network terminal in the prior art.
The power distribution network terminal data acquisition method and the power distribution network terminal data acquisition device are applied to a terminal management module in a power distribution network terminal data acquisition system, and the power distribution network terminal data acquisition system further comprises: and an application service module.
Referring to fig. 1, a schematic flow diagram of a UDP-based power distribution network terminal data acquisition method is shown, and the UDP-based power distribution network terminal data acquisition method disclosed in the present application includes the following steps:
step S11, receiving data acquisition request information generated by the application service module, where the data acquisition request information at least includes: the service provided by the power distribution network terminal equipment, the operation parameters of the power distribution network terminal equipment and the environment of the power distribution network terminal equipment.
The application service module belongs to a management platform and is used for carrying out classified management on the collected terminal equipment data.
In this step, the management module of the power distribution network terminal receives the data acquisition request information of the application service module to the power distribution network terminal device, including the service provided by the application service module to the terminal device, the operation parameters of the power distribution network terminal device, the environment of the power distribution network terminal device, and other information.
For example, data acquisition is performed on a distribution transformer of a certain factory, and a management module is used for requesting data acquisition, generated by an application service module, on the distribution transformer of the factory, wherein the data acquisition request comprises specific service contents of the distribution transformer, such as whether the transformer is a step-up transformer or a step-down transformer; the parameters of the transformer operation and the environment in which the transformer is located, such as whether the transformer is indoors or outdoors, whether it is far from a residential area, etc.
Step S12, loading the data acquisition request information of the power distribution network terminal equipment into a first UDP message, wherein the first UDP message comprises the data acquisition request information of the power distribution network terminal equipment;
wherein, distribution network terminal equipment data acquisition request information includes: and step S11, providing services provided by the distribution network terminal device, operating parameters of the distribution network terminal device, and the environment in which the distribution network terminal device is located.
In this step, the terminal management module extracts the data acquisition information of the power distribution network terminal device in step S11, generates a UDP packet, and loads the UDP packet into the first UDP packet for transmission.
Step S13, determining a target distribution network terminal device corresponding to the first UDP message according to the service provided by the distribution network terminal device, the operation parameters of the distribution network terminal device and the environment of the distribution network terminal device contained in the first UDP message, and transmitting the first UDP message to the target distribution network terminal device;
and the target power distribution network terminal equipment corresponds to the request information in the first UDP message.
In this step, the terminal management module determines a target distribution network terminal device corresponding to the first UDP packet according to the service provided by the distribution network terminal device, the operation parameter of the distribution network terminal device, and the environment in which the distribution network terminal device is located, which are included in the first UDP packet in step S12, and directly transmits the first UDP packet to the distribution network terminal device corresponding to the request information, where the distribution network terminal device is the target distribution network terminal device.
In this embodiment, in steps S11 to S13, it is disclosed that the power distribution network terminal data acquisition system completes the request work of primary power distribution network terminal device data acquisition, and the specific process is as follows: the terminal management module receives data acquisition request information generated by the application service module, and the application service module extracts the data acquisition request information of the power distribution network terminal equipment, loads the data acquisition request information into the first UDP message, and transmits the data acquisition request information to the target power distribution terminal equipment according to the first UDP message.
Step S14, receiving a second UDP message responded by the power distribution network terminal device according to the power distribution network terminal device data acquisition request information in the first UDP message, wherein the second UDP message contains power distribution network terminal device data;
and the matched power distribution network terminal equipment is the target power distribution network terminal equipment.
In this step, when the distribution network terminal device reports data, the distribution network terminal device responds to the distribution network terminal device data acquisition request information in the first UDP message to generate a second UDP message, and the terminal management module receives the second UDP message in response to the distribution network terminal device, where the second UDP message includes target distribution network terminal device data.
Step S15, extracting the power distribution network terminal device data in the second UDP packet responded by the power distribution network terminal device.
In this step, the terminal management module extracts data of the target distribution network terminal device included in the second UDP packet, and converts the data into a protocol packet that can be received by the service module, for example: HTTP or HTTPs communication protocols may transmit protocol packets.
And step S16, sending the data of the power distribution network terminal equipment to the application service module.
In the step, the terminal management module sends the converted protocol packet to the application service module, wherein the protocol packet contains data of the target power distribution network terminal equipment.
In this embodiment, in steps S14 to S16, it is disclosed that the distribution network terminal data acquisition system completes a process of reporting the distribution network terminal data to the application service module, and the specific process is as follows: and the terminal management module receives a second UDP message responded by the power distribution network terminal equipment according to the request information of the first UDP message, extracts data in the second UDP message and sends the data to the application service module.
Steps S11 to S16 in the embodiment of the present application disclose a UDP-based power distribution network terminal data acquisition method, which is applied to a terminal management module in a power distribution network terminal data acquisition system, where the power distribution network terminal data acquisition system further includes: and an application service module. According to the method, a terminal management module receives data acquisition request information generated by an application service module, the data acquisition request information of power distribution network terminal equipment is loaded into a first UDP message, target power distribution network terminal equipment corresponding to the first UDP message is determined according to the data acquisition request information of the power distribution network terminal equipment contained in the first UDP message, the first UDP message is transmitted to the target power distribution network terminal equipment, the target power distribution network terminal equipment responds to the request information of the first UDP message to generate a second UDP message, the terminal management module is transmitted, power distribution network terminal equipment data in the second UDP message responded by the power distribution network terminal equipment are extracted, and the power distribution network terminal equipment data are sent to the application service module.
By the method, the problem that the data acquisition of the terminal equipment of the power distribution network cannot be finished due to the fact that the application service module does not actively initiate the connection with the terminal of the power distribution network for interaction in the data acquisition process of the terminal equipment of the power distribution network can be effectively solved.
Further, in the method disclosed in the embodiment of the present application, after the power distribution network terminal device data in the second UDP packet responded by the power distribution network terminal device is extracted, an intranet IP address is allocated to each power distribution network terminal device, and an address mapping table is established, where the address mapping table includes a power distribution network terminal device data acquisition request information address of an application service module and an address of power distribution network terminal device data responded by the power distribution network terminal device;
and maintaining the address mapping table through the periodic interaction of the terminal management module and the power distribution network terminal equipment.
The terminal management module establishes an address mapping table for each terminal device after receiving the response information of the power distribution network terminal devices, and periodically maintains the mapping table, so that the terminal devices and the terminal management module can keep long-time conversation, and long-time stable connection between the management module and the power distribution network terminal devices is realized.
In addition, the periodic interaction is that the terminal management modules periodically access the power distribution network terminal equipment, or periodically access the terminal management modules for the power distribution network terminal equipment, for example, the periodic access time may be once a day, or may be other times.
Further, in the method disclosed in the embodiment of the present application, the method for acquiring data of a power distribution network terminal further includes:
finishing the extraction of the data acquisition request information generated by the application service module and the data of the power distribution network terminal equipment responded by the power distribution network terminal equipment;
and converting the format of the data acquisition request information into a data format which can be directly transmitted to terminal equipment and converting the data of the power distribution network terminal equipment into a data format which can be directly transmitted to an application service module.
In this embodiment, an intranet network is arranged between the terminal device of the power distribution network and the terminal management module, a communication protocol is UDP, a public network is arranged between the terminal management module and the application service module, the communication protocol is HTTP or HTTPs, HTTP describes contents of a protocol packet in a text description manner, the protocol packet at least includes a space character and a line feed character, and UDP describes contents of the protocol packet by defining each bit segment of a binary function, so that extraction of related data and format conversion are required. For example: HTTP operates the data acquisition request information of the power distribution network terminal equipment of the application service module through 4 request methods of GET, POST, PUT and DELETE, the terminal management module converts the GET, POST, PUT and DELETE request methods into corresponding acquisition, creation, update and deletion function codes to a UDP protocol package and transmits the UDP protocol package to the power distribution network terminal equipment, similarly, UDP sends the power distribution network terminal data to the terminal management module through the acquisition, creation, update and deletion function codes, and the terminal management module converts the acquisition, creation, update and deletion function codes into GET, POST, PUT and DELETE to HTTP protocol packages and sends the GET, POST, PUT and DELETE to the application service module.
Further, in the method disclosed in the embodiment of the present application, the method for acquiring data of a power distribution network terminal further includes:
carrying out statistics and classification on relevant information of the power distribution network terminal equipment;
the related information of the terminal equipment at least comprises: the service provided by the terminal equipment of the power distribution network, the operation parameters of the terminal equipment and the environment in which the terminal equipment is located.
The terminal management module classifies and counts the power distribution network terminal equipment according to the service provided by the power distribution network terminal equipment, the operation parameters of the terminal equipment and the environment where the terminal equipment is located, so that the application service module can search the terminal data according to the classification sequence when acquiring the terminal data, resources are saved, and time is saved.
Further, in the method disclosed in the embodiment of the present application, the method for acquiring data of a power distribution network terminal further includes:
each distribution network terminal device is bidirectionally connected to the terminal management module, and the terminal management module is bidirectionally connected to the application service module;
an intranet network is arranged between the power distribution network terminal equipment and the terminal management module, and the communication protocol is UDP;
and a public network is arranged between the terminal management module and the application service module, and the communication protocol is HTTP or HTTPS.
In this embodiment, the bidirectional connection means that each distribution network terminal device can directly access the terminal management module, and the terminal management module can also access the distribution network terminal device, and it can be known that the terminal management module can directly access the application service module, and the application service module can also directly access the terminal management module.
According to the power distribution network terminal data acquisition method based on the UDP, the terminal management module is used for establishing the address mapping table for each terminal device, and the address mapping table is periodically accessed and maintained, so that the terminal management module and the terminal devices are stably connected for a long time.
Correspondingly, this application still discloses a distribution network terminal data acquisition device based on UDP, distribution network terminal data acquisition device is applied to the terminal management module among the distribution network terminal data acquisition system, distribution network terminal data acquisition system still includes: and an application service module.
Referring to the schematic structural diagram of fig. 2, the UDP-based power distribution network terminal data acquisition device includes: a first receiving unit 100, a loading unit 200, a transmission unit 300, a second receiving unit 400, an extraction unit 500 and a sending unit 600.
A first receiving unit 100, configured to receive data acquisition request information generated by an application service module, where the data acquisition request information at least includes: services provided by the power distribution network terminal equipment, operation parameters of the power distribution network terminal equipment and the environment of the power distribution network terminal equipment;
a loading unit 200, configured to load the data acquisition request information of the power distribution network terminal device into a first UDP packet, where the first UDP packet includes the data acquisition request information of the power distribution network terminal device;
a transmission unit 300, configured to determine, according to the service provided by the power distribution network terminal device, the operation parameter of the power distribution network terminal device, and the environment in which the power distribution network terminal device is located, that are included in the first UDP packet, a target power distribution network terminal device corresponding to the first UDP packet, and transmit the first UDP packet to the target power distribution network terminal device;
a second receiving unit 400, configured to receive a second UDP packet, which is responded by the power distribution network terminal device according to the data acquisition request information of the power distribution network terminal device in the first UDP packet, where the second UDP packet includes power distribution network terminal device data;
an extracting unit 500, configured to extract power distribution network terminal device data in the second UDP packet responded by the power distribution network terminal device;
a sending unit 600, configured to send the data of the power distribution network terminal device to the application service module.
Further, the power distribution network terminal data acquisition device shown in fig. 3 further includes: a mapping table establishing unit 700 and a mapping table maintaining unit 800.
A mapping table establishing unit 700, configured to, after extracting power distribution network terminal device data in the second UDP packet responded by the power distribution network terminal device, allocate an intranet IP address to each power distribution network terminal device, and establish an address mapping table, where the address mapping table includes a power distribution network terminal device data acquisition request information address of an application service module and an address of power distribution network terminal device data responded by the power distribution network terminal device;
a mapping table maintaining unit 800, configured to maintain the address mapping table through periodic interaction between the terminal management module and a power distribution network terminal device.
Further, the distribution network terminal data acquisition device shown in fig. 4 further includes: a data extraction unit 900 and a data conversion unit 1000;
the data extraction unit 900 is configured to complete extraction of the data acquisition request information generated by the application service module and the power distribution network terminal device data responded by the power distribution network terminal device; extracting and converting data formats;
the data conversion unit 1000 is configured to complete conversion of the format of the data acquisition request information into a data format that can be directly transmitted to a terminal device and conversion of the data of the power distribution network terminal device into a data format that can be directly transmitted to an application service module.
Further, the distribution network terminal data acquisition device still includes:
the statistical classification unit is used for performing statistical classification on the relevant information of the power distribution network terminal equipment;
the related information of the terminal equipment at least comprises: the service provided by the terminal equipment of the power distribution network, the operation parameters of the terminal equipment and the environment in which the terminal equipment is located.
Further, the distribution network terminal data acquisition device still includes:
the bidirectional connection unit is used for bidirectionally connecting each power distribution network terminal device to the terminal management module, and the terminal management module is bidirectionally connected to the application service module;
an intranet network is arranged between the power distribution network terminal equipment and the terminal management module, and the communication protocol is UDP;
and a public network is arranged between the terminal management module and the application service module, and the communication protocol is HTTP or HTTPS.
The embodiment of the application discloses a power distribution network terminal data acquisition device based on UDP, and the device is applied to a power distribution network terminal data acquisition method based on UDP. By the device, interaction between the application service module and the power distribution network terminal equipment is achieved, and acquisition of power distribution network terminal data is completed.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
In a specific implementation, the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in each embodiment of the UDP-based power distribution network terminal data acquisition method provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will clearly understand that the techniques in the embodiments of the present application may be implemented by way of software plus a required general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the description in the method embodiment.
The above-described embodiments of the present application do not limit the scope of the present application.

Claims (10)

1. A UDP-based power distribution network terminal data acquisition method is characterized in that the power distribution network terminal data acquisition method is applied to a terminal management module in a power distribution network terminal data acquisition system, and the power distribution network terminal data acquisition system further comprises: an application service module;
receiving data acquisition request information generated by an application service module, wherein the data acquisition request information at least comprises: services provided by the power distribution network terminal equipment, operation parameters of the power distribution network terminal equipment and the environment of the power distribution network terminal equipment;
loading the data acquisition request information of the power distribution network terminal equipment into a first UDP message, wherein the first UDP message comprises the data acquisition request information of the power distribution network terminal equipment;
determining a target power distribution network terminal device corresponding to the first UDP message according to the service provided by the power distribution network terminal device, the operation parameters of the power distribution network terminal device and the environment of the power distribution network terminal device contained in the first UDP message, and transmitting the first UDP message to the target power distribution network terminal device;
receiving a second UDP message responded by the target power distribution network terminal device according to the power distribution network terminal device data acquisition request information in the first UDP message, wherein the second UDP message contains power distribution network terminal device data;
extracting the power distribution network terminal equipment data in the second UDP message responded by the target power distribution network terminal equipment;
and sending the data of the power distribution network terminal equipment to the application service module.
2. The UDP-based power distribution network terminal data acquisition method according to claim 1, further comprising:
after the power distribution network terminal equipment data in the second UDP message responded by the target power distribution network terminal equipment are extracted, distributing an intranet IP address for each target power distribution network terminal equipment, and establishing an address mapping table, wherein the address mapping table comprises a power distribution network terminal equipment data acquisition request information address of an application service module and a power distribution network terminal equipment data address responded by the power distribution network terminal equipment;
and maintaining the address mapping table through the periodic interaction of the terminal management module and the power distribution network terminal equipment.
3. The UDP-based power distribution network terminal data acquisition method according to claim 1, further comprising:
finishing the extraction of the data acquisition request information generated by the application service module and the data of the power distribution network terminal equipment responded by the power distribution network terminal equipment;
and converting the format of the data acquisition request information into a data format which can be directly transmitted to terminal equipment and converting the data of the power distribution network terminal equipment into a data format which can be directly transmitted to an application service module.
4. The UDP-based power distribution network terminal data acquisition method according to claim 1, further comprising:
carrying out statistics and classification on relevant information of the power distribution network terminal equipment;
the related information of the terminal equipment at least comprises: the service provided by the terminal equipment of the power distribution network, the operation parameters of the terminal equipment and the environment in which the terminal equipment is located.
5. The UDP-based power distribution network terminal data acquisition method as claimed in claim 1,
each distribution network terminal device is bidirectionally connected to the terminal management module, and the terminal management module is bidirectionally connected to the application service module;
an intranet network is arranged between the power distribution network terminal equipment and the terminal management module, and the communication protocol is UDP;
and a public network is arranged between the terminal management module and the application service module, and the communication protocol is HTTP or HTTPS.
6. The utility model provides a distribution network terminal data acquisition device based on UDP which characterized in that, distribution network terminal data acquisition device is applied to the terminal management module in the distribution network terminal data acquisition system, distribution network terminal data acquisition system still includes: an application service module;
the power distribution network terminal data acquisition device based on the UDP comprises:
a first receiving unit, configured to receive data acquisition request information generated by an application service module, where the data acquisition request information at least includes: services provided by the power distribution network terminal equipment, operation parameters of the power distribution network terminal equipment and the environment of the power distribution network terminal equipment;
the loading unit is used for loading the data acquisition request information of the power distribution network terminal equipment into a first UDP message, wherein the first UDP message comprises the data acquisition request information of the power distribution network terminal equipment;
the transmission unit is used for determining a target power distribution network terminal device corresponding to the first UDP message according to the service provided by the power distribution network terminal device, the operation parameters of the power distribution network terminal device and the environment of the power distribution network terminal device contained in the first UDP message, and transmitting the first UDP message to the target power distribution network terminal device;
the second receiving unit is used for receiving a second UDP message responded by the target power distribution network terminal equipment according to the power distribution network terminal equipment data acquisition request information in the first UDP message, wherein the second UDP message contains power distribution network terminal equipment data;
an extraction unit, configured to extract power distribution network terminal device data in the second UDP packet responded by the target power distribution network terminal device;
and the sending unit is used for sending the data of the power distribution network terminal equipment to the application service module.
7. The UDP-based power distribution network terminal data acquisition device as claimed in claim 6, further comprising:
a mapping table establishing unit, configured to, after extracting power distribution network terminal device data in the second UDP packet responded by the target power distribution network terminal device, allocate an intranet IP address to each target power distribution network terminal device, and establish an address mapping table, where the address mapping table includes a power distribution network terminal device data acquisition request information address of an application service module and an address of power distribution network terminal device data responded by the power distribution network terminal device;
and the mapping table maintenance unit is used for maintaining the address mapping table through the periodic interaction of the terminal management module and the power distribution network terminal equipment.
8. The UDP-based power distribution network terminal data acquisition device as claimed in claim 6, further comprising:
the data extraction unit is used for completing extraction of data acquisition request information generated by the application service module and power distribution network terminal equipment data responded by the power distribution network terminal equipment; extracting and converting data formats;
and the data conversion unit is used for converting the format of the data acquisition request information into a data format which can be directly transmitted to terminal equipment and converting the data of the power distribution network terminal equipment into a data format which can be directly transmitted to an application service module.
9. The UDP-based power distribution network terminal data acquisition device as claimed in claim 6, further comprising:
the statistical classification unit is used for performing statistical classification on the relevant information of the power distribution network terminal equipment;
the related information of the terminal equipment at least comprises: the service provided by the terminal equipment of the power distribution network, the operation parameters of the terminal equipment and the environment in which the terminal equipment is located.
10. The UDP-based power distribution network terminal data acquisition device as claimed in claim 6, further comprising:
the bidirectional connection unit is used for bidirectionally connecting each power distribution network terminal device to the terminal management module, and the terminal management module is bidirectionally connected to the application service module;
an intranet network is arranged between the power distribution network terminal equipment and the terminal management module, and the communication protocol is UDP;
and a public network is arranged between the terminal management module and the application service module, and the communication protocol is HTTP or HTTPS.
CN201810990769.0A 2018-08-28 2018-08-28 UDP-based power distribution network terminal data acquisition method and device Active CN109120742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810990769.0A CN109120742B (en) 2018-08-28 2018-08-28 UDP-based power distribution network terminal data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810990769.0A CN109120742B (en) 2018-08-28 2018-08-28 UDP-based power distribution network terminal data acquisition method and device

Publications (2)

Publication Number Publication Date
CN109120742A CN109120742A (en) 2019-01-01
CN109120742B true CN109120742B (en) 2021-07-06

Family

ID=64860431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810990769.0A Active CN109120742B (en) 2018-08-28 2018-08-28 UDP-based power distribution network terminal data acquisition method and device

Country Status (1)

Country Link
CN (1) CN109120742B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462621A (en) * 2019-01-10 2019-03-12 国网浙江省电力有限公司杭州供电公司 Network safety protective method, device and electronic equipment
CN112015813B (en) * 2020-08-26 2024-03-26 南方电网数字电网研究院有限公司 Data sharing method, system and device for power distribution network and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834915A (en) * 2010-04-30 2010-09-15 广州合立正通信息网络集成有限公司 NAT (Network Address Translation) penetration system and method based on power substation data acquisition
ES2395353A2 (en) * 2011-02-03 2013-02-12 Empresa Metropolitana De Abastecimiento Y Saneamiento De Aguas De Sevilla, S.A. System of remote access to counters (Machine-translation by Google Translate, not legally binding)
CN103561198A (en) * 2007-12-28 2014-02-05 松下电器产业株式会社 Electronic equipment
CN105940681A (en) * 2014-01-29 2016-09-14 日本电气株式会社 Communication system, common service control apparatus, data collection method, and non-transitory computer readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10708341B2 (en) * 2013-05-21 2020-07-07 Convida Wireless, Llc Lightweight IoT information model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561198A (en) * 2007-12-28 2014-02-05 松下电器产业株式会社 Electronic equipment
CN101834915A (en) * 2010-04-30 2010-09-15 广州合立正通信息网络集成有限公司 NAT (Network Address Translation) penetration system and method based on power substation data acquisition
ES2395353A2 (en) * 2011-02-03 2013-02-12 Empresa Metropolitana De Abastecimiento Y Saneamiento De Aguas De Sevilla, S.A. System of remote access to counters (Machine-translation by Google Translate, not legally binding)
CN105940681A (en) * 2014-01-29 2016-09-14 日本电气株式会社 Communication system, common service control apparatus, data collection method, and non-transitory computer readable medium

Also Published As

Publication number Publication date
CN109120742A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN110300050B (en) Message pushing method and device, computer equipment and storage medium
CN102045363B (en) Establishment, identification control method and device for network flow characteristic identification rule
CN111031034A (en) Multi-protocol convergence edge computing gateway
CN111294399B (en) Data transmission method and device
US20180372507A1 (en) Information sharing method of smart electricity meter, smart electricity meter and acquisition router
CN101986648A (en) Negotiation method, device and network device of TCP option
CN104994079A (en) Access request processing method, access request processing device and acceleration server
CN109120742B (en) UDP-based power distribution network terminal data acquisition method and device
CN111629452A (en) Data transmission control method and device, storage medium and electronic equipment
CN103532752A (en) Management device and method for realizing integration of surfing logs of mobile internet users
CN101719692A (en) Method for acquiring network data and analyzing network performance for digital substation
CN104468704A (en) Web server system supporting content center network and processing method
CN103763206A (en) Network scheduling method and gateway
Azzara et al. The icsi m2m middleware for iot-based intelligent transportation systems
CN109696867A (en) Method, user terminal and the GNSS device management system of user terminal processes GNSS device data
CN105049543A (en) P2P communication system and method crossing asymmetric NAT between intelligent routers
CN107465654B (en) System for distributing and safely searching and killing contents among service subnets of broadcast station
CN110572394B (en) Access control method and device
CN102202045A (en) Method, system and device for realizing Internet access in broadcast television network
US10455391B2 (en) Communication policy control in a machine-to-machine communication system
CN108924773B (en) Message processing method and device
US20240064124A1 (en) Data sending method and apparatus, and method and system for establishing p2p connection
CN214544335U (en) Internet of things terminal equipment with optimized response mechanism in intelligent building
CN113452582A (en) Data transmission method, equipment, system and medium based on automatic analysis
CN106685078A (en) Smart grid remote monitoring system based on Android system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant