Argox PT-10 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Lecteurs de codes-barres Argox PT-10. PT-60 Mobile Computer Programming Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 79
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
PT-60 Mobile Computer
Programming Manual
DOC NO. UM-PT605-02
Oct. 2008
Version 1.0
© 2002-2007 by ARGOX Information Co., Ltd.
http://www.argox.com
Vue de la page 0
1 2 3 4 5 6 ... 78 79

Résumé du contenu

Page 1 - Programming Manual

PT-60 Mobile Computer Programming Manual DOC NO. UM-PT605-02 Oct. 2008 Version 1.0 © 2002-2007 by ARGOX Information Co., Lt

Page 2 - Table of Contents

Battery Related Function GetBatteryStatus This function gets main battery status. int GetBatteryStatus { } Parameters None. Return Values The ret

Page 3

break; case 4: AfxMessageBox(_T("No Battery")); break; case 5: AfxMessageBox(_T("Battery Unknown")); break; }

Page 4 - Overview

Display Related Functions BacklightOn This function will always turn on or off screen backlight. DWORD BacklightOn { BOOL bOn } Parameters bOn

Page 5 - SDK Functions

Display_QueryBacklightIntensity This function will return the backlight intensity of external power and battery power. DWORD Display_QueryBacklightIn

Page 6 - SYSAPIAX.DLL

dwValue2); AfxMessageBox(strTemp); } Requirements OS Versions: Windows CE 5.0 and later. Header: sysapiax.h Link Library: sysapiax.lib Li

Page 7

GetBacklightStatus This function gets screen backlight status. DWORD GetBacklightStatus { } Parameters None. Return Values The return value indic

Page 8 - Audio Related Functions

PowerOnLCD This function turns on or off LCD power. DWORD PowerOnLCD { BOOL bOn } Parameters bOn [in] Flag that indicates whether turn on LCD

Page 9 - Audio_SetVolume

SetBacklightPWM This function adjusts screen backlight brightness. DWORD SetBacklightPWM { int nACPowerPercent, int nBatteryPercent } Paramet

Page 10 - Battery Related Function

KeyPad Related Functions EnablePowerButton This function will enable or disable power button. DWORD EnablePowerButton { BOOL bOn } Parameters

Page 11

GetKeypadAlphaMode This function will get the current input mode. DWORD GetKeypadAlphaMode { } Parameters None. Return Values The return value ca

Page 12 - Display Related Functions

Programming Manual II Table of Contents OVERVIEW...

Page 13

SendKbdVisualKey This function sends a visual key to key buffer. DWORD SendKbdVisualKey { BYTE Key } Parameters Key [in] Specifies a virtual-k

Page 14

SetKeypadAlphaMode This function will change input mode. DWORD SetKeypadAlphaMode { int nMode } Parameters nMode [in] Flags for set input mode

Page 15 - GetBacklightStatus

LED Related Functions GetKeypadLEDStatus This function gets keypad LED status. BOOL GetKeypadLEDStatus { } Parameters None. Return Values The ret

Page 16 - PowerOnLCD

GoodReadLEDOn This function turns on and off goodread LED. DWORD GoodReadLEDOn { BOOL bOn } Parameters bOn [in] Flag that indicates whether tu

Page 17 - SetBacklightPWM

KeypadLEDOn This function always turns on or off keypad LED. DWORD KeypadLEDOn { BOOL bOn } Parameters bOn [in] Flag that indicates whether tu

Page 18 - KeyPad Related Functions

System Related Functions CallSuspend After called this function, terminal will enter suspend mode. void CallSuspend { } Parameters None. Return

Page 19 - GetKeypadAlphaMode

EnableAutoConnect The EnableAutoConnect function turns Autoconnect on and off. BOOL EnableAutoConnect { BOOL bEnable } Parameters bEnable [in]

Page 20 - SendKbdVisualKey

RegisterAlphaKeyNotification Register the application to SYSAPIAX.dll, so that SYSAPIAX.dll will send a windows message to the application when the a

Page 21 - SetKeypadAlphaMode

ShowChineseIME The ShowChineseIME function display and hide the Chinese IME. BOOL ShowChineseIME { BOOL bShow } Parameters bShow [in] Flag tha

Page 22 - LED Related Functions

ShowDesktop The ShowDesktop function display and hide all icons on desktop. BOOL ShowDesktop { BOOL bShow } Parameters bShow [in] Flag that in

Page 23 - GoodReadLEDOn

API_SCAN RELATED FUNCTIONS...

Page 24 - KeypadLEDOn

ShowExploreToolbar The ShowExploreToolbar function display and hide toolbar on windows explore. BOOL ShowExploreToolbar { BOOL bShow } Parameter

Page 25 - System Related Functions

ShowTaskbar The ShowTaskbar function display and hide the taskbar. BOOL ShowTaskbar { BOOL bShow } Parameters bShow [in] Flag that indicates

Page 26 - EnableAutoConnect

UnRegisterAlphaKeyNotification The UnregisterAlphaKeyNotification function requests that the application no longer receive alpha key pressed notifica

Page 27 - RegisterAlphaKeyNotification

SCANAPIAX.DLL We supply SCANAPIAX.DLL to allow programmer to control scan device status. There are several functions for user to use. User can use WI

Page 28 - ShowChineseIME

keyboard input. z PT_OpenScan2Key – Execute scan.exe to scan barcode data into Terminal key buffer. z PT_CloseScan2Key – Close scan.exe. z PT_SetToDe

Page 29 - ShowDesktop

API_SCAN Related Functions API_Register Register the application to SCANAPIAX.dll, so that SCANAPIAX.dll can communication with the application. It w

Page 30 - ShowExploreToolbar

API_Unregister Unregister the application from SCANAPIAX.dll and close scanner module. void API_Unregister { } Parameters None Return Values No

Page 31 - ShowTaskbar

API_GetBarData Get Barcode into the buffer. When you get the message SM_DATA_READY, call this function to get the barcode data. UINT API_GetBarData {

Page 32

memset(pBuf, 0, uiSize+1); API_GetBarData((LPBYTE)pBuf, &uiSize, &uiType); strBarType.Format(_T("%d"), uiType); for(

Page 33 - SCANAPIAX.DLL

API_GetBarDataLength Get the scan data length. UINT API_GetBarDataLength { } Parameters None Return Values Scan data length Example if(messa

Page 34

Overview The Argox Mobile Computer Software Developer Kit (SDK) Help is intended to assist programmers with the creation of applications for Argox M

Page 35 - API_SCAN Related Functions

API_GetBarType Get the barcode type. UINT API_GetBarType { } Parameters None Return Values Return the barcode type Remarks value Barcode

Page 36 - API_Unregister

API_GetError Get the error code. DWORD API_GetError { } Parameters None Return Values The return value can be one of the following table: Constan

Page 37 - API_GetBarData

API_GetSysError Get the system error code. DWORD API_GetSysError { } Parameters None Return Values Return the system error code that is returned

Page 38

API_GoodRead This function plays a sound when buzzer indication of scan module is enable and flashes the goodread LED when the LED indication of scan

Page 39 - API_GetBarDataLength

API_LoadSettingsFromFile Load scanner setting from file. BOOL API_LoadSettingsFromFile { LPCTSTR filename } Parameters filename [in] the

Page 40 - API_GetBarType

API_Reset Reset the scanner setting to the default. BOOL API_Reset { } Parameters None Return Values Return TRUE if the operation is success

Page 41 - API_GetError

API_ResetBarData Clear the data buffer that the next new scan data can come in. void API_ResetBarData { } Parameters None Return Values None.

Page 42 - API_GetSysError

API_SaveSettingsToFile Save current scanner settings to file. The extension file name is “axs”. BOOL API_SaveSettingsToFile { LPCTSTR filename }

Page 43 - API_GoodRead

API_SaveSettingsToScanner Write the current scanner setting into scanner. BOOL API_SaveSettingsToScanner { } Parameters None Return Values R

Page 44 - API_LoadSettingsFromFile

S2K_IsLoad Check the application scan.exe(scan barcode data into key buffer) is running. BOOL S2K_IsLoad { } Parameters None Return Values The r

Page 45 - API_Reset

SDK Functions When user wants to use SDK to develop their own program, they should link DLL file or LIB file, and include header file SYSAPIAX.H. The

Page 46 - API_ResetBarData

S2K_Load Load or unload the scan.exe. BOOL S2K_Load { BOOL bLoad, DWORD dwTimeOut } Parameters bLoad [in] To set true to load scan.

Page 47 - API_SaveSettingsToFile

SCAN_QueryStatus Query current scanner setting. BOOL SCAN_QueryStatus { int nCommand1, int nCommand2, char *pReturn } Parameters nComm

Page 48 - API_SaveSettingsToScanner

SCAN_SendCommand Send scanner command to change scanner status. BOOL SCAN_SendCommand { int nCommand1, int nCommand2, char *pValue } Par

Page 49 - S2K_IsLoad

Scan2Key Related Functions PT_OpenScan2Key Execute scan.exe to scan barcode data into Terminal key buffer. BOOL PT_OpenScan2Key { } Parameters No

Page 50 - S2K_Load

PT_CloseScan2Key Close scan.exe. void PT_CloseScan2Key { } Parameters None Return Values None. Example PT_CloseScan2Key() Requirements O

Page 51 - SCAN_QueryStatus

PT_SetToDefault Reset the scanner setting. All scanner setting will reset to default value. int PT_SetToDefault { } Parameters None Return Value

Page 52 - SCAN_SendCommand

Scanner Related Functions PT_EnableScanner Enable scanner to scan barcode. This function creates a thread to get scan data from scanner module and st

Page 53 - Scan2Key Related Functions

PT_DisableScanner This function will close scanner module. void PT_DisableScanner { } Parameters None Return Values None. Example PT_Disab

Page 54 - PT_CloseScan2Key

PT_CheckBarcodeData Check whether there is available barcode data in system buffer. BOOL PT_CheckBarcodeData { } Parameters None Return Values T

Page 55 - PT_SetToDefault

PT_GetBarcodeData Get Barcode data and type from system buffer. BOOL PT_GetBarcodeData { UINT * uiBarType, Char * pBuffer, UINT * uiMaxBu

Page 56 - Scanner Related Functions

SYSAPIAX.DLL In this SDK, we supply SYSAPIAX.DLL which includes several functions to allow programmer to control device drivers and system functions.

Page 57 - PT_DisableScanner

Requirements OS Versions: Windows CE 5.0 and later. Header: scanapiax.h Link Library: scanapiax.lib Link DLL: scanapiax.dll Device: PT60Program

Page 58 - PT_CheckBarcodeData

PT_SetDefault Reset the scanner setting to default value. BOOL PT_SetDefault { } Parameters None Return Values Return TRUE if the operation i

Page 59 - PT_GetBarcodeData

Scan Key Related Functions EnableTriggerKey This function will enable or disable scan key. DWORD EnableTriggerKey { BOOL bEnable } Parameters

Page 60

GetLibraryVersion Get library version number. int GetLibraryVersion { } Parameters None Return Values The version number. If the return value is

Page 61 - PT_SetDefault

GetTriggerKeyStatus This function will get scan key status. DWORD GetTriggerKeyStatus { } Parameters None. Return Values The return value 1 indic

Page 62 - Scan Key Related Functions

PressTriggerKey This function will trigger scan key. DWORD PressTriggerKey { BOOL bPress } Parameters bPress [in] Flag that indicates whether

Page 63 - GetLibraryVersion

TriggerKeyStatus This function will get scan key press status. DWORD TriggerKeyStatus { } Parameters None. Return Values The return value 1 indic

Page 64 - GetTriggerKeyStatus

Vibrator Related Functions VibratorOn This function turns on or off Vibration indicator DWORD VibratorOn { BOOL bOn } Parameters bOn [in] Flag

Page 65 - PressTriggerKey

Scan Command Table Command1 Command2 Val ue 2 LED indication 0: Disable 1: Enable 5 Indication 3 Buzzer indication 0: Disable 1: Enable 7 Code ID p

Page 66 - TriggerKeyStatus

Check-sum verification 1: One digit 2: Two digits 3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64

Page 67 - Vibrator Related Functions

z ShowDeskTop – Display and hide all icons on desktop. z ShowExploreToolbar – Display and hide toolbar on windows explorer. z ShowTaskbar – Display

Page 68 - Scan Command Table

3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15

Page 69

3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15

Page 70

2: Expand to EAN 13 12 Expansion 0: Disable 1: Enable 1 Read 0: Disable 1: Enable 3 Check-sum transmission 0: Disable 1: Enable 6 Truncate leading 0

Page 71

Check-sum verification 1: Enable 3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64 6 Truncate leadin

Page 72

Max. code length 5 Min. code length 0 ~ 64 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15 8 Code ID setting 0x00 ~ 0xff ASCII code(1 or 2 bytes)

Page 73

Truncate ending 8 Code ID setting 0x00 ~ 0xff ASCII code(1 or 2 bytes) 10 Format 0: Numeric 1: Full ASCII 1 Read 0: Disable 1: Enable 3 Check-sum tra

Page 74

2: 5 digits 3: 2, 5 digits 4: UCC/EAN 128 5: 2, UCC/EAN 128 6: 5, UCC/EAN 128 7: All 11 Truncate/expansion 0: None 1: Truncate leading zero 2: Expand

Page 75

10 Escape sequence Transmit 0: Disable 1: Enable 1 Read 0: Disable 1: Enable 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15 27 Code-16K 8 Code

Page 76

8 Code ID setting 0x00 ~ 0xff ASCII code(1 or 2 bytes) 11 UCC/EAN 128 emulation 0: Disable 1: Enable 1 Read 0: Disable 1: Enable 4 Max. code length 0

Page 77

Function Return Values Constant Val ue Description E_FUNC_SUCCEED 0x00000000 The function returned without error. E_FUNC_ERROR 0x00000001 The f

Page 78

Audio Related Functions Audio_GetVolume This function queries the current volume setting. DWORD Audio_GetVolume { LPDWORD lpdwVolume } Parameter

Page 79 - Function Return Values

Audio_SetVolume This function sets the current volume setting. DWORD Audio_SetVolume { DWORD dwVolume } Parameters dwVolume [in] Specifies a n

Commentaires sur ces manuels

Pas de commentaire