Phil White | 13 Jun 2012 02:36

1-Wire Presence Pulse

Hi All,

This may, or may not, be applicable to this list. However, I am hoping
that someone here knows enough about MicroLAN to be able to clarify
something for me.

Up to know, all my sensors have been polled. Simplistically speaking,
the PC asks "What is the temperature now?"

What I am pondering is the ability for a sensor to suddenly, without
any warning, say "Gosh! It's hot here".

Now, some of the iButtons come with a feature called a Presence Pulse
- although I am also interested in getting events via a DS2408 switch,
and the DS18B20 comes with an alarm function.

Questions:
 Is this possible (preferable, but not necessarily, with OWFS) without
polling the chip all the time?
 what are my options?

Many thanks

Phil

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
(Continue reading)

Eloy Paris | 13 Jun 2012 03:01

Re: 1-Wire Presence Pulse

Hi Phil,

On 06/12/2012 08:36 PM, Phil White wrote:

> Hi All,
>
> This may, or may not, be applicable to this list. However, I am hoping
> that someone here knows enough about MicroLAN to be able to clarify
> something for me.
>
> Up to know, all my sensors have been polled. Simplistically speaking,
> the PC asks "What is the temperature now?"
>
> What I am pondering is the ability for a sensor to suddenly, without
> any warning, say "Gosh! It's hot here".
>
> Now, some of the iButtons come with a feature called a Presence Pulse
> - although I am also interested in getting events via a DS2408 switch,
> and the DS18B20 comes with an alarm function.
>
> Questions:
>   Is this possible (preferable, but not necessarily, with OWFS) without
> polling the chip all the time?
>   what are my options?

The 1-Wire protocol does not allow for slave-initiated communications; 
everything is initiated by the master.

All 1-Wire devices have this "presence pulse" feature that you mention 
-- that's a fundamental part of the protocol, and all slave devices need 
(Continue reading)

Roberto Spadim | 13 Jun 2012 03:21
Picon

Re: 1-Wire Presence Pulse

i don´t know if this exists but... in advantech and others rs485 modules, exists a sincronous read mode, where you send a command to all slaves and they save the value into the memory

after a time you can get all slave values
for example in a ds18b20 you will need 1 second to convert temperature
well... 1 second converting temperature in a network with 100 ds18b20 still 1 second... the time you will spent later is getting 100 values from memory, this is faster than get 1 temperature from each ds18b20 (100 seconds at least)
i think it´s called sincronous ou parallel i didn´t tested it in owfs but i think it exists, must confirm with guys here

2012/6/12 Eloy Paris <peloy <at> chapus.net>
Hi Phil,

On 06/12/2012 08:36 PM, Phil White wrote:

> Hi All,
>
> This may, or may not, be applicable to this list. However, I am hoping
> that someone here knows enough about MicroLAN to be able to clarify
> something for me.
>
> Up to know, all my sensors have been polled. Simplistically speaking,
> the PC asks "What is the temperature now?"
>
> What I am pondering is the ability for a sensor to suddenly, without
> any warning, say "Gosh! It's hot here".
>
> Now, some of the iButtons come with a feature called a Presence Pulse
> - although I am also interested in getting events via a DS2408 switch,
> and the DS18B20 comes with an alarm function.
>
> Questions:
>   Is this possible (preferable, but not necessarily, with OWFS) without
> polling the chip all the time?
>   what are my options?

The 1-Wire protocol does not allow for slave-initiated communications;
everything is initiated by the master.

All 1-Wire devices have this "presence pulse" feature that you mention
-- that's a fundamental part of the protocol, and all slave devices need
to generate a presence pulse right after they detect a reset pulse
generated by the master.

I think the closest option to a non-polling solution is to use the alarm
function that some 1-Wire devices offer -- it still requires polling but
it can minimize it since only devices in an alarmed state would be
contacted. The way the alarm function works is that only devices that
are in an alarmed state will respond to a conditional search, so then
you would only read the sensors that show up in a conditional search.

Cheers,

Eloy Paris.-

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers




--
Roberto Spadim
Spadim Technology / SPAEmpresarial
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Eloy Paris | 13 Jun 2012 19:31

Re: 1-Wire Presence Pulse

Hi Roberto,

On 06/12/2012 09:21 PM, Roberto Spadim wrote:

> i don´t know if this exists but... in advantech and others rs485
> modules, exists a sincronous read mode, where you send a command to all
> slaves and they save the value into the memory
> after a time you can get all slave values

This can also be accomplished with the DS18B20 -- you send the Skip ROM 
command followed by the Convert T command. It's called simultaneous 
temperature conversion. I have never used it but I understand that OWFS 
supports it (the DS18B20s must be powered for this to work).

> for example in a ds18b20 you will need 1 second to convert temperature
> well... 1 second converting temperature in a network with 100 ds18b20
> still 1 second... the time you will spent later is getting 100 values
> from memory, this is faster than get 1 temperature from each ds18b20
> (100 seconds at least)
> i think it´s called sincronous ou parallel i didn´t tested it in owfs
> but i think it exists, must confirm with guys here

Yup, my understanding is that it exists and works. There is a 
"simultaneous" directory at the root of the OWFS, with elements inside 
it that I understand are to be used to make use of the "simultaneous 
temperature conversion" feature.

Cheers,

Eloy Paris.-

>
> 2012/6/12 Eloy Paris <peloy <at> chapus.net <mailto:peloy <at> chapus.net>>
>
>     Hi Phil,
>
>     On 06/12/2012 08:36 PM, Phil White wrote:
>
>      > Hi All,
>      >
>      > This may, or may not, be applicable to this list. However, I am
>     hoping
>      > that someone here knows enough about MicroLAN to be able to clarify
>      > something for me.
>      >
>      > Up to know, all my sensors have been polled. Simplistically speaking,
>      > the PC asks "What is the temperature now?"
>      >
>      > What I am pondering is the ability for a sensor to suddenly, without
>      > any warning, say "Gosh! It's hot here".
>      >
>      > Now, some of the iButtons come with a feature called a Presence Pulse
>      > - although I am also interested in getting events via a DS2408
>     switch,
>      > and the DS18B20 comes with an alarm function.
>      >
>      > Questions:
>      >   Is this possible (preferable, but not necessarily, with OWFS)
>     without
>      > polling the chip all the time?
>      >   what are my options?
>
>     The 1-Wire protocol does not allow for slave-initiated communications;
>     everything is initiated by the master.
>
>     All 1-Wire devices have this "presence pulse" feature that you mention
>     -- that's a fundamental part of the protocol, and all slave devices need
>     to generate a presence pulse right after they detect a reset pulse
>     generated by the master.
>
>     I think the closest option to a non-polling solution is to use the alarm
>     function that some 1-Wire devices offer -- it still requires polling but
>     it can minimize it since only devices in an alarmed state would be
>     contacted. The way the alarm function works is that only devices that
>     are in an alarmed state will respond to a conditional search, so then
>     you would only read the sensors that show up in a conditional search.
>
>     Cheers,
>
>     Eloy Paris.-
>
>     ------------------------------------------------------------------------------
>     Live Security Virtual Conference
>     Exclusive live event will cover all the ways today's security and
>     threat landscape has changed and how IT managers can respond.
>     Discussions
>     will include endpoint security, mobile security and the latest in
>     malware
>     threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>     _______________________________________________
>     Owfs-developers mailing list
>     Owfs-developers <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Phil White | 16 Jun 2012 13:43

Re: 1-Wire Presence Pulse

Hello All,

Thanks for the replies. (Sorry for any delay in replying - I only
logon at intervals).

Everything so far is as I understood it. My problem is that I don't
actually understand it properly - but because I am at the point of
designing a new system, I need to.

On 13 June 2012 02:01, Eloy Paris <peloy <at> chapus.net> wrote:

> All 1-Wire devices have this "presence pulse" feature that you mention
> -- that's a fundamental part of the protocol, and all slave devices need
> to generate a presence pulse right after they detect a reset pulse
> generated by the master.

My belief is that this statement is not correct - and it is this that
has caused the confusion and prompted the original question.
See the difference between the DS1990A and DS1990R (both of which are
in active production). I have carefully compared the two datasheets,
and there is almost no difference - except for these:
 "Upgrade of DS1990A Guarantees Presence Pulse on Contact"
 "Presence Detector Acknowledges When Reader First Applies Voltage"
 "The DS1990R is a fully compatible variant of the DS1990A. In applications
  where a presence pulse on contact is critical, the DS1990R should be
  preferred over the DS1990A."

Additionally, having watched i-button authentication in action, these
devices sit on the bus for a very short amount of time. Is the
controller constantly polling every (say) 125 milliseconds? If so,
this would suggest I cannot mix an i-button lock on the same bus as my
temperature sensors.

As a side example, I have seen circuits using a DS2408 as a keypad
input. Although I don't intend to implement this (directly), I am
bemused as to how it works, bearing in mind I would only press each
button for a fraction of a second in quick succession. Again, it would
suggest to me that the device sits on it's own dedicated bus, and is
polled at a high clock rate.

On 13 June 2012 18:31, Eloy Paris <peloy <at> chapus.net> wrote:

> This can also be accomplished with the DS18B20 -- you send the Skip ROM
> command followed by the Convert T command. It's called simultaneous
> temperature conversion. I have never used it but I understand that OWFS
> supports it (the DS18B20s must be powered for this to work).

This is my current plan - though my (lack of) free time is limiting my
progress. As stated, it requires the DS18B20 to be powered, so I have
been working on a suitable circuit and pcb. (I have not yet
ascertained the best way of how I should deliver the power in, as I
have a long bus length, and all the docs suggest that the use of
adjacent wires has an impact on communication timing and reliability).

Issuing an Alarm Search [ECh] command should simplify my handling of
thermostatic control, and thus reduce the data I am transferring.

Cheers all,

Phil

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
p4trykx | 16 Jun 2012 14:43
Picon

Re: 1-Wire Presence Pulse

W dniu 16.06.2012 o 13:43 Phil White <manx.biz <at> googlemail.com> pisze:

> As a side example, I have seen circuits using a DS2408 as a keypad
> input. Although I don't intend to implement this (directly), I am
> bemused as to how it works, bearing in mind I would only press each
> button for a fraction of a second in quick succession.

DS2408 has latching maybe that's how it works but then there is problem  
which button was pushed first.

--

-- 
Patryk

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Eloy Paris | 16 Jun 2012 22:27

Re: 1-Wire Presence Pulse

Hi Phil,

On 06/16/2012 07:43 AM, Phil White wrote:

> On 13 June 2012 02:01, Eloy Paris<peloy <at> chapus.net>  wrote:
>
>> All 1-Wire devices have this "presence pulse" feature that you mention
>> -- that's a fundamental part of the protocol, and all slave devices need
>> to generate a presence pulse right after they detect a reset pulse
>> generated by the master.
>
> My belief is that this statement is not correct - and it is this that
> has caused the confusion and prompted the original question.

I have no experience with the DS1990A and DS1990R, but after seeing your 
comment that my statement above is incorrect, I read the datasheets for 
both and I still see no indication of a slave that can act on its own, 
i.e. without the master initiating communication first. A slave that can 
do that (initiate communication on its own) would be speaking a protocol 
different than 1-Wire, or a 1-Wire protocol extension that I have never 
heard of.

> See the difference between the DS1990A and DS1990R (both of which are
> in active production). I have carefully compared the two datasheets,
> and there is almost no difference - except for these:
>   "Upgrade of DS1990A Guarantees Presence Pulse on Contact"
>   "Presence Detector Acknowledges When Reader First Applies Voltage"
>   "The DS1990R is a fully compatible variant of the DS1990A. In applications
>    where a presence pulse on contact is critical, the DS1990R should be
>    preferred over the DS1990A."

Yes, I see these comments in the DS1990R datasheet, and I think they are 
misleading (or confusing at best), especially the "Presence Detector 
Acknowledges When Reader First Applies Voltage" one ("acknowledge" only 
shows up *once* in the datasheet, so what do they mean by that??? It 
definitely can mislead someone into thinking that these slave devices 
have a mind of their own).

If you look at the "Initialization" section in both datasheets you'll 
see that they are identical, and that the initialization sequence 
"consists of a reset pulse transmitted by the bus master followed
by presence pulse(s) transmitted by the slave(s)". Additionally, figure 
5 in both datasheets shows the protocol flowchart. I think is is 
obvious, based on the flowcharts, that the devices will not generate a 
presence pulse on their own; a reset pulse from the master needs to 
happen first.

Now, there is obviously a difference between these two parts, and it has 
something to do with a "guarantee that a reset pulse will be generated 
on contact". I don't know exactly what they mean by that, but I suspect 
(and this is just speculation on my part) that the difference is that in 
the case of the DS1990R, its circuitry will collect enough power on 
contact, i.e. after connection to the bus, to generate the presence 
pulse after seeing the reset pulse from the master. This is in contrast 
to the DS1990A, where I *assume* it needs to be connected to the bus for 
a longer time so it can generate the presence pulse.

Note the difference in note #13 in the "ELECTRICAL CHARACTERISTICS" section:

DS1990R: Note 13: Presence pulse after POR is guaranteed by design, not 
production tested.

DS1990A: Note 13: Presence pulse is guaranteed only after a preceding 
reset pulse (tRSTL)

Basically, I think it boils down to: the DS1990R is guaranteed to be 
ready to operate as soon as it is connected to the bus, but the DS1990A 
is not (it requires some minimum time to be connected to the bus before 
it is ready to operate).

Again, this is just my interpretation of the difference between these 
parts. I could be wrong although nothing that I read in these datasheets 
indicates that there is a variation of the 1-Wire protocol, or that 
slaves can initiate communication on their own. If anyone has experience 
with these devices, or knows for sure what they mean by "presence pulse 
guaranteed on connect", I'd love to hear.

> Additionally, having watched i-button authentication in action, these
> devices sit on the bus for a very short amount of time. Is the
> controller constantly polling every (say) 125 milliseconds? If so,
> this would suggest I cannot mix an i-button lock on the same bus as my
> temperature sensors.

Good point. If the slave cannot initiate communications then polling by 
the master is the only option, and you are right in that a reasonable 
polling frequency will be necessary so the user does not experience a 
boring waiting time.

Here's sample code to read a DS1990R (note the polling by calling the 
OWTouchReset() function from the main loop):

http://www.electronics-base.com/index.php/projects/complete-projects/127-ibutton-avr-readout-example-project-used-with-ds1990r-f5

(This code polls 5 times per second.)

I still think you could mix your temperature sensors with these iButton 
locks -- the temperature sensors will generate their presence pulses 
after the reset from the master (say, 125 msecs), but that does not mean 
that you have to read them; you could read them at some other (longer) 
interval that is good for your application.

> This is my current plan - though my (lack of) free time is limiting
> my progress. As stated, it requires the DS18B20 to be powered, so I
> have been working on a suitable circuit and pcb. (I have not yet
> ascertained the best way of how I should deliver the power in, as I
> have a long bus length, and all the docs suggest that the use of
> adjacent wires has an impact on communication timing and
> reliability).

Check out this PCB:

http://www.digitemp.com/dt1a.shtml

Very simple PCB. I used his EagleCAD files and had a bunch made. I am 
using them extensively throughout my house (I didn't put cat5 female 
connectors on all and instead just soldered a small segment of cat5 
cable directly to the PCB and attached a cat5 male connector to the 
other side of the cable, and then into the jack on the wall). You can 
try sending power through the cat5 cable; the above PCB supports that 
(via configuration jumper).

Cheers,

Eloy Paris.-

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Phil White | 18 Jun 2012 20:08

Re: 1-Wire Presence Pulse

Hello Elroy,

Thanks for the reply.

On 16 June 2012 21:27, Eloy Paris <peloy <at> chapus.net> wrote:
> <... snip ...>
> but after seeing your
> comment that my statement above is incorrect, I read the datasheets...

Oh! Please don't interpret my comment as a statement that you are wrong!
It was simply referencing what I understood. As can be deduced from
the preceeding posts, I know *** *** (absolutely nothing) about this -
I just have to rely on Dallas datasheets, which aren't very clear. The
other problem I am noticing more and more is that URLs for datasheets
etc. give a 404 error, so there is less info available.

>> this would suggest I cannot mix an i-button lock on the same bus as my
>> temperature sensors.
>
> Good point. If the slave cannot initiate communications then polling by
> the master is the only option, and you are right in that a reasonable
> polling frequency will be necessary so the user does not experience a
> boring waiting time.

Good. Well, that's as good as a definite for me that a lock facility
should be on a separate circuit. However, a switch sensor, which I
only need to poll every minute, is quite feasible.

Best regards,

Phil.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Eloy Paris | 18 Jun 2012 20:21

Re: 1-Wire Presence Pulse

Hi Phil,

On 06/18/2012 02:08 PM, Phil White wrote:

> Hello Elroy,
>
> Thanks for the reply.
>
> On 16 June 2012 21:27, Eloy Paris<peloy <at> chapus.net>  wrote:
>> <... snip ...>
>> but after seeing your
>> comment that my statement above is incorrect, I read the datasheets...
>
> Oh! Please don't interpret my comment as a statement that you are wrong!

Haha. Don't worry about it -- I can be wrong! Didn't mean to imply that 
I am infallible; nobody is, actually ;-)

> It was simply referencing what I understood. As can be deduced from
> the preceeding posts, I know *** *** (absolutely nothing) about this -

I know just enough to be dangerous but I've spent sometime getting 
myself familiar with the 1-Wire protocol since I created a 
microcontroller-based 1-Wire slave that I am using in production around 
my house, and coexisting with DS18B20s.

> I just have to rely on Dallas datasheets, which aren't very clear. The
> other problem I am noticing more and more is that URLs for datasheets
> etc. give a 404 error, so there is less info available.

Yup, the datasheets aren't very clear in some cases. I like the 1-Wire 
flowcharts and 1-Wire timing diagrams in the datasheets, but the 
datasheet that says that the presence pulse is "guaranteed on contact" 
is a bit confusing for sure.

>>> this would suggest I cannot mix an i-button lock on the same bus as my
>>> temperature sensors.
>>
>> Good point. If the slave cannot initiate communications then polling by
>> the master is the only option, and you are right in that a reasonable
>> polling frequency will be necessary so the user does not experience a
>> boring waiting time.
>
> Good. Well, that's as good as a definite for me that a lock facility
> should be on a separate circuit. However, a switch sensor, which I
> only need to poll every minute, is quite feasible.

Good luck with your project! Let us know how things go.

Cheers,

Eloy Paris.-

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Eric Vickery | 18 Jun 2012 20:57

Re: 1-Wire Presence Pulse


