yashsingh1/xdaforums huggingface dataset:
[Android General] sonic_boom:
SUCCESS

BTW i got this working !!! ( USING HUB WITH 4X USB PORTS )

OTG AND CHARGING AT THE SAME TIME !!! should work for any device with OTG SUPPORT ;) so far i can post screen shoot only , more details later on if you interesting...

View attachment 1264716

regards
[Android General] memphian:
This sounds awesome. Looking to do something like this with a nexus 7 in my vehicle. Looking forward to this.
[Android General] mvmacd:
Please do tell. Are you pretty sure it'll work for any OTG device? Regardless of its hardware. Specifically the nexus 7.
[Android General] sonic_boom:
I hope will work for all devices . Successfuly tested on my Xperia S. I will test soon on Galaxy S2 and S3. Also I completely redesign everything. Forget about first post and crappy switches. I made docking station for my phone I just have to finish my it. I want to add some LED. Is all about right cables and resistors in right place. I think this should also work on simple Y cable.

Give me some time to get everything ready. I have two kids a home plus looking for new house plus I am working. But I will post instruction here soon
[Android General] GregórioAxiaMagno:
Interesting indeed.

Take you time. And you have the xda support, because this is something that we want also.

Thanks for the research and effort.
[Android General] sonic_boom:
At this moment i can post some pictures with my crappy beta most ugly dock - but was design for testing only and i have done already so many transformations . Most important

OTG and CHARGING working at the same time !! ​

View attachment 1266471

View attachment 1266472

On the photos you can see LED ON , USB STORAGE CONNECTED NOTIFICATION and MOUSE CURSOR ! ;)

I connected same time :

- 8GB USB MEMORY STICK

- WIRED MOUSE

- WIRED KEYBOARD

- USB WITH POWER SUPPLY FOR MY SPEAKERS ( then i connected jack for AUDIO )

- and phone CHARGING SAME TIME

at work also i connected HUB - 1 USB ( WIRELESS MOUSE AND KEYBOARD ) - WORKING PERFECT !

Before i will post any information HOW TO GET THIS DONE i will post video on YOUTUBE - i should have video before MIDNIGHT ( current time 6:22 PM)

VERY IMPORTANT !!! ( i connected GALAXY SIII - unfortunately not working at all - but dont worry - in 99% i know where seems to be the problem)

Regards
[Android General] GregórioAxiaMagno:
Dude! I must say: congratulations, and the beta dock is more beautiful than my wooden dock, homemade also hahahaha. I'm excited to see how is the modification to earn charge and OTG function. I wanna try also and share my tests!
[Android General] sonic_boom:
[YOUTUBE]-v7DjU6nsVM&hd[/YOUTUBE]​
[Android General] GregórioAxiaMagno:
Very nice and cool :good:.

I'm too curious...

I drew some scheme, is just what I'm wondering about what you did, and how can I do, or even you can use these pics when you explain :D.

Regards.
[Android General] sonic_boom:
Hi again SONY USERS !

There is my final video + link to my website with INFO , DIAGRAM , PICTURES --> HOW TO GET THIS WORKING ;)

Link to website ---> https://sites.google.com/site/sonicboomworld/

[YOUTUBE]yKVYNwY7Hqo[/YOUTUBE]
[Android General] GregórioAxiaMagno:
Great work sonic!

Let me ask: if i simply put the resistor at the id pin, the scheme what I drew, my last post, will work? If you can say just looking at the scheme....

Thanks again BTW.
[Android General] sonic_boom:
Hi. Go on my Google website there is pretty good scheme any question just ask
[Android General] Dellair:
Nice find! Great work :).
[Android General] mvmacd:
So.. are you pretty positive it'll work on a Nexus 7? Has anybody tried it?

I do not have any powered USB 2.0 hubs, but if it'll work, I'd definitely buy one, I'd just like to know beforehand, if possible.

Anyone tried this yet with a N7?
[Android General] sonic_boom:
Hi . Hmm i am 99% sure this should work without powered USB HUB ! according to my 2nd stage DOCK STATION , DIAGRAM HERE --> LINK

where maybe the problem ? yellow wire going straight through from pin 4 to pin 4 from one connector to another with resistor in the middle to enable OTG MODE using my HUB ! if this method will not work for you i would try to short PIN 4 and PIN 5 with RESISTOR on microUSB male connector going to your phone/tablet ...
[Android General] mvmacd:
so I just put 100 K ohm resister in pin 4, then add the external power?

what cables or adapters should I buy? what would be the easiest setup of cables/adapters to then modify? I'm drawing a blank.. thx
[Android General] GregórioAxiaMagno:
Thanks man, you are amazing.

I have a question: my hub don't have the Id/Sense pin, where can I short the phone Id/Sense with the resistor? All my hub ports have 4 pin, but I can use all ports with the moded otg adapter.

Regards.
[Android General] sonic_boom:
I would recommend you MicroUsb to normal USB SAMSUNG DATA CABLE. I damaged already so many data cables . But SAMSUNG cable got little board on MicroUSB side . Plug is easy to open. I will do diagram for you soon ok.

Same thing I will draw another diagram for non powered hubs
[Android General] GregórioAxiaMagno:
Thanks for reply Sonic. Just to explain better, I'm uploading the diagram of my situation. I don't know where to connect the ID/Sense.
[Android General] sonic_boom:
hi, if you want to use 2 separate power supply's that should be ok anyway.

here is the diagram for you :

more diagrams here : https://sites.google.com/site/sonicboomworld/my-projects/otg-diagrams

Quote:

check link here --> https://sites.google.com/site/sonicboomworld/my-projects/otg-diagrams OTG Y CABLE should be perfect for non powered USB HUB, also on the same post you can SEE SAMSUNG DATA CABLE get one. To make complated USB OTG CABLE WITH CHARGING You will need :

- Male MicroUSB or MiniUSB to regular male USB data cable ( SAMSUNG DATA CABLE RECOMMENDED)

- Non Powered HUB or Powered HUB or regular FEMALE USB CONNECTOR ( for mouse keyboard gamepads etc )

- 100k ohm resistor for enable OTG MODE AND CGARGING ( tested on SONY XPERIA S - working fine, on other devicecs you may need to use other resistor with different value)
[Android General] GregórioAxiaMagno:
Thanks man!

Confirmed ST15 OTG function plus charging with USB HUB working pretty good! I made an Y cable using your diagrams.
[Android General] sonic_boom:
I am glad to hear that. Get anyone with another SONY device just to test it. If you spot any problems let me know thanks
[Android General] GregórioAxiaMagno:
For sure!

EDIT: Take a look here http://youtu.be/vg5O5ExuuaQ. You can use this video if you want.
[Android General] sonic_boom:
Make it available for mobile I can't watch it. Well if you don't I will check this later on laptop
[Android General] GregórioAxiaMagno:
Sorry, this channel is from a friend. Not sure if he turn available or not -.-....
[Android General] mvmacd:
Does anyone know if this will work on a Nexus 7? Without frying it, of course..
[Android General] crytec4:
Great job man
[Android General] w. junior:
Good job sonic_boom.

From what I understand the only way to make it work with the charging + OTG and OTG (no charging) is using a switch to prevent the resistor, right?

I have a Kidigi Cradle, and I want to add the OTG, but do not want to use the switch.

http://www.kidigi.com/product_lv2.php?pid=1370

Any idea?
[Android General] sonic_boom:
Hi. You need 100k resistor between PINS 4 and 5 to get OTG MODE AND CHARGING SAME TIME, thats all what you need ! ( on MALE MICROUSB PLUG !! )

Optional i put there switch to by pass resistor, because if you are away and you don't have power supply circuit/ my dock will not work ! sometime i am away and testing some 2nd hand USB devices, so is handy for me to have this working "offline"

regards
[Android General] cmgonzalez:
Nice, i want this i will try to build tonight. And report back (i've a xperia pro mk16a)
[Android General] sonic_boom:
Looking forward for report
[Android General] cmgonzalez:
It's working like a Charm... There's some pictures

I used a powered USB HUB, this model also send the power back to the host. (I found on the Raspberry PI forums, that you can hack normal usb hubs to send power back to the host just soldering back them).

Now I will try playing some mame roms on my TV :), I also have a cheapo 2.4GHZ mouse and keyboard, I only miss a Gamepad (The one I have isn't recognized)
[Android General] sonic_boom:
Hi. Thanks for info. I am glad to see another person get it working! Would you confirm phone model number just incase?

I bought my PS3 sixaxis controller for 2 euro on CAR BOOT SALE ;)
[Android General] cmgonzalez:
MK16A
[Android General] hotshotgt:
Seems easy enough from the diagrams. Do all phones with microusb share the same pin layout? As much as I hate to admit it, I had an iPhone up until I got my Galaxy S3, so I'm new to android and the microusb standard.
[Android General] TheByteSmasher:
Can anyone figure out how to make a "Y" cable with one input to device, and the split being A) OTG, and B) standard USB to plug into a power bug? Thanks.
[Android General] r000li:
I have the same question, but sadly no real answer.

I have an Ainol Novo 7 Paladin tablet (android 4.0.3) which supports USB host mode via its mini USB connector. I am using a standard OTG adaper that I bought for a few € on ebay. This is all working great, but sadly I need the thing to run from the USB power or charge the battery with the OTG active.

From what I've read there are two possible solutions to this problem - a hardware one (as seen here) that is less commonly supported (doesn't work on most devices) and a software solution that should work anywhere. So I am trying to find a way to get a working software solution.

Now apparently you can change the mode by doing this:

echo host > /sys/devices/platform/musb-jz47xx.0/musb-hdrc/mode

On other devices (with standard ARM architecture, and not MIPS) it is usually without the musb-jz47xx.0 part.

Now ok this works for a standard usb host mode - at least it doesn't give out any errors. Now using otg instead of host should enable charge and host mode. Sadly it doesn't. It throws out Segmentation Fault and throws me out of root shell with exit status 139. Now using unsupported mode usually just gives out exit status 1 and that is it. So there must be something with the otg command. But I have no idea what is wrong.

I also found out that plugging and unplugging my USB otg cable (with an Y splitter - one side connected to a charger and the other one with an inserted USB device) a few times the tablet actually switches to host mode while showing that it is charging. Sadly the battery percentage then stays the same and the whole thing just shuts down after a few hours (when you start it again you find out that the battery is empty) - although it lasts longer than normally. So something strange is going on here.

Any ideas?
[Android General] GregórioAxiaMagno:
You mean something like this?

