<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lib.libusb.devel.windows">
    <title>gmane.comp.lib.libusb.devel.windows</title>
    <link>http://blog.gmane.org/gmane.comp.lib.libusb.devel.windows</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5455"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5431"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5426"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5423"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5415"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5411"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5407"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5404"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5392"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5390"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5381"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5378"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5372"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5370"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5368"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5366"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5360"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5355"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5341"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5340"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5455">
    <title>usb_find_devices() is zero</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5455</link>
    <description>&lt;pre&gt;I realize that this has been posted about before, but I can't seem to find
the answer to my problem. I have some simple enumeration code that looks for
the usb busses and devices. However usb_find_devices() always returns zero.
Since there aren't any devices I can't connect to anything later.

I have run testlibusb-win.exe as some of the other posts have suggested and
get the following output:

/DLL version:1.2.6.0
Driver version:-1.-1.-1.-1

bus/device  idVendor/idProduct/

Honestly I'm not sure what it means.
Most of the code I'm using was provided by Microchip in one of their
examples.

Thanks in advance!
~Warren


///////////////////////////////////// Code
////////////////////////////////////////////
if ( Connection_Status != CONNECTED)  // if not connected already
{
int count;
usb_init(); /* initialize the library */
usb_find_busses(); /* find all busses */
count = usb_find_devices(); /* find all connected devices */


//Now look through the list that we just populated.  We are trying to see
if any of them match our device.
struct usb_bus *bus;
struct usb_device *dev;
for(bus = usb_get_busses(); bus; bus = bus-&amp;gt;next)
{
for(dev = bus-&amp;gt;devices; dev; dev = dev-&amp;gt;next)
{
if(dev-&amp;gt;descriptor.idVendor == MY_VID
       &amp;amp;&amp;amp; dev-&amp;gt;descriptor.idProduct == MY_PID)
 {
 MyLibusbDeviceHandle = usb_open(dev); //Opens a USB device 
break;
 } 
}
}
if(!MyLibusbDeviceHandle)
{
                // Always ends up here because their are no devices to
connect to.
        this-&amp;gt;Connect_btn-&amp;gt;Text = L"Failed";
return;

}
if(usb_set_configuration(MyLibusbDeviceHandle, 1) &amp;lt; 0) // Sets the Active
configuration of the device
{
usb_close(MyLibusbDeviceHandle);
this-&amp;gt;Connect_btn-&amp;gt;Text = L"Failed";
return;
}

if(usb_claim_interface(MyLibusbDeviceHandle, 0) &amp;lt; 0)  //claims the
interface with the Operating System
{
//Closes a device opened since the claim interface is failed.
usb_close(MyLibusbDeviceHandle);
this-&amp;gt;Connect_btn-&amp;gt;Text = L"Failed";
return ;

}
ToggleLED_btn-&amp;gt;Enabled = true;//Make button no longer greyed out
GetPushbuttonState_btn-&amp;gt;Enabled = true;//Make button no longer greyed out
StateLabel-&amp;gt;Enabled = true;            //Make label no longer greyed out
Connection_Status = CONNECTED;            //Now status is connected
}
///////////////////////////////////// End of Code
////////////////////////////////////////////



--
View this message in context: http://libusb.6.n5.nabble.com/usb-find-devices-is-zero-tp5711961.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
&lt;/pre&gt;</description>
    <dc:creator>Warren Terrall</dc:creator>
    <dc:date>2013-05-10T15:42:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5431">
    <title>usb_set_configuration error, Win 7</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5431</link>
    <description>&lt;pre&gt;Folks,

I'm so sorry to bother you with something that is probably well known, 
but all I can find on the web about this are problems, not solutions.

I have been running a 32-bit XP machine for ages, using
libusb-win32-bin-1.2.6.0 and everything has been fine.  I have now moved 
to a Windows 7 machine, still 32-bit, and all is not fine.

I am using libusb to get data from a PIC18 microcontroller.  I fired up 
the microcontroller for the first time and the PC shot off to find 
drivers.  I tried to stop it, and I may have succeeded, but it's hard. 
I have de-installed the driver it chose (which might have been right) 
and tried to install the one I have just downloaded from SoundForge, but 
I'm not certain.

I think I have the latest drivers installed, fighting Win 7 all the way. 
  I have told Win 7 not to find drivers itself, but it's ignoring me.

Anyway, it all looks OK until I run my "C" program to get data.  The 
start of the program is appended.  All is well till 
"usb_set_configuration", when I get an error of -5, and I have no idea 
why.  I've been using this sort of code for literally years.

Can anyone please tell me what's going on and how to fix it?!

Martin

***************

#include &amp;lt;usb.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;time.h&amp;gt;

Blah, blah, then

usb_dev_handle *dev = NULL; /* the device handle */

usb_init(); /* initialize the library */
usb_find_busses(); /* find all busses */
usb_find_devices(); /* find all connected devices */


if(!(dev = open_dev()))
{
printf("error: device not found!\n");
return 0;
}

i = usb_set_configuration(dev, 1);

if(i &amp;lt; 0)
{
printf("error %d: setting config 1 failed\n", i);
usb_close(dev);
return 0;
}

and so on ...

When I run this I get:  "error -5: setting config 1 failed" and it quits.



&lt;/pre&gt;</description>
    <dc:creator>Martin Reekie</dc:creator>
    <dc:date>2013-05-06T15:25:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5426">
    <title>libusbk: ErrorCode=0000138Eh-&gt;PoolHandle_Inc_UsbK</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5426</link>
    <description>&lt;pre&gt;------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with &amp;lt;2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>Hans Müller</dc:creator>
    <dc:date>2013-05-04T07:51:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5423">
    <title>libusbdotnet - Issue retrieving device SN onMac (under Mono)</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5423</link>
    <description>&lt;pre&gt;I apologies if this is being posted to the wrong mailing list. The support forum for LibUsbDotNet indicated that this was now the place to ask these questions:

My apologies for the newbie question. I've spent many frustrating hours trying to retrieve a USB device's serial number (which I believe is stored as a string descriptor in the device - see SerialStringIndex property below). Initially I tried to retrieve this information via the MonoUsbDevice.MonoUsbDeviceList method. Although I can find my particular device in this list, the Info (UsbDeviceInfo class) property returns empty strings for all three of the ManufacturerString, ProductString and SerialString  properties:

(UsbDeviceInfo - Info property via MonuUsbDevice)
{Length:18
DescriptorType:Device
BcdUsb:0x0110
Class:PerInterface
SubClass:0x00
Protocol:0x00
MaxPacketSize0:64
VendorID:0x067B
ProductID:0xAAA5
BcdDevice:0x0300
ManufacturerStringIndex:1
ProductStringIndex:2
SerialStringIndex:3
ConfigurationCount:1
ManufacturerString:
ProductString:
SerialString:
}

I was eventually able to get what I wanted using the UsbDevice.AllDevices.FindAll method to retrieve a UsbRegDeviceList from which I found my particular WinUsbDevice with the following Info property. Note that the SerialString and other string properties are now populated.

(UsbDeviceInfo - Info property via WinUsbDevice)
{Length:18
DescriptorType:Device
BcdUsb:0x0110
Class:PerInterface
SubClass:0x00
Protocol:0x00
MaxPacketSize0:64
VendorID:0x067B
ProductID:0xAAA5
BcdDevice:0x0300
ManufacturerStringIndex:1
ProductStringIndex:2
SerialStringIndex:3
ConfigurationCount:1
ManufacturerString:Prolific Technology Inc.
ProductString:ALRT USB-SERIAL ADAPTOR
SerialString:09500006
}

I neglected to mention earlier that the goal of all of this was to run this code on Mac. With that in mind, I took the working Windows code and ran it on Mac. Unfortunately, it doesn't work as expected. Instead of WinUSBDevice instances (ie: the Device property of the UsbRegistry class) I get MonoUsbDevice instances (when calling the UsbDevice.AllDevices.FindAll method). Just as I discovered earlier, the MonoUsbDevice instances returned on the Mac also do not have the SerailString property populated.


1)      Why does the MonoUsbDevice instance lack this information? Is this is bug or by design? Note that I poked around in memory near one of the handles associated with my MonoUsbDevice and am clearly able to see the SN in memory. What I can't figure out is how the memory location is even associated to the MonoUsbDevice (if at all). The fact that it's in memory , however, clearly suggests that the information is being loaded and should be accessible)



2)      Is there something entirely unrelated, to the above that, I've overlooked. Note that getting the SN on Mac is really what I need.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with &amp;lt;2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>David Schober</dc:creator>
    <dc:date>2013-05-03T04:07:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5415">
    <title>failed to run the show.Info example.</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5415</link>
    <description>&lt;pre&gt;hello
I've downloaded the libusbdotnot 2.8.2 source code and tried to run the
show.Info example from Visual studio 2012 on my Windows 7 machine.  But
nothing prints out, I don't know why. Could someone help me?

&lt;/pre&gt;</description>
    <dc:creator>Fang Liu</dc:creator>
    <dc:date>2013-04-23T18:24:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5411">
    <title>UsbK_SetCurrentAlternateSetting Isochronous transfer and used bandwidth in root hub</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5411</link>
    <description>&lt;pre&gt;Hello,
I found a bad behaviour of the UsbK_SetCurrentAlternateSetting function,
while selecting a setting containing an EP with isochronous transfer.
As known, one can see the reserved USB bandwidth in the device manager,
selecting the corresponding USB root-hub and than selecting the tab
"Advanced".
After calling UsbK_SetCurrentAlternateSetting the reserved bandwidth is
shown correct. However, after terminating the process the display of the
reserved bandwidth persists, until the device is unplugged.
Only a call of UsbK_SetCurrentAlternateSetting and a selection of a "Null"
bandwidth setting can remove the device from the list of displayed
bandwidth.
To verify that the displayed bandwidth is actual the reserved bandwidth, I
attached several devices start the streaming and stop the streaming with and
without a closing UsbK_SetCurrentAlternateSetting call with the "Null"
setting. 
Result: The bandwidth reservation persists, and blocks the bus from using by
other devices.
Conclusion: It is highly recommended to call
UsbK_SetCurrentAlternateSetting(usbhandle, 0) prior closing the usbhandle. 
I recommend also to include this statement into the documentation. 
I expect this behaviour also with the libusb library function
libusb_set_interface_alt_setting.

Best regards
Ekkehard



--
View this message in context: http://libusb.6.n5.nabble.com/UsbK-SetCurrentAlternateSetting-Isochronous-transfer-and-used-bandwidth-in-root-hub-tp5711791.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis &amp;amp; visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
&lt;/pre&gt;</description>
    <dc:creator>Ekkehard</dc:creator>
    <dc:date>2013-04-22T08:01:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5407">
    <title>Problem with LibUsbDotNet under LINUX</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5407</link>
    <description>&lt;pre&gt;Hi all,

I've got a problem with LibUsbDotNet (2.2.8.104) and simple USB thermometer
TEMPerV1.2. Under WIN 7 the application runs OK, problem is in LINUX
(Linux raspberrypi 3.6.11-0-raspberrypi, image from OpenSuse LINUX).

1) USB info runs OK

2) Detach Linux Kernel Driver also runs OK, after that "lsusb -t" shows "no driver"

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/3p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
        |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=, 1.5M
        |__ Port 3: Dev 5, If 1, Class=Human Interface Device, Driver=, 1.5M

3) OpenUsbDevice, SetConfiguration and ClaimInterface(s) is OK (without detaching kernel
   driver fires the exception "resource busy" is returned).

4) ControlTransfer(s) also OK, returns correct number of transferred bytes.

5) But, any attempt to read (OpenEndpointReader.., Read...) from device ends with 
   "-7:ErrorTimeout:Operation timed out" (I've tried timeout value from 100 
   to 10000 with no difference).

   This is under above metioned LINUX only, under WIN 7 everything runs OK.


Thanks in advance for any help..

Milan Drasil
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis &amp;amp; visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>Milan Drášil</dc:creator>
    <dc:date>2013-04-21T10:28:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5404">
    <title>BSOD on UsbK_SetCurrentAlternateSetting</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5404</link>
    <description>&lt;pre&gt;Hello,
I am operating on 4 identical pieces of hardware. Four independent Instances
of my software are controlling this devices. The call is embedded in a
thread, the thread is in a DLL.
The BSOD occours calling the function UsbK_SetCurrentAlternateSetting of the
forth device (e.g. devices 1 to 3 have sucessfully started there work) 

The identical code called prior to the failing code is

      if not UsbK_SetConfiguration(usbHandle,1) then Exit;
      if not UsbK_ClaimInterface(usbHandle,interfaceIndex,True) then Exit;
      interfaceClaimed := True;
      if not UsbK_SetCurrentAlternateSetting(usbHandle,AltInterface) ... 
//&amp;lt;------ here BSOD in the 4th call

The BSOD occours with Windows XP (32bit) and Windows 7 (64bit), and both
with libusbK version 3.0.5.13 and 3.0.5.16

The minidump says:
Problem signature:
  Problem Event Name:BlueScreen
  OS Version:6.1.7601.2.1.0.256.1
  Locale ID:1033

Additional information about the problem:
  BCCode:10d
  BCP1:0000000000000005
  BCP2:0000057FEE162A58
  BCP3:0000000000001200
  BCP4:FFFFFA8011E1A010
  OS Version:6_1_7601
  Service Pack:1_0
  Product:256_1

Details of the calling stack are:
Filename: libusbK.sys
Address In Stack: libusbK.sys+304b
To Address: fffff880`06f59000
Size: 0x00010000
Time Stamp: 0x4fad69b0
Time String: 5/11/2012 9:34:08 PM

The output of the TestLibUsb is:
DLL version:1.2.6.0
Driver version:3.0.5.16

bus/device  idVendor/idProduct
bus-0/\\.\libusb0-0255--0xXXXX-0xXXXX     XXXX/XXXX
- Manufacturer : XXXXXXXXXX
- Product      : XXXXX
- Serial Number: XXXXXXXXX
bLength:             18
bDescriptorType:     01h
bcdUSB:              0200h
bDeviceClass:        00h
bDeviceSubClass:     00h
bDeviceProtocol:     00h
bMaxPacketSize0:     40h
idVendor:            XXXXh
idProduct:           XXXXh
bcdDevice:           0100h
iManufacturer:       1
iProduct:            2
iSerialNumber:       3
bNumConfigurations:  1
  wTotalLength:         55
  bNumInterfaces:       1
  bConfigurationValue:  1
  iConfiguration:       0
  bmAttributes:         80h
  MaxPower:             250
    bInterfaceNumber:   0
    bAlternateSetting:  0
    bNumEndpoints:      2
    bInterfaceClass:    255
    bInterfaceSubClass: 0
    bInterfaceProtocol: 0
    iInterface:         0
      bEndpointAddress: 84h
      bmAttributes:     01h
      wMaxPacketSize:   0
      bInterval:        1
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 85h
      bmAttributes:     01h
      wMaxPacketSize:   0
      bInterval:        1
      bRefresh:         0
      bSynchAddress:    0
    bInterfaceNumber:   0
    bAlternateSetting:  1
    bNumEndpoints:      2
    bInterfaceClass:    255
    bInterfaceSubClass: 0
    bInterfaceProtocol: 0
    iInterface:         0
      bEndpointAddress: 84h
      bmAttributes:     01h
      wMaxPacketSize:   940
      bInterval:        1
      bRefresh:         0
      bSynchAddress:    0
      bEndpointAddress: 85h
      bmAttributes:     01h
      wMaxPacketSize:   940
      bInterval:        1
      bRefresh:         0
      bSynchAddress:    0



Any ideas on this Item?
Best regards
Ekkehard





--
View this message in context: http://libusb.6.n5.nabble.com/BSOD-on-UsbK-SetCurrentAlternateSetting-tp5711772.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis &amp;amp; visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
&lt;/pre&gt;</description>
    <dc:creator>Ekkehard</dc:creator>
    <dc:date>2013-04-19T16:30:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5392">
    <title>Upper Level Filter Blocking Data from VendorDriver?</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5392</link>
    <description>&lt;pre&gt;I'm fairly new to driver and libusb development and am having a few issues
with an upper level filter driver I am developing. Basically I installed
the vendor driver and then the libusb filter driver on top. I can receive
events just fine once I do the following:

     wholeUsbDevice.SetConfiguration(1);
     wholeUsbDevice.ClaimInterface(0);

Once I set the configuration, I start receiving data from the libusb
driver, but the vendor driver functionality stops working until I do a
wholeUsbDevice.ResetDevice(), but that stops the libusb driver data from
flowing.

I'm trying to determine if I just don't understand filter drivers and this
is by design or if I am doing something wrong. My goal is to augment the
vendor's driver but still have their driver handle the bulk of the
communications. Is that an achievable goal?

Thank you!
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis &amp;amp; visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>Ryan Buerger</dc:creator>
    <dc:date>2013-04-13T17:15:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5390">
    <title>problems using Embarcadero's c++ builder</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5390</link>
    <description>&lt;pre&gt;Hello

I’m trying to get libusb-win32 working with a project using c++ builder XE3. I’ve included lusb0_usb.h and I’m linking to the bcc version of the libusb.lib. However, when I try to compile I am getting alot of errors in the windows sdk headers. Has anyone managed to compile using c++ builder, and if so what steps were required.

Thanks

-Michael------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis &amp;amp; visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>Michael Gurnett</dc:creator>
    <dc:date>2013-04-11T11:31:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5381">
    <title>LibUSB Diver installation problem</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5381</link>
    <description>&lt;pre&gt;Dear LibUSB-Win32 developers,

I am using LibUSB version 1.2.6.0 on Windows7 for camera Canon A2300.

But Message I can see in Device Manager is "Windows cannot initialize the device driver for this hardware. (Code 37"

I tried reinstalling and installing different versions of LibUSB drivecrs but no luck.

Any Help please ?

Thanks,
Nimish------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>nimish chauhan</dc:creator>
    <dc:date>2013-04-02T13:19:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5378">
    <title>Missing 16 Contiguous Bytes Isochronoustransfer.</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5378</link>
    <description>&lt;pre&gt;I'm using the LibUSBK driver in isochronous mode using the Cypress FXLP USB
2 chip.  I set up a counter in an FPGA to send a fixed amount of dummy data
packets through an IN endpoint
to test bandwidth, data correction, etc.

The set-up works fine for a few known packet sizes.  I verify the data in
each packet and count how many are good and bad.
There is no problem if I send a total of 512 words (1024 bytes) per packet
or if I send 256 words (512 bytes) per packet but
when I choose an odd number of words, like 258 words (516 bytes) per
packet, I get a mysterious error after a few hundred "good"
packets. It looks like somehow, the data stream lost 8 words, or 16 bytes
of contiguous data.  The data stream picks up correctly
after the lost bytes.  This only happens with a packet size other than 512
or 256 words.

I have the Cypress USB automatically commit packets when the IN isochronous
buffer reaches 1024 bytes (512) words. I have it set up
so that packets get rebuilt if they cross this 1024 byte boundary due to
fragmentation.  It seems however, that if the number of packets
I send dont neatly fit within a 1024 byte buffer, I lose exactly 16 bytes.

Is this normal? Should I limit my packet sizes to 1024, 512, 256, 128 or 64
byte sizes?
------------------------------------------------------------------------------
Own the Future-Intel&amp;amp;reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>Julio</dc:creator>
    <dc:date>2013-04-01T21:17:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5372">
    <title>Closing and reopening a port</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5372</link>
    <description>&lt;pre&gt;Hello all.  

I'm attempting to get libUSB working with my custom CDC device.  The first
problem I am having is the ability to close and reopen a port.  For
instance, if the device gets removed or powered down, I'd like to be able to
re-connect to the device once it powers up again.

My code connects to the device the first time it's run, but calling
ClosePort() and then OpenPort() causes errors.  Here's what's shown in the
log during the second attempt at opening:

[10.950425] [000039dc] libusbx: error [winusbx_open] could not open device
\\.\USB#VID_1234&amp;amp;PID_1000#6&amp;amp;1EE157AC&amp;amp;0&amp;amp;2#{A5DCBF10-6530-11D2-901F-00C04FB951ED}
(interface 0): [5] Access is denied.
[10.951425] [000039dc] libusbx: debug [libusb_open] could not open device:
LIBUSB_ERROR_IO

And here's my code:


// DataMonitorUSB Class members:
WORD              m_VID;
WORD              m_PID;
int               m_InterfaceCount;
libusb_device *   m_TheDevice;
libusb_device_handle *m_DeviceHandle;
static libusb_context *  m_USBContext;


bool DataMonitorUSB::OpenPort(WORD vID, WORD pID)
   {
   int result;
   int iface;
   libusb_config_descriptor *conf_desc;
   CString dbgMsg;

   m_VID = vID;
   m_PID = pID;

   if (m_USBContext == NULL)
      {
      if ((result = libusb_init(&amp;amp;m_USBContext)) &amp;lt; 0) 
         {
         dbgMsg.Format("Failed to initialize libusb: %s",
libusb_error_name(result));
         TRACE("%s\n", dbgMsg);
         return true;
         }
      }

   m_DeviceHandle = libusb_open_device_with_vid_pid(m_USBContext, m_VID,
m_PID);
   if (m_DeviceHandle == NULL) 
      {
      dbgMsg.Format("DataMonitorUSB::OpenPort 
libusb_open_device_with_vid_pid Failed.");
      TRACE("%s\n", dbgMsg);
      return true;
      }

   m_TheDevice = libusb_get_device(m_DeviceHandle);

   TRACE("Reading configuration descriptors:\n");
   if (libusb_get_config_descriptor(m_TheDevice, 0, &amp;amp;conf_desc) &amp;lt; 0)
      {
      return true;
      }

   m_InterfaceCount = conf_desc-&amp;gt;bNumInterfaces;
   for (iface = 0; iface &amp;lt; m_InterfaceCount; iface++)
      {
      TRACE("\nClaiming interface %d...\n", iface);
      result = libusb_claim_interface(m_DeviceHandle, iface);
      if (result != LIBUSB_SUCCESS) 
         {
         dbgMsg.Format("  Failed: %s", libusb_error_name(result));
         TRACE("%s\n", dbgMsg);
         }
      }

   libusb_free_config_descriptor(conf_desc);
   return false;
   }


void DataMonitorUSB::ClosePort()
   {
   if (m_DeviceHandle != NULL)
      {
      for (int iface = 0; iface &amp;lt; m_InterfaceCount; iface++) 
         {
         TRACE("Releasing interface %d...\n", iface);
         libusb_release_interface(m_DeviceHandle, iface);
         }

//      libusb_reset_device(m_DeviceHandle);
      libusb_close(m_DeviceHandle);
      m_DeviceHandle = NULL;
      m_InterfaceCount = 0;
      }

#if 0
   if (m_TheDevice != NULL)
      {
      libusb_unref_device(m_TheDevice);
      m_TheDevice = NULL;
      }
#endif
   }

I've tried several variations of OpenPort(), including enumerating through
the list returned by libusb_get_device_list(), all with the same results.  

Also, at first, m_USBContext was not static, and I called libusb_init() with
every OpenPort() call and libusb_exit() with every ClosePort() call.  Same
results.

Any suggestions as to what I'm doing wrong?  Should this even be possible?

Thanks,
Dave



--
View this message in context: http://libusb.6.n5.nabble.com/Closing-and-reopening-a-port-tp5711624.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
&lt;/pre&gt;</description>
    <dc:creator>DaveD</dc:creator>
    <dc:date>2013-03-29T17:27:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5370">
    <title>Problem with read data</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5370</link>
    <description>&lt;pre&gt;Hi All,

Have a nice day,
I had a problem , wish please help me 
I have a board , and it send data continuously to pc through usb communication
and i have use libusbdotnet to receive on pc
I had design my software to receive continuously by after receive open event, i had set DataReceivedEnabled variable in UsbEndpointReader class is Enable,
but this software receive only one packet data, and after unplug and plug usb port then software just receive one packet 

How to fix it ?
When i set DataReceivedEnabled variable in UsbEndpointReader class Enable, is this software always listen data ?

Thank you
Please suggest me
________________
 
Mr. Binh Nguyen
Embedded Software Developer






 
MYLAN OPTOELECTRONICS
Lot A, Longduc Industrial Park
Travinh City, Travinh Province, Vietnam
Tel : +84 74 3846 997 – ext: 1503
Fax: +84 74 3846 998
Email: binh.nguyen&amp;lt; at &amp;gt;mylangroup.com
Website: www.mylanoptoelectronics.com

------------------------------------------------------------------------------
Own the Future-Intel&amp;amp;reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>Binh Nguyen</dc:creator>
    <dc:date>2013-03-27T03:22:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5368">
    <title>USB bulk, LibUsbDotNet, please Help!</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5368</link>
    <description>&lt;pre&gt;Hello,


I am using LibUsbDotNet for USB bulk communications. The thing is that I
faced a problem with performance  In case I open a lot of programs in my
Windows system, the Bulk read delays and I can't transmit my data in time
to the application. I am using OnDataReceive event for reading USB device.

*The configuration below:*

                //Init USB read endpoint 2
                UsbReader =
mUsbDevice.OpenEndpointReader(ReadEndpointID.Ep02, 4096, EndpointType.Bulk);

                //Clear receive buffer
                UsbReader.Flush();

                //Init USB write enpoint 2
                UsbWriter =
mUsbDevice.OpenEndpointWriter(WriteEndpointID.Ep02);


                /* Enable USB data reading using EventHandler */
                UsbReader.ReadThreadPriority = ThreadPriority.Normal;
                UsbReader.DataReceived += OnDataReceived;
                UsbReader.DataReceivedEnabled = true;
                UsbReader.ReadBufferSize = 4096;





How can I avoid the delay for Bulk reads in my application? The thing is
that I am using USB for CAN bus messages transfer to my application. So, I
need to transmit CAN messages to the application as fast as possible.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>linas</dc:creator>
    <dc:date>2013-03-18T15:58:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5366">
    <title>LibUsbDotNet library, USB bulk transfer</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5366</link>
    <description>&lt;pre&gt;/// &amp;lt;summary&amp;gt;
        /// Received data event from the USB device (4096 bytes per Event)
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="sender"&amp;gt;&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="e"&amp;gt;&amp;lt;/param&amp;gt;
        public static void OnDataReceived(object sender,
EndpointDataEventArgs e)
        {
            //ProcessMessage(e.Buffer, e.Count);
            ProcessData(e.Buffer, e.Count);
        }
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
&lt;/pre&gt;</description>
    <dc:creator>linas</dc:creator>
    <dc:date>2013-03-18T15:50:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5360">
    <title>Filter driver: Get a copy of transferred data?</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5360</link>
    <description>&lt;pre&gt;Hello,
is it possible to use the libusb filter driver to listen to the transferred
data? 
The idea is, to have the original device software running and just to get a
copy of the streamed IN data.
Best regards
Ekkehard




--
View this message in context: http://libusb.6.n5.nabble.com/Filter-driver-Get-a-copy-of-transferred-data-tp5711560.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
&lt;/pre&gt;</description>
    <dc:creator>Ekkehard</dc:creator>
    <dc:date>2013-03-08T07:58:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5355">
    <title>Using libusb-win32 device filter to monitorexisting USB communication</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5355</link>
    <description>&lt;pre&gt; Hi everyone, I saw this had been asked a few years ago in relation to
wireshark, but a final answer wasn't arrived at.  Is it possible to
use the win32 device filter driver to passively monitor communication
from an existing driver to the USB device?  I looked through the
available libusb functions but could only see functions to take
control and directly communicate with the USB endpoint, not monitor
communications that pass by the filter driver from other software.
There are other open source software solutions that can do this with
XP, but they haven't been updated in 10 years, lack modern OS support,
and it would be great to get this functionality in libusb.

thank you for any help!

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
&lt;/pre&gt;</description>
    <dc:creator>AK</dc:creator>
    <dc:date>2013-03-08T04:35:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5341">
    <title>libusb win32 add to Visual C++</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5341</link>
    <description>&lt;pre&gt;I am trying to link the ..\libusb-win32-bin-1.2.6.0\lib\msvc\libusb.lib so I
can use it with Visual C++ 10 Express. I keep getting the message:
 
 "1&amp;gt;libusb.lib : fatal error LNK1136: invalid or corrupt file" 

 I put the libusb.lib in the VC\lib directory and I added libusb.lib to the
additonal dependences in VC++.
 
Things I have tried: 
1. Redownloaded libusb.lib 
2. Tried linking to mscv_i64 and mscv_x64 versions of libusb.lib 

Same result. Help! 

Neal 



--
View this message in context: http://libusb.6.n5.nabble.com/libusb-win32-add-to-Visual-C-tp5711522.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
&lt;/pre&gt;</description>
    <dc:creator>nealmartini</dc:creator>
    <dc:date>2013-03-05T17:14:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5340">
    <title>libusbK OUT question</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5340</link>
    <description>&lt;pre&gt;Hello,
how to spread isochronous packets in specific microframes?
I am using "high-speed" transfers.
So far I have seen, I can set the "StartFrame" (in milliseconds) in the
IsoK_Init function. Calling UsbK_IsoWritePipe than transmits the whole block
as scheduled.
But how can I use only some of the packets, while others should be empty? I
tried to set the Length member of the corresponding packet to 0, which does
not work (explained in some other posts).
For example if I had configured the data transfer to 8MB/s it would mean
that every millisecond 8192 bytes becomes transferred, e.g. 8 packets each
1024 bytes.
Example (X=1024 bytes, -=0 bytes)
StartFrame 0 1 2 3 4 5 6 7 
&amp;lt;n&amp;gt;           X X X X X X X X
&amp;lt;n+1&amp;gt;       X X X X X X X X

If my actual data rate would be the half of the above (=4MB/s) I would like
to send the packets as follow
StartFrame 0 1 2 3 4 5 6 7 
&amp;lt;n&amp;gt;        X - X - X - X -
&amp;lt;n+1&amp;gt;      X - X - X - X -

How can I do this?

Since the startframe could only set once per ISO-context I could only
shorten the transfer size to the half, but for the 4 transferred packages
the datarate is still 8MB/s, which I want to avoid. 
StartFrame 0 1 2 3
&amp;lt;n&amp;gt;        X X X X
&amp;lt;n+1&amp;gt;      X X X X


Best regards
Ekkehard





--
View this message in context: http://libusb.6.n5.nabble.com/libusbK-OUT-question-tp5711520.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
&lt;/pre&gt;</description>
    <dc:creator>Ekkehard</dc:creator>
    <dc:date>2013-03-04T14:44:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5339">
    <title>libusbK Bulk OUT problem</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.windows/5339</link>
    <description>&lt;pre&gt;Hello,
I try to get my Bulk OUT device running, but I am not happy with my results.
If I set  RAW_IO to 1 via UsbK_SetPipePolicy then nothing works. After
sending data with UsbK_WritePipe the call of OvlK_WaitOrCancel allways
returns false and the LastError is allways 1223 (ERROR_CANCELLED).
Only if I leave RAW_IO untouched (e.g. 0) than data becomes transmitted. 
Unfortunally than the achieved bandwidth (approx &amp;lt; 60MBit/s) is slower than
expected (should reach at least more than 100MBit/s, up to more than
250MBit/s). Additionally the taskmanager shows a lot of CPU power eaten up
by a hidden process, I expect that this is caused by the active buffering in
the libusbK driver.
Another annoying thing is, that I can only pass very small portions of data
to the UsbK_WritePipe function. 512, 1024 pr 2048 Bytes are ok, but 4096
failed very often, this could be related with the actual buffer size in my
device wich is 4*512 Bytes?!

Any ideas of what is going wrong?
Best regards
Ekkehard







--
View this message in context: http://libusb.6.n5.nabble.com/libusbK-Bulk-OUT-problem-tp5711519.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
&lt;/pre&gt;</description>
    <dc:creator>Ekkehard</dc:creator>
    <dc:date>2013-03-04T10:20:42</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lib.libusb.devel.windows">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lib.libusb.devel.windows</link>
  </textinput>
</rdf:RDF>
