• Post Reply Bookmark Topic Watch Topic
  • New Topic

Interaction with Usb Device

 
robin singal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have been trying to perform i/o operations with the any usb device in linux.
In this case i have connected a usb flash drive to the linux machine.

This is the output i receive when i try to detect the usb pipe and the exception arises when i try to open the pipe:


The output i get is:




The code snippet i am using::




Thanks!!
[ November 04, 2008: Message edited by: robin singal ]
 
Campbell Ritchie
Marshal
Posts: 52565
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go back and edit your code to include code tags; you ought by now to know how to use them.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's likely to be a permissions issue. Is the USB device being mounted by the OS? Does your program have read/write access to the device node? I don't have any specific knowledge about doing this, but I suspect the problems are more using-a-pendrive-on-Linux problems than just USB API problems.
 
robin singal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the USB pendrive is mounted automatically by the OS. But when i unmount it still it gives the same problem.
Anybody have ideas??

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!