The role of the 4 wires of the usb connector
The USB data cable has a total of four pins, two of which are connected to the data, and the other two are charged power lines including ground.
1. The role of the red line: the positive pole of the power supply (the marking on the wiring is: +5V or VCC)
2, the role of the white line: negative voltage data line (identified as: Data- or USB Port -)
3. The role of the green line: positive voltage data line (identified as: Data+ or USB Port +)
4, the role of the black line: ground (identified as: GND)