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

Wedge scanner performance issues when lots of barcodes in shot #625

Open
timmyhadwen opened this issue Mar 18, 2025 · 2 comments
Open

Wedge scanner performance issues when lots of barcodes in shot #625

timmyhadwen opened this issue Mar 18, 2025 · 2 comments
Labels

Comments

@timmyhadwen
Copy link

When using a wedge scanner in the app there is an issue where if there are multiple barcodes in shot (ie Inventree Label + Digikey or mouser label with N barcodes), high quality barcode scanners will pick up all of them and enter them with new lines in-between.

Inventree ends up trying to handle all of them instead of just the first, meaning the network coms delay results in the notifications appearing over and over again (one for each barcode).

This makes seeing if your barcode actually scanned very difficult as you get 2-3 errors with every success and have to wait 1-2 seconds between scans to let the notification queue clear.

The intended behaviour is that the barcode has a delay after each scan (as configurable in settings) however in this case this delay does nothing.

I propose that in the wedge scanner we ignore characters we receive after the first \n character for the delay time to prevent this queue.

@SchrodingersGat does this sound reasonable?

@SchrodingersGat
Copy link
Member

Yes this sounds like a reasonable approach. The scanning pipeline does not support multiple scans, so having a blanking period makes sense

@timmyhadwen
Copy link
Author

Great. I'm most of the way there then!

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

No branches or pull requests

2 participants