Mobile Apps - IssueVendorTransfer() handle
Asked By Rob
20-Nov-09 11:29 AM
We are investigating a handle-resource issue (see my other post).
On of the suspects is an USB driver (written by us).
My question is :
IssueVendorTransfer() returns an USB_TRANSFER handle, should this handle be
closed after this call ? In samples I donot see this....
Kind Regards,
Rob.
www.robtso.nl
R. de Gravelaine replied to Rob
Hi,
USBD IssueVendorTransfer returns an USB_TRANSFER handle which is
actually a STransfer * obtained by calling GetTransferObject. This
object is allocated dynamically by USBD and is not a regular system HANDLE.
The IssueVendorTransfer flavor that comes with the samples is the one of
usbclient.c and returns a DWORD. Internally, if no notification routine
is given, the USB_TRANSFER allocated by calling USBD's
IssueVendorTransfer is closed. If a notification routine is provided, it
should close the transfer, eventually after having retrieved the
transfer status.
HTH
Remi
Windows CE 6.0 IssueVendorTransfer problem Mobile Apps Hi, When I execute the following function: BOOL SoftReset( PUSBPRN_CONTEXT pUsbPrn ) { USB_DEVICE_REQUEST wIndex = 1; ControlHeader.wLength = 0; DEBUGMSG( ZONE_ERR, (TEXT("pUsbPrn-> bInterfaceNumber = %d \ n"), dwErr, dwUsbErr)); dwErr = IssueVendorTransfer( pUsbPrn-> UsbFuncs, pUsbPrn-> hUsbDevice, DefaultTransferComplete, pUsbPrn-> hEP0Event, (USB_OUT_TRANSFER | USB_SHORT_TRANSFER_OK), &ControlHeader, NULL, 0, &dwBytesTransferred, 1000, &dwUsbErr ); if ( ERROR_SUCCESS ! = dwErr | | USB_NO_ERROR ! = dwUsbErr) { DEBUGMSG( ZONE_ERR, (TEXT("IssueVendorTransfer ERROR:%d 0x%x \ n"), dwErr, dwUsbErr)); IoErrorHandler( pUsbPrn, NULL, 0, dwUsbErr); } } DEBUGMSG( ZONE_USB_CONTROL, (TEXT("<SoftReset Control)::CheckForDoneTransfers - failure on TD 0xd0725900, address = 1, endpoint = 0, errorCounter = 3, status field = 0x20 IssueVendorTransfer ERROR:31 0x4 USB_STALL_ERROR I am a bit new to the USB thing. Does anyone know what is going on here. - - Don WindowsCE Embedded Discussions ControlHeader (1) PUsbPrn (1) IssueVendorTransfer (1) DwUsbErr (1) DEBUGMSG (1) USB_REQUEST_HOST_TO_DEVICE (1) DwErr (1) ERROR (1) Hi, you'll get cpp, but that's mostly it. Hope it helps, AM keywords: Windows, CE, 6.0, IssueVendorTransfer, problem description: Hi, When I execute the following function: BOOL SoftReset( PUSBPRN_CONTEXT pUsbPrn ) { USB_DEVICE_REQUEST ControlHeader
Problem while issuing IssuevendorTransfer Mobile Apps Hi, I am getting "Error 87 in IssueVendorTransfer" while issuing IssueVendorTransfer. I was not able to find the reason of this error no in msdn etc of this error? WindowsCE Embedded Discussions Windows Embedded (1) AreTransferParametersValid (1) LpIssueVendorTransfer (1) PFeaUnitDesc (1) IssuevendorTransfer (1) LpControlHeader (1) 87 is ERROR_INVALID_PARAMETER: check IssueVendorTransfer in %_WINCEROOT% \ PUBLIC \ COMMON \ OAK \ DRIVERS \ USB \ USBD \ usbddrv.cpp to see why it's eurotech.it Thank you for your feedback. Now I have one more problem with the IssueVendorTransfer function. I am working on wince 6.0 and the audio device is FULL speed A0 = = A00 g bad arguments EmbeddedAnnotations 9a34-a67fbb44d62a@d19g2000prh.googlegroups.com. . . keywords: Problem, while, issuing, IssuevendorTransfer description: Hi, I am getting Error 87 in IssueVendorTransfer while issuing IssueVendorTransfer. I was not able to find the reason of this error no
calling IssueVendorTransfer from application code Mobile Apps Hello, I'm trying to call IssueVendorTransfer from an application, but just don't get how to provide valid parameters. The basic Thank you WindowsCE Platform Builder Discussions Windows XP (1) WinCE (1) MainThreadBaseFunc (1) DevDeviceIoControl (1) IssueVendorTransfer (1) IssueBulkTransfer (1) HcdIssueTransfer (1) UsbsDataTransfer (1) While the IssueVendorTransfer API is exported by USBD so that having a valid USB class driver might be my scope), which TBH I'm quite happy with. See you later :) Alex keywords: calling, IssueVendorTransfer, from, application, code description: Hello, I'm trying to call IssueVendorTransfer from an application, but just don't get how to provide valid parameters. The basic