barcode
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| barcode [2026-01-27 21:56 UTC (10 months ago)] – correct direction of symlink made by startup script asb | barcode [2026-11-22 21:47 UTC (5 days ago)] (current) – formatting fix for codeblocks... qkb | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Barcode | + | ====== |
| - | https:// | + | The PM3 uses one of two scan engines: |
| - | https:// | + | * Honeywell N5680 |
| + | * Code CR8200 | ||
| + | |||
| + | They connect through an FTDI USB-serial bridge and show up as '' | ||
| + | 115200 8N1. nx can translate some Honeywell responses into Code-style responses, | ||
| + | depending on which engine is fitted, so the same app works with either scanner. | ||
| + | |||
| + | Product pages: | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ===== Serial setup ===== | ||
| + | |||
| + | The scanner is programmed to output just the decoded symbol over serial, with no | ||
| + | CR, LF, or other terminator. A 1D, 2D, or QR code arrives as one burst of bytes. | ||
| + | |||
| + | < | ||
| + | stty -F / | ||
| + | </ | ||
| + | |||
| + | Split scans by an idle gap. Flushing after about 50 ms of silence works well. | ||
| + | The scanner is reliable and can read the same code repeatedly. | ||
| + | |||
| + | Some setup scripts create '' | ||
| + | stock software. The hardware path is still '' | ||
| + | |||
| + | There is no trigger on the PM3. The scanner sits behind the window and runs in | ||
| + | presentation mode. There is no handle or button to pull. | ||
| + | |||
| + | ===== Code CR8200 ===== | ||
| + | |||
| + | This command sets the Code CR8200 idle decode mode to 0, which turns off the | ||
| + | aimer and stops scanning while the trigger is not held: | ||
| + | |||
| + | < | ||
| + | echo -e " | ||
| + | </ | ||
| + | |||
| + | The same command takes a mode from 0 to 9. These are the CR8200 decode modes | ||
| + | from Appendix D of the [[https:// | ||
| + | (D044337, revised 07/ | ||
| + | |||
| + | ^ Mode ^ Behavior ^ | ||
| + | | 0 | No scanning while the trigger is not held. | | ||
| + | | 1 | Motion Detection. Uses dim illumination until motion is detected, then scans normally. Stops after a decode or a timeout. | | ||
| + | | 2 | Continuous Scan. Keeps trying to decode. Does not stop after a barcode. | | ||
| + | | 3 | Quick Decode using IR illumination. Uses IR to detect a barcode, then scans normally. Needs IR detection support. | | ||
| + | | 4 | Motion Detection using IR illumination. Motion-triggered, | ||
| + | | 5 | Quick Decode using red illumination. Uses red light to detect a barcode, then scans normally. | | ||
| + | | 6 | Motion Detection using red illumination. Motion-triggered, | ||
| + | | 7 | Pick List. Keeps the target bar on when the trigger is not pressed and can restrict decodes to the center of the view. | | ||
| + | | 8 | Target Bar Trigger. Turns on the targeting LED for the configured time before scanning. | | ||
| + | | 9 | Single Cycle. Makes one decode attempt, then stops. | | ||
| + | |||
| + | For a PM3 scanner that should keep reading without a trigger, use mode 2: | ||
| + | |||
| + | < | ||
| + | echo -e " | ||
| + | </ | ||
| + | |||
| + | For motion-triggered reading in front of the unit, use mode 1: | ||
| + | |||
| + | < | ||
| + | echo -e " | ||
| + | </ | ||
| + | |||
| + | The command structure is '' | ||
| + | permanent form of '' | ||
| + | '' | ||
| + | |||
| + | ===== Tested on a PM3 ===== | ||
| + | |||
| + | With a CR8200 and a transit-card barcode: | ||
| + | |||
| + | ^ Mode ^ Result ^ | ||
| + | | 0 | No reads, as expected. | | ||
| + | | 1 | Read after removing and re-presenting the code. Motion detection does not trigger if the code is already in view. | | ||
| + | | 2 | Read continuously. This is the useful mode for a PM3 with no trigger. | | ||
| + | | 3 | Read with IR quick decode. | | ||
| + | | 4 | Read after remove and re-present, with IR motion detection. | | ||
| + | | 5 | Read with red quick decode. | | ||
| + | | 6 | Read after remove and re-present, with red motion detection. | | ||
| + | | 7 | Read in Pick List mode. | | ||
| + | | 8 | Read with the target bar trigger. | | ||
| + | | 9 | No reads on repeated present/ | ||
| + | |||
| + | Mode 2 is the practical default for a unit that should scan whenever a barcode | ||
| + | is presented. The best reads were with the code 5 to 8 inches (12.7 to 20.3 cm) | ||
| + | from the reader window. | ||
| + | |||
| + | ===== Fare media ===== | ||
| + | |||
| + | The stock nx app accepts the barcode media used by its fare backend: | ||
| + | ticket-vending-machine tickets, mobile tickets, and account-based fare media. | ||
| + | Those are Aztec 2D symbols in the VDV/UIC style. The scanner returns text; nx and | ||
| + | '' | ||
| - | The barcode scanner is on /dev/ttyS5 and is programmed by default to output just the QR code over serial with no CRLF. Setup scripts create /dev/ttyS5 as a link to / | ||
barcode.1769550967.txt.gz · Last modified: by asb
