Yves, We've run into this this issue before: trying to identify a USB adapter by usb address. We found that the best way was to use the unique 1-wire ID that the adapter has included rather than playing with the operating system's issues.
In your case, you will know from static testing , which 81.xxx id is associated with each of your two buses. I'd use that information to do the work. Two possible methods: 1. A single program that changes it's behavior based on which id it finds. Start one instance with -u1 and the other with -u2. 2. Start two owservers, owserver -u1 -p 4001 owserver -u2 -p 4002 Then have a simple shell script that links the right owserver port to the right program. test [owdir -p 4001 | grep 81.xxxx] etc. ---------------------- If you don't like these options, owfs could be altered to scan through the USB devices and only link when it sees a particular ID. I'd prefer not to add such a specific switch. Paul Alfille On Tue, Dec 23, 2008 at 9:00 AM, Paul Alfille <[email protected]>wrote: > From the Help Forum: > -------------------------------- > By: yautran > > I am new to onewire, > I have set up two 1wire net. connected to two usb ports. > The first net read ID iButtons and unlock doors. > The second read the temperature in the rooms of the house. > > I just do not know how to tell owfs instance 1 to talk to the ID wire, > connected > to usb 1, and owfs instance 2 to read the temp wire connected to usb2. > I have used the -u and -u2 param but it is really tricky. I'd rather prefer > to tell owfs which physical usb to connect to. > for instance doing a lsusb gives : > Bus 005 Device 003: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, > 1-Wire > adapter > Bus 004 Device 002: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, > 1-Wire > adapter > > Adding to the -u the bus/device would remove the uncertainty, of course the > device number increasing when plug/unplugging the adapter would still be > a problem. > > > I can contribute if necessary. > > Yves > >
------------------------------------------------------------------------------
_______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
