Unitech PA500 manual Clear scan data system buffer, Good read indicator, Save setting to profiles

Page 11

2.10.Clear scan data system buffer

Function Description:

Reset the data buffer so that next new scan data can come in.

Function call:

void USI_ResetData();

2.11.Good read indicator

Function Description:

Inform a good receiving of scan data, this will play a sound (wave file scanok.wav) and light the LED lasting for 1 second.

Function call:

void USI_ReadOK();

Note:

USI will call the function GoodReadLEDOn function exported by the DLL defined in the registry described below (UPI300.DLL is an example) to turn on and off the LED. If the DLL is not defined or the function is not found, USI will bypass the call of GoodReadLEDOn.

[HKEY_LOCAL_MACHINE\SOFTWARE\Unitech America Inc.\Scanner\Settings] "DLLLEDCONTROL"="UPI300.DLL"

The function prototype of GoodReadLEDOn is:

VOID WINAPI GoodReadLEDOn(BOOL fon);

Turn on when fon is TRUE, and turn off when fon is FALSE.

2.12.Wait for acknowledgement of the last sent command

Function Description:

Wait for acknowledgement of the last sent command until timeout. It is useful when a serial of commands needs to be sent at a time. Before call USI_SendCommand, call USI_WaitForSendEchoTO to make sure that the previous command is done.

Function call:

BOOL USI_WaitForSendEchoTO(DWORD timeout);

Parameter: (input)

 

timeout: DWORD

: Specifies the timeout in millisecond.

Return:

Returns FALSE if timeout.

2.13.Save setting to profiles

Function Description:

Save current settings of scanner so that the settings will be persistent when the unit get power off and on again.

Function call:

BOOL USI_SaveCurrentSettings(); Return : TRUE if success,

otherwise FALSE.

-

Image 11
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 callReturns the system error code Enable / Disable ScannerReset Scanner Get error codeParameter output Get scan dataFunction Description Get length of scanned data Get Symbology nameClear scan data system buffer Good read indicatorWait for acknowledgement of the last sent command Save setting to profilesParameter output Return Save scanner setting into specified fileChange scanner setting from specified setting profile Automatically enable scanner beam with pressing trigger keyCheck if Scan2Key.exe program is running or not Check if auto scanning is enableTest if Scan2Key is enabled Stop auto scanning functionEsc, 0x80+cmd Function call Enable/Disable Scan2KeySend scanner command to decoding chip Only send single command decoding chipEsc, parameter1, parameter2, …, BCC Send command to decoding chipControl command for decoder chip Special Command for controlEnable in Communication Code32set TRACK1,5 TRACK2,6 TRACK3Upceset CodabarsetLabelcode UpcasetUPC a Return code Disable DecoderPTEnableBarcode Function call Check barcode inputGet DLL version no Reset all symbologies to defaultRead barcode data Function call for VC INT PTVersionvoid Return Integer Disable laser trigger keyEnable laser trigger key PTEnableBarToKeyReturn code True Shift lock False Shift unlock SysIOAPI.DLLKeypad Related Functions Return code Bool True Caps lock False Caps 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