|
From: <ww...@se...> - 2007-01-23 09:46:57
|
Thank You for response. No, I didn't know that I need it :( I think, th=
at it is too complex for me - to install a special driver - for my simp=
le application. I only want to detect all connected USB devices... (Do =
I need a special drivers for all devices??? )... Is there any other way=
to reach this - detecting connected USB devices under Windows? Maybe w=
ithout libusb-win32? Does anyone know?
Wolek.
> ------------ P=F9vodn=ED zpr=E1va ------------
> Od: Stephan Meyer <ste...@we...>
> P=F8edm=ECt: Re: [Libusb-win32-devel] No devices found
> Datum: 22.1.2007 16:48:10
> ----------------------------------------
>
> Did you install the driver? Does the test program testlibusb-win.exe =
> find any devices?
>
> Stephan
>
>
> > Hi all,
> >
> > I have a small program to show list of connected usb devices. It wo=
rks fine
> under Linux, but when I port it into libusb-win32, it doesn't - it do=
esn't
> detect any device! And I really don't know why :(
> >
> > Attached example - testlibusb.c doesn't detect any device too.
> >
> > I'm using WinXP, libusb-win32-snapshot-20060827.
> >
> > Here is my code:
> >
> > #include <stdio.h>
> > #include "usb.h"
> >
> > int print_device(struct usb_device *dev)
> > {
> > usb_dev_handle *udev;
> > int ret, i;
> >
> > printf("dev:%i\n", dev);
> > udev =3D usb_open(dev);
> > printf("udev:%i", udev);
> >
> > printf("#%x - %x\n", dev->descriptor.idVendor, dev->descriptor.idPr=
oduct);
> >
> > for (i =3D 0; i < dev->num_children; i++)
> > print_device(dev->children[i]);
> >
> > return 0;
> > }
> >
> > int main(int argc, char *argv[])
> > {
> > struct usb_bus *bus;
> >
> > usb_init();
> > usb_set_debug(0);
> >
> > usb_find_busses();
> > usb_find_devices();
> >
> > for (bus =3D usb_get_busses(); bus; bus =3D bus->next) {
> > struct usb_device *dev;
> > printf("bus:%i\n", bus);
> > printf("bus->devices:%i\n", bus->devices);
> > for (dev =3D bus->devices; dev; dev =3D dev->next) {
> > print_device(dev);
> > }
> > }
> >
> > return 0;
> > }
> >
> > output:
> > bus:4846846
> > bus->devices:0
> >
> > Can anyone help me, please... ? I've installed libusb0.dll into pro=
gram's
> directory and then into system32, but it still doesn't work. Thanx in=
advance.
> >
> > -------------------------------------------------------------------=
------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to s=
hare your
> > opinions on IT & business topics through brief surveys - and earn c=
ash
> > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&=
CID=3DDEVDEV
> > _______________________________________________
> > Libusb-win32-devel mailing list
> > Lib...@li...
> > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> >
>
>
> _____________________________________________________________________=
__
> Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und kost=
enlos.
> Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=3D022222
>
>
> ---------------------------------------------------------------------=
----
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to sha=
re your
> opinions on IT & business topics through brief surveys - and earn cas=
h
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI=
D=3DDEVDEV
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
>
>
|