CN103929328A - Automatic diagnosis and redundancy protection method and device of broken link of monobus temperature measurement control system - Google Patents

Automatic diagnosis and redundancy protection method and device of broken link of monobus temperature measurement control system Download PDF

Info

Publication number
CN103929328A
CN103929328A CN201410107390.2A CN201410107390A CN103929328A CN 103929328 A CN103929328 A CN 103929328A CN 201410107390 A CN201410107390 A CN 201410107390A CN 103929328 A CN103929328 A CN 103929328A
Authority
CN
China
Prior art keywords
control system
loop
sensor
switch device
sensor loop
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.)
Granted
Application number
CN201410107390.2A
Other languages
Chinese (zh)
Other versions
CN103929328B (en
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.)
Guangxi Normal University
Original Assignee
Guangxi Normal University
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 Guangxi Normal University filed Critical Guangxi Normal University
Priority to CN201410107390.2A priority Critical patent/CN103929328B/en
Publication of CN103929328A publication Critical patent/CN103929328A/en
Application granted granted Critical
Publication of CN103929328B publication Critical patent/CN103929328B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an automatic diagnosis method of a broken link of a monobus temperature measurement control system. Through switching of a two-way switching switch device, two-way data acquisition can be performed, redundancy protection of senor network data acquisition is achieved, the specific position of the broken link or the specific area of the broken link can be accurately judged, and thus the cost of the temperature measurement control system is effectively reduced, the maintenance difficulty of the temperature measurement control system is reduced, and the maintenance efficiency of the temperature measurement control system is improved. The invention further discloses redundancy protection method and device of the broken link of the monobus temperature measurement control system.

Description

