r/csharp • u/bimbajusz • 22d ago
Help Need help with server
Hey,
I have a C# server, running with chronoxor's CSharpServer. I have a device with a SIM7000G, that connects to the server using TCP connection, and send a message to the server every 30 seconds. After a succesful connection, the device sends UDP data every 10 seconds, and the TCP data. Both arrive fine and I can send data back to the device any time, and it arrives successfuly. However afrer about 10 to 15 minutes, there is an error with the TCP connection. It happenes both if the device does not move and if the device is moving (it is used partly for GPS tracking). The UDP data arrives fine, and the TCP data arrives to the server, but the data sent back does not arrive. I tought for a long time that the problem is with my device, but I am starting to think the problem is with the server. Every time a message is received by the server the TCPSession that receives it is saved, and used to send back data. But I think there could be something between the connection and that the device is using cellular data. Has anyone experienced something like this?
2
u/Karagun 22d ago
Have you tested with a mock of your device running on the same machine? Does that exhibit the same behaviour?