Re: [Owfs-developers] Announcing a new Python library

2018-09-04 Thread Jan Kandziora
Am 05.09.2018 um 05:20 schrieb Matthias Urlichs via Owfs-developers:
> Hi,
> 
> I'm writing a new high-level asynchronous Python library to talk
> to owserver.
> 
> It features multiple persistent server connections, transparent
> support for DS2409 couplers, automatic retries when he server is
> busy or the connection breaks, object-oriented design,
> auto-generating accessor methods for bus slaves (based on the
> server's /structure tree), reporting state changes via an async
> event stream, and more.
> 
> On the TODO list: auto-polling (both distinct and via
> /simultaneous), alarm handling.
> 
> Check it out at: https://github.com/python-trio/trio-owfs
> 
These are nice features, but the real thing is aggregates and logical
abstraction. The latter is needed for automatically setting up chips
according to the modules they are put on after their power-on.

Because power-on and unknown states of remote devices is what happens
on a hot-pluggable bus all the time. Alarm handling comes in handy
there and can also be used for other purposes. I found that writing a
simple class hierachy in Tcl for a project using OWFS, which does
roughly what you intend.

So my advice from pratice is basing all the automatical mechanisms on
a logical abstraction of a whole peripheral, with the Onewire stuff
being only a part of a bigger picture.


The DS2409 is already transparently supported by owlib. Not sure what
you want to put on top.

Kind regards

Jan

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 1-wire Capacitors Question

2018-09-04 Thread Matthias Urlichs via Owfs-developers
On 04.09.2018 20:37, Loren Amelang wrote:
> I have a single bus with ten parasitic 18B20s spread along close to 100' of 
> cable

Wow. Frankly I wouldn't even dream of doing that without a 5V wire.

My basement bus would have required close to twice that lenght if I had
run it as a single straight bus. I opted to isolate the side chains with
a couple of strategically inserted DS2409 couplers instead.

-- 
-- Matthias Urlichs


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] Announcing a new Python library

2018-09-04 Thread Matthias Urlichs via Owfs-developers
Hi,

I'm writing a new high-level asynchronous Python library to talk to
owserver.

It features multiple persistent server connections, transparent support
for DS2409 couplers, automatic retries when he server is busy or the
connection breaks, object-oriented design, auto-generating accessor
methods for bus slaves (based on the server's /structure tree),
reporting state changes via an async event stream, and more.

On the TODO list: auto-polling (both distinct and via /simultaneous),
alarm handling.

Check it out at: https://github.com/python-trio/trio-owfs

-- 
-- Matthias Urlichs




signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 1-wire Capacitors Question

2018-09-04 Thread Laurent FAILLIE via Owfs-developers
hi Loren,

   Le mardi 4 septembre 2018 à 21:00:45 UTC+2, Loren Amelang 
 a écrit :  
 
 > Another thing that helped was adding a 1N5711 Schottky diode and a 
 > 1.5KE20A-T TVS at each end of the> bus (it is driven from the middle). 
It's for lightning protection ?If so, did you has close lightning during those 
years ? Because I had 2 lightnings that hit very closely and burn one of my 
probe.How are they connected ?
Thanks
  --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 1-wire Capacitors Question

2018-09-04 Thread Loren Amelang
> Date: Tue, 4 Sep 2018 08:52:07 + (UTC)
> From: Laurent FAILLIE 
> 
> The capacitor has not to be put on the buses (otherwise, you will disturb
> 1-wire signals) but on the GND and Vcc pin of the DS2482-800.As far I
> remember, I've put a 0.1uF ... (not sure :) ). Bye

I have a single bus with ten parasitic 18B20s spread along close to 100' of 
cable, driven at 5V by an ancient microcomputer via active pullup and pulldown 
transistors. I found a 0.02 uf capacitor across the bus connection (yes, 
between signal and ground) at the controller end hid the intermittent noise 
problem that was causing storms of temperature errors. It drastically slows the 
signal rise times, but doesn't seem to hurt readings. Of course I may have 
stronger drive than a modern interface, especially if it is 3V. But try it...  
Definitely helped here. 
 
Another thing that helped was adding a 1N5711 Schottky diode and a 1.5KE20A-T 
TVS at each end of the bus (it is driven from the middle). 
 
My system just started its 20th year of continuous operation...  Using 1-Wire 
for 16 of them. 
 
Loren
 
| Loren Amelang | lo...@pacific.net |




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 1-wire Capacitors Question

2018-09-04 Thread Laurent FAILLIE via Owfs-developers
The capacitor has not to be put on the buses (otherwise, you will disturb 
1-wire signals) but on the GND and Vcc pin of the DS2482-800.As far I remember, 
I've put a 0.1uF ... (not sure :) ).
Bye
 

Le mardi 4 septembre 2018 à 10:41:33 UTC+2, Mick Sulley  
a écrit :  
 
  
Thanks for the reply.  
 
 
Yes the adapter is based upon the DS2482-800.  What value of capacitor and 
should it be at the adapter or the far end of the bus?  Do I just need one or 
one on each bus?
 
Thanks
 
Mick
 
 
 On 04/09/18 00:22, Laurent FAILLIE via Owfs-developers wrote:
  
 
 Hi, 
  If the "" is based on DS2482-800, you need an efficient decoupling capacitor 
b/w it's Vcc and GND pins and/or a very stable power supply. 
  I faced such issue some weeks back (shared on this list), and securing my GND 
path + a decoupling capacitor seem having corrected this issue. 
  Bye 
  Laurent
   
   
  
 --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot 
  
 ___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
 
 --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! 
http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
  --
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] 1-wire Capacitors Question

2018-09-04 Thread Mick Sulley

Thanks for the reply.

Yes the adapter is based upon the DS2482-800.  What value of capacitor 
and should it be at the adapter or the far end of the bus?  Do I just 
need one or one on each bus?


Thanks

Mick


On 04/09/18 00:22, Laurent FAILLIE via Owfs-developers wrote:

Hi,

If the "" is based on DS2482-800, you need an efficient decoupling 
capacitor b/w it'sVcc and GND pins and/or a very stable power supply.


I faced such issue some weeks back (shared on this list), and securing 
my GND path + a decoupling capacitor seem having corrected this issue.


Bye

Laurent



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers