Hi Paul,
thanks for your answer ...
Am Montag, den 13.12.2010, 14:25 -0500 schrieb Paul Alfille:
> A single instance of libowcapi can bind to any number of 1-wire
> adapters.
yes, but only on startup - you cant add/delete adapters (at least
usb-serial ones - afaik ?!?)
> I don't know of owpython supports this. Even if not, you can
> bind to owserver and owserver can bind to any number of 1-wire
> adapters.
>
> Dynamic addption/delation of 1-wire masters in implemented for usb,
> Avahi/Bonjour and the w1 kernel module.
ok ...
> You could probably simulate dynamic serial connections with
> placeholder owserver ip addresses, but that's a little complex.
... hmmm, can you please be a bit more specific here ... ;)
> Allowing multiple concurrent libowcapi would require a bit of work --
> there is some global data that would have to be encapsulated. I can
> work on that if the other solutions are insufficient. Probably we'd
> make a new library.
Yes, i took a look at the code ... and for me the whole thing is not
meant to be initalised multiple times ... ,)
as i will need it tomorrow ... ;) ... i came up with the following until
now:
for any usb device i detect :
+ start single owserver (with "-u<usb_id>" or "--LINK=/dev/ttyUSB..")
serving on different ports and
+ access them via pyowfs' libowcapi ("-s localhost:<port>")
when device disappears :
- kill owserver process
- cleanup
needs working management of port numbers - but i think i can handle this
with some nice metaclass magic ;)
hopefully this doesnt mix up ... but i think this could be a viable
solution ... in a plug & pray world ...
what do you think ?
regarding developing a new library: yes, it would be great - at least
for me :) - to have a simple library (like owcapi) which i can wrap
nicely into python ... and which can run several owfs instances in
parallel ... but assuming the work that needs to be done for such a
thing ... i would like to better not have it done *now* - but to spend
some time on it's design ... ;)
regards,
marcus.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers