3.6.Internal/ External reader Port: INT 21H

There are two readers can be connected to MR350 MKII --- Internal Reader and External Reader. Internal reader is a build-in reader, it is installed inside of MR350 MKII. External reader can be connected to either scanner port or terminal block. For internal reader, if it cannected with Magnetic stripe reader or Bar code slot reader, the system can automatically set up the Internal reader type by detecting the first time swiped card type. If the user use the default type, the Bar code slot reader. When he attempts to swipe the magnetic card through the slot reader, the terminal will detect it and change the slot reader type into Magnetic stripe reader automatically. However, this automatically discriminating reader type feature will not keep the first attempt data. The user must re-swipe again.

51 Enable/Disable External reader port

Entry Parameters:

AH = 0x51

 

 

AL = 1

;enable external port

 

0

;disable external port

Returned Values:

None

 

void TD_setexternal(int status)

{

regsh..ah = 0x51;

regsh..al = (unsigned char)status; int86(0x21,®s,®s);

}

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

Entry Parameters:

AH = 0x18

 

 

AL = 1

;define as Bar code slot reader

 

0

;define as Magnetic stripe reader

Returned Values:

None

 

void TD_set_external_type(int status)

{

regsh..ah = 0x18;

regsh..al = (unsigned char)status; int86(0x21,®s,®s);

}

3-38

Page 39
Image 39
Unitech MR350MKII manual Internal/ External reader Port INT 21H, Enable/Disable External reader port