From: Hans P. S. <hse...@c2...> - 2012-04-22 08:24:43
|
On Sunday 22 April 2012 10:01:04 Xiaofan Chen wrote: > On Sun, Apr 22, 2012 at 2:36 PM, Hans Petter Selasky <hse...@c2...> wrote: > > On Sunday 22 April 2012 05:29:46 Xiaofan Chen wrote: > >> ~/Desktop/build/LibUsbDotNet_Bin_2.2.8]$ sudo mono BenchmarkCon.exe list > >> LibUsbDotNet USB Benchmark v2.2.8.104 > $ lsusb > Bus /dev/usb Device /dev/ugen0.2: ID 04d8:fa2e Microchip Technology, Inc. > $ ls -la /dev/usb/0.2.0 > crw------- 1 mcuee operator 0, 85 Apr 22 15:49 /dev/usb/0.2.0 > > $ mono BenchmarkCon.exe list > LibUsbDotNet USB Benchmark v2.2.8.104 > Copyright (c) 2010 Travis Robinson. <lib...@gm...> > website: http://sourceforge.net/projects/libusbdotnet > 1. 04D8:FA2E Travis Robinson - Benchmark Device > > Select device (1-1) :1 > > err:setting bechmark test type #TestTypeLoop! > MonoApiError:ControlTransfer Failed > -2:ErrorInvalidParam:Invalid parameter > Press any key to exit.. Hi, I believe it is a bug in the framework. There are two reasons for invalid parameter on a control transfer: int libusb_control_transfer(libusb_device_handle *devh, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint8_t *data, uint16_t wLength, unsigned int timeout) if (devh == NULL) return (LIBUSB_ERROR_INVALID_PARAM); if ((wLength != 0) && (data == NULL)) return (LIBUSB_ERROR_INVALID_PARAM); --HPS |