Unitech MR350MKII manual RS-485 port serial I/O using

Page 4

03

Enable RS-232 port

3-27

04

Disable RS-232 port

3-27

00

Set Communication parameters

3-27

05

Set RTS signal of RS-232 port

3-29

06

Read CTS signal of RS-232 port

3-29

RS-485 port serial I/O using

INT 33H

3-29

01

Input data

 

3-29

02

Output data

 

3-30

03

Enable RS-485 port for serial I/O

3-30

04

Disable RS-485 port for serial I/O

3-30

00

Set Communication parameters

3-31

05

Open RS-485 multi-bus to send out data

3-32

06

Close RS-485 multi-bus (release RS-485 bus)

3-33

3.5.

Relay Output / Digit Input / Buzzer / LED Indicator

3-34

Set LED indicator ON/OFF

INT 09H

3-34

Read Photo Coupler Level state

INT 08H

3-34

Activate/Deactivate Relay ports

INT 09H

3-35

1A

Buzzer On/Off INT 21H

3-35

1A

Set buzzer volume INT 21H

3-36

1B

Get Security state

INT 21H

3-36

1B

Alarm On/Off INT 21H

3-36

54

Buzzer volume control with user-defined frequency and time INT 21H

3-37

Buzzer volume control with predefined frequency and time INT 35H

3-37

3.6.

Internal/ External reader Port: INT 21H

3-38

51

Enable/Disable External reader port

3-38

18

Set external slot reader (only available for Barcode and Magnetic reader)

3-38

50

Read data from external reader(only available for Barcode and Magnetic reader)

3-39

52

Read Internal port

 

3-39

53

Enable/disable Internal reader

3-40

1F

Enable/Disable the Decoder of Wiegand Format (Proximity reader)

3-40

1F

Get Decoder status of Wiegand Format (Proximity reader)

3-41

1A

Assign barcode or magnetic stripe input of Internal reader

3-41

1F

Enable the decoding of a barcode symbology

3-42

3.7.

Miscellaneous: INT 21H

3-42

1A

Check lithium battery level

3-42

1B

Get Address ID of the terminal

3-43

25

Set interrupt vector

3-43

35

Get interrupt vector

3-43

36

Get free disk cluster

3-44

1A

Enable/disable system key-pressing commands: Warm start, Invoke user command menu,

Invoke supervisor mode

 

3-44

1E

Change the Keyboard map

3-44

3.8.

DOS Manager

 

3-46

01

Read stdin (wait if no key) and write it to stdout

3-46

02

Write stdout

 

3-46

03

Read stdaux (COM2 RS-232 port)

3-47

04

Write stdaux (COM2 RS-232 port)

3-47

06

Read / Write stdin or return 0 if none is ready

3-47

07

Read stdin (wait if no key)

3-48

08

Read stdin (wait if no key)

3-48

09

Write character string to stdout

3-48

0A

Keyboard buffer input

3-49

0B

Keyhit check

 

3-49

2A

Get System date

 

3-49

 

 

 

1-3

 

Image 4
Contents Programming Reference Manual September 2001Introduction Table of Contents RS-485 port serial I/O using General Control Commands Error! Bookmark not defined System Kernel Application Programming InterfaceKeypad Subsystem Display SubsystemPoint to point mode Multi-point modeCommunication Subsystem Real time clock subsystemDownload Program in Point-to-point mode Bar code / Magnetic stripe / Proximity / ICC? MS-KermitSEND file name ? MS-KermitGET file nameDownload Program in Multi-point mode COM1-4?Then, the screen will display MR350MKIISet beepers volume Page Devconfig Data StructureDevice Control Table Type DefinitionBarcode Control Table BarcodeconfigType Definition Comconfig Communication Control Table of Host portByte WordTerminal Control Table available for host port only Page Page O Function Calls LCD Display INT 10HClear screen Set cursor typeGet cursor position 1A Enable/disable LCD Backlight INT 21HScroll screen Communication Environment Setup 1C Select COM1 or COM2 as the host portSet host port protocol 1C Set serial port flow controlXON/XOFF CTS/RTS1C Setup multi-point address 1C Set polling timeout durationSet 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 Enable RS-485 port for serial I/O Disable 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 Relay Output / Digit Input / Buzzer / LED Indicator Set LED indicator ON/OFFRead Photo Coupler Level state INT 08H LOWActivate/Deactivate Relay ports INT 09H OpenClose 1A Buzzer On/OffAlarm On/Off 1A Set buzzer volumeGet Security state 21H Enable/Disable External reader port Internal/ External reader Port INT 21HRead Internal port CodabarEnable/disable Internal reader 1F Get Decoder status of Wiegand Format Proximity reader 1F Enable the decoding of a barcode symbology 1A Check lithium battery levelEAN/UPC Miscellaneous INT 21HSet interrupt vector 1B Get Address ID of the terminalGet interrupt vector Get free disk cluster 1E Change the Keyboard mapAscii code corresponded to scan code in Numeric mode Ascii code vs. scan code cross reference table 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 Read stdin wait if no key Write character string to stdout0A Keyboard buffer input Keyhit checkDate/Time 2A Get System dateSet System date 2C Get System clockFile Manager 2D Set System clock3C Create or truncate file 3D Open file Close file3F Read file Write fileDelete file Move file pointerGet file attribute Rename a fileFree allocated memory Modify allocated blockThis page is blank Host ESC Commands General Control CommandsAbort ESC a Execute ESC X filenameExecute Flash ROM program ESC X/ROM filename Directory ESC DAutoboot ESC O program name Password ESC P passwordDisable UPS battery ESC F Get RAM size ESC GConfiguration Commands Barcode symbology Configuration ESC B Device Configuration ESCDate/Time Configuration ESC M File Transfer Commands Download ESC L filenameUpload ESC U filename Multipoint ProtocolCMD CS1CS2 STX ESC L a . E X E CS1 CS2 AddrTerminal Transmissions Host TransmissionsProtocol Operation ESC 0 Application data CommandsSTX ESC ESC 9 Send diagnostic test data ESC a Soft Reset, Restart, or AbortESC B Enable/disable the decoding of barcode symbologies ESC C Write communication configuration table to MR350MKIIESC F Disable UPS battery to supply power ESC D Read directory of RAM disk to hostESC D/ROM Read directory of Flash ROM to host ESC E Erase a file from the MR350MKII directoryESC H Hard Reset and initiate power on test ESC G/ROM Get MR350MKIIs Flash ROM sizeESC I Get filename of current executing program ESC J Check if file existed or notESC N Set Buzzer Volume ESC K Set keyboard lockingESC L Transfer file to MR350MKII ESC M Write date and time to MR350MKIIESC P Set supervisor password maxi characters ESC T Write terminal configuration table to MR350MKIIESC V Write device configuration table to MR350MKII ESC O/ROM Set auto-execution program on ROMESC Commands Added for MV1100 Fingerprint Module ESC v Get Terminal ID and version noESC X Start program execution ESC X Start program execution on ROMSTX ESC $D Result CS1 CS2 ETX STX ESC $D CS1 CS2 AddrNAK Result STX ESC $F Result QUALITY, Content CS1 CS2 ETX NAK ESC $E Erase TemplateSTX ESC $E Result CS1 CS2 ETX NAK ESC $F Enroll and Store Template on MR350 MkiiESC $G Enroll and Store Template on MV1100 ESC $H Verify TemplateESC $I Verify ID ESC $L Download TemplateESC $S Set Globe Threshold ESC $S Get Globe ThresholdESC $U Upload Template ESC $V Get VersionPage How to programning ? Programming MR350 MkiiProgramming by JobGen PRO Programming by C/C++Programming communication program Contains of the Demo Disk Buffer Manipulation Character Classification and ConversionData Conversion File HandlingMemory Allocation Porcess Control exit Searching and SortingString Manipulation MS-DOS Interface