GauVeldt wrote: The problem is the antenna goes down a lot.
I wander why
And what make model this usb antenna , what OS it is running on ..
What the system reports when this happens.
Any way sound like you are all ready working towards some sort of unconventional sloution !
just quits. lsusb no longer can see the device. my guess is the onboard controller is flakey and crash.
nothing short of cutting power to it gets it working again.
warmboot does not fix the antenna still won't show in devices
pull the usb cord then reboot could fix but that needs a human present.
what I want to duplicate with the Pi is this procedure that always works:
1. hold power button in for 3 sec. (shuts off PC)
3. wait 10 sec.
4. push power button momentarily. (turns on PC)
Steps 1,2,4,5 involve some way of duplicating in circuitry interfaced to the GPIO the function of the PC power pushbutton.
A relay could do it but maybe a transistor or two can do the same job solid state?
If I connect one of the non-standby 5V lines off the PC to act as a signal (it could be optocoupled to a 3.3VCC line and then fed to a GPIO line as input) I can also add as an additional feature the ability for the Pi to detect if the PC is on and catch something like a power outage having turned the PC off (old mobo with no manual on how to enable autostart) and perfrom steps 4+5 to turn the PC back on.
Edit: My thoughts on unconventional would be duct taping or epoxying the usb plug onto a solendoid/spring to plug and unplug it with the Pi then issue a reboot command to the PC but of course that requires opening a 24/7/365 SSH hole in IPFire