Dear Team,
I have a USB Bluetooth Dongle and I managed to load winusb.sys driver for this device so that I can use the WinUSB client APIs.
Initialization and configuration of the device is completed and I am getting valid interface descriptors, pipe ids, end point types.
As a next step I want to send data to the device. Since it is Bluetooth device, I framed INQUIRY DATA command of 10 bytes and writing to device using WinUsb_WritePipe provided by WinUSB.
This call always returns 87 which is incorrect parameter. The calling parameters are:
WinUsb_WritePipe (winusb_handle,
bulkinpipeid,
inquirydatabuffer,
inquirydatabufferlength,
actuallengthwritten,
NULL):
Here while debugging I am getting valid winusb handle and pipeids.
Any one who successfully transfered data to and from the devices using WinUSB kindly provide a pointer and verify the parameters in the function call.
Regards.