I was more meaning an automated way. Its kind of hard to input the command if I can’t connect to the thing in order to input the command.
I’m trying to make some sense of the USB-C specifications in order to understand how two dual-role devices negotiate who becomes host and who becomes peripheral. Its looking to me like there are three possible configurations, and that they are determined by how the “CC” pins are configured;
Dual role: Hi-Z
Host: Pull UP
Device: Pull DOWN
So presumably, since these are both dual role devices, they would both be set for Hi-Z?
But I’m also seeing some indication that there may be some element of cable plug order, that when you connect two dual role devices together, the one that the cable is plugged into first becomes the host.
But I guess the thing is that there should be some way to set this up so that when a wire is plugged into the usb-c port, it always takes the peripheral role.