From: anshu p. <pan...@gm...> - 2020-07-22 15:12:07
|
Hi Team, Thanks for the reply. I have followed this link https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/winusb-installation to make my device as winusb without installing a custom driver. After doing the above step my device(scanner device) is working as a winusb device and also i have downloaded libusbK-3.0.7.0-setup to work with this device. I have followed the steps below: 1-LstK_Init 2-LstK_Count 3-LstK_FindByVidPid 4-!LibK_LoadDriverAPI(Usb, deviceInfo->DriverID) KUSB_DRVID_WINUSB: printf("WinUSB driver api loaded!\n"); 5-!Usb.Init(usbHandle, deviceInfo) 6-!Usb.QueryInterfaceSettings(usbHandle, 0x0, &interfaceInfo) 7-Usb.QueryPipe(usbHandle, (UCHAR)ALT_SETTING_NUMBER, (UCHAR)iEndpoint, &pipeInfo); ALT_SETTING_NUMBER =0x01(i want to work with bulk pipe) 8-Usb.WritePipe(usbHandle, 0x01, cmdBuffer, sizeof(cmdBuffer), (PUINT)&lengthTransferred, NULL); BYTE cmdBuffer[8+1] = {0x00,0x00,0x00, 0x01}; till the 7 steps everything is successfully done but writepipe is not working . Is these steps are enough to understand or i should forward all the code which I am using currently. Please update me about this. Thanks, Anshul On Wed, Jul 22, 2020 at 7:47 PM Xiaofan Chen <xia...@gm...> wrote: > Please provide more details, what is the device? OS version? And provide > the minimum code snippets to cause the error. > > - > Xiaofan > > On Wed, Jul 22, 2020, 6:15 PM anshu panwar <pan...@gm...> wrote: > >> Hi Team, >> I am facing issues in writepipe/readpipe after successfully open the >> device handle. >> Currently 87 error is return from writepipe using libusbk lib for winusb >> device. >> >> Thanks, >> Anshul >> _______________________________________________ >> Libusb-win32-devel mailing list >> Lib...@li... >> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel >> > _______________________________________________ > Libusb-win32-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > |