Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sliora opened this issue Jun 11, 2020 · 3 comments
Open

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

sliora opened this issue Jun 11, 2020 · 3 comments

Comments

@sliora
Copy link

sliora commented Jun 11, 2020

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.

@acaliaro
Copy link
Owner

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

@sliora
Copy link
Author

sliora commented Jun 14, 2020

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_

@acaliaro
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants