Open agomezlucena opened 3 years ago
Hey
What kind of connection are you using? What does the Exception message say?
I use TcpClient class to connect to my meter and the message of the exception is the stacktrace that I passed before. Sorry for my english, but it isn't my mother language.
Yeah, I mean you should get a different message in the Message property of the IOException different than the stack trace.
No se puede escribir datos de en la conexión de transporte: Se produjo un error durante el intento de conexión ya que la parte conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conexión establecida ya que el host conectado no ha podido responder. I believe is a timeout but i don't sure, if that the cause of the exception
Yes, it could not connect to the remote endpoint. So is the IP Address correct? Are you using a host name instead? Is the remote endpoint under a firewall?
I connect to that meter using a vpn, the meter don't have any firewall, i can make ping to the metter from cmd, its has about a second of delay more o less ¿maybe can be something like packet corruption? ¿or just it's a timeout for the speed of the connection?
I would recommend you trying to connect to that ip address and port using other tools such as telnet.
i can connect without any problem using powerwatt. a part of that, i read the packets using wireshark, I see that a send a token when i create the conection, but when the metter make a response, it's reponse without any data, and also i modified timeouts, but that is not the problem.
I would suggest removing the line 142 a "Master.cs" where it says "this.RequestLink()" and would tell you to check the order of the parameters used in Master. Could you check that the same packets are sent by both "powerwatt" and the app?
Any update on this issue?
nope.
Hi i'm trying to start a session when I connect, and always throw an IOException when trying to read the message packet i reicive, this is the stack trace: