How the bar code scanner is connected to Linux Box?via USB? if so you can give a try using the HID APIS (hid-raw or libusb implementation)
here : http://developer.mbed.org/cookbook/USBHID-C-bindings It ha a hidtest.cpp code which you can modify according to your device.The readme and build instructions are there inside the git link in the above link. rgds, Saurabh "..pain is temporary.....quitting lasts forever....." My Blog <http://techshek4u.blogspot.in/>" On Sat, Dec 20, 2014 at 12:51 AM, SouthAustin <[email protected]> wrote: > We have a USB barcode scanner that emulates a HID that we've connected to > an Android 4.0.3 "Generic"/No name tablet via USB OTG . We've verified > that the tablet does receive scans. > > Now we have to write our own app to handle the scans and we were wondering > how the app would read the input from the scanner. > > The barcode scanner beeps to confirm that it has read a code so we > don't need an EditText or similar widget to echo the barcode value on the > screen. Our app will do a lookup based on the code provided and display > more details > > We've connected this barcode scanner to a linux box in the past and were > able to open the low level "/dev/... " corresponding to the HID in > exclusive mode to get the data. This gave our app exclusive access to > the data from the scanner. > > What do we have to do in Android to read the scanner data ? Thks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

