bluerobotics / companion

Companion computer startup scripts and examples
https://www.ardusub.com/operators-manual/companion-web.html
GNU General Public License v3.0
48 stars 54 forks source link

ping360 ethernet support #420

Open jaxxzer opened 3 years ago

jaxxzer commented 3 years ago

Reports that ping360 is not automatically connecting with companion when connected by ethernet. investigate.

patrickelectric commented 3 years ago

If Ping360 is configured with ethernet connection internally, it should work with a normal router or a switch.

What can happen is that Ping-Viewer detects Ping360 through a switch and shows a “yellow circle” in Ping-Viewer saying that something may be wrong, and if you hover the mouse over it a message you inform that the network subnet is not compatible: image

It should be fixed if the user enables the DHCP server on companion or configure Ping360 to a static IP address before connecting. What we could do is to broadcast a setStaticIPAddress message but this may brake any case where multiple sonars/compatible sensors are in the network.

patrickelectric commented 3 years ago

But you'll see Ping-Viewer detecting the sonar, no matter what. If Ping-Viewer does not detect it, it's probably a hardware issue.

dgudiel commented 3 years ago

I tested the Ping360 connection with companion in DHCP Server mode and I got the following result: image

So even with companion in DHCP server mode the device wasn't configured with a correct IP address on a compatible subnet. I attempted to set a static address by clicking the gear icon but the settings would not save after multiple attempts.