Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,688 Members 41,135 Now Online
XDA Developers Android and Mobile Development Forum

MHL hdmi/vga with OTG & charging cable build

Tip us?
 
flez1966
Old
#11  
Senior Member - OP
Thanks Meter 15
Posts: 180
Join Date: Jul 2011
OK I have now opened another 5 to 11pin connector, this is the moulded plastic variety...


This is an image of what mine looks like, but i did not use this supplier, i just bought on ebay...




..and inside




 
flez1966
Old
#12  
Senior Member - OP
Thanks Meter 15
Posts: 180
Join Date: Jul 2011
Quote:
Originally Posted by 01jacksonb. View Post





(extended USB Part)
Pin 6 - Gnd
Pin 7 - MHL ID (connected to ID Pin of MHL Adapter)
Pin 8 - DN (MHL -)
Pin 9 - DP (MHL +)
Pin 10 - ? (Audio/USB host?)
Pin 11 - ? (Audio/USB host?)

I will try and upload some images tomorrow, and a diagram of the plug.
How did you work out which is pin 6? Was it marked etc?
 
01jacksonb.
Old
#13  
Junior Member
Thanks Meter 5
Posts: 13
Join Date: Sep 2009
Location: Wilmslow
Quote:
Originally Posted by flez1966 View Post
How did you work out which is pin 6? Was it marked etc?
No markings on mine, I just started numbering them as I noted them down (left to right), however i didn't follow standard pin mapping, and think i have noted them in reverse order

The following should be standard numbering. (if Samsung release a spec or diagram of the plug :P )
Here are the images as promised.





Smart dock pins:
Pin 1 - Vcc
Pin 2 - USB - (Slave)
Pin 3 - USB + (Slave)
Pin 4 - ID/Sense (40.2K Ohm)
Pin 5 - Gnd
Pin 6 - ? (Audio/USB host?)
Pin 7 - ? (Audio/USB host?)
Pin 8 - DP (MHL +)
Pin 9 - DN (MHL -)
Pin 10 - MHL ID (connected to ID Pin of MHL Adapter)
Pin 11 - Gnd

---------- Post added 6th February 2013 at 12:37 AM ---------- Previous post was 5th February 2013 at 11:42 PM ----------

After watching a review of the smart dock, in which the S3 is said that USB doesn't work in dock mode, and along with the Note 2 working with PC Docking. I can only assume that the data has to be on the pins 6 & 7.
The next step is identifying the polarity of them, luckily D+ & D- both can take 3.3v (used as ID for USB 1.0 or 1.1) nothing should be damaged if the polarity is incorrect.


The next issue is connecting all of the wires to the USB pins at once. I can't connect all of the wires to the 0.3mm pins, and expect them to not come loose or short. The only solution that i can think of is to etch a breakout PCB for it. Hopefully it will arrive soon, Unfortunately my first board was way too thick for the plug.
The Following User Says Thank You to 01jacksonb. For This Useful Post: [ Click to Expand ]
 
flez1966
Old
#14  
Senior Member - OP
Thanks Meter 15
Posts: 180
Join Date: Jul 2011
Your attempts look as elegant as mine..

I was trying with a single strand of bare wire, if it goes down fine then it can be insulated with coloured mail varnish.

That way each stand kind of ends if like the varnish covered wire used in transformers or some of those cheap $2 headphones
 
