Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,045 Members 38,346 Now Online
XDA Developers Android and Mobile Development Forum

DIY USB OTG CONVERTER FOR i9100! IT WORKS!

Tip us?
 
ikogsakanding
Old
#51  
ikogsakanding's Avatar
Member
Thanks Meter 15
Posts: 71
Join Date: May 2011
Location: Maasin City
I have tried this and 100%works
 
fafler
Old
#52  
Junior Member
Thanks Meter 1
Posts: 22
Join Date: Jan 2011
Quote:
Originally Posted by fduraibi View Post
It is under section 6 in that document called "ASA", and i don't think it is a simple resistor but won't be very complicated also.
So would be cool if we can get some help and figure it out.
If it's not a resistor, then what do you suggest?

This thread seems to be the best piece of information on resistors, but none of them seems to be what we want.

---------- Post added at 10:19 PM ---------- Previous post was at 09:36 PM ----------

I've been digging a bit more in the datasheet, and the tables in chapter 6.5 and 5.3 gives us all we need. It seems to be nothing more than a 119 to 132 kΩ resistor and the phone will charge while still providing OTG functionality. I think i have a spare micro USB connector in a drawer somewhere, so i'll try this out ASAP :)

---------- Post added at 10:33 PM ---------- Previous post was at 10:19 PM ----------

The PDF says:

3) Nominal values for these resistors are RID_A = 124k, RID_B = 68k and RID_C = 36.5k.

The Fun with resistors thread says:
Code:
RID_RESERVED_1,		/* 0 1 1 1 0 	28.7K		Reserved Accessory #1 */
RID_RESERVED_2,		/* 0 1 1 1 1 	34K 		Reserved Accessory #2 */
RID_RESERVED_3,		/* 1 0 0 0 0 	40.2K		Reserved Accessory #3 */
RID_RESERVED_4,		/* 1 0 0 0 1 	49.9K		Reserved Accessory #4 */
RID_RESERVED_5,		/* 1 0 0 1 0 	64.9K		Reserved Accessory #5 */
RID_AUD_DEV_TY_2,	/* 1 0 0 1 1 	80.07K		Audio Device Type 2 */
RID_PHONE_PWD_DEV,	/* 1 0 1 0 0 	102K		Phone Powered Device */
RID_TTY_CONVERTER,	/* 1 0 1 0 1 	121K		TTY Converter */
RID_UART_CABLE,		/* 1 0 1 1 0 	150K		UART Cable */
It's pretty close, 121 vs 124 k, 64.9 vs 68 and 34 k vs 36.5 k, and actually quite weird the ACA modes arent listened in the source. Is this wrong? Is the 124 k resistor going to trigger TTY converter mode, whatever that is, instead? I guess i can find the answers in the kernel logs when i try it out.
 
fduraibi
Old
(Last edited by fduraibi; 11th April 2012 at 08:15 PM.)
#53  
fduraibi's Avatar
Member
Thanks Meter 11
Posts: 57
Join Date: Mar 2009
Location: Baltimore, MD, USA
Quote:
Originally Posted by fafler View Post
If it's not a resistor, then what do you suggest?

This thread seems to be the best piece of information on resistors, but none of them seems to be what we want.

---------- Post added at 10:19 PM ---------- Previous post was at 09:36 PM ----------

I've been digging a bit more in the datasheet, and the tables in chapter 6.5 and 5.3 gives us all we need. It seems to be nothing more than a 119 to 132 kΩ resistor and the phone will charge while still providing OTG functionality. I think i have a spare micro USB connector in a drawer somewhere, so i'll try this out ASAP :)

---------- Post added at 10:33 PM ---------- Previous post was at 10:19 PM ----------

The PDF says:

3) Nominal values for these resistors are RID_A = 124k, RID_B = 68k and RID_C = 36.5k.

