Re: usb_find_devices() in libusb winxp
ragasgupta <sagar.c <at> ge.com>
2009-04-02 07:53:51 GMT
oki will look into that..
neerajdub wrote:
>
> HI sagar,
> i am not aware of any such function, any way you can use some dll reader
> and
> see the functions it supports or browse through the usb.h file .
>
> On 4/2/09, ragasgupta <sagar.c <at> ge.com> wrote:
>>
>>
>> thanks for the reply..
>> is there any function in libusb that can find the no:of devices
>> attached??
>>
>>
>> neerajdub wrote:
>> >
>> > it only shows true or false value , if any device is there matchinf
>> libusb
>> > driver or not..
>> >
>> > On Wed, Apr 1, 2009 at 11:27 AM, C, Sagar (GE Healthcare)
>> > <Sagar.C <at> ge.com>wrote:
>> >
>> >>
>> >>
>> >> hello all,
>> >> i am working on a method to read data from USB device using libusb
>> win32
>> >> package.
>> >> i am trying to use the bulk.c program provided in zip file of the
>> libusb
>> >> download.
>> >> i am using Borland c++ compiler in winxp os.
>> >>
>> >> the problem is that the function
>> >> usb_find_busses() is working giving me the no of busses on my pc but
>> >> usb_find_devices() is not working. it is not showing me any data on
>> how
>> >> many USB devices connected to the busses.i have a usb mouse connected
>> >> to my pc.
>> >>
>> >>
>> >> int main(void)
>> >> {
>> >> usb_dev_handle *dev ; /* the device handle */
>> >> char tmp[BUF_SIZE];
>> >> int a;
>> >>
>> >> usb_init(); /* initialize the library */
>> >> usb_find_busses(); /* find all busses */
>> >> usb_find_devices(); /* find all connected devices */
>> >> a=usb_find_devices();
>> >> printf("%d\n",a);
>> >> }
>> >>
>> >> when i print the variable a it is showing as 0;
>> >>
>> >> please help me.. thanks in advance.
>> >>
>> >>
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Libusb-win32-devel mailing list
>> >> Libusb-win32-devel <at> lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>> >>
>> >
>> >
>> ------------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Libusb-win32-devel mailing list
>> > Libusb-win32-devel <at> lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>> >
>> >
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/usb_find_devices%28%29-in-libusb-winxp-tp22819699p22840491.html
>> Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Libusb-win32-devel mailing list
>> Libusb-win32-devel <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Libusb-win32-devel mailing list
> Libusb-win32-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
>
--
--
View this message in context: http://www.nabble.com/usb_find_devices%28%29-in-libusb-winxp-tp22819699p22842735.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
------------------------------------------------------------------------------