Home › Forums › Knowledge Base › Hardware › Legacy Hardware › AMC Mag Stripe Reader Interface AMCMSR.EXE 1.01
- This topic has 0 replies, 1 voice, and was last updated 19 years ago by
Rob.
-
AuthorPosts
-
April 14, 2006 at 12:34 am #1459
Rob
MemberAMC Mag Stripe Reader Interface AMCMSR.EXE 1.01
Last edited: December 15, 2003 07:44 AM
AMCMSR is a TouchPro shell utility designed to communicate with the AMC Model 121 Magnetic Stripe Reader. In addition to reading track 1 and 2, and passing the data back to the application, AMCMSR draws a window providing instructions for the user and conveying the status of the swipe. Read errors are reduced by rereading the card on exit when the initial read is unsuccessful. The utility terminates upon reading a card, or detection of touch.
Syntax
AMCMSR {/COM=x}{/IRQ=y}{/DEBUG}
* /COM=Com Port – Default is 4. Required if port is other than default.
* /IRQ=Interrupt – Default is 4 for Com1 and Com3; 3 for Com2 and Com4. Required if interrupt is other than default.
* /DEBUG – Replaces normal video output with display of port reads, writes, and other debugging information. Can also be used for troubleshooting and testing readers.Styling
[img:2h103hzl]http://www.possupport.net/dealer/kbase/images/amcmsr.gif[/img:2h103hzl]
A batch file is typically used to run the executable. This allows the Com port and IRQ to be changed without requiring EditPro. The batch file is run from a shell configured as illustrated.
Here is a typical instruction chain to execute the shell and provide basic error handling.
CATMSR Instruction Chain
Index =9
Shell To: CATMSR
IF Index<7
Jump To ‘END’
END IFIF Index=7 ;No response from reader
Window = CATCMERR
Delay 4 seconds
END IF
IF Index=9 ;Shell Error
Window = CATSHERR
Delay 4 seconds
END IFClose 1 window
‘END’
The CATMSR chain would typically be called from a primary chain that might look like the following:
Window = SWIPE
Chain to CATMSR
If Index>0” title=”Grin” />ata not received
Stop – Ignore Rest!
End If
Close 1 window< rest of chain >
The remainder of the chain would then process the data as needed, passing a credit card swipe to TraPr, logging in an employee from an employee card, etc. The executable maintains a window showing the status in the upper middle of the screen, therefore the current page in TouchPro should leave that area blank.
Variable UsageThe following variables are returned to TouchPro upon termination of the shell.
Memo1 – Holds the first 40 characters of Track 1.
Memo2 – Holds the first 40 characters of Track 2.
Index – Holds the reason for termination.* 0 – Successful read.
* 2 – Touch detected or unsuccessful read.
* 7 – The reader is not communicating.
* 9 – Reserved for TouchPro use. Index can only be 9 if the shell failed to execute.Magnetic Stripe Reader
The Model 121 is an internal reader designed to be mounted in a kiosk. It comes with a 9 pin serial cable. A 9VDC transformer supplies power and connects to the reader through the serial connector. A light on the front indicates the reader’s current status.
Status Light
* Off – Standby state
* Green – Armed and ready to read card
* Red – Error state
* Flashing – Internal hardware error with readerTesting
Run AMCMSR at a DOS prompt with the /DEBUG switch. You will see the low level communication displayed on the screen. If the unit is communicating, you will see the green light turn on. Insert, then remove a card. The routine should terminate within a couple of seconds and you should see the swipe data displayed on the screen. If the reader fails, it should be swapped with another one to eliminate the possibility that the serial port is bad.
CablesJavelin MSR
RJ45 DB9 Male
2 — ornge — 2 RXD
3 — black — 3 TXD
5 — green — 5 GRD
8 — white — 8 DCD
Immage MSR
RJ45 DB9 Male
3 — black — 2 RXD
5 — green — 3 TXD
2 — ornge — 5 GRD
6 — yellow — 8 DCD
Liberty MSR
DB9 Fem DB9 Male
2 — ornge — 2 RXD
3 — black — 3 TXD
5 — green — 5 GRD
6 — white — 8 DCD
8 –|(jumper 6 & [color=black:2h103hzl]8[/color:2h103hzl])
HRand MSR
DB25Fem DB9 Male
3 — ornge — 2 RXD
2 — black — 3 TXD
7 — green — 5 GRD
5 — white — 8 DCD
6 –|(jumper 5,6 & [color=black:2h103hzl]8[/color:2h103hzl])
8 –|
Revisions
9/23/98
Initial Release
-
AuthorPosts
- You must be logged in to reply to this topic.