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!

ISL error on ws5A

Status
Not open for further replies.

JCCR

IS-IT--Management
Mar 20, 2016
71
0
0
CO
Hello to all

I made an isl that communicates with a c# program and works well when clients are working on PCs, but on ws5A stations the error "No response to message" is generated, in these cases Micros cannot establish communication with the c# program. Could someone tell me how I can solve this problem?. Thank you very much
 
It's likely the IFS hostname isn't getting refreshed on the WS5a, maybe a wipe of the CF and re-setup?
 
Is the error coming up immediately or after a timeout?

Is your server application receiving the message from the workstation?

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
I reinstalled the WS5A and the problem was not corrected. When you try to connect to the server it pauses waiting for a response and the server never receives the communication and after some time the error comes out.
 
Is your c# program receiving the connection?

What's showing in the interface log?

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
the c# program does not get any connection from WS5.

This is error Message

Tue Nov 03 14:46:37 2020 | SERVER | MDSIFSAdapter | 0 | Client connected to server [Monstruo-PC][FACTURIZA] |
Tue Nov 03 14:46:37 2020 | SERVER | IFS | 0 | Interface [FACTURIZA] processing [auto-unregister] id [3] not registered [0] |
Tue Nov 03 14:46:37 2020 | SERVER | IFS | 0 | Interface [FACTURIZA] opened TCP session with [192.168.0.101.5009] [tx] |
Tue Nov 03 14:46:37 2020 | SERVER | IFS | 0 | Interface [FACTURIZA] sync. readfile |
Tue Nov 03 14:46:37 2020 | SERVER | IFS | 0 | Interface [FACTURIZA] lost session with [192.168.0.101][0][997] |
Tue Nov 03 14:47:06 2020 | WS5 | OPS | 0 | IFS error [IFS_RECEIVE_TIMEOUT] |
Tue Nov 03 14:47:07 2020 | SERVER | IFS | 0 | Interface [FACTURIZA] id [3] receive timeout |
Tue Nov 03 14:47:07 2020 | SERVER | IFS | 0 | Interface [FACTURIZA] receive failed for id [000000003] |
Tue Nov 03 14:47:07 2020 | SERVER | MDSIFSAdapter | 0 | IfsReceive COM Error [0x80004005] |
Tue Nov 03 14:47:07 2020 | SERVER | MDSIFSAdapter | 0 | Timeout waiting for interface [FACTURIZA] on server [Monstruo-PC] |
Tue Nov 03 14:47:07 2020 | SERVER | MDSIFSAdapter | 0 | IFS error [IFS_RECEIVE_TIMEOUT] |
Tue Nov 03 14:47:10 2020 | WS5 | OPS | 0 | Increasing posting record size from 0 to 50 |
Tue Nov 03 14:47:10 2020 | WS5 | OPS | 0 | Memory load increased from 33 to 34 |
Tue Nov 03 14:47:10 2020 | WS5 | OPS | 0 | OPS available memory was 999552 KB, now 999424 KB |
Tue Nov 03 14:47:10 2020 | WS5 | OPS | 0 | Physical memory available was 190752 KB, now 188880 KB |


Thnks
 
Based on those logs I think the problem is with your c#

Have you programmed it to allow multiple connections at the same time?

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
the c# program listens to multiple connections, it is written as follows


try
{

TcpListener listener = new TcpListener(IPAddress.Any, FixedData.port);

listener.Start();

try
{

while (true)
{
dataForMicros = string.Empty;

TcpClient tcpCliente = listener.AcceptTcpClient();

byte[] byteArray = new byte[1024];

string data = string.Empty;


NetworkStream networkStream = tcpCliente.GetStream();

int bytesRead;


while (data.IndexOf(EndOfTransmission) == -1 && (bytesRead = networkStream.Read(byteArray, 0, byteArray.Length)) != 0)
{
data += Encoding.ASCII.GetString(byteArray, 0, bytesRead);
}


int position = data.IndexOf(StartOfText, 0);
string keepAlive = StartOfHeader + " 0 " + StartOfText + EndOfText + EndOfTransmission;

if (position > 1)
{
if (data == keepAlive)
{

reply = Encoding.ASCII.GetBytes(data);
networkStream.Write(reply, 0, reply.Length);
}
else if (ValidateMessage(data))
{

string processResult = ProcessMessage();

dataForMicros = StartOfHeader + "000000001" + " MESSAGEFC" +
StartOfText + FieldSeparator + "03 " + processResult +
EndOfText + EndOfTransmission;

reply = Encoding.ASCII.GetBytes(dataForMicros);
networkStream.Write(reply, 0, reply.Length);
}
}

networkStream.Close();
}
}
catch (Exception ex)
{
FixedData.LogApi.Error("Error: Exception " +
" Message: " + ex.Message);
}
finally
{
listener.Stop();
}
}
 
You have hard coded 000000001 in the response. This should be the workstation number who sent the request.

If you supply the wrong number then the workstation never gets the response.

You take this number from the incoming request stream.

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
CathalMF

With the change you suggested it all worked. Thank you very much.
 
No problem.

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top