Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using ws4lx/ws5 magnetic card reader in asp.net

Status
Not open for further replies.

jd11111

Programmer
Apr 29, 2010
160
US
I'm developing an app that will look up an employee in the micros database by swiping their magnetic card on the terminal. This works great on a ws4, but on a ws4lx or ws5, the onscreen keyboard displays and will only accept input from this - it ignores the card reader.

Does anyone know how to do this? Perhaps a java script to disable the keyboard or code for getting input from the magnetic card?
 
Don't know about micros but with aloha - and the cisp compliancy all mag readers now use only opos drivers starting with version 6.4.
 
what's strange is that works fine on a workstation 4 terminal, just not the workstation 4lx or 5. All are running micros 4.7.
 
Hi,
have you done a confidence test to make sure the card readers are active? Then are you using the system VAR @magstatus?


//Mag Status system var
Input strCheckId{m2, *}, "Please Swipe Card, Or Cancel To Return"

If @MAGSTATUS = "N" Then
If @EMPLOPT[4] = 0 Then
Exitwitherror "Card Swipe Compulsory"
EndIf
EndIf



And further are you reading the tracks of the card like:
event inq : INQ_TEST
var MagCardTrack : A80
forever
if ReadTrack = 1
displaymsinput 1, 0, MagCard{m1, 1, 1, *}, " "
elseif ReadTrack = 2
displaymsinput 1, 0, MagCard{m2, 1, 1, *}, " "
elseif ReadTrack = 3
displaymsinput 1, 0, MagCard{m3, 1, 1, *}, " "
endif

endif

display 1, 2, "SWipe Card Discount."
windowinput

if @MAGSTATUS = "Y"
windowclose
break
endif
endfor

S
 
thanks...this will probably come in handy in the future. The thread is about using the mag reader in an asp.net application, not sim. The issue is not the card reader working, it's that the terminals have a built-in on screen keyboard that pops up and is the only input accepted when focused on a text box.
 
When testing mag card readers we would open Notepad and swipe the card : The OS sends the data to whatever is the Active application. The com port is #5. Sounds like a good challenge :) and micros is set to Stay-on-Top.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top