CN102710483A - RS485 (Recommended Standard 485) intelligent loop - Google Patents

RS485 (Recommended Standard 485) intelligent loop Download PDF

Info

Publication number
CN102710483A
CN102710483A CN2012101582956A CN201210158295A CN102710483A CN 102710483 A CN102710483 A CN 102710483A CN 2012101582956 A CN2012101582956 A CN 2012101582956A CN 201210158295 A CN201210158295 A CN 201210158295A CN 102710483 A CN102710483 A CN 102710483A
Authority
CN
China
Prior art keywords
port
loop
node
state
transceiver
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
CN2012101582956A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2012101582956A priority Critical patent/CN102710483A/en
Publication of CN102710483A publication Critical patent/CN102710483A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an RS485 (Recommended Standard 485) intelligent loop applied to the industrial field control. The RS485 intelligent loop includes a host controller and several RS485 nodes. Two RS485 transceivers are arranged in the host controller, a loop control network is formed between two RS485 transceivers by connecting differential signal lines A and B; and each RS485 node is provided with an RS485 transceiver respectively connected with the differential signal lines A and B. In the structure of loop control line, two RS485 interfaces work simultaneously, and each node on the loop comprises four access states: a dual port state, a port-1 state, a port-2 state and a pending state. Since the loop is provided with pending state dynamic detection and recovery as well as loop fault detection and dynamic recovery, the RS485 intelligent loop is heavily applied to the industrial field, the continuous running ability of RS485 equipment in the industrial field is improved, and the rapid diagnosis ability of an RS485 bus in the industrial field is increased.

Description

A kind of RS485 intelligence loop
Technical field:
The present invention relates to circuit control, particularly a kind of RS485 intelligence loop that is applied to industry spot control.
Background technology:
Development along with on-the-spot industrial equipment intelligent digitalization; This several years field apparatuss begin to occur adopting bus communication control to substitute the trend of traditional hardwire control; And for improving the reliability of bus communication, the bus communication of field apparatus is also developing to looped network from single net.At the scene in the bus, RS485 is because characteristics such as cheap, stable performance and maturity height have obtained using widely.
The RS485 bus is a kind of universal serial bus, adopts differential signal on A, two lines of B, to transmit; The general twisted-pair feeder that adopts carries out differential transfer, so the ability of extremely strong anti-common mode disturbances is arranged, bus transceiver sensitivity is very high, can detect to be low to moderate 200mV voltage, so its length can reach more than the km.The general bus type structure that adopts the terminal coupling of RS-485 bus network topology.Promptly adopt a bus that each node is connected in series, do not support annular or Star Network.Use hub-and-spoke configuration if desired, just must use 485 repeaters or 485 hubs just can.General maximum 32 nodes of supporting of RS-485/422 bus if use 485 special chips, can reach 128 or 256 nodes, and maximum can support 400 nodes.
Though the bus of RS485 can not form a closed loop, can concentrate in together the two ends of bus, for any node on the bus, can conduct interviews respectively through the two ends of bus.
Below enumerate the concrete deficiency of pointing out prior art through two current schemes:
As shown in Figure 1, it is a kind of network of RS485 bus-type, and main frame connects all RS485 nodes 102 through one road A, B line.When break down in any point of A, B line, console controller 101 can only have access to the part of nodes before the fault point.
As shown in Figure 2, it is the loop network of a kind of RS485, and main frame connects all RS485 nodes 202 through one road A, B line, and the terminal of bus turns back to the RS485 transceiver 203 of console controller 201 simultaneously.Because RS485 is a kind of semiduplex network, the two-way RS485 signal on the controller need be switched by certain switching mechanism.Under this connected mode, when break down in any point in the loop, controller can switch bus through switch, the node from the other end access bus, and when the multiple spot fault occurring, middle node is with inaccessible.Under this mode, during Single Point of Faliure, the node on both sides, fault point can not be visited simultaneously.
Summary of the invention:
In view of above-mentioned technical problem, the invention provides a kind of RS485 intelligence loop that is applied to industry spot control.The structure of the control circuit of this loop shape adopts two RS485 interfaces to work simultaneously, and each node on the circuit all comprises four kinds of Access status: dual-port state, port one state, port 2 states, suspended state.Hang up node detection of dynamic and recovery because this loop is provided with, and loop fault detects and dynamic the recovery.Make it be widely used in industry spot, improved the continuous service ability of industry spot RS485 equipment, increased the quick diagnosis ability of industry spot RS485 bus.
Concrete technical scheme of the present invention is following:
A kind of RS485 intelligence loop comprises console controller and several RS485 nodes; It is characterized in that, be provided with two RS485 transceivers in the said console controller, form a ring control network network through connection A, two differential signal lines of B between two RS485 transceivers; Said each RS485 node be provided with one connect A, two differential signal lines of B respectively the RS485 transceiver.
In the such scheme, two RS485 transceiver any times in the said console controller all work simultaneously.
In the such scheme, when any RS485 transceiver port is in conventional transmission, accepting state in the said console controller, be called conventional port, another one must be in the monitoring accepting state, is called policing port; When conventional port carries out node traversal circulation time,, then represent loop fault if policing port is not received valid data; Otherwise the expression loop is normal.
In the such scheme; Said two transceiver port are carried out switching state when certain RS485 node can not be from certain transceiver port visit of main frame, and conventional port switches to policing port; Policing port switches the conventional port in position, and the conventional port after switching continues to attempt visit.
In the such scheme, said each RS485 node all has corresponding host transceiver port, comprises four kinds of states: dual-port, port one, port 2, hang-up; Said dual-port STA representation loop is in normal operating condition, and this node can be from any one port access of main frame; Said port one and port 2 expression loops have fault, and main frame can only be through this node of port access of appointment; Said suspended state representes that loop has the fault more than a place, and this node can not arrive through any port access of main frame.
In the such scheme, said after certain RS485 node gets into suspended state, after preset time/node scan cycle-index, attempt again the node of hanging up is scanned detection; Can, loop fault avoid node not scanned again when being repaired like this; When loop circuit state returned to normal loop circuit state, all nodes in the loop recovered the dual-port state.
RS485 of the present invention intelligence loop can be good at solving the problem that causes network failure after fault takes place in the current RS485 bus-network, has good castering action for the reliability of RS485 bus communication.
Description of drawings:
Further specify the present invention below in conjunction with accompanying drawing and embodiment.
Fig. 1 is the network configuration block diagram of existing a kind of RS485 bus-type.
Fig. 2 is the loop network mechanism block diagram of existing a kind of RS485.
Fig. 3 is the structured flowchart of RS485 intelligence loop of the present invention.
Fig. 4 is the state exchange schematic flow sheet of two ports of console controller among the present invention.
Fig. 5 is the port status schematic flow sheet of RS485 node among the present invention.
Fig. 6 is the port status flow path switch figure of RS485 node among the present invention.
Embodiment:
For technological means, creation characteristic that the present invention is realized, reach purpose and effect and be easy to understand and understand, below in conjunction with concrete diagram, further set forth the present invention.
As shown in Figure 3, RS485 intelligence loop of the present invention comprises console controller 301 and several RS485 nodes 302.Be provided with in the console controller between 303, two RS485 transceivers 303 of two RS485 transceivers and form a ring control network network through connection A, two differential signal lines of B; Each RS485 node be provided with one connect A, two differential signal lines of B respectively RS485 transceiver 304.
As shown in Figure 4, two of console controller any moment of transceiver all work simultaneously in the loop.At any time, when certain transceiver port of console controller is in conventional transmission, accepting state, be called conventional port 401, the another one transceiver must be in the monitoring accepting state, is called policing port 402.When conventional port carries out node traversal circulation time,, then represent loop fault if policing port is not received valid data; Otherwise the expression loop is normal.
When certain RS485 node can not be from certain transceiver port visit of main frame; Two transceiver port (host ports 1; Host port 2) carries out switching state; Conventional port 401 switches to policing port 403, and policing port 402 switches the conventional port 404 in position, and the conventional port after switching continues to attempt visit.
As shown in Figure 5, in console controller, each node on the bus all has corresponding host transceiver port, comprises four kinds of states: but double-port access 501, can visit 502 from port one, can be from port 2 visits 503, hang up 504.
But double-port access 501: the expression loop is in normal operating condition, and this node can be from any one port access of main frame.
Can visit 502 from port one and maybe can visit 503 from port 2: the expression loop has fault, and main frame can only be through the port of appointment, and promptly port one or port 2 are visited these RS485 nodes.
Hang up 504: the expression loop has the fault more than a place, and this node can not arrive through any port access of main frame.
As shown in Figure 6, in loop of the present invention, the detection of dynamic of hang-up node and the flow process of recovery are:
After certain RS485 node gets into suspended state, after preset time/node scan cycle-index, attempt again the node of hanging up is scanned detection.Can, loop fault avoid node not scanned again when being repaired like this.When loop circuit state returned to normal loop circuit state, all nodes in the loop recovered the dual-port state.
In addition, at loop of the present invention, its fault detect is following with the flow process of dynamically recovering:
Port status according to all nodes in the loop: when fault takes place, fault location point easily.When the loop Single Point of Faliure, all nodal operations can not be affected, and just the port status of each node is different.When loop multiple spot fault, can not be affected apart from the nodal operation within two nearest fault points of main frame on the loop; All the other nodes get into suspended state.When loop fault partly recovered, the testing mechanism again of node can reintegrate scan list to node; When the loop fault full recovery, all nodes are all included scan list immediately in.
More than show and described basic principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; The present invention is not restricted to the described embodiments; That describes in the foregoing description and the specification just explains principle of the present invention; Under the prerequisite that does not break away from spirit and scope of the invention, the present invention also has various changes and modifications, and these variations and improvement all fall in the scope of the invention that requires protection.The present invention requires protection range to be defined by appending claims and equivalent thereof.

