Forceu / barcodebuddy

Barcode system for Grocy
GNU Affero General Public License v3.0
443 stars 59 forks source link

~10 second delay when using USB barcode scanner #187

Open gjerm opened 2 years ago

gjerm commented 2 years ago

I have installed Barcode Buddy on a Raspberry Pi 4 (headless) with Docker (x64, so the arm64v8-latest-dev image). It functions well, and my USB barcode scanner works, but if I have the BB screen open on a separate device (iPad or Firefox on Windows PC) it takes a few seconds (by my count, 10 seconds) before results of the scan show up. I have set up the scanner as instructed by the documentation (passing the input device to the Docker container).

It's pretty much instant if I instead use the Barcode Buddy scanner app on Android, which leads me to believe it's not a performance issue with the Pi, or a lookup issue. Is this a known issue, and what can I provide to help debug?

TonyJr1 commented 9 months ago

I have the same issue, with a Raspberry Pi 3B (headless), Docker x64. The delay is exactly 5 seconds, however. USB passthrough to the Docker container.

Scanner app for Android works without any delay.