Skip to content

41 create counting example with barcode scanner#42

Open
sistemicorp wants to merge 5 commits intomasterfrom
41-create-counting-example-with-barcode-scanner
Open

41 create counting example with barcode scanner#42
sistemicorp wants to merge 5 commits intomasterfrom
41-create-counting-example-with-barcode-scanner

Conversation

@sistemicorp
Copy link
Owner

@sistemicorp sistemicorp commented Feb 18, 2026

Working script that lets the user scan bar codes.
The "counting" part takes place on Lente, where the PASS count is the "count".
For duplicates, the client would have to make a separate SQL and look for uniqie serial numbers.

Note:

  • operator has to wait ~2 sec between scans
  • operator has to scan a "STOP" barcode to put Prism back into a non-running state, else the GUI will get stuck.
  • there is a pdf file with barcodes used for testing

Untested: Using multiple scanners, although the code supports finding more than one scanner. I didn't have another scanner so this is untested.

@sistemicorp sistemicorp linked an issue Feb 18, 2026 that may be closed by this pull request
4 tasks
@sistemicorp
Copy link
Owner Author

@andrewoaks-staric when you can try this with your scanner, you will need to add your scanner to the supported scanners. To do so, use lsusb to see the manufacturer of your scanner, and then add that name to hwdrv_scanners.py.

Here is what my lsusb looks like,

(.venv) martin@martin-ThinkPad-L13-Gen-2a:~/git/scripts$ lsusb
Bus 003 Device 010: ID 05f9:220c PSC Scanning, Inc. Datalogic Gryphon GD4430

And the list in hwdrv_scanners.py looks like,

    # add as required
    SCANNER_MANUFACTURERS = ["Datalogic", ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Counting Example with Barcode Scanner

1 participant