The method and apparatus of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting
Technical field
The present invention relates to 1-wire temperature sensor multi-point temperature measurement control technology, specifically the method and apparatus of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting.
Background technology
In manufacturing field, 1-wire temperature sensor multi-point temperature measurement control system is widely used in the places such as silo, winery, food processing factory, greenhouse, large-scale precision measuring instrument.For example DS18B20 temperature sensor is typical digital temperature sensor, it is little that this temperature sensor not only has volume, precision is high, the advantage that antijamming capability is strong, and can adopt unit cable transmission data, its monobus topological structure feature, can save a large amount of cables, effectively reduce temp testing controlling system product cost, the great meaning of tool in production application.Current this temp testing controlling system does not possess chain rupture point diagnostic function; simultaneously; temp testing controlling system adopts the mechanism of dual controller redundancy protecting mostly; once there is chain rupture point in bus; by enabling another controller, carrying out the collection of data, there is the defects such as product cost is high, maintenance is inconvenient in this method.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, and the method and apparatus of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting is provided.This method and apparatus can not only improve the security reliability of system greatly, and can realize the automatic diagnosis of circuit chain rupture point, and the physical location that can accurately provide chain rupture point place makes user's energy on-call maintenance circuit, effectively reduce the cost of temp testing controlling system, the maintenance difficulties of reduction temp testing controlling system, improve the maintenance efficiency of temp testing controlling system.
The technical scheme that realizes the object of the invention is:
The device of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting, comprise control system, sensor loop is bus-type topology closed circuit, unlike the prior art, also comprise two-way converting switch device, the two ends of described sensor loop bus and two-way converting switch device are connected to form the structure of a closed loop, two-way converting switch device is connected with control system, control system is by the control to two-way converting switch device, the direction of adjustment to the reading out data of sensor loop, thereby realize the diagnosis of circuit chain rupture point and function of redundancy protection.
The multi-point temperature measurement control system based on login mechanism that described control system provides for publication number CN202916015U patent;
Described two-way converting switch device comprises microcontroller (Micro Control Unit is called for short MCU) and bidirectional switch, and MCU communicates by letter with control system by bidirectional switch control bus, realizes single bus sensor network closed loop and alternately accesses bus;
Described two-way converting switch device and a plurality of temperature sensor form closed monocycle sensor loop, and monocycle sensor loop is connected with monobus by two-way converting switch device, form the closed topology structure sensor loop of many rings.
The advantage of this device is to adopt moment sensor network field to have no the closed loop topological structure of employing, can adopt monocycle, or the tangent topological structure of a plurality of monocycle, possesses networking mode comparatively flexibly.This device
Be provided with a two-way converting switch device, can complete the bidirectional detecting function of closed loop topology, the system of relatively traditional dual-computer redundancy, has reduced by a core processor, greatly reduces cost.
The method of the monobus temp testing controlling system chain rupture automatic diagnosis based on said apparatus, comprise sensor loop, wherein first sensor loop is connected with the first passage of two-way converting switch device, last sensor loop is connected with the second channel of two-way converting switch device, two-way converting switch device and a plurality of temperature sensor form closed monocycle sensor loop, and described method comprises the steps:
1) each 1-wire temperature sensor each transducer place physical location encoded ID after access bus on Register Sensor loop;
2) control system is sent instruction to two-way converting switch device, orders it to connect first passage, determines from first passage direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of first passage direction all the sensors loop upper sensor;
3) ID of control system all sensor loop before first passage direction detection sensor loop reads chain rupture point this passage;
4) control system is sent instruction to two-way converting switch device, orders it to connect second channel, determines from second channel direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of second channel direction all the sensors loop upper sensor;
5) ID of control system all sensor loop before second channel direction detection sensor loop reads chain rupture point this passage;
6) to from first passage direction and second channel direction twi-read to ID compare, draw chain rupture point position.
In bus idle period of time, the MCU employing cycle in control system and two-way converting switch device is that the pwm signal that 2 microseconds, duty ratio are 0.5 communicates, and after logical one: PWM continues 50 microseconds, level drags down 30 microseconds; Logical zero: the PWM of cycle=2 microsecond continues 80 microseconds, the signal that MCU receives is 1, bidirectional switch is connected first passage, if the signal receiving is 0, bidirectional switch is connected second channel.
Utilize the physical location encoded of TH and two bytes store self of TL in the non-volatile erasable ROM of 1-wire temperature sensor inside, for control system, call and analyze.
The method of the monobus temp testing controlling system chain rupture redundancy protecting based on said apparatus: without dual-computer redundancy and in the situation that chain rupture point appears in closed loop bus; by two-way converting switch device; whole sensor loop is carried out to the detection of twice different directions; with this, guarantee that sensor data acquisition is working properly and carry out, reach the object of bus chain rupture redundancy protecting.
The present invention creatively uses the low capacity non-volatile ram of single wire bus device inside, preserves transducer physical position information; By the switching of switching device, can carry out double way data acquisition, even if chain rupture appears in topological structure, also can realize the chain rupture defencive function of single controller, what still can guarantee data acquisition normally carries out, reduces hardware cost; This method can accurately be judged the particular location of chain rupture or the concrete region of chain rupture; At monobus lin protocol, communicate by letter idle period of time, do not affecting under the prerequisite of communication, produce a PWM in order to control two-way converting switch device, can regard follow-on monobus lin protocol as.This method and apparatus is based on monobus lin protocol, adopt the sensor network topological structure of closed loop, used two-way converting switch device, realized the two-way detection of bus of 1-wire temperature sensor, realized the redundancy protecting that sensor network data gathers, can not only greatly improve the security reliability of system, and can realize the automatic diagnosis of circuit chain rupture point, and the physical location that can accurately provide chain rupture point place makes user's energy on-call maintenance circuit, effectively reduce the cost of temp testing controlling system, reduced the maintenance difficulties of temp testing controlling system, improved the maintenance efficiency of temp testing controlling system.
Accompanying drawing explanation
Fig. 1 is the device block diagram of the chain rupture automatic diagnosis of monobus temp testing controlling system and redundancy protecting in embodiment;
Fig. 2 is two-way converting switch device function block diagram in embodiment;
Fig. 3 is that in embodiment, chain rupture point block diagram appears in sensor loop network-bus;
Fig. 4 is that in embodiment, chain rupture point block diagram appears in sensor loop monocycle loop.
Embodiment
Below in conjunction with drawings and Examples, content of the present invention is further elaborated, but is not limitation of the invention.
Embodiment:
As shown in Figure 1; the device of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting; comprise control system; sensor loop is bus-type topology closed circuit; also comprise two-way converting switch device S; the two ends of described sensor loop bus and two-way converting switch device S are connected to form the structure of a closed loop; two-way converting switch device S is connected with control system; control system is by the control to two-way converting switch device S; the direction of adjustment to the reading out data of sensor bus, thus realize the diagnosis of circuit chain rupture point and function of redundancy protection.
Two-way converting switch device S and a plurality of temperature sensor form closed monocycle sensor loop, and monocycle sensor loop is connected with monobus by two-way converting switch device Sn, form the closed topology structure sensor loop of many rings.
The multi-point temperature measurement control system based on login mechanism that control system provides for publication number CN202916015U patent.
As shown in Figure 2, two-way converting switch device S comprises MCU and bidirectional switch, and MCU is by bidirectional switch, and control bus is communicated by letter with control system, realizes single bus sensor network closed loop and alternately accesses bus; The effect of MCU is according to being provided by control system, and the cycle is the pwm signal that 2 microseconds, duty ratio are 50%, comes control bus to communicate by letter with control system.After logical one: PWM continues 50 microseconds, level drags down 30 microseconds; Logical zero: PWM continues 80 microseconds.If the signal that in two-way converting switch device, MCU receives is 1, pin D and pin B connect, and connect first passage; Otherwise pin D and pin C connect, and connect second channel.
The method of the monobus temp testing controlling system chain rupture automatic diagnosis based on said apparatus, comprise sensor loop, wherein first sensor loop is connected with the first passage of two-way converting switch device, last sensor loop is connected with the second channel of two-way converting switch device, two-way converting switch device and a plurality of temperature sensor form closed monocycle sensor loop, and described method comprises the steps:
1) each 1-wire temperature sensor each transducer place physical location encoded ID after access bus on Register Sensor loop;
2) control system is sent instruction to two-way converting switch device, orders it to connect first passage, determines from first passage direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of first passage direction all the sensors loop upper sensor;
3) ID of control system all sensor loop before first passage direction detection sensor loop reads chain rupture point this passage;
4) control system is sent instruction to two-way converting switch device, orders it to connect second channel, determines from second channel direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of second channel direction all the sensors loop upper sensor;
5) ID of control system all sensor loop before second channel direction detection sensor loop reads chain rupture point this passage;
6) to from first passage direction and second channel direction twi-read to ID compare, draw chain rupture point position.
Utilize the physical location encoded of TH and two bytes store self of TL in the non-volatile erasable ROM of 1-wire temperature sensor inside, for control system, call and analyze.
Particularly, as shown in Figure 3, the method for the monobus temp testing controlling system chain rupture automatic diagnosis based on said apparatus, comprises sensor loop A 1, A 2, A 3, A 4a n, sensor loop A wherein 1be connected with the first passage of two-way converting switch device S, sensor loop An is connected with the second channel of two-way converting switch device S, two-way converting switch device S and temperature sensor a 1, a 2, a 3, a 4, a 5, a 6a nform closed monocycle sensor loop, described method comprises the steps:
1) upper each 1-wire temperature sensor a of Register Sensor loop An 1, a 2, a 3, a 4, a 5, a 6a neach transducer place physical location encoded ID after access bus;
2) control system is sent instruction to two-way converting switch device S, orders it to connect first passage, determines from first passage direction detection sensor loop, control system and adopts binary tree algorithm to read the ID of first passage direction all the sensors loop upper sensor;
3) control system reads the ID of sensor loop A1, sensor loop A2 from first passage direction detection sensor loop;
4) control system is sent instruction to two-way converting switch device S, orders it to connect second channel, determines from second channel direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of second channel direction all the sensors loop upper sensor;
5) control system from second channel direction detection sensor loop read sensor loop An ... the ID of sensor loop A4, sensor loop A3;
6) to from first passage direction and second channel direction twi-read to ID compare, first passage direction reads all the sensors ID on sensor loop A1, sensor loop A2, and second channel direction when reading ID just only the ID on remaining sensor loop A1, sensor loop A2 do not read, reach a conclusion: chain rupture point is the position appearing between sensor loop A2 and sensor loop A3;
7) show the physical location of chain rupture point, for user's inquiry.
A is temperature sensor monocycle branch road, and a is the temperature sensor on monocycle branch road, and An is that sequence number is the monocycle branch road of n, a nfor sequence number be n temperature sensor, S nfor the sequence number two-way converting switch device that is n.
As shown in Figure 4, if a plurality of chain rupture points appear in sensor network, there is chain rupture point in breakpoint D1 position and breakpoint D2 position for example, and control system is distinguished twice control to two-way converting switch device so, and twi-read there will be following result No. ID:
From first passage direction read sensor ID, draw sensor loop A4, sensor loop A3, sensor loop A2, sensor loop A1, transducer a for the first time 1iD;
From second channel direction read sensor ID, draw sensor loop A4, sensor loop A3, sensor loop A2, sensor loop A1, transducer a for the second time 6iD;
ID according to twi-read transducer, compares, and can judge one of them chain rupture point and appear at transducer a 1with transducer a 2between, another chain rupture point appears at transducer a 6with transducer a 5between.
The method of the monobus temp testing controlling system chain rupture redundancy protecting based on said apparatus: without dual-computer redundancy and in the situation that chain rupture point appears in closed loop bus; by two-way converting switch device S; whole sensor loop is carried out to the detection of twice different directions; with this, guarantee that sensor data acquisition is working properly and carry out, reach the function of bus chain rupture redundancy protecting.
As shown in Figure 3, occurred a chain rupture point between sensor loop A2 and sensor loop A3, the mode that No. ID, the present embodiment employing twi-read draws following result:
. the transducer reading from first passage direction for the first time has all the sensors ID sensor loop A1, sensor loop A2;
2.. the transducer reading from second channel direction for the second time have sensor loop An ... all the sensors ID on sensor loop A4, sensor loop A3;
Twi-read to sensor ID sum be all the sensors ID sum of whole system just, even if draw thus in bus and occur a chain rupture point, system still can normally be worked, the sensor network of closed loop has played the effect of redundancy protecting.
The present embodiment is in order to realize circuit automatic diagnostic function, utilizes the physical location encoded of TH and two bytes store self of TL in the non-volatile erasable ROM of 1-wire temperature sensor inside.

Claims (7)

1. the device of a monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting; comprise control system; sensor loop is bus-type topology closed circuit; it is characterized in that: also comprise two-way converting switch device; the two ends of described sensor loop bus and two-way converting switch device are connected to form the structure of a closed loop; two-way converting switch device is connected with control system; control system is by the control to two-way converting switch device; the direction of adjustment to the reading out data of sensor loop, thus realize the diagnosis of circuit chain rupture point and function of redundancy protection.
2. the device of monobus temp testing controlling system chain rupture automatic diagnosis according to claim 1 and redundancy protecting; it is characterized in that: described two-way converting switch device comprises MCU and bidirectional switch; MCU passes through bidirectional switch; control bus is communicated by letter with control system, realizes single bus sensor loop closed loop and alternately accesses bus.
3. the device of monobus temp testing controlling system chain rupture automatic diagnosis according to claim 1 and redundancy protecting; it is characterized in that: two-way converting switch device and a plurality of temperature sensor form closed monocycle sensor loop; monocycle sensor loop is connected with monobus by two-way converting switch device, forms the closed topology structure sensor loop of many rings.
4. the method for a monobus temp testing controlling system chain rupture automatic diagnosis, it is characterized in that: comprise sensor loop, wherein first sensor loop is connected with the first passage of two-way converting switch device, last sensor loop is connected with the second channel of two-way converting switch device, two-way converting switch device and a plurality of temperature sensor form closed monocycle sensor loop, and described method comprises the steps:
1) each 1-wire temperature sensor each transducer place physical location encoded ID after access bus on Register Sensor loop;
2) control system is sent instruction to two-way converting switch device, orders it to connect first passage, determines from first passage direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of first passage direction all the sensors loop upper sensor;
3) ID of control system all sensor loop before first passage direction detection sensor loop reads chain rupture point this passage;
4) control system is sent instruction to two-way converting switch device, orders it to connect second channel, determines from second channel direction detection sensor loop, and control system adopts binary tree algorithm to read the ID of second channel direction all the sensors loop upper sensor;
5) ID of control system all sensor loop before second channel direction detection sensor loop reads chain rupture point this passage;
6) to from first passage direction and second channel direction twi-read to ID compare, draw chain rupture point position.
5. method according to claim 4, it is characterized in that: in bus idle period of time, the MCU employing cycle in control system and two-way converting switch device is that the pwm signal that 2 microseconds, duty ratio are 0.5 communicates, and after logical one: PWM continues 50 microseconds, level drags down 30 microseconds; Logical zero: the PWM of cycle=2 microsecond continues 80 microseconds, the signal that MCU receives is 1, bidirectional switch is connected first passage, if the signal receiving is 0, bidirectional switch is connected second channel.
6. method according to claim 4, is characterized in that: utilize the physical location encoded of TH and two bytes store self of TL in the non-volatile erasable ROM of 1-wire temperature sensor inside, for control system, call and analyze.
7. the method for a monobus temp testing controlling system chain rupture redundancy protecting; it is characterized in that: without dual-computer redundancy and in the situation that chain rupture point appears in closed loop bus; by two-way converting switch device; whole sensor loop is carried out to the detection of twice different directions; with this, guarantee that sensor data acquisition is working properly and carry out, reach the object of bus chain rupture redundancy protecting.
CN201410107390.2A 2014-03-21 2014-03-21 A kind of method that monobus temp testing controlling system chain rupture is diagnosed automatically Expired - Fee Related CN103929328B (en)

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 true CN103929328A (en) 2014-07-16
CN103929328B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892394A (en) * 2016-06-01 2016-08-24 松下制冷(大连)有限公司 Bus controller with redundant digital temperature sensors for refrigerating system
CN107014500A (en) * 2017-05-27 2017-08-04 湖南利能科技股份有限公司 A kind of distributed battery group temperature collecting device and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146121A (en) * 2007-06-20 2008-03-19 中兴通讯股份有限公司 Bus relay device
US20080164853A1 (en) * 2002-10-11 2008-07-10 Linear Technology Corporation Bidirectional power conversion with multiple control loops
CN101562861A (en) * 2009-05-15 2009-10-21 重庆邮电大学 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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080164853A1 (en) * 2002-10-11 2008-07-10 Linear Technology Corporation Bidirectional power conversion with multiple control loops
CN101146121A (en) * 2007-06-20 2008-03-19 中兴通讯股份有限公司 Bus relay device
CN101562861A (en) * 2009-05-15 2009-10-21 重庆邮电大学 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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892394A (en) * 2016-06-01 2016-08-24 松下制冷(大连)有限公司 Bus controller with redundant digital temperature sensors for refrigerating system
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

Also Published As

Publication number Publication date
CN103929328B (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN102855757B (en) Identification method based on queuing detector information bottleneck state
CN105703885A (en) Analytical method and device based on Manchester encoding
CN204301877U (en) A kind of multi-channel digital temperature acquisition system
CN203310959U (en) Redundancy line measuring and control device
CN103929328A (en) Automatic diagnosis and redundancy protection method and device of broken link of monobus temperature measurement control system
CN104122814B (en) Switch acquisition transition detection circuitry and detection method thereof
CN201035741Y (en) Distributed data acquisition instrument
CN204031195U (en) The device of a kind of monobus temp testing controlling system chain rupture automatic diagnosis and redundancy protecting
CN204255495U (en) A kind of fault diagnosis system based on wireless vibration sensor
CN207976744U (en) A kind of Ocean environment information monitoring device based on CAN bus
CN103454993A (en) Yarn defect detection system and implementation method
CN109218420A (en) Wireless displacement sensor and system based on NB-IoT
CN204556718U (en) A kind of based on monolithic processor controlled hyperchannel small area analysis real-time acquisition system
CN103970076A (en) Large-volume deposit concrete cooling water intelligent control system
CN104333255B (en) Modulator-demodulator
CN204847935U (en) Independent multichannel output device of sensor
CN104637115B (en) A kind of band blue tooth interface operating condition method tail gas detection line black box sub-monitoring system
CN103425109B (en) The method of the pseudo-large number of mine supervision system filtering
CN105016209A (en) Independent multi-channel output device and method for sensor
CN104793042B (en) A kind of serial signal detection system and detection method
CN106066825A (en) GPU cluster power consumption monitoring system and monitoring method thereof
CN105510268A (en) Optical fiber network gas sensing system based on photoelectric fusion
CN204303060U (en) A kind of new route structure and use the centralized-control type access control equipment of this structure
CN103176461A (en) Position switch status signal transmission method and position switch status signal transmission system
KR20080076530A (en) Soe processing method

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170929

Termination date: 20200321