A kind of debugging system and method based on power line carrier communication
The present invention relates to power-line carrier communication fields, and in particular to a kind of debugging system and method.
In recent years, voltage power-line carrier communication technology has been widely applied, but since power circuit is easy by certain
The influence of time-varying characteristics, burst noise and impedance variations, such as switch operate caused by impulsive noise, rectifier equipment generate with electricity
The noise of net Frequency Synchronization, load variations lead to impedance variations, attenuation change caused by high wind rainfall etc. etc., so that existing carrier wave
There is acquisition blind area in communication network, concentrator cannot copy and accept the power information for the electric energy meter being located in acquisition blind area, often
Operation maintenance personnel scene is needed to carry out problem diagnosis.Existing concentrator devices, general debugging and analysis function are poor, it is difficult to effectively
Support carrier module diagnosis and solve the problems, such as.And traditional simulation concentrator system needs to connect the CCO module in concentrator,
It is located proximate to transformer and concentrator is needed to carry out operation of unpacking, the carrier module on direct operational power table is also required to the behaviour that unpacks
Make, is unfavorable for O&M implementation.
Summary of the invention
To solve the problems, such as that existing carrier communication system exists in terms of debugging, one aspect of the present invention provides one kind and is based on
The debugging system of power line carrier communication, it is characterised in that including operating terminal, access device, CCO and STA, the operation is eventually
End and access device are communicated by access interface, and the access device and CCO, STA are communicated by power line；Operation
The carrier wave application layer of terminal and the application layer of CCO, STA are peer-to-peer communications, the communication for power line carrier application layer messages；Behaviour
The access application layer of the access application layer and access device of making terminal is peer-to-peer communications, for accessing the transmitting-receiving process of message；It connects
The carrier wave adaptation layer for entering equipment is used to access the conversion process of message and carrier wave message.
Preferably, deployment simulation concentrator, simulation CCO, remote terminal and simulation electric energy meter in the operating terminal；It is described
The debugging message content of simulation concentrator constructs and resolves to concentrator local communication Data Frame message；The tune of the simulation CCO
Examination message content constructs and resolves to CCO standard power line carrier communication application layer message；The debugging message of the remote terminal
Composition of content and resolve to the control function communicated with CCO, STA；The debugging message content construction of the simulation electric energy meter
With resolve to electric energy meter message.
Another aspect of the present invention provides the adjustment method based on power line carrier communication, includes the following steps:
S101: construction debugging message in operating terminal, and the message and access message header are encapsulated in access message；
S102: access message packet is sent to access device by access interface；
S103: after access device receives access message, debugging message and access message header are assembled into power line carrier data
S104: power line carrier data frame is sent to destination address carrier module by carrier network；
S105: destination address carrier module receives after access device sends power line carrier data frame, parsing debugging message, and presses
It is handled according to message content；After the completion of processing, construction debugging message, and assemble the response that destination address is access device address
Power line carrier data frame；
S106: response power line carrier data frame is sent to access device by carrier network；
S107: after access device receives response power line carrier data frame, debugging message part is assembled into access message；
S108: operating terminal is sent by access interface by the access message of step S107；
S109: it after operating terminal receives access message, parses and handles debugging message.
Debugging system and method proposed by the present invention based on power line carrier communication, deployment debugging is soft in operating terminal
Part realizes the communication with destination address carrier module by the conversion of access device using debugging message, can be in power line
Any position access power line carrier network, allow site operation personnel not unpack in the case where from operating terminal to carrier wave
It a variety of debud modes of the network operation and is diagnosed automatically, facilitates O&M to implement, be able to ascend bandwidth carrier debugging efficiency, avoid
Unpacking operation to field module, improves security protection ability.
Detailed description of the invention
Fig. 1 is the debugging system communication scheme the present invention is based on power line carrier communication；
Fig. 2 is the operating terminal, access device and CCO/STA communication protocol stack schematic diagram of one embodiment of the invention；
Fig. 3 is present invention access message data format schematic diagram；
Fig. 4 is operation of the present invention terminal and CCO/STA communication interface schematic diagram；
Fig. 5 is concentrator and CCO communication interface schematic diagram；
Fig. 6 is STA and electric energy meter communication interface schematic diagram；
Fig. 7 is computer and CCO, STA communication interface schematic diagram；
Fig. 8 is interacting message schematic diagram of the present invention.
With reference to the accompanying drawings and examples, technical solution of the present invention is clearly and completely described, it is clear that described
Embodiment be only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiment of the present invention, this field
Those of ordinary skill's every other embodiment obtained without making creative work, belongs to of the invention
As shown in Fig. 1, the present invention provides a kind of debugging system based on power line carrier, comprising:
Operating terminal, access device, CCO and STA.
Operating terminal and access device are communicated by access interface.
Access device and CCO, STA pass through power line communication.
Wherein, access interface includes: network interface, wireless, usb, serial ports etc..
Operating terminal includes: computer, tablet computer, the equipment such as smart phone.
Access device is the equipment that can be communicated with operating terminal and carrier network, such as carrier wave updating apparatus, carrier wave
Signal detector etc..
CCO includes: concentrator area communication units etc..
STA includes: electric energy meter carrier module, I type collector carrier module, II type collector carrier module etc..
Communication protocol stack such as Fig. 2 by taking access interface is network interface as an example, between operating terminal, access device and CCO, STA
It is shown.Wherein operating terminal application layer and the application layer of CCO, STA are peer-to-peer communications, for power line carrier application layer messages
Communication.The access application layer of operating terminal and the access application layer of access terminal are peer-to-peer communications, for accessing the transmitting-receiving of message
Processing.The carrier wave adaptation layer of access device is used to access the conversion process of message and carrier wave message.When access interface is it
Application layer or less is accessed when the interface of his type, in operating terminal and access device partially can transform to corresponding protocol stack.
As shown in figure 3, present embodiments providing a kind of operating terminal and access message frame that access device is communicated.It connects
Entering message packet format includes access message header and debugging message.
Access message header includes the necessary information that communicates with CCO or STA of instruction, including type of message, message-length, source
The contents such as location, destination address, sending method and transmission times.
Debugging message refers to the message of debugging software Yu CCO, STA communication, including concentrator local communication message, electric energy meter
Local communication message, customized remote terminal message, CCO standard power line carrier communication application layer message.
Debugging software includes simulation concentrator, simulation CCO, remote terminal and simulation electric energy meter.The simulation concentrator, refers to
The debugging message content for constructing and parsing in operating terminal is concentrator local communication Data Frame message.The message can be with CCO
Application layer is communicated, the message include power line carrier communication network diagnosis message in transmit.The simulation CCO, refers to
The debugging message content for constructing and parsing in debugging software is CCO standard power line carrier communication application layer message, for same
STA application layer is communicated.Such as meter reading, upgrade message etc., standard application layer message of the message as power line carrier communication
Transmission.The remote terminal refers to that the debugging message content and CCO, STA that construct and parse in debugging software are communicated
Customized control function, comprising: remote printing switch, remote command (data acquisition, parameter setting, status inquiry and report)
Etc. business, the message include power line carrier communication network diagnosis message in transmit.The simulation electric energy meter, refers to and is debugging
The debugging message content for constructing and parsing in software is 698/645 electric energy meter message, for the application layer communication of same STA or CCO,
The message include power line carrier communication network diagnosis message in transmit.
Communicated as shown in figure 4, the present embodiment realizes a kind of virtual serial port using debugging message, by operating terminal and CCO,
Communication interface between STA is expressed as virtual serial port, communication efficiency just as entity device (computer, concentrator, electric energy meter,
CCO, STA etc.) between using serial ports connection communication it is the same.
As shown in figure 5, passing through serial communication between concentrator and CCO.It is taken out between the simulation concentrator and CCO of operating terminal
As being communicated for virtual serial port.
As shown in fig. 6, STA and electric energy meter pass through serial communication.It is abstracted as between the simulation electric energy meter and STA of operating terminal
Virtual serial port communication.
As shown in fig. 7, computer and CCO, STA pass through serial communication.It is taken out between the remote terminal and CCO, STA of operating terminal
As for serial communication.
As shown in Fig. 8, the present embodiment provides a kind of carrier wave adjustment methods, include the following steps:
S101: construction debugging message in operating terminal, and the message and access header contents are encapsulated in access message.
When debugging message is simulation concentrator message, destination address is the address CCO；When debugging message is simulation CCO report
Wen Shi, destination address are the address STA；When debugging message is remote terminal message, destination address is the address CCO or the address STA；
When debugging message is simulation electric energy meter message, destination address is the address CCO or the address STA.
S102: access message packet is sent to access device by access interface.
S103: after access device receives access message, debugging message and access message header are assembled into power line carrier
S104: power line carrier data frame is sent to destination address carrier module by carrier network.
Carrier network is the communication network that CCO, STA are established by protocol of power line carrier communication.It can be with single-hop or multi-hop
It is transmitted.Access device is communicated using the modes such as TEI or special MAC Address of reservation by power line and CCO, STA.It protects
Staying TEI value is 1016 to 4094.TEI is Terminal Equipment Identifier.
S105: destination address carrier module receives after access device sends carrier data frame, parsing debugging message, and according to
Message content instruction is handled, such as reading power meters data, acquisition status information, setting state parameter, start flow etc..
After the completion of processing, construction debugging message, and assemble the response power line carrier data frame that destination address is access device address.
S106: response power line carrier data frame is sent to access device by carrier network.
S107: after access device receives response carrier data frame, debugging message part is assembled into access message.
S108: operating terminal is sent by access interface by access message.
S109: it after operating terminal receives access message, parses and handles debugging message.
Processing debugging message mode may include output, storage, parsing, analysis etc..Wherein, output includes directly soft in debugging
Explicit message content in part shows that table is shown to the image conversion after message content parsing.Storage includes storing in exporting
Storage is the formats such as text, image.Parsing includes converting message content to the field expression of practical significance.Analysis includes to message
Content carries out logic judgment, exports the possible cause of particular problem.
Specifically by taking remote command as an example, test content and result are described:
Serial ports is connected on the STA that TEI is 2, order is inputted in serial ports software:
As a result it exports:
Software : v1028
Build time : 2018-11-14
Remote command content is sent on the debugging software of operating terminal are as follows:
hpav cmd -tei=2 -cmd="version"
Indicate " version " command information for the sta that inquiry tei is 2.
It returns the result are as follows:
comand result from tei=2 seq=9:
Software : v1028
Build time : 2018-11-14
Indicate that the STA for being 2 from tei returns the result information.
Effect is the same with serial ports input version order output result is connected on the sta that tei is 2.
Further, it is not returned the result if sending above-mentioned remote command, can determine whether access device and TEI is 2
Between STA may communication efficiency is bad or TEI is 2 equipment there is no etc. reasons.
The present embodiment core concept is to construct Debugging message in operating terminal by a kind of method of virtual serial port, by
Debugging message is sent the purpose equipment in carrier network by access device, and purpose equipment is handled again after receiving Debugging message
And response.Site operation personnel is set to carry out debugging to carrier network from operating terminal in the case where not unpacking and examine automatically
It is disconnected, it is more easy-to-use and safe, greatly promote O&M efficiency.