This is strange... I have added some debug-output during the BUS_select() and BUS_first() before the loop. It seems like it fails there even if the usb-handler is closed and reopened... and then it doesn't find any 1-wire devices on the adapter... strange..
I also set the ds1420 id at startup now... Found some minor problems if not doing it, so I'll send you a new version to try. /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