.bc Barcode Command
Initiates a barcode read. Returns an error if no barcode is read.
Android | iOS | .NET |
---|---|---|
link coming soon | link coming soon | BarcodeCommand |
Parameters
Identifier | Values | Description |
---|---|---|
-al | on/off | perform an alert after a successful barcode read using the current alert parameters from the .al command |
-dt | on/off | Include date time response |
-e | on/off | Use escape character 0x1B to precede |
-n | No action, just set the parameters | |
-p | List the current parameter values | |
-t | n | Read duration in seconds |
-x | Reset the parameters to defaults |
Parameter detail
-al
perform an alert after a successful barcode read using the current alert parameters from the .al command
Type | Enum |
---|---|
Value | on/off |
Range | on/off |
Order In Interpretation | 2 |
Default Value | on |
-dt
Include date time response
Type | Enum |
---|---|
Value | on/off |
Range | on/off |
Order In Interpretation | 4 |
Default Value | off |
-e
Use escape character 0x1B to precede
Type | Enum |
---|---|
Value | on/off |
Range | on/off |
Order In Interpretation | 3 |
Default Value | on |
-n
No action, just set the parameters
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 7 |
-p
List the current parameter values
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 6 |
-t
Read duration in seconds
Type | Numeric |
---|---|
Value | n |
Range | n=1..9 |
Order In Interpretation | 5 |
Default Value | 9 |
-x
Reset the parameters to defaults
Type | Switch |
---|---|
Value | |
Range | |
Order In Interpretation | 1 |
Parameter Interpretation Order
-x, -al, -e, -dt, -t,-p, -n
Parameter Defaults
-al on, -dt off, -e on, -t 9
Response Headers
Examples
Command | Response | Action |
.bc | CS: .bc
BC: ISBN:5884688-6686 OK: | Barcode reads |
.bc -e off | CS: .bc -e off
BR: ISBN:5884688-6686 OK: | Barcode reads with escape disabled |
.bc | CS: .bc
ME: No barcode found ER:006 | Barcode fails to read |
.bc -p -n | CS: .bc -p -n
PR: -al on -dt off -e on -n -p -t 9 -x OK: | None |