|
From: Dan M. <dan...@gm...> - 2007-04-12 13:57:47
|
Hi there,
I made some tests using all the endpoints to see what messages I would get
from Debug View logs. Here are the results:
I can only write using endpoint 0x04. If I use endpoint 0x02, the
application freezes. If I use endpoints 0x86 or 0x88, I get invalid endpoint
error (error: _usb_setup_async: invalid endpoint 0x86-0x88).
Writing with endpoint 0x04, I made tests to see where I could read from.
Endpoint 0x88 works fine, but then I get the bandwidth problem. Using
endpoint 0x02, I get the invalid endpoint error (error: _usb_setup_async:
invalid endpoint 0x02). When I try the endpoint 0x86, I get the worst
result: application freezes and I can't even close it using Windows task
manager.
Debug View logs and the application error messages are shown below. Hope
this helps.
------------------------------------------------------------
*endpoint 0x02 direction OUT
endpoint 0x88-0x86-0x04 direction IN:*
------------------------------------------------------------
*DEBUG VIEW:*
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 18
LIBUSB-DRIVER - get_descriptor(): type 0001
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 9
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - get_descriptor(): buffer size 46
LIBUSB-DRIVER - get_descriptor(): type 0002
LIBUSB-DRIVER - get_descriptor(): recipient 0000
LIBUSB-DRIVER - get_descriptor(): index 0000
LIBUSB-DRIVER - get_descriptor(): language id 0000
LIBUSB-DRIVER - get_descriptor(): timeout 5000
LIBUSB-DRIVER - set_configuration(): found interface 0
LIBUSB-DRIVER - update_pipe_info(): interface 0
LIBUSB-DRIVER - update_pipe_info(): endpoint address 0x02
LIBUSB-DRIVER - update_pipe_info(): endpoint address 0x04
LIBUSB-DRIVER - update_pipe_info(): endpoint address 0x86
LIBUSB-DRIVER - update_pipe_info(): endpoint address 0x88
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x02
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 0
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x02
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - call_usbd(): request timed out
*APPLICATION ERROR MESSAGES:*
No messages. Freeze.
*************************************************************************
*************************************************************************
------------------------------------------
*endpoint 0x86 direction OUT
endpoint 0x88 direction IN:
*------------------------------------------
*DEBUG VIEW:*
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 12
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x88
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - transfer_complete(): sequence 12: timeout error
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 13
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x88
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - transfer_complete(): sequence 13: timeout error
LIBUSB-DRIVER - release_interface(): interface 0
*APPLICATION ERROR MESSAGES:*
LIBUSB_DLL: info: usb_os_find_busses: found bus-0
LIBUSB_DLL: info: usb_os_find_devices: found
\\.\libusb0-0002--0x0547-0x1002<file://./libusb0-0002--0x0547-0x1002>on
bus-0
-------------------------------------
Opening Device 1 / 334d80.
Vendor ID: 1351
MY_VID: 1351
Product ID: 4098
MY_PID: 4098
EP_IN: 88
EP_OUT: 86
Opened Device 1.
Configuring Device 1...................Configurations Set.
Claiming Device's 1 Interface................Interface Claimed.
---->Bulk writing.................LIBUSB_DLL: error:
_usb_setup_async: invalid endpoint 0x86
Wrote -22 bytes em 0.005949 segundos [error: bulk write failed]
---->Bulk reading..................LIBUSB_DLL: error: usb_reap:
timeout error
Read -116 bytes em 0.509017 segundos [error: bulk read failed]
---->Interrupt writing............LIBUSB_DLL: error:
_usb_setup_async: invalid endpoint 0x86
Wrote -22 bytes em 0.006580 segundos [error: interrupt write failed]
---->Interrupt reading.............LIBUSB_DLL: error: usb_reap:
timeout error
Read -116 bytes em 0.530581 segundos [error: interrupt read failed]
Releasing Interface..............Interface Realeased
*************************************************************************
*************************************************************************
------------------------------------------
*endpoint 0x88 direction OUT
endpoint 0x88 direction IN:
*------------------------------------------
*DEBUG VIEW:*
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 16
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x88
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - transfer_complete(): sequence 16: timeout error
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x88
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 17
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x88
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - transfer_complete(): sequence 17: timeout error
LIBUSB-DRIVER - release_interface(): interface 0
*APPLICATION ERROR MESSAGES:*
LIBUSB_DLL: info: usb_os_find_busses: found bus-0
LIBUSB_DLL: info: usb_os_find_devices: found
\\.\libusb0-0002--0x0547-0x1002<file://./libusb0-0002--0x0547-0x1002>on
bus-0
-------------------------------------
Opening Device 1 / 334d80.
Vendor ID: 1351
MY_VID: 1351
Product ID: 4098
MY_PID: 4098
EP_IN: 88
EP_OUT: 88
Opened Device 1.
Configuring Device 1...................Configurations Set.
Claiming Device's 1 Interface................Interface Claimed.
---->Bulk writing.................LIBUSB_DLL: error:
_usb_setup_async: invalid endpoint 0x88
Wrote -22 bytes em 0.006056 segundos[error: bulk write failed]
---->Bulk reading..................LIBUSB_DLL: error: usb_reap:
timeout error
Read -116 bytes em 0.522915 segundos[error: bulk read failed]
---->Interrupt writing............LIBUSB_DLL: error:
_usb_setup_async: invalid endpoint 0x88
Wrote -22 bytes em 0.005569 segundos[error: interrupt write failed]
---->Interrupt reading.............LIBUSB_DLL: error: usb_reap:
timeout error
Read -116 bytes em 0.530075 segundos[error: interrupt read failed]
Releasing Interface..............Interface Realeased
*************************************************************************
*************************************************************************
------------------------------------------
*endpoint 0x04 direction OUT
endpoint 0x02 direction IN:*
------------------------------------------
*DEBUG VIEW:*
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 51
LIBUSB-DRIVER - transfer_complete(): sequence 51: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 52
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x04
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - transfer_complete(): sequence 52: timeout error
LIBUSB-DRIVER - release_interface(): interface 0
*APPLICATION ERROR MESSAGES*:
LIBUSB_DLL: info: usb_os_find_busses: found bus-0
LIBUSB_DLL: info: usb_os_find_devices: found
\\.\libusb0-0002--0x0547-0x1002<file://./libusb0-0002--0x0547-0x1002>on
bus-0
-------------------------------------
Opening Device 1 / 334d80.
Vendor ID: 1351
MY_VID: 1351
Product ID: 4098
MY_PID: 4098
EP_IN: 02
EP_OUT: 04
Opened Device 1.
Configuring Device 1...................Configurations Set.
Claiming Device's 1 Interface................Interface Claimed.
---->Bulk writing.................Wrote 2048 bytes em 0.002735segundos
---->Bulk reading..................LIBUSB_DLL: error:
_usb_setup_async: invalid endpoint 0x02
Read -22 bytes em 0.000351 segundos[error: bulk read failed]
---->Interrupt writing............LIBUSB_DLL: error: usb_reap:
timeout error
Wrote -116 bytes em 0.519622 segundos[error: interrupt write failed]
---->Interrupt reading.............LIBUSB_DLL: error:
_usb_setup_async: invalid endpoint 0x02
Read -22 bytes em 0.000248 segundos[error: interrupt read failed]
Releasing Interface..............Interface Realeased
*************************************************************************
*************************************************************************
------------------------------------------
*endpoint 0x04 direction OUT
endpoint 0x86 direction IN:
*------------------------------------------
*DEBUG VIEW*:
LIBUSB-DRIVER - set_configuration(): configuration 1
LIBUSB-DRIVER - set_configuration(): timeout 5000
LIBUSB-DRIVER - claim_interface(): interface 0
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction out
LIBUSB-DRIVER - transfer(): endpoint 0x04
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 16
LIBUSB-DRIVER - transfer_complete(): sequence 16: 2048 bytes transmitted
LIBUSB-DRIVER - transfer(): bulk or interrupt transfer
LIBUSB-DRIVER - transfer(): direction in
LIBUSB-DRIVER - transfer(): endpoint 0x86
LIBUSB-DRIVER - transfer(): size 2048
LIBUSB-DRIVER - transfer(): sequence 17
LIBUSB-DRIVER - abort_endpoint(): endpoint 0x86
LIBUSB-DRIVER - abort_endpoint(): timeout 5000
LIBUSB-DRIVER - call_usbd(): request timed out
*APPLICATION ERROR MESSAGES*:
No messages. Freeze.
On 4/11/07, Dan Martins <dan...@gm...> wrote:
>
> Hello,
>
> Stephan, thank you for all the information. I'll try to contact the
> manufacturer as you suggested, but this will certainly take a lot of time.
> Meanwhile, I'll try to workaround.
>
> But I question raised in my mind: these devices have four endpoints. Two
> isochronous (0x01) and two bulk (0x02), isn't that right? The endpoints I'm
> using are isochronous and they work fine until I have the bandwidth issue.
> But whenever I try to use the other two endpoints, the application just
> freezes. There's no error message, no nothing. The program stops and I can't
> even close it using Window's task manager. Do you have any idea why that
> happens? If I could use the bulk endpoints, at least the bandwidth wouldn't
> be a problem anymore, right?
>
> here goes the testlib's log again:
>
> bus/device idVendor/idProduct
> bus-0/\\.\libusb0-0001--0x0547-0x1002 0547/1002
> - Manufacturer : Micro-Star
> - Product : USB TESTER
> wTotalLength: 46
> bNumInterfaces: 1
> bConfigurationValue: 1
> iConfiguration: 0
> bmAttributes: 80h
> MaxPower: 50
> bInterfaceNumber: 0
> bAlternateSetting: 0
> bNumEndpoints: 4
> bInterfaceClass: 255
> bInterfaceSubClass: 0
> bInterfaceProtocol: 0
> iInterface: 0
> bEndpointAddress: 02h
> bmAttributes: 01h
> wMaxPacketSize: 1024
> bInterval: 1
> bRefresh: 0
> bSynchAddress: 0
> bEndpointAddress: 04h
> bmAttributes: 02h
> wMaxPacketSize: 512
> bInterval: 0
> bRefresh: 0
> bSynchAddress: 0
> bEndpointAddress: 86h
> bmAttributes: 01h
> wMaxPacketSize: 1024
> bInterval: 1
> bRefresh: 0
> bSynchAddress: 0
> bEndpointAddress: 88h
> bmAttributes: 02h
> wMaxPacketSize: 512
> bInterval: 0
> bRefresh: 0
> bSynchAddress: 0
>
> Cheers!
>
> Dan
>
>
> On 4/11/07, Stephan Meyer <ste...@we...> wrote:
> >
> >
> > > So, for what I understood, I only have two options:
> > >
> > > 1 - Get another EHCI Host controller, so I can split the devices.
> > >
> >
> > That would be a workaround, but no solution. A new firmware would
> > be a solution.
> >
> > > 2 - Fix the firmware, so that the default interface setting has non
> > isochrounous endpoints.
> > >
> > > Is that correct?
> > > If so, do you know any tool to edit the firmware? The hardware I'm
> > using was not made by me, so I'll
> > > something to change ther firmware.
> >
> > You need the firmware's source code to fix it, unless you want to spend
> > endless
> > hours reverse engineering hex files.
> > Apart from that, by fixing the firmware on your own you will void the
> > manufacturer's
> > warranty.
> >
> > But, what about a third option?:
> >
> > Contact the manufacturer, tell them about the broken firmware and ask
> > for a software update. If they won't do this, then send the device back
> > and
> > request a refund.
> >
> > Stephan
> >
> >
> >
> >
> >
> > _______________________________________________________________
> > SMS schreiben mit WEB.DE <http://web.de/> FreeMail - einfach, schnell
> > und
> > kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> >
> >
> > -------------------------------------------------------------------------
> >
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Libusb-win32-devel mailing list
> > Lib...@li...
> > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
> >
>
>
|