I am trying to hard wire a USB host to a slave, but i don't know if there is maybe a data line switch that would be there if I used a USB cable. I thought I might have to because I looked at some USB wiring and if a USB cable was wired so that the wiring stayed the same along a line:
+5v ------------------------- +5v
D+ ------------------------- D+
D- ------------------------- D-
GND ------------------------- GND
But then you put the USB ports in the same orientation beside each other the wiring is reversed:
+5v ----------------┐
D+ --------------┐ |
D- ------------┐ | |
GND ----------┐ | | |
GND ----------┘ | | |
D- ------------┘ | |
D+ --------------┘ |
+5v ----------------┘
So I wondered if maybe the lines were reversed in cables
I know with RX and TX lines on serial device that RX connects to TX and TX connects to RX, so that encouraged my wondering
I did some looking online and some places vaguely implied I might be right, but I wasn't sure.
So what do you think?