TestBth icon indicating copy to clipboard operation
TestBth copied to clipboard

How do I know when the Bluetooth machine's signal is lost?

Open sliora opened this issue 5 years ago • 3 comments

Hi We are using the source to scan Bluetooth barcodes. When the current application is in sleep mode and resumed again, it becomes well recognized. However, if you disconnect from the Bluetooth device, the application recognizes that it is still receiving a signal. Also, it does not connect automatically.

I am wondering if there is a way for the application to know if the signal received from the bluetooth device is cut off. Is there any way? Please.

sliora avatar Jun 11 '20 03:06 sliora

I don't know. How do you "disconnect" the Android device from the scanner?

acaliaro avatar Jun 11 '20 07:06 acaliaro

I don't know. How do you "disconnect" the Android device from the scanner?

Turn off the power of my barcode scanner to disconnect it.

The barcode scanner I currently have is: https://www.aliexpress.com/item/4000329142271.html?spm=a2g0o.productlist.0.0.3f622ee0cItrVX&algo_pvid=5b9f9983-e7d6-4f8c-8d3d-b6029808b0fe&algo_expid=5b9f9983-e7d6-4f8c-8d3d-b6029808b0fe-8&btsid=0be3764315921471229786461e5ee5&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

sliora avatar Jun 14 '20 15:06 sliora

So, you turn off the scanner and you continue to receive data? I don't know, but you can try to debug and try to understand which kind of data are you receiving. Maybe you can try to "restart" the communication between device and scanner from the start

acaliaro avatar Jun 15 '20 07:06 acaliaro