Claims (6)

1. a RS485 intelligence loop comprises console controller and several RS485 nodes; It is characterized in that, be provided with two RS485 transceivers in the said console controller, form a ring control network network through connection A, two differential signal lines of B between two RS485 transceivers; Said each RS485 node be provided with one connect A, two differential signal lines of B respectively the RS485 transceiver.
2. according to the RS485 of claim 1 intelligence loop, it is characterized in that two RS485 transceiver any times in the said console controller all work simultaneously.
3. according to the intelligent loop of the RS485 of claim 1; It is characterized in that, when any RS485 transceiver port is in conventional transmission, accepting state in the said console controller, be called conventional port; Another one must be in the monitoring accepting state, is called policing port; When conventional port carries out node traversal circulation time,, then represent loop fault if policing port is not received valid data; Otherwise the expression loop is normal.
4. according to the intelligent loop of the RS485 of claim 1; It is characterized in that; Said two transceiver port are carried out switching state when certain RS485 node can not be from certain transceiver port visit of main frame, and conventional port switches to policing port; Policing port switches the conventional port in position, and the conventional port after switching continues to attempt visit.
5. according to the RS485 intelligence loop of claim 1, it is characterized in that said each RS485 node all has corresponding host transceiver port, comprises four kinds of states: dual-port, port one, port 2, hang-up; Said dual-port STA representation loop is in normal operating condition, and this node can be from any one port access of main frame; Said port one and port 2 expression loops have fault, and main frame can only be through this node of port access of appointment; Said suspended state representes that loop has the fault more than a place, and this node can not arrive through any port access of main frame.
6. according to the RS485 of claim 1 intelligence loop, it is characterized in that, said after certain RS485 node gets into suspended state, after preset time/node scan cycle-index, attempt again the node of hang-up is scanned detection; Can, loop fault avoid node not scanned again when being repaired like this; When loop circuit state returned to normal loop circuit state, all nodes in the loop recovered the dual-port state.
CN2012101582956A 2012-05-21 2012-05-21 RS485 (Recommended Standard 485) intelligent loop Pending CN102710483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101582956A CN102710483A (en) 2012-05-21 2012-05-21 RS485 (Recommended Standard 485) intelligent loop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101582956A CN102710483A (en) 2012-05-21 2012-05-21 RS485 (Recommended Standard 485) intelligent loop

Publications (1)

Publication Number Publication Date
CN102710483A true CN102710483A (en) 2012-10-03

Family

ID=46903053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101582956A Pending CN102710483A (en) 2012-05-21 2012-05-21 RS485 (Recommended Standard 485) intelligent loop

Country Status (1)

Country Link
CN (1) CN102710483A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326911A (en) * 2013-07-03 2013-09-25 富盛科技股份有限公司 Self healing ring RS485 bus structure with short circuit and circuit break prevention
CN109993958A (en) * 2019-05-08 2019-07-09 深圳市共济科技股份有限公司 A kind of data collection system and method for RS485 bus
CN110034991A (en) * 2019-04-12 2019-07-19 香江科技股份有限公司 A kind of loop network based on RS485 bus
CN110650074A (en) * 2019-10-28 2020-01-03 河北远方测控技术有限公司 Fault point positioning and isolating method based on annular communication loop
CN112737912A (en) * 2021-01-05 2021-04-30 安瑞科(廊坊)能源装备集成有限公司 485 bus system and fault diagnosis method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079782A (en) * 2007-06-27 2007-11-28 四川东方电气自动控制工程有限公司 Wind site communication network using dual loop redundancy
WO2011011915A1 (en) * 2009-07-29 2011-02-03 华为技术有限公司 Data communication method, communication equipment and communication system
US20120025717A1 (en) * 2009-04-09 2012-02-02 Koninklijke Philips Electronics N.V. Intelligent lighting control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079782A (en) * 2007-06-27 2007-11-28 四川东方电气自动控制工程有限公司 Wind site communication network using dual loop redundancy
US20120025717A1 (en) * 2009-04-09 2012-02-02 Koninklijke Philips Electronics N.V. Intelligent lighting control system
WO2011011915A1 (en) * 2009-07-29 2011-02-03 华为技术有限公司 Data communication method, communication equipment and communication system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326911A (en) * 2013-07-03 2013-09-25 富盛科技股份有限公司 Self healing ring RS485 bus structure with short circuit and circuit break prevention
CN103326911B (en) * 2013-07-03 2016-06-08 富盛科技股份有限公司 A kind of against short-circuit, open circuit spontaneous recovery annular RS485 bus structures
CN110034991A (en) * 2019-04-12 2019-07-19 香江科技股份有限公司 A kind of loop network based on RS485 bus
CN109993958A (en) * 2019-05-08 2019-07-09 深圳市共济科技股份有限公司 A kind of data collection system and method for RS485 bus
CN110650074A (en) * 2019-10-28 2020-01-03 河北远方测控技术有限公司 Fault point positioning and isolating method based on annular communication loop
CN112737912A (en) * 2021-01-05 2021-04-30 安瑞科(廊坊)能源装备集成有限公司 485 bus system and fault diagnosis method thereof

Similar Documents

Publication Publication Date Title
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
US7940645B2 (en) Protection switching method based on change in link status in ethernet link aggregation sublayer
CN102710483A (en) RS485 (Recommended Standard 485) intelligent loop
CN102007729A (en) Connectivity fault management traffic indication extension
CN104243239B (en) The condition detection method and device of controller in a kind of SDN clusters
CN101378333B (en) System, apparatus and method for transmitting and receiving check information message continuously
CN103107940B (en) For the redundant gateway system of device level looped network
CN107453849A (en) Power distribution communication network wire link and the mutually standby interlock method of Radio Link and system, vacant lot are mutually for integrated apparatus
CN103401707A (en) Link aggregation method and access equipment
CN105379201A (en) Path switching method and device
CN101714939A (en) Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network
CN105227456B (en) A kind of aggregated link failures restore the method and device of transmission
CN102457403A (en) Method and device for detecting network connection faults
CN101547131B (en) EAPS looped network single-channel fault location and protection method
CN102932183A (en) Double-up link failure processing method and device
CN101360050B (en) Method and apparatus setting flow control mode
JP6190281B2 (en) Relay system and switch device
CN102710618A (en) Device for protocol conversion from Ethernet to RS485 field bus
US9225667B2 (en) Communication system and network relay apparatus
CN101674201B (en) Method for actively triggering active standby switch of Ethernet switch clustering
CN101141367A (en) Method, system and node equipment for improving dependability of fast looped network
CN106411616B (en) A kind of device and method by 1553B bus management ethernet terminal
CN108574648A (en) A kind of industrial ethernet switch
CN110838994B (en) Link state monitoring method of redundant Ethernet based on broadcast protocol
CN109088753B (en) Circuit and method for automatically detecting RS485 communication fault

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20121003

RJ01 Rejection of invention patent application after publication