|
From: Stephan M. <ste...@we...> - 2007-01-22 15:47:48
|
Did you install the driver=3F Does the test program testlibusb-win.exe=20
find any devices=3F
Stephan
> Hi all,=20
> =20
> I have a small program to show list of connected usb devices. It works f=
ine under Linux, but when I port it into libusb-win32, it doesn't - it doe=
sn't detect any device! And I really don't know why :( =20
> =20
> Attached example - testlibusb.c doesn't detect any device too.=20
> =20
> I'm using WinXP, libusb-win32-snapshot-20060827.=20
> =20
> Here is my code:=20
> =20
> #include <stdio.h>=20
> #include "usb.h"=20
> =20
> int print=5Fdevice(struct usb=5Fdevice *dev)=20
> {=20
> usb=5Fdev=5Fhandle *udev;=20
> int ret, i;=20
> =20
> printf("dev:%i\n", dev);=20
> udev =3D usb=5Fopen(dev);=20
> printf("udev:%i", udev);=20
> =20
> printf("#%x - %x\n", dev->descriptor.idVendor, dev->descriptor.idProduct=
);=20
> =20
> for (i =3D 0; i < dev->num=5Fchildren; i++)=20
> print=5Fdevice(dev->children[i]);=20
> =20
> return 0;=20
> }=20
> =20
> int main(int argc, char *argv[])=20
> {=20
> struct usb=5Fbus *bus;=20
> =20
> usb=5Finit();=20
> usb=5Fset=5Fdebug(0);=20
> =20
> usb=5Ffind=5Fbusses();=20
> usb=5Ffind=5Fdevices();=20
> =20
> for (bus =3D usb=5Fget=5Fbusses(); bus; bus =3D bus->next) {=20
> struct usb=5Fdevice *dev;=20
> printf("bus:%i\n", bus);=20
> printf("bus->devices:%i\n", bus->devices);=20
> for (dev =3D bus->devices; dev; dev =3D dev->next) {=20
> print=5Fdevice(dev);=20
> }=20
> }=20
> =20
> return 0;=20
> }=20
>=20
> output:
> bus:4846846
> bus->devices:0
> =20
> Can anyone help me, please... =3F I've installed libusb0.dll into program'=
s directory and then into system32, but it still doesn't work. Thanx in ad=
vance.=20
>=20
> ------------------------------------------------------------------------=
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share =
your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php=3Fpage=3Djoin.php&p=3Dsourceforge&CID=3DDEVDE=
V
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>=20
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/=3Fmc=3D022222
|
|
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
>
>
>
|
|
From: Stephan M. <Ste...@ia...> - 2007-01-23 13:09:28
|
Download the DDK from Microsoft's web site and take a look
at the 'usbview' example. This may be what you are looking
for.
Stephan
> Thank You for response. No, I didn't know that I need it :( I think,
> that it is too complex for me - to install a special driver - for my
> simple application. I only want to detect all connected USB=20
> devices... (Do I need a special drivers for all devices??? )... Is=20
> there any other way to reach this - detecting connected USB devices=20
> under Windows? Maybe without libusb-win32? Does anyone know?=20
>=20
> Wolek.
>=20
> > ------------ 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
> > ----------------------------------------
> >=20
> > Did you install the driver? Does the test program testlibusb-win.exe=20
> > find any devices?
> >=20
> > Stephan
> >=20
> >=20
> > > Hi all,=20
> > >=20
> > > I have a small program to show list of connected usb devices.=20
Itworks fine
> > under Linux, but when I port it into libusb-win32, it doesn't - it=20
doesn't
> > detect any device! And I really don't know why :(=20
> > >=20
> > > Attached example - testlibusb.c doesn't detect any device too.=20
> > >=20
> > > I'm using WinXP, libusb-win32-snapshot-20060827.=20
> > >=20
> > > Here is my code:=20
> > >=20
> > > #include <stdio.h>=20
> > > #include "usb.h"=20
> > >=20
> > > int print=5Fdevice(struct usb=5Fdevice *dev)=20
> > > {=20
> > > usb=5Fdev=5Fhandle *udev;=20
> > > int ret, i;=20
> > >=20
> > > printf("dev:%i\n", dev);=20
> > > udev =3D usb=5Fopen(dev);=20
> > > printf("udev:%i", udev);=20
> > >=20
> > > printf("#%x - %x\n", dev->descriptor.idVendor, dev->descriptor.
> idProduct);=20
> > >=20
> > > for (i =3D 0; i < dev->num=5Fchildren; i++)=20
> > > print=5Fdevice(dev->children[i]);=20
> > >=20
> > > return 0;=20
> > > }=20
> > >=20
> > > int main(int argc, char *argv[])=20
> > > {=20
> > > struct usb=5Fbus *bus;=20
> > >=20
> > > usb=5Finit();=20
> > > usb=5Fset=5Fdebug(0);=20
> > >=20
> > > usb=5Ffind=5Fbusses();=20
> > > usb=5Ffind=5Fdevices();=20
> > >=20
> > > for (bus =3D usb=5Fget=5Fbusses(); bus; bus =3D bus->next) {=20
> > > struct usb=5Fdevice *dev;=20
> > > printf("bus:%i\n", bus);=20
> > > printf("bus->devices:%i\n", bus->devices);=20
> > > for (dev =3D bus->devices; dev; dev =3D dev->next) {=20
> > > print=5Fdevice(dev);=20
> > > }=20
> > > }=20
> > >=20
> > > return 0;=20
> > > }=20
> > >=20
> > > output:
> > > bus:4846846
> > > bus->devices:0
> > >=20
> > > Can anyone help me, please... ? I've installed libusb0.dll into=20
program's
> > directory and then into system32, but it still doesn't work. Thanx
> in advance.=20
> > >=20
> > >=20
-------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance=20
> to share your
> > > opinions on IT & business topics through brief surveys - and earn=20
cash
> > >=20
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
> > > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> > > Libusb-win32-devel mailing list
> > > Lib...@li...
> > > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> > >=20
> >=20
> >=20
> >=20
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> > Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und=20
kostenlos.
> > Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=3D022222
> >=20
> >=20
> >=20
-------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to=20
share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >=20
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
> > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> > Libusb-win32-devel mailing list
> > Lib...@li...
> > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> >=20
> >=20
> >=20
>=20
>=20
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share=20
your
> opinions on IT & business topics through brief surveys - and earn cash
>=20
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>=20
|