Author Topic: USB D+ D- identification  (Read 6619 times)

0 Members and 1 Guest are viewing this topic.

Online electr_peterTopic starter

  • Supporter
  • ****
  • Posts: 1309
  • Country: lt
USB D+ D- identification
« on: April 27, 2015, 10:00:05 pm »
Hi,

I have laptop with weird USB connector and I plan to add standard connector. I presume USB port functions well, but I do not know exact pin out. 5V and GND is known.
Is there a way to discriminate between D+ and D- pins just by checking voltages? Or is it a question of functional test?
 

Online wraper

  • Supporter
  • ****
  • Posts: 16902
  • Country: lv
Re: USB D+ D- identification
« Reply #1 on: April 27, 2015, 10:18:58 pm »
Hi,

I have laptop with weird USB connector and I plan to add standard connector.
What is weird in it? Why would you want to add "standard" connector. Are you sure that it is USB at all?
 

Online wraper

  • Supporter
  • ****
  • Posts: 16902
  • Country: lv
Re: USB D+ D- identification
« Reply #2 on: April 27, 2015, 10:32:06 pm »
As a guess, "weird USB" could be 4 pin IEEE 1394 (firewire) considering the same pin count.
http://en.wikipedia.org/wiki/IEEE_1394
« Last Edit: April 27, 2015, 10:38:24 pm by wraper »
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: USB D+ D- identification
« Reply #3 on: April 28, 2015, 12:06:25 am »
--- or HDMI / DisplayPort ?
Don't ask a question if you aren't willing to listen to the answer.
 

Online electr_peterTopic starter

  • Supporter
  • ****
  • Posts: 1309
  • Country: lt
Re: USB D+ D- identification
« Reply #4 on: April 28, 2015, 07:55:54 am »
USB connection is on the LCD display of ThinkPad X2x series. It is definitely USB (manual and available adapters (cameras, mics) confirms it. There also was simple USB adapter for these devices). Official name is "ThinkPad UltraPort".
« Last Edit: April 28, 2015, 08:10:51 am by electr_peter »
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: USB D+ D- identification
« Reply #5 on: April 28, 2015, 07:57:42 am »
My X220T has USB & USB 2.0 - and a mini-displayport connector...
Don't ask a question if you aren't willing to listen to the answer.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: USB D+ D- identification
« Reply #6 on: April 28, 2015, 08:28:27 am »
If you can plug a usb device in, and it works, then it could be a powered esata port.

wait what? rethink that statement :)
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5139
  • Country: nl
Re: USB D+ D- identification
« Reply #7 on: April 28, 2015, 08:47:33 am »
Keyboard error: Press F1 to continue.
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2320
  • Country: au
Re: USB D+ D- identification
« Reply #8 on: April 28, 2015, 01:07:13 pm »
People, the OP is asking how to disambiguate between D- and D+. If you've got two wires in your hand, D+ and D-, and you don't know which one's which, how do you figure it out?

I think the easiest way is to just try plugging a device in. I'm pretty sure it's safe to do because it's a differential line, so the 1's and 0's will be backwards, no risk of bad things happening (like if you were to get the power and ground backwards).
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5139
  • Country: nl
Re: USB D+ D- identification
« Reply #9 on: April 28, 2015, 01:12:09 pm »
People, the OP is asking how to disambiguate between D- and D+.

I know, but he's trying to figure this out for an Ultraport. The link I posted shows the connections:

Keyboard error: Press F1 to continue.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: USB D+ D- identification
« Reply #10 on: April 28, 2015, 03:01:31 pm »
If you can plug a usb device in, and it works, then it could be a powered esata port.

wait what? rethink that statement :)

Powered esata is literally a combination of USB2.0 and ESATA. The center is a plastic USB connector, and the perimeter pins are for ESATA.

wtf



Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6193
  • Country: us
Re: USB D+ D- identification
« Reply #11 on: April 28, 2015, 03:42:33 pm »
If you can plug a usb device in, and it works, then it could be a powered esata port.

wait what? rethink that statement :)

Powered esata is literally a combination of USB2.0 and ESATA. The center is a plastic USB connector, and the perimeter pins are for ESATA.

wtf


http://en.wikipedia.org/wiki/ESATAp
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2616
  • Country: 00
    • My random blog.
Re: USB D+ D- identification
« Reply #12 on: April 28, 2015, 04:07:50 pm »
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Online electr_peterTopic starter

  • Supporter
  • ****
  • Posts: 1309
  • Country: lt
Re: USB D+ D- identification
« Reply #13 on: April 28, 2015, 04:21:37 pm »
Thanks for replies, linked schematic seems to match pinout.

As for D+ and D- differentiation on host side, it looks impossible to do just by electronic characteristics. Device pulls one of the lines high/low to indicate speed, host just presents differential line.
 

Offline Lukas

  • Frequent Contributor
  • **
  • Posts: 412
  • Country: de
    • carrotIndustries.net
Re: USB D+ D- identification
« Reply #14 on: April 28, 2015, 08:48:47 pm »
I'm wondering why USB isn't capable of swapping D+/D- when necessary, would make PCB layout easier. Newer serial interfaces like PCIe automatically handle polarity inversion.
 

Offline rs20

  • Super Contributor
  • ***
  • Posts: 2320
  • Country: au
Re: USB D+ D- identification
« Reply #15 on: April 29, 2015, 01:21:16 am »
I'm wondering why USB isn't capable of swapping D+/D- when necessary, would make PCB layout easier. Newer serial interfaces like PCIe automatically handle polarity inversion.

PCIe also handles crazy stuff like deskewing between different pairs, etc. So once you've got all that processing and buffering in place, adding a not gate is clearly not that difficult comparatively. Also, making PCB layout easier is genuinely an actual issue when you're routing 16 pairs or more. That seems legitimately useful somehow.

USB, however, is much simpler and designed to be cheap to implement? Flipping the two lines is just a single via, it doesn't seem that bad. I dunno, I'm just making stuff up here.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf