On Wed, Mar 6, 2013 at 4:59 AM, Pete Batard <p...@akeo.ie> wrote:
> On 2013.03.05 14:50, Xiaofan Chen wrote:
>> It is kind of strange under Mac OS X. I can not get it to work with the
>> current git.
>
> Works for me (TM), using the first patch you highlighted below.
> Granted I'm using a <cough>intosh and used the existing benchmark device
> custom descriptor stack (I wish I had the time to try the new Microchip
> stack but I really don't), but it doesn't look like the issue is with
> libusbx.
>
> Do you have the same issue for Windows and Linux, or not?

Yes I have the same issue with Windows for Linux. So it
could be a firmware issue.

Ref: http://www.microchip.com/forums/fb.ashx?m=708195

> I have now pushed the patch reversal to mainline, and closed #96 since
> by all account we should be sending 0xC1 as expected, and at least with
> the device I tested against, I have yet to see an issue be it on
> Windows, Linux or OS X.

The patch looks correct. However, with the benchmark firmware, I do not
have issues without the patch but have issues with the patch. Again,
kind of strange. Tested under Windows 7 x86.

mcuee@mcuee-PC /c/work/libusbx/libusbx
$ ./examples/xusb.exe 04d8:fa2e
Using libusbx v1.0.14.10623

Opening device 04D8:FA2E...

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 3
           VID:PID: 04D8:FA2E
         bcdDevice: 0001
   iMan:iProd:iSer: 1:2:3
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0010
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0010
          polling interval: 00
interface[0].altsetting[1]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0010
          polling interval: 01
       endpoint[1].address: 81
           max packet size: 0010
          polling interval: 01
interface[0].altsetting[2]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0020
          polling interval: 01
       endpoint[1].address: 81
           max packet size: 0020
          polling interval: 01

Claiming interface 0...

Reading string descriptors:
   String (0x01): "Travis Robinson"
   String (0x02): "Benchmark Device"
   String (0x03): "LUSBW1"
   String (0xEE): "MSFT100 "

Reading Extended Compat ID OS Feature Descriptor (wIndex = 0x0004):

  00000000  28 00 00 00 00 01 04 00 01 00 00 00 00 00 00 00  (...............
  00000010  00 01 57 49 4e 55 53 42 00 00 00 00 00 00 00 00  ..WINUSB........
  00000020  00 00 00 00 00 00 00 00                          ........

Reading Extended Properties OS Feature Descriptor (wIndex = 0x0005):
   Failed: LIBUSB_ERROR_PIPE
Releasing interface 0...
Closing device...

mcuee@mcuee-PC /c/work/libftdi/libusbx_git_bin/bin32
$ ./xusb.exe 04d8:fa2e
Using libusbx v1.0.14.10620

Opening device 04D8:FA2E...

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 3
           VID:PID: 04D8:FA2E
         bcdDevice: 0001
   iMan:iProd:iSer: 1:2:3
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0010
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0010
          polling interval: 00
interface[0].altsetting[1]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0010
          polling interval: 01
       endpoint[1].address: 81
           max packet size: 0010
          polling interval: 01
interface[0].altsetting[2]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0020
          polling interval: 01
       endpoint[1].address: 81
           max packet size: 0020
          polling interval: 01

Claiming interface 0...

Reading string descriptors:
   String (0x01): "Travis Robinson"
   String (0x02): "Benchmark Device"
   String (0x03): "LUSBW1"
   String (0xEE): "MSFT100 "

Reading Extended Compat ID OS Feature Descriptor (wIndex = 0x0004):

  00000000  28 00 00 00 00 01 04 00 01 00 00 00 00 00 00 00  (...............
  00000010  00 01 57 49 4e 55 53 42 00 00 00 00 00 00 00 00  ..WINUSB........
  00000020  00 00 00 00 00 00 00 00                          ........

Reading Extended Properties OS Feature Descriptor (wIndex = 0x0005):

  00000000  8e 00 00 00 00 01 05 00 01 00 84 00 00 00 01 00  ................
  00000010  00 00 28 00 44 00 65 00 76 00 69 00 63 00 65 00  ..(.D.e.v.i.c.e.
  00000020  49 00 6e 00 74 00 65 00 72 00 66 00 61 00 63 00  I.n.t.e.r.f.a.c.
  00000030  65 00 47 00 55 00 49 00 44 00 00 00 4e 00 00 00  e.G.U.I.D...N...
  00000040  7b 00 46 00 37 00 30 00 32 00 34 00 32 00 43 00  {.F.7.0.2.4.2.C.
  00000050  37 00 2d 00 46 00 42 00 32 00 35 00 2d 00 34 00  7.-.F.B.2.5.-.4.
  00000060  34 00 33 00 42 00 2d 00 39 00 45 00 37 00 45 00  4.3.B.-.9.E.7.E.
  00000070  2d 00 41 00 34 00 32 00 36 00 30 00 46 00 33 00  -.A.4.2.6.0.F.3.
  00000080  37 00 33 00 39 00 38 00 32 00 7d 00 00 00        7.3.9.8.2.}...

Releasing interface 0...
Closing device...

-- 
Xiaofan

------------------------------------------------------------------------------
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
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to