On 6/16/2012 3:27 PM, Eloy Paris wrote:
> Hi Phil,
>
> On 06/16/2012 07:43 AM, Phil White wrote:
>
>> On 13 June 2012 02:01, Eloy Paris<peloy <at> chapus.net>   wrote:
>>
>>> All 1-Wire devices have this "presence pulse" feature that you mention
>>> -- that's a fundamental part of the protocol, and all slave devices need
>>> to generate a presence pulse right after they detect a reset pulse
>>> generated by the master.
>> My belief is that this statement is not correct - and it is this that
>> has caused the confusion and prompted the original question.
> I have no experience with the DS1990A and DS1990R, but after seeing your
> comment that my statement above is incorrect, I read the datasheets for
> both and I still see no indication of a slave that can act on its own,
> i.e. without the master initiating communication first. A slave that can
> do that (initiate communication on its own) would be speaking a protocol
> different than 1-Wire, or a 1-Wire protocol extension that I have never
> heard of.
There is a way for slaves to announce their presence on the bus by providing a presence pulse when 
they are powered up. I'm not sure if all slaves to this or just some (or all) of the iButtons. Also 
I don't know which masters or software supports this, it is mainly used for things like door lock 
systems where the iButton is used as the security FOB.

Eric

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Eloy Paris | 18 Jun 2012 23:36

Re: 1-Wire Presence Pulse

On 06/18/2012 02:57 PM, Eric Vickery wrote:

> On 6/16/2012 3:27 PM, Eloy Paris wrote:
>> Hi Phil,
>>
>> On 06/16/2012 07:43 AM, Phil White wrote:
>>
>>> On 13 June 2012 02:01, Eloy Paris<peloy <at> chapus.net>    wrote:
>>>
>>>> All 1-Wire devices have this "presence pulse" feature that you mention
>>>> -- that's a fundamental part of the protocol, and all slave devices need
>>>> to generate a presence pulse right after they detect a reset pulse
>>>> generated by the master.
>>> My belief is that this statement is not correct - and it is this that
>>> has caused the confusion and prompted the original question.
>> I have no experience with the DS1990A and DS1990R, but after seeing your
>> comment that my statement above is incorrect, I read the datasheets for
>> both and I still see no indication of a slave that can act on its own,
>> i.e. without the master initiating communication first. A slave that can
>> do that (initiate communication on its own) would be speaking a protocol
>> different than 1-Wire, or a 1-Wire protocol extension that I have never
>> heard of.
> There is a way for slaves to announce their presence on the bus by providing a presence pulse when
> they are powered up. I'm not sure if all slaves to this or just some (or all) of the iButtons. Also
> I don't know which masters or software supports this, it is mainly used for things like door lock
> systems where the iButton is used as the security FOB.

That's pretty weird. That'd kill any communication initiated by the 
master that is taking place when the iButton is powered up.

Not saying I don't believe you, especially since I have no experience 
with these devices, but I'm tempted to order a sample just to further my 
knowledge of the protocol (and a possible extension to it like the one 
being discussed) ;-)

Cheers,

Eloy Paris.-

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Eric Vickery | 19 Jun 2012 00:37

Re: 1-Wire Presence Pulse


There is a way for slaves to announce their presence on the bus by providing a presence pulse when
they are powered up. I'm not sure if all slaves to this or just some (or all) of the iButtons. Also
I don't know which masters or software supports this, it is mainly used for things like door lock
systems where the iButton is used as the security FOB.

> That's pretty weird. That'd kill any communication initiated by the
> master that is taking place when the iButton is powered up.
>
> Not saying I don't believe you, especially since I have no experience
> with these devices, but I'm tempted to order a sample just to further my
> knowledge of the protocol (and a possible extension to it like the one
> being discussed) ;-)
>
> Cheers,
>
> Eloy Paris.-
>
Yes it is rather strange that they allow it. After this thread started the other day I did a Google 
search and found a few references in some Maxim documents and they talked about a communication 
failure because of a presence pulse arriving at the wrong time.

Eric

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Paul Alfille | 20 Jun 2012 03:37
Picon

Re: 1-Wire Presence Pulse

Yes, the presence pulse can disrupt communication. That's one of the reasons there is a built-in retry in owfs for read and write, and very conservative settings for checking checksums and verifying writes.

As I read it, the presence pulse makes more sense in a microprocessor-based system (like an embedded system) where sitting on the line waiting for a presence pulse doesn't require so much overhead.

Some of the bus masters can register the presence pulse if it occurs when they aren't otherwise communicating on the line. We don't use that information in OWFS -- it doesn't fit with our scheme, and it's not reliable. In theory we could use it to invalidate a cached directory, but the tradeoff of extra communication and complexity isn't clear.

Paul Alfille

On Mon, Jun 18, 2012 at 6:37 PM, Eric Vickery <ericvic <at> hobby-boards.com> wrote:

There is a way for slaves to announce their presence on the bus by providing a presence pulse when
they are powered up. I'm not sure if all slaves to this or just some (or all) of the iButtons. Also
I don't know which masters or software supports this, it is mainly used for things like door lock
systems where the iButton is used as the security FOB.

> That's pretty weird. That'd kill any communication initiated by the
> master that is taking place when the iButton is powered up.
>
> Not saying I don't believe you, especially since I have no experience
> with these devices, but I'm tempted to order a sample just to further my
> knowledge of the protocol (and a possible extension to it like the one
> being discussed) ;-)
>
> Cheers,
>
> Eloy Paris.-
>
Yes it is rather strange that they allow it. After this thread started the other day I did a Google
search and found a few references in some Maxim documents and they talked about a communication
failure because of a presence pulse arriving at the wrong time.

Eric

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Michael Markstaller | 26 Jun 2012 02:34
Picon
Favicon

Re: 1-Wire Presence Pulse


On 20.06.2012 03:37, Paul Alfille wrote:
> Yes, the presence pulse can disrupt communication. That's one of
> the reasons there is a built-in retry in owfs for read and write,
> and very conservative settings for checking checksums and verifying
> writes.

After reading *any* DS from Maxim and having a Logicanalyzer, I'd
follow the arguments of Eloy Paris more: there is *no way* for a slave
to talk without the master asking for - DS are misleading there - (but
there are many delays of >200ms in owfs slowing it down significant!
why wait on strong pullup 1s where 750ms [3/4] are asked].. another
topic..)
Will post that in a new thread these days as we really have a
perormance-problem here..

Michael
Jerry Scharf | 13 Jun 2012 04:04

Re: 1-Wire Presence Pulse

Phil,

As has been said, there is no true alarm interrupt. There are some chips 
that can have high and low alarms and a polling mode that only sees 
alarmed sensors.

Still, it is not worth it for me. The cost of doing the actual polling 
for 30 sensors is fairly low if you first send a simultaneous conversion 
message to the bus. With this, it takes a second for the first to answer 
and the rest take well under half a second each to poll. Honestly, the 
added stuff of setting up the limits and making sure they stay set is 
far more than the effort of polling. The more state I have outside my 
software, the more setup complexity I have in code that is less 
exercised/tested. Also, for my control system the target settings can be 
dynamic relative to the situation, so that drives up complexity having 
external state.

If things start taking too long, it is easy to put another bus master in 
and do the simultaneous and poll for each bus separately (this is what I 
do.) OWFS has good threading support.

Now for someone who has static targets, hundreds of sensor on a single 
bus and only a few in alarm, this could be worth it.

This is just my $.02.

jerry

On 06/12/2012 05:36 PM, Phil White wrote:
> Hi All,
>
> This may, or may not, be applicable to this list. However, I am hoping
> that someone here knows enough about MicroLAN to be able to clarify
> something for me.
>
> Up to know, all my sensors have been polled. Simplistically speaking,
> the PC asks "What is the temperature now?"
>
> What I am pondering is the ability for a sensor to suddenly, without
> any warning, say "Gosh! It's hot here".
>
> Now, some of the iButtons come with a feature called a Presence Pulse
> - although I am also interested in getting events via a DS2408 switch,
> and the DS18B20 comes with an alarm function.
>
> Questions:
>   Is this possible (preferable, but not necessarily, with OWFS) without
> polling the chip all the time?
>   what are my options?
>
> Many thanks
>
> Phil
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane