CN109120742A - A kind of power distribution network terminal collecting method and device based on UDP - Google Patents

A kind of power distribution network terminal collecting method and device based on UDP Download PDF

Info

Publication number
CN109120742A
CN109120742A CN201810990769.0A CN201810990769A CN109120742A CN 109120742 A CN109120742 A CN 109120742A CN 201810990769 A CN201810990769 A CN 201810990769A CN 109120742 A CN109120742 A CN 109120742A
Authority
CN
China
Prior art keywords
distribution network
power distribution
network terminal
terminal equipment
udp
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.)
Granted
Application number
CN201810990769.0A
Other languages
Chinese (zh)
Other versions
CN109120742B (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
Electric Power Research Institute of Yunnan Power System Ltd
Original Assignee
Electric Power Research Institute of Yunnan Power System 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 System Ltd filed Critical Electric Power Research Institute of Yunnan Power System 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

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; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas 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

Abstract

The application discloses a kind of power distribution network terminal collecting method and device based on UDP, in this method, termination management module receives the data harvesting request information that application service module generates, the solicited message is loaded into the first UDP message, according to the power distribution network terminal device data acquisition solicited message for including in the first UDP message, the first UDP message is transmitted to the target power distribution network terminal equipment, target power distribution network terminal equipment responds according to the solicited message of the first UDP message and generates the 2nd UDP message, and it is transmitted to termination management module, management module extracts the power distribution network terminal device data in the 2nd UDP message of power distribution network terminal equipment response, power distribution network terminal device data is sent to the application service module.This application solves the application service module in power distribution network in the prior art and interacts without the connection between active initiation and power distribution network terminal equipment, leads to not the problem of completing power distribution network terminal device data acquisition.

Description

A kind of power distribution network terminal collecting method and device based on UDP
Technical field
This application involves intelligent power distribution network technology application field more particularly to a kind of power distribution network terminal data based on UDP Acquisition method and device.
Background technique
With the development of smart grid, the data collection task of power distribution network terminal equipment is non-to the operation of power distribution network and safety It is often important, by monitoring the data of power distribution network terminal equipment, the situation of power distribution network terminal equipment can be understood, realize that power distribution network is whole The safe operation of end equipment.In addition, since many power distribution network terminal equipment belong to the sampling of low-power consumption, low cost and small data quantity Equipment, and it is based on the transmission compact of UDP (User Datagram Protocol, User Datagram Protocol), therefore very much Power distribution network terminal equipment is suitble to carry out the acquisition of terminal data using UDP.
The existing power distribution network terminal data acquisition technology based on UDP is that application service module is directly connected to power distribution network end End equipment, since power distribution network terminal equipment is the internal address of power distribution network, and application service module can only identify public network address, answer It is not interacted with service module and power distribution network terminal equipment, causes application service module that can not directly access power distribution network terminal and set Standby, therefore, it is necessary to pass through NAT (Network Address Translation, network address translation) for power distribution network terminal equipment Internal address be converted to public network address, application service module is just able to achieve access power distribution network terminal equipment.Specific conversion method It is the internal address for the data information that application service module receives power distribution network terminal equipment, it is soft by the NAT of application service module Internal address is converted to public network address by part, then the public network address after application service module access conversion.
But inventor has found in the research process of the application, it is existing to be based on UDP power distribution network terminal data acquisition side In method, the connection that application service module is initiated without active with power distribution network terminal equipment is interacted, internal address session information Will soon discharge, application service module is caused to can not find power distribution network terminal equipment, thus under send instructions unsuccessfully, led to not At power distribution network terminal device data acquisition.
Summary of the invention
This application provides a kind of power distribution network terminal collecting method and device based on UDP, to solve existing UDP skill The connection that application service module in art in power distribution network is initiated without active with power distribution network terminal equipment interacts, and leads to not The problem of completing power distribution network terminal device data acquisition.
In a first aspect, the embodiment of the present application provides a kind of power distribution network terminal collecting method based on UDP, the distribution Network termination collecting method is applied to the termination management module in power distribution network terminal data collection system, the power distribution network terminal Data collection system further include: application service module, the power distribution network terminal collecting method include:
Receive the data harvesting request information that application service module generates, wherein the data harvesting request information is at least Include: ring locating for service, power distribution network terminal equipment operating parameter and the power distribution network terminal equipment that power distribution network terminal equipment provides Border;
The power distribution network terminal device data acquisition solicited message is loaded into the first UDP message, the first UDP report It include the power distribution network terminal device data acquisition solicited message in text;
According to the service for the power distribution network terminal equipment offer for including in the first UDP message, power distribution network terminal equipment fortune Environment locating for row parameter and power distribution network terminal equipment determines the corresponding target power distribution network terminal equipment of the first UDP message, And the first UDP message is transmitted to the target power distribution network terminal equipment;
The power distribution network terminal equipment is received according to the power distribution network terminal device data acquisition request letter in the first UDP message The 2nd UDP message of response is ceased, the 2nd UDP message includes power distribution network terminal device data;
Extract the power distribution network terminal device data in the 2nd UDP message of the power distribution network terminal equipment response;
The power distribution network terminal device data is sent to the application service module.
With reference to first aspect, in one implementation, the power distribution network terminal collecting method, further includes:
Power distribution network terminal device data in the 2nd UDP message for extracting power distribution network terminal equipment response it Afterwards, IP address of internal network is distributed for each power distribution network terminal equipment, and establishes address mapping table, the address mapping table includes application clothes The power distribution network of the power distribution network terminal device data acquisition solicited message address for module of being engaged in and power distribution network terminal equipment response is whole The address of end equipment data;
It is interacted by the termination management module with the periodicity of power distribution network terminal equipment to safeguard the address mapping table.
With reference to first aspect, in one implementation, the power distribution network terminal collecting method, further includes:
What the data harvesting request information and the power distribution network terminal equipment for completing the application service module generation responded The extraction of power distribution network terminal device data;
It completes to be converted to the format of the data harvesting request information into the data lattice that can directly transmit to terminal device Formula and by the power distribution network terminal device data be converted to can directly to application service module transmit data format.
With reference to first aspect, in one implementation, the power distribution network terminal collecting method, further includes:
Statistics classification is carried out to the relevant information of power distribution network terminal equipment;
The relevant information of the terminal device includes at least: the fortune of service, terminal device that power distribution network terminal equipment provides Environment locating for row parameter and terminal device.
With reference to first aspect, in one implementation, the power distribution network terminal collecting method, further includes:
Each power distribution network terminal equipment is bidirectionally coupled to the termination management module, and the termination management module is bidirectionally coupled to The application service module;
It wherein, is inner-mesh network between the power distribution network terminal equipment and the termination management module, communications protocol is UDP;
Between the termination management module and the application service module be public network network, communications protocol be HTTP or HTTPS。
Second aspect, the embodiment of the present application part provide a kind of power distribution network terminal data acquisition device based on UDP, institute Power distribution network terminal data acquisition device is stated applied to the termination management module in power distribution network terminal data collection system, the distribution Network termination data collection system further include: application service module, the power distribution network terminal data acquisition device packet based on UDP It includes:
First receiving unit, for receiving the data harvesting request information of application service module generation, wherein the data Acquisition solicited message includes at least: service, power distribution network terminal equipment operating parameter and the power distribution network that power distribution network terminal equipment provides Environment locating for terminal device;
Loading unit, for the power distribution network terminal device data acquisition solicited message to be loaded into the first UDP message, It include the power distribution network terminal device data acquisition solicited message in the first UDP message;
Transmission unit, service, distribution for being provided according to the power distribution network terminal equipment for including in the first UDP message Environment locating for network termination equipment operating parameter and power distribution network terminal equipment determines that the corresponding target of the first UDP message is matched Electric network terminal equipment, and the first UDP message is transmitted to the target power distribution network terminal equipment;
Second receiving unit, for receiving the power distribution network terminal equipment according to the power distribution network terminal in the first UDP message 2nd UDP message of device data acquisition solicited message response, the 2nd UDP message include power distribution network terminal device data;
Extraction unit, the power distribution network in the 2nd UDP message for extracting the power distribution network terminal equipment response are whole End equipment data;
Transmission unit, for sending the power distribution network terminal device data to the application service module.
In conjunction with second aspect, in one implementation, the power distribution network terminal data acquisition device, further includes:
Mapping table establishes unit, in the 2nd UDP message for extracting the power distribution network terminal equipment response After power distribution network terminal device data, IP address of internal network is distributed for each power distribution network terminal equipment, and establish address mapping table, it is described Address mapping table includes power distribution network terminal device data acquisition solicited message address and the power distribution network end of application service module The address of the power distribution network terminal device data of end equipment response;
Mapping table maintenance unit, for the periodicity by the termination management module and power distribution network terminal equipment interact come Safeguard the address mapping table.
In conjunction with second aspect, in one implementation, the power distribution network terminal data acquisition device, further includes:
Data extracting unit, for completing the data harvesting request information and the distribution that the application service module generates The extraction of the power distribution network terminal device data of network termination equipment response;Extract the conversion with data format;
Date Conversion Unit, can be directly to terminal for completing to be converted to the format of the data harvesting request information The data format and the power distribution network terminal device data is converted to and can directly be transmitted to application service module that equipment is transmitted Data format.
In conjunction with second aspect, in one implementation, the power distribution network terminal data acquisition device, further includes:
Statistics sorts out unit, carries out statistics classification for the relevant information to power distribution network terminal equipment;
The relevant information of the terminal device includes at least: the fortune of service, terminal device that power distribution network terminal equipment provides Environment locating for row parameter and terminal device.
In conjunction with second aspect, in one implementation, the power distribution network terminal data acquisition device, further includes:
It is bi-directionally connected unit, is bidirectionally coupled to the termination management module, the terminal for each power distribution network terminal equipment Management module is bidirectionally coupled to the application service module;
It wherein, is inner-mesh network between the power distribution network terminal equipment and the termination management module, communications protocol is UDP;
Between the termination management module and the application service module be public network network, communications protocol be HTTP or HTTPS。
The technical scheme provided by this disclosed embodiment can include the following benefits:
From the above technical scheme, a kind of power distribution network terminal data acquisition based on UDP disclosed in the embodiment of the present application Method and apparatus, the method and apparatus in this application are applied to the termination management module in power distribution network terminal data collection system, The power distribution network terminal data collection system further include: application service module.In this method, termination management module receives application clothes The data harvesting request information that module of being engaged in generates, and the power distribution network terminal device data acquisition solicited message is loaded into first In UDP message, according to the power distribution network terminal device data acquisition solicited message for including in the first UDP message, determine described in The corresponding target power distribution network terminal equipment of first UDP message, and the first UDP message is transmitted to the target power distribution network terminal Equipment, target power distribution network terminal equipment generate the 2nd UDP message, and transmission terminal management according to the first UDP message response Module extracts the power distribution network terminal device data in the 2nd UDP message of the power distribution network terminal equipment response, sends institute Power distribution network terminal device data is stated to the application service module.
The application increases termination management module compared with the existing technology, solves in power distribution network terminal data acquisition When application service module is initiated without active and the connection of power distribution network terminal interacts, leads to not completion power distribution network terminal and set It the problem of standby data acquisition, is periodically interacted by terminal device and termination management module, terminal device and terminal conduit can be kept Manage module long-time stable connection, application service module can by termination management module obtain power distribution network terminal number of devices it is believed that Breath.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the application, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of process signal of power distribution network terminal collecting method based on UDP provided by the embodiments of the present application Figure;
Fig. 2 is a kind of structural representation of power distribution network terminal data acquisition device based on UDP provided by the embodiments of the present application Figure;
Fig. 3 is that the structure of another power distribution network terminal data acquisition device based on UDP provided by the embodiments of the present application is shown It is intended to;
Fig. 4 is that the structure of another power distribution network terminal data acquisition device based on UDP provided by the embodiments of the present application is shown It is intended to.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
The embodiment of the present application provides a kind of power distribution network terminal collecting method and device based on UDP, existing to solve Application service module in technology in power distribution network is not interacted with power distribution network terminal, leads to not complete power distribution network terminal number of devices The problem of according to acquisition.
The power distribution network terminal collecting method and device of the application is applied to power distribution network terminal data acquisition system Termination management module in system, the power distribution network terminal data collection system further include: application service module.
Referring to Fig.1, a kind of flow diagram of power distribution network terminal collecting method based on UDP, the application are shown A kind of disclosed power distribution network terminal collecting method based on UDP includes the following steps:
Step S11 receives the data harvesting request information that application service module generates, wherein the data harvesting request Information includes at least: service, power distribution network terminal equipment operating parameter and the power distribution network terminal equipment that power distribution network terminal equipment provides Locating environment.
Wherein, application service module belongs to management platform, carries out Classification Management to collected terminal device data.
In this step, the management module of power distribution network terminal receives the data to power distribution network terminal equipment of application service module Solicited message is acquired, including the service provided terminal device application service module, the operating parameter of power distribution network terminal equipment It is acquired with information such as environment locating for power distribution network terminal equipment.
For example, the distribution transformer to certain factory carries out data acquisition, by management module to application service module to this The data harvesting request that the distribution transformer of factory generates, the specific service content including distribution transformer, as the transformer is Step-up transformer or step-down transformer;Environment locating for the parameter of transformer station high-voltage side bus and the transformer, if transformer is in room It is interior or outdoor, if far from residential neighborhoods etc..
The power distribution network terminal device data acquisition solicited message is loaded into the first UDP message by step S12, described It include the power distribution network terminal device data acquisition solicited message in first UDP message;
Wherein, power distribution network terminal device data acquisition solicited message includes: the power distribution network terminal equipment in step S11 provides The information such as service, environment locating for power distribution network terminal equipment operating parameter and power distribution network terminal equipment.
In this step, then termination management module gives birth to the power distribution network terminal device data acquisition information extraction of step S11 At udp protocol packet, udp protocol packet is loaded into the first UDP message for transmission.
Step S13, the service provided according to the power distribution network terminal equipment for including in the first UDP message, power distribution network are whole Environment locating for end equipment operating parameter and power distribution network terminal equipment determines the corresponding target power distribution network of the first UDP message Terminal device, and the first UDP message is transmitted to the target power distribution network terminal equipment;
Wherein, target power distribution network terminal equipment is corresponding with the solicited message in the first UDP message.
In this step, the power distribution network terminal that termination management module includes in the first UDP message according to step S12 is set Environment locating for the standby service provided, power distribution network terminal equipment operating parameter and power distribution network terminal equipment, determines the first UDP The corresponding target power distribution network terminal equipment of message, directly by first UDP message transmission to the corresponding power distribution network of solicited message Terminal device, the power distribution network terminal equipment are target power distribution network terminal equipment.
In the present embodiment, step S11 discloses power distribution network terminal data collection system and completes once into step S13 The request work of power distribution network terminal device data acquisition, detailed process is: termination management module receives application service module and generates Data harvesting request information, application service module extracts the power distribution network terminal device data acquisition solicited message and is simultaneously loaded onto In first UDP message, according to and be transmitted to target distribution terminal equipment.
Step S14 receives the power distribution network terminal equipment and is adopted according to the power distribution network terminal device data in the first UDP message Collect the 2nd UDP message of solicited message response, the 2nd UDP message includes power distribution network terminal device data;
Wherein, the matched power distribution network terminal equipment of institute is target power distribution network terminal equipment.
In this step, when power distribution network terminal equipment reported data, power distribution network terminal equipment is according to matching in the first UDP message Electric network terminal device data acquisition solicited message, response generate the 2nd UDP message, and termination management module receives power distribution network terminal and sets It include target power distribution network terminal device data in the 2nd UDP message for the 2nd UDP message of mutually response.
Step S15 extracts the power distribution network terminal equipment in the 2nd UDP message of the power distribution network terminal equipment response Data.
In this step, it includes target power distribution network terminal device data in the 2nd UDP message that termination management module, which extracts, And convert data to the protocol package that can receive with service module, such as: what HTTP HTTPS communications protocol can be transmitted Protocol package.
Step S16 sends the power distribution network terminal device data to the application service module.
In this step, the protocol package after converting is sent to application service module, the association by termination management module It include the data of target power distribution network terminal equipment in view packet.
In the present embodiment, step S14 discloses power distribution network terminal data collection system and completes once into step S16 Power distribution network terminal data report to the process of application service module, and detailed process is: termination management module receives power distribution network terminal The 2nd UDP message that equipment is responded according to the solicited message of the first UDP message extracts the number in the 2nd UDP message According to, and it is sent to the application service module.
Step S11 to S16 in the embodiment of the present application discloses a kind of power distribution network terminal data acquisition side based on UDP Method, this method are applied to the termination management module in power distribution network terminal data collection system, the power distribution network terminal data acquisition System further include: application service module.In this method, termination management module receives the data acquisition that application service module generates and asks Information is sought, and the power distribution network terminal device data acquisition solicited message is loaded into the first UDP message, according to described first The power distribution network terminal device data acquisition solicited message for including in UDP message determines that the corresponding target of the first UDP message is matched Electric network terminal equipment, and the first UDP message is transmitted to the target power distribution network terminal equipment, target power distribution network terminal equipment It is responded according to the solicited message of the first UDP message and generates the 2nd UDP message, and transmission terminal management module, described in extraction Power distribution network terminal device data in the 2nd UDP message of power distribution network terminal equipment response, sends the power distribution network terminal Device data is to the application service module.
Can be with effective solution in power distribution network terminal data acquisition using preceding method, application service module does not have It actively initiates the connection with power distribution network terminal to interact, leads to not the problem of completing power distribution network terminal device data acquisition, The application is periodically interacted by terminal device and termination management module, can keep terminal device and termination management module for a long time It is stably connected with, application service module can obtain power distribution network terminal device data information by termination management module.
Further, it in method disclosed in the embodiment of the present application, is extracting described in the power distribution network terminal equipment response After power distribution network terminal device data in 2nd UDP message, IP address of internal network is distributed for each power distribution network terminal equipment, and establish Address mapping table, the address mapping table include the power distribution network terminal device data acquisition solicited message address of application service module With the address of the power distribution network terminal device data of power distribution network terminal equipment response;
It is interacted by the termination management module with the periodicity of power distribution network terminal equipment to safeguard the address mapping table.
Wherein, power distribution network terminal equipment is multiple, and termination management module is in the response letter for receiving power distribution network terminal equipment After breath, address mapping table is established for each terminal device, and periodicmaintenance is carried out to this mapping table, make terminal device and terminal Management module can keep long-time session, and realize that long-time stable connects between management module and power distribution network terminal equipment It connects.
In addition, the periodically interaction is that termination management module carries out periodic access to power distribution network terminal equipment, it can also Think that power distribution network terminal equipment carries out periodic access to termination management module, for example, the periodic access time can be one day Once, it is also possible to other times, the application is not specifically limited, and can so realize that termination management module and power distribution network are whole Data double-way between end equipment is reachable and Reverse Turning Control.
Further, in method disclosed in the embodiment of the present application, the power distribution network terminal collecting method, further includes:
What the data harvesting request information and the power distribution network terminal equipment for completing the application service module generation responded The extraction of power distribution network terminal device data;
It completes to be converted to the format of the data harvesting request information into the data lattice that can directly transmit to terminal device Formula and by the power distribution network terminal device data be converted to can directly to application service module transmit data format.
In the present embodiment, due to being inner-mesh network, communication association between power distribution network terminal equipment and the termination management module View be UDP, between the termination management module and the application service module be public network network, communications protocol be HTTP or HTTPS, HTTP describe protocol package content by text describing mode, and protocol package includes at least space character, newline, and UDP passes through It defines the every section function of binary system and describes protocol package content, it is therefore desirable to carry out the extraction and format conversion of related data.Such as: HTTP adopts the power distribution network terminal device data of application service module by this 4 requesting methods of GET, POST, PUT and DELETE Collection solicited message is operated, and GET, POST, PUT and DELETE request method migration are corresponding obtain by termination management module It takes, create, updating, deleting function code to udp protocol packet, power distribution network terminal equipment being transmitted to, likewise, UDP is by obtaining, wound It builds, update, deleting function code power distribution network terminal data are sent to termination management module, termination management module will acquire, create, Update, deletion function code are converted into GET, POST, PUT and DELETE to http protocol packet, are sent to application service module.
Further, in method disclosed in the embodiment of the present application, the power distribution network terminal collecting method, further includes:
Statistics classification is carried out to the relevant information of power distribution network terminal equipment;
The relevant information of the terminal device includes at least: the fortune of service, terminal device that power distribution network terminal equipment provides Environment locating for row parameter and terminal device.
Wherein, the operating parameter of termination management module is provided according to power distribution network terminal equipment service, terminal device and end Environment locating for end equipment carries out classification statistics to power distribution network terminal equipment, is adopted with facilitating application service module to carry out terminal data It according to the sequential search of classification when collection, economizes on resources, saves the time.
Further, in method disclosed in the embodiment of the present application, the power distribution network terminal collecting method, further includes:
Each power distribution network terminal equipment is bidirectionally coupled to the termination management module, and the termination management module is bidirectionally coupled to The application service module;
It wherein, is inner-mesh network between the power distribution network terminal equipment and the termination management module, communications protocol is UDP;
Between the termination management module and the application service module be public network network, communications protocol be HTTP or HTTPS。
In the present embodiment, it is bi-directionally connected and refers to that power distribution network terminal equipment can directly access termination management module, equally Termination management module also accessible power distribution network terminal equipment, similarly it is found that termination management module can be accessed directly using clothes Business module, application service module can also directly access termination management module.
In a kind of power distribution network terminal collecting method based on UDP provided by the present application, it is by termination management module Each terminal device establishes address mapping table, safeguards the address mapping table by periodic access, makes termination management module and end Long-time stable connection is realized between end equipment.
Correspondingly, the application's is also disclosed a kind of power distribution network terminal data acquisition device based on UDP, the power distribution network is whole End data acquisition device is applied to the termination management module in power distribution network terminal data collection system, the power distribution network terminal data Acquisition system further include: application service module.
The structural schematic diagram referring to fig. 2, a kind of power distribution network terminal data acquisition device packet based on UDP It includes: the first receiving unit 100, loading unit 200, transmission unit 300, the second receiving unit 400, extraction unit 500 and transmission Unit 600.
First receiving unit 100, for receiving the data harvesting request information of application service module generation, wherein described Data harvesting request information includes at least: service that power distribution network terminal equipment provides and is matched at power distribution network terminal equipment operating parameter Environment locating for electric network terminal equipment;
Loading unit 200, for the power distribution network terminal device data acquisition solicited message to be loaded into the first UDP message In, it include the power distribution network terminal device data acquisition solicited message in the first UDP message;
Transmission unit 300, for according to include in the first UDP message power distribution network terminal equipment provide service, Environment locating for power distribution network terminal equipment operating parameter and power distribution network terminal equipment determines the corresponding mesh of the first UDP message Standard configuration electric network terminal equipment, and the first UDP message is transmitted to the target power distribution network terminal equipment;
Second receiving unit 400, it is whole according to the power distribution network in the first UDP message for receiving the power distribution network terminal equipment 2nd UDP message of end equipment data harvesting request information response, the 2nd UDP message include power distribution network terminal number of devices According to;
Extraction unit 500, the power distribution network in the 2nd UDP message for extracting the power distribution network terminal equipment response Terminal device data;
Transmission unit 600, for sending the power distribution network terminal device data to the application service module.
Further, referring to the power distribution network terminal data acquisition device shown in Fig. 3, further includes: mapping table is established single Member 700 and mapping table maintenance unit 800.
Mapping table establishes unit 700, in the 2nd UDP message for extracting the power distribution network terminal equipment response Power distribution network terminal device data after, distribute IP address of internal network for each power distribution network terminal equipment, and establish address mapping table, institute State the power distribution network terminal device data acquisition solicited message address and the power distribution network that address mapping table includes application service module The address of the power distribution network terminal device data of terminal device response;
Mapping table maintenance unit 800, for the period sexual intercourse by the termination management module and power distribution network terminal equipment Mutually safeguard the address mapping table.
Further, referring to the power distribution network terminal data acquisition device shown in Fig. 4, further includes: data extracting unit 900 and Date Conversion Unit 1000;
Data extracting unit 900, for completing data harvesting request information that the application service module generates and described The extraction of the power distribution network terminal device data of power distribution network terminal equipment response;Extract the conversion with data format;
Date Conversion Unit 1000, for complete to be converted to the format of the data harvesting request information can directly to The data format of terminal device transmission and be converted to the power distribution network terminal device data can be directly to application service module The data format of transmission.
Further, the power distribution network terminal data acquisition device, further includes:
Statistics sorts out unit, carries out statistics classification for the relevant information to power distribution network terminal equipment;
The relevant information of the terminal device includes at least: the fortune of service, terminal device that power distribution network terminal equipment provides Environment locating for row parameter and terminal device.
Further, the power distribution network terminal data acquisition device, further includes:
It is bi-directionally connected unit, is bidirectionally coupled to the termination management module, the terminal for each power distribution network terminal equipment Management module is bidirectionally coupled to the application service module;
It wherein, is inner-mesh network between the power distribution network terminal equipment and the termination management module, communications protocol is UDP;
Between the termination management module and the application service module be public network network, communications protocol be HTTP or HTTPS。
A kind of power distribution network terminal data acquisition device based on UDP disclosed in the embodiment of the present application, the device are applied to one Power distribution network terminal collecting method of the kind based on UDP.By the device, application service module and power distribution network terminal equipment are realized Interaction, complete power distribution network terminal data acquisition.
About the device in above-described embodiment, wherein each unit executes the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
In the specific implementation, the application also provides a kind of computer storage medium, wherein the computer storage medium can store There is program, which may include a kind of each of power distribution network terminal collecting method based on UDP provided by the present application when executing Step some or all of in embodiment.The storage medium can for magnetic disk, CD, read-only memory (English: Read-only memory, referred to as: ROM) or random access memory (English: random access memory, referred to as: RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the application or embodiment The method stated.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for device For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method Explanation.
Above-described the application embodiment does not constitute the restriction to the application protection scope.

Claims (10)

1. a kind of power distribution network terminal collecting method based on UDP, which is characterized in that power distribution network terminal data acquisition side Method is applied to the termination management module in power distribution network terminal data collection system, and the power distribution network terminal data collection system is also wrapped It includes: application service module;
Receive the data harvesting request information that application service module generates, wherein the data harvesting request information includes at least: Environment locating for service, power distribution network terminal equipment operating parameter and the power distribution network terminal equipment that power distribution network terminal equipment provides;
The power distribution network terminal device data acquisition solicited message is loaded into the first UDP message, in the first UDP message Include the power distribution network terminal device data acquisition solicited message;
Service, the operation of power distribution network terminal equipment provided according to the power distribution network terminal equipment for including in the first UDP message is joined Environment locating for several and power distribution network terminal equipment, determines the corresponding target power distribution network terminal equipment of the first UDP message, and pass The defeated first UDP message is to the target power distribution network terminal equipment;
The power distribution network terminal equipment is received to be rung according to the power distribution network terminal device data acquisition solicited message in the first UDP message The 2nd UDP message answered, the 2nd UDP message include power distribution network terminal device data;
Extract the power distribution network terminal device data in the 2nd UDP message of the power distribution network terminal equipment response;
The power distribution network terminal device data is sent to the application service module.
2. the power distribution network terminal collecting method according to claim 1 based on UDP, which is characterized in that the distribution Network termination collecting method, further includes:
After the power distribution network terminal device data in the 2nd UDP message for extracting the power distribution network terminal equipment response, IP address of internal network is distributed for each power distribution network terminal equipment, and establishes address mapping table, the address mapping table includes application service The power distribution network terminal of the power distribution network terminal device data acquisition solicited message address of module and power distribution network terminal equipment response The address of device data;
It is interacted by the termination management module with the periodicity of power distribution network terminal equipment to safeguard the address mapping table.
3. the power distribution network terminal collecting method according to claim 1 based on UDP, which is characterized in that the distribution Network termination collecting method, further includes:
Complete the distribution of data harvesting request information and power distribution network terminal equipment response that the application service module generates The extraction of network termination device data;
Complete by the format of the data harvesting request information be converted to can directly to terminal device transmit data format and The power distribution network terminal device data is converted to the data format that can directly transmit to application service module.
4. the power distribution network terminal collecting method according to claim 1 based on UDP, which is characterized in that the distribution Network termination collecting method, further includes:
Statistics classification is carried out to the relevant information of power distribution network terminal equipment;
The relevant information of the terminal device includes at least: the operation ginseng of service, terminal device that power distribution network terminal equipment provides Environment locating for several and terminal device.
5. the power distribution network terminal collecting method according to claim 1 based on UDP, which is characterized in that
Each power distribution network terminal equipment is bidirectionally coupled to the termination management module, and the termination management module is bidirectionally coupled to described Application service module;
It wherein, is inner-mesh network, communications protocol UDP between the power distribution network terminal equipment and the termination management module;
It is public network network between the termination management module and the application service module, communications protocol is HTTP or HTTPS.
6. a kind of power distribution network terminal data acquisition device based on UDP, which is characterized in that the power distribution network terminal data acquisition dress The termination management module being applied in power distribution network terminal data collection system is set, the power distribution network terminal data collection system is also wrapped It includes: application service module;
The power distribution network terminal data acquisition device based on UDP includes:
First receiving unit, for receiving the data harvesting request information of application service module generation, wherein the data acquisition Solicited message includes at least: service, power distribution network terminal equipment operating parameter and the power distribution network terminal that power distribution network terminal equipment provides Environment locating for equipment;
Loading unit, it is described for the power distribution network terminal device data acquisition solicited message to be loaded into the first UDP message It include the power distribution network terminal device data acquisition solicited message in first UDP message;
Transmission unit, the service, power distribution network for being provided according to the power distribution network terminal equipment for including in the first UDP message are whole Environment locating for end equipment operating parameter and power distribution network terminal equipment determines the corresponding target power distribution network of the first UDP message Terminal device, and the first UDP message is transmitted to the target power distribution network terminal equipment;
Second receiving unit, for receiving the power distribution network terminal equipment according to the power distribution network terminal equipment in the first UDP message 2nd UDP message of data harvesting request information response, the 2nd UDP message include power distribution network terminal device data;
Extraction unit, the power distribution network terminal in the 2nd UDP message for extracting the power distribution network terminal equipment response are set Standby data;
Transmission unit, for sending the power distribution network terminal device data to the application service module.
7. the power distribution network terminal data acquisition device according to claim 6 based on UDP, which is characterized in that the distribution Network termination data acquisition device, further includes:
Mapping table establishes unit, for the distribution in the 2nd UDP message for extracting the power distribution network terminal equipment response After network termination device data, IP address of internal network is distributed for each power distribution network terminal equipment, and establish address mapping table, the address Mapping table includes that the power distribution network terminal device data acquisition solicited message address of application service module and the power distribution network terminal are set The address of the power distribution network terminal device data of standby response;
Mapping table maintenance unit is safeguarded for being interacted by the termination management module with the periodicity of power distribution network terminal equipment The address mapping table.
8. the power distribution network terminal data acquisition device according to claim 6 based on UDP, which is characterized in that the distribution Network termination data acquisition device, further includes:
Data extracting unit, for completing the data harvesting request information and power distribution network end that the application service module generates The extraction of the power distribution network terminal device data of end equipment response;Extract the conversion with data format;
Date Conversion Unit, can be directly to terminal device for completing to be converted to the format of the data harvesting request information The data format of transmission and by the power distribution network terminal device data be converted to can directly to application service module transmit number According to format.
9. the power distribution network terminal data acquisition device according to claim 6 based on UDP, which is characterized in that the distribution Network termination data acquisition device, further includes:
Statistics sorts out unit, carries out statistics classification for the relevant information to power distribution network terminal equipment;
The relevant information of the terminal device includes at least: the operation ginseng of service, terminal device that power distribution network terminal equipment provides Environment locating for several and terminal device.
10. the power distribution network terminal data acquisition device according to claim 6 based on UDP, which is characterized in that the distribution Network termination data acquisition device, further includes:
It is bi-directionally connected unit, is bidirectionally coupled to the termination management module, the terminal management for each power distribution network terminal equipment Module is bidirectionally coupled to the application service module;
It wherein, is inner-mesh network, communications protocol UDP between the power distribution network terminal equipment and the termination management module;
It is public network network between the termination management module and the application service module, communications 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 true CN109120742A (en) 2019-01-01
CN109120742B 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)

Cited By (1)

* 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

Citations (5)

* 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
US20140351312A1 (en) * 2013-05-21 2014-11-27 Convida Wireless, Llc Lightweight iot information model
CN105940681A (en) * 2014-01-29 2016-09-14 日本电气株式会社 Communication system, common service control apparatus, data collection method, and non-transitory computer readable medium

Patent Citations (5)

* 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)
US20140351312A1 (en) * 2013-05-21 2014-11-27 Convida Wireless, Llc Lightweight iot information model
CN105940681A (en) * 2014-01-29 2016-09-14 日本电气株式会社 Communication system, common service control apparatus, data collection method, and non-transitory computer readable medium

Cited By (1)

* 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

Also Published As

Publication number Publication date
CN109120742B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN102045363B (en) Establishment, identification control method and device for network flow characteristic identification rule
CN109889551A (en) A kind of method of the Internet of Things cloud platform of Intelligent hardware access
CN102035880B (en) Method and device for maintaining connection
CN104660695A (en) Intelligent control system and intelligent control method based on wechat public platform
CN106936875B (en) Improvement TCP agent method based on wide area network data compression
CN104219100A (en) Information acquiring method and device
CN107622771A (en) Home appliance and its control method, system and computer-readable recording medium
CN109547524A (en) User behavior storage method, device, equipment and storage medium based on Physical Network
CN109120742A (en) A kind of power distribution network terminal collecting method and device based on UDP
CN102984272B (en) A kind of system of remote control mobile terminal communication capacity and method thereof
CN111431762A (en) Wireless network state monitoring and displaying system
CN105490849B (en) The automatic deployment method and system of application system
CN103166771A (en) Method and system for managing gateway and under hanging device
CN106790103A (en) The special gateway of private network penetrates safety method
CN104506425A (en) Instant messaging system based on family cloud host and method thereof
CN107645597A (en) The synchronous method and terminal of application program
CN107846609A (en) Control room real-time data transmission methods, devices and systems
CN107888683A (en) A kind of client exchange method and device
CN104144230A (en) Simple method and device for binding monitoring terminals
CN106972977A (en) The long connection maintaining method of one kind and device
CN110012462A (en) A kind of key batch based on WiFi matches network technology
CN101834915A (en) NAT (Network Address Translation) penetration system and method based on power substation data acquisition
CN105306315B (en) System and method based on SMB agreement mobile phone remote access family gateway equipment
CN110071847A (en) Message processing method, device, terminal device and storage medium
CN112291210B (en) Method and device for acquiring front-end equipment catalog

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