Of the four pins on the usb I know the power and the ground pins are used to supply power to a USB device. But the other two pins D+ and D- what exactly do they do? whats their function? I think these pins transfer signals to and from the usb device to the computer and vice-versa.
An Electronics StackExchange answer says the two pins refer to differentially encoded transmission scheme that USB uses. What is differentially encoded transmission scheme?
And how does a computer software use these pins to communicate with with the usb device?