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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micros SIM Script install not getting picked up

Status
Not open for further replies.

stevem3

Programmer
Jan 12, 2012
4
0
0
US
Hi,
I have installed a simple script to CAL\Win32\Files\Micros\Res\Pos\Etc

called it pms1.isl and setup devices->interface with SIM interface checked.

I created a button on PAY Screen with:
Category: SIM/PMS Inquire
Interface: 1 PMS1 (this is what i called it)
Inquire: 1

Then restart the machine. When the machine starts I get pings from the micros host to my transaction server ok and i see a log file show up on the res/pos/etc folder

I click the button and instead of showing the windw i put in script i just get a screen that allows me to enter data and when i click ok it sends standard tx to my host. BUT the script is not running its supposed to show a screen, build a defined message and then transact?

Any help is much appreciated and if there is anyone out there who want to earn a few buck helping me i wold gladly pay.

Here is my script:
/////////////////////////////////////////////////////////////////
// EVENTS ///
/////////////////////////////////////////////////////////////////
// EVENT INQ : 1 - Collect data Transmit Message to Host ///
/////////////////////////////////////////////////////////////////

event inq : 1

var in_data : A8 = ""
var atmp : A1024

// Get inpput

window 2, 50, "TEST DATA COLLECTION"
display 2, 2, "Enter 8 characters:"
input in_data, " "

// Build the request message

format atmp as "<ISOMSG><MTI>1206</MTI> <TXCODE>001504</TXCODE>"
format atmp as atmp, "<STN>", @CKNUM, "</STN>"
format atmp as atmp, "<AMTTX>", @TNDTTL, "</AMTTX>"
format atmp as atmp, "<RIN>", in_data, "</RIN>"
format atmp as atmp, "<AUTHKEY></AUTHKEY></ISOMSG>"

// Send the message

txmsg atmp
getrxmsg "Communicating..."

//read the rxmsg
atmp = @rxmsg

if atmp = "_timeout" or atmp = "_Timeout"
errormessage "Request Timeout"
exitcancel
endif

window 12,50, "Result"

for dmi=0 to 11
if trim(mid(atmp, 40*dmi + 1, 40)) <> ""
display dmi+1, 1, mid(atmp, 40*dmi + 1, 40)
else
break
endif

endfor
waitforenter

endevent
 
Your problem is not the sim. It is the device configuration, what are the settings you have there?
 
So after writing this I kept debugging. One other tlsrange.tidbit was that ifbibput a script into the default root micros/Res/pos/etc folder I would get a windows access violation on starting the clien

So I removed all scripts from all locations and started over. Keepinf the ocb, tms, and pcd scripts as is in the scripts.folder then tried pms1 in the etc folder; crash! Removed pms1 and put pms2 in only and vioala it worked?

There is no pms1 anywhere on the machine? Anyway. Thanks for listening.

Next issue go tackle is to encipher the message. Based on what little I know about micros I think I need to use my own DLL

Any better suggestions are much appreciated. Thanks. Steve
 
UHHHG: This Access Violation is causing me headache. I really don;t understand from reading the manual it says to put the file in the %MICROSROOT%/Pos/Etc folder but when starting Res after putting it in there i get the access violation. i tried putting it under %MICROSROOT%/CAL/Win32/Files/Micros/Res/Pos/Etc but it never seams to get picked up there?

My Device Settings are>
Gen Tab>
num: 5
name: PMS5
Outgoing Message: PMS005
Timeout: 10
Network node: 99 Server
Number id digits: 9
log transaction : checked
sim interface : checked
interface type: TCP

Interface Tab>
Server: {the ip address}
tcp port: {the port}

i managed through trial and error to get one server working using pms2 settings but now trying another and running into this access violation.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top