Pinging a Sonar with Python

Hi,

We have a scanning sonar. we are using rs232 to ethernet with it. It’s IP is 192.168.2.7, local port:7108, comport:20.

If I send the sonar a properly formatted 27 byte command (0xFE 0x44 …) it will ping,
and then send back a packet of data, 265 or 513 bytes.

But when I ping it is not working, but I can see the ping’s results are successful.

How can I ping it properly?

Hi @ugurdemirezen, can you provide a bit more context for this?

Given you’re using RS232, I assume that means you’re using a different scanning sonar to our Ping360?

How can you “see the … results are successful”, but “it is not working”? I’m not sure what you mean by this.

Without more information on the device you’re using, how you’re trying to communicate with it, and how it’s supposed to communicate, we don’t have enough information to help you.