background image

 

 

 
 
 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 
 
 
 
 
 
 
 
 
 
 
 

 

 
 
 
 
 
 
 
 
 
 
 
 
 

Class Library Reference Manual 

Bar Code Handy Terminal 

BHT-400-CE

Summary of Contents for BHT-400-CE

Page 1: ...Class Library Reference Manual Bar Code Handy Terminal BHT 400 CE ...

Page 2: ...ation may be reproduced in any form or by any means without permission in writing from the publisher Specifications are subject to change without prior notice All products and company names mentioned in this manual are trademarks or registered trademarks of their respective holders ...

Page 3: ...ward any opinions or questions that you may have regarding this manual to the address below or contact us by telephone DENSO WAVE INCORPORATED MT Bldg Hall No 2 4 2 12 Toranomon Minato ku Tokyo 105 0001 Japan Tel 81 3 5472 0477 Latest Information Please access our Web site using the following URL for the latest information on this manual and our full range of products http www denso wave com More ...

Page 4: ...y 10 5 4 Programming 11 6 Backlight 12 6 1 Backlight Control 13 6 2 Backlight Control Key 13 6 2 Backlight Control Key 14 6 3 Backlight Illumination Duration 15 6 4 Brightness 15 6 5 OFF DIM Toggle 15 7 Beeper Vibrator 16 7 1 Beeper Vibrator Selection 16 7 2 Beeper Vibrator Parameters 16 7 3 Beeper Volume 17 7 4 Beeper and Vibrator Control 17 7 5 Priority Order 17 8 Battery Information 18 9 Keyboa...

Page 5: ...attery 39 17 6 Backlight 40 17 7 Backlight Settings 41 17 8 LED 42 17 9 LED UsageCollection 43 17 10 Beep 44 17 11 Beep Settings 45 17 12 RF 46 17 13 RF Profile 47 17 14 RF Settings 48 17 15 RF WepKeyCollection 49 17 16 RF SiteSurvey 50 17 17 RF Info 51 17 18 Keys 52 17 19 Keys Settings 53 17 20 SysInfo 54 17 21 SysInfo Settings 55 17 22 PwrMng 56 17 23 PwrMng Settings 57 17 24 Icon 58 17 25 Icon ...

Page 6: ...161 18 11 Beep Settings 169 18 12 RF 180 18 13 RF Profile 190 18 14 RF Settings 210 18 15 RF WepKeyCollection 221 18 16 RF SiteSurvey 224 18 17 RF Info 229 18 18 Keys 234 18 19 Keys Settings 239 18 20 SysInfo 255 18 21 SysInfo Settings 256 18 22 PwrMng 263 18 23 PwrMng Settings 267 18 24 Icon 273 18 25 Icon Settings 274 18 26 Display 283 18 27 Display Settings 284 18 28 SysModification 285 18 29 C...

Page 7: ...CL xml DNWA BHT400CL dll document comment file IntelliSense can be used by storing the file in the same folder as DNWA BHT400CL dll DNWA Tools BHT Communication400 dll Assembly equipped with file transfer and serial communication functions Used as a reference when developing applications employing file transfer and serial communication This file can be downloaded from QBNet DNWA Tools BHT Communic...

Page 8: ...e BHT AS file created at step 2 selected set Transport to TCP Connect Transport 4 Press Configure to open the Configure TCP IP Transport Settings dialog box 5 Select Obtain an IP address automatically using ActiveSync for the device IP address 6 Press OK to exit the Options menu 7 Connect the BHT and computer with the USB ActiveSync cable 8 Select Build Build solution and then assign a solution St...

Page 9: ...t Build Build solution and then assign a solution Unless the IP address is changed step 9 only is required from the second time onwards When debugging change both methods from Build Build solution to Debug Start ...

Page 10: ...ly Barcode reading Scanner Wireless communication RF Backlight Backlight Beeper vibrator Beep Battery information Battery Keyboard Keys LED LED Power management PwrMng OS update SysModification Status display Icon Screen control Display System information SysInfo DNWA BHT400CL dll Serial communication COM File transfer FileTransfer DNWA Tools BHT Communication400 dll ...

Page 11: ... Scanner RdType property EAN 13 JAN 13 EAN 8 JAN 8 UPC A UPC E Interleaved 2of5 ITF Standard 2of5 STF Codabar NW 7 Code 39 Code 93 Code 128 EAN 128 1 MSI 1 Both Code 128 and EAN 128 can be read by specifying Code 128 The following options can be specified for the above code types Code Type Option EAN 13 JAN 13 EAN 8 JAN 8 UPC A UPC E 1st character country flag Codes with add on Interleaved 2of5 IT...

Page 12: ...The illumination LED turns ON and a barcode can be read only when the trigger switch is held down Provided the read data is not read out from the barcode buffer the illumination LED will not turn ON and it will not be possible to read the next barcode even if the trigger switch is pressed Alternate switch mode The illumination LED turns ON when the trigger switch is pressed and remains ON even aft...

Page 13: ...red LED is turned ON when a barcode is read etc If set to Sound beeper the beeper is sounded when the barcode is read correctly By changing the Beep Settings Device value it is possible to specify Beeper only Vibrator only or Beeper and vibrator 4 4 Barcode Data Read barcode data is stored in the barcode buffer The buffer is 99 characters in size and can store data for a single input operation Use...

Page 14: ...ble Roaming Impossible If the BHT is not synchronized with an access point Possible If synchronization with an access point is maintained Roaming complete Possible Close power off Impossible The wireless communication device will consume a significant amount of power if always open The device should therefore be closed as much as possible when not in use It will however take several seconds until ...

Page 15: ...eroConfig menu or in the System menu are used as is ESSID Specify a character string for the ID used over the wireless network Set the same ID as the SSIS for the access point used for communication Communication will not be possible if set incorrectly Ex BHT400 is set for the ESSID MyProfile SSID BHT400 POWER It is possible to set the power mode for the BHT wireless module The following two power...

Page 16: ...802 1x EAP TLS 802 1x PEAP WPA EAP TLS WPA PSK WPA Authentication Open Open Open WPA WPA WPA PSK Encryption Disable WEP static WEP auto distribution WEP auto distribution TKIP TKIP TKIP 802 1x Disable PEAP EAP TLS PEAP EAP TLS Disable ESSID Profile Priority Pre shared Key WEP Key Ex Settings required to connect to network using PEAP 802 1x MyProfile Authentication RF Profile EN_AUTHENTICATION OPEN...

Page 17: ...The following is a list of possible reasons why it may not be possible to obtain synchronization with the AP The wireless communication device is preparing to open Several seconds are required to open the wireless communication device and obtain synchronization with the access point Furthermore there are times when several tens of seconds are required to connect to the network and acquire the IP w...

Page 18: ... Backlight The backlight function has the following features Backlight control Backlight control key specification Backlight illumination duration specification Brightness adjustment Backlight OFF DIM toggle ...

Page 19: ...emains enabled however the backlight itself will turn OFF or dim The backlight illumination status can be controlled by entering a value at the Backlight Status property regardless of whether it is currently disabled or disabled Furthermore the illumination status can be acquired by reading the property value Disabled Enabled OFF DIM Default Status Enabled ON Press key other than backlight functio...

Page 20: ...Setting Backlight Control Key Setting SF 0x0001000A SF BS 0x0001000B SF C 0x0001000C F1 0x00000101 F2 0x00000102 F3 0x00000103 F4 0x00000104 F5 0x00000105 F6 0x00000106 F7 0x00000107 F8 0x00000108 F9 0x00000109 F10 0x0000010A F11 0x0000010B F12 0x0000010C SCAN 0x00000200 SF SCAN 0x00010200 M1 0x00000201 SF M1 0x00010201 M2 0x00000202 SF M2 0x00010202 M3H half press 0x00000243 SF M3H half press 0x0...

Page 21: ...nation duration begins from the moment all keys or the touch panel is released 6 4 Brightness The brightness when the backlight turns ON can be set at or acquired from the Backlight Settings Brightness property The backlight brightness can be selected from the following four levels 0 OFF 1 dark to 3 bright Default 3 6 5 OFF DIM Toggle It is possible to set or acquire whether the backlight turns OF...

Page 22: ... 例 Sound beeper and vibrator VB MyBeep Item Beep Settings EN_DEVICE BEEP Or _ Beep Settings EN_DEVICE VIBRATOR Beep EN_CTRL ON C MyBeep Beep Settings EN_DEVICE BEEP Beep Settings EN_DEVICE VIBRATOR Beep EN_CTRL ON Specify whether to sound the beeper or activate the vibrator when displaying a warning message and so forth upon the completion of barcode reading at the Beep Settings Device property 7 ...

Page 23: ...perties is used only when set to ON The default click sound for magic keys full or half press set for trigger keys and marker keys is OFF 7 4 Beeper and Vibrator Control The beeper sounding or vibrator activation is called up asynchronously the process is returned to the application immediately after the setting is made and the beeper or vibrator operates in the background 7 5 Priority Order The p...

Page 24: ...Please recharge battery message displays and the BHT automatically goes into suspend mode It will then not be possible to resume the BHT until the battery has been sufficiently charged Level Voltage HIGH 3 9 V or above MID Less than 3 9 V LOW Less than 3 7 V Beeper sounds once and message displays WARNING Less than 3 6 V Beeper sounds three times message displays and BHT suspended automatically CR...

Page 25: ...ngs InputMethod property Changing the input mode using the ALP key can be prohibited using the Keys Settings AllowChangeIM property 9 2 Function Mode The function mode can be changed by pressing the FUNC key or enabling the Keys Settings FuncMode property The virtual key codes and display characters returned when keys are pressed in function mode are shown in Appendix 2 Virtual Keyboard and Displa...

Page 26: ...et entry mode an unestablished character display window similar to that shown below displays When the key for the alphabet character to be entered is pressed the character displays in this window as an unestablished character When the alphabet character to be entered displays in this window it is established and the alphabet character is actually entered Unestablished character establishment metho...

Page 27: ...urned C key Clears unestablished keys if any exist If there are no unestablished keys the same character code as that for the numeric entry mode is returned F1 to F12 keys Establishes unestablished keys if any exist If there are no unestablished keys the same character code as that for the numeric entry mode is returned M1 M2 M3H M3 M4H M4 M5H M5 and SCAN keys Establishes unestablished keys if any...

Page 28: ... M5 Keys M3H to Keys M5H Keys Scan MAGIC_FUNC_SHIFT SF Keys Shift MAGIC_FUNC_BLT Backlight control Keys M1 to Keys M5 Keys M3H to Keys M5H Keys Scan MAGIC_FUNC_TAB TAB Keys Tab 09 H MAGIC_FUNC_LASER Marker light Keys M1 to Keys M5 Keys M3H to Keys M5H Keys Scan MAGIC_FUNC_CTRL CTRL Keys Control MAGIC_FUNC_ALT ALT Keys Menu MAGIC_FUNC_CLEAR CLEAR Keys Clear 9 6 Shift Key Operation The following two...

Page 29: ...y C key Arrow keys F1 to F12 keys SF key Func key ENT key TAB key SEND key ALP key SCAN key Same as magic key Same as magic key Magic keys No key assignment ENT key Trigger key SF key Backlight ctl key TAB key Laser light key CTRL key ALT key CLEAR key No key assignment ENT key Trigger key SF key Backlight ctl key TAB key Laser light key CTRL key ALT key CLEAR key PW key Auto repeat No auto repeat...

Page 30: ...fied and barcode reading is enabled the display LED illumination status cannot be controlled from the application until barcode reading is next disabled The illumination request from the application however is retained in the variable flag RAM inside the LED driver Illumination requests are also set and cleared while barcode reading is enabled When barcode reading is disabled the flag is checked a...

Page 31: ...ED and turns ON in either of the following situations 1 The red LED is turned ON from the application 2 While the BHT is charging If therefore an attempt is made to turn OFF the red LED from the application while charging the LED will remain ON ...

Page 32: ...d is referred to as Critical OFF The power status and power consumption relationship is as follows Power ON Standby Suspend Critical OFF 11 1 Standby Transition Conditions The BHT switches to standby when the event that prohibits standby has been completed and the standby transition time has elapsed Events that prohibit standby Keyboard being used Touch panel being tapped Screen display being refr...

Page 33: ...after power OFF There is no need to turn the power ON the contents of the RAM are retained SUSPEND The BHT switches to suspend Press the power key to turn ON the power The contents of the RAM are retained provided that the sub battery does not become fully discharged COLD_BOOT_REGINIT The BHT cold boots automatically after power OFF The contents of the RAM are deleted and the registry is reinitial...

Page 34: ...4 Call up the SysModification Execute method to update the OS 5 The power turns OFF automatically after the update procedure is complete The BHT cold boots and the registry is initialized the next time the power is turned ON Update method using CF memory card 1 Call up the PwrMng Shutdown PwrMng EN_SHUTDOWN_MODE SYSMODIFY method and reboot the BHT 1 2 Save the OS file to the CF memory card and ins...

Page 35: ...s than 3 6 V SF key Shift Key SF key pressed Standby transition Standby Switching to standby Wireless connection open Radio field intensity Low Synchronous connection Radio field intensity Medium Synchronous connection Wireless communication Wireless Radio field intensity High Synchronous connection Starting up SIP input SIP SIP Awaiting SIP input Alphabet entry Alphabet Currently in alphabet entr...

Page 36: ... system information can be acquired from the BHT System version Machine name Machine No Serial No RAM size ROM size The RAM and ROM size constitute the size of the BHT memory This does not refer to the amount of available space or user space ...

Page 37: ... connector interface is assigned to port no 1 Communication Parameter Setting Default Transmission speed bps 115200 57600 38400 19200 9600 4800 2400 1200 600 300 9600 Vertical parity None even number odd number None Data length 7 bits 8 bits 8 Stop bit length 1 bit 2 bits 1 15 3 File Transfer The FileTransfer class can be used to create a file transfer application using Y modem communication In ad...

Page 38: ...aces exist in the BHT 400 class library Namespace Name Description DNWA BHTCL Class group used to realize functions unique to the BHT 400 DNWA Exception Thrown exception class group DNWA Tools BHT Communication File Transfer Serial Communication ...

Page 39: ...brator related system settings 17 12 RF Wireless connection open close 17 13 RF Profile Wireless communication profile properties 17 14 RF Settings Wireless communication related settings 17 15 RF WepKeyCollection Wep key 17 16 RF SiteSurvey SiteSurvey information 17 17 RF Info Wireless device information 17 18 Keys Keyboard related definitions 17 19 Keys Settings Keyboard related settings 17 22 P...

Page 40: ...btained e g when the file is already opened 17 32 DeviceNotFoundException An exception thrown when an operation request is issued to a device that is not installed on the BHT 17 33 DeviceLoadException An exception that is thrown when an operation request is issued to a device that is not ready to process it 17 34 NotSupportedException An exception that is thrown when an attempt is made to carry ou...

Page 41: ...ls barcode reading and acquires the read data For a description of all members of this class refer to section 18 1 Scanner Syntax VB Public Class Scanner C public class Scanner Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 42: ...by the scanner This class exists within the Scanner class For a description of all members of this class refer to section 18 2 Scanner CodeInfo Syntax VB Public Class Scanner CodeInfo C public class Scanner CodeInfo Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 43: ... parameters This class exists within the Scanner class For a description of all members of this class refer to section 18 3 Scanner Settings Syntax VB Public Class Scanner Settings C public class Scanner Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 44: ...ttery such as the charge status and output voltage For a description of all members of this class refer to section 18 4 BatteryCollection Syntax VB Public Class BatteryCollection C public class BatteryCollection Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 45: ...ch as the charge status and output voltage For a description of all members of this class refer to section 18 5 BatteryCollection Battery Syntax VB Public Class BatteryCollection Battery C public class BatteryCollection Battery Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 46: ...acquires the ON OFF status of the backlight For a description of all members of this class refer to section 18 6 Backlight Syntax VB Public Class Backlight C public class Backlight Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 47: ...arameters This class exists within the Backlight class For a description of all members of this class refer to section 18 7 Backlight Settings Syntax VB Public Class Backlight Settings C public class Backlight Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 48: ... LED Sets or acquires the LED ON OFF status For a description of all members of this class refer to section 18 8 LED Syntax VB Public Class LED C public class LED Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 49: ... 43 17 9 LED UsageCollection This class is invalid at the BHT 400 ...

Page 50: ...the beeping of the beeper and vibration of the vibrator For a description of all members of this class refer to section 18 10 Beep Syntax VB Public Class Beep C public class Beep Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 51: ...ator related parameters This class exists within the Beep class For a description of all members of this class refer to section 18 11 Beep Settings Syntax VB Public Class Beep Settings C public class Beep Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 52: ...communication and sets or acquires the parameters for wireless communication For a description of all members of this class refer to section 18 12 RF Syntax VB Public Class RF C public class RF Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 53: ... wireless communication profile This class exists within the RF class For a description of all members of this class refer to section 18 13 RF Profile Syntax VB Public Class RF Profile C public class RF Profile Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 54: ...for wireless communication This class exists within the RF class For a description of all members of this class refer to section 18 14 RF Settings Syntax VB Public Class RF Settings C public class RF Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 55: ...This class exists within the RF class For a description of all members of this class refer to section 18 15 RF WepKeyCollection Syntax VB Public Class RF WepKeyCollection C public class RF WepKeyCollection Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 56: ...ey data This class exists within the RF class For a description of all members of this class refer to section 18 16 RF SiteSurvey Syntax VB Public Class RF SiteSurvey C public class RF SiteSurvey Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 57: ...n wireless communication This class exists within the RF class For a description of all members of this class refer to section 18 17 RF Info Syntax VB Public Class RF Info C public class RF Info Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 58: ...ires keyboard related parameters and defines the magic key For a description of all members of this class refer to section 18 18 Keys Syntax VB Public Class Keys C public class Keys Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 59: ...lated parameters This class exists within the Keys class For a description of all members of this class refer to section 18 19 Keys Settings Syntax VB Public Class Keys Settings C public class Keys Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 60: ...o Sets or acquires system information For a description of all members of this class refer to section 18 20 SysInfo Syntax VB Public Class SysInfo C public class SysInfo Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 61: ...e system information This class exists within the SysInfo class For a description of all members of this class refer to section 18 21 SysInfo Settings Syntax VB Public Class SysInfo Settings C public class SysInfo Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 62: ...ment related parameters for the BHT and controls the shut down process For a description of all members of this class refer to section 18 22 PwrMng Syntax VB Public Class PwrMng C public class PwrMng Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 63: ... power management This class exists within the PwrMng class For a description of all members of this class refer to section 18 23 PwrMng Settings Syntax VB Public Class PwrMng Settings C public class PwrMng Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 64: ...r acquires the icon display status enabled disabled For a description of all members of this class refer to section 18 24 Icon Syntax VB Public Class Icon C public class Icon Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 65: ...splay of icons This class exists within the Icon class For a description of all members of this class refer to section 18 25 Icon Settings Syntax VB Public Class Icon Settings C public class Icon Settings Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 66: ... 60 17 26 Display This function is not supported ...

Page 67: ... 61 17 27 Display Settings This function is not supported ...

Page 68: ...ates the BHT system program For a description of all members of this class refer to section 18 28 SysModification Syntax VB Public Class SysModification C public class SysModification Namespace DNWA BHTCL Assembly DNWA BHT400CL dll ...

Page 69: ...et in the property or the value of one of the parameters specified in the method is invalid Syntax VB Public Class ArgumentException Inherits System ArgumentException C public class ArgumentException System ArgumentException Namespace DNWA BHTCL Assembly DNWA Exception dll ...

Page 70: ...eration request is issued to a device whose file has not been opened Syntax VB Public Class ObjectDisposedException Inherits System ObjectDisposedException C public class ObjectDisposedException System ObjectDisposedException Namespace DNWA BHTCL Assembly DNWA Exception dll ...

Page 71: ...to a device file for which authorization for opening cannot be obtained e g when the file is already opened Syntax VB Public Class SecurityException Inherits System SecurityException C public class SecurityException System SecurityException Namespace DNWA BHTCL Assembly DNWA Exception dll ...

Page 72: ...ation request is issued to a device that is not installed on the BHT Syntax VB Public Class DeviceNotFoundException Inherits System IO FileNotFoundException C public class DeviceNotFoundException System IO FileNotFoundException Namespace DNWA BHTCL Assembly DNWA Exception dll ...

Page 73: ...n operation request is issued to a device that is not ready to process it Syntax VB Public Class DeviceLoadException Inherits System IO FileLoadException C public class DeviceLoadException System IO FileLoadException Namespace DNWA BHTCL Assembly DNWA Exception dll ...

Page 74: ...t is made to carry out a function that is not supported Syntax VB Public Class NotSupportedException Inherits System IO PlatformNotSupportedException C public class NotSupportedException System IO PlatformNotSupportedException Namespace DNWA BHTCL Assembly DNWA Exception dll ...

Page 75: ...mmunication and performs data communication For a description of all members of this class refer to section 18 29 CommSerial Syntax VB Public Class CommSerial C public class CommSerial Namespace DNWA Tools BHT Communication Assembly DNWA Tools BHT Communication400 dll ...

Page 76: ...f files using the Y modem protocol For a description of all members of this class refer to section 18 30 FileTransfer Syntax VB Public Class FileTransfer C public class FileTransfer Namespace DNWA Tools BHT Communication Assembly DNWA Tools BHT Communication400 dll ...

Page 77: ...Description RdMode Read mode RdType Read enabled codes PortOpen Read enabled read disabled InBufferCount Number of code digits in the barcode in the buffer InBufferType Type of the barcode in the buffer LastCount Number of code digits in the barcode last read LastCodeNum Number of barcodes last read LastType Type of the barcode last read LastCodeInfo Information of barcodes last read Methods Metho...

Page 78: ... 72 Events Event Name Description OnDone Occurs when decoding is complete Enumeration None ...

Page 79: ...es a new instance of the Scanner class Syntax VB Public Sub New C public Scanner Parameters None Exceptions None Ex Create a MyScanner Scanner instance VB Dim MyScanner As Scanner New Scanner C Scanner MyScanner new Scanner ...

Page 80: ...lements VB Dim ReadBuf Scanner MAX_BAR_LEN As Byte C Byte ReadBuf new byte Scanner MAX_BAR_LEN MAX_2DCODE_LEN The maximum number of digits in the 2D code This value is fixed not variable Syntax VB Public Const MAX_2DCODE_LEN As Integer C public const int MAX_2DCODE _LEN Ex Declare a buffer containing a 2D code with the maximum number of elements VB Dim ReadBuf Scanner MAX_2DCODE_LEN As Byte C Byte...

Page 81: ... the contents of the entire barcode buffer This value is fixed not variable Syntax VB Public Const ALL_BUFFER As Integer C public const int ALL_BUFFER Ex Read all remaining data in the barcode buffer VB MyScanner Input ReadBuf 0 Scanner ALL_BUFFER C MyScanner Input ReadBuf 0 Scanner ALL_BUFFER ...

Page 82: ... supports four read modes momentary switching mode M auto off mode F alternate switching mode A and continuous reading mode C Select a read mode by specifying the appropriate code M F A or C Momentary switching mode M The illumination LED lights up and barcodes can be read only when the trigger switch is held down Provided the barcode data that has been read remains inside i e not sent out of the ...

Page 83: ...e switch the illumination LED remains on until the barcode device file is closed or the trigger switch is pressed again The BHT can read barcodes while the illumination LED is ON Pressing the trigger switch toggles the illumination LED ON and OFF After a barcode has been read successfully provided the barcode data that has been read remains inside i e not sent out of the barcode buffer the BHT can...

Page 84: ...momentary switching mode alternate switching mode or continuous reading mode if after reading a low quality barcode requiring more than one second to read the barcode read head remains in close proximity to that barcode the BHT may re read the same barcode again at intervals of one second or longer ...

Page 85: ...ng vibrating based on the setting specified at the BEEP VIBRATOR menu in the System menu or the setting specified at the Beep Settings Device system function Specifying L for indicator LED control will not turn on the indicator LED Specify B to activate the beeper vibrator when a barcode is successfully read Ex Set the read mode to auto off turn the beeper notification ON and turn the LED notifica...

Page 86: ...nabled codes Default value A I 4 99 M 1 99 N 3 99 L 1 99 K 1 99 H 3 99 P 1 99 Exceptions None Note The setting for this property will be valid the next time the read operation is enabled If an invalid character string is specified no exceptions are thrown immediately however an exception is thrown the next time the read operation is enabled A maximum of twenty four codes can be specified ...

Page 87: ...ersal product codes The 1st character and 2nd character are flag characters representing the country code and each must be a numeral between 0 and 9 inclusive If a question mark is specified for the 1st character or 2nd character it is treated as a wild card supplemental refers to the reading of an add on code Specifying an S for add on enables the BHT to read barcodes with an add on code also Ex ...

Page 88: ...ied at system mode up to 99 digits If only max no digits is omitted the BHT will only be able to read as many digits as specified by mini no digits CD is used to specify a check digit s If C is specified barcodes are checked based on MOD 10 The number of check digits is included in the number of digits to be read Ex To enable the BHT to scan ITF with mini no digits 6 max no digits 10 and MOD 10 VB...

Page 89: ...art and stop are the start and stop characters respectively Specify each of these as A B C or D If a question mark is specified it is treated as a wild card The start and stop characters are included in the number of digits A to D are stored in the barcode buffer as a to d CD is used to specify a check digit s If C is specified barcodes are checked based on MOD 16 The number of check digits is inc...

Page 90: ... from 1 to 99 digits If only max no digits is omitted the BHT will only be able to read as many digits as specified by mini no digits CD is used to specify a check digit s If C is specified barcodes are checked based on MOD 43 The number of check digits is included in the number of digits to be read Ex To enable the BHT to scan Code 39 with mini no digits 8 max no digits 12 and MOD 43 VB MyScanner...

Page 91: ...s are omitted the default reading range will be from 1 to 99 digits If only max no digits is omitted the BHT will only be able to read as many digits as specified by mini no digits Ex To enable the BHT to scan Code 93 with mini no digits 6 and max no digits 12 VB MyScanner RdType L 6 12 C MyScanner RdType L 6 12 Ex To enable the BHT to scan Code 93 with mini no digits 6 and max no digits 10 or wit...

Page 92: ...s are omitted the default reading range will be from 1 to 99 digits If only max no digits is omitted the BHT will only be able to read as many digits as specified by mini no digits Ex To enable the BHT to scan Code 128 with mini no digits 6 and max no digits 12 VB MyScanner RdType K 6 12 C MyScanner RdType K 6 12 Ex To enable the BHT to scan Code 128 with mini no digits 6 and max no digits 10 or w...

Page 93: ... FNC2 character s discarded without being temporarily buffered FNC3 If the BHT reads a barcode containing any FNC3 character s it will regard the data as invalid and no data transfer will take place If enabled by the RdMode property the indicator LED will light up and the beeper vibrator will sound vibrate FNC4 The FNC4 character converts data in code set A or B into extended ASCII basic ASCII cod...

Page 94: ...nly be able to read as many digits as specified by mini no digits CD is used to specify a check digit s If C is specified barcodes are checked based on MOD 10 The number of check digits is included in the number of digits to be read Startstop specifies whether the normal or short format of the start stop characters is to be used Specify N for the normal format or S for the short format If startsto...

Page 95: ...ecified by mini no digits CD is used to specify a check digit s If C1 or C2 is specified for the CD the Interpreter will check barcodes with a single digit CD or double digit CD respectively If no CD is specified the Interpreter checks barcodes with a single digit CD The number of check digits is included in the number of digits to be read Ex To enable the BHT to scan MSI with mini no digits 6 max...

Page 96: ...perty Read enabled True Read disabled False Default value False Exceptions Name of Exception Meaning SecurityException Barcode device file already opened ArgumentException The specified read mode was invalid The specified read enabled code s was were invalid Ex Enable barcode reading VB MyScanner PortOpen True C MyScanner PortOpen true ...

Page 97: ...de in the barcode buffer Default value 0 Exceptions None Note Once data has been read from the barcode buffer using the Input method this count is reduced by the number of digits that have been read This count is reset to zero 0 the moment barcode reading is disabled Ex Acquire the number of code digits for data remaining in the barcode buffer VB Dim len As Integer MyScanner InBufferCount C int le...

Page 98: ...ype As Char C public char InBufferType get Property Type of barcode in the barcode buffer The correlation between code type and InBufferType values is shown below Code Type InBufferType None No code read 0 EAN 13 JAN 13 UPC A A EAN 8 JAN 8 B UPC E C ITF I STF H CODABAR NW 7 N CODE 39 M CODE 93 L CODE 128 K EAN 128 W MSI P ...

Page 99: ...ta is read from the barcode buffer using the Input method and the barcode buffer is empty The value is reset to zero 0 the moment barcode reading is disabled Ex Acquire the code type for data remaining in the barcode buffer VB Dim type As Char MyScanner InBufferType C char type MyScanner InBufferType ...

Page 100: ...ublic int LastCount get Property Number of digits in the barcode that was read last Default value 0 Exceptions None Note The value is 0 if no barcode is read after an instance of the Scanner class was created The value remains unchanged even if barcode reading is disabled Ex Acquire the number of code digits for the data last read VB Dim count As Integer MyScanner LastCount C int count MyScanner L...

Page 101: ...t was read last The correlation between the barcode type and values is the same as that for the InBufferType Default value 0 Nothing in VB NET Exceptions None Note The value is 0 if no barcode is read after an instance of the Scanner class was created The value remains unchanged even if barcode reading is disabled Ex Acquire the code type for the data last read VB Dim count As Integer MyScanner La...

Page 102: ...orrelation between the barcode type and values is the same as that for the InBufferType Default value null Nothing in VB NET Exceptions None Ex Acquire the code type and number of digits in all rows for the data last read VB For i 0 To MyScanner LastCodeNum len i MyScanner LastCodeInfo i Len type i MyScanner LastCodeInfo i Type Next C for i 0 i MyScanner LastCodeNum i len i MyScanner LastCodeInfo ...

Page 103: ...s read last is a composite code the number of codes constituting the composite code which is 2 is returned If the code that was read last is other than the above 1 is returned Default value 0 Exceptions None Ex Acquire the code type and number of digits in all rows for the data last read VB For i 0 To MyScanner LastCodeNum len i MyScanner LastCodeInfo i Len type i MyScanner LastCodeInfo i Type Nex...

Page 104: ...LL_BUFFER causes the entire contents of the barcode buffer to be read Return value Barcode data that has been read Exceptions Name of Exception Meaning ObjectDisposedException Barcode reading is disabled Note Calling this method while barcode reading is disabled will cause an exception to be thrown Ex Display the data last read VB TextBoxData Text MyScanner Input Scanner ALL_BUFFER C TextBoxData T...

Page 105: ...set in Offset value within buffer indicating the start point of reading Specifying Scanner ALL_BUFFER causes the entire contents of the barcode buffer to be read len in Maximum number of digits in the barcode to be read Specifying Scanner ALL_BUFFER causes the entire contents of the barcode buffer to be read Return value Actual number of digits that have been read Exceptions Name of Exception Mean...

Page 106: ...hod while barcode reading is disabled will cause an exception to be thrown Ex Read out the last read data converted to Unicode VB len MyScanner Input buffer 0 Scanner ALL_BUFFER C len MyScanner Input buffer 0 Scanner ALL_BUFFER ...

Page 107: ...n Parameters buffer out Destination buffer offset in Offset value within buffer indicating the start point of reading len in Maximum number of barcode digits to be read out Specifying Scanner ALL_BUFFER causes the entire contents of the barcode buffer to be read Return value Actual number of digits that have been read Exceptions Name of Exception Meaning ObjectDisposedException Barcode reading is ...

Page 108: ...d convert to Unicode Ex Use the ANSI code page encoding currently set in the system and convert to Unicode VB Dim buffer MAX_2DCODE_LEN As Byte Input buffer 0 ALL_BUFFER Dim strDisplayData As String System Text Encoding Default GetString buffer C byte buffer new byte MAX_2DCODE_LEN Input buffer 0 ALL_BUFFER string strDisplayData System Text Encoding Default GetString buffer ...

Page 109: ...er C public static int GetChkDigit string bardata char type Parameters bardata in Barcode data type in Check digit type Code Type Type Calculation Method EAN JAN UPC A MOD10 ITF I MOD10 STF H MOD10 CODABAR NW 7 N MOD16 CODE 39 M MOD43 MSI P MOD10 Return value Calculated check digit Exceptions Name of Exception Meaning ArgumentException The barcode data is invalid or the specified check digit type ...

Page 110: ...ChkDigit 494AB4458 A Since A and B lie outside the valid character set for EAN JAN or UPC 0 is returned and an exception is thrown VB Scanner GetChkDigit 4940045X A C Scanner GetChkDigit 4940045X A X lies outside the valid character set but is in the CD position and therefore the correct CD ASCII 8 is calculated and returned VB Scanner GetChkDigit a0ef3 a N C Scanner GetChkDigit a0ef3 a N Since e ...

Page 111: ...Then Console WriteLine CD OK End If C UnicodeEncoding encode new UnicodeEncoding if Scanner GetChkDigit 49400458 A int encode GetBytes 8 0 Console WriteLine CD OK To append a CD to the barcode data pass a piece of barcode data with a dummy character appended to the Scanner GetChkDigit method as shown below The returned value will be the CD Replace the dummy character with the returned value VB Dim...

Page 112: ...anner GetChkDigit 123457 I int encode GetBytes 7 0 Console WriteLine CD OK To append a CD to barcode data pass a piece of barcode data with a dummy character appended to the Scanner GetChkDigit method as shown below The returned value will be the CD Replace the dummy character with the returned value VB Dim origData As String 12345 Dim digit As Integer Scanner GetChkDigit origData 0 I Console Writ...

Page 113: ...Digit 12345678905 H int encode GetBytes 5 0 Console WriteLine CD OK To append a CD to barcode data pass a piece of barcode data with a dummy character appended to the Scanner GetChkDigit method as shown below The returned value will be the CD Replace the dummy character with the returned value VB Dim origData As String 1234567890 Dim digit As Integer Scanner GetChkDigit origData 0 H Console WriteL...

Page 114: ...int encode GetBytes 0 Console WriteLine CD OK To append a CD to barcode data pass a piece of barcode data with a dummy character appended to the Scanner GetChkDigit method as shown below The returned value will be the CD Replace the dummy character with the returned value VB Dim origDataF As String a0123 Dim origDataR As String a Dim digit As Integer Scanner GetChkDigit origDataF 0 origDataR N Con...

Page 115: ...deEncoding if Scanner GetChkDigit CODE39W M int encode GetBytes W 0 Console WriteLine CD OK To append a CD to barcode data pass a piece of barcode data with a dummy character appended to the Scanner GetChkDigit method as shown below The returned value will be the CD Replace the dummy character with the returned value VB Dim origData As String CODE39 Dim digit As Integer Scanner GetChkDigit origDat...

Page 116: ...odeEncoding if Scanner GetChkDigit 123456782 P int encode GetBytes 2 0 Console WriteLine CD OK To append a CD to barcode data pass a piece of barcode data with a dummy character appended to the Scanner GetChkDigit method as shown below The returned value will be the CD Replace the dummy character with the returned value VB Dim origData As String 12345678 Dim digit As Integer Scanner GetChkDigit or...

Page 117: ...se C public void Dispose Parameters None Return value None Exceptions None Note This function must be called before instances of the Scanner class are no longer referenced VB Private Sub Form1_Closed ByVal sender As Object ByVal e As System EventArgs Handles MyBase Closed MyScanner Dispose End Sub C private void Form1_Closed object sender EventArgs e MyScanner Dispose ...

Page 118: ... EventArgs e is always System EventArgs Empty Ex Read data when decoding complete VB Private Sub MyScanner_OnDone ByVal sender As Object ByVal e As System EventArgs Handles MyScanner OnDone Dim ReadBuf Scanner MAX_BAR_LEN As Byte MyScanner Input ReadBuf 0 Scanner ALL_BUFFER End Sub C private void MyScanner_OnDone object sender EventArgs e byte ReadBuf new byte Scanner MAX_BAR_LEN MyScanner Input R...

Page 119: ...eInfo Constructor None Instances cannot be created directly from this class Fields None Properties Property Name Description Type Code Type Len Number of digits in code code length Methods None Events None Enumeration None ...

Page 120: ...between code types and properties Default value 0 Exceptions None Ex Acquire the code type and number of digits in all rows for the data last read VB For i 0 To MyScanner LastCodeNum len i MyScanner LastCodeInfo i Len type i MyScanner LastCodeInfo i Type Next C for i 0 i MyScanner LastCodeNum i len i MyScanner LastCodeInfo i Len type i MyScanner LastCodeInfo i Type ...

Page 121: ... digits in the code Default value 0 Exceptions None Ex Acquire the code type and number of digits in all rows for the data last read VB For i 0 To MyScanner LastCodeNum len i MyScanner LastCodeInfo i Len type i MyScanner LastCodeInfo i Type Next C for i 0 i MyScanner LastCodeNum i len i MyScanner LastCodeInfo i Len type i MyScanner LastCodeInfo i Type ...

Page 122: ...d label reading function DecodeLevel Decoding level MinDigitITF Marker mode MinDigitSTF Minimum number of digits in ITF Interleaved 2of5 MinDigitNW7 Minimum number of digits in STF Standard 2of5 Marker Minimum number of digits in NW7 CODABAR Reverse Front back inverted reading ScanMode Scan mode OptionData Option data Methods None Events None Enumeration Enumeration Name Description EN_MARKER Mark...

Page 123: ... prevention time in units of 100 msec Parameter values 0 to 255 Default value 10 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note If 0 is specified the same code will not be read twice in a row Ex Set the 2 nd read prevention time to 2 seconds VB Scanner Settings CRTime 10 C Scanner Settings CRTime 10 ...

Page 124: ...hared Property Invert As Integer C public static int Invert get set Property Parameter values 0 disabled 1 enabled Default value 0 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Disable black and white inversion reading VB Scanner Settings Invert 0 C Scanner Settings Invert 0 ...

Page 125: ...t Property Decoding level Parameter values 1 to 9 Default value 4 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note The setting for this property will be valid the next time read operation is enabled Ex Set the decode level to 7 VB Scanner Settings DecodeLevel 7 C Scanner Settings DecodeLevel 7 ...

Page 126: ...xception Meaning ArgumentException The specified parameter value s is invalid Note The setting for this property will be valid the next time read operation is enabled If the minimum number of ITF digits is specified at the read enable code RdType property the value set for the RdType property will be given priority Ex Set the default value for the minimum number of digits for ITF code reading to 8...

Page 127: ...ception Meaning ArgumentException The specified parameter value s is invalid Note The setting for this property will be valid the next time read operation is enabled If the minimum number of STF digits is specified at the read enable code RdType property the value set for the RdType property will be given priority Ex Set the default value for the minimum number of digits for STF code reading to 20...

Page 128: ...of Exception Meaning ArgumentException The specified parameter value s is invalid Note The setting for this property will be valid the next time read operation is enabled If the minimum number of NW7 digits is specified at the read enable code RdType property the value set for the RdType property will be given priority Ex Set the default value for the minimum number of digits for NW7 code reading ...

Page 129: ...alue EN_MARKER NORMAL Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note Marker ahead mode EN_MARKER AHEAD is supported only on BHT 400B models used in Japan Ex Setting to ensure that the marker is not lit when performing barcode reading VB Scanner Settings Marker Scanner Settings Marker EN_MARKER C Scanner Settings Marker Scanner Settings Marker...

Page 130: ...t set Property Front back inverted reading enabled disabled status Parameter values 0 Disabled 1 Enabled Default value 0 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note The BHT 400B does not support this property An exception will be thrown if an attempt is made to specify or read this property using the BHT 400B ...

Page 131: ...et Property Scan mode Parameter values As listed in EN_SCAN_MODE Default value EN_SCAN_MODE NORMAL Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note The BHT 400B does not support this property An exception will be thrown if an attempt is made to specify or read this property using the BHT 400B ...

Page 132: ...Property Option data status Parameter values 0 Do not append option data 1 Append option data Default value 0 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note The BHT 400B does not support this property An exception will be thrown if an attempt is made to specify or read this property using the BHT 400B ...

Page 133: ...RKER Specifies the marker mode Syntax VB Public Enum EN_MARKER C public enum EN_MARKER Members Member Name Description NORMAL Normal mode AHEAD Ahead mode DISABLE Lighting is disabled Class BHTCL Scanner Settings ...

