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

[BUG] Can't Handle "_" #31

Closed
m-pastuszek opened this issue Sep 11, 2023 · 4 comments · Fixed by #38
Closed

[BUG] Can't Handle "_" #31

m-pastuszek opened this issue Sep 11, 2023 · 4 comments · Fixed by #38
Assignees
Labels
bug Something isn't working

Comments

@m-pastuszek
Copy link

m-pastuszek commented Sep 11, 2023

Describe the bug
Scanned barcode data is incorrect, due to (I think) shift key issue. My barcode contains underscores _, but are read as -.
When I scan 4000_TRA_TRAILER02 it returns 4000-tra-traileR02.

To Reproduce
Just scan the barcode code128 4000_TRA_TRAILER02.

Expected behavior
Scanned 4000_TRA_TRAILER02 barcode should return the same data.

Smartphone (please complete the following information):

  • Device: Pixel 5
  • OS: Android 13

Additional context
Same scanned barcode in for example, notes app returns correct data, so I think that it may be an issue with reading keyevents.
Tried with two different scanners and both returning incorrect data.

@m-pastuszek m-pastuszek added the bug Something isn't working label Sep 11, 2023
@FrenkyDema FrenkyDema changed the title [BUG] [BUG] Cant handle "_" Sep 12, 2023
@FrenkyDema FrenkyDema changed the title [BUG] Cant handle "_" [BUG] Can't Handle "_" Sep 12, 2023
@m-pastuszek
Copy link
Author

It's not just the issue with underscore character, but also uppercase letters.
As I said, 4000_TRA_TRAILER02 returns 4000-tra-traileR02 string.

@FrenkyDema
Copy link
Owner

@m-pastuszek I try with this:
image

And it work:
Screenshot 2023-09-13 alle 08 57 00

@m-pastuszek
Copy link
Author

m-pastuszek commented Sep 14, 2023

For mine, it don't... Maybe it's related with scanner device.
I've tested Zebra DS2278 and Inateck BCST-70.

Screenshot_20230914-134443

If I change transmission speed to 16ms (from default 0ms), it reads correctly, but then it also causes that sometimes it overrides the output partially.

Please see attached video:

screen-20230914-135545.mp4

First scan with Zebra - output 4000-tra-traileR02.
Second scan with BCST-70 (correct output).
Third and next scans also with BCST-70, but output is overrided.

Overriding issue: Maybe some buffer variable would be needed?
Wrong output: Looks like that scanner gives too speed events and Android can't read it properly.

@FrenkyDema FrenkyDema linked a pull request Mar 21, 2024 that will close this issue
@FrenkyDema
Copy link
Owner

@m-pastuszek I should have solved the problem of scan with the new version, let me know if the problem persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants