User Tools

Site Tools


barcode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
barcode [2026-01-16 13:03 UTC (11 months ago)] – created kotakatbarcode [2026-11-22 21:47 UTC (5 days ago)] (current) – formatting fix for codeblocks... qkb
Line 1: Line 1:
-Barcode scanner is either a Honeywell N5680 connected via serial, or a CODE CR8200.+====== Barcode Scanner ======
  
-https://codecorp.com/products/code-reader-8200/+The PM3 uses one of two scan engines:
  
-https://automation.honeywell.com/us/en/products/productivity-solutions/barcode-scan-engines-and-modules/2d-barcode-scan-engines/n5600-series-2d-standard-scan-engine+  * Honeywell N5680 
 +  * Code CR8200 
 + 
 +They connect through an FTDI USB-serial bridge and show up as ''%%/dev/ttyUSB0%%'' at 
 +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://codecorp.com/products/code-reader-8200/ 
 +  * https://automation.honeywell.com/us/en/products/productivity-solutions/barcode-scan-engines-and-modules/2d-barcode-scan-engines/n5600-series-2d-standard-scan-engine 
 + 
 +===== 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. 
 + 
 +<code> 
 +stty -F /dev/ttyUSB0 115200 cs8 -cstopb -parenb -ixon raw -echo 
 +</code> 
 + 
 +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 ''%%/dev/ttyS5%%'' as a symlink to ''%%/dev/ttyUSB0%%'' for the 
 +stock software. The hardware path is still ''%%/dev/ttyUSB0%%''. 
 + 
 +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: 
 + 
 +<code> 
 +echo -e "CDOPPMD0\r\n" > /dev/ttyUSB0 
 +</code> 
 + 
 +The same command takes a mode from 0 to 9. These are the CR8200 decode modes 
 +from Appendix D of the [[https://wiki.pm3.dev/_media/0:cr8200-configuration-control-document.pdf|CR8200 Configuration Control Document]] 
 +(D044337, revised 07/23/24): 
 + 
 +^ 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, with IR light. | 
 +| 5 | Quick Decode using red illumination. Uses red light to detect a barcode, then scans normally. | 
 +| 6 | Motion Detection using red illumination. Motion-triggered, with red light. | 
 +| 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: 
 + 
 +<code> 
 +echo -e "CDOPPMD2\r\n" > /dev/ttyUSB0 
 +</code> 
 + 
 +For motion-triggered reading in front of the unit, use mode 1: 
 + 
 +<code> 
 +echo -e "CDOPPMD1\r\n" > /dev/ttyUSB0 
 +</code> 
 + 
 +The command structure is ''%%CDOP%%'' + ''%%S/L/P/G%%'' + ''%%MD%%'' + mode, so ''%%CDOPPMD0%%'' is the 
 +permanent form of ''%%CDOPSMD0%%''. The ''%%CDOP%%'' mode numbers are not the same as the 
 +''%%RDCM%%'' trigger-mode numbers in the same table. 
 + 
 +===== 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/remove. Single Cycle expects a trigger event. The PM3 has no trigger; the scanner is internal and presentation-only. | 
 + 
 +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 
 +''%%proxy_server%%'' do the parsing and validation.
  
-The barcode scanner is on /dev/ttyS5 and is programmed by default to output just the QR code over serial with no CRLF. 
barcode.1768568621.txt.gz · Last modified: by kotakat