yavi пишет:jrivera Hello
In general Wialon IPS protocol was developed for tracking devices. It means that every device opens the connection and works with it.
It's not very suitable for retranslation.
If device opens new connection it must send login packet. Otherwise server can't recognize this device and can't work with data from this device.
If device opens new connection the previous one must be broken by server (it shouldn't be 2 alive connection for 1 unit).
If connection is still alive you can send data in the same connection (for the same device, of course) without new login packet.
In our servers the timeout is usually 300 seconds. But it's not strict rules. You can change it on your server. Timeout means that we break the connection if there is no any data or ping packet in the connection with device. To send data once again device should open new connection.
If you don't have to use exactly IPS protocol, we suggest you to use Wialon Retranslator protocol. This protocol can use one connection to send data for many devices because it was developed for working between servers.
First of all, thank you very much for the answer and you have resolved several doubts, even so I have some questions and they are the following:
1. From what I understand, you tell me that if after 3 minutes there is no new information, I can break the connection of the device?
2. Are the 3 minutes you mention a rule for you? , that is, if that time is reached and the device does not have new information to transmit or has not received the ping from the server, does the device close the connection?
3.In the case of the Wialon Retranslator protocol, if I activate a repeater, does it send me the additional parameters of the device? and also send me the calculated parameters of the same?
4.Gurtam has an example of a program on github or elsewhere that decodes a packet (including parameters) from the Wialon retranslator protocol?
An apology if I asked many questions but I am really very interested in this topic since it is vital for the company where I work, we have about 2500 devices with Gurtam (Wialon) and I need the relay of messages of at least half of them.
Regards, Jonathan Rivera Díaz