If yes, is just read some posts ago. If no... "not to do here" :silly:
[Android General] ollie.olsson:
Looking at the separate components, and for the resistor, I can find two at my local retail store (I'm in Sweden mind you) and not too sure which one to get:

Power resistor 100 kΩ 25 W±1 %

OR

Power resistor 100 kΩ 20 W±5 %

And then you used a diode in your third edition, can tell us the specs on? Is there anything special with it? I know it only allows the current to flow in one direction, but are there any values we should think about?

I want to try and build this for my Nexus 7, unless of course someone already has build their own iteration of this bad boy to confirm whether or not it works.

Cheers, and great work!
[Android General] sonic_boom:
POST RESERVED , i will answer most questions soon as i finished moving to the new house ! --> i am very busy at the moment
[Android General] r000li:
As I mentioned above - the OTG charging specification is very rarely implemented in HW and it is quite likely that Nexus 7 doesn't support it. But you can allways try it. Now both resistors should work fine although I would get the first one since it has a lower tolerance.
[Android General] ollie.olsson:
Cheers man, and I just read your post.

What a drag.
[Android General] sonic_boom:
In my opinion yours standard OTG cable seems to be the problem, pin 4 and 5 is shorten without any resistor ? ! ? ! , in XPERIA S only 100k ohm resistor between two pins seems to enable charging and otg mode same time, without resistor you have otg mode only ! even if you using Y cable. I have try already many different resistors, different values, on some of the resistors i had charging only without otg. Before i start my research i based on this thread http://xdaforums.com/showthread.php?t=820275

Hi, as a previous user said this is tolerance, lower value means more accurate resistance.

Diode usually must be use with resistor, i found old PCB with different electronics components, then i took diode + resistor (220ohm), i don't have diode specs all what i know is when i connected this diode to 5V DC and 1 AMP without resistor, diode just blown ! so resistor will reduce current. How i said on my website this is only optional ( diode plus resistor ) and this extra feature may make your circuit little bit heavier but is very handy to have a light indicator which will tell you that you have a power !;)
[Android General] unit254:
Work with xperia p

Thanks for your great work :angel:

I build your cable with charging and switch like seen in pictures. Ist working well with my xperia p with mouse and keyboard :victory: but the only thing that not working is usb drives... :(
[Android General] sonic_boom:
thats good and bad news ... can you install from play store https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en . while using termianl plug in yours "drives" the use command DMESG and post screenshot here ok ?

regards

btw do you use OTG and charging at the same time > yeah ?
[Android General] unit254:
I tried it and it works great 0:)

it works with both on and of charging :D

I don't know wy it's not woking before??:-S
[Android General] sonic_boom:
Ok thanks for info. So cable working perfect on Xperia P yeah? ( confirm because I want to add info to my website)

Btw I have no idea why DMESG not working?
[Android General] unit254:
Yes now its working on xperia p LT22i :D

Iv tested it to on xperia neo v Mt11i and it's working :)
[Android General] sonic_boom:
Great news good man! Will update website soon!
[Android General] icomputerz:
Wow!

You are very tech-savvy, like me! :D Nice work

iComputerz
[Android General] the_r_sole:
has anyone got this working on a nexus7 yet?
[Android General] memphian:
+1
[Android General] sonic_boom:
People simple should try this on othere devices why not ? If you dont have any other solution? But do not buy otg cables this will not work you need to modify data cable! I'm 70% sure is about correct resistor then 30% IS about software.
[Android General] r000li:
There is one giant if there. If the device can actually read the resistor - which means that it implements the OTG charging protocol. And I've seen this working only on Xperias. I'll try to find a 100k ohm resistor somewhere and try it on my Ainol tablet. Although I really doubt that it will work.
[Android General] wannacharge:
Did it work with the resistor finally for you? I have a similar an Eken A13 Allwinner device and will build this cable with the resistor if it works.
[Android General] the_r_sole:
unfortunately I don't have a device to try it on, hence my question about it working with a nexus 7, as if it does work with a nexus 7, I will buy one, this issue is currently what's holding me back from buying one - so it would be useful to get an answer if it works with that particular model
[Android General] Sengir:
+2 Anyway I'll try this asap on my own ;) thanks for sharing!
[Android General] mousemeat:
Xperia mini pro(sk17i)

I've tried to short the cable with a 100k resistor , made a Y cable , the phone says charging and I plugged the microsoft wireles receiver too , the phone doesnt charge at all , It just says charging but its not , receiver worked fine , I think the problem with resistors is that each phone needs a specific resistor value ,not sure....

can't post a link I found talking about resistor for otg cables....

Im gonna try a 36k resister and ill post the results later.
[Android General] Entropy512:
In some cases, the HW supports it but the SW doesn't. This was the case with the Galaxy S2/Note - https://github.com/CyanogenMod/andr...mmit/4c1c965b168bc4488ef66889e1c8933bc1b3de46

I haven't had the time to build a cable and try and create a similar patch for the N7.

To the OP: Have you tried 36k by any chance?
[Android General] GregórioAxiaMagno:
I obtained the same behavior at the first try, doing a bad welding job, so I cleaned all the contacts (usb, cable, etc.) and I tried to do the best welding I ever made... so everything, finally, worked very well. This is just a tip, maybe the resistor is the correct for you, is just review and see if are all good placed.
[Android General] Icermann:
USB Charging spec

Hi.

Me and a friend made a charging otg cable earlier this summer to use with an Xperia S, not as ambitious as your dock though :)

Just in case you haven't read the USB Charging Specification the resistance between ID and ground (pin 4 and 5) is specified to 122 - 126 k ohm. Just in case someone doesn't get it to work with the 100 k resistor you might want to try a 124 k instead.

I have to build a real dock with a usb hub now, after reading your guide ;)

Ps. I tried to post the link to the specification, kinda interesting when doing this stuff, but apparently I'm to new on this forum to post links :crying:

Just google "usb charging specification" to find it on usb.org.
[Android General] GregórioAxiaMagno:
http://www.usb.org/developers/devclass_docs
[Android General] sonic_boom:
Hi. You can't say that I haven't read USB charging spec. Because you don't really know that? I did read ... and probably I miss it. I even contacted some qualified persons to help me but I never got any good answer... I based on SAMSUNG GALAXY S, SII thread " FUN WITH RESISTORS" I was lucky enough to guess that 100k will do the job.

These values 122 - 126 k ohm will work on any device ? Because if so Samsung Galaxy SIII and Nexus 7 users maybe happy with this news.
[Android General] Icermann:
I didn't mean any offence. I just wanted to point you and the rest of the thread to the spec in case you'd missed it.

Anyway, thanks for the guide! You did a good job with the charging dock! When I get the time I gonna have to do one myself, instead of my y-splitter.
[Android General] sonic_boom:
Hi. No problem

Btw I finished this morning my new GamingTabDock for Lt26i, this is kind of flat dock station looking like a tablet with built in game controller with OTG support but unfortunately I used too much glue gun and super glue , there was a little problem I had to stripped down everything and I actually damage it. So I have to start again

And I dont have pictures from the last stage of my project. Just few from very beginning
[Android General] hansmaniac:
Thanks to sonic_boom I finally managed to make my OTG USB HUB to charge simultaneously while mounting drives with just a simple 100k ohm resistor. Only drawback now is the switch requirement for no power source mode.
[Android General] Amanoo:
So do I understand from this that putting a 122k-126k resistor between the detector and the ground will make the S3 enter OTG+charge mode?
[Android General] sonic_boom:
Well done!

Better if you try this or someone else. I don't have SIII to test it unfortunately
[Android General] Amanoo:
From my understanding, if I cut open the cable of a USB game controller and that of a micro-USB cable I need to connect the two red cables to each other, the two black cables to each other, white cable to white cable and green cable to green cable, right?

http://img19.imageshack.us/img19/1609/img201210251452281.jpg

In this mode, the phone (on the left) will put a voltage on the VCC-line, which is then used by the game controller (on the right).

The charger (which is on the bottom) is disconnected.

http://img827.imageshack.us/img827/7241/img201210251429411.jpg

In this mode, the phone (on the left) will request a +5v on the VCC line, and so will the game controller (on the right, which always expects to receive voltage on the VCC). This voltage is delivered to both devices by the charger (located on the bottom).

Is the above fully correct?

Also, can I damage my device by using a wrong resistor between the sense and the ground?

And does this hybrid charge/otg mode have a name?
[Android General] Amanoo:
Galaxy S3 news, related to this topic:

http://xdaforums.com/showthread.php?p=33293981
[Android General] wannacharge:
Allwinner A13 resistor value

Finally I have made the Y-cable and experimented with different resistor values for Allwinner A13. Charging and host mode at the same time works very well with resistor values around 36k. In case the AC adapter is disconnected the device automatically starts to drive the V-bus with power and when I reconnect the AC adapter, it starts charging.

124k and 100k are not working with this device.
[Android General] sonic_boom:
Yes

Yes, ( PS3 dual shock will not work because there is not enough power ;), you need resistor plus extra power supply connected )

Yes,

I never heard to be honest with you that anyone damaged any device, but we will never know until some one damage one, i have tried all diffrent resistors from 1k to 999k ohm, phone still wotking

Why hybrid ? it was done already by SONY in ( sony livedock ), its normal thing
[Android General] TriBeard:
Just a question. Would there be any reason why you could not have a female micro usb port as the charging element, so you would be able to plug your usb stick or gamepad in to the full size usb connector, and then plug your current cell phone charger into the female micro usb port?
[Android General] sonic_boom:
Hi. Yes you can. I have unfinished another tab/dock. With micro USB female as a power inlet. But I don't have time to finish it and solve some little problems .
[Android General] ambishop:
thanks for the update. does the 36k resistor show charging on the device? using an allwinner device, onda v711 I have had luck with this ebay otg charging cable but it only shows charging just for the instant it is plugged in. the charging seems to work where the device does not show charging but maintains the current power when in use and increases the level when sleeping but no charging icon on the device. http://item.mobileweb.ebay.com.au/viewitem?itemId=230837016773&index=8&nav=SEARCH&nid=66873373803

screenshot shows restart device with otg y cable plugged in. normal usage such as email internet etc using otg ethernet usb connection. then at peak of power 20 minute youtube video viewing or so followed by short period of maybe 5 minutes in sleep mode and then light usage again.
[Android General] antistase:
Not with the stock kernel. You need to use Perseus or Siyah, And even then usb peripherals need to be connected before the phone boots to be able to use them.
[Android General] DimaNostradamus:
Dear sonic_boom. I did everything according to your instructions, but ran into a problem: I have a cable is not like you, no chip inside. I don `t know where to solder a resistor. Is it possible to help me or need a new cable? Sorry for my bad English.

i51.fastpic.ru/big/2013/0218/c1/ef04b5b907d386675e7d48150bbe80c1.jpg

i52.fastpic.ru/big/2013/0218/b7/0a9bd7143b221b0fcf700f64f0502db7.jpg

youtube.com/watch?v=qyI5p6VRSro
[Android General] sonic_boom:
Hi. Don't waste your time and get new cable. ;) good luck