A single instance of libowcapi can bind to any number of 1-wire adapters. 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. You could probably simulate dynamic serial connections with placeholder owserver ip addresses, but that's a little complex. 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. Paul Alfille On Mon, Dec 13, 2010 at 12:19 PM, Marcus Priesch <[email protected]> wrote: > Hi Paul, > > + in my application i am using pyowfs ... > + inside pyowfs i load the libowcapi via ctypes ... > > but if i have two adapters connected, initialisation of a newly imported > libowcapi resets all other libowcapi "instances" to the same > interface ... which is definitely not what i want ... :( > > as i havent thought about this earlier (no two adapters present at the > same time) - it is clear to me that when loading a lib via ctypes - i > get the possibility to call the functions therein - and libowcapi is not > designed to have different connections to different devices open > concurrently - at least the api doesnt return you and handles ... just > tells you if initialisation was ok or not ... > > so, these questions arise: > > + are there other possibilities (other libs within owfs) that i can > use for this - that can handle arbitary 1w-adapters (appearing and > disappearing randomly over time) > > + would it be possible (if not too much changes in other places) to > enhance libowcapi to return a handle you pass over to all > functions it provides, to have at least the possibility to have > more concurrent connections open at once - or is owfs limiting > here by design ... at least i hope not ;) > > or do i have to initialise owcapi everytime i am accessing owfs if i > have more than one adapter ... i.e. ds2490 + linkusb, 2x linkusb ... > > as this is currently rather slow (4 seconds until linkusb led flashes > first time) ... i would not be *very* happy with this solution ;) > > however i am currently running ... 2.8p3 > > so, any help would be greatly appreciated ... > > thanks, > 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 > ------------------------------------------------------------------------------ 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
