Hi there,
I have a Window based thirdy party supervisor system which connects to several devices via Ethernet, each device having their specific IP : Port address ( configured on a config text file ). Concerning the supervisor, we don't have neither technical support nor the source code, so it's like a 'black box'.
Everything works fine, the physical presence of devices is detected by PING and their contents is read by TCP, so far so good.
But, found a cheap solution on which each device now communicate via serial protocol on RS-232;
I was able to implement a software gateway in Java Maven to convert incomming Serial values from each Serial device into values toward the supervisor, each one via distinct TCP port.
However, I'm having trouble to emulate the PING, since instead of each device having their own IP, all them are on the same localhost ( 127.0.0.1 ), therefore I should configure on the config text file all their IP with the same value.
I was considering using the Windows shell command route or netsh, but both seems not fitting the need for specific reasons.
Does someone have some insight on how to programmaticaly emulate the PING command ?
I have a Window based thirdy party supervisor system which connects to several devices via Ethernet, each device having their specific IP : Port address ( configured on a config text file ). Concerning the supervisor, we don't have neither technical support nor the source code, so it's like a 'black box'.
Everything works fine, the physical presence of devices is detected by PING and their contents is read by TCP, so far so good.
But, found a cheap solution on which each device now communicate via serial protocol on RS-232;
I was able to implement a software gateway in Java Maven to convert incomming Serial values from each Serial device into values toward the supervisor, each one via distinct TCP port.
However, I'm having trouble to emulate the PING, since instead of each device having their own IP, all them are on the same localhost ( 127.0.0.1 ), therefore I should configure on the config text file all their IP with the same value.
I was considering using the Windows shell command route or netsh, but both seems not fitting the need for specific reasons.
Does someone have some insight on how to programmaticaly emulate the PING command ?