enioka-Haute-Couture / enioka_scan

Integration library for all your Android hardware barcode scanner integration needs
Apache License 2.0
52 stars 4 forks source link

#110 - Add support for HOST_ACK to SSI parser #127

Closed DaSpood closed 1 year ago

DaSpood commented 1 year ago

Resolves #110

Use HOST_ACK (0x96) instead of CMD_ACK (0xD0) if the scanner replies to the INIT_COMMAND (0x90) with a 0x91 response.

If ignored and CMD_ACK is used, the device would lock itself for a few seconds after each action while awaiting for the HOST_ACK that never comes. This change fixes that problem and the scanner becomes available again immediately after a successful scan.

Also fix the handling of scanner search options handling in ScannerCompatActivity where settings from the intent that started the activity would be overridden by defaults, meaning Bluetooth would always be disabled during the search.