Results 1 to 4 of 4
Hi All,
When barcode read connectde to PC device node is created as
/dev/input/by-id/usb-C40037802-event-kbd.
I tried to read data fropm this and it is given junk value.
Please can any ...
- 06-10-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 8
how to read keyboad device node directly
Hi All,
When barcode read connectde to PC device node is created as
/dev/input/by-id/usb-C40037802-event-kbd.
I tried to read data fropm this and it is given junk value.
Please can any one give idea to read keyboad device node directly?
Thanks in advance..
- 06-11-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Have you tried to open /dev/stdin?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-12-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 8
Hi,
Thanks for your reply... Yes I tried ..but the probelm is if i use stdin it will work but we can read the input only from the active window...if i move to some other application at the same time if i read barcode then it will fail
- 06-12-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
One of the reasons you get "junk" when you connect to the raw usb device is that it hasn't been "massaged", so there is likely a bunch of data there that is usb related. You will probably need a driver module for this device, or have to write one yourself. What is the make/model of the scanner? Also, it might be that the sane driver (generic scanner support for Linux) will work for you. Have you tried that?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote