power-cycling USB modem remotely

Stuart Kendrick <[email protected]> Sun, 4 Dec 2022 12:16:19 +0000
Newsgroups gmane.comp.mobile.kannel.user
Message-ID <IA1PR12MB6356960A0A324F658AD2AD27C3199@IA1PR12MB6356.namprd12.prod.outlook.com>
Anyone know how to cut power to a USB device remotely?

Sometimes, after a reboot, not only does Kannel not load, but the modem does not respond to 'ATE1' sent from minicom

root@linux:~# minicom


Welcome to minicom 2.8

OPTIONS: I18n
Port /dev/modem

Press CTRL-A Z for help on special keys
<! I type ATE1 here, but nothing happens >


I can visit the server, unplug the modem's USB cable, plug it back in, and the modem then responds just fine

But I would prefer a way to do this remotely

Ubuntu 22.04

--sk