Power Cycle the USB Ports?

Hi!

I have a USB modem which I’m using to connect my Jetson Orin Nano to a 4G network. Unfortunately, it has a quirk: on power up, it does not work (or appear in lsusb) until I physically unplug and replug it.

I need a software way to “simulate” unplugging and replugging the modem. Is there a way to electrically power off then power on the USB ports via software? The point is, I don’t have physical access to the USB ports for my use case. Open to suggestions.

Thanks!

-Wes

Hi,
You may try
Power down USB ports - #4 by vsaw

Or
GitHub - obraun-sl/usb_power_cycle: Simple tool to perform a USB power cycle on Jetson Nano/NX devkit