Unitech MR350MKII manual Autoboot ESC O program name, Password ESC P password, Get RAM size ESC G

Page 61

6.Autoboot ( ESC O program name )

This command defines an autoboot program name in the MR350MKII. The autoboot program will be executed automatically each time the power is turned OFF and ON.

7.Password ( ESC P password )

To create or edit a supervisor password.

8.Get RAM size (ESC G)

Get the MR350MKII total RAM size, program execution memory, and free memory which available for RAM disc.

Get Flash ROM size (ESC G/ROM)

Get the MR350MKII total Flash ROM size and free memory which available for RAM disc.

9.Get filename of current executing program (ESC I filename)

While the <ESC I> command is received by MR350MKII, the system will response the current executing program name or no program is running.

10.Check file existed and files size(ESC J filename)

Check if the file is existed on MR350MKII or not. If file is exist, it will return its size

11.Set keyboard locking (ESC K state)

Set the MR350MKII ? keyboard locking state. There are three states allowed to be assigned: UNLOCK, LOCK, or PARTIAL LOCK.

12.Change terminal address ID (ESC 5 ID)

Assign a new terminal address ID to the terminal. Once the terminal address ID is changed, it will take effect immediately without having to reset the terminal.

13.Disable UPS battery (ESC F)

In general, UPS battery can supply power to MR350MKII when disconnect power adapter or power failure. User can use this command to disable UPS battery after power failure.

14.Loopback test (ESC 9)

The loopback test is used for testing the line communication. The testing program run on host sends this command with test data to terminal and terminal echoes back the data to be verified by the program.

4-60

Image 61
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 SubsystemMulti-point mode Point to point modeCommunication Subsystem Real time clock subsystemBar code / Magnetic stripe / Proximity / ICC Download Program in Point-to-point mode? MS-KermitSEND file name ? MS-KermitGET file nameCOM1-4? Download Program in Multi-point modeMR350MKII Then, the screen will displaySet beepers volume Page Data Structure DevconfigDevice Control Table Type DefinitionBarcode Control Table BarcodeconfigType Definition Communication Control Table of Host port ComconfigByte WordTerminal Control Table available for host port only Page Page LCD Display INT 10H O Function CallsClear screen Set cursor typeGet cursor position 1A Enable/disable LCD Backlight INT 21HScroll screen 1C Select COM1 or COM2 as the host port Communication Environment Setup1C Set serial port flow control Set host port protocolXON/XOFF CTS/RTS1C Set polling timeout duration 1C Setup multi-point addressSet COM1 port as RS485 or modem Host Port for Multi-point Protocol I/O INT21HOutput data Read host portCheck if Busy-port Serial I/O for RS-232 and RS-485 RS-232 port serial I/O using INT 34HInput data Set Communication parameters Disable RS-232 portBIT # Page Read CTS signal of RS-232 port Set RTS 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 Set LED indicator ON/OFF Relay Output / Digit Input / Buzzer / LED IndicatorRead Photo Coupler Level state INT 08H LOWOpen Activate/Deactivate Relay ports INT 09HClose 1A Buzzer On/OffAlarm On/Off 1A Set buzzer volumeGet 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 1A Check lithium battery level 1F Enable the decoding of a barcode symbologyEAN/UPC Miscellaneous INT 21HSet interrupt vector 1B Get Address ID of the terminalGet 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 modeDOS Manager Ascii code corresponded to scan code in Alphabetic modeWrite stdout Write stdaux COM2 RS-232 port Read stdaux COM2 RS-232 portRead / Write stdin or return 0 if none is ready Write character string to stdout Read stdin wait if no keyKeyhit check 0A Keyboard buffer inputDate/Time 2A Get System date2C Get System clock Set System dateFile Manager 2D Set System clock3C 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 memory This page is blank General Control Commands Host ESC CommandsExecute ESC X filename Abort ESC aExecute Flash ROM program ESC X/ROM filename Directory ESC DPassword ESC P password Autoboot ESC O program nameDisable UPS battery ESC F Get RAM size ESC GConfiguration Commands Barcode symbology Configuration ESC B Device Configuration ESCDate/Time Configuration ESC M Download ESC L filename File Transfer CommandsUpload ESC U filename Multipoint ProtocolCS1 CMDCS2 STX ESC L a . E X E CS1 CS2 AddrTerminal Transmissions Host TransmissionsProtocol Operation ESC 0 Application data CommandsSTX ESC ESC a Soft Reset, Restart, or Abort ESC 9 Send diagnostic test dataESC B Enable/disable the decoding of barcode symbologies ESC C Write communication configuration table to MR350MKIIESC D Read directory of RAM disk to host ESC F Disable UPS battery to supply powerESC D/ROM Read directory of Flash ROM to host ESC E Erase a file from the MR350MKII directoryESC G/ROM Get MR350MKIIs Flash ROM size ESC H Hard Reset and initiate power on testESC I Get filename of current executing program ESC J Check if file existed or notESC K Set keyboard locking ESC N Set Buzzer VolumeESC L Transfer file to MR350MKII ESC M Write date and time to MR350MKIIESC T Write terminal configuration table to MR350MKII ESC P Set supervisor password maxi charactersESC V Write device configuration table to MR350MKII ESC O/ROM Set auto-execution program on ROMESC v Get Terminal ID and version no ESC Commands Added for MV1100 Fingerprint ModuleESC X Start program execution ESC X Start program execution on ROMSTX ESC $D Result CS1 CS2 ETX STX ESC $D CS1 CS2 AddrNAK Result ESC $E Erase Template STX ESC $F Result QUALITY, Content CS1 CS2 ETX NAKSTX ESC $E Result CS1 CS2 ETX NAK ESC $F Enroll and Store Template on MR350 MkiiESC $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 Character Classification and Conversion Buffer ManipulationData Conversion File HandlingPorcess Control exit Searching and Sorting Memory AllocationString Manipulation MS-DOS Interface