CN102169473B - Method and device for detecting and isolating occupation faults of RS (Recommended Standard) 485 bus with low cost - Google Patents
Method and device for detecting and isolating occupation faults of RS (Recommended Standard) 485 bus with low cost Download PDFInfo
- Publication number
- CN102169473B CN102169473B CN 201110101425 CN201110101425A CN102169473B CN 102169473 B CN102169473 B CN 102169473B CN 201110101425 CN201110101425 CN 201110101425 CN 201110101425 A CN201110101425 A CN 201110101425A CN 102169473 B CN102169473 B CN 102169473B
- Authority
- CN
- China
- Prior art keywords
- circuit
- transistor
- bus
- gate
- parallel
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 239000003990 capacitor Substances 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 7
- 238000002955 isolation Methods 0.000 claims description 4
- 101100489713 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GND1 gene Proteins 0.000 claims description 3
- 238000013461 design Methods 0.000 abstract description 7
- 230000008901 benefit Effects 0.000 abstract description 4
- 238000012545 processing Methods 0.000 abstract description 2
- 239000013078 crystal Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005672 electromagnetic field Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000009885 systemic effect Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention relates to a method and a device for detecting and isolating the occupation faults of an RS (Recommended Standard) 485 bus with low cost, in particular to a method and device for judging and processingthe occupation bus of a 485 hub. A PWM (Pulse Width Modulation) circuit, a NOT gate and a transistor are adopted at each RS485 node; and when a descending RS485 receives a data packet more than 200 bytes or exceeding 3 minutes, the corresponding RS485 node is turned off. In the invention, a hardware circuit is used for completing the method for judging and isolating the occupation bus faults of the 485 node. The invention has the advantages of brief design, accurate fault judgment, rapid processing as well as convenient popularization and application.
Description
Technical field
The present invention relates to the robotization digital communicating field, specifically a kind of judgement and disposal route and device thereof that 485 hubs is taken bus.
Background technology
In automatic field, along with the development of dcs, can be fit to remote digital communication in the urgent need to a kind of bus.On the basis of RS-422 standard, EIA has worked out a kind of support multinode, remote and receive highly sensitive RS-485 bus standard.
The RS-485 standard adopts balanced type to send, the data collector that differential type receives drives bus, and the maximum transmission distance of bus reaches 1200m, and maximum node number is 32, and the electromagnetic environment to complexity has good antijamming capability, has been widely used in the various automation control systems.
The general main many bus type structures from the terminal coupling that adopt of 485 network topologies are not supported annular or star network, preferably adopt a bus that each node is connected in series.The advantage of bus type topological structure is simple in structure, and extendability is good, in case shortcoming is certain node failure on the bus, takies bus, will cause whole 485 systemic breakdowns, and the isolating power of fault is poor.
For promoting the trouble isolation serviceability of 485 buses, strengthen 485 Systems balanths, 485 hubs (HUB) arise at the historic moment.
The RS-485 hub refers to aim at the RS-485 bus that solves the large system requirements of RS-485 bus under the complicated electromagnetic field environment and design and cuts apart concentrator (485hub).More flexibly RS-485 star bus structure can be provided, the input of RS-485 interface, output terminal all adopt the drive mode, the single formula structure that changes original bus is the Star Network structure, can bring great benefit to engineering construction and Systems balanth.
Take bus failure and refer to that certain node is violated the bus service regeulations on the bus, send data to bus for a long time, cause bus to be taken by this malfunctioning node, cause the paralysis of this circuit.In the star-shaped network structure that uses 485 hubs, this circuit should be isolated, in order to keep the communication robust of other circuit.
485 traditional hubs for the judgement that takies bus failure and processing, generally adopt software mode, use the program in the microprocessor, all 485 circuits are monitored, and fault is processed.This mode designs comparatively complicated, and cost is higher.
Summary of the invention
The present invention relates to method and device thereof that low-cost detecting and isolation RS 485 bus take fault, it utilizes hardware circuit to finish judgement and partition method that 485 nodes take bus failure, and design is succinct, and the fault accuracy of judgement is processed rapidly, is convenient to promote and use.
The technology of the present invention solution is to have adopted at each RS485 Nodes to comprise pulse width modulation (PWM) circuit, not gate and crystal, when descending RS485 receives greater than 200 bytes and/or surpasses 3 minutes packet, corresponding RS485 node is turn-offed.
Use the device of the above method, it is characterized in that being provided with fault monitoring circuit at the RS485 Nodes, described fault monitoring circuit includes:
RS485 input circuit place is connected with the emitter terminal of the first transistor Q4 of base stage band supply voltage 3 ~ 6V, first capacitor C 25 in parallel with the first transistor Q4 collector, first resistance R 36 in parallel with the first capacitor C 25 output terminals, the pulse width modulation (PWM) circuit that described the first transistor Q4, the first capacitor C 25 and the first resistance R 36 form, the first not gate U16D that this pwm circuit output terminal connects;
Described the first not gate U16D output terminal be connected by transistor seconds Q5 base stage, the collector of transistor seconds Q5 is parallel with the charging circuit resistance R 30 of band supply voltage 3 ~ 6V and the input circuit of the second not gate U16C, the emitter of transistor seconds Q5 is connected with charging circuit capacitor C 24, and described charging circuit capacitor C 24 output terminals are connected in parallel on the input circuit of the second not gate U16C;
The output circuit of described the second not gate U16C is parallel with the base stage of main communication pilot lamp (RED) and the 3rd transistor Q3, the collector of the 3rd transistor Q3 is in parallel with RS485 bus input circuit and ground wire GND1, and the emitter of the 3rd transistor Q3 is connected with left communication pilot lamp (GREEN).
The invention has the advantages that:
1, this method and device design are succinct.
2, the present invention mainly processes when abnormal conditions appear in packet, and energy is failure judgement accurately, and processes rapidly.
3, in the design to 485 hubs of cost sensitivity, to realize the 485 hubs design of complete Hardware, cost is lower, the market competitiveness of improving product.
Description of drawings
Fig. 1 is 485 fault monitoring circuit schematic diagrams of the present invention.
Embodiment
Adopted at each RS485 Nodes to comprise pulse width modulation (PWM) circuit, not gate and crystal, when descending RS485 receives greater than 200 bytes and/or surpasses 3 minutes packet, corresponding RS485 node has been turn-offed.
According to the device that uses embodiment 1 method shown in Figure 1, it is provided with fault monitoring circuit at the RS485 Nodes, and described fault monitoring circuit includes:
RS485 input circuit place is connected with the emitter terminal of the first transistor Q4 of base stage band supply voltage 3 ~ 6V, first capacitor C 25 in parallel with the first transistor Q4 collector, first resistance R 36 in parallel with the first capacitor C 25 output terminals, the pulse width modulation (PWM) circuit that described the first transistor Q4, the first capacitor C 25 and the first resistance R 36 form, the first not gate U16D that this pwm circuit output terminal connects;
Described band supply voltage 3 ~ 6V the first not gate U16D output terminal be connected by transistor seconds Q5 base stage, the collector of transistor seconds Q5 is parallel with the charging circuit resistance R 30 of band supply voltage 3 ~ 6V and the input circuit of the second not gate U16C, the emitter of transistor seconds Q5 is connected with charging circuit capacitor C 24, and described charging circuit capacitor C 24 output terminals are connected in parallel on the input circuit of the second not gate U16C;
The output circuit of described band supply voltage 3 ~ 6V the second not gate U16C is parallel with the base stage of main communication pilot lamp (RED) and the 3rd transistor Q3, the collector of the 3rd transistor Q3 is in parallel with RS485 bus input circuit and ground wire GND1, and the emitter of the 3rd transistor Q3 is connected with left communication pilot lamp (GREEN).
Normal operation is analyzed:
Under the original state, a point remains high level, the Q4 cut-off, and the b place is low level, through the not gate upset, the Q5 conducting, the c point is low level, and through not gate, the d point is high level, and D13(RED) red light does not work.When receiving descending RS485 normal data packet (normal data packet generally is no more than 200 bytes), b point RC circuit has time-delay and keeps function, when Data flipping, b point current potential can keep the level of data, therefore, when a receives descending RS485 data for " 0 ", the d point is high for " 1 " namely keeps level, at this moment, and the Q3 conducting, guarantee that descending RS485 data return the e point, return to up RS485.Simultaneously, D13(GREEN) green light flicker, D13(RED) red light does not work, expression data normal communication.
Take bus situation analysis (when breaking down):
When RS485 takies bus (packet constantly sends above 3 minutes), the a point constantly receives descending RS485 data, at this moment, Q4, C25, R36 is equal to and forms a pwm circuit, b point current potential is constantly raised in time, and keep certain voltage (in the not gate input high level scope), through behind the door non-, the Q5 cut-off, R30, C24 forms the RC charging circuit, and the c point voltage increases in time and increases, when arriving the threshold values of not gate upset, (arrive the time of threshold values by R30, C24 determines), the d point is low level, and D13(RED) when red represents that the descending RS485 of this passage takies bus.Simultaneously Q3 cut-off, the data of descending RS485 are turned off, and can't arrive the e point, have therefore played the effect of shielding isolated fault, and do not affect the work of the descending RS485 interface of other passage.
Embodiment 3
Identical with embodiment 2, just the supply voltage of the first transistor Q4 base stage is 5V, the supply voltage 5V of the collector of transistor seconds Q5, the supply voltage 5V of the first not gate U16D, the supply voltage 5V of the second not gate U16C.
Claims (2)
1. a detecting and isolation RS 485 bus take the device of fault, it is characterized in that being provided with fault monitoring circuit at the RS485 Nodes, and described fault monitoring circuit includes:
RS485 input circuit place is connected with the emitter terminal of the first transistor Q4 of base stage band supply voltage 3 ~ 6V, first capacitor C 25 in parallel with the first transistor Q4 collector, first resistance R 36 in parallel with the first capacitor C 25 output terminals, the pulse width modulation (PWM) circuit that described the first transistor Q4, the first capacitor C 25 and the first resistance R 36 form, the first not gate U16D that this pwm circuit output terminal connects;
Described the first not gate U16D output terminal be connected by transistor seconds Q5 base stage, the collector of transistor seconds Q5 is parallel with the charging circuit resistance R 30 of band supply voltage 3 ~ 6V and the input circuit of the second not gate U16C, the emitter of transistor seconds Q5 is connected with charging circuit capacitor C 24, and described charging circuit capacitor C 24 output terminals are connected in parallel on the input circuit of the second not gate U16C;
The output circuit of described the second not gate U16C is parallel with the base stage of main communication pilot lamp (RED) and the 3rd transistor Q3, the collector of the 3rd transistor Q3 is in parallel with RS485 bus input circuit and ground wire GND1, and the emitter of the 3rd transistor Q3 is connected with left communication pilot lamp (GREEN).
2. the using method of the described device of claim 1, it is characterized in that having adopted at each RS485 Nodes and comprise pulse width modulation (PWM) circuit, not gate and transistor, when descending RS485 receives greater than 200 bytes or surpasses 3 minutes packet, corresponding RS485 node is turn-offed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110101425 CN102169473B (en) | 2011-04-22 | 2011-04-22 | Method and device for detecting and isolating occupation faults of RS (Recommended Standard) 485 bus with low cost |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110101425 CN102169473B (en) | 2011-04-22 | 2011-04-22 | Method and device for detecting and isolating occupation faults of RS (Recommended Standard) 485 bus with low cost |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102169473A CN102169473A (en) | 2011-08-31 |
CN102169473B true CN102169473B (en) | 2013-02-13 |
Family
ID=44490637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110101425 Expired - Fee Related CN102169473B (en) | 2011-04-22 | 2011-04-22 | Method and device for detecting and isolating occupation faults of RS (Recommended Standard) 485 bus with low cost |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102169473B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095509A (en) * | 2011-10-27 | 2013-05-08 | 贵州英特利智能控制工程研究有限责任公司 | Method for quickly testing recommended standard 485 (RS485) bus breakdown |
CN103559109A (en) * | 2013-05-22 | 2014-02-05 | 广东迅通科技股份有限公司 | Automatic detecting system of security GPS (global positioning system) positioning device |
CN112615761B (en) * | 2020-12-18 | 2022-05-31 | 杭州和利时自动化有限公司 | Bus monitoring system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2456384Y (en) * | 2000-12-12 | 2001-10-24 | 深圳汉光电子技术有限公司 | Communication network wire concentrater for RS485 bus |
CN2657297Y (en) * | 2003-10-13 | 2004-11-17 | 华为技术有限公司 | RS 485 bus receiving-transmitting controller |
CN1655202A (en) * | 2004-08-09 | 2005-08-17 | 大连大学 | RS485+I multiple analog signal bus transmitter |
-
2011
- 2011-04-22 CN CN 201110101425 patent/CN102169473B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2456384Y (en) * | 2000-12-12 | 2001-10-24 | 深圳汉光电子技术有限公司 | Communication network wire concentrater for RS485 bus |
CN2657297Y (en) * | 2003-10-13 | 2004-11-17 | 华为技术有限公司 | RS 485 bus receiving-transmitting controller |
CN1655202A (en) * | 2004-08-09 | 2005-08-17 | 大连大学 | RS485+I multiple analog signal bus transmitter |
Also Published As
Publication number | Publication date |
---|---|
CN102169473A (en) | 2011-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205158041U (en) | Intelligent storage situation of networking detects control system | |
CN102629419A (en) | Fault detection device for LED traffic lights | |
CN202720785U (en) | Fault detection apparatus for LED traffic lights | |
CN102169473B (en) | Method and device for detecting and isolating occupation faults of RS (Recommended Standard) 485 bus with low cost | |
CN105099506A (en) | Electric energy meter RS485 communication failure detecting and self-healing device and method | |
CN106452956B (en) | A kind of Homeplug dormancy wake-up testing system and test method | |
CN103278868A (en) | Automated weather station system with fault self-diagnostic and self-recovery function | |
CN105720690A (en) | Intelligent circuit breaker communication networking system | |
CN107481541B (en) | Signal lamp line lap joint fault detection method | |
CN102681500B (en) | System and method for solar intelligent monitoring | |
CN102411114A (en) | Device and method for automatically detecting short circuit and disconnection of wire harnesses of rotary drilling rig | |
CN203882449U (en) | Operating state monitoring and fault warning device for traffic signal lamp | |
CN104007368B (en) | High-voltage electric wire fault detecting system and method based on CAN bus | |
CN205844850U (en) | A kind of electric power letter logical fortune inspection communications equipment room detecting system | |
CN202331806U (en) | Independent fault detection and processing circuit of intelligent traffic signal controller | |
CN201694209U (en) | Remote monitoring apparatus of railway signal equipment | |
CN205336273U (en) | Electric energy meter RS485 communication fault detects device of self -healing | |
CN104391756A (en) | Chain SVG (Scalable Vector Graphics) fault-grading fault-tolerant processing method based on multi-channel serial communication | |
CN204065791U (en) | Based on the air lock automatic control system of wireless sensor network | |
CN203104028U (en) | Ad hoc battery monitoring micro unit | |
CN105425780A (en) | Bus fault self-diagnosis device | |
CN204669312U (en) | A kind of distributed photovoltaic power failure checkout gear | |
CN203398748U (en) | Multiple fault detection and protection device of bus | |
CN108923379B (en) | Overcurrent and open-phase line breakage measurement and control system of electric automobile charging line | |
CN204423643U (en) | Communication learning type count-down device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130213 |