I am trying to get information on how to reset the USB port on a MacBook Pro using terminal's command line. I use the USB port to access a network device via a serial port with an ioread GUC232A to conduct automation. When the script is done, I have to physically disconnect and re-connect the USB<->Serial adapter in order to free the MacBook USB port for a subsequent automation run. As you can see, this is not workable.
I've looked at the following solution but it does not work very reliably and frankly, I'm not too keen on unloading and reloading drivers.
sudo kextunload IOUSBMassStorageClass.kext
sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext
I could use a single port terminal server from Lantronix to access the terminal server via SSH, which is in turn connected via RS232 - But this solution is not on the table at this point.
Any suggestions on a USB to Ethernet Terminal server, where the USB port will act as a console to access the networking device would be appreciated.