The Fun with resistors thread says:
Code:
RID_RESERVED_1,		/* 0 1 1 1 0 	28.7K		Reserved Accessory #1 */
RID_RESERVED_2,		/* 0 1 1 1 1 	34K 		Reserved Accessory #2 */
RID_RESERVED_3,		/* 1 0 0 0 0 	40.2K		Reserved Accessory #3 */
RID_RESERVED_4,		/* 1 0 0 0 1 	49.9K		Reserved Accessory #4 */
RID_RESERVED_5,		/* 1 0 0 1 0 	64.9K		Reserved Accessory #5 */
RID_AUD_DEV_TY_2,	/* 1 0 0 1 1 	80.07K		Audio Device Type 2 */
RID_PHONE_PWD_DEV,	/* 1 0 1 0 0 	102K		Phone Powered Device */
RID_TTY_CONVERTER,	/* 1 0 1 0 1 	121K		TTY Converter */
RID_UART_CABLE,		/* 1 0 1 1 0 	150K		UART Cable */
It's pretty close, 121 vs 124 k, 64.9 vs 68 and 34 k vs 36.5 k, and actually quite weird the ACA modes arent listened in the source. Is this wrong? Is the 124 k resistor going to trigger TTY converter mode, whatever that is, instead? I guess i can find the answers in the kernel logs when i try it out.
if you look at the pdf table 5-3 you will see the acceptable range:

RID_A = 119k ~ 132k (nominal is 124k)
RID_B = 65k ~ 72k (nominal is 68k) so 64.9k (from the other thread) is a bit below the range and i think it is saver to stick with the one suggested in the pdf
RID_C = 35k ~ 39k (nominal is 36.5k)

so we can use these resistors plus RID_FLOAT and RID_GND to switch between the modes of operation defined in the pdf table 6-2. So if we want the ASA to operate on more than one mode then I guess we will need some kind of a circuit to detect the attached devices in order to switch to the right RID. However, if we want a simple design for only 1 mode (or just as a prove of concept) then we can pick only 1 of them and have it hard wired to the OTG ID pin, (guessing again).

my only concern is what is going to happen if i hardwired only 1 mode but then had a different device setup, like no charger or more than 1 attached device (like if i used a hub and connected two flash drives)

i was able to connect a normal (un-powered) usb hub to my Galaxy Note using a normal OTG cable (ID=GND) and then i connected a wireless mouse dongle, wired keyboard and a 2GB flash drive in to the hub and my phone was able to provide enough power to all and i was using the mouse and keyboard while browsing files on the flash drive but everything failed as i plugged in a second flash drive (just to stress test it) since the phone couldn't provide enough current.
Maybe we can modify a powered hub to act as an ASA

by the way "fafler" did you get any results?
Galaxy Note (i717)
...
http://fadvisor.net/blog
 
MafiaDroid
Old
#54  
MafiaDroid's Avatar
Senior Member
Thanks Meter 51
Posts: 309
Join Date: Apr 2012
Location: Lisbon

 
DONATE TO ME
Default Nice!

This is nice man thank you very much
 
fafler
Old
#55  
Junior Member
Thanks Meter 1
Posts: 22
Join Date: Jan 2011
I haven't tried it out yet, as I haven't really been home. It has to wait to Saturday or Sunday.

Sent from my GT-I9100 using Tapatalk 2
 
crash1984
Old
#56  
Member
Thanks Meter 1
Posts: 31
Join Date: Sep 2011
I will try this. Thx for the info mate
 
Shanicky
Old
#57  
Junior Member
Thanks Meter 1
Posts: 21
Join Date: Nov 2010
Location: Hong Kong
thanks for sharing......
 
imileimile
Old
#58  
imileimile's Avatar
Member
Thanks Meter 7
Posts: 41
Join Date: Apr 2010
Location: Resen
Question OTG cable recognizes only usb drives

Anyone having this problem. When i connect mouse or keyboard it is not recognized at all, and everything works fine with usb drives. Even tried with self powered usb hub so power is not an issue.
 
ronlut
Old
#59  
Member
Thanks Meter 0
Posts: 33
Join Date: Oct 2011
Thanks a lot!
Will try it.
 
Tombias
Old
#60  
Tombias's Avatar
Senior Member
Thanks Meter 83
Posts: 590
Join Date: Oct 2010
Location: Wonderland
Quote:
Originally Posted by imileimile View Post
Anyone having this problem. When i connect mouse or keyboard it is not recognized at all, and everything works fine with usb drives. Even tried with self powered usb hub so power is not an issue.
Try another kernel like siyah. I had the same problem until i flashed this kernel.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes