4

I am connecting USB RFID reader to Android Tablet using OTG cable. Data from RFID tag is directly written into notepad, but I can't access the device from Android code. RFID reader is not recognized as USB by app.

Anyone has faced similar problem. I need to get the data in Android app.

Bads123
  • 879
  • 2
  • 13
  • 26
  • 1
    So the RFID reader emulates a keyboard? If so I would expect the same behavior on the android device. So you wouldn't have anything to access it via code as it's a keyboard. – Dreamwalker Apr 11 '14 at 14:35
  • 1
    Unless you have root on the device and can get the system to ignore it so that it becomes available to the USB Host APIs, you will probably have to acquire the data as keyboard data. – Chris Stratton Apr 11 '14 at 14:54

2 Answers2

4

After research I have found that USB RFID Reader which is Keyboard Interface type is going to work as Keyboard input interface device when attached to Android OS, and therefor not able to read using API. (This is the how RFID manufacture has design that type of Reader)

However there are Read & Write type of Read which can be read and write using API. Reader manufacture must have to provide API kit to in order to read/write data from Reader.

Dhaval Patel
  • 608
  • 7
  • 15
  • Have you further infrmation about this topic? F.e. how to access the input value by the scanner as keyboard input? I want to have the information from the scanner in my android app. – Yvonne Marggraf Sep 03 '18 at 12:38
  • @YvonneMarggraf did you manage to figure this one out? Would appreciate any tips! – Suparna Gharpure Apr 24 '19 at 14:58
  • More or less. I used a Chainway scanner and tried to read the Chinese docu in the English version... It was readable but it took a lot of time. The data were send in a special object and I had to divide between UTC and TIP to get the data I needed for the Android app. – Yvonne Marggraf May 10 '19 at 11:15
  • My tipp to find the clue for your problem: Use the docu of your device or OS and look for the data you want to have and try to get the whole object first, and then try to smallerise this up to the value you need. I did it the same way with Try-And-Error-Methods. – Yvonne Marggraf May 10 '19 at 11:18
-1

Thanks for the input. I was trying to solve this problem from past few days.

I solved the problem by adding a edit text in my app and now the input from RFID reader directly comes into edit text.

Bads123
  • 879
  • 2
  • 13
  • 26