Quantcast

USB 3.0 and libusb-win32

classic Classic list List threaded Threaded
34 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

USB 3.0 and libusb-win32

Xiaofan Chen
There are some reports that libusb-1.0 Windows does not work
with USB 3.0 due to the fact that there are no official Microsoft drivers
and the vendor drivers are not that predictable.

We would like to get users' reports about the success or failure
of using libusb-win32 for device with USB 3.0 ports.

I understand that most likely the libusb-win32 driver is not
used for super-speed USB device now that most of the
super-speed device are USB Mass Storage device (like
external USB 3.0 hard disks). Still it is interesting to know
how existing USB Low/Full/High speed device (using
libusb-win32 driver) performs when being plugged into
a USB 3.0 port.

Thanks in advance.


--
Xiaofan

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Mon, Jun 13, 2011 at 10:21 AM, Xiaofan Chen <[hidden email]> wrote:

> There are some reports that libusb-1.0 Windows does not work
> with USB 3.0 due to the fact that there are no official Microsoft drivers
> and the vendor drivers are not that predictable.
>
> We would like to get users' reports about the success or failure
> of using libusb-win32 for device with USB 3.0 ports.
>
> I understand that most likely the libusb-win32 driver is not
> used for super-speed USB device now that most of the
> super-speed device are USB Mass Storage device (like
> external USB 3.0 hard disks). Still it is interesting to know
> how existing USB Low/Full/High speed device (using
> libusb-win32 driver) performs when being plugged into
> a USB 3.0 port.
>

Travis and I have done some tests with libusb-win32
and libusbk, USB 3.0 ports work so far. We are testing
with both full speed and high speed USB device.


--
Xiaofan

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Christos
Hi,

In the following controller, Win7 64bit, everything is ok in highspeed using libusb-win32 1.2.4.0 and libusbK 3.0.2.10.

UVCView output=============================
Renesas Electronics USB 3.0 Host Controller

DriverKey: {36fc9e60-c465-11cf-8056-444553540000}\0007
VendorID: 1033
DeviceID: 0194
SubSysID: 20931B0A
Revision: 04
=======================================

Christos
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Sun, Jun 26, 2011 at 2:32 AM, Christos <[hidden email]> wrote:

> Hi,
>
> In the following controller, Win7 64bit, everything is ok in highspeed using
> libusb-win32 1.2.4.0 and libusbK 3.0.2.10.
>
> UVCView output=============================
> Renesas Electronics USB 3.0 Host Controller
>
> DriverKey: {36fc9e60-c465-11cf-8056-444553540000}\0007
> VendorID: 1033
> DeviceID: 0194
> SubSysID: 20931B0A
> Revision: 04
> =======================================

Glad to know that. Thanks a lot for the report.


--
Xiaofan

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
Hi Xiaofan,

i have this problem with the same hostcontroller driver: Renesas Electronics USB 3.0 Host Controller with NEC 3.0 driver. The deviceenumeration is ok (like on usb 2.0 port), i can find and open my device, but if i send a usb_set_configuration(my_handle, 1), the function fails with(translation from german): 'libusb0-dll:err [set_configuration] could not set config 1: win error: False Parameter' !!! But to communicate with my device i have to set the configuration value to 1, on this way i have no problems on a usb 2.0 port. If i set the configuration value to 0 (i know, is invalid, but i tested what will be happen), usb_claim_interface() function fails with 'libusb0-dll:err [claim_interface] could not claim interface 0, invalid configuration'. Is this a known problem? Can somebody help me?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Thu, Sep 29, 2011 at 2:27 PM, ivplovbg <[hidden email]> wrote:

> Hi Xiaofan,
>
> i have this problem with the same hostcontroller driver: Renesas Electronics
> USB 3.0 Host Controller with NEC 3.0 driver. The deviceenumeration is ok
> (like on usb 2.0 port), i can find and open my device, but if i send a
> usb_set_configuration(my_handle, 1), the function fails with(translation
> from german): 'libusb0-dll:err [set_configuration] could not set config 1:
> win error: False Parameter' !!! But to communicate with my device i have to
> set the configuration value to 1, on this way i have no problems on a usb
> 2.0 port. If i set the configuration value to 0 (i know, is invalid, but i
> tested what will be happen), usb_claim_interface() function fails with
> 'libusb0-dll:err [claim_interface] could not claim interface 0, invalid
> configuration'. Is this a known problem? Can somebody help me?
>

Have you tried with a USB 2.0 port? If that works, probably you
need to update your Renesas USB Host Controller driver.

If that does not work, probably you have not installed the libusb-win32
driver properly. What is the output for testlibusb-win report?


--
Xiaofan

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
> Have you tried with a USB 2.0 port?
Yes, is running fine. I use the libusb sinse 2004 and i never had a problem with usb_set_configuration.

> If that works, probably you need to update your Renesas USB Host Controller driver.
 Is the newest that i find from 04.2011.

>If that does not work, probably you have not installed the libusb-win32
>driver properly. What is the output for testlibusb-win report?
I dont think the driver is not properly installed. Is working fine on usb 2.0 port on the same PC. Report from testlibusb-win is:
DLL version: 1.2.4.0
Driver version: -1.-1.-1.-1

What i can't understand is, why a value of '1' for configuration is a 'False Parameter'?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Thu, Sep 29, 2011 at 9:05 PM, ivplovbg <[hidden email]> wrote:
>>If that does not work, probably you have not installed the libusb-win32
>>driver properly. What is the output for testlibusb-win report?
> I dont think the driver is not properly installed. Is working fine on usb
> 2.0 port on the same PC. Report from testlibusb-win is:
> DLL version:    1.2.4.0
> Driver version: -1.-1.-1.-1

That shows you have not install the driver properly. Try 1.2.5.0
and use inf-wizard to install the driver.


--
Xiaofan

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Thu, Sep 29, 2011 at 9:10 PM, Xiaofan Chen <[hidden email]> wrote:

> On Thu, Sep 29, 2011 at 9:05 PM, ivplovbg <[hidden email]> wrote:
>>>If that does not work, probably you have not installed the libusb-win32
>>>driver properly. What is the output for testlibusb-win report?
>> I dont think the driver is not properly installed. Is working fine on usb
>> 2.0 port on the same PC. Report from testlibusb-win is:
>> DLL version:    1.2.4.0
>> Driver version: -1.-1.-1.-1
>
> That shows you have not installed the driver properly. Try 1.2.5.0
> and use inf-wizard to install the driver.
>

Or is this only happening with the USB 3.0 port?

What is the output of testlibusb-win when it is plugged in the USB
2.0 port?

Are you using the filter driver or the device driver? Take note if you
use the filter driver, you may have to install the filter driver again
if you switch to a different port.



--
Xiaofan

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
I'm using only the device driver (dll und sys files) and have my own inf and cat files. It is working fine on a 2.0 port, but on 3.0 the controller don't sent a set configuration request and the function usb_set_configuration return <0... I'm running the testlibusb-win.exe from the 1.2.5.0 download folder. Here the report on a 2.0 port:
DLL version: 1.2.5.0
Driver version: 1.2.5.0

bus/device  idVendor/idProduct
bus-0/\\.\libusb0-0001--0x1d88-0x0001     1D88/0001
- Manufacturer : MAHR GmbH
- Product      : ULM520SSim (12345678), 0000_87654321
- Serial Number: 7073
bLength:             18
bDescriptorType:     01h
bcdUSB:              0200h
bDeviceClass:        00h
bDeviceSubClass:     00h
bDeviceProtocol:     00h
bMaxPacketSize0:     40h
idVendor:            1D88h
idProduct:           0001h
bcdDevice:           0100h
iManufacturer:       1
iProduct:            2
iSerialNumber:       5
bNumConfigurations:  1
  wTotalLength:         60
  bNumInterfaces:       1
  bConfigurationValue:  1
  iConfiguration:       3
  bmAttributes:         c0h
  MaxPower:             0
    bInterfaceNumber:   0
    bAlternateSetting:  0
    bNumEndpoints:      6
    bInterfaceClass:    255
    bInterfaceSubClass: 0
    bInterfaceProtocol: 0
    iInterface:         4
      bEndpointAddress: 81h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 02h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 03h
      bmAttributes:     02h
      wMaxPacketSize:   128
      bInterval:        0
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 84h
      bmAttributes:     02h
      wMaxPacketSize:   128
      bInterval:        0
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 85h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 06h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Thu, Sep 29, 2011 at 9:27 PM, ivplovbg <[hidden email]> wrote:
> I'm using only the device driver (dll und sys files) and have my own inf and
> cat files. It is working fine on a 2.0 port, but on 3.0 the controller don't
> sent a set configuration request and the function usb_set_configuration
> return <0... I'm running the testlibusb-win.exe from the 1.2.5.0 download
> folder. Here the report on a 2.0 port:
> DLL version:    1.2.5.0
> Driver version: 1.2.5.0

