I tried:

$ owserver --version
owserver version:
        2.7p29
libow version:
        2.7p29
$ sudo owserver -d /dev/ttyS0 -p 3000 -t 30
Password:
$ owdir -s 3000
/28.2CCD80000000
/09.9B3099010000
/bus.0
/uncached
/settings
/system
/statistics
/structure
/simultaneous
/alarm
$ owdir -s 3000 /alarm
$ owread -s 3000 /28.2CCD80000000/temperature
      24.5625
$ owwrite -s 3000 /28.2CCD80000000/temphigh 26
$ owread -s 3000 /28.2CCD80000000/temperature
      24.5625
$ owdir -s 3000 /alarm
# Heating...
$ owwrite -s 3000 /simultaneous/temperature 1
$ owdir -s 3000 /alarm
/alarm/28.2CCD80000000
$ owread -s 3000 /28.2CCD80000000/temperature
           30
$

It is work.

--
Serg.

-------- Original Message --------
Subject: Re: [Owfs-developers] DS2450 alarm thresholds
From: Jim Kusznir <jkusz...@gmail.com>
To: OWFS (One-wire file system) discussion and help 
<owfs-developers@lists.sourceforge.net>
Date: 26.02.2010 19:07

> Yea, we were doing that...We could even read the new voltage and see
> that it exceeded the alarm threshold, but it didn't alarm.
>
> We were actually trying to do most of this through owperl.  We had a
> loop where we would do the simultaneous->convert about once a second,
> but devices were pretty much always showing up in alarming even when
> they were not alarmed.  We had the same issue with the temperature
> sensors (18B20) as the A2D (2450).  It works perfectly with the 2406.
> We spent a couple days on it, then implemented a "software alarming"
> mechanism where we would just read the voltages (or temperature) and
> compare to the last logged value, and only pass on if it met our alarm
> thresholds.
>
> --Jim
>
> On Fri, Feb 26, 2010 at 2:59 AM, Pascal Baerten
> <pascal.baer...@gmail.com>  wrote:
>> Just note that it is not sufficient to poll alarm directory to discover
>> units with threshold voltages .
>> The alarm condition is only set after a conversion. You have to trigger this
>> conversion in you polling loop via a simultaneous command.
>>
>> Pascal
>>
>>
>> 2010/2/26 Alessio Sangalli<ale...@manoweb.com>
>>>
>>> On 02/25/2010 04:15 PM, Paul Alfille wrote:
>>>> When in alarm condition, the device should appear in the /alarm
>>>> directory.
>>>>
>>>> OWFS won't automatically poll the device, you need to do this in your
>>>> program. (It can be as simple as a shell script with a loop and a
>>>> "sleep" command).
>>>
>>>
>>> Oh ok this makes sense.
>>>
>>> I am actually using owread and owwrite right now in my scripts; I guess
>>> the syntax will be similar
>>>
>>> bye
>>> as
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel&#174; Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Owfs-developers mailing list
>>> Owfs-developers@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>>
>>
>> --
>> Pascal
>> www.brain4home.eu
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Owfs-developers mailing list
>> Owfs-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to