Unitech MR350MKII manual Device Configuration ESC, Barcode symbology Configuration ESC B

Page 63

The new communication control table takes effect immediately after the ESC C command has been successfully received. The MR350MKII will reinitialize the corresponding communication port with its new parameters. For example, if ESC C instructs the RS-232 port to change the baud rate from 9600 to 1200 the MR350MKII will switch to 1200 right after the ESC C command has been received. The next host communication will use 1200 baud.

3.Device Configuration ( ESC V )

The device configuration command has the following format: ESC V devtable

This command takes the data structure "devtable" from the host and writes it to the MR350MKII internal device control table. The structure of "devtable" must conform to the DEV_CONFIG typedef (see section 0 on page 2-14) specified in the previous section.

The new device control table takes effect immediately after the ESC V command has been successfully received.

4.Barcode symbology Configuration ( ESC B )

The barcode symbology configuration command has the following format: ESC V bartable

This command takes the data structure "bartable" from the host and writes it to the MR350MKII internal barcode symbology control table. The structure of "bartable" must conform to the BAR_CONFIG typedef (see section 0 on page 2-13) specified in the previous section.

The new device control table takes effect immediately after the ESC V command has been successfully received.

5.Date/Time Configuration ( ESC M )

The date/time configuration command has the following format: ESC M datetime

This command allows the host system to initialize the MR350MKII real time clock function. The parameter datetime is an ASCII character string with the following interpretations: yyyymmddhhmmss.

The first four characters represent the year. The next two characters represent the month, where January is 01. The fields after the month field represent the day of the month, hour (24 hour format), minute, and second, respectively.

4-62

Image 63
Contents September 2001 Programming Reference ManualIntroduction Table of Contents RS-485 port serial I/O using General Control Commands Error! Bookmark not defined Application Programming Interface System KernelDisplay Subsystem Keypad SubsystemReal time clock subsystem Point to point modeMulti-point mode Communication Subsystem? MS-KermitGET file name Download Program in Point-to-point modeBar code / Magnetic stripe / Proximity / ICC ? MS-KermitSEND file nameCOM1-4? Download Program in Multi-point modeMR350MKII Then, the screen will displaySet beepers volume Page Type Definition DevconfigData Structure Device Control TableBarcodeconfig Barcode Control TableType Definition Word ComconfigCommunication Control Table of Host port ByteTerminal Control Table available for host port only Page Page Set cursor type O Function CallsLCD Display INT 10H Clear screen1A Enable/disable LCD Backlight INT 21H Get cursor positionScroll screen 1C Select COM1 or COM2 as the host port Communication Environment SetupCTS/RTS Set host port protocol1C Set serial port flow control XON/XOFFHost Port for Multi-point Protocol I/O INT21H 1C Setup multi-point address1C Set polling timeout duration Set COM1 port as RS485 or modemRead host port Output dataCheck if Busy-port RS-232 port serial I/O using INT 34H Serial I/O for RS-232 and RS-485Input data Disable RS-232 port Set Communication parametersBIT # Page Set RTS signal of RS-232 port Read CTS signal of RS-232 portRS-485 port serial I/O using INT 33H Disable RS-485 port for serial I/O Enable RS-485 port for serial I/OInt860x33,s,s Open RS-485 multi-bus to send out data Close RS-485 multi-bus release RS-485 bus LOW Relay Output / Digit Input / Buzzer / LED IndicatorSet LED indicator ON/OFF Read Photo Coupler Level state INT 08H1A Buzzer On/Off Activate/Deactivate Relay ports INT 09HOpen Close1A Set buzzer volume Alarm On/OffGet Security state 21H Internal/ External reader Port INT 21H Enable/Disable External reader portCodabar Read Internal portEnable/disable Internal reader 1F Get Decoder status of Wiegand Format Proximity reader Miscellaneous INT 21H 1F Enable the decoding of a barcode symbology1A Check lithium battery level EAN/UPC1B Get Address ID of the terminal Set interrupt vectorGet interrupt vector 1E Change the Keyboard map Get free disk clusterAscii code vs. scan code cross reference table numeric mode Ascii code corresponded to scan code in Numeric modeAscii code corresponded to scan code in Alphabetic mode DOS ManagerWrite stdout Read stdaux COM2 RS-232 port Write stdaux COM2 RS-232 portRead / Write stdin or return 0 if none is ready Write character string to stdout Read stdin wait if no key2A Get System date 0A Keyboard buffer inputKeyhit check Date/Time2C Get System clock Set System date2D Set System clock File Manager3C Create or truncate file Close file 3D Open fileWrite file 3F Read fileMove file pointer Delete fileRename a file Get file attributeModify allocated block Free allocated memoryThis page is blank General Control Commands Host ESC CommandsDirectory ESC D Abort ESC aExecute ESC X filename Execute Flash ROM program ESC X/ROM filenameGet RAM size ESC G Autoboot ESC O program namePassword ESC P password Disable UPS battery ESC FConfiguration Commands Device Configuration ESC Barcode symbology Configuration ESC BDate/Time Configuration ESC M Multipoint Protocol File Transfer CommandsDownload ESC L filename Upload ESC U filenameSTX ESC L a . E X E CS1 CS2 Addr CMDCS1 CS2Host Transmissions Terminal TransmissionsProtocol Operation Commands ESC 0 Application dataSTX ESC ESC C Write communication configuration table to MR350MKII ESC 9 Send diagnostic test dataESC a Soft Reset, Restart, or Abort ESC B Enable/disable the decoding of barcode symbologiesESC E Erase a file from the MR350MKII directory ESC F Disable UPS battery to supply powerESC D Read directory of RAM disk to host ESC D/ROM Read directory of Flash ROM to hostESC J Check if file existed or not ESC H Hard Reset and initiate power on testESC G/ROM Get MR350MKIIs Flash ROM size ESC I Get filename of current executing programESC M Write date and time to MR350MKII ESC N Set Buzzer VolumeESC K Set keyboard locking ESC L Transfer file to MR350MKIIESC O/ROM Set auto-execution program on ROM ESC P Set supervisor password maxi charactersESC T Write terminal configuration table to MR350MKII ESC V Write device configuration table to MR350MKIIESC X Start program execution on ROM ESC Commands Added for MV1100 Fingerprint ModuleESC v Get Terminal ID and version no ESC X Start program executionSTX ESC $D CS1 CS2 Addr STX ESC $D Result CS1 CS2 ETXNAK Result ESC $F Enroll and Store Template on MR350 Mkii STX ESC $F Result QUALITY, Content CS1 CS2 ETX NAKESC $E Erase Template STX ESC $E Result CS1 CS2 ETX NAKESC $H Verify Template ESC $G Enroll and Store Template on MV1100ESC $L Download Template ESC $I Verify IDESC $S Get Globe Threshold ESC $S Set Globe ThresholdESC $V Get Version ESC $U Upload TemplatePage Programming MR350 Mkii How to programning ?Programming by C/C++ Programming by JobGen PROProgramming communication program Contains of the Demo Disk File Handling Buffer ManipulationCharacter Classification and Conversion Data ConversionMS-DOS Interface Memory AllocationPorcess Control exit Searching and Sorting String Manipulation