CN103929328B - A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically - Google Patents
A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically Download PDFInfo
- Publication number
- CN103929328B CN103929328B CN201410107390.2A CN201410107390A CN103929328B CN 103929328 B CN103929328 B CN 103929328B CN 201410107390 A CN201410107390 A CN 201410107390A CN 103929328 B CN103929328 B CN 103929328B
- Authority
- CN
- China
- Prior art keywords
- sensor
- loop
- control system
- chain rupture
- passage
- 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
Landscapes
- Testing Or Calibration Of Command Recording Devices (AREA)
- Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
Abstract
The invention discloses a kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically; pass through the switching of two-way converting switch device; double way data acquisition can be carried out; the particular location of chain rupture or the specific region of chain rupture can be accurately judged to by realizing the redundancy protecting of sensor network data collection; effectively reduce the cost of temp testing controlling system, reduce the maintenance difficulties of temp testing controlling system, improve the maintenance efficiency of temp testing controlling system.The invention also discloses a kind of method and apparatus of monobus temp testing controlling system chain rupture redundancy protecting.
Description
Technical field
The present invention relates to 1-wire temperature sensor multi-point temperature measurement control technology, specifically a kind of monobus thermometric control system
The method that system chain rupture is diagnosed automatically.
Background technology
In the field of manufacturing, 1-wire temperature sensor multi-point temperature measurement control system is widely used in silo, wine brewing
The places such as factory, food processing factory, greenhouse, large-scale precision measuring instrument.For example DS18B20 temperature sensors are typical numeral temperature
Sensor is spent, the temperature sensor not only has small volume, and precision is high, the advantage of strong antijamming capability, and can be using single
Root cable transmission data, its monobus topological structure feature, can save a large amount of cables, effectively reduction temp testing controlling system product
Cost, has great meaning in production application.Current this temp testing controlling system does not possess chain rupture point diagnostic function, together
When, temp testing controlling system uses the mechanism of dual controller redundancy protecting mostly, once there is chain rupture point in bus, then and it is another by enabling
Controller carries out the collection of data, and this method has product cost height, safeguards the defects such as inconvenience.
The content of the invention
The purpose of the present invention is that in view of the shortcomings of the prior art, and it is automatic to provide a kind of monobus temp testing controlling system chain rupture
The method of diagnosis.This method and apparatus can not only greatly improve the security reliability of system, and can realize circuit chain rupture
The automatic diagnosis of point, and physical location where accurately providing chain rupture point enables a user to on-call maintenance circuit, effectively reduction is surveyed
The cost of temperature control system, the maintenance difficulties for reducing temp testing controlling system, improve the maintenance efficiency of temp testing controlling system.
Realizing the technical scheme of the object of the invention is:
A kind of automatic diagnosis of monobus temp testing controlling system chain rupture and the device of redundancy protecting, including control system, sensing
Device loop is the topological closed circuit of bus-type, unlike the prior art, in addition to two-way converting switch device, the sensing
The two ends of device loop bus are connected the structure to form a closed loop, two-way converting switch device and control with two-way converting switch device
System connection processed, control system is adjusted to the reading data of sensor loop by the control to two-way converting switch device
Direction, so as to realize the diagnosis of circuit chain rupture point and function of redundancy protection.
The multi-point temperature measurement based on login mechanism that described control system is provided by publication number CN202916015U patents
Control system;
Described two-way converting switch device includes microcontroller(Micro Control Unit, abbreviation microcontroller)With
Two-way switch, microcontroller is communicated by two-way switch controlling bus with control system, realizes single bus sensor network closed loop
Alternately access bus;
Described two-way converting switch device constitutes the monocyclic sensor loop of closure, monocyclic biography with multiple temperature sensors
Sensor loop is connected by two-way converting switch device with monobus, constitutes polycyclic closed topology structure sensor loop.
The advantage of this device is the closed loop topological structure that use is had no using moment sensor network field, can be used
It is monocyclic, or multiple monocyclic tangent topological structures, possess more flexible networking mode.This device be provided with one it is two-way
Converting switch device, can complete the bidirectional detecting function of closed loop topology, and the system of relatively conventional dual-computer redundancy reduces one
Core processor, greatly reduces cost.
The method that monobus temp testing controlling system chain rupture based on said apparatus is diagnosed automatically, including sensor loop, its
In first sensor loop be connected with the first passage of two-way converting switch device, last sensor loop is cut with two-way
The second channel connection of switching device is changed, two-way converting switch device constitutes the monocyclic sensor of closure with multiple temperature sensors
Loop, methods described comprises the following steps:
1)Each 1-wire temperature sensor physics where each sensor after access bus on Register Sensor loop
Position encoded ID;
2)Control system sends instruction to two-way converting switch device, orders it to connect first passage, it is determined that logical from first
Road direction detection sensor loop, control system reads first passage direction all the sensors loop using binary tree algorithm and uploaded
The ID of sensor;
3)Control system reads biographies all before chain rupture point on the passage from first passage direction detection sensor loop
The ID of sensor on sensor loop;
4)Control system sends instruction to two-way converting switch device, orders it to connect second channel, it is determined that logical from second
Road direction detection sensor loop, control system reads second channel direction all the sensors loop using binary tree algorithm and uploaded
The ID of sensor;
5)Control system reads biographies all before chain rupture point on the passage from second channel direction detection sensor loop
The ID of sensor on sensor loop;
6)To from first passage direction and second channel direction twi-read to ID be compared, where drawing chain rupture point
Position.
During bus free, the microcontroller in control system and two-way converting switch device use the cycle for it is 2 delicate,
Dutycycle is communicated for 0.5 pulse width modulating signal, is instructed and is represented for logic 1:Pulse width modulation continues 50 microseconds
Level drags down 30 microseconds afterwards;Instruct and represented for logical zero:The pulse width modulation of the microsecond of cycle=2 continues 80 microseconds, microcontroller
The signal of reception is command logic 1, and two-way switch connects first passage, if the signal received is instruction logical zero, two-way switch
Connect second channel.
Utilize two byte storage monobus of TH in the erasable non-volatile ROM inside 1-wire temperature sensor and TL
The physical location encoded of temperature sensor, calls and analyzes for control system.
The method of monobus temp testing controlling system chain rupture redundancy protecting based on said apparatus:Without dual-computer redundancy and in closed loop
In the case that chain rupture point occurs in bus, by two-way converting switch device, different directions twice are carried out to whole sensor loop
Detection, with this ensure sensor data acquisition it is working properly progress, reach the purpose of bus chain rupture redundancy protecting.
The present invention preserves thing residing for sensor creatively using the low capacity non-volatile ram inside single wire bus device
Manage positional information;By the switching of switching device, double way data acquisition can be carried out, even if chain rupture occurs in topological structure, also can
The chain rupture defencive function of single controller is realized, being normally carried out, reducing hardware cost for data acquisition is still ensure that;This side
Method can be accurately judged to the particular location of chain rupture or the specific region of chain rupture;During monobus lin protocol communication idle, not
On the premise of influence communication, a pulse width modulation is produced to control two-way converting switch device, can be regarded as follow-on
Monobus lin protocol.This method and apparatus are based on monobus lin protocol, using the sensor network topological structure of closed loop, have used double
To converting switch device, realize the two-way detection of bus of 1-wire temperature sensor, realize sensor network data collection
Redundancy protecting, the security reliability of system can not only be greatly improved, and can realize that circuit chain rupture point is diagnosed automatically, and energy
It is accurate provide chain rupture point where physical location enable a user to on-call maintenance circuit, effectively reduce temp testing controlling system into
Originally the maintenance difficulties of temp testing controlling system, are reduced, the maintenance efficiency of temp testing controlling system is improved.
Brief description of the drawings
Fig. 1 is the automatic diagnosis of monobus temp testing controlling system chain rupture and the device square frame signal of redundancy protecting in embodiment
Figure;
Fig. 2 is two-way converting switch device function box schematic diagram in embodiment;
There is chain rupture point block diagram for sensor loop network-bus in embodiment in Fig. 3;
There is chain rupture point block diagram for the monocyclic loop of sensor loop in embodiment in Fig. 4.
Embodiment
Present invention is further elaborated with reference to the accompanying drawings and examples, but is not limitation of the invention.
Embodiment:
As shown in figure 1, the device of a kind of automatic diagnosis of monobus temp testing controlling system chain rupture and redundancy protecting, including control
System, sensor loop is the topological closed circuit of bus-type, in addition to two-way converting switch device S, and the sensor loop is total
The two ends of line are connected the structure to form a closed loop, two-way converting switch device S and control system with two-way converting switch device S
Connection, control system adjusts the direction to the reading data of sensor bus by the control to two-way converting switch device S,
So as to realize the diagnosis of circuit chain rupture point and function of redundancy protection.
Two-way converting switch device S constitutes the monocyclic sensor loop of closure, monocyclic sensor with multiple temperature sensors
Loop is connected by two-way converting switch device Sn with monobus, constitutes polycyclic closed topology structure sensor loop.
The multi-point temperature measurement based on login mechanism that control system is provided by publication number CN202916015U patents is controlled
System.
As shown in Fig. 2 two-way converting switch device S includes microcontroller and two-way switch, microcontroller passes through two-way opened
Close, controlling bus communicates with control system, realize single bus sensor network closed loop alternately access bus;The effect of microcontroller
According to being provided by control system, the cycle is the pulse width modulating signal that 2 microseconds, dutycycle are 50%, come controlling bus with
Control system communicates.Logic 1:Pulse width modulation continues level after 50 microseconds and drags down 30 microseconds;Logical zero:Pulse width modulation
Continue 80 microseconds.If the signal that microcontroller is received in two-way converting switch device is 1, pin D is connected with pin B, that is, is connect
Logical first passage;Otherwise pin D is connected with pin C, that is, connects second channel.
The method that monobus temp testing controlling system chain rupture based on said apparatus is diagnosed automatically, including sensor loop, its
In first sensor loop be connected with the first passage of two-way converting switch device, last sensor loop is cut with two-way
The second channel connection of switching device is changed, two-way converting switch device constitutes the monocyclic sensor of closure with multiple temperature sensors
Loop, methods described comprises the following steps:
1)Each 1-wire temperature sensor physics where each sensor after access bus on Register Sensor loop
Position encoded ID;
2)Control system sends instruction to two-way converting switch device, orders it to connect first passage, it is determined that logical from first
Road direction detection sensor loop, control system reads first passage direction all the sensors loop using binary tree algorithm and uploaded
The ID of sensor;
3)Control system reads biographies all before chain rupture point on the passage from first passage direction detection sensor loop
The ID of sensor on sensor loop;
4)Control system sends instruction to two-way converting switch device, orders it to connect second channel, it is determined that logical from second
Road direction detection sensor loop, control system reads second channel direction all the sensors loop using binary tree algorithm and uploaded
The ID of sensor;
5)Control system reads biographies all before chain rupture point on the passage from second channel direction detection sensor loop
The ID of sensor on sensor loop;
6)To from first passage direction and second channel direction twi-read to ID be compared, where drawing chain rupture point
Position.
Utilize two byte storage monobus of TH in the erasable non-volatile ROM inside 1-wire temperature sensor and TL
The physical location encoded of temperature sensor, calls and analyzes for control system.
Specifically, as shown in figure 3, the method that the monobus temp testing controlling system chain rupture based on said apparatus is diagnosed automatically,
Including sensor loop A1、A2、A3、A4……An, wherein sensor loop A1Connect with two-way converting switch device S first passage
Connect, sensor loop An is connected with two-way converting switch device S second channel, two-way converting switch device S and TEMP
Device a1、a2、a3、a4、a5、a6……anThe monocyclic sensor loop of closure is constituted, methods described comprises the following steps:
1)Each 1-wire temperature sensor a on Register Sensor loop An1、a2、a3、a4、a5、a6……anIn access
Physical location encoded ID where each sensor after bus;
2)Control system sends instruction to two-way converting switch device S, orders it to connect first passage, it is determined that logical from first
Road direction detection sensor loop, control system read first passage direction all the sensors loop using binary tree algorithm and uploaded
The ID of sensor;
3)Control system reads sensor loop A1, sensor loop from first passage direction detection sensor loop
A2 ID;
4)Control system sends instruction to two-way converting switch device S, orders it to connect second channel, it is determined that logical from second
Road direction detection sensor loop, control system reads second channel direction all the sensors loop using binary tree algorithm and uploaded
The ID of sensor;
5)Control system from second channel direction detection sensor loop read sensor loop An ... sensor ring
Road A4, sensor loop A3 ID;
6)To from first passage direction and second channel direction twi-read to ID be compared, first passage direction is read
The all the sensors ID on sensor loop A1, sensor loop A2 is got, and it is lucky when the reading ID of second channel direction
Only the ID on remaining sensor loop A1, sensor loop A2 is not read, it was therefore concluded that:Chain rupture point occurs from sensor
Position between loop A2 and sensor loop A3;
7)The physical location of chain rupture point is shown, is inquired about for user.
A is the monocyclic branch road of temperature sensor, and a is the temperature sensor on monocyclic branch road, and An is serial number n monocyclic branch
Road, anFor serial number n temperature sensor, SnFor serial number n two-way converting switch device.
As shown in figure 4, if multiple chain rupture points occurs in sensor network, such as breakpoint D1 positions and breakpoint D2 positions occur
Chain rupture point, then control system distinguishes two secondary controls and following knot occurs to two-way converting switch device, and twi-read ID
Really:
Sensor ID is read from first passage direction for the first time, sensor loop A4, sensor loop A3, sensor is drawn
Loop A2, sensor loop A1, sensor a1ID;
Sensor ID is read from second channel direction for the second time, sensor loop A4, sensor loop A3, sensor is drawn
Loop A2, sensor loop A1, sensor a6ID;
According to the ID of twi-read sensor, it is compared, can determine whether out that one of chain rupture point appears in sensor a1
With sensor a2Between, another chain rupture point appears in sensor a6With sensor a5Between.
The method of monobus temp testing controlling system chain rupture redundancy protecting based on said apparatus:Without dual-computer redundancy and in closed loop
In the case that chain rupture point occurs in bus, by two-way converting switch device S, different directions twice are carried out to whole sensor loop
Detection, with this ensure sensor data acquisition it is working properly progress, reach the function of bus chain rupture redundancy protecting.
As shown in figure 3, occurring in that a chain rupture point between sensor loop A2 and sensor loop A3, the present embodiment is used
The mode that twi-read ID draws following result:
The sensor read for the first time from first passage direction has on sensor loop A1, sensor loop A2
All the sensors ID;
Second sensor read from second channel direction have sensor loop An ... sensor loop
All the sensors ID on A4, sensor loop A3;
Twi-read to sensor ID sum be precisely whole system all the sensors ID sums, it follows that even if
Occur a chain rupture point in bus, system still can normal work, the sensor network of closed loop serves the effect of redundancy protecting.
The present embodiment, can using non-volatile inside 1-wire temperature sensor in order to realize circuit automatic diagnostic function
Wipe the physical location encoded that two bytes of TH and TL in ROM store 1-wire temperature sensor.
Claims (3)
1. a kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically, it is characterised in that:This method is by monobus thermometric
Control system chain rupture is diagnosed automatically and the device of redundancy protecting is performed, and the device includes sensor loop, wherein first sensing
Device loop is connected with the first passage of two-way converting switch device, last sensor loop and two-way converting switch device
Second channel is connected, and two-way converting switch device constitutes the monocyclic sensor loop of closure, the side with multiple temperature sensors
Method comprises the following steps:
1)Each 1-wire temperature sensor physical location where each sensor after access bus on Register Sensor loop
Encode ID;
2)Control system sends instruction to two-way converting switch device, orders its to connect first passage, it is determined that from first passage side
To detection sensor loop, control system reads sensor on all the sensors loop of first passage direction using binary tree algorithm
ID;
3)Control system reads sensors all before chain rupture point on the passage from first passage direction detection sensor loop
The ID of sensor on loop;
4)Control system sends instruction to two-way converting switch device, orders its to connect second channel, it is determined that from second channel side
To detection sensor loop, control system reads sensor on all the sensors loop of second channel direction using binary tree algorithm
ID;
5)Control system reads sensors all before chain rupture point on the passage from second channel direction detection sensor loop
The ID of sensor on loop;
6)To from first passage direction and second channel direction twi-read to ID be compared, show that chain rupture point institute is in place
Put.
2. according to the method described in claim 1, it is characterised in that:Control system and the microcontroller in two-way converting switch device
Device uses the cycle to be communicated for the pulse width modulating signal that 2 delicate, dutycycle is 0.5, instructs and is represented for logic 1:Pulse
Width modulated continues level after 50 microseconds and drags down 30 microseconds;Instruct and represented for logical zero:The pulse width modulation of the microsecond of cycle=2 is held
Continuous 80 microseconds, the signal that microcontroller is received is command logic 1, and two-way switch connects first passage, if the signal received is
Command logic 0, two-way switch connects second channel.
3. according to the method described in claim 1, it is characterised in that:Can using non-volatile inside 1-wire temperature sensor
The physical location encoded that two bytes of TH and TL in ROM store 1-wire temperature sensor is wiped, calls and divides for control system
Analysis.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410107390.2A CN103929328B (en) | 2014-03-21 | 2014-03-21 | A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410107390.2A CN103929328B (en) | 2014-03-21 | 2014-03-21 | A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103929328A CN103929328A (en) | 2014-07-16 |
CN103929328B true CN103929328B (en) | 2017-09-29 |
Family
ID=51147412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410107390.2A Expired - Fee Related CN103929328B (en) | 2014-03-21 | 2014-03-21 | A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103929328B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105892394B (en) * | 2016-06-01 | 2018-05-15 | 松下制冷(大连)有限公司 | Band redundant digit temperature sensor bus control unit for refrigeration system |
CN107014500A (en) * | 2017-05-27 | 2017-08-04 | 湖南利能科技股份有限公司 | A kind of distributed battery group temperature collecting device and method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6894461B1 (en) * | 2002-10-11 | 2005-05-17 | Linear Technology Corp. | Bidirectional power conversion with multiple control loops |
CN101146121A (en) * | 2007-06-20 | 2008-03-19 | 中兴通讯股份有限公司 | Bus relay device |
CN101562861B (en) * | 2009-05-15 | 2011-04-13 | 重庆邮电大学 | Cross-layer and bi-directional routing method based on hop number and energy in wireless sensor network |
CN202916015U (en) * | 2012-10-10 | 2013-05-01 | 广西师范大学 | Register mechanism based multipoint temperature-measuring control system |
CN203206272U (en) * | 2012-12-28 | 2013-09-18 | 比亚迪股份有限公司 | CAN network system having fault detection function |
-
2014
- 2014-03-21 CN CN201410107390.2A patent/CN103929328B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN103929328A (en) | 2014-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104378260B (en) | load rate testing method, device and system of CAN bus | |
CN104196553B (en) | A kind of hydraulic support tele-control system based on EtherCAT | |
CN103929328B (en) | A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically | |
CN104093002A (en) | Heat loss detection system and method for steam heat pipeline | |
CN103914031B (en) | A kind of RS-485 bus monitoring probe circuit of self adaptation various protocols | |
CN104079895A (en) | Storage tank liquid level detection system and method | |
CN106569440A (en) | Method for achieving communication between microprocessor and touch screen based on MODBUS-RTU protocol | |
CN204031195U (en) | The device of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting | |
CN102637008A (en) | Tracking method of hot rolling basic automation control data security timeliness | |
CN104808565A (en) | Intelligent positioning drip irrigation monitoring system based on internet of things | |
CN104265346B (en) | A kind of control method of hydraulic support tele-control system based on EtherCAT | |
CN206248225U (en) | Digital achieving multipoint temperature detection system | |
CN203732014U (en) | Four-channel landslide fissure displacement monitor | |
CN103257038B (en) | A kind of dam flood-discharge gate rubber seal detection system and detection method | |
CN106933134A (en) | Multi-channel intelligent main frame frequency signal detects box | |
CN205014991U (en) | Take intelligent sensor device of security function | |
CN104486386A (en) | Vehicle sensor calibration method and system | |
WO2008121165A3 (en) | Real time system for monitoring containers from a quayside crane | |
CN110531646A (en) | (PCC) power system failure collecting method and system based on FPGA | |
CN204303060U (en) | A kind of new route structure and use the centralized-control type access control equipment of this structure | |
CN204098944U (en) | Based on the hydraulic support tele-control system of EtherCAT | |
CN108449419A (en) | A kind of multi-functional intelligent fire alarm system and its method | |
CN103647728A (en) | STM32 single chip microcomputer and Linux system high-speed series port anti-interference communication method | |
CN107238407B (en) | Project of South-to-North water diversion secure data abnormal patterns find method and system | |
CN207472427U (en) | A kind of steel strand wires leaving water temperature automatic checkout system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170929 Termination date: 20200321 |
|
CF01 | Termination of patent right due to non-payment of annual fee |