Author Topic: 5 core USB cable  (Read 2582 times)

0 Members and 1 Guest are viewing this topic.

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
5 core USB cable
« on: August 21, 2019, 07:16:40 am »
Hi,
I want to control ID pin of USB OTG cable in my USB device that is connected to tablet. This means I need an micro USB cable with 5 cores so ID pin is wired from the tablet to my device. Do you think it is possible to buy any kind of USB cable at least 1.5 m long with 5 cores/wires that has one end with micro USB plug (the other end is not important as I will cut it and solder it on my PCB)?
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7453
  • Country: pl
Re: 5 core USB cable
« Reply #1 on: August 21, 2019, 07:26:45 am »
It normally is grounded or floating. If you are lucky, maybe somebody makes standard-incompliant micro to micro cables wired 1:1. Or extension cables with a micro socket perhaps?
Certainly nothing with normal A type plugs or sockets at the other end.
 
The following users thanked this post: Fire Doger

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: 5 core USB cable
« Reply #2 on: August 21, 2019, 02:04:51 pm »
Ha! If you ever do find such a cable I could use a couple.
I've looked, all the OTG cables are just grounded at the connector.
Nobody brings it out as a separate conductor.

I ended up using Cat-3 3 pair cable and soldering on a micro USB connector from (I think) Adafruit.

It sounds like you're doing the same kind of thing that I did.
I made a box to enable an Android to connect to a desktop.
In normal mode it would allow you to use ADB to install apps that you were testing.
You could switch the Android to host mode with the ID pin.
You would switch the USB connection to a peripheral which was a keyboard/mouse emulator.
The backend of the keyboard emulator was connected to the desktop.
You could inject characters at about 1000/sec.
This operated a lot faster than the Android shell input command.
The box just used little SIP SPST relays and a microcontroller.
 

Offline Bratster

  • Regular Contributor
  • *
  • Posts: 248
  • Country: us
Re: 5 core USB cable
« Reply #3 on: August 22, 2019, 04:31:48 am »
Unless I'm missing something obvious isn't this what you guys are wanting?
Aside from being a little short.

YCS Basics One Foot USB Micro Male to Micro Female 5 Pin / 5 Wire Extension Cable https://www.amazon.com/dp/B0134XUJN2/ref=cm_sw_r_cp_apa_i_4OHxDbYMRH58H

I have one of those that I needed for a project and cut open.
I purchased it back in May, It had all five USB wires  available and was shielded.

Sent from my Pixel 2 XL using Tapatalk
« Last Edit: August 23, 2019, 06:09:48 am by Bratster »
 

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
Re: 5 core USB cable
« Reply #4 on: August 22, 2019, 11:05:43 am »
I have Lenovo tab E8 that, when in OTG host mode, can:

1) supply power for connected USB device (when ID pin is shorted to ground)
2) charge using power that is supplied by USB device (when ID pin is connected via 10 kOhm resistor to ground)

My USB device doesn't always have external power supply connected to charge the tablet (then it shorts ID pin to ground) but if it has external power connected, it connects ID pin via 10 kOhm resistor to ground to tell the tablet that it can charge.

I discovered that there are manufacturers (or at least one) in China who can manufacture 5 core USB cable.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: 5 core USB cable
« Reply #5 on: August 22, 2019, 04:35:19 pm »
Ah, those cables look good, especially https://www.startech.com/Cables/USB-2.0/Micro/micro-usb-extension-cable-50cm~USBUBEXT50CM
It was a year or two ago and I got sick of wallowing in cables that were "OTG" or "5 pin" (they all are) or "5 wire" (counting the shield as a wire).
Until I get a report that somebody actually cut into a cable I don't believe any of them.
 

Offline Renate

  • Super Contributor
  • ***
  • Posts: 1460
  • Country: us
Re: 5 core USB cable
« Reply #6 on: September 03, 2019, 08:05:51 pm »
So, I got the StarTech cables in and they do have the ID pin carried separately (on a blue wire).
 
The following users thanked this post: oPossum, thm_w

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
Re: 5 core USB cable
« Reply #7 on: October 25, 2019, 08:52:06 pm »
I have some 5 core micro USB cables 1.5 long for sale: https://www.ebay.com/itm/184009011949

power cores are 24 AWG, the rest is 28 AWG.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf