CN103634187A - HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function - Google Patents

HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function Download PDF

Info

Publication number
CN103634187A
CN103634187A CN201310641486.2A CN201310641486A CN103634187A CN 103634187 A CN103634187 A CN 103634187A CN 201310641486 A CN201310641486 A CN 201310641486A CN 103634187 A CN103634187 A CN 103634187A
Authority
CN
China
Prior art keywords
communication
hdlc
loop self
healing function
message
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.)
Pending
Application number
CN201310641486.2A
Other languages
Chinese (zh)
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.)
XJ Electric Co Ltd
Original Assignee
XJ Electric 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 XJ Electric Co Ltd filed Critical XJ Electric Co Ltd
Priority to CN201310641486.2A priority Critical patent/CN103634187A/en
Publication of CN103634187A publication Critical patent/CN103634187A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to an HDLC (high-level data link control) communication method capable of implementing a closed-loop self-healing function, and belongs to the technical field of data communication. The HDLC communication method includes enabling communication hosts to transmit communication verification messages to one another at regular time so as to determine whether communication channels are normal or not; transmitting fault resetting instructions to opposite ends via other communication channels when receiving function faults occur at an optional end; performing restarting resetting operation on transmitting modules so as to reestablish communication connection after the opposite ends receive the resetting instructions. The HDLC communication method has the advantages that the problem of loss of data due to the fact that self-resetting cannot be carried out after faults of communication channels occur in existing HDLC communication procedures can be solved, the communication reliability can be improved, and the stability of a high-voltage direct-current power transmission valve control system for implementing the HDLC communication method can be improved.

Description

A kind of HDLC communication means with closed loop self-healing function
Technical field
The present invention relates to a kind of HDLC communication means with closed loop self-healing function, belong to data communication technology field.
Background technology
Converter valve is the key equipment of HVDC (High Voltage Direct Current) transmission system, and valve control system is the control & monitor equipment of converter valve, and the reliable and stable work of valve control system is the guarantee of converter valve stable operation.To whole system, stable operation has material impact to the reliable data communication of valve control system internal stability.The HDLC communication mode that direct current transportation valve control system adopts is at present all that open loop is without feedback, after there is receive path communication failure, cannot self-resetting, easily cause loss of data, can only find that laggard pedestrian is processing, is unfavorable for the stable operation of system by operator on duty.
Summary of the invention
The object of this invention is to provide a kind of HDLC communication means with closed loop self-healing function, to solve current HDLC communication process in the data loss problem that occurs that communication port cannot self-resetting be caused after breaking down.
The present invention provides a kind of HDLC communication means with closed loop self-healing function for solving the problems of the technologies described above, communication system that this communication means adopts comprises at least two communication hosts, the sendaisle of every communication host and receive path are passage independently, between communication host, regularly send mutually communication message, when there is receiving function fault in any one end, by its sendaisle, to opposite end, send failure reset instruction, opposite end is after receiving reset instruction, reset operation is restarted to its sending module in opposite end, to re-establish communication connection.
Described transmitting terminal all adds check code in all communication messages, and receiving terminal judges that by check code whether the message receiving is correct, thereby confirms that whether communication port is normal.
Described check code is parity check code or CRC check code.
Described failure reset instruction is added in communication message, with the form of message, sends.
The HDLC communication gradation structure that described communication means is used comprises physical layer, data link layer and application layer, wherein physical layer adopts optical fiber as transmission medium, data link layer adopts standard HDLC agreement, the transmitting-receiving of using FPGA to complete data flow is controlled, and application layer adopts MCU microprocessor to communicate the processing of data.
The invention has the beneficial effects as follows: the present invention is by regularly sending mutually on the same stage communication checking prediction message between communication host, to confirm that whether communication port is normal, when there is receiving function obstacle in any one end, by another communication port, to opposite end, send failure reset instruction, reset operation is restarted to sending module in opposite end after receiving reset instruction, to re-establish communication connection.Therefore the invention solves current HDLC communication process in the data loss problem that occurs cannot self-resetting causing after communication port breaks down, improved the reliability of communication, for for voltage direct-current transmission valve control system of the present invention, strengthened the stability of system.
Accompanying drawing explanation
Fig. 1 is two ends of the present invention communication host HDLC connection diagrams;
Fig. 2 is the HDLC communication mode schematic diagram of network-type;
Fig. 3 is the communication gradation structural representation that the present invention adopts;
Fig. 4 is communication failure process chart in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described.
Fig. 1 is the HDLC communication connection schematic diagram between the communication host of two ends, there are three holding wires between the two, be respectively clock Clk, link 1 and link 2, wherein Clk clock is produced by host A, and host A and substation B are all used this clock signal as the synchronised clock of sending and receiving; Link 1 is the data transmitting channel of host A to substation B; Link 2 is the data transmitting channel of substation B to host A.Fig. 3 is HDLC communication gradation structural representation used in the present invention, and three-decker, is respectively physical layer, data link layer and application layer.Wherein physical layer adopts optical fiber as transmission medium; Data link layer adopts standard HDLC agreement, and the transmitting-receiving of using FPGA to complete data flow is controlled; Application layer adopts MCU microprocessor to communicate the processing of data.In order to ensure the reliability of transfer of data, in practical application, generally all can in HDLC communication, add various verifying functions, such as parity check, CRC check etc., this specification adopts CRC check.
The present invention all adds CRC check code in all communication messages by transmitting terminal, receiving terminal recalculates CRC check code after receiving a frame complete message, and contrasts with the CRC check code from transmitting terminal, and whether the message receiving in order to judgement is correct; Between two communication hosts, regularly send mutually communication check message, for confirming the whether normal of communication port; When there is receiving function fault in any one end, to opposite end, send failure reset instruction, reset operation, after receiving reset instruction, is restarted to sending module in opposite end, to re-establish communication connection.
Embodiment
The present embodiment adopts two communication hosts shown in Fig. 1, and link 1 is the data transmitting channel of host A to substation B; Link 2 is the data transmitting channel of substation B to host A, and link 1 channel failure of take below illustrates the realization of closed loop self-healing communication function as example, and as shown in Figure 4, the processing mode of link 2 channel failures is identical with link 1 troubleshooting mode for idiographic flow.
The message length that host A sends to substation B is 15 bytes, wherein head and the tail two bytes are for starting and count flag, the 2nd byte~11st byte is effective message content, the 12nd byte is failure reset command byte, 0x00 represents that reset instruction is invalid, 0xAA represents that reset instruction is effective, and the 13/14th byte is the high low byte to the CRC check code of front 12 bytes calculating, and the concrete form of message is as shown in the table.
Figure BDA0000428316250000031
Effective byte content in message has reflected the state variation event in host A running, when the stable stateless change events of host A, fill wherein other guide and form the communication check message regularly sending to substation B, to guarantee that link 1 is all the time in active state, equally, substation B also regularly sends communication message to host A according to above-mentioned form and rule.
Front 12 bytes to the communication message from host A receiving in the MCU of substation B software recalculate CRC check code, and carry out comparison check with the 13/14th byte in message, if both unanimously, think that link 1 is normal, if continuous several times occurs that both are inconsistent, think link 1 fault.In addition, if substation B ultrasonic is crossed a specified time, do not have to receive the communication message from host A, think link 1 fault yet.While there is link 1 fault, the 12nd byte failure reset instruction in the communication message that substation B sends to host A by link 2 will be set to effective value 0xAA, when host A detects the 12nd byte value from the communication message of substation B and is 0xAA, by the reset reboot operation to link 1 sending module, to recover proper communication function.
In like manner, when there is link 2 fault, host A also can be set to the failure reset instruction in the message sending to substation B effectively, substation B after this active homing instruction being detected to the link 2 sending modules reboot operation that resets, to recover the proper communication function of link 2.By the mode of this mutual supervision, realized the HDLC communication mode of the closed loop self-healing function between two ends.
Fig. 2 is the HDLC communication mode of network-type, and its HDLC Communications Processor Module inside is also divided into a plurality of independent sub-processing modules, and the essence of its communication process is the same with the communication process in Fig. 1, no longer describes in detail here.

Claims (5)

1. a HDLC communication means with closed loop self-healing function, it is characterized in that, communication system that this communication means adopts comprises at least two communication hosts, the sendaisle of every communication host and receive path are passage independently, between communication host, regularly send mutually communication message, when there is receiving function fault in any one end, by its sendaisle, to opposite end, send failure reset instruction, opposite end is after receiving reset instruction, reset operation is restarted to its sending module in opposite end, to re-establish communication connection.
2. the HDLC communication means with closed loop self-healing function according to claim 1, it is characterized in that, described transmitting terminal all adds check code in all communication messages, and receiving terminal judges that by check code whether the message receiving is correct, thereby confirms that whether communication port is normal.
3. the HDLC communication means with closed loop self-healing function according to claim 2, is characterized in that, described check code is parity check code or CRC check code.
4. the HDLC communication means with closed loop self-healing function according to claim 2, is characterized in that, described failure reset instruction is added in communication message, with the form of message, sends.
5. the HDLC communication means with closed loop self-healing function according to claim 2, it is characterized in that, the HDLC communication gradation structure that described communication means is used comprises physical layer, data link layer and application layer, wherein physical layer adopts optical fiber as transmission medium, data link layer adopts standard HDLC agreement, the transmitting-receiving of using FPGA to complete data flow is controlled, and application layer adopts MCU microprocessor to communicate the processing of data.
CN201310641486.2A 2013-12-02 2013-12-02 HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function Pending CN103634187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310641486.2A CN103634187A (en) 2013-12-02 2013-12-02 HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310641486.2A CN103634187A (en) 2013-12-02 2013-12-02 HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function

Publications (1)

Publication Number Publication Date
CN103634187A true CN103634187A (en) 2014-03-12

Family

ID=50214834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310641486.2A Pending CN103634187A (en) 2013-12-02 2013-12-02 HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function

Country Status (1)

Country Link
CN (1) CN103634187A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306289A (en) * 2014-06-27 2016-02-03 中兴通讯股份有限公司 Method and device for improving reliability of multi-module devices, and client terminal device
CN106547263A (en) * 2015-09-18 2017-03-29 惠州市德赛西威汽车电子股份有限公司 The communication failure self-picketing correction method of automobile instrument system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306289A (en) * 2014-06-27 2016-02-03 中兴通讯股份有限公司 Method and device for improving reliability of multi-module devices, and client terminal device
CN106547263A (en) * 2015-09-18 2017-03-29 惠州市德赛西威汽车电子股份有限公司 The communication failure self-picketing correction method of automobile instrument system

Similar Documents

Publication Publication Date Title
CN104516334B (en) One is disrupter closed loop control system and control method thereof just oppositely
CN205068381U (en) A secure computer platform for track traffic
CN104440923B (en) A kind of emergent stop signal control system for robot and robot thereof
CN104486128B (en) A kind of system and method for realizing redundancy heartbeat between dual controller node
CN106301840B (en) Method and device for sending Bidirectional Forwarding Detection (BFD) message
CN105072021A (en) Cross-segment message forwarding method for dispatching automation systems
CN103795518A (en) Method, device, and system for synchronizing port modes between devices
CN103825764A (en) Data collecting instrument monitoring system based on cloud calculation and method for enhancing communication stability of data collecting instrument monitoring system based on cloud calculation
CN103997533B (en) A kind of dynamic terminal long-distance maintenance method based on wireless network
CN104485737A (en) Graded exit control method for intelligent terminal of intelligent substation
CN104320224A (en) Reliable communication method based on 1553B bus
CN103401748A (en) Shield machine hot standby control system and method
CN105426171A (en) Synchronization and switching method and system for multiple two-out-of-two systems
CN103634187A (en) HDLC (high-level data link control) communication method capable of implementing closed-loop self-healing function
CN102098174A (en) Safety communication method and system for power grid monitoring system
CN103441880A (en) Method for preventing data from being lost for system having data access with IEC61859 intelligent device during switching of main system and standby system
CN105681083A (en) Network switch monitoring system based on cloud computing
CN209676257U (en) A kind of intelligent station based on HSR looped network is across interval protection system
WO2014048129A1 (en) Indicating message sending method, indicating message receiving method, device and system
CN102819252B (en) Method for realizing multi-redundancy of process control station in distributed control system
CN107623330B (en) Control method of valve base control system
CN104993571A (en) Double-machine hot standby method of generating control device
CN104270374A (en) Method and system of JMS cross forward isolating device
CN103595492B (en) CDT channel fault alarm system
CN104081728A (en) Network management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140312

WD01 Invention patent application deemed withdrawn after publication