I'm developing onto Arduino and sometimes the USB port that is being used stops working. Then I need to plug the device into another USB port. Once all the USB ports stop working I have to restart the machine which is really annoying.
As far as I remember there is a command which is able to restart the USB subsystem individually but I can't remember. How can I restart USBs without restarting the entire system?
I'm using macOS Sierra.
This is different to the question Resetting the USB port on a MacBook Pro as I need software-only solution as my USB ports get frozen - which means they stop working until full system restart. There must be a way of restarting the USB subsystem individually.