axenox / onscan.js

On-scan events for hardware barcode scanners in vanilla JS
https://a.kabachnik.info/onscan-js.html
MIT License
298 stars 105 forks source link

problem with IPDA030 android 7.0 #18

Closed marsiliflavio closed 4 years ago

marsiliflavio commented 4 years ago

Hi, i have tested with https://ithinkwise.com/onscanjs/ playgroud but the barcode not working. options: Scanner Settings: {"scanButtonKeyCode":false, "scanButtonLongPressTime":500, "timeBeforeScanTest":100, "avgTimeByChar":40, "minLength":2, "suffixKeyCodes":[9,13], "prefixKeyCodes":[], "ignoreIfFocusOn":false, "stopPropagation":false, "preventDefault":false, "reactToKeydown":true, "reactToPaste":true, "singleScanQty":1, "reactToKeyDown":true}

response: message: Received code is shorted then minimal length, scanCode:, scanDuration: 0, avgTimeByChar:50, minLength:2

thanks

kabachello commented 4 years ago

Please activate onKeyDetect in the playground to see if any key events are detected at all. Built-in scanners typically have different scan modes. If you don't see any character codes with the onKeyDetect-option active, you probably have the wrong scan model in the scanners config. Look for something like "keyboard wedge" or similar. You can find more information about the configuration of scanners here: https://a.kabachnik.info/onscan-js.html

marsiliflavio commented 4 years ago

Thanks, stupidly I hadn't checked the "keyboard simulation" setting on device.

F.