navitron
 
Renewable Energy and Sustainability Forum
UK's most popular Renewable Energy Forum May 24, 2012, 12:38:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Anyone wishing to register as a new member on the forum is strongly recommended to use a "proper" email address - following recent spam/hack attempts on the forum, all security is set to "high", and "disposable" email addresses like Gmail, Yahoo and Hotmail tend to be viewed with suspicion, and the application rejected if there is any doubt whatsoever
 
Recent Articles: UPDATE ON DECC APPLICATION FOR LEAVE TO APPEAL TO THE SUPREME COURT | Yingli Green Energy's PV Module Ranks No.2 in TUV Rheinland Energy Yield Test | Navitron Solar Showers at Glastonbury for Year 5!
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: When 1-wire goes wrong  (Read 1241 times)
MN
Sr. Member
****
Offline Offline

Posts: 273



« on: September 07, 2011, 10:28:43 AM »

I have a big 1 wire network which works fine 90% of the time

But when it goes wrong – what a pain it is to try to figure which part is at fault.  I basically have to take out section and rewire the loop.

The software just goes from 30 devices to zero and not a clue
And stay at zero for an hour then suddenly go back up to 30

I think I might rewire it using a network hub and zone off runs – so basically unplug a run and plug in a ‘blank’ to return the loop

Anyone do anything similar or are all your loops hardwired?

MN
Logged
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #1 on: September 07, 2011, 11:48:37 AM »

It looks as though you have one device which is intermitently shorting the one wire bus. Not that this helps you find which one though.
Breaking up the bus seems to be only way to proceed unless one device is giving suspicious readings. (for a DS18s20 85 degrees)
Logged
dhaslam
Hero Member
*****
Offline Offline

Posts: 4561



« Reply #2 on: September 07, 2011, 12:30:55 PM »

It is useful to have joiners that can be easily detached so that you can split up the circuit easily.

http://cpcireland.farnell.com/jsp/search/productdetail.jsp?SKU=CN12061
Logged
hiccup
Sr. Member
****
Online Online

Posts: 284


« Reply #3 on: September 07, 2011, 01:00:15 PM »

Hi

In my experience loops are a problem (don't want to start a religious war though). The 1 wire bus should be either a single bus with appropriate termination at the end, or a limited star where the legs are not too long.

Do you have access to an oscilloscope? Quite easy to see what's wrong with one.

The Dallas 1-wire guide is worth a read, I'll dig out a link if you need it.

HTH

Hic!
Logged

16 x Sanyo HIT250E01 into SB4000TL inverter, 2 x 20 x 58mm Navi Tubes on 22deg roof facing SSE, Gledhill Torrent RE Solar 277litre Store, TDC4 Ether Controller, Xpelair Xcell400BP HRV, Stovax Riva 66 Wood Burner
dinitro
Sr. Member
****
Offline Offline

Posts: 494



« Reply #4 on: September 07, 2011, 01:33:32 PM »


I used to have a problem and it was intermittent.  It gradually got worse and I correlated the problem to
a couple of days AFTER it rained.

Unfortunately it meant physically examining each sensor, in my case I found out one exterior sensor had corrosion
in its tails.  As soon as I discarded it everything was fine.

I recently found a new problem, however this time I get a no read error on one sensor in logtemp... but the rest of the sensors are fine.

There is now a new version of Logtemp, unfortunately there is no relay control for the hobbyboards relay board!

dinitro
Logged

1x 20 x 58mm panel NEE, 4x 20 x 58mm panels south, Navi-Newark 320 litre thermal store direct boiler/ rad tap by boiler, retro coil, solar coil, termovar 61, S. circuit 30m+30m flow/ return. NEE 5m flow, 5m return.  S. panel 52 degrees. NEE 45.
http://sunscribe.homeip.net
http://agni.homeip.net
wookey
Hero Member
*****
Offline Offline

Posts: 2672


WWW
« Reply #5 on: September 07, 2011, 04:10:34 PM »

I've had intermittent network breakage too. A power cycle of the computer+1-wire driver fixes it. Unfortunately I can't power-cycle the 1-wire driver on it's own which would be useful to determine if it's actually software or hardware getting sulky.

I have an 8-channel 1-wire multiplexer chip which makes star wiring easy (and hopefully more reliable). I traced most of my issues to hard-water leaking from my cyclinder and dripping onto sensors and corroding the boards. I've conformally coated them now (and fixed the leak!)

Better 1-wire software diagnostics would be useful. There are loads of magic values in the depths of the software (including various sort of error counts) which may help indicate what sort of problem one has. I've not yet spent enough time to work out if any of that stuff actually helps or not.
Logged

Wookey
EccentricAnomaly
Guest
« Reply #6 on: September 07, 2011, 04:56:11 PM »

Do you have access to an oscilloscope? Quite easy to see what's wrong with one.

Trying to make up my mind if I really need one of these or if they're just shiny:

http://www.coolcomponents.co.uk/catalog/product_info.php?cPath=44&products_id=582
http://www.coolcomponents.co.uk/catalog/product_info.php?cPath=44&products_id=748
Logged
ericw
Hero Member
*****
Offline Offline

Posts: 735


« Reply #7 on: September 07, 2011, 05:30:11 PM »

If you have a PC with a parallel port you might look at http://jwasys.home.xs4all.nl/old/diy2.html  I used this to debug some of the early halfbee problems.
Debugging 1 wire signals with a standard scope is not easy unless you can generate a suitable trigger from the data on the bus.
 
Logged
Wyleu
Jr. Member
**
Offline Offline

Posts: 58



« Reply #8 on: September 08, 2011, 10:07:00 AM »

What's a parallel port?
Logged
EccentricAnomaly
Guest
« Reply #9 on: September 08, 2011, 10:55:11 AM »

The trouble with logic analysers is that they only analyse logic. When things go wrong electricity isn't logical in the sense that the abstraction of an electrical voltage as either 0 or 1 breaks down. E.g., a problem, particularly an intermittent problem, with a 1-wire bus is likely to be something like that a signal is getting through but is not quite high enough voltage to operate the device properly or the edges are rounded off in way which results in certain bit combinations causing timing errors or something. Looking just at notional 0 or 1 signal levels won't help; it'll just be confusing.

I have one of these which has been very helpful for a couple of projects: Pico ADC-10. I wrote my own software for it in VB and C as theirs was fine but didn't do exactly what I wanted; IIRC, I wanted some weird triggering modes. Haven't used it in a while, not least because it needs a parallel port (I remember those, he says in a croaky old voice). Did wonder about connecting it to an Arduino - I think its ADC is quicker (though lower resolution) than the one in the Atmel chip but I've not checked. Also, it's better protected against out-of-range voltages.

Those Cool Components scopes I referenced are cute but it does seem a bit wasteful to me for them to have their own displays when they're likely to be used on a bench with a laptop or tablet to hand. There are plenty of commercial USB scopes around but for reasonable performance they're often not very cheap - seems like something for the open-source hardware community to have a go at. Hmm...
Logged
MN
Sr. Member
****
Offline Offline

Posts: 273



« Reply #10 on: September 08, 2011, 02:33:31 PM »

I found the leg that was erroring

Wonder if it is this?



* 1WireAttack.jpg (32.21 KB, 509x450 - viewed 301 times.)
Logged
SimonHa
Full Member
***
Offline Offline

Posts: 164


« Reply #11 on: October 16, 2011, 06:31:54 PM »

I found the leg that was erroring
Wonder if it is this?
I think there's a lot to be said for using CAT5 with RJ45 throughout for 1-wire, even though it sounds like overkill. Doing this so far I've only had errors where wires have been pushed into a breadboard(!). Also if each device (or set of devices) is connected to the network via two RJ45 sockets to can easily remove it from the circuit using a RJ45 coupler (v cheap on fleabay).

As Wookey mentioned I think "conformal coating" of circuit boards would be a good idea in damp environments (I'll start a separate post for this).
« Last Edit: October 16, 2011, 06:37:39 PM by SimonHa » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!