|
From: Xiaofan C. <xia...@gm...> - 2011-04-14 12:01:09
|
On Thu, Apr 14, 2011 at 4:55 PM, Paul URVOAS <pau...@gm...> wrote: > I am trying to communicate with an usb device (NI GPIB-USB-B) to get some > physical measurements... Just wondering what is the OS you are using and why would want to use libusb for this task. Drivers from NI: http://zone.ni.com/devzone/cda/tut/p/id/5458 > I find the device, but the function usb_bulk_write returns the following > error : > <b>error submitting URB: No such file or directory</b> > I am probably doing something wrong, and I spent lots of time to find my > mistake... Any help pointing out my error would be appreciated. > > > #define EP_OUT 0x2 > else{printf("Connexion : succeeded\n");} > char dataInit[72] = "/0x09/0x1A/0x00/0x03/0x10/0x00/0x01/0x33"; > > for(i=0;i<2;i++){ > returnValue = usb_bulk_write(usb_handle, EP_OUT , dataInit, 8, > BULK_TIMEOUT); > } Please post the output of "lsusb -vvv" for this paticular device and make sure it does really use EP2 OUT. Google seems to suggest that you need to download the EZ-USB firmware first. It says that 0x702a should be the real USB PID after firmware downloading. http://permalink.gmane.org/gmane.linux.hardware.gpib.general/980 -- Xiaofan |