Intermec ck1 Reference Guide
Chapter 3 — Scanner Support
112
CK1 SDK Programmer’s Reference Manual
TPT Functions (continued)
Function Name
tpt_Scanner
tpt_ScanKey
Description
SetToDefault
Exist
Exist
Set the setting to default
SetPreamble
Dummy
Exist
Set pre-sent characters
GetPreamble
Dummy
Exist
Get pre-sent characters
SetPostamble
Dummy
Exist
Set the post-sent characters
GetPostamble
Dummy
Exist
Get the post-sent characters
SetDelimiter
Dummy
Exist
Set the delimiter
GetDelimiter
Dummy
Exist
Get the delimiter
StopScan
Exist
Exist
Stop current scanning
StartScan
Exist
Exist
Start scanning bar code
GetCurrentSetting Exist
Exist
Get current setting array
Where the dummy functions are not supported for the type of operation. But it does exist
a function for preventing crash.
a function for preventing crash.
Guideline for the APIs
There are two ways to get the bar code from the scanner. The tpt_Scanner
is coded for getting the bar code through the handle of connection. The
tpt_ScanKey is coded for using Nano-X keyboard input that sends the bar
code content to the top window.
is coded for getting the bar code through the handle of connection. The
tpt_ScanKey is coded for using Nano-X keyboard input that sends the bar
code content to the top window.
The setting functions, GetBarcodePara, SetBarcodePara, and
SetToDefault are the same in the two structures.
SetToDefault are the same in the two structures.
The program should connect to daemon by using “ScOpen” first.
Bar Code Scanning Program
You should first select the method of transmission. Transmit through
connecting handle, tpt_Scanner, or by Nano-X keyboard event,
tpt_ScanKey. The Scanner method will get one more information bar code
type from the daemon. The bar code types are described in the following
table.
connecting handle, tpt_Scanner, or by Nano-X keyboard event,
tpt_ScanKey. The Scanner method will get one more information bar code
type from the daemon. The bar code types are described in the following
table.
The type numbers will be added with 0x80.
Bar Code Type Number Returned From the Hamster Chip
Bar Code Type
Bar Code Type Number
Code 39 full ASCII
0
Code 39 standard or EDP code
1
EAN 13
2
UPC A
3
EAN 8
4