flez1966
Old
#15  
Senior Member - OP
Thanks Meter 15
Posts: 180
Join Date: Jul 2011
if you look at 'spare' plugs sold on ebay for the s3, they have the pins setout very odd, for single sided board mounting

 
01jacksonb.
Old
(Last edited by 01jacksonb.; 6th February 2013 at 11:58 PM.)
#16  
Junior Member
Thanks Meter 5
Posts: 13
Join Date: Sep 2009
Location: Wilmslow
Normally when i need to connect to small pins like these, I use Kynar wire, as it is so small and single core. However when usb host didnt work, i assumed that it was because the cable had to much noise, so i changed to normal USB cable (which also didn't work)

The socket is interesting, it looks like they surface mount it, unlike the plug that i have, which mounts on the side of the circuit.
Have you seen anybody selling the plugs cheap, and in low quantities? the only place i can find is alibaba, and i have to buy a few hundred

Excuse the rough edges, I through together a breakout board for the plug, so that i can easily access all of the pins, and secure the cable in place.
I made a quick sketch on a PCB and etched it. Not quite figured out how to print them yet.





---------- Post added 7th February 2013 at 12:36 AM ---------- Previous post was 6th February 2013 at 11:53 PM ----------

I just powered it up, and gave pins 6 & 7 a try with a memory stick connected, unfortunately there was no response from android, it also didn't see a mouse.
not sure why it doesn't detect, maybe there is too much interference, or the pins just aren't usb.

anyway, i will dig out my osciloscope, and start testing the pins to see what data they are trying to send.

I may end up having to purchase the smart dock to see what makes it tick.
The Following User Says Thank You to 01jacksonb. For This Useful Post: [ Click to Expand ]
 
flez1966
Old
#17  
Senior Member - OP
Thanks Meter 15
Posts: 180
Join Date: Jul 2011
i'd check for shorts.

doesnt usb otg need a pin shorted to ground? or 100 ohms etc.
 
teshgnex
Old
#18  
Member
Thanks Meter 19
Posts: 92
Join Date: Apr 2012
subscribed to this thread and will chime in when I can offer some insight - my smart dock is due to arrive (tomorrow?)

I'll hopefully be taking it apart to test around for what wire is getting what resistance etc...

one thing I'll need to do is make a usb-micro-male end into a usb-a-male end so I can test the dock w/my lapdock (it's been the goal for me on this hdmi/otg/charging build)
 
01jacksonb.
Old
(Last edited by 01jacksonb.; 8th February 2013 at 09:20 AM.)
#19  
Junior Member
Thanks Meter 5
Posts: 13
Join Date: Sep 2009
Location: Wilmslow
Default Re: MHL hdmi/vga with OTG & charging cable build

Thats the exact same reason that I have been trying to make one.
I have the lapdock ready and waiting to be modified. If you need any info on the lapdock's USB and HDMI connections, have a quick look at "RaspberryPi Lapdock"

I hope that you get your smartdock soon. Im Looking forward to your input.

Sent from my GT-N7105.
 
01jacksonb.
Old
(Last edited by 01jacksonb.; 8th February 2013 at 03:17 PM.)
#20  
Junior Member
Thanks Meter 5
Posts: 13
Join Date: Sep 2009
Location: Wilmslow
Quote:
Originally Posted by flez1966 View Post
i'd check for shorts.

Doesn't USB OTG need a pin shorted to ground? or 100 ohms etc.
USB OTG uses a short between pin 4 & 5. The resistance between these pins "informs" the phone about which accessory is connected.
USB OTG mode, will only activate the USB host function, charge and HDMI are disabled in this mode.
Desk Dock mode, enables HDMI, and Charge, but not USB OTG
Smart Dock mode, enables HDMI, charge, and USB OTG.


Here is a list of (Samsung Galaxy S) resistor values I saved on my computer, I believe I found them on this forum, by "TheBeano"
(list is edited to show more relevant items to the Note 2)

Code:
RID_USB_OTG_MODE,		GND 		USB OTG Mode
RID_RESERVED_1,			28.7K		Reserved Accessory #1
RID_RESERVED_2,			34K 		Reserved Accessory #2
RID_RESERVED_3,			40.2K		Reserved Accessory #3 (Smart Dock Mode)
RID_RESERVED_4,			49.9K		Reserved Accessory #4
RID_RESERVED_5,			64.9K		Reserved Accessory #5
RID_AUD_DEV_TY_2,		80.07K		Audio Device Type 2
RID_PHONE_PWD_DEV,		102K		Phone Powered Device
RID_TTY_CONVERTER,		121K		TTY Converter
RID_UART_CABLE,			150K		UART Cable
RID_CEA936A_TY_1,		200K		CEA936A Type-1 Charger(1)
RID_FM_BOOT_OFF_USB,		255K		Factory Mode Boot OFF-USB
RID_FM_BOOT_ON_USB,		301K		Factory Mode Boot ON-USB
RID_AUD_VDO_CABLE,		1K or 365K	Audio/Video Cable (HDMI/Desk mode/MHL)
RID_CEA936A_TY_2,		442K		CEA936A Type-2 Charger(1)
RID_FM_BOOT_OFF_UART,		523K		Factory Mode Boot OFF-UART
Car mode,			619K		Car mode
RID_AUD_DEV_TY_1_REMOTE,	1000.07K	Audio Device Type 1 with Remote(1)
RID_AUD_DEV_TY_1_SEND,		1002K		Audio Device Type 1 / Only Send-End(2)
RID_USB_MODE,			Open		USB Mode, Dedicated Charger or Accessory Detach

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes