- 61. Introduction1.1. How to download data from scannerThe major difference between the HT660/PA96x/PA982 and a standard HPC/PalmPC isbarcode input capability. The WinCE Reference Manual contains no information regardingbarcode input. This section will introduce the programming structure of the barcode sub-system and the programming utility library for the HT660/PA96x/PA982. Inside theHT660/PA96x/PA982 there is an advanced decoding chip to control SE900 laser engine andto handle barcode decoding. Below is system diagram for the HT660/PA96x/PA982barcode:According to the above diagram, the HT660/PA96x/PA982 communicates with DecoderChip by mean of serial port COM2. Its communication parameter is fixed on 38400,N,8.1.Normally, the Decoder Chip is in sleep mode when COM2 is not activated. When COM2 isactivated, the Decoder Chip will start working, and it will decode the barcode “signal” fromthe laser engine when the trigger key is pressed. After decoding, barcode data and itssymbology type will be sent directly to HT660/PA96x/PA982.Many programmers find it difficult to control the Decoder Chip via programming languagealone, especially if they are not familiar with barcode and serial port controls. Because ofthis, Unitech provides the following utility library and program for the user or applicationprogrammer to control the Decoder Chip:1. Application program “Scan2Key.exe” is a useful application program that can readinput data from the laser scanner and then directly input the data intoHT660/PA96x/PA982’s keyboard buffer. “Scan2Key.exe” makes barcode data inputsimple, and can be especially valuable to those programmers not familiar with COMport programming. User program simply reads the barcode data from the keyboard. Forbarcode symbologies setting, you can run Scanner Setting from Control Panel todefine all of supporting symbologies and delimiter.2. Utility library:For programming control, HT660/PA96x/PA982 provide USI.DLL to let user controlscanner input, symbologies setting and profile controlling. Please refer to 2 for detailAPI lists.USI.DLL is Unitech’s new scanner function library on HT660/PA96x/PA982. Forbackward compatible issue, Unitech still provide Scanner3.DLL and ScanKey3.DLL forexisting PT930/PT930SA user to port their software into HT660/PA96x/PA982, butseveral APIs on Scanner3.DLL and ScanKey3.DLL have already been removed onHT660/PA96x/PA982. User can refer to 0and 5 for detail supporting API.CPUCOM2AdvancedDecoderChipLaserEngine