Tue Jan 25, 2022 8:50 am
What USB connection can do is entirely to active elements, built into such cable.
If one uses passive USB-A to USB-a cable (with data wires crossed), then this is not something supported by USB and standard drivers because it creates USB host to USB host connection while USB tree is supposed to have single USB host as "root" of that tree. If one uses custom drivers which can communicate and decide to make one of hosts act as plain USB device and expose RNDIS interface to the rest of USB stack, then it changes the game. But I guess this isn't solution to the question asked by OP (using USB port as a management port), ifplugging USB cable means that in ROS appears yet another network interface, it takes quite some configuration before management is possible (configuring IP address on it, possibly altering firewall and/or mac-server configuration) which is not possible to do via that connection before connection is done. USB to serial and WOOBM allow management out of the box unless one made some effort to disable it beforehand.
Sure there are USB to serial converters, exposing serial interface to USB stack. Because they contain USB to RS232 converter chip. If one wanted cable with two USB A connectors on both ends which would show as serial connection, then that cable would have to contain a (hypothetical) chip exposing serial interface over two separate USB interfaces having serial interfaces back-to-back connected ... which is exactly what is provided by a cludge with two USB-to-serial adapters connected with a serial cable. Since use case for serial over USB between two USB hosts is marginal (and already served by a cludge I mentioned), such a cable wouldn't be commercial success I guess ... but one can create one in DIY fashion.