LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Devices (https://www.linuxquestions.org/questions/linux-hardware-18/usb-devices-832847/)

intervade 09-17-2010 10:59 AM

USB Devices
 
Hello,

I'm trying to write a simple background process that reads input from a USB magnetic card reader. In most linux systems you can find the device in /dev/input. Unfortunately its not there. Does anyone have any suggestions as to how I could read this USB card readers input stream? I do have a /sys/class/input directory for it, but there are a ton of items in that directory and I don't want to break anything. The reader is a GIT usb card reader and I have had no luck from contacting the company thus far.

Soadyheid 09-17-2010 11:21 AM

Run
Code:

dmesg
with the reader disconnected, the plug it in and run
Code:

dmesg
again. What's the difference? If your distro understands it, you should see it identified properly which is a start.

Play Bonny! :hattip:

intervade 09-17-2010 11:28 AM

It finds it..


[ 195.863911] input: GIT GIT USB READER as /class/input/input2
[ 195.864259] generic-usb 0003:1234:5678.0001: input: USB HID v1.00 Keyboard [GIT GIT USB READER] on usb-0000:00:0f.4-1/input0


But where is my data stream? I've scanned through /class/input/input2 a ton, but Im not sure what I'm looking for exactly.


All times are GMT -5. The time now is 08:52 PM.