Can some one please point to any API or links where i can detect a USB device and other interfaces to transfer data into it.I am trying to do this on linux
Take a look at libusb - it's cross-platform.