Author Topic: Issue with the GenericTCPClient in the AdvancedHMI v3.99y Beta40 version.  (Read 992 times)

bachphi

  • Hero Member
  • *****
  • Posts: 674
    • View Profile
I am experiencing an issue with the GenericTCPClient in the AdvancedHMI v3.99y Beta40 version. The client is capable of sending data to a server (using the Hercules TCP server), but it only works when connected on the default port (23). When I attempt to change the port to any other value, the connection fails. However, if I manually modify the port within the GenericTCPClient.vb code file, it works as expected.

P.S There is still an issue with posting. I have to change the first sentence to use "I am" instead of "I'm" to avoid problems.
« Last Edit: November 14, 2024, 04:38:19 PM by bachphi »
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

bachphi

  • Hero Member
  • *****
  • Posts: 674
    • View Profile
I resolved the issue by uncommenting part of line 305.
However, I still do not fully understand the purpose of GTCDLL(MyDLLInstance).

       
Code: [Select]
If GTCDLL(MyDLLInstance) Is Nothing OrElse Not GTCDLL(MyDLLInstance).Connected Then
« Last Edit: November 14, 2024, 05:55:52 PM by bachphi »
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

bachphi

  • Hero Member
  • *****
  • Posts: 674
    • View Profile
My next issue is that I'm unable to send data from the server to the client.
The error occurs at line 452.

Code: [Select]
If m_ParsedTerminators = ReceivedPacketString.Substring(ReceivedPacketString.Length - m_ParsedTerminators.Length - 1, m_ParsedTerminators.Length) Then
At that point, the length of ReceivedPacketString is 0, which is expected since it's at the beginning of the call.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================