Disconnected 1-wire Temp Probes Keep Old Value
#1
Posted 10 February 2009 - 05:21 AM
When LCDC starts, 1-wire probes return "NYR" for temperature until they get their first update. But after that, disconnecting a probe just silently keeps returning the last valid temperature. This is really bad, because it means that if the connection to the fan/temp probe fails for some reason, it'll just look like all temps are A-OK when in fact the cooling has failed and the machine is about to turn into a steam engine.
Can we please have 1-wire probes that stop returning a value revert to returning "FAILED" or something so the condition can be detected?
cheers,
/Patrik
#2
Posted 11 February 2009 - 09:29 AM
#4
Posted 11 February 2009 - 04:41 PM
#6
Posted 18 October 2009 - 04:09 PM
Matthew Augier, on Feb 11 2009, 08:41 AM, said:
Hi Matt,
Did this new version ever get uploaded? The main download still seems to point to a version from 2006... I'm still waiting for the 1-wires to display ERR...
#7
Posted 20 October 2009 - 10:21 AM
#8
Posted 22 October 2009 - 04:20 PM
Matthew Augier, on 20 October 2009 - 03:21 AM, said:
Cool, thanks... except it doesn't work...
#9
Posted 23 October 2009 - 10:28 AM
#10
Posted 23 October 2009 - 03:00 PM
Matthew Augier, on 23 October 2009 - 03:28 AM, said:
Thanks, this one works. I now get ERR!
However, something else is broken, because now some of my temp probes display temperatures in the vicinity of -50C - -70C (and I don't have them immersed in dry ice...
#11
Posted 23 October 2009 - 03:08 PM
#12
Posted 23 October 2009 - 05:17 PM
Matthew Augier, on 23 October 2009 - 08:08 AM, said:
Ok, we're getting there...
It feels to me like a race condition, like the thread that writes to the display reads the temps when the thread that reads the probes is updating that field and it gets screwed up. For what it's worth, the previous beta-2 version that had the wrong temperatures did not show this behavior, it only showed ERR when I unplugged the probes. It's also weird how it's only the 3 B20 probes that do this, the 5 DS1820 probes seem stable.
Any ideas? As it is now it's unusable because the "lost communication" tool tray msg event I added pops up literally every 10s.
#13
Posted 26 October 2009 - 07:58 AM
#14
Posted 26 October 2009 - 04:11 PM
Matthew Augier, on 26 October 2009 - 12:58 AM, said:
This looks promising. The random ERRs have gone away but it still detects properly when they get disconnected.
Thanks for fixing this!
#15
Posted 03 November 2009 - 03:25 PM
I wonder if this is the same thing I'd noticed some times before where the probes would just hang and display the old value? Of course with the old version it was much harder to notice, now it's obvious (which was the point of the ERR functionality!)
I also wonder if it's somehow related to the fact that the communications with the lcd seem fragile. I think I mentioned before how the bar code characters tend to get switched to some other character set if the display runs for a while. (Like now one bar graph displays a line of Euro signs...) It has also happened that the backlight goes out. The display is still running, you can see the text updating, and stop-starting the display restores it, so it's as if it got a spurious 'turn backlight off' command.
I thought this might be the usb cable, but I've tried with both the internal MO cable and another external usb cable and the problem is the same. It's also persisted across switching to a new motherboard, so the only common elements are LCDC and the display itself. Do you know if these sorts of communication problems are common?
Since stop-starting the display restores things, maybe it would at least help as a stop-gap measure if lcdc resent whatever commands are sent when starting the display (backlight, character set, probe init?) with some interval so the effect of these errors don't just get worse over time.
Incidentally, I also tried lowering the communication speed on the COM port from 19200 to see if that would help, but the display just shows garbage if I set any other speed. Do they only work at 19200?
Thanks,
/Patrik

Sign In
Register
Help



MultiQuote