|
From: Xiaofan C. <xia...@gm...> - 2011-04-14 14:20:38
|
Please keep the list in CC. Thanks. On Thu, Apr 14, 2011 at 8:14 PM, Paul URVOAS <pau...@gm...> wrote: > 2011/4/14 Xiaofan Chen <xia...@gm...> >> >> 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 >> > Hi, I use Ubuntu 9.10 > In fact, I don't succeed to use the driver of the GPIB-USB for linux yet. I > would like to transfer manually the messages to the usb interface. > I see. You may want to ask NI for help regarding the GPIB-USB driver. In any case, you may need to download the firmware first before you can use it. -- Xiaofan |