Ping2 udp recognition problem & Sonar Power Reconnect Method


I bought ping2 and am using it.

When the power is first applied, the udp of the ping is not recognized.

After turning on the power, reconnecting the power cable to the ping will recognize udp and send the value.
Afterwards, the value is transferred well, but after you power it down again, you must repeat the above action again.

  1. I want to know the root cause.
  2. If this doesn’t work, I want to turn on/off the power through the cord, relay, or circuit.
    I thought the best way was through the code, so I looked it up, but I couldn’t find it on the website of QgroundControl and

I also want to do sonar like turning the lamp on/off, but how do I output a digital signal instead of a pwm signal to produce a 5v signal?