Re: [Owfs-developers] DS18S20 sampling speed

2007-07-28 Thread Paul Alfille
Simultaneous doesn't actually test for power -- it is assumed you know what your have. Each DS18X20 has a "power" property that can be quried to see of the sensors are powered. Paul Alfille On 7/28/07, Mark Cheeseman <[EMAIL PROTECTED]> wrote: > > Paul Alfille wrote: > > The sensors must be in t

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-28 Thread Mark Cheeseman
Paul Alfille wrote: > The sensors must be in the same 'directory', (branch) since that's the > only way they can get selected simutaneously. I'm curious (mainly because I wasted almost a day trying to work out why I couldn't get power to a couple of AAG sensors, only to find out they had actuall

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-28 Thread Paul Alfille
On 7/28/07, Matthias Urlichs <[EMAIL PROTECTED]> wrote: > > Actually, that's what that "simultaneous" entry is for. > > echo "1" > /1wire/simultaneous/temperature > > > Does that work if the sensors are behind hubs? > How does that feature interact with the cache? > The sensors must be in the same

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-28 Thread Matthias Urlichs
Hi, Paul Alfille: > Actually, that's what that "simultaneous" entry is for. > echo "1" > /1wire/simultaneous/temperature > Does that work if the sensors are behind hubs? How does that feature interact with the cache? -- Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [EMAIL PROTECTED] D

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-22 Thread Paul Alfille
On 7/22/07, Andrew Burgess <[EMAIL PROTECTED]> wrote: I misremembered the 300 msec number. This is what my old code does: switch(o->type) { case TEMPERATURE_1820: o->conversion_time = 350; // cold sensors really need this much break;

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-22 Thread Andrew Burgess
>> hmmm. I seem to recall seeing it done elsewhere (not owfs) as: >> >> tell all the temperature sensors to start a conversion >> wait 300ms >> read all the sensors >Actually, that's what that "simultaneous" entry is for. >echo "1" > /1wire/simultaneous/temperature Cool! >The delay will s

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-18 Thread Paul Alfille
On 7/18/07, Andrew Burgess <[EMAIL PROTECTED]> wrote: >> B: would +5V external rather than parasitic powered DS help? hmmm. I seem to recall seeing it done elsewhere (not owfs) as: tell all the temperature sensors to start a conversion wait 300ms read all the sensors Actually, that's

Re: [Owfs-developers] DS18S20 sampling speed

2007-07-18 Thread Andrew Burgess
>> B: would +5V external rather than parasitic powered DS help? >Well, somewhat. The point is that if you use external power the >converter will tell the host when it's done. Otherwise you have to >wait however long a pessimistic estimate of the conversion time is. >My own measurements were measu

Re: [Owfs-developers] DS18S20 sampling speed

2007-06-21 Thread Paul Alfille
On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I've only been playing with owfs for about two days: I hadn't yet found 'uncached' in the documentation. That sounds like it'll do what I need. You're right! I quickly looked through the documentation, thinking "that can't be right...

Re: [Owfs-developers] DS18S20 sampling speed

2007-06-20 Thread katana
>> A: is there a way to force new acquisition with each request? > > if you do a "ls /mnt/1wire" you see a couple of special directories. One > is named "uncached". That should be evocative enough ... I've only been playing with owfs for about two days: I hadn't yet found 'uncached' in the docume

Re: [Owfs-developers] DS18S20 sampling speed

2007-06-20 Thread Doug Collinge
On 6/20/07, Matthias Urlichs <[EMAIL PROTECTED]> wrote: ... except that it's uncached/10.(blah)/temperature... Oops. Oh well, the concept is clear. > [ full quote without any changes ] Please don't do that. Sorry. -

Re: [Owfs-developers] DS18S20 sampling speed

2007-06-20 Thread Matthias Urlichs
Hi, Doug Collinge: > "mnt/1wire/10.(blah)/uncached/temperature" then you force a device read on ... except that it's uncached/10.(blah)/temperature... > On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > [ full quote without any changes ] Please don't do that. -- Matthias Urlichs

Re: [Owfs-developers] DS18S20 sampling speed

2007-06-20 Thread Matthias Urlichs
Hi, [EMAIL PROTECTED]: > The problem is that sequential samples of the DS indicate to me that I'm > not actually getting updated information, just the same thing I got last > time. That's by design. > A: is there a way to force new acquisition with each request? if you do a "ls /mnt/1wire" you

Re: [Owfs-developers] DS18S20 sampling speed

2007-06-20 Thread Doug Collinge
Sounds like you are rereading the cached data, which makes the whole thing seem faster if there are multiple clients for the same data. If you read "mnt/1wire/10.(blah)/uncached/temperature" then you force a device read on each access. On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I

[Owfs-developers] DS18S20 sampling speed

2007-06-20 Thread katana
I've done some searching on google and within this newsgroup itself to try and answer this question but haven't yet found anything so I figured I'd ask in the hopes it's an easy answer. I'm using a DS18S20 and a parallel-port-driven relay to model a furnace control system: the DS is taped to a lig