Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-20 Thread Paul Alfille
On Wed, Feb 20, 2008 at 8:28 AM, Matthias Urlichs <[EMAIL PROTECTED]> wrote: > Hi, > However, that's too low-level for me. Suppose the main system fails in > mid-winter? No central heating until I can get a replacement hard disk? > Use an embedded device with a flash disk (router, NSLU2, etc) ? P

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-20 Thread Matthias Urlichs
Hi, Chris Maresca: > Why don't you use something other than 1wire? Easy. The wiring situation is abysmal, but I did manage to put a 1wire line in that room, for measuring outdoor and water temperature. I'd also like to use the stuff for future projects where some more (optional) local intelligen

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-20 Thread Matthias Urlichs
Hi, Rob Conway: > For your furnace control I'd be placing an external delay off relay on an > additional DS2405 output and get the program to provide a pulse train say > every 10 seconds to keep the relay energised. (i.e. watchdog timer) > DOFF relay contact in series with another DS2405 output

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Chris Maresca
A, OK, I see. No idea that's how it worked. I did look at the docs, but did not pick up on this Thx. Chris. Paul Alfille wrote: > OW::get('/uncached'); > > On Feb 19, 2008 3:01 PM, Chris Maresca <[EMAIL PROTECTED] > > wrote: > > Hmm, that's a good quest

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Paul Alfille
OW::get('/uncached'); On Feb 19, 2008 3:01 PM, Chris Maresca <[EMAIL PROTECTED]> wrote: > Hmm, that's a good question. My init line is as follows: > > OW::init("$port --timeout_directory=1 --timeout_presence=1 > --timeout_volatile=1 --timeout_stable=1"); > > Should I add other flags? Sorry, I d

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Chris Maresca
Hmm, that's a good question. My init line is as follows: OW::init("$port --timeout_directory=1 --timeout_presence=1 --timeout_volatile=1 --timeout_stable=1"); Should I add other flags? Sorry, I don't understand how the caching works, I thought that setting the above timeouts to 1 would effect

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Paul Alfille
uncached? On Feb 19, 2008 2:29 PM, Chris Maresca <[EMAIL PROTECTED]> wrote: > I wrote the code in Perl. Basically, it's a giant while() statement > that calls OW::get twice each loop. Each time OW::get is called, it > stuffs the list of whatever gets returned into an array, then compares > the

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Chris Maresca
I wrote the code in Perl. Basically, it's a giant while() statement that calls OW::get twice each loop. Each time OW::get is called, it stuffs the list of whatever gets returned into an array, then compares the two arrays for differences. If there is a difference, it prints out the device I

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Paul Alfille
In my tests, OWFS can read and respond in < 0.1 second. There are some tricks for fast operation: 1. Segment the 1-wire bus with separate a BUSMASTER for the chips being polled. 2. Don't use a DS2409 3. Make sure your script doesn't have process start-up delays in the loop. What language are you

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Rob Conway
ut at least pulsing it for a short duration, thus resetting the external timer. just some thought rob - Original Message - From: "Chris Maresca" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 19, 2008 8:30 PM Subject: Re: [Owfs-developers] OW.pm (Problems with AAG TAI855

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-19 Thread Chris Maresca
Why don't you use something other than 1wire? You can directly wire a thermocouple to the ADC of an AVR chip, then run RS485 back to a controller. If you really want to make your life easy, don't bother with any of that, just get a PLC and program that. They are around US$130 and are program

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Matthias Urlichs
Hi, Chris Maresca: > > (NB: Does anybody know of code for the slave side? > Do you mean on the micro or the PC? I'm assuming the PC. AVR. The problem: I'd like to remote-control my heating system with 1wire; the issue I'm worried about is safety fall-back if the server crashes. Thus, the contr

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Chris Maresca
Matthias Urlichs wrote: > > (NB: Does anybody know of code for the slave side? Do you mean on the micro or the PC? I'm assuming the PC. I used to use some TTL to serial interface chips (max232? I don't remember anymore) to connect to a PC, but now I find that FTDI serial to USB chips are m

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Chris Maresca
I already have a pile of code for 1wire communication on AVRs and other micro's, but I'd really rather not engineer yet another external box if I can help it. Why is it that you think a PC couldn't handle this? I've built CNC machines with tolerances in the thousandths of an inch using real-ti

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Matthias Urlichs
Hi, Chris Maresca: > Ah, I just need to know when X ibutton appears on the bus so that Y can > be done. I find it strange that 1 wire is not reliable as it is used > for all kinds of automation and stuff like public transport payment > where presence (or not) would seem to be critical... St

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Chris Maresca
Paul Alfille wrote: > Slower or faster? > 1-wire isn't all that fast in the first place, you know. > I think the SELECT function is used for shorter delays. Faster, like 1/2 second. I guess 1 second could work. It's kind of a bummer though as one of the other apps I was working on is data acq

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Paul Alfille
On Feb 18, 2008 8:46 PM, Chris Maresca <[EMAIL PROTECTED]> wrote: > I did look at the man page, but it doesn't seem like there was much in > the way of actual functions. To be fair, I haven't looked at the POD > page yet, so perhaps there is more. I did run the example, but it gave > me a bl

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Chris Maresca
I did look at the man page, but it doesn't seem like there was much in the way of actual functions. To be fair, I haven't looked at the POD page yet, so perhaps there is more. I did run the example, but it gave me a blob of info rather than more digestible chunks. That's alright, but I'm

Re: [Owfs-developers] OW.pm (Problems with AAG TAI8558/DS2408 and DS9097U)

2008-02-18 Thread Paul Alfille
Should be fairly simple (but I'll test to make sure it still works). The source code is generated by SWIG under modules/swig/ow.i (C-code). There is a man page, and a POD page, and documentation on the Web site. And example code. In general: use OW ; OW::init("-u") ; print OW::get("/") ; OW::fin