开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Remote turn on and off


 

Hi,
?
Since the radio has a WFView server support I'm thinking of giving it away to a local ham club for remote use.
However, there is a problem to solve: when it (inevitability) crashes, or when power goes off or something like that, we need to interact with the power button. Any suggestions on how to do this?
Just soldering some wires and send the input with like an rpi or something? Not sure what to do. Any suggestions?
?
73,
Rui, CT7ALW.


 

On Thu, Jan 30, 2025 at 12:56 PM, Rui "CT7ALW" Oliveira wrote:
we need to interact with the power button
RPi + servo motor (:
?
73!
?


 

Ha-ha ;-)
Seriously, how about connnecting two cables to Power buttons PCB connections and simulate a push of the button from a relay controlled by a Pi...?!
?
73 de SA5QED David


 

A couple thoughts:
?
You probably need to open the radio and solder components to the switch. You could 3d-print a structure to clamp onto the radio, with a solenoid and 3d-printed plunger to push the power switch, but that seems really kludgy (and difficult) to me. Soldering stuff inside the radio is probably better if you're okay with doing that.
?
The controller is completely your choice, but I'm more comfortable with an Arduino vs a Raspberry Pi for most device-control. Hibernation-mode on the ESP-32 is 5 ?Amps (1 ?Amp = 1 millionth of an Amp, or 1,000th of a milliamp). But I don't think you care about the power-budget, so that's irrelevant. Used to be that RPi s were faster, but it seems the smallest ones are actually a little slower than an ESP-32, but you don't care about speed. Used to be that RPi s were bigger, but I just looked up size and you can get either device as just a surface-mount chip, or very tiny dev board now. Used to be that RPi didn't have wireless, but now it can. So it's a toss-up. I'm still going to give the nod to the ESP-32, however, since it's a simpler processor that is usually used for device-control, so has easy tools to do that specifically.
?
However, you don't really need a controller. Use a BJT transistor / MOSFET / MESFET (or even the newer tiny relays), plus a capacitor, and you can make a simple circuit that will automatically connect the power button leads when power is restored. For a reboot (vs utility power-failure), you could put a simple and cheap internet-connected smart-switch on the mains plug, then turn it off and back on, with the circuit then "pushing the power button" for five seconds as soon as it gets power. This seems much less overkill than a RPi/ESP-32 and probable a lot more reliable.



 

It would be nice if this were an option in the firmware. Perhaps a patch could be hacked together. Or submit it as a (never to be implemented) suggestion to Xiegu.


 

Hi Oleg. Thanks for all you do! It's amazing!
RPi + servo motor (:
I assume by this that you mean that there is no firmware option (in your firmware, nor the radio itself) to select whether the radio automatically powers-up when it gets AC power (vs needing to press the power button).

W1NTL


 

Hi Rui,
?
Here's another option for remote control (but doesn't solve the power-on issue)
?
?
Em W1NTL


 

Seems, with external power main board should not be turned off. It can reset base board with gpio and restart wfserver/gui application with some scripts. So, if you use UPS, for example, and ethernet/wifi connection to the x6100 - you can recover in some situations. Not 100% reliable solution, but no need to solder something inside or use servo motors.
--
Georgy // R2RFE