markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.43k stars 117 forks source link

Feature request: bluetooth HID keyboard support #325

Open Gittalax opened 1 year ago

Gittalax commented 1 year ago

Thanks for your great job.

Will not simple :). It would be super if you could implement a bluetooth stack and the app could send the code as a secondary keyboard to any input in an app running on a PC or notebook. I'm still looking for a Bt. HID emulator app (not from the playstore, of course, but from F-Droid or Git) that I could invoke with the code "share", but I haven't managed yet.

markusfisch commented 1 year ago

Hm, that sound like something you might be able to accomplish with an app like Tasker or IFTTT.

You could use Binary Eye from these apps with the Scan Intent to scan a barcode and then transfer the read data to a bluetooth keyboard.

Gittalax commented 1 year ago

That's not what I meant. And for me that would be very cumbersome using a bloatware (I don't mean Tasker) that has even a little to do with google, cloud, etc.

I'm currently launching BinaryEye for barcode scanning and sending the scanned codes to my custom URL if I can see the reading is successful at a glance. This starts the Monocles Browser (which have a special UserAgent configured instead of authentication, for the sake of simplicty). I use this for verification, identification, and sometimes for very simple data modification. From the browser, by pressing the back button, the scanner will appear again, and I can immediately scan the next item. This is the good, fast way. But it often happens that a more serious data modification or the entry of multiple codes for a new item is required. It is better to do this with a notebook, but not manually entering the codes. In this case too, it would be nice if I could go back to scanning with just one Back button, and after scanning, I could use a button to choose whether to send the code to my URL or to the keyboard input. Therefore, it would be nice if in the window after scanning it would be possible to choose (as till now), what to do with the code. And/or able to set in the settings (as till now), whether all read codes should go to the keyboard (also). Sorry for the length.

markusfisch commented 1 year ago

Hm, okay, now I can understand what you're trying to do 🤔

Maybe another option is to use the "Forwarding" feature to send the read contents to your notebook (if they are in the same network)?

For this you would need to enter the network address of your notebook (say http://192.168.0.1:8080) under "URL to forward to" in settings, and start something like Netcat to listen to port 8080 (nc -l 8080).

Then, any scan would automatically appear on your notebook 😉

Another alternative could be to share selected items from the History. You can pick individual items with a long tap and then share all selected items at once.

BobSynfig commented 1 year ago

I made a little python script to send numeric barcodes as HID via Wifi using remote-numpad-server Hoping this could be useful for you https://github.com/BobSynfig/BinaryEye-to-remote-numpad-server

KamaleiZestri commented 1 year ago

I am currently working on a solution to this that will allow BinaryEye to send scans to a device via bluetooth. So far the actually sending of scans is going well, I just need more time to fix the gui and settings stuff.

KamaleiZestri commented 1 year ago

Check out the PR above for recently added bluetooth capabilities and the UUID used.

For my own use case, I made a windows-exclusive program to connect and enter scans via keyboard.