Page 134: ...MODE Specifies the scan mode Syntax VB Public Enum EN_SCAN_MODE C public enum EN_SCAN_MODE Members Member Name Description NORMAL Normal mode POINT Point scan mode D1 Barcode reader mode Class BHTCL Scanner Settings ...

Page 135: ...ance of the battery using the ExistingBatteries property and then locating it in the corresponding property Fields Field Name Description COUNT Maximum number of batteries Properties Property Name Description ExistingBatteries Instances of existing batteries Methods None Events None Enumeration None ...

Page 136: ... value is fixed not variable Syntax VB Public Const COUNT As Integer C public const int COUNT Ex Acquire the maximum number of batteries that can be inserted in the BHT 400 VB Count BatteryCollection COUNT C Count BatteryCollection COUNT ...

Page 137: ...C public static Battery ExistingBatteries get Property Battery instances arrangement Exceptions None Note Even if there is no battery in either the grip or BHT body an arrangement with two elements is created Ex Acquire the battery instance VB MyBattery BatteryCollection ExistingBatteries C MyBattery BatteryCollection ExistingBatteries ...

Page 138: ...lass Fields None Properties Property Name Description ID Battery ID OnCU CU installation status Voltage Battery voltage Level Battery voltage level Chemistry Battery type Methods None Events None Enumeration Enumeration Name Description EN_CHARGE Battery charge status EN_LEVEL Battery voltage level EN_CHEMISTRY Battery type ...

Page 139: ...s a new instance of the Battery class Syntax VB Public Sub New ByVal BatteryID As Integer C public Battery int BatteryID Parameters BatteryID Battery ID Parameter values 0 Battery in BHT body 1 Battery in grip Exceptions None ...

Page 140: ... 134 ID Acquires the battery ID Syntax VB Public ReadOnly Property ID As Integer C public int ID get Property ID Parameter values 0 Battery in BHT body 1 Battery in grip Exceptions None ...

Page 141: ...time of initialization Exceptions None Note The value is the same for batteries in the BHT body and grip Ex Acquire the battery charge status VB For Each MyBattery In BatteryCollection ExistingBatteries Dim OnCU As BatteryCollection Battery EN_CHARGE MyBattery OnCU Next C foreach BatteryCollection Battery MyBattery in BatteryCollection ExistingBatteries BatteryCollection Battery EN_CHARGE Charge M...

Page 142: ...a battery in the grip only the battery voltage for the BHT body will be 0 mV Similarly if there is a battery in the BHT body only the battery voltage for the grip will be 0 mV Ex Acquire the battery voltage at the BHT body and grip VB For Each MyBattery In BatteryCollection ExistingBatteries Dim Volt As Short MyBattery Voltage Next C foreach BatteryCollection Battery MyBattery in BatteryCollection...

Page 143: ...ltage level for the BHT body will be EN_LEVEL NO_BATTERY Similarly if there is a battery in the BHT body only the battery voltage level for the grip will be EN_LEVEL NO_BATTERY Ex Acquire the battery level at the BHT body and grip VB For Each MyBattery In BatteryCollection ExistingBatteries Dim Level As BatteryCollection Battery EN_LEVEL MyBattery Level Next C foreach BatteryCollection Battery MyB...

Page 144: ... body will be EN_CHEMISTRY UNKNOWN Similarly if there is a battery in the BHT body only the battery type for the grip will be EN_CHEMISTRY UNKNOWN Ex Acquire the battery type at the BHT body and grip VB For Each MyBattery In BatteryCollection ExistingBatteries Dim Chemistry As BatteryCollection Battery EN_CHARGE MyBattery Chemistry Next C foreach BatteryCollection Battery MyBattery in BatteryColle...

Page 145: ... the battery is charged or not Syntax VB Public Enum EN_CHARGE C public enum EN_CHARGE Members Member Name Description OFFLINE Not charged ONLINE Charged UNKNOWN Charge status unknown Class Within BHTCL BatteryCollection Battery class ...

Page 146: ... public enum EN_LEVEL Members Member Name Description HIGH 3 9 V or above MID 3 7 V or above but less than 3 9 V LOW 3 6 V or above but less than 3 7 V WARNING Less than 3 6 V CRITICAL Less than 3 4 V NO_BATTERY No battery installed Class Within BHTCL BatteryCollection Battery class ...

Page 147: ...Y C public enum EN_CHEMISTRY Members Member Name Description ALKALINE Alkaline battery NICD Nickel Cadmium battery NIMH Nickel Metal Hydride battery LION Lithium Ion battery LIPOLY Lithium Polymer battery UNKNOWN Unknown missing Class Within BHTCL BatteryCollection Battery class ...

Page 148: ...tor Name Description Backlight Creates a new instance of the Backlight class Fields None Properties Property Name Description Status Backlight is lit Methods None Events None Enumeration Enumeration Name Description EN_STATUS Backlight is lit ...

Page 149: ...instance of the Backlight class Syntax VB Public Sub New C public Backlight Parameters None Exceptions None Ex Create a MyBacklight Backlight instance VB Dim MyBacklight As Backlight New Backlight C Backlight MyBacklight new Backlight ...

Page 150: ...roperty Backlight status whether the backlight is lit Parameter values As listed in EN_STATUS Default value Backlight status at the time of initialization Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Turn ON the backlight VB Backlight Status Backlight EN_STATUS ENABLE_ON C Backlight Status Backlight EN_STATUS ENABLE_ON ...

Page 151: ...es the backlight status whether the backlight is lit Syntax VB Public Enum EN_STATUS C public enum EN_STATUS Members Member Name Description ENABLE_ON ON ENABLE_OFF OFF DISABLE_OFF Disabled Class Within BHTCL Backlight class ...

Page 152: ...irectly from this class Fields None Properties Property Name Description OnTimeBattery ON time when powered by battery OnTimeAC ON time when installed on CU CtrlKey Control key Brightness Brightness level PowerSave Brightness when OFF Methods None Events None Enumeration None ...

Page 153: ...of 1 sec Parameter values 0 to 255 Default value 3 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When 0 is specified the backlight does not turn ON When 255 is specified the backlight remains ON constantly Ex Set the backlight ON time to 10 seconds when the BHT is powered by the battery VB Backlight Settings OnTimeBattery 10 C Backlight Sett...

Page 154: ...c Parameter values 0 to 255 Default value 60 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When 0 is specified the backlight does not turn ON When 255 is specified the backlight remains ON constantly Ex Set the backlight ON time to 10 seconds when the BHT is installed on the CU VB Backlight Settings OnTimeAC 10 C Backlight Settings OnTimeAC ...

Page 155: ... Integer C public static int CtrlKey get set Property Backlight ON OFF control key Parameter values See table below Default value 0x00010204 SF M4 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note The relationship between the control keys and settings is shown in table below ...

Page 156: ...8 0x00000108 F9 0x00000109 F10 0x0000010A F11 0x0000010B F12 0x0000010C SCAN 0x00000200 SF SCAN 0x00010200 M1 0x00000201 SF M1 0x00010201 M2 0x00000202 SF M2 0x00010202 M3H half press 0x00000243 SF M3H half press 0x00010243 M3 0x00000203 SF M3 0x00010203 M4H half press 0x00000244 SF M4H half press 0x00010244 M4 0x00000204 SF M4 0x00010204 Ex Set the backlight control key to the M1 key VB Backlight...

Page 157: ...int Brightness get set Property Brightness level Parameter values 0 OFF 1 dark to 3 bright Default value 3 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the brightness to maximum when turning ON the backlight VB Backlight Settings Brightness 3 C Backlight Settings Brightness 3 ...

Page 158: ...public static int PowerSave get set Property Brightness when OFF Parameter values 0 OFF 1 Dimly Default value 0 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the backlight status to OFF when not lit VB Backlight Settings PowerSave 0 C Backlight Settings PowerSave 0 ...

Page 159: ...the LED class Fields Field Name Description Usage Restrictions on LED usage invalid on BHT 400 Properties Property Name Description Item LED ON OFF status Methods None Events None Enumeration Enumeration Name Description EN_DEVICE LED device EN_COLOR LED color EN_CTRL LED ON OFF status ...

Page 160: ... 154 LED Initializes a new instance of the LED class Syntax VB Public Sub New C public LED Parameters None Exceptions None Ex Create a MyLED LED instance VB Dim MyLED As LED New LED C LED MyLED new LED ...

Page 161: ...ic LED EN_CTRL this LED EN_DEVICE device LED EN_COLOR color get set Parameters device LED device Parameter values As listed in LED EN_DEVICE BAR color LED color Parameter values Red LED EN_COLOR RED or blue LED EN_COLOR BLUE Property LED ON OFF status Parameter values As listed in EN_CTRL Default value ON OFF status at the time of initialization Exceptions Name of Exception Meaning ArgumentExcepti...

Page 162: ...ed However if prohibition of operation for a particular indicator LED is specified it can be controlled from the application Once an LED is turned on from the application it will remain lit even after the application is finished until it is deliberately turned off Ex Turn ON the blue LED VB MyLED LED EN_DEVICE BAR LED EN_COLOR BLUE LED EN_CTRL ON C MyLED LED EN_DEVICE BAR LED EN_COLOR BLUE LED EN_...

Page 163: ... EN_DEVICE Specifies the LED device Syntax VB Public Enum EN_DEVICE C public enum EN_DEVICE Members Member Name Description BAR Indicator LED RF Wireless LED disabled on BHT 400 Class Within BHTCL LED class ...

Page 164: ...LOR Specifies the LED color Syntax VB Public Enum EN_COLOR C public enum EN_COLOR Members Member Name Description RED Red BLUE Blue GREEN GREEN Green YELLOW Yellow disabled on BHT 400 Class Within BHTCL LED class ...

Page 165: ... 159 EN_CTRL Specifies the LED ON OFF status Syntax VB Public Enum EN_CTRL C public enum EN_CTRL Members Member Name Description OFF LED OFF ON LED ON Class Within BHTCL LED class ...

Page 166: ... 160 18 9 LED UsageCollection This class is invalid on the BHT400 ...

Page 167: ...a new instance of the Beep class Fields None Properties Property Name Description Item Beep control OnTime ON duration OffTime OFF duration Frequency Beep frequency Count Number of beeps Methods None Events None Enumeration Enumeration Name Description EN_CTRL Beep status ...

Page 168: ...Initializes a new instance of the Beep class Syntax VB Public Sub New C public Beep Parameters None Exceptions None Ex Create a MyBeep beeper vibrator instance VB Dim MyBeep As LED New Beep C LED MyBeep new Beep ...

Page 169: ...n EN_DEVICE one of the values or a combination of the values Property Status of the beeper or vibrator Parameter values As listed in EN_CTRL Default value EN_CTRL OFF Exceptions Name of Exception Meaning ArgumentException The specified parameter value s lies outside the permissible range Specification of the beep device is invalid Ex Activate the beeper and vibrator VB MyBeep Beep Settings EN_DEVI...

Page 170: ...meter values 0 to 255 Default value 5 Exceptions None Note If a value outside the permissible range is specified no exceptions will be thrown immediately however an exception will be thrown later when the start of beeping or vibrating is specified with an Item property If this property is set to 0 the beeper or the vibrator will not sound or vibrate Ex Set the ON time to 1 second VB MyBeep OnTime ...

Page 171: ...ptions None Note If a value outside the permissible range is specified no exceptions will be thrown immediately however an exception will be thrown later when the start of beeping or vibrating is specified with an Item property If a value other than zero is specified for the ON duration while 0 is specified for the OFF duration the beeper or the vibrator will continue to sound or vibrate Ex Set th...

Page 172: ...7 inclusive Default value 2 Exceptions None Note If a value outside the permissible range is specified no exceptions will be thrown immediately however an exception will be thrown later when the start of beeping or vibrating is specified with an Item property If a value between 3 and 39 inclusive is specified no exceptions will be thrown however the beeper will not sound Ex Set the beep frequency ...

Page 173: ...the beeper or vibrator Parameter values 0 to 255 The beeper will not sound if 0 is specified Default value 1 Exceptions None Note If a value outside the permissible range is specified no exceptions will be thrown immediately however an exception will be thrown later when the start of beeping or vibrating is specified with an Item property Ex Set the beep count to 5 VB MyBeep Count 5 C MyBeep Count...

Page 174: ...ts or stops the beeping or vibration Syntax VB Public Enum EN_CTRL C public enum EN_CTRL Members Member Name Description OFF Stop the beeping or vibration ON Start the beeping or vibration Class Within BHTCL BEEP class ...

Page 175: ...rator Volume Beeper volume VolumeKey Key click sound volume VolumeTap Tap sound volume VolumeHalfKey Half pressed key click sound volume OnOffLaserKey Trigger switch ON OFF sound OnOffTrgKey Laser key click ON OFF sound Methods None Events None Enumeration Enumeration Name Description EN_DEVICE Beeper or vibrator EN_VOLUME Sound volume EN_ON_OFF Click sound ON OFF ...

Page 176: ...d in EN_DEVICE one of the values or a combination of the values Default value EN_DEVICE BEEP Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the sound device barcode reading warning sound etc for the entire system to vibrator only VB Beep Settings Device Beep Settings EN_DEVICE VIBRATOR C Beep Settings Device Beep Settings EN_DEVICE VIBRATOR...

Page 177: ...et Property Beeper volume Parameter values As listed in EN_VOLUME Default value EN_VOLUME LEVEL5 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the beeper volume to maximum VB Beep Settings Volume Beep Settings EN_VOLUME LEVEL5 C Beep Settings Volume Beep Settings EN_VOLUME LEVEL5 ...

Page 178: ...operty Sound volume Parameter values EN_VOLUME values LEVEL_OFF to LEVEL2 Default value EN_VOLUME LEVEL2 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the key click sound volume to maximum VB Beep Settings VolumeKey Beep Settings EN_VOLUME LEVEL2 C Beep Settings VolumeKey Beep Settings EN_VOLUME LEVEL2 ...

Page 179: ...t Property Sound volume Parameter values EN_VOLUME values LEVEL_OFF to LEVEL2 Default value EN_VOLUME LEVEL2 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the screen tap sound volume to maximum VB Beep Settings VolumeTap Beep Settings EN_VOLUME LEVEL2 C Beep Settings VolumeTap Beep Settings EN_VOLUME LEVEL2 ...

Page 180: ...t Property Sound volume Parameter values EN_VOLUME values LEVEL_OFF to LEVEL2 Default value EN_VOLUME LEVEL_OFF Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the half press key click sound volume to maximum VB Beep Settings VolumeHalfKey Beep Settings EN_VOLUME LEVEL2 C Beep Settings VolumeHalfKey Beep Settings EN_VOLUME LEVEL2 ...

Page 181: ...UME OnOffLaserKey get set Property Clicking sound ON OFF Parameter values As listed in EN_ON_OFF Default value EN_ON_OFF OFF Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Turn OFF the laser marker key click sound VB Beep Settings OnOffLaserKey Beep Settings EN_ON_OFF OFF C Beep Settings OnOffLaserKey Beep Settings EN_ON_OFF OFF ...

Page 182: ...VOLUME OnOffTrgKey get set Property Clicking sound ON OFF Parameter values As listed in EN_ON_OFF Default value EN_ON_OFF OFF Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Turn OFF the trigger key click sound VB Beep Settings OnOffTrgKey Beep Settings EN_ON_OFF OFF C Beep Settings OnOffTrgKey Beep Settings EN_ON_OFF OFF ...

Page 183: ...EN_DEVICE Specifies the beeper or vibrator Syntax VB Public Flags Enum EN_DEVICE C public Flags enum EN_DEVICE Members Member Name Description BEEP Beeper VIB Vibrator Class Within BHTCL Beep Settings class ...

Page 184: ...OLUME Specifies the beeper volume level Syntax VB Public Enum EN_VOLUME C public enum EN_VOLUME Members Member Name Description LEVEL_OFF OFF LEVEL1 Low LEVEL2 LEVEL3 LEVEL4 LEVEL5 High Class BHTCL Beep Settings ...

Page 185: ... 179 EN_ON_OFF Specifies the ON OFF for the clicking sound Syntax VB Public Enum EN_ON_OFF C public enum EN_ON_OFF Members Member Name Description OFF OFF ON ON Class BHTCL Beep Settings ...

Page 186: ...roperties Property Name Description OpenMode Wireless communication open mode Open Wireless communication open state WepKey Wep key Methods Method Name Description Synchronize Checks the status of synchronization with AP Events None Enumeration Enumeration Name Description EN_OPEN_MODE Wireless device open mode ...

Page 187: ... 181 RF Initializes a new instance of the RF class Syntax VB Public Sub New C public RF Parameters None Exceptions None Ex Create a MyRf RF interface VB Dim MyRf As RF New RF C RF MyRf new RF ...

Page 188: ...ption will be thrown later when an attempt is made to open or close the wireless device When the property is set to EN_OPENMODE NORMAL and the wireless device is opened When closing the wireless device set the property to EN_OPEN_MODE NORMAL and then close the device The wireless device will remain open provided that neither of the above two operations are performed including when closing the wire...

Page 189: ... and the wireless device is closed Application This applies to applications used only to perform settings in order to establish a connection to the network Ex Open a wireless connection to ensure that it is closed automatically when exiting the application VB MyRf OpenMode RF EN_OPEN_MODE NORMAL MyRf Open True C MyRf OpenMode RF EN_OPEN_MODE NORMAL MyRf Open true Ex Close the wireless connection o...

Page 190: ...s connection opened from any application including the current application VB MyRf Open True MyRf OpenMode RF EN_OPEN_MODE CONTINUOUSLY MyRf Open False C MyRf Open true MyRf OpenMode RF EN_OPEN_MODE CONTINUOUSLY MyRf Open false ...

Page 191: ...y setting OpenMode to EN_OPEN_MODE NORMAL will be returned If wireless communication is achieved by setting OpenMode to EN_OPEN_MODE CONTINUOUSLY the status achieved by setting OpenMode to EN_OPEN_MODE CONTINUOUSLY will be returned Default value False Exceptions Name of Exception Meaning DeviceNotFoundException The specified device does not exist ArgumentException The value specified for OpenMode ...

Page 192: ...WepKey get Property WepKey instance Default value null Nothing at VB NET Exceptions None Note An instance cannot be generated directly from WepKeyCollection and therefore WepKey should be obtained with this property This property has been retained to provide compatibility with the BHT 200 Ensure to use the Profile class WepKey property for the Wep key setting ...

Page 193: ...il synchronization is established Parameter values RF SYNC_CHECK RF SYNC_INFINITE 1 Int32 MaxValue Return value 0 Synchronization has been established 1 Synchronization has not been established time out Exceptions Name of Exception Meaning DeviceNotFoundException There is no NIC Network Interface Card DeviceLoadException The NIC device is not ready ArgumentException The specified time out value is...

Page 194: ...nization with the AP every second until synchronization is established VB While Not 0 RF Synchronize RF SYNC_CHECK Threading Thread Sleep 1000 End While C while 0 RF Synchronize RF SYNC_CHECK System Threading Thread Sleep 1000 ...

Page 195: ...nnection open mode Syntax VB Public Enum EN_OPEN_MODE C public enum EN_OPEN_MODE Members Member Name Description NORMAL Normal mode 1 CONTINUOUSLY Continuously open mode 1 1 Please refer to the notes for the OpenMode property for further details ...

Page 196: ...elds None Properties Property Name Description SSID ESSID InfraMode Infrastructure mode Priority Priority Authentication Authentication method Encryption Encryption method EAP8021x EAP type WepKey WEP key PreSharedKey PreSharedKey Count No of registered profiles Methods Method Name Description Update Update Commit Commit Remove Remove Events None ...

Page 197: ... 191 Enumeration Enumeration Name Description EN_AUTHENTICATION Authentication method EN_EAP8021X EAP type EN_ENCRYPTION Encryption method EN_INFRA_MODE Infrastructure ...

Page 198: ...ing of 32 characters or less infra Infrastructure mode Parameter values As listed in EN_INFRA_MODE Exceptions Name of Exception Meaning ArgumentException The values specified for SSID and infra are abnormal Note Select a profile matching the specified ESSID and infrastructure mode combination If none exists create a new profile and select that one If multiple profiles are created the priority orde...

Page 199: ... 193 SSID Acquires the profile ESSID Syntax VB Public ReadOnly Property SSID As String C public string SSID get Property ESSID Exceptions ...

Page 200: ... 194 InfraMode Acquires the profile infrastructure Syntax VB Public ReadOnly Property InfraMode As EN_INFRA_MODE C public EN_INFRA_MODE InfraMode get Property Infrastructure mode Exceptions None ...

Page 201: ...is created the priority order for each of the existing profiles drops by one When a profile is deleted the priority order for the existing profiles previously below the deleted profile increases by one If the same priority order is set for different profiles the priority order of the profile set first will drop by one Profiles for which an even lower priority order is set will also drop by one Ex ...

Page 202: ...authentication method Parameter values As listed in EN_AUTHENTICATION Default value EN_AUTHENTICATION OPEN Exceptions Name of Exception Meaning ArgumentException The specified parameter value s lies outside the permissible range Ex Set the MyProf profile authentication method to Open VB MyProf Authentication RF Profile EN_AUTHENTICATION OPEN C MyProf Authentication RF Profile EN_AUTHENTICATION OPE...

Page 203: ...ile encryption method Parameter values As listed in EN_ENCRYPTION Default value EN_ENCRYPTION DISABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s lies outside the permissible range Ex Set the MyProf profile encryption method to Wep VB MyProf Encryption RF Profile EN_ENCRYPTION WEP C MyProf Encryption RF Profile EN_ENCRYPTION WEP ...

Page 204: ...rty Profile EAP type Parameter values As listed in EN_EAP8021X Default value EN_EAP8021X DISABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s lies outside the permissible range Ex Set the MyProf profile EAP type to Tkip VB MyProf EAP8021x RF Profile EN_EAP8021X TKIP C MyProf EAP8021x RF Profile EN_EAP8021X TKIP ...

Page 205: ...acter alphanumeric character string 40 bit 26 character alphanumeric character string 128 bit Exceptions Name of Exception Meaning ArgumentException The specified parameter value s lies outside the permissible range Ex Set the MyProf profile Wep key to 12345123451234123412341234 VB MyProf WepKey 12345123451234123412341234 C MyProf WepKey 12345123451234123412341234 ...

Page 206: ...lphanumeric character string in hexadecimal notation or ASCII character string with 8 characters or more and 63 characters or less Exceptions Name of Exception Meaning ArgumentException The specified parameter value s lies outside the permissible range Ex Set the MyProf profile PreSharedKey to 12345123451234123412341234 VB MyProf WepKey 12345123451234123412341234 C MyProf WepKey 123451234512341234...

Page 207: ... 201 Count Acquires the number of registered profiles Syntax VB Public Shared ReadOnly Property Count As Integer C public static int Count get Property Registered profile count Exceptions None ...

Page 208: ...ll registered profiles VB RF Profile Update Copies settings from the Zero Config GUI to the BHT wireless registry Dim regProfiles As RF Profile RF Profile Registered For Each prof As RF Profile In regProfiles RF Profile Remove prof SSID prof InfraMode Next RF Profile Commit Updates to the Zero Config GUI C RF Profile Update Copies settings from the Zero Config GUI to the BHT wireless registry Zero...

Page 209: ...od first if the value set at the Zero Config GUI is acquired from the class library Ex Changing the profile ESSID BHT Infra Infrastructure Wep key created at Zero Config to 1234567890 VB RF Profile Update Dim prof As RF Profile New Profile BHT EN_INFRA_MODE INFRASTRUCTURE prof WepKey 1234567890 RF Profile Commit C RF Profile Update RF Profile prof new Profile BHT EN_INFRA_MODE INFRASTRUCTURE prof ...

Page 210: ... value set from the library is used and a connection is established with the network Ex Changing the profile ESSID BHT Infra Infrastructure Wep key created at Zero Config to 1234567890 VB RF Profile Update Dim prof As RF Profile New Profile BHT EN_INFRA_MODE INFRASTRUCTURE prof WepKey 1234567890 RF Profile Commit C RF Profile Update RF Profile prof new Profile BHT EN_INFRA_MODE INFRASTRUCTURE prof...

Page 211: ...FRA_MODE C public static void Remove string ssid EN_INFRA_MODE infra Parameters ssid Deleted profile ESSID infra Deleted profile infrastructure mode Exceptions Ex Delete a profile ESSID BHT infra infrastructure VB RF Profile Remove BHT EN_INFRA_MODE INFRASTRUCTURE C RF Profile Remove BHT EN_INFRA_MODE INFRASTRUCTURE ...

Page 212: ... EN_AUTHENTICATION Specifies the authentication method Syntax VB Public Enum EN_AUTHENTICATION C public enum EN_AUTHENTICATION Members Member Name Description OPEN Open SHARED Shared WPA WPA WPAPSK WPA PSK ...

Page 213: ... 207 EN_EAP8021X Specifies the EAP type Syntax VB Public Enum EN_EAP8021X C public enum EN_EAP8021X Members Member Name Description DISABLE Disable MD5CHALLENGE MD5 Challenge PEAP PEAP TLS TLS ...

Page 214: ... 208 EN_ENCRYPTION Specifies the encryption method Syntax VB Public Enum EN_ENCRYPTION C public enum EN_ENCRYPTION Members Member Name Description DISABLE Disable WEP Wep AES AES Not Supported TKIP Tkip ...

Page 215: ... 209 EN_INFRA_MODE Specifies infrastructure Syntax VB Public Enum EN_INFRA_MODE C public enum EN_INFRA_MODE Members Member Name Description INFRASTRUCTURE Infrastructure ADHOC ad hoc ...

Page 216: ...rSave Power save mode Authentication Authentication method DestMACAddress Destination s MAC address Version Driver version FWVersion Firmware version HWVersion Hardware version MACAddress MAC address SSID1 ESSID1 Methods None Events None Enumeration Enumeration Name Description EN_AUTHENTICATION Authentication method EN_POWERSAVE Power save mode ...

Page 217: ...set Property Power save mode Parameter values As listed in EN_POWERSAVE Default value EN_POWERSAVE CAM Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the wireless power consumption to PSP VB RF Settings PowerSave RF Settings EN_POWERSAVE PSP C RF Settings PowerSave RF Settings EN_POWERSAVE PSP ...

Page 218: ...ons Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note This property has been retained to provide compatibility with the BHT 200 Ensure to use the Profile class Authentication property for the authentication method setting If EN_AUTHENTICATION SHARED40 or EN_AUTHENTICATION SHARED128 is set for this property the BHT class library internal authentication meth...

Page 219: ...et Property MAC address of AP Default value null Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note An exception will be thrown only when the length of the string exceeds 12 characters Ex Specify the connection destination AP as 001122334455 VB RF Settings DestMACAddress 001122334455 C RF Settings DestMACAddress 001122334455 ...

Page 220: ... String C public static string Version get Property Driver version Default value null Exceptions Name of Exception Meaning DeviceLoadException The NIC device is not ready Ex Acquire the wireless driver version VB Dim VerDriver As String RF Settings Version C string VerDriver RF Settings Version ...

Page 221: ...n As String C public static string FWVersion get Property Firmware version Default value null Exceptions Name of Exception Meaning DeviceLoadException The NIC device is not ready Ex Acquire the wireless F W version VB Dim VerFW As String RF Settings FWVersion C string VerFW RF Settings FWVersion ...

Page 222: ...n As String C public static string HWVersion get Property Hardware version Default value null Exceptions Name of Exception Meaning DeviceLoadException The NIC device is not ready Ex Acquire the wireless H W version VB Dim VerHW As String RF Settings HWVersion C string VerHW RF Settings HWVersion ...

Page 223: ...ess As String C public static string MACAddress get Property MAC address Default value null Exceptions Name of Exception Meaning DeviceLoadException The NIC device is not ready Ex Acquire the MAC address VB Dim MacAddr As String RF Settings MACAddress C string MacAddr RF Settings MACAddress ...

Page 224: ...c string SSID1 get set Property ESSID Default value 101 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note This property has been retained to provide compatibility with the BHT 200 Ensure to use the Profile class SSID property for the Wep key setting ...

Page 225: ... 219 EN_AUTHENTICATION Specifies the authentication method Syntax VB Public Enum EN_AUTHENTICATION C public enum EN_AUTHENTICATION Members Member Name Description OPEN Open Class BHTCL RF Settings ...

Page 226: ...ublic Enum EN_POWERSAVE C public enum EN_POWERSAVE Members Member Name Description CAM Continuously Access Mode Max power consumption PSP Power Save Polling Min power consumption FULL CAM MOST PSP MORE PSP MID PSP LESS PSP LEAST PSP Class BHTCL RF Settings ...

Page 227: ...ollection Constructor None Instances cannot be created directly form this class Fields None Properties Property Name Description Item Wep key value TransmitKey Wep transmission key Methods None Events None Enumeration None ...

Page 228: ...g C public string this int KeyNo set Parameters KeyNo Wep key index Values for 1 to 4 Property Wep key Default value Wep key value at the time of initialization Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note This property has been retained to provide compatibility with the BHT 200 Ensure to use the Profile class WepKey property for the Wep ke...

Page 229: ...ic Default Property TransmitKey As Integer C public static int TransmitKey get set Property Wep transmission key Default value Wep transmission key value at the time of initialization Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note ...

Page 230: ...cannot be created directly from this class Fields None Properties Property Name Description Strength Strength Beacon Beacon Link Communication quality Methods None Events None Enumeration Enumeration Name Description EN_LINE_QUALITY Communication quality ...

Page 231: ...perty Radio field strength Default value Radio field strength at the time of initialization Exceptions Name of Exception Meaning DeviceNotFoundException No NIC device was found DeviceLoadException The NIC device is not ready Ex Acquire the radio field strength VB Dim Strength As Integer RF SiteSurvey Strength C int Strength RF SiteSurvey Strength ...

Page 232: ...con get Property Beacon quality Default value Beacon quality at the time of initialization Exceptions Name of Exception Meaning DeviceNotFoundException No NIC device was found DeviceLoadException The NIC device is not ready Ex Acquire the beacon VB Dim Beacon As Integer RF SiteSurvey Beacon C int Beacon RF SiteSurvey Beacon ...

Page 233: ...quality Default value Communication quality at the time of initialization Exceptions Name of Exception Meaning DeviceNotFoundException No NIC device was found DeviceLoadException The NIC device is not ready Ex Acquire the communication quality VB Dim LineQuality As RF SiteSurvey EN_LINE_QUALITY RF SiteSurvey Link C RF SiteSurvey EN_LINE_QUALITY LineQuality RF SiteSurvey Link ...

Page 234: ...ality Syntax VB Public Enum EN_LINE_QUALITY C public enum EN_LINE_QUALITY Members Member Name Description UNSYNC Not connected not synchronized POOR Less than 20 FAIR 20 to 40 GOOD 40 to 75 EXCELLENT 75 or greater Class Within BHTCL RF SiteSurvey class ...

Page 235: ...ted directly from this class Fields None Properties Property Name Description Rate Communication speed Channel Communication channel APMAC MAC address of destination AP Methods None Events None Enumeration Enumeration Name Description EN_RATE Communication speed ...

Page 236: ...RATE Rate get Property Communication speed Default value NOT_LINK Exceptions Name of Exception Meaning DeviceNotFoundException No NIC device was found DeviceLoadException The NIC device is not ready Ex Acquire the current communication speed VB Dim Rate As RF Info EN_RATE RF Info Rate C RF Info EN_RATE Rate RF Info Rate ...

Page 237: ...static int Channel get Property Communication channel Default value 0 Exceptions Name of Exception Meaning DeviceNotFoundException No NIC device was found DeviceLoadException The NIC device is not ready Ex Acquire the current communication channel VB Dim Channel As Integer RF Info Channel C int Channel RF Info Channel ...

Page 238: ...lic static string APMAC get Property MAC address Default value null Exceptions Name of Exception Meaning DeviceNotFoundException No NIC device was found DeviceLoadException The NIC device is not ready Ex Acquire the MAC address of the currently linked AP VB Dim CurAPMacAddr As String RF Info APMAC C int Channel RF Info Channel ...

Page 239: ...mmunication speed Syntax VB Public Enum EN_RATE C public enum EN_RATE Members Member Name Description AUTO Auto MBPS1 1 Mbps MBPS2 2 Mbps MBPS5_5 5 5 Mbps MBPS11 11 Mbps MBPS11Over 11 Mbps and over Class Within BHTCL RF Info class ...

Page 240: ...because all the members are static members Fields Field Name Description Mx MxH Mx M1 to M5 MxH M3H to M5H Key code for MagicKey Mx M1 to M5 MxH M3H to M5H ALP Alphabetic key SCAN SCAN key FUNC FUNC key SEND SEND key Properties None Methods None Events None Enumeration None ...

Page 241: ...ift TAB CTRL and Alt key functions are assigned to these keys the assigned key code is returned Syntax VB Public Const Mx As Windows Forms Keys C public const Windows Forms Keys Mx ALP Key code for ALP key Syntax VB Public Const ALPKey As System Windows Forms Keys C public const System Windows Forms Keys ALPKey ...

Page 242: ... key Syntax VB Public Const SCAN As Windows Forms Keys C public const SCAN Windows Forms Keys SCAN FUNC Key code for FUNC key Syntax VB Public Const FUNC As System Windows Forms Keys C public const System Windows Forms Keys FUNC ...

Page 243: ...bject ByVal e As System Windows Forms KeyEventArgs Handles MyBase KeyDown Select Case e KeyCode Case DNWA BHTCL Keys M1 Console WriteLine M1 key is down Case DNWA BHTCL Keys ALP Console WriteLine ALP key is down Case DNWA BHTCL Keys SCAN Console WriteLine ALP key is down Case DNWA BHTCL Keys FUNC Console WriteLine ALP key is down Case DNWA BHTCL Keys SEND Console WriteLine ALP key is down End Sele...

Page 244: ... Console WriteLine M1 key is down break case DNWA BHTCL Keys ALP Console WriteLine ALP key is down break case DNWA BHTCL Keys SCAN Console WriteLine SCAN key is down break case DNWA BHTCL Keys FUNC Console WriteLine FUNC key is down break case DNWA BHTCL Keys SEND Console WriteLine SEND key is down break ...

Page 245: ...ncMode Function mode PwrDownTime Length of time PWR key pressed down until power OFF in units of 100 msec AllowChangeIM Input method switching enabled disabled KeyboardType Keyboard type HandleStatus Grip handle status connected or not connected Methods None Events None Enumeration Enumeration Name Description EN_SHIFT_MODE SF key operation mode EN_MX_MODE Magic key function EN_INPUT_METHOD Input ...

Page 246: ...roperty Operation mode Parameter values As listed in EN_SHIFT_MODE Default value EN_SHIFT_MODE NON_LOCK Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the SF key operation mode to onetime lock VB Keys Settings ShiftMode Keys Settings EN_SHIFT_MODE ONE_LOCK C Keys Settings ShiftMode Keys Settings EN_SHIFT_MODE ONE_LOCK ...

Page 247: ... values As listed in EN_MX_MODE with the exception of EN_MX MODE IM Default value M1 EN_MX_MODE TAB M2 EN_MX_MODE NONE M3 EN_MX_MODE TRG M4 EN_MX_MODE TRG M5 EN_MX_MODE TRG M3H EN_MX_MODE LASER M4H EN_MX_MODE LASER M5H EN_MX_MODE LASER Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the M2 key function to the CTRL key VB Keys Settings M2Mode...

Page 248: ...y Operation mode Parameter values As listed in EN_MX_MODE with the exception of EN_MX MODE IM Default value EN_MX_MODE TRG Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the SCAN key function to the CTRL key VB Keys Settings ScanMode Keys Settings EN_MX_MODE CTRL C Keys Settings ScanMode Keys Settings EN_MX_MODE CTRL ...

Page 249: ...alues As listed in EN_INPUT_METHOD one of the values or a combination of the values Default value EN_ INPUT_METHOD NUMERIC Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Set the input method to alphabet entry mode VB Keys Settings InputMethod Keys Settings EN_INPUT_METHOD ALPHABET C Keys Settings InputMethod Keys Settings EN_INPUT_METHOD ALPHAB...

Page 250: ...ter values As listed in EN_FUNC_MODE one of the values or a combination of the values Default value EN_FUNC_MODE NON_FUNCTION Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Disable function mode VB Keys Settings FuncMode Keys Settings EN_FUNC_MODE NON_FUNCTION C Keys Settings FuncMode Keys Settings EN_FUNC_MODE NON_FUNCTION ...

Page 251: ...wrDownTime get set Property Length of time key pressed down in units of 100msec Parameter values 1 to 255 Default value 5 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Make setting to ensure the power does not turn OFF unless the PWR key is held down for 10 seconds VB Keys Settings PwrDownTime 100 C Keys Settings PwrDownTime 100 ...

Page 252: ... AllowChangeIM get set Property Enable disable Parameter values As listed in EN_CHANGE_IM Default value EN_CHANGE_IM ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Disable transition to alphabet entry mode VB Keys Settings AllowChangeIM Keys Settings EN_CHANGE_IM DISABLE C Keys Settings AllowChangeIM Keys Settings EN_CHANGE_IM DISABLE ...

Page 253: ...e get Property Keyboard type Exceptions None Ex Check the key type VB If DNWA BHTCL Keys Settings KeyboardType _ Keys Settings EN_KEYBOARD_TYPE TYPE1 Then Console WriteLine 31 keys Else Console WriteLine 50 keys End If C if DNWA BHTCL Keys Settings EN_KEYBOARD_TYPE TYPE1 DNWA BHTCL Keys Settings KeyboardType Console WriteLine 31 keys else Console WriteLine 50 keys ...

Page 254: ...us Exceptions None Ex Check the grip handle connection status VB If DNWA BHTCL Keys Settings HandleStatus _ Keys Settings EN_HANDLE_STATUS LOADED Then Console WriteLine Grip handle is loaded Else Console WriteLine Grip handle is not loaded End If C if DNWA BHTCL Keys Settings EN_KEYBOARD_TYPE TYPE1 DNWA BHTCL Keys Settings KeyboardType Console WriteLine Grip handle is loaded else Console WriteLine...

Page 255: ...DE Specifies the operation mode for the Shift SF key Syntax VB Public Enum EN_SHIFT_MODE C public enum EN_SHIFT_MODE Members Member Name Description NON_LOCK Normal ONE_LOCK Onetime lock mode Class BHTCL Keys Settings ...

Page 256: ...num EN_MX_MODE Members Member Name Description NONE None ENTER Enter key TRG Trigger key SHIFT Shift key BACKLIGHT Backlight control key TAB Tab key IM Input method switching key LASER Laser ON OFF key CTRL Ctrl key ALT Alt key USER_DEF_CODE User definition code Class BHTCL Keys Settings ...

Page 257: ...METHOD Specifies the input method Syntax VB Public Enum EN_INPUT_METHOD C public enum EN_INPUT_METHOD Members Member Name Description NUMERIC Numeric entry mode ALPHABET Alphabet entry mode Class BHTCL Keys Settings ...

Page 258: ...Specifies function mode non function mode Syntax VB Public Enum EN_ FUNC_METHOD C public enum EN_FUNC_METHOD Members Member Name Description FUNCTION Function mode NON_FUNCTION Non function mode Class BHTCL Keys Settings ...

Page 259: ..._IM Specifies whether to enable or disable input method switching Syntax VB Public Enum EN_CHANGE_IM C public enum EN_CHANGE_IM Members Member Name Description ENABLE Enable DISABLE Disable Class BHTCL Keys Settings ...

Page 260: ...254 EN_KEYBOARD_TYPE Specifies the keyboard type Syntax VB Public Enum EN_KEYBOARD_TYPE C public enum EN_KEYBOARD_TYPE Members Member Name Description TYPE1 31 key TYPE2 50 key Class BHTCL Keys Settings ...

Page 261: ... 255 18 20 SysInfo Constructor None There is no need to create an instance because all the members are static members Fields None Properties None Methods None Events None Enumeration None ...

Page 262: ...e created directly from this class Fields None Properties Property Name Description OSVersion System version MachineName Machine name MachineNumber Product number SerialNumber Serial number RAMSize RAM size ROMSize ROM size Methods None Events None Enumeration None ...

Page 263: ... VB Public Shared ReadOnly Property OSVersion As String C public static string OSVersion get Property System version 4 digits Exceptions None Ex Acquire the system version VB Dim OSVer As String SysInfo Settings OSVersion C string OSVer SysInfo Settings OSVersion ...

Page 264: ... Shared ReadOnly Property MachineName As String C public static string MachineName get Property Machine name Exceptions None Ex Acquire the machine name VB Dim MachineName As String SysInfo Settings MachineName C string MachineName SysInfo Settings MachineName ...

Page 265: ...d ReadOnly Property MachineNumber As String C public static string MachineNumber get Property Machine number Exceptions None Ex Acquire the machine number VB Dim MachineNumber As String SysInfo Settings MachineNumber C string MachineNumber SysInfo Settings MachineNumber ...

Page 266: ...erial number Parameter values 6 digit character string Default value Last 6 digits of serial number S N on the back of the BHT Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Acquire the serial number VB Dim SerialNumber As String SysInfo Settings SerialNumber C string SerialNumber SysInfo Settings SerialNumber ...

Page 267: ...tax VB Public Shared ReadOnly Property RAMSize As Integer C public static int RAMSize get Property Capacity Byte Exceptions None Ex Acquire the capacity of the BHT RAM VB Dim RAMSize As Integer SysInfo Settings RAMSize C string RAMSize SysInfo Settings RAMSize ...

Page 268: ...tax VB Public Shared ReadOnly Property ROMSize As Integer C public static int ROMSize get Property Capacity Byte Exceptions None Ex Acquire the capacity of the BHT ROM VB Dim ROMSize As Integer SysInfo Settings ROMSize C string ROMSize SysInfo Settings ROMSize ...

Page 269: ...embers are static members Fields None Properties None Methods Method Name Description Shutdown Shuts down the power in such a way that the system will be started in the specified mode next time it is turned ON Events None Enumeration Enumeration Name Description EN_SHUTDOWN_MODE Shutdown mode ...

Page 270: ... mode Parameters mode in Mode to be entered at the time of start up Parameter values As listed in EN_SHUTDOWN_MODE Return value None Exceptions Name of Exception Meaning ArgumentException The specified mode is invalid Note After warm booting After cold booting Files in the FLASH folder Retained Retained Files in the RAM Retained Lost Contents of the Registry Retained Lost Data being edited Lost Lo...

Page 271: ... 265 Ex Switch to suspend VB PwrMng Shutdown PwrMng EN_SHUTDOWN_MODE SUSPEND C PwrMng Shutdown PwrMng EN_SHUTDOWN_MODE SUSPEND ...

Page 272: ...Syntax VB Public Enum EN_SHUTDOWN_MODE C public enum EN_SHUTDOWN_MODE Members Member Name Description WARM Warm boot SUSPEND Suspend COLD_BOOT_REGINIT Cold boot with registry initialized COLD_BOOT_REGREMAIN Cold boot with registry saved SYSMODIFY Update OS COLD Cold boot Class Within BHTCL PwrMng class ...

Page 273: ...rectly from this class Fields None Properties Property Name Description StandbyTime Standby transition time AutoPowerOffBattery Auto power OFF time battery powered AutoPowerOffExt Auto power OFF time installed on CU CPUClock CPU clock Methods None Events None Enumeration None ...

Page 274: ...roperty Transition time in units of 100 msec Parameter values 0 to 255 Default value 10 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note If 0 is specified transition to the standby state will not take place Ex Prohibits transition to standby VB PwrMng Settings StandbyTime 0 C PwrMng Settings StandbyTime 0 ...

Page 275: ...ower off time in units of 1 sec Parameter values 0 to System Int32 MaxValue Default value 180 Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note If 0 is specified the system will not be turned OFF while powered by the battery Ex Prohibits transition to auto power off when powered by the battery VB PwrMng Settings AutoPowerOffBattery 0 C PwrMng Se...

Page 276: ... units of 1 sec Parameter values 0 to System Int32 MaxValue Default value 0 The system will not be turned OFF automatically Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note If 0 is specified the system will not be turned OFF while charging Ex Prohibits transition to auto power off when the BHT is installed on the CU VB PwrMng Settings AutoPower...

Page 277: ... get set Property CPU clock Parameter values As listed in EN_CPU_CLOCK Default value EN_CPU_CLOCK NORMAL Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Up to the CPU clock speed VB PwrMng Settings Clock PwrMng Settings EN_CPU_CLOCK FAST C PwrMng Settings Clock PwrMng Settings EN_CPU_CLOCK FAST ...

Page 278: ... 272 EN_CPU_CLOCK Specifies the CPU clock Syntax VB Public Enum EN_CPU_CLOCK C public enum EN_CPU_CLOCK Members Member Name Description NORMAL Normal FAST Fast Class BHTCL Pwrmng Settings ...

Page 279: ... 273 18 24 Icon Constructor None There is no need to create an instance because all the members are static members Fields None Properties None Methods None Events None Enumeration None ...

Page 280: ...e icon indicating standby transition state Wireless Enables disables display of the icon indicating that the BHT is in wireless communication mode SIP Enables disables display of the icon indicating that the system is in SIP input mode Alphabet Enables disables display of the icon indicating that the BHT is in alphabet entry mode Func Enables disables display of the icon indicating that the BHT is...

Page 281: ...d in EN_STATUS Default value EN_STATUS ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When enabled the icon will appear next time the keypad is put in shift mode or immediately if it is already in shift mode When disabled the icon will disappear immediately Ex Disables display of the shift status icon VB Icon Settings ShiftKey Icon Set...

Page 282: ...tic EN_STATUS Battery get set Property Display enabled disabled Parameter values As listed in EN_STATUS Default value EN_STATUS ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Disables display of the battery status icon VB Icon Settings Battery Icon Settings EN_STATUS DISABLE C Icon Settings Battery Icon Settings EN_STATUS DISABLE ...

Page 283: ...alues As listed in EN_STATUS Default value EN_STATUS ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When enabled the icon will appear the next time the CPU is put in standby state When disabled the icon will disappear immediately Ex Disables display of the standby transition status icon VB Icon Settings Standby Icon Settings EN_STATUS ...

Page 284: ...sted in EN_STATUS Default value EN_STATUS ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When enabled the icon will appear the next time the wireless device is opened or immediately if it is already open When disabled the icon will disappear immediately Ex Disables display of the wireless communication status icon VB Icon Settings Wire...

Page 285: ...S SIP get set Property Display enabled disabled Parameter values As listed in EN_STATUS Default value EN_STATUS DISABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Ex Disables display of the Software Input Panel icon VB Icon Settings SIP Icon Settings EN_STATUS DISABLE C Icon Settings SIP Icon Settings EN_STATUS DISABLE ...

Page 286: ...ault value EN_STATUS ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When enabled the icon will appear the next time the keypad is put in alphabet entry mode or immediately if it is already in alphabet entry mode When disabled the icon will disappear immediately Ex Disables display of the alphabet entry mode icon VB Icon Settings Alphab...

Page 287: ... Default value EN_STATUS ENABLE Exceptions Name of Exception Meaning ArgumentException The specified parameter value s is invalid Note When enabled the icon will appear the next time the keypad is put in function mode or immediately if it is already in function mode When disabled the icon will disappear immediately Ex Disables display of the function mode icon VB Icon Settings Func Icon Settings E...

Page 288: ...EN_STATUS Enables disables icon display Syntax VB Public Enum EN_STATUS C public enum EN_STATUS Members Member Name Description DISABLE Display is disabled ENABLE Display is enabled Class BHTCL Icon Settings ...

Page 289: ... 283 18 26 Display This function is not supported ...

Page 290: ... 284 18 27 Display Settings This function is not supported ...

Page 291: ... SysModification class Fields None Properties Property Name Description FileName OS reconfiguration filename Mode Reboot mode after turning the power OFF Methods Method Name Description Execute Execute OS updating Events None Enumeration Enumeration Name Description EN_MODE Reboot mode after turning the power OFF ...

Page 292: ...e of the SysModificaiton class Syntax VB Public Sub New C public SysModification Parameters None Exceptions None Ex Create the OS update instance VB Dim MySysMod As SysModification New SysModification C SysModification MySysMod new SysModification ...

Page 293: ...ons None Note Even if an invalid filename or a non existent file is specified no exceptions are immediately thrown An exception is thrown when the Execute method attempts to update modify the OS Ex Update the BHT400 system to the system with filename BHT400New zl VB MySysMod FileName SysModification BHT400New zl MySysMod Mode SysModification EN_MODE POWEROFF MySysMod Execute C MySysMod FileName Sy...

Page 294: ...y an invalid file name or a non existent file no exceptions will be thrown immediately An exception will be thrown when the Execute method attempts to update modify the OS Ex Update the BHT400 system to the system with filename BHT400New zl VB MySysMod FileName SysModification BHT400New zl MySysMod Mode SysModification EN_MODE POWEROFF MySysMod Execute C MySysMod FileName SysModification BHT400New...

Page 295: ...ot exist ArgumentException The specified file name is invalid The specified mode is invalid Note Before calling this method to update the OS it is necessary to restart the BHT using the PwrMng Shutdown EN_SHUTDOWN_MODE SYSMODIFY method Ex Update the BHT400 system to the system with filename BHT400New zl VB MySysMod FileName SysModification BHT400New zl MySysMod Mode SysModification EN_MODE POWEROF...

Page 296: ... 290 C MySysMod FileName SysModification BHT400New zl MySysMod Mode SysModification EN_MODE POWEROFF MySysMod Execute ...

Page 297: ...ode to be entered after updating the OS Syntax VB Public Enum EN_MODE C public enum EN_MODE Members Member Name Description POWEROFF Power OFF The system will be cold booted next time it is turned ON Class Within BHTCL SysModification class ...

Page 298: ...as occurred InBufferCount Size of data in the receive buffer OutBufferCount Size of data in the send buffer PortOpen Port number of the COM port to be used Port Open close of a COM port Params Communication parameter Methods Method Name Description Input Reads the contents of the receive buffer Output Writes into the send buffer Dispose Frees up all unmanaged resources Events Event Name Descriptio...

Page 299: ... new instance of the CommSerial class Syntax VB Public Sub New C public CommSerial Parameters None Exceptions None Ex Create a MyComm CommSerial instance VB Dim MyComm As CommSerial New CommSerial C CommSerial MyComm new CommSerial ...

Page 300: ... 294 DEFAULT_PORT Default value of the port number This value is read only Syntax VB Public ReadOnly DEFAULT_PORT As Integer C public readonly int DEFAULT_PORT ...

Page 301: ...t value EN_EVENT NONE Exceptions Name of Exception Meaning ObjectDisposedException COM has not been opened yet ArgumentException The specified parameter value s lies outside the permissible range Note The parameter value will always be EN_EVENT NONE while the port is closed Ex Set the BHT to wait for a receive event VB MyComm WaitEvent CommSerial EN_EVENT RECEIVE C MyComm WaitEvent CommSerial EN_E...

Page 302: ...EVENT SignaledEvent get Property Event to wait for Parameter values As listed in EN_EVENT Default value EN_EVENT NONE Exceptions None Note The parameter value will always be EN_EVENT NONE while the port is closed Ex Acquire the last event that occurred VB Dim CommSerial EN_EVENT CommEvent MyComm SignaledEvent C EN_EVENT CommEvent MyComm SignaledEvent ...

Page 303: ...has not been opened yet Note Each time a piece of data is read from the receive buffer using the Input method the size of meaningful data in the receive buffer decreases by the amount of the data just read out If the port is closed by specifying false for the PortOpen property the size of meaningful data is reset to 0 Ex Read out all data remaining in the receive buffer VB While MyComm InBufferCou...

Page 304: ...Exception Meaning ObjectDisposedException The COM port has not been opened yet Note Data can be stored in the send buffer out buffer using the Output method If the port is closed by specifying false for the PortOpen property the size of meaningful data is reset to 0 Ex Send the len byte data when there is no longer any data in the send buffer VB If MyComm OutBufferCount 0 Then MyComm Output buffer...

Page 305: ... status Open True Disabled False Default value False Exceptions Name of Exception Meaning DevNotFoundException No COM port exists ObjectDisposedException The COM port has not been opened i e The COM port is closed SecurityException The COM port has already been opened Ex Open the COM port VB MyComm PortOpen True C MyComm PortOpen true ...

Page 306: ...xception Meaning InvalidOperationException The COM port is already open Note If the value of this property is changed while COM port is open an exception will be thrown If a port number that does not exist is specified at in this property no exceptions will be thrown immediately however an exception will be thrown later when an attempt is made to open the specified port Ex Specify the connector in...

Page 307: ...C public string Params get set Property Character string representing the communication parameters Syntax BBBB P D S BBBB BaudRate bps 115200 57600 38400 19200 9600 4800 2400 1200 600 Connector interface 115200 57600 38400 19200 9600 IrDA P Parity N no parity bit D Data size bits 8 or 7 S Stop bit bit 1 or 2 Default value 9600 N 8 1 Connector interface 9600 N 8 1 IrDA ...

Page 308: ... has not been opened yet ArgumentException The specified parameter value s lies outside the permissible range Ex Specify a baud rate of 115200 bps set the parity to none the data length to 8 bits and the stop bit to 1 bit VB MyComm Params 115200 N 8 1 C MyComm Params 115200 N 8 1 ...

Page 309: ...ffer int offset int len Parameters buffer out Destination buffer offset in Offset from the beginning of the destination buffer indicating the start point of the read data len in Maximum length of the buffer to be read Return value Length size of the data that has been actually read out Exceptions Name of Exception Meaning ObjectDisposedException The COM port has not been opened yet ...

Page 310: ... Ex Read out all data remaining in the receive buffer VB While MyComm InBufferCount 0 len MyComm Input buffer 0 buffer Length End While C while MyComm InBufferCount 0 len MyComm Input buffer 0 buffer Length ...

Page 311: ...d Output byte buffer int offset int len Parameters buffer in Source buffer offset in Offset from the beginning of the source buffer indicating the start point of the data len in Maximum length of the buffer into which data is to be written Return value None Exceptions Name of Exception Meaning ObjectDisposedException The COM port has not been opened yet ...

Page 312: ...6 Ex Send the len byte data when there is no longer any data in the send buffer VB If MyComm OutBufferCount 0 Then MyComm Output buffer 0 len End If C if MyComm OutBufferCount 0 MyComm Output buffer 0 len ...

Page 313: ...ose C public void Dispose Parameters None Return value None Exceptions None Note This function must be called before instances of the CommSerial class are no longer referenced VB Private Sub Form1_Closed ByVal sender As Object ByVal e As System EventArgs Handles MyBase Closed MyComm Dispose End Sub C private void Form1_Closed object sender EventArgs e MyComm Dispose ...

Page 314: ...meter EventArgs e is always System EventArgs Empty To identify the type of the event that has occurred retrieve SignaledEvent Ex Read out the data when a receive event occurs VB Private Sub MyComm_OnDone ByVal sender As Object ByVal e As System EventArgs Handles MyComm OnDone MyComm Input ReadBuf 0 ReadBuf Length End Sub C private void MyComm_OnDone object sender EventArgs e MyComm Input ReadBuf 0...

Page 315: ... 309 EN_EVENT Specifies the event type Syntax VB Flags Public Enum EN_EVENT C Flags public enum EN_EVENT Members Member Name Description NONE None RECEIVE Receive Class Within CommSerial class ...

Page 316: ...tion rate Parity Parity scheme StopBits Stop bits Path Folder in which the send receive file is located TransferringEventInterval Event occurrence interval during transfer Status File transfer status FileCount File number of the file being transferred Methods Method Name Description AddFile Adds a file to be transferred ClearFile Clears the contents of the file that was added by AddFile Input Rece...

Page 317: ...ng has been completed OnTransferring Information on the file is stored during the transfer Enumeration Enumeration Name Description EN_BAUD Communication baud rate EN_PARITY Parity bit EN_STOPBITS Stop bit EN_STATUS File transfer status EN_RESULT Transfer processing result ...

Page 318: ...meters None Exceptions None Ex Create a FileTransfer class instance VB Dim MyFileTransfer As FileTransfer New FileTransfer C FileTransfer MyFileTransfer new FileTransfer DEFAULT_PORT Default value of the port number This value is read only Syntax VB Public ReadOnly DEFAULT_PORT As Integer C public readonly int DEFAULT_PORT ...

Page 319: ... the value of this property is changed while COM port is open an exception will be thrown The value specified for this property will be valid the next time a send or receive operation is performed If an invalid value is specified for this property no exceptions will be thrown immediately however an exception will be thrown later when an attempt is made to send or receive data Ex Create a FileTrans...

Page 320: ...S57600 BPS115200 IrDA communication Default value EN_BAUD RATE115200 Exceptions None Note The value specified for this property will be valid the next time a send or receive operation is performed If an invalid value is specified for this property no exceptions will be thrown immediately however an exception will be thrown later when an attempt is made to send or receive data Ex Set the transfer b...

Page 321: ...fault value EN_PARITY NOPARITY Exceptions None Note The value specified for this property will be valid the next time a send or receive operation is performed If an invalid value is specified for this property no exceptions will be thrown immediately however an exception will be thrown later when an attempt is made to send or receive data Ex Set the parity bit to none VB MyFileTransfer Parity File...

Page 322: ...fault value EN_STOPBITS ONEBIT Exceptions None Note The value specified for this property will be valid the next time a send or receive operation is performed If an invalid value is specified for this property no exceptions will be thrown immediately however an exception will be thrown later when an attempt is made to send or receive data Ex Set the stop bit to 1 bit VB MyFileTransfer StopBits Fil...

Page 323: ...s Name of Exception Meaning PathTooLongException The path name is too long Note The value specified for this property will be valid the next time a send or receive operation is performed If an invalid value is specified for this property no exceptions will be thrown immediately however an exception will be thrown later when an attempt is made to send or receive data Ex Set the file receipt destina...

Page 324: ...of 100 msec Parameter values 0 and above but less than System Int32 MaxValue Default value 0 0 No event will occur Exceptions None Note The value specified for this property will be valid the next time a send or receive operation is performed Ex Set the event occurrence interval to ensure that file transfer information can be acquired every second VB MyFileTransfer TransferringEventInterval 10 C M...

Page 325: ...US C public EN_STATUS Status get Property File transfer status Parameter values as listed in EN_STATUS Default value EN_STATUS READY Exceptions None Ex Acquire the file transfer status VB Dim Status As FileTransfer EN_STATUS MyFileTransfer Status C FileTransfer EN_STATUS Status MyFileTransfer Status ...

Page 326: ...ount As Integer C public int FileCount get Property File number A serial number starting with the first file transferred as file number 1 Default value 0 Exceptions None Ex Acquire the number of the file currently being sent VB Dim Number As Integer MyFileTransfer FileCount C int Number MyFileTransfer FileCount ...

Page 327: ...e file to be added This should not include the path Maximum length 90 characters Return value None Exceptions Name of Exception Meaning ArgumentException The length of the specified file name was zero 0 PathTooLongException The specified file name is too long Ex Add Mydoc txt to the file to be sent VB MyFileTransfer AddFile Mydoc txt C MyFileTransfer AddFile Mydoc txt ...

Page 328: ...ents of the file that was added by AddFile Syntax VB Public Sub ClearFile C public void ClearFile Parameters None Return value None Exceptions None Ex Clear the file to be sent VB MyFileTransfer ClearFile C MyFileTransfer ClearFile ...

Page 329: ... Parameters None Return value None Exceptions Name of Exception Meaning SecurityException The port has already opened by another application DeviceNotFoundException The COM port specified at Port does not exist Ex Receive a file VB MyFileTransfer Input C MyFileTransfer Input ...

Page 330: ...on Meaning SecurityException The port has already opened by another application DeviceNotFoundException The COM port specified at Port does not exist ArgumentNullException The file has not been added by AddFile PathTooLongException The path specified by Path is too long or the file name specified by AddFile is too long Ex Send a file VB MyFileTransfer Output C MyFileTransfer Output ...

Page 331: ...yntax VB Public Sub Abort C public void Abort Parameters None Return value None Exceptions None Note Execution of this method will result in an OnDone event after file transfer has been aborted Ex Interrupt file transfer VB MyFileTransfer Abort C MyFileTransfer Abort ...

Page 332: ...C public void Dispose Parameters None Return value None Exceptions None Note This function must be called before instances of the FileTransfer class are no longer referenced VB Private Sub Form1_Closed ByVal sender As Object ByVal e As System EventArgs Handles MyBase Closed MyTransfer Dispose End Sub C private void Form1_Closed object sender EventArgs e MyTransfer Dispose ...

Page 333: ...Result will be stored in Result the member of the second parameter TransferredEventArgs e Ex Display the event type that occurred each time a transfer event occurs VB Private Sub MyFileTransfer_OnDone ByVal sender As Object _ ByVal e As FileTransfer TransferredEventArgs _ Handles MyFileTransfer OnDone MessageBox Show e Result ToString End Sub C private void MyTransfer_OnDone object sender FileTran...

Page 334: ...ored in TransferringFileInfo the member of the second parameter TransferringEventArgs e Ex Acquire transfer data each time a transfer event occurs VB Private Sub MyFileTransfer_OnTransferring ByVal sender As Object _ ByVal e As FileTransfer TransferringEventArgs _ Handles MyFileTransfer OnTransferring Dim Name As String e FileName Dim Percent As Integer Convert ToInt32 e TransferredSize 100 e Tota...

Page 335: ...me Description BPS110 110 bps BPS300 300 bps BPS600 600 bps BPS1200 1200 bps BPS2400 2400 bps BPS4800 4800 bps BPS9600 9600 bps BPS14400 14400 bps BPS19200 19200 bps BPS38400 38400 bps BPS56000 56000 bps BPS57600 57600 bps BPS115200 115200 bps BPS128000 128000 bps BPS256000 256000 bps Class Within FileTransfer class ...

Page 336: ...EN_PARITY Specifies the parity scheme Syntax VB Public Enum EN_PARITY C public enum EN_PARITY Members Member Name Description NOPARITY No parity ODDPARITY Odd EVENPARITY Even Class Within FileTransfer class ...

Page 337: ... 331 EN_STOPBITS Specifies the stop bits Syntax VB Public Enum EN_STOPBITS C public enum EN_STOPBITS Members Member Name Description ONEBIT 1 bit TWOBITS 2 bit Class Within FileTransfer class ...

Page 338: ...32 EN_STATUS Specifies the file transfer status Syntax VB Public Enum EN_STATUS C public enum EN_STATUS Members Member Name Description READY Ready RECEIVE Receiving SEND Sending Class Within FileTransfer ...

Page 339: ...ion SUCCESS The file transfer was successfully completed TIMEOUT Timeout OPERATION_ ABORTED The operation was aborted OPEN_FAILED The file could not be opened INVALID_DATA Invalid data has been received DISK_FULL The disk storage was full and did not have enough space PATH_TOO_LONG The path length was too long Class Within FileTransfer class ...

Page 340: ... F9 F1 F12 ENT TAB SEND C SP ALP PW FUNC SCAN M1 M2 M4 H M3 H M5 F1 F2 F3 F4 W X S T A B C a b c D E F d e f G H I g h i J K L j k l M N O m n o P Q R S p q r s T U V t u v W X Y Z w x y z SP ENT TAB SEND C BS ALP PW FUNC SF SCAN M1 M2 M4 H M3 H M5 H 31 key arrangement 1 Numeric entry 2 Alphabet entry Normal status Status with SF pressed ...

Page 341: ...W z Func SF f j g h i k o l m n p t q r s u y v w x W S T X M5 H SCAN M1 M2 C BS 7 8 9 4 5 6 1 2 3 0 ENT M4 H M3 H F1 F5 F2 F3 F4 PW Func SF F6 F10 F7 F8 F9 F11 F12 TAB SEN W S T X M5 SCAN M1 M2 C SP ENT M4 H M3 H F1 F5 F2 F3 F4 PW Func SF F6 F10 F7 F8 F9 F11 F12 TAB SEN W S T X M5 50 key arrangement 1 Non function mode Normal status Status with SF pressed 2 Function mode ...

Page 342: ...8 D8 38 38 8 2D 7 D7 37 37 7 2B 6 D6 36 36 6 25 5 D5 35 35 5 2A 4 D4 34 34 4 2F 3 D3 33 33 3 23 2 D2 32 32 2 26 1 D1 31 31 1 24 0 D0 30 30 0 3A OemPeriod BE 2E 2C ENT Return 0D 0D 0D TAB Tab 09 09 09 SEND Send D3 D3 D3 C Clear 0C BS Back 08 08 20 ALP ALP D0 Func Func D2 SF ShiftKey 10 SCAN Scan 1 D1 1 1 1 M1 M1 1 C1 1 1 1 M2 M2 1 C2 1 1 1 M3 M3 1 C3 1 1 1 M3H M3H 1 C8 1 1 1 M4 M4 1 C4 1 1 1 M4H M4...

Page 343: ... 36 P Q R p q r 1 5 D5 35 M N O m n o 1 4 D4 34 J K L j k l 1 3 D3 33 G H I g h i 2 D2 32 D E F d e f 1 1 D1 31 A B C a b c 1 0 D0 30 1 OemPeriod BE SP 1 Return 2 0D 0D ENT PseudoReturn 3 87 87 Keys not listed in the above table are the same as when in numeric entry mode 1 Returns to 1 st time 2 Where there are no unestablished characters in the unestablished character display window 3 Where there...

Page 344: ...5 35 5 2A 4 D4 34 34 4 2F 3 D3 33 33 3 23 2 D2 32 32 2 26 1 D1 31 31 1 24 0 D0 30 30 0 3A OemPeriod BE 2E 2C A A 41 41 A 61 a B B 42 42 B 62 b C C 43 43 C 63 c D D 44 44 D 64 d E E 45 45 E 65 e F F 46 46 F 66 f G G 47 47 G 67 g H H 48 48 H 68 h I I 49 49 I 69 i J J 4A 4A J 6A j K K 4B 4B K 6B k L L 4C 4C L 6C l M M 4D 4D M 6D m N N 4E 4E N 6E n O O 4F 4F O 6F o P P 50 50 P 70 p Q Q 51 51 Q 71 q R ...

Page 345: ...M4H M4H 1 C9 1 1 1 M5 M5 1 C5 1 1 1 M5H M5H 1 CA 1 1 1 1 Virtual key codes and character codes will differ based on the key settings Please refer to B 3 Magic Keys Scan Key Virtual Key Codes and Character Codes for further details Table 2 4 50 key type virtual key codes and character codes function mode Normal Status With SF Key Pressed Virtual Key Code Virtual Key Code Key Location Constant Value...

Page 346: ... Q 51 51 Q 71 q R R 52 52 R 72 r S S 53 53 S 73 s T T 54 54 T 74 t U U 55 55 U 75 u V V 56 56 V 76 v W W 57 57 W 77 w X X 58 58 X 78 x Y Y 59 59 Y 79 y Z Z 5A 5A Z 7A z ENT Return 0D 0D 0D C Clear 0C 0C 0C BS Back 08 08 Space 20 20 Func Func D2 SF ShiftKey 10 SCAN Scan 1 D1 1 1 1 M1 M1 1 C1 1 1 1 M2 M2 1 C2 1 1 1 M3 M3 1 C3 1 1 1 M3H M3H 1 C8 1 1 1 M4 M4 1 C4 1 1 1 M4H M4H 1 C9 1 1 1 M5 M5 1 C5 1 ...

Page 347: ... 341 BHT 400 CE Class Library Reference Manual December 2005 First Release DENSO WAVE INCORPORATED Automatic Data Capture Division ...

Reviews: