S
Srinivasan R.
Hi.
I am trying to talk to a USB device (a thumb drive) in Windows 7 via
Ruby. I installed the Ruby-USB gem without errors. I tried a simple code
snippet wherein I tried to list all the USB devices connected on the
system -
require 'usb'
USB.devices
However, in IRB, this is just outputting []. I tried to use
USB.find_devices and that is outputting 0.
What exactly am I doing wrong? Do I need to give admin rights to Ruby
under Win 7 to detect USB devices. If yes, can someone enlighten me how
to do it?
If this is a report, kindly excuse.
Thanks
I am trying to talk to a USB device (a thumb drive) in Windows 7 via
Ruby. I installed the Ruby-USB gem without errors. I tried a simple code
snippet wherein I tried to list all the USB devices connected on the
system -
require 'usb'
USB.devices
However, in IRB, this is just outputting []. I tried to use
USB.find_devices and that is outputting 0.
What exactly am I doing wrong? Do I need to give admin rights to Ruby
under Win 7 to detect USB devices. If yes, can someone enlighten me how
to do it?
If this is a report, kindly excuse.
Thanks