Android Question AsyncStreams with bluetooth barcode reader

GaNdAlF89

Active Member
Licensed User
Longtime User
Hi, I want to read data from a barcode reader device. The barcode reader is correctly connected with a serial object. After this connection I do this:

B4X:
AStreamReader.Initialize(BTSerialReader.InputStream,Null,"BTAStreamReader")

but nothing happens when I read a barcode: neither BTAStreamReader_NewData nor BTAStreamReader_Error event is raised. Where is the problem? Thanks
 

GaNdAlF89

Active Member
Licensed User
Longtime User
No event is raised, but the connection is established. I tried also with AsyncStreamsText but I have the same problem. Why?

Edit: If I set the focus in an editText, the text is written.
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
Your barcode scanner is acting as an alternative keyboard. It is probably not sending any data through the SPP channel.
I set it in SPP mode with its manual, reading a qrcode in particular. In this manual there is no other to do for SPP connection. What do you think I have to do to fix it? Thanks
 
Upvote 0
Top