Advertisement
penright

Untitled

Oct 3rd, 2023
1,390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 3.50 KB | None | 0 0
  1.    Sub FixIrisAuthServIni_SCADevice(ByVal pRegNum As Integer)
  2.         Dim pIrisAuthServIni As New PrivateIniFile("c:\iris\ini\IrisAuthSrvr.INI")
  3.         IO.File.Copy("c:\iris\ini\IrisAuthSrvr.ini", "c:\iris\reginfo\Reg" & pRegNum & "\ini\IrisAuthSrvr.ini", True)
  4.         IO.File.Copy("c:\iris\ini\HeartSIP.ini", "c:\iris\reginfo\Reg" & pRegNum & "\ini\HeartSIP.ini", True)
  5.         pIrisAuthServIni.SetFileName("c:\iris\reginfo\Reg" & pRegNum & "\ini\IrisAuthSrvr.ini")
  6.         pIrisAuthServIni.DeleteSection("SCADevice")
  7.         If PosMaint.RegisterInformation(pRegNum).CreditCardComPort = eComPort.None Then Exit Sub
  8.         pIrisAuthServIni.WriteString("SCADevice", "Device", "heartsip")
  9.         pIrisAuthServIni.WriteString("SCADevice", "Port", PosMaint.RegisterInformation(pRegNum).CreditCardComPort.ToString)
  10.         '*********************************************************************************************************
  11.         'To fix an issue with HeartSIP we moved the timeout from 60 to 33
  12.         '   33 seconds is 3 seconds more than the current device timeout.
  13.         'PE 12/18/2019
  14.         'PE 4/29/2020  Put the time back to 60 seconds.
  15.         'PE 7/12/2022  Put the time to 180 seconds per Xenial recommendation
  16.         '              Trying to fix a flaky Internet where the device timeout
  17.         '              keeps reseting. The device default currently is 45 seconds
  18.         '              This will let the device reset 4 times. (180/44 = 4.09)
  19.         'PE 03/29/23   Added the transactioncancltimeout, current time is 15
  20.         'PE 07/17/23   Added the RequestTimeout, set it to 20000
  21.         pIrisAuthServIni.WriteString("SCADevice", "RequestTimeout", "20000")
  22.         pIrisAuthServIni.WriteString("SCADevice", "Timeout", "180")
  23.         pIrisAuthServIni.WriteString("SCADevice", "transactioncanceltimeout", "15")
  24.         '*********************************************************************************************************
  25.         pIrisAuthServIni.WriteString("SCADevice", "ConvertRBA", "c:\Iris\Ini\HeartSIP.ini")
  26.         pIrisAuthServIni.WriteString("SCADevice", "TMS", "c:\Iris\Ini\HeartSIP.ini")
  27.         pIrisAuthServIni.WriteString("SCADevice", "CheckSAFResults", "1")
  28.         pIrisAuthServIni.WriteString("SCADevice", "CheckSAFResults", "1")
  29.         '*********************************************************************************************************
  30.         'PE 3/29/2023
  31.         'Added EnableOutOfSyncMessage, set to 0
  32.         pIrisAuthServIni.WriteString("SCADevice", "EnableOutOfSyncMessage", "0")
  33.         '*********************************************************************************************************
  34.         'PE 09/13/2022
  35.         'Added the report timeout (Default 5 changed to 30 seconds)
  36.         pIrisAuthServIni.WriteString("SCADevice", "ReportTimeout", "30000")
  37.         '*********************************************************************************************************
  38.         If PosMaint.RegisterInformation(pRegNum).IsDrive Then
  39.             pIrisAuthServIni.WriteString("SCADevice", "ParmManual", "1")
  40.             pIrisAuthServIni.WriteString("SCADevice", "SwipeAnyTime", "1") 'PE 6/27/22 set the switch to on to test issues with drive
  41.         Else
  42.             pIrisAuthServIni.WriteString("SCADevice", "ParmManual", "0")
  43.             pIrisAuthServIni.WriteString("SCADevice", "SwipeAnyTime", "1")
  44.         End If
  45.         'Rem out till Xpient gets this wroking.
  46.         'pIrisAuthServIni.WriteString("SCADevice", "VersionFileName", "C:\IRIS\Data\DeviceData\HeartSIP\HeartSIP_xsHeartSIP.ini")
  47.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement