LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Eclipse cannot open usb (https://www.linuxquestions.org/questions/linux-hardware-18/eclipse-cannot-open-usb-593843/)

go939 10-23-2007 12:39 AM

Eclipse cannot open usb
 
hey there!

I'm having an error in usb port opening in eclipse (fedora) when i run the program. But when i run my program in terminal/konsole window it runs successfully. i already installed libusb.
can somebody explain to me why it cannot run in eclipse? or i have lacking library that need to be installed?

thank you.

goens 10-23-2007 07:16 PM

I didn't really get what your problem is. Are you running eclipse from within the USB Stick or are you trying to access the USB Stick through an eclipse instance that was run from your hard drive? If the second one is the case, then check if you have even mounted the usb stick.

If you don't, try running the following as a root: mount -t vfat -o rw /dev/sda1 /mnt/usb (i'm assuming here that sda1 is your usb stick and you have an empty directory called /mnt/sub)
If you want to save again to the usb stick, you have to edit your fstab and give permission to a normal user to mount filesystems, try changing the line referring to the usb device in your fstab to something like this:

dev/sda1 /mnt/usb auto noauto,users,rw,umask=00 0 0

or look at the fstab tutorial in linuxquestions

go939 10-23-2007 08:30 PM

I have a project, mobile robot that connects to the pc that is usb based.

go939 10-23-2007 09:18 PM

the error are:
could not claim interface 0: operation not permitted
could not release intf 0: operation not permitted

thanks

goens 10-24-2007 10:21 PM

i'm sorry but you've confused me more about what your problem is. Could you be more specific. How are you trying to acces this robot? Did you build it yourself or did it come with a driver? what are you supposed to do with it and how? and where exactly does eclipse come to the issue? Post more outputs, the commands you run and the output or the function you are calling to access the robot. It is really hard to try and help withouth fully understanding the problem


All times are GMT -5. The time now is 05:40 AM.