Hi, I have a USB barcode scanner that acts like a keyboard: whenever a barcode is read it sends the code where the keyboard would normally write. I am using kernel 2.6.15 and the scanner works just fine.
I would like to write some code (preferably in C) to be able to listen to the scanner from a program, just like I would read from a socket or a serial port for instance, instead of the barcode being printed in the active window. How can I do that? I am also using a usb-serial converter, prolific 2303. The associated driver create /dev/ttyUSB0 upon connection of the device. I can use this file to communicate with it. A similar behavior would be perfect for the current case. Someone on a forum told me: "Add 8250.nr_uarts=8 to the end of your kernel line to have it configure past COM4" and then access via /dev/ttyS4. Unfortunately, my kernel doesn't understand this option. I have come to guess that it's because I don't have a 8250 chip, but a 82801. Is that correct? Is it possible to adapt the solution then? Thanks, Brice, National University of Singapore technical stuffs that might help: >From the device manager: the scanner is connected to: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 and associated with the following device file: /dev/bus/usb/002/002 (this time, but it changes each time I reconnect the device) I found this section in /proc/bus/usb/devices T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=05e0 ProdID=0200 Rev= 2.04 S: Manufacturer=(c) Symbol Technologies, Inc, 2000 S: Product=Symbol Bar Code Scanner S: SerialNumber=S/N:2925e1000000 Rev:NBRXUAAM3 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=400mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms and 'ls -l /dev/bus/usb/002' reports crw-rw-r-- 1 root root 189, 128 2006-10-26 16:28 001 crw-rw-r-- 1 root root 189, 129 2006-10-26 16:28 002 I don't know what else I can provide... ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users