Charging device while using OTG host - Nexus 7 Q&A, Help & Troubleshooting

Is there any way to set up the Nexus 7 to charge while in OTG host mode? There seems to be a way using a Y cable and a kernel tweak to accept a charge while in host mode to get it to work on the galaxy nexus. Is anyone familiar with this concept and it's possibility of being applied to the N7?

I'm curious about this also as I would like to charge while using otg with a micro sd reader.

I just noticed that when I connect my ZTE Warp to my N7, the Warp starts taking a charge. Pretty handy if your phone is about to die and you're nowhere near power. My vote is for the Y cable. Whoever markets it first is gonna get paid! I'd buy one.

There is already a Samsung cable, I have ordered one, will let u know if it works.
Check out this item I found on eBay: http://pages.ebay.com/link/?nav=item.view&id=110931117836

karl0ss said:
There is already a Samsung cable, I have ordered one, will let u know if it works.
Check out this item I found on eBay: ...
Click to expand...
Click to collapse
This is a question for me as well - if it work hope all other Android device are compatible, like XPERIA-s.

There are two different charging states being discussed here. The first is zyperion's, which is the desire to charge the Nexus 7 while the Nexus 7 is acting as a host. The second is Cosa44's, which correctly points out that the host will power the connected device. These two charging states are at odds with each other because the host can't act as a host and provide power while also charging itself; power can't flow both ways. The cable that karl0ss bought is for providing additional power to the connected device, not for charging the host.
With all that said, I do remember reading about a kernel mod for another device (might have been one of the Galaxy phones) where the kernel can enter host mode without providing power to the connected device, freeing the power pins to charge the host. However, this would require an external power source for the connected device so it's not exactly convenient on the go, and it also requires an adapter that doesn't exist yet (you'd have to make it yourself).

host mode charging
AZImmortal said:
There are two different charging states being discussed here. The first is zyperion's, which is the desire to charge the Nexus 7 while the Nexus 7 is acting as a host. The second is Cosa44's, which correctly points out that the host will power the connected device. These two charging states are at odds with each other because the host can't act as a host and provide power while also charging itself; power can't flow both ways. The cable that karl0ss bought is for providing additional power to the connected device, not for charging the host.
With all that said, I do remember reading about a kernel mod for another device (might have been one of the Galaxy phones) where the kernel can enter host mode without providing power to the connected device, freeing the power pins to charge the host. However, this would require an external power source for the connected device so it's not exactly convenient on the go, and it also requires an adapter that doesn't exist yet (you'd have to make it yourself).
Click to expand...
Click to collapse
I've been looking into this because I would like to be able to charge my nexus 7 while using a keyboard and mouse. I know that at least one person has come up with a kernel mod for the nexus 7 that will allow host mode charging. For example:
rootzwiki DOT com/topic/37755-timurs-kernel-robust-usb-host-power-management-nexus-7-like-a-pc/
(sorry I can't post links yet)
I don't understand some of what they're saying and I don't know whether I would be able to do the mod on my nexus 7 without running into difficulties. What I would really like is for google to provide a solution that you can just download -- the way they came up with Media Importer, so now people like me don't have to root in order to use a flash drive. But that seems unlikely in the case of host mode charging.
Now I have a question. I'm quite skilled enough to make a Y-connector like this:
sites.google DOT com/site/sonicboomworld/_/rsrc/1345753009582/my-projects/otg-diagrams/Y_OTG_CABLE.png[/url]
so what would happen if I connected my stock nexus 7 to a slave device and charger with such a cable?

What about using the pogo pins to charge like the gnex ?
Sent from my LG-LS860 using Tapatalk 2

Related

[Q] micro usb voltage out

is it possible to get voltage output from the micro USB port on the g2? could an app be written or would this require a hard mod?
It's +5V DC, what else do you need? Current monitoring would be more useful, but I don't think it's possible.
costipl said:
It's +5V DC, what else do you need? Current monitoring would be more useful, but I don't think it's possible.
Click to expand...
Click to collapse
I plugged a micro usb in and tested, got nothing, No voltage coming out of the micro usb port on the G2. My question is, can we make an apk which would send voltage out?
I'm not sure it's just a software thing.
i recall readind a description/manual for using usb host on g2/dz. author mentioned that phone has host capabilities, but you need external power source. so my guess is you cannot do it (usb power out).
host, hmm, that would still be cool, to have a mouse or something. I mean for no good reason of course.
Yep. I cannot find the article i mentioned earlier - i know it was around here somewhere but i don't know the new xda-developers portal layout - i am still in windows mobile days
anyway, no luck with usb host functionality for me as it required messing around kernel, some drivers and active usb hub (with power injector), which even if i accomplished all that's needed makes it not very comfortable to use... I'll pass on this

[Q] How many USB-Devices can be used at the same time?

Hello, I want to know how many USB-Devices you can use, assuming you use a normal USB-OTG cable and a cheap USB hub (without external power supply). How many devices can Android theoretically recognize? Is it possible to use a keyboard, mouse and USB stick/HDD? Would be cool if someone could try this....
Thanks in advance!
m1s73r said:
Hello, I want to know how many USB-Devices you can use, assuming you use a normal USB-OTG cable and a cheap USB hub (without external power supply). How many devices can Android theoretically recognize? Is it possible to use a keyboard, mouse and USB stick/HDD? Would be cool if someone could try this....
Thanks in advance!
Click to expand...
Click to collapse
Android can recognize as many devices as there are USB hub ports, check out this video (I know it's for the Galaxy S3 but the idea is the same) specifically 2:50 seconds on using a USB hub with mouse, keyboard, and other accessories.
shimp208 said:
Android can recognize as many devices as there are USB hub ports, check out this video (I know it's for the Galaxy S3 but the idea is the same) specifically 2:50 seconds on using a USB hub with mouse, keyboard, and other accessories.
Click to expand...
Click to collapse
Thanks, but I think the hub used in the video has an external power supply. At 3:50 you can see the black round cable...
m1s73r said:
Thanks, but I think the hub used in the video has an external power supply. At 3:50 you can see the black round cable...
Click to expand...
Click to collapse
It should work the same with a non powered USB except that power will be drawn from the tablets battery power instead of an external power supply.
Sent from my SCH-I535 using xda premium
I tried to use multiple usb flash drives but they were not compatible with the aosp roms otg storage implementations. It recognized the first and after adding the second it didnt recognize it, but the first onewas still tdhere
I think in this case its simply not implemented
I will try flash drive + mouse/keyboard and give feedback when i have time
xeTaiz said:
I tried to use multiple usb flash drives but they were not compatible with the aosp roms otg storage implementations. It recognized the first and after adding the second it didnt recognize it, but the first onewas still tdhere
I think in this case its simply not implemented
I will try flash drive + mouse/keyboard and give feedback when i have time
Click to expand...
Click to collapse
I tried for a couple of days to tweak the implementation in my kernel mod so that multiple usb drives could be mounted, i took pointers from my s3, but it seems samsung have further mods, probably to vold in their own brand devices and i couldnt for the life of me get it to recognise more than one device on the n10.
Sent from my GT-I9300 using Tapatalk 2
I think a powered hub is the way to go if you're using multiple devices as I'm sure there's a limit as to how much power the USB port can supply to your devices. You may find that several flash drives work fine together with a powered hub and I would try to get one with a 5v 2a adaptor if possible to give you flexibility to plug virtually anything in you wish simultaneously
Sent from my XT910 using xda premium
Without a powered hub the deciding factor for how many devices you can use is going to be how much power each device draws... And that will vary from device to device.
I, personally, have had a keyboard, wireless mouse, flash drive and Xbox controller all connected at the same time with an unpowered hub.
Yeah, multiple flash drives and especially external USB spinners tend to draw a lot more power. Input devices (keyboards, mice, joypads) use very little power but a combination of several may be enough to give you intermittent operation and a few issues.
Usually when people start connecting keyboards and suchlike, they're going to be at a desk so should have access to a wall socket anyway; powered hubs tend to make multiple devices work better as it's a stable power supply available.
Sent from my XT910 using xda premium
do you think the n10 provides less poser on its usb bus than a pc or laptop? i think its able to provide the same power as my pc and 3 usb sticks + wireless keyboard/mouse work perfectly with a non powered hub...
btw. i just tried the hub with 1 flash + mouse+ keyboard, works perfectly (aosp rom 2nd dec version i think)
xeTaiz said:
do you think the n10 provides less poser on its usb bus than a pc or laptop? i think its able to provide the same power as my pc and 3 usb sticks + wireless keyboard/mouse work perfectly with a non powered hub...
btw. i just tried the hub with 1 flash + mouse+ keyboard, works perfectly (aosp rom 2nd dec version i think)
Click to expand...
Click to collapse
I'm pretty certain that it does provide less; I have a 2.5" WD Passport HDD that is bus powered. My XOOM used to power it, my PC and laptops power it, but my Nexus 10 doesn't. The N10 certainly isn't pushing 500mA in host mode cause the drive can't even spin up on the power its receiving. It's a real shame cause I had hoped to power the HDD directly.
What I need now is a nice small powered hub that I can power from an emergency phone charger battery, like my Mili Power brick.
Sent from my GT-I9300 using Tapatalk 2

[Q] Pogo pins and OTG question [simultaneous charge & OTG?]

I'm wondering if anyone knows if it's possible to have simultaneous OTG & charging with the use of a pogo pin charger?
For instance, plug in a usb OTG into the main microUSB charging port, and use a pogo pin charger [either make one or buy when they are available], and have a flash drive, or hard drive plugged in, and charge at the same time with the pogo pin connector?
I used to have a Nexus 7, and via a custom kernel, and a OTG charging cable [basically a regular OTG with additional power wires & connector for charger]. But I think it would be simpler to use the pogo pin approach. The only thing I'm worried of however, the kernel might disable OTG while it charges via pogo, or perhaps disable charging while OTG is enabled. I guess in this case, we would need a modified kernel to achieve simultaneous OTG and charging.
Here is a link to one of the first Nexus 10 pogo charger cables and it makes this claim:
"You still can power Nexus 10 while the USB port is otherwise occupied for data uses. It is fun & convenient to have MagNector to free up the USB port and charge faster."
http://www.ebay.com/itm/MagNector-N...ader_Chargers_Sync_Cables&hash=item20ce4990a6
So if that statement is true than the answer to your question is Yes.
eBay item is no longer available..
However, I know how sellers often make unfounded claims like that. So while it's probably a good sign, I am not convinced it's true. If anyone is fortunate enough to have a pogo charger, could you test it out with a otg cable and let us know the results?
Or if you're a kernel hacker, maybe take a look at the kernel source code and tell me what you think?
Also if anyone has a link where I could read about pogo pins for the N10, I'd like to read it. I'm interested in trying to make one, if they don't make any low-cost ones in the near future.
:bump:
mvmacd said:
eBay item is no longer available..
However, I know how sellers often make unfounded claims like that. So while it's probably a good sign, I am not convinced it's true. If anyone is fortunate enough to have a pogo charger, could you test it out with a otg cable and let us know the results?
Or if you're a kernel hacker, maybe take a look at the kernel source code and tell me what you think?
Also if anyone has a link where I could read about pogo pins for the N10, I'd like to read it. I'm interested in trying to make one, if they don't make any low-cost ones in the near future.
Click to expand...
Click to collapse
The answer to the question is ye, you can charge and use otg. Btw, http://pogocable.com/ 20$ isn't a bad price...
lKBZl said:
The answer to the question is ye, you can charge and use otg. Btw, http://pogocable.com/ 20$ isn't a bad price...
Click to expand...
Click to collapse
Just wondering, have you actually tried it yet? I remember on the n7 it would disable pogo charging when you plugged in otg. I hope n10 is different.
Swiped from my Nexus 10 using xda-developers app
I got the pogo cable in today. I plugged the usb-otg cable into the Nexus 10 with a thumbdrive connected to it. Stickmount recognized the thumbdrive and I can read/write to it. I noticed that the battery runs down while the otg is plugged in though. Running Paranoidandroid 2.99 with whatever kernel comes with that.
bd177 said:
I got the pogo cable in today. I plugged the usb-otg cable into the Nexus 10 with a thumbdrive connected to it. Stickmount recognized the thumbdrive and I can read/write to it. I noticed that the battery runs down while the otg is plugged in though. Running Paranoidandroid 2.99 with whatever kernel comes with that.
Click to expand...
Click to collapse
Does it say "Charging (USB)" or "Charging (AC)" in Settings > Battery?
mvmacd said:
Does it say "Charging (USB)" or "Charging (AC)" in Settings > Battery?
Click to expand...
Click to collapse
It says "Charging (AC)"
I know it's not the original question, but it looks like that would be possible with a modified OTG USB cable. Sounds like you already have something similar.
I was thinking about this for using my n10 for larger video recording when away from wifi. Just need to hook a battery up to the OTG while its plugged into the thumb drive. It takes a charge off my laptop when connected via the otg usb, so it should work as well with the correct setup voltage/wiring .
I would also like to know the pin designation for the pogo plug. If you can do the same setup as the one above, with the pogo... There would be less chance of damage to the tablet on the go......
metaled222 said:
I know it's not the original question, but it looks like that would be possible with a modified OTG USB cable. Sounds like you already have something similar.
I was thinking about this for using my n10 for larger video recording when away from wifi. Just need to hook a battery up to the OTG while its plugged into the thumb drive. It takes a charge off my laptop when connected via the otg usb, so it should work as well with the correct setup voltage/wiring .
I would also like to know the pin designation for the pogo plug. If you can do the same setup as the one above, with the pogo... There would be less chance of damage to the tablet on the go......
Click to expand...
Click to collapse
I know a nonstandard OTG cable [a OTG charging cable, basically the same as a regular one, except it has female USB only connected to the charging pins] and a modded kernel allowed for simultaneous OTG + charge on the Nexus 7, but I'd rather not have to deal with that, as getting a separate pogo charger seems like a better option.
mvmacd said:
I know a nonstandard OTG cable [a OTG charging cable, basically the same as a regular one, except it has female USB only connected to the charging pins] and a modded kernel allowed for simultaneous OTG + charge on the Nexus 7, but I'd rather not have to deal with that, as getting a separate pogo charger seems like a better option.
Click to expand...
Click to collapse
It has to be a moded kernel to access the data in read/write mode? Nothing to do with charging, and correct?
What I was considering is a battery/usb hub combo. One that plugs into the micro usb port and the battery actually has a female usb port for the thumb drive (need root to write to the drive, but not to stream from it). Amazon carries lots of external batteries with micro usb connection and the female usb port.
I agree, the pogo would be much simpler and still allow data through the micro usb.
The pogo would be much better for portability for this type of use especially if it allows for faster charging. If no one has the pin layout, guess I'll wait to get mine and test them myself. 6 pins on the n10 itself so it's not a standard usb pin setup?
metaled222 said:
It has to be a moded kernel to access the data in read/write mode? Nothing to do with charging, and correct?
What I was considering is a battery/usb hub combo. One that plugs into the micro usb port and the battery actually has a female usb port for the thumb drive (need root to write to the drive, but not to stream from it). Amazon carries lots of external batteries with micro usb connection and the female usb port.
I agree, the pogo would be much simpler and still allow data through the micro usb.
The pogo would be much better for portability for this type of use especially if it allows for faster charging. If no one has the pin layout, guess I'll wait to get mine and test them myself. 6 pins on the n10 itself so it's not a standard usb pin setup?
Click to expand...
Click to collapse
No, on the Nexus 7, if you plug in a OTG cable [which basically grounds a certain pin, the only difference between micro OTG and micro to full size USB adapter], it disables charging through power pins, because it needs to send power to OTG device, for example, a flash drive. It needs +5V power.
So the kernel mod was to disable the output of power, so that it could instead receive power and charge, from the charger. [The charger also 100% powering the OTG device]
Even if you have an externally powered hard drive, it needs power to turn on, even if it uses a wall adapter for the actual power to run the device.
Here is the kernel I was talking about: http://mehrvarz.github.com/usb-host-mode-power-management-nexus7/
it was made by a rootzwiki user. some discussion here: http://forum.xda-developers.com/showthread.php?t=1934722
Check the images of the USB hub on the 1st link.
Just for the heck of it I plugged a USB cable connected to my PC into the Nexus 10 while the pogo was also connected. The Nexus 10 showed up on the PC as it normally does in the file explorer and I can transfer files back and forth as usual. I went to Settings -> Battery on the Nexus 10 and it showed "Charging AC". I then unplugged the pogo cable and the status changed to "Charging USB". Plugged the pogo back in and the status switched back to "Charging AC". Then to make sure the pogo was actually doing the charging, I watched 2 hours of Netflix with the screen set to full brightness. The battery went down only 2%, so I'm pretty sure the pogo was doing the charging.
Sv: [Q] Pogo pins and OTG question [simultaneous charge & OTG?]
Thanks for your test. However with Nexus 10 connected to pc it is not in otg/host mode. You need to connect for example an usb memory with a otg cable to test if charging work with host mode enabled. There seems to be some discussions going on claiming pogo charging is disabled in host mode on Nexus 10 as well. It would be really really stupid if that's the case and I can't for the world figure out how they could put this limitation in the kernel.
Skickat från min HTC Desire via Tapatalk 2
Johan1976 said:
Thanks for your test. However with Nexus 10 connected to pc it is not in otg/host mode. You need to connect for example an usb memory with a otg cable to test if charging work with host mode enabled. There seems to be some discussions going on claiming pogo charging is disabled in host mode on Nexus 10 as well. It would be really really stupid if that's the case and I can't for the world figure out how they could put this limitation in the kernel.
Skickat från min HTC Desire via Tapatalk 2
Click to expand...
Click to collapse
Yes I tried that and the pogo would not charge.
EDIT: I bought a couple of OTG Y-cables on ebay (1 male micro usb end, 1 female micro usb end and a female usb end) to play around with when I saw they had a fix for the Nexus 7. I tried one on my Nexus 7 (PA rom and Timur kernel), connecting the female usb to a powered usb hub that has 16gb sdhc card plugged into it. Then connected the female micro usb end to a spare micro usb charging cable and the other end of the charging cable to the usb hub. The male micro usb end gets connected to the Nexus 7. I fired up the Nexus 7 while in the Asus pogo dock I bought for it and it charges the Nexus 7 while also allowing the OTG connection. I tried the same setup with my Nexus 10 (PA Rom, Ktoonez kernel) and pogo cable and it worked. The Nexus 10 charges through the pogo cable while the OTG works also. With the usb hub I'm using with the Nexus 10, I had to plug the charging cable into a charger wall wart. I don't think the old hub was putting out enough power to power the usb device. I let them both run over a day like this. Ran some RomToolBox app backups on both them and they both are charging on the pogo pins while doing so. If you go to system settings -> battery it shows "Charging AC" on both.
The galaxy nexus already has a custom kernel that supports OTG + charging (via a y-cable):
http://forum.xda-developers.com/showthread.php?t=1835720
In that thread (and the link in the OP there) there are discussions about porting that kernel to the nexus 7. Also, this modified kernel is (currently) for 4.1.2. Unfortunately I am not smart enough to do this myself (especially we are now dealing with the pogo cable and the USB); I do hope to let everyone -- especially the developers! -- knows about the possibility in view of the gnex kernel.
Is this an issue only with Disk Media over OTG, or is it with anything (controllers, etc.) over OTG?
If anyone is interested read my edit a couple of posts up.
Sv: [Q] Pogo pins and OTG question [simultaneous charge & OTG?]
It says AC charging even though it's not actually charging. Confirm this with for example battery monitor widget.
Skickat från min HTC Desire via Tapatalk 2

Simultaneous OTG and Charging?

Is it possible to enable simultaneous charging and OTG capabilities? I had used this before on a Nexus 7 so I could feed realtime vehicle data into the tablet for digital gauges without running the battery into the ground, and really want to do the same on my 6P.
Xero said:
Is it possible to enable simultaneous charging and OTG capabilities? I had used this before on a Nexus 7 so I could feed realtime vehicle data into the tablet for digital gauges without running the battery into the ground, and really want to do the same on my 6P.
Click to expand...
Click to collapse
OK, so I'm confused about what you are trying to do here.
OTG means the phone is the host to another device, and is powering that device. Like an OTG flash drive. If the phone is powering that device... then no, it isn't charging.
If the phone is receiving power and data from the device it is attached to, then that's pretty normal. It's like plugging it into a PC, right?
To my knowledge, Y splitters are strictly prohibited for Type-C devices, so you cannot add a 3rd device into this scenario. As such, if the phone has to power the device attached to it, and therefore it isn't receiving power from that device, then there is no way to simultaneously charge the phone.
The only scenario I can think of which would fit your description would be this: You connect your Nexus 6p to a USB device which is powered by an alternative source, so that isn't going to draw power from the phone... However, that same device is incapable of providing any power at all to the 6P, yet data is still expected to go between the two devices. If this is in fact the scenario you are describing, then get different equipment, because that manufacturer ignored just about every USB requirement and specification known to man.

OTG and charging at the same time?

Is it possible to attach external devices to the Fire HD 10 via OTG and charge the Fire HD 10 at the same time using those special OTG+charging adapters?
wq0913562 said:
Is it possible to attach external devices to the Fire HD 10 via OTG and charge the Fire HD 10 at the same time using those special OTG+charging adapters?
Click to expand...
Click to collapse
Yes you can. It's also helpful if you want to use a wireless usb controller since it needs the power boost. Here's what I use: https://www.ebay.com/itm/Left-Angle...361414?hash=item48830dbec6:g:rQsAAOSwMmBV5RRC
dondraper23 said:
Yes you can. It's also helpful if you want to use a wireless usb controller since it needs the power boost. Here's what I use: https://www.ebay.com/itm/Left-Angle...361414?hash=item48830dbec6:g:rQsAAOSwMmBV5RRC
Click to expand...
Click to collapse
Thanks. So your tablet is charging while USB mice/keyboards/storage devices are attached simultaneously?
wq0913562 said:
Thanks. So your tablet is charging while USB mice/keyboards/storage devices are attached simultaneously?
Click to expand...
Click to collapse
My pleasure! I have a bluetooth keyboard case. I mostly use it for flash drives and it charges while in use. I also have those devices plugged into my firesticks at all times so I can transfer video files easier and never had a problem
dondraper23 said:
My pleasure! I have a bluetooth keyboard case. I mostly use it for flash drives and it charges while in use. I also have those devices plugged into my firesticks at all times so I can transfer video files easier and never had a problem
Click to expand...
Click to collapse
Thanks for the confirmation. I had been using this cable (https://www.amazon.com/Tendak-Micro...07828&sr=1-2-spons&keywords=otg+y+cable&psc=1) for my Nexus 7 I had installed in my dash, and for some reason it just doesn't work with my HD 8. Even with the USB DAC not connected, the cable registers power, charges for about 30 seconds, then says it's not connected to power anymore. don't have this issue with the Nexus, or with any of my other power cables, but that's the only OTG angle cable I have.
I'll try the one you use, but I'll have to use a Micro USB angled extension to make it fit in the dash. Unless someone else knows of an OTG y cable with an angled plug that actually works for the HD 8?
Update: I've bought two additional otg cables from Amazon, and one will work for the usb device, but doesn't charge the tablet, the other charges the tablet, but won't work for the usb device. After testing both of these several times, they both started to have the same behavior as my other one, it shows charging for a few seconds, then stops, but continues to power the usb device. If I connect a normal power cable it will stay in "fully charged" mode forever and Automate reports power is connected. I'm starting to get really frustrated. I'm pretty sure it is actually charging, because when I left it connected like that for an hour, it never moved from 85%, but then as soon as I plugged in a normal charging cable it started "charging" at about 6% per minute, and said 100% within 3 minutes. Not even a QC 3.0 can do that. I'm so confused.

Categories

Resources