On Mon, Sep 28, 2009 at 5:43 PM, - <[email protected]> wrote: > Hello, > > I'm trying to access barcodes scanned and saved in a scanner's flash > memory. The scanner, Opticon's OPN 2001, connects via a USB cable > (which rather niftily also charges its battery), but the interface is > actually serial rather than "native" USB. Opticon scanners seem to be > supported as of Linux kernel 2.6.29 > (http://kernelnewbies.org/Linux_2_6_29) , as in the usbserial module > is loaded and prints:
I have never done what you are trying to do but I have heard numerous times that barcode readers simply emulate a keyboard and spit out keyboard sequences very much like a serial device on USB... > [ 196.495094] USB Serial support registered for opticon > [ 196.495135] opticon 4-1:1.0: opticon converter detected > [ 196.495529] usb 4-1: opticon converter now attached to ttyUSB0 > [ 196.495557] usbcore: registered new interface driver opticon If you have got so far then wouldn't it work? Did you see the sources of the opticon driver? > lsusb gives: > > Bus 004 Device 002: ID 065a:0009 Optoelectronics Co., Ltd Grep for this device ID and vendor ID combo in your linux kernel tree. > How do I access the scanned data? Presumably, an application has to > use /dev/ttyUSB0 to do so. Are there generic Linux apps. which will do > so? The driver is attached, so you would have to test using /dev/event* interface or some such for testing. A generic serial communication program like minicom or cu should be able to communicate with your barcode reader. Just point the serial port device to /dev/ttyUSB0. I am applying logic here. Never been there, never done that... > Googling has not yielded results beyond the kernel version. As I have > only used the serial port for modems, I'm unsure how to proceed. It is the same thing I suppose. I have done my best. Let better hackers help you. Best of luck. -Girish > Sameer This name should have been in your e-mail ID but well. -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