Thanks. So it works with USB 2.0 port. Good.

Now go back to the USB 3.0 port, does the device appears in the
Windows Device Manager?

Did you update the firmware for the USB 3.0 host controller as well?

Try the driver and firmware here.
http://www.station-drivers.com/page/nec.htm


--
Xiaofan

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
>Thanks. So it works with USB 2.0 port. Good.
Yes.

>Now go back to the USB 3.0 port, does the device appears in the
>Windows Device Manager?
Yes. Is enumerated.

>Did you update the firmware for the USB 3.0 host controller as well?
Yes.

>Try the driver and firmware here.
>http://www.station-drivers.com/page/nec.htm
No effect. The same problem, usb_set_configuration() failed with 'False Parameter'.

--
Ivan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Maurer-2
Hello Ivan,

can you re-try and post the testlibusb-win.exe from the 1.2.5.0 download
for your USB 3.0 port ?

Best regards,

Martin

----- Original Message -----
From: "ivplovbg" <[hidden email]>
To: <[hidden email]>
Sent: Friday, September 30, 2011 8:47 AM
Subject: Re: [Libusb-win32-devel] USB 3.0 and libusb-win32


> >Thanks. So it works with USB 2.0 port. Good.
> Yes.
>
>>Now go back to the USB 3.0 port, does the device appears in the
>>Windows Device Manager?
> Yes. Is enumerated.
>
>>Did you update the firmware for the USB 3.0 host controller as well?
> Yes.
>
>>Try the driver and firmware here.
>>http://www.station-drivers.com/page/nec.htm
> No effect. The same problem, usb_set_configuration() failed with 'False
> Parameter'.
>
> --
> Ivan
>
> --
> View this message in context:
> http://libusb.6.n5.nabble.com/USB-3-0-and-libusb-win32-tp4483149p4856040.html
> Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Libusb-win32-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel 


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
>Hello Ivan,

>can you re-try and post the testlibusb-win.exe from the 1.2.5.0 download
>for your USB 3.0 port ?

>Best regards,

>Martin

Here there are:

DLL version: 1.2.5.0
Driver version: 1.2.4.0

bus/device  idVendor/idProduct
bus-0/\\.\libusb0-0001--0x1d88-0x0001     1D88/0001
- Manufacturer : MAHR GmbH
- Product      : ULM520SSim (12345678), 0000_87654321
- Serial Number: 7073
bLength:             18
bDescriptorType:     01h
bcdUSB:              0200h
bDeviceClass:        00h
bDeviceSubClass:     00h
bDeviceProtocol:     00h
bMaxPacketSize0:     40h
idVendor:            1D88h
idProduct:           0001h
bcdDevice:           0100h
iManufacturer:       1
iProduct:            2
iSerialNumber:       5
bNumConfigurations:  1
  wTotalLength:         60
  bNumInterfaces:       1
  bConfigurationValue:  1
  iConfiguration:       3
  bmAttributes:         c0h
  MaxPower:             0
    bInterfaceNumber:   0
    bAlternateSetting:  0
    bNumEndpoints:      6
    bInterfaceClass:    255
    bInterfaceSubClass: 0
    bInterfaceProtocol: 0
    iInterface:         4
      bEndpointAddress: 81h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 02h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 03h
      bmAttributes:     02h
      wMaxPacketSize:   128
      bInterval:        0
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 84h
      bmAttributes:     02h
      wMaxPacketSize:   128
      bInterval:        0
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 85h
      bmAttributes:     03h
      wMaxPacketSize:   1024
      bInterval:        2
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 06h
      bmAttributes:     03h
      wMaxPacketSize:   1024
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Fri, Sep 30, 2011 at 4:31 PM, ivplovbg <[hidden email]> wrote:

>>Hello Ivan,
>
>>can you re-try and post the testlibusb-win.exe from the 1.2.5.0 download
>>for your USB 3.0 port ?
>
>>Best regards,
>
>>Martin
>
> Here there are:
>
> DLL version:    1.2.5.0
> Driver version: 1.2.4.0

You may need to reboot your PC.

But it seems to me libusb-win32 works. Please reboot and then try your
program again.

If that still fails, then you may need to try the debug version of libusb-win32
1.2.5.0 and you need to post your debuglog with DebugView.


--
Xiaofan

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
Have DebugView more debug information than the debug level of 4 in my application? I have already set it to 4, and that is what i see:
"error: setting configuration failed. libusb0-dll:err [set_configuration] could not set config 1: win error: Falscher Parameter". The last one is german and means invalid parameter. But 1 is the only valid value for my configuration. And if i set the configuration to '0', why i don't failed with usb_set_configuration() but the driver try to claim the interface???
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Xiaofan Chen
On Fri, Sep 30, 2011 at 6:27 PM, ivplovbg <[hidden email]> wrote:
> Have DebugView more debug information than the debug level of 4 in my
> application? I have already set it to 4, and that is what i see:
> "error: setting configuration failed. libusb0-dll:err [set_configuration]
> could not set config 1: win error: Falscher Parameter". The last one is
> german and means invalid parameter.

Yes DebugView will have much more information. You need to
use the debug version of libusb-win32.
http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.5.0/
libusb-win32-bin-debug-1.2.5.0.zip

> But 1 is the only valid value for my
> configuration. And if i set the configuration to '0', why i don't failed
> with usb_set_configuration() but the driver try to claim the interface???
>

Set it to 0 means to "un-configure" the device, and you can not
talk to the device in that case, so it will fail to claim the interface.

The device needs to have a valid configuration in order for you
to claim the interface and then talk to it.

Could you please also post your code? What if you comment out
the usb_set_configuration() call?

--
Xiaofan

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

ivplovbg
>Could you please also post your code? What if you comment out
>the usb_set_configuration() call?

OK guys, here is my relevant code:



bool MLibUsb_Comm::Open(t_ActualValue *p_actual_value)
{
#   ifdef OS_WIN32
    const struct usb_version *version = usb_get_version();

    if(version)  {
        MTrace_AddToLevel5("DLL version:\t%d.%d.%d.%d\r\n",
                            version->dll.major, version->dll.minor,
                            version->dll.micro, version->dll.nano);

        MTrace_AddToLevel5("Driver version:\t%d.%d.%d.%d\r\n\r\n",
                            version->driver.major, version->driver.minor,
                            version->driver.micro, version->driver.nano);
    }
#   endif

    usb_set_debug(4);
    usb_init();          /* Initialize the library */
    usb_find_busses();   /* Find all busses */
    usb_find_devices();  /* Find all connected devices */

    if(!(m_comm_hdls.m_p_usb_dev = open_dev()))  { // see function below
        MErrTrace_Add("error: device not found!. %s", usb_strerror());
        return false;
    }

    if(usb_set_configuration(m_comm_hdls.m_p_usb_dev, 1) < 0) {
        MErrTrace_Add("error: setting config 1 failed. %s", usb_strerror());
        usb_close(m_comm_hdls.m_p_usb_dev);
        return false;
    }

    if(usb_claim_interface(m_comm_hdls.m_p_usb_dev, 0) < 0) {
        MErrTrace_Add("error: claiming interface 0 failed. %s", usb_strerror());
        usb_set_configuration(m_comm_hdls.m_p_usb_dev, 0);
        usb_close(m_comm_hdls.m_p_usb_dev);
        return false;
    }
    // Some other initialisation
    .
    .
    .
    // Start reading in thread... looks like:
    while(1){
        int ret = usb_interrupt_read(p_comm_hdls->m_p_usb_dev,
                                     ENDPOINT_ADDRESS_FOR_READ,
                                     (char *) p_buf,
                                     USB_FIFO_PACKET_SIZE, READ_TIMEOUT);
       // Do something with data
       
    }
    // Open() done
    return true;
}

static usb_dev_handle *open_dev(void)
{
    struct usb_bus    *bus;
    struct usb_device *dev;

    for(bus = usb_get_busses(); bus; bus = bus->next) {
        for(dev = bus->devices; dev; dev = dev->next) {
            if(   dev->descriptor.idVendor == USB_VENDOR_ID
               && dev->descriptor.idProduct == USB_PRODUCT_ID) {
                for (int i = 0; i < dev->descriptor.bNumConfigurations; i++)
                    print_configuration(&dev->config[i]);                
                return usb_open(dev);
            }
        }
    }
    return NULL;
}


>Yes DebugView will have much more information. You need to
>use the debug version of libusb-win32.
>http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.5.0/
>libusb-win32-bin-debug-1.2.5.0.zip
Xiaofan, is DebugView some application that i have to install with the libusb-win32-devel-filter-debug-1.2.5.0.exe?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Michael Plante
ivplovbg wrote:
>> Xiaofan, is DebugView some application that i have to install with the
>> libusb-win32-devel-filter-debug-1.2.5.0.exe?

Yes, it shows the debug output.

http://technet.microsoft.com/en-us/sysinternals/bb896647


Michael


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: USB 3.0 and libusb-win32

Travis
In reply to this post by ivplovbg
Greetings,


This device is consuming lots of bandwidth,  it looks like over 50%..
128 is not a valid max packet size for a a high speed bulk endpoint
(only 512 is allowed), so this might cause an issue. (Though I also have
an NEC 3.0 host at it works with this)

Many of us are using the NEC Renesas 3.0 host successfully with
libusbK/win32 so it is most likely something specific to your
device/host setup.

Regards,
Travis


On 9/30/2011 1:31 AM, ivplovbg wrote:

>> Hello Ivan,
>> can you re-try and post the testlibusb-win.exe from the 1.2.5.0 download
>> for your USB 3.0 port ?
>> Best regards,
>> Martin
> Here there are:
>
> DLL version: 1.2.5.0
> Driver version: 1.2.4.0
>
> bus/device  idVendor/idProduct
> bus-0/\\.\libusb0-0001--0x1d88-0x0001     1D88/0001
> - Manufacturer : MAHR GmbH
> - Product      : ULM520SSim (12345678), 0000_87654321
> - Serial Number: 7073
> bLength:             18
> bDescriptorType:     01h
> bcdUSB:              0200h
> bDeviceClass:        00h
> bDeviceSubClass:     00h
> bDeviceProtocol:     00h
> bMaxPacketSize0:     40h
> idVendor:            1D88h
> idProduct:           0001h
> bcdDevice:           0100h
> iManufacturer:       1
> iProduct:            2
> iSerialNumber:       5
> bNumConfigurations:  1
>    wTotalLength:         60
>    bNumInterfaces:       1
>    bConfigurationValue:  1
>    iConfiguration:       3
>    bmAttributes:         c0h
>    MaxPower:             0
>      bInterfaceNumber:   0
>      bAlternateSetting:  0
>      bNumEndpoints:      6
>      bInterfaceClass:    255
>      bInterfaceSubClass: 0
>      bInterfaceProtocol: 0
>      iInterface:         4
>        bEndpointAddress: 81h
>        bmAttributes:     03h
>        wMaxPacketSize:   1024
>        bInterval:        2
>        bRefresh:         0
>        bSynchAddress:    0
>        bEndpointAddress: 02h
>        bmAttributes:     03h
>        wMaxPacketSize:   1024
>        bInterval:        2
>        bRefresh:         0
>        bSynchAddress:    0
>        bEndpointAddress: 03h
>        bmAttributes:     02h
>        wMaxPacketSize:   128
>        bInterval:        0
>        bRefresh:         0
>        bSynchAddress:    0
>        bEndpointAddress: 84h
>        bmAttributes:     02h
>        wMaxPacketSize:   128
>        bInterval:        0
>        bRefresh:         0
>        bSynchAddress:    0
>        bEndpointAddress: 85h
>        bmAttributes:     03h
>        wMaxPacketSize:   1024
>        bInterval:        2
>        bRefresh:         0
>        bSynchAddress:    0
>        bEndpointAddress: 06h
>        bmAttributes:     03h
>        wMaxPacketSize:   1024
>
> --
> View this message in context: http://libusb.6.n5.nabble.com/USB-3-0-and-libusb-win32-tp4483149p4856275.html
> Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Libusb-win32-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Libusb-win32-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
12
Loading...