On Sun, Mar 3, 2013 at 6:05 PM, Xiaofan Chen <[email protected]> wrote:
> On Sun, Mar 3, 2013 at 6:55 AM, Wander Lairson Costa
> <[email protected]> wrote:
>> 2013/3/2 Xiaofan Chen <[email protected]>:
>>>> [1] https://github.com/walac/isochronous
>>>>
>>>> [2] https://github.com/walac/bmfw
>>>
>>> I am trying to build the isochronous test program at [1] under Mac OS
>>> X but it failed. How to sort out the issue with strchrnul()?
>>
>> I just commited a patch that should fix this. Please pull and trying
>> to build again.
>
> Thanks. Now it is okay.
Then I tested your test program under Mac OS X with latest libusbx.git
and your benchmark firmware with a Microchip PIC18F87J50 USB PIM,
the results are a bit strange.
mymacmini:isochronous xiaofanc$ lsusb -v -d 04d8:fa2e
Bus 250 Device 009: ID 04d8:fa2e Microchip Technology, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04d8 Microchip Technology, Inc.
idProduct 0xfa2e
bcdDevice 0.01
iManufacturer 1 Travis Robinson
iProduct 2 Benchmark Device
iSerial 3 LUSBW1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 78
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 2
bNumEndpoints 2
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 1
Device Status: 0x0001
Self Powered
mymacmini:isochronous xiaofanc$ ./iso-test -n 32
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
mymacmini:isochronous xiaofanc$ ./iso-test -n 64
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
mymacmini:isochronous xiaofanc$ ./iso-test -n 96
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 2 requested to transfer 32 bytes, transfered 32 bytes.
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 2 requested to transfer 32 bytes, transfered 32 bytes.
mymacmini:isochronous xiaofanc$ ./iso-test -n 128
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 2 requested to transfer 32 bytes, transfered 32 bytes.
Packet 3 requested to transfer 32 bytes, transfered 32 bytes.
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 2 requested to transfer 32 bytes, transfered 32 bytes.
Packet 3 requested to transfer 32 bytes, transfered 0 bytes.
mymacmini:isochronous xiaofanc$ ./iso-test -n 256
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 2 requested to transfer 32 bytes, transfered 32 bytes.
Packet 3 requested to transfer 32 bytes, transfered 32 bytes.
Packet 4 requested to transfer 32 bytes, transfered 32 bytes.
Packet 5 requested to transfer 32 bytes, transfered 32 bytes.
Packet 6 requested to transfer 32 bytes, transfered 32 bytes.
Packet 7 requested to transfer 32 bytes, transfered 32 bytes.
Packet 0 requested to transfer 32 bytes, transfered 32 bytes.
Packet 1 requested to transfer 32 bytes, transfered 32 bytes.
Packet 2 requested to transfer 32 bytes, transfered 32 bytes.
Packet 3 requested to transfer 32 bytes, transfered 0 bytes.
Packet 4 requested to transfer 32 bytes, transfered 0 bytes.
Packet 5 requested to transfer 32 bytes, transfered 0 bytes.
Packet 6 requested to transfer 32 bytes, transfered 0 bytes.
Packet 7 requested to transfer 32 bytes, transfered 0 bytes.
--
Xiaofan
------------------------------------------------------------------------------
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
_______________________________________________
libusbx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libusbx-devel