Unitech PA500 manual Get scan data, Function Description, Parameter output

Page 9

2.7.Get scan data

Function Description:

Retrieves the scan data into the buffer. Returns the length of characters. It also returns the barcode type if type is not NULL. Return 0 means that the buffer is too short to hold the data.

USI_GetData should be called when SM_DATAREADY message is received. Or call USI_ResetData to discard the data. Both of them will reset the data buffer so that next scan data can come in.

If the data buffer is not empty and a new scan data occurs, it will be discarded and an error message SM_ERROR with code of SERR_DATALOST will be sent.

Function call:

UINT USI_GetData(LPBYTE buffer, UINT len, UINT* type);

Parameter: (input)

len : UINT : Len specifies the maximum length of the buffer.

Parameter: (output)

buffer : LPBYTE : Data buffer for storing scanned data

type : UINT

: barcode type which is defined on

USI.H. Please refer to below list

 

BCT_CODE_39

 

// Code 39

BCT_CODABAR

 

// CodaBar

BCT_CODE_128

 

// Code 128

BCT_INTERLEAVED_2OF5

// Interleaves 2 of 5

BCT_CODE_93

 

// Code 93

BCT_UPC_A

 

// UPC A

BCT_UPC_A_2SUPPS

 

// UPC A with 2

 

 

Supps

BCT_UPC_A_5SUPPS

 

// UPC A with 5

 

 

Supps

BCT_UPC_E0

 

// UPC E

BCT_UPC_E0_2SUPPS

 

// UPC E with 2 Supps

BCT_UPC_E0_5SUPPS

 

// UPC E with 5 Supps

BCT_EAN_8

 

// EAN 8

BCT_EAN_8_2SUPPS

 

// EAN 8 with 2

 

 

Supps

BCT_EAN_8_5SUPPS

 

// EAN 8 with 5

 

 

Supps

BCT_EAN_13

 

// EAN 13

BCT_EAN_13_2SUPPS

 

// EAN 13 with 2 Supps

BCT_EAN_13_5SUPPS

 

// EAN 13 with 5 Supps

BCT_MSI_PLESSEY

 

// MSI Plessey

BCT_EAN_128

 

// EAN 128

BCT_UPC_E1

 

// UPC

 

 

E1

BCT_UPC_E1_2SUPPS

 

// UPC E1 with 2 Supps

BCT_UPC_E1_5SUPPS

 

// UPC E1 with 5 Supps

BCT_TRIOPTIC_CODE_39

 

// TRIOPTIC CODE 39

BCT_BOOKLAND_EAN

 

// Bookland EAN

BCT_COUPON_CODE

 

// Coupon Code

BCT_STANDARD_2OF5

 

// Standard 2 of 5

BCT_CODE_11_TELPEN

 

// Code 11 Telpen

BCT_CODE_32

 

// Code 32

BCT_DELTA_CODE

 

// Delta Code

BCT_LABEL_CODE

 

// Label Code IV

 

 

& V

BCT_PLESSEY_CODE

 

// Plessey Code

BCT_TOSHIBA_CODE

 

// Toshiba Code

 

 

China Postal Code

- 9

Image 9
Contents PA500 Programming Manual USI.DLL Unitech Scanner Interface DLL Automatically enable scanner beam with pressing trigger keySCANKEY3.DLL Backward Compatible API for PT930/PT930S’S GET Device ID Update Notes Introduction How to download data from scanner COM definition for PA500 Parameter input Function callReset Scanner Enable / Disable ScannerGet error code Returns the system error codeGet scan data Function DescriptionParameter output Get length of scanned data Get Symbology nameWait for acknowledgement of the last sent command Good read indicatorSave setting to profiles Clear scan data system bufferChange scanner setting from specified setting profile Save scanner setting into specified fileAutomatically enable scanner beam with pressing trigger key Parameter output ReturnTest if Scan2Key is enabled Check if auto scanning is enableStop auto scanning function Check if Scan2Key.exe program is running or notSend scanner command to decoding chip Enable/Disable Scan2KeyOnly send single command decoding chip Esc, 0x80+cmd Function callEsc, parameter1, parameter2, …, BCC Send command to decoding chipControl command for decoder chip Special Command for controlEnable in Communication Code32set TRACK1,5 TRACK2,6 TRACK3Labelcode CodabarsetUpcaset UpcesetUPC a PTEnableBarcode Function call Disable DecoderCheck barcode input Return codeReset all symbologies to default Read barcode dataGet DLL version no Enable laser trigger key Disable laser trigger keyPTEnableBarToKey Function call for VC INT PTVersionvoid Return IntegerKeypad Related Functions SysIOAPI.DLLReturn code Bool True Caps lock False Caps unlock Return code True Shift lock False Shift unlockParameterInput Scanner Related FunctionsExample LED related functionParametersInput LCD/Backlight related functionDynamic Load DLL Get Device ID Update notes
Related manuals
Manual 84 pages 14.34 Kb