Can you try this command after you have the problem...

> ls -l /proc/`pidof owserver`/fd/
total 5
lrwx------  1 root root 64 Jul  7 10:54 0 -> /dev/pts/13
lrwx------  1 root root 64 Jul  7 10:54 1 -> /dev/pts/13
lrwx------  1 root root 64 Jul  7 10:54 2 -> /dev/pts/13
lrwx------  1 root root 64 Jul  7 10:54 4 -> socket:[4120248]
lrwx------  1 root root 64 Jul  7 10:54 5 -> /proc/bus/usb/004/062

It will show owserver's open file-descriptors to the usb-adapters.
In this case one is open and seem to be working... I was a bit worried
about it since you get an error message when usb_release_interface() is
called according to the output you sent.

If you for some reason have many file-descriptors open to the same
usb-device there are other things to fix for me.

BTW: which kernel do you use?

/Christian



On Thu, 2005-07-07 at 08:58 +0200, Jan Kandziora wrote:
> Hallo Christian Magnusson, am Donnerstag, 7. Juli 2005 00:17 schriebst du:
> > Could you try a couple of things...
> > Does your adapter reconnect if you unplug it manually and then
> > insert it again?
> >
> > If you look in owfs/modules/owlib/src/c/ow_ds9490.c, then find following
> > comment on row 437 or something..
> > LEVEL_DEFAULT("Found device [%s] on adapter [%s] (want: %s)\n", i);
> >
> > Change "#if 0" to "#if 1" just a few lines before that to get some more
> > info about devices found on the adapter which recently was found.
> >
> Changed that, compiled, installed - But I don't get the message in the log.
> It seems 
> 
>       /* Do a quick directory listing and find the DS1420 id */
>       (ret=BUS_select(pn)) || (ret=BUS_first(sn,pn)) ;
>       while (ret==0) {
> #if 1
>         char id[17];
>         char id2[17];
>         bytes2string(id, sn, 8) ;
>         id[16] = 0;
>         bytes2string(id2, pn->in->connin.usb.ds1420_address, 8) ;
>         id2[16] = 0;
>         LEVEL_DEFAULT("Found device [%s] on adapter [%s] (want: %s)\n", id, 
> name, id2);
> #endif
>         if(!memcmp(sn, pn->in->connin.usb.ds1420_address, 8)) break;
> 
>         (ret=BUS_select(pn)) || (ret=BUS_next(sn,pn)) ;
>       }
> 
> does never return (ret==0). What next?
> 
> Kind regards
> 
>       Jan
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
-- 
Christian Magnusson <[EMAIL PROTECTED]>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to