Related
Not sure if this has already been discussed/discovered, but will it be possible to use the new Nexus dock "and" an OTG cable at the same time? It seems feasible given that the dock charges the device using the pin connectors which frees up the USB port.
One possible problem is that the dock also acts as a passthrough for data/audio so there may be a problem with the tablet trying to reconcile both sources trying to have simultaneous access.
I ask because it would be nice to be able to charge my Nexus 7 and utilize an OTG cable (for storage drives and game controllers) at the same time. I know there is an OTG Y-cable solution, but that involves rooting the tablet.
Has anyone already explored the possibilities of this combination?
Xenoterran said:
Not sure if this has already been discussed/discovered, but will it be possible to use the new Nexus dock "and" an OTG cable at the same time? It seems feasible given that the dock charges the device using the pin connectors which frees up the USB port.
One possible problem is that the dock also acts as a passthrough for data/audio so there may be a problem with the tablet trying to reconcile both sources trying to have simultaneous access.
I ask because it would be nice to be able to charge my Nexus 7 and utilize an OTG cable (for storage drives and game controllers) at the same time. I know there is an OTG Y-cable solution, but that involves rooting the tablet.
Has anyone already explored the possibilities of this combination?
Click to expand...
Click to collapse
I read somewhere else that while docked, the device doesn't react to an OTG cable. This is just what I've heard, haven't seen it confirmed.
This guy did something similar, and the results are evident: Dock point is useless! Charge and OTG can not be carried out simultaneously!
Would be nice to know, if Timurs kernel, which allows charging and multiple USB would solve this. Have no dock, so I can not check. What I would like to have is something like the magnetic pogo charger which is annonced for Nexus 10.
Hi,
As you know, the Nexus 4 doesn't support USB OTG, meaning you can't use it with USB drives, gamepads, etc.. One reason is that the device doesn't seem to provide the neccessary 5V, the other reason is that it's not supported by the kernel.
So, I've been digging a bit, and now I can claim partial success! It's possible to supply the 5V yourself, and then activate USB host mode manually. It's a bit cumbersome, but for the beginning better than nothing. I tried a mouse and USB drives.
I should warn you that this is just a proof of concept and nothing that you'll want to use on a daily basis. Regular USB doesn't work properly while running this kernel, and I haven't checked battery consumption. Also this is based on Android 4.2.1, and if you have 4.2.2 you might not be able to make calls. That shouldn't be a problem as this is for testing only, though. Just let me say, I can't guarantee for anything, and I'm not responsible if you brick or blow up your phone.
You'll need:
- A USB OTG cable
- A USB Y cable to provide the 5V (It has two USB-A plugs and one USB-A socket.)
- My custom kernel
- Unlocked bootloader
- Android developer tools (adb, fastboot)
Load the boot image on your phone (this is not permantent):
Code:
$ fastboot boot myboot.img
Connect everything as follows (should be obvious):
- Y cable power plug (typically red) to the PC or adapter
- Other Y cable plug into the OTG cable
- OTG cable into the phone
- USB device into the Y cable socket
You need a remote shell on your device. Use adbWireless or similar to enable ADB over WiFi, then do:
Code:
$ adb connect 192.168.0.108:5555
(or whatever your phone's IP is)
$ adb shell
Now you should be on your phone. Do
Code:
[email protected]:/ $ ls /sys/kernel/debug/msm_otg/
and you should see 'mode' if the new kernel works. Now become superuser and enable USB host mode:
Code:
[email protected]:/ $ su
[email protected]:/ $ echo host > /sys/kernel/debug/msm_otg/mode
To disable USB host mode, use "none" or "peripheral". Note that at this point, I couldn't get it to go into regular USB mode. This means that MTP and adb over USB doesn't work yet.
Connect a device, and you should see more than two entries under "lsusb". Congratulations, your Nexus 4 has just recognized it's first USB device! If you install Stickmount (you have to sideload it since it's marked as not compatible), you can mount USB flash drives. Nexus Media Importer doesn't seem to work, though.
How does this work?
Basically, I just added the following line to the beginning of msm_otg_debugfs_init in msm_otg.c:
Code:
motg->pdata->otg_control = OTG_USER_CONTROL;
This enables the mode file in debugfs I use for mode switching. The next step would be to enable manual mode switching while keeping regular USB support, which shouldn't be too hard. Later down the line we can think about switching automatically on cable insertion, and maybe event getting 5V out of the device, but that would be a lot harder.
So, try it out, let me know if it works for you, and feel free to tinker around and improve what I've got!
Nice to see some progress going. Only thing that irks me is the Y cable though, kinda defeats the purpose of OTG to me...
Thanks a bunch for your work though!
Sent from my Nexus 4 using xda premium
You are a genius. :good:
Just connected a powered USB-HUB and a mouse to my OTG cable, flashed the kernel and typed the commands directly with a terminal app on the device.
It simply works !!!
Awesome development, one of my biggest gripes was the lack of USB OTG, I just assumed it was included as stock, that's why part of the reason I purchased this device.
This is awesome. Going to have to order some cables now. Since we have to supply power anyway, is it possible to support usb-otg + charging? Figure the phone is "too thin" anyway... I'll probably be making a 64gb microsdxc + battery case for the phone. Hello extended battery life.
Great work, I was just looking for this yesterday. Would it work with a USB dac (Assuming I had a powered usb hub)? Just asking because I think usb audio is often overlooked, and I would really like to have it.
Nice!
It would also be interesting to see if the slimport adapter allows otg pass through (their website says it does)... Then that's HDMI +charging +mouse/keyboard. Even miracast + mouse/keyboard would be awesome
Sent from my Nexus 4 using Tapatalk 2
Flynny75 said:
Even miracast + mouse/keyboard would be awesome
Click to expand...
Click to collapse
we've already got that, haven't we?
Finally! Now I will get to use my 1TB Portable HDD!!
My 8 gig is FREE! Lol
Sent from my Nexus 4 using Tapatalk 2
I'd like to be sure I'm getting a good USB Y cable. I see a few on Amazon, some have the word 'Power' in them, some don't. Most don't have a red plug. Are there some specific characteristics I should look for in the description to know that it's suitable for this purpose?
Here's one example that does NOT say 'Power' in its description.
http://www.amazon.com/OEM-UTStarcom-USB-Adapter-Cable/dp/B002W8EDOM/ref=pd_sim_e_2
Thanks, CaptainMuon, for your terrific work!
EDIT: After reading Scorpio16v"s post (and watching his video...thank you!), I thought I would try with a powered hub, since I don't have the Y cable. Also, I used the terminal emulator instead of adb, as he suggested. YES! It worked with a USB micro sd card reader adapter (I had bought it from ebay specifically for this Nexus 4 since I knew there was no sd card slot). That required stickmount, as CaptainMuon mentioned. Then I tried a USB mouse, and that worked also. This is great!
I'd still like to know more about the Y cable, as I asked above, even though this other method worked well for me.
Wonderful!!
R: Manual USB OTG working
Can the USB hub be non powered?
Inviato dal mio Nexus 4
Cice96 said:
Can the USB hub be non powered?
Inviato dal mio Nexus 4
Click to expand...
Click to collapse
When I powered off my USB powered hub, neither the USB Micro SD or the USB mouse worked.
Greaaatt news and excellent development on this front sir.
I was eagerly waiting for someone to come up with a solution to this topic.
But coming back I've read in so many places that a kernel can be tweaked so as to supply 5V to the socket!!(I'm considering that is the problem here. With power supply its working).
??
Sent from my Nexus 4 using xda app-developers app
Awesome, my one gripe with the phone is now (almost) gone!:good:
Any chance it it'll work with non-OTG cables/adapters (The plain USB host ones which don't have that extra pin)?
Just posting to thank you for all the time and effort you must of put in.
ziddey said:
This is awesome. Going to have to order some cables now. Since we have to supply power anyway, is it possible to support usb-otg + charging? Figure the phone is "too thin" anyway... I'll probably be making a 64gb microsdxc + battery case for the phone. Hello extended battery life.
Click to expand...
Click to collapse
It seems to be charging in USB host mode. (In my Y cable, the +5V line connects all three plugs, so the phone gets juice too. Not sure if that's always the case.) We have to do some testing to see if it charges at normal speed, etc.
eiriklf said:
Great work, I was just looking for this yesterday. Would it work with a USB dac (Assuming I had a powered usb hub)? Just asking because I think usb audio is often overlooked, and I would really like to have it.
Click to expand...
Click to collapse
I guess, if it is supported on any other android device, it should be possible here. Would be great if someone with a DAC would try it!
Flynny75 said:
It would also be interesting to see if the slimport adapter allows otg pass through (their website says it does)... Then that's HDMI +charging +mouse/keyboard. Even miracast + mouse/keyboard would be awesome
Click to expand...
Click to collapse
Dito. If someone has such an adapter, I'd be excited to know if it works.
sga999 said:
I'd like to be sure I'm getting a good USB Y cable. I see a few on Amazon, some have the word 'Power' in them, some don't. Most don't have a red plug. Are there some specific characteristics I should look for in the description to know that it's suitable for this purpose?
Here's one example that does NOT say 'Power' in its description.
http://www.amazon.com/OEM-UTStarcom-USB-Adapter-Cable/dp/B002W8EDOM/ref=pd_sim_e_2
Click to expand...
Click to collapse
Hmm, I don't know how you could make a Y cable that doesn't provide power from one end, and data from the other . It should work, but I know there are a lot of scam/poor quality cables out there, so I can't guarantee it. I've got this one:
http://www.amazon.de/Delock-Adapter...=sr_1_4?s=ce-de&ie=UTF8&qid=1361096352&sr=1-4
Yes good through bro...well done
But ohhhh man...i hate to use extra stuff like y cable and a powersource....
F**k google
Sent from my Nexus 4 using Tapatalk 2
you should post this to development section ;
let's see if other dev can also contribute to make a nice working kernel with these stuff;
without any bugs you had mention above.
BTW ;
Nice work Bro. :good:
by the way ; i can use my powerbanks as the power source. so i don't need any land electric sources.
not yet try it, i will need to find the XY cable first ( non powered USB Hub will do fine, and powered by the 11000Mah Powerbanks )
Hi,
My HTC J One ([email protected]) got wet and Wifi dead. I want use it as desktop computer.
OTG for KB,mouse and USB-LAN, MHL for display. And the phone must be always powered.
(I need to find a ROM that support LAN and compile kernel module for my USB-LAN.)
So is that possible to use OTG and MHL at same time while charging the phone?
No ideas?
When I tested this, I couldn't even charge+OTG at the same time. I'm not sure whether that's a kernel restriction or hardware.
Nexus 7 (2013) with OTG and charging at the same time.
NO MODE NEEDED
[Little Intro]
I bought a Nexus 7 (2013) to use as a personal computer.
I admit, I've ****ed up the device a few times experimenting with kernels and stuff.
The thing is, you just need it rooted to use USB reading. Then you think: ok, I'm using USB and external HDs, I'm using mouse and keyboard, a external all-in-one Card Reader, and even a device that communicates with an XBox Wireless controller, but using as a computer the battery will go quickly.
I've tried two Android Cyanogen's distros and ****ed up the device 6 times. So I kept the default kernel rooted, plugged into the USB Hub device and said: well, **** off.
The thing is, when using the device I've noticed it was charging, but not saying it was charging.
[Explanation]
With my little technical knowledge of electronics I can explain what happens here.
The kernel does not support the use of OTG and charges at the same time: that is theoretical, saying that in software is not the same that measuring that.
So, what if the system charges but it just do not know?
Even if the both sides have the same potencial difference (I guess that is called voltage in english, a term disregarded in my born language, sorry about my english by the way), what if one side is providing a larger current? In theory the other side will charge, if it is a battery.
So, what actually happens is that the Nexus 7 charges, but the system level software, that, in theory, do not permit that, just do not show what is actually happening.
Obs.: I've tested the USB-Hub into my computer and it accuses overvoltage, and then when plugged to my computer I need to turn off the external power of the gadget. So, it is probably because of the specific gadget I'm using.
[Little things]
That could, may, just be possible with some specific equipment, so I will post the exactly equipment I'm using, and how I'm using it.
I ask you guys just try without the power loop I'm using to know if it is necessary, and the Nexus 9 guys to test if the same happen with it.
[The equipment]
My USB-Hub: www.dx.com/p/7-ports-powered-usb-hub-678
My OTG cable: www.dx.com/p/micro-usb-male-to-usb-female-w-usb-male-otg-cable-black-170927
[How do I connect it]
I connect the OTG cable by the male micro-USB into the tablet, loop the power with the male-USB into any USB port of the hub and connect the female-USB into the default hub main port - that one that is not the default USB-like format.
I power the USB hub and that's it. I'm using a Logitech dual transceiver with mouse and keyboard, the default microsoft XBox USB gadget, a generic all-in-one card reader and a 4GB Seagate external HD plugged into the hub.
[A final little thing]
Yes, it does not charge quickly, and yes, sometimes the battery level will be consumed a little bit. But it works well generally, without any mode needed.
It seem that is not the same as in powering mode. I'm thinking in to build an image that permits to choose between on or off in the USB out port. Can someone guarantee me that this is what the Cyanogen kernels do?
Kernel mode differences
Just to be clear, the "original" kernel mode can't know that it is charging and accessing the OTG at the same time, even doing it.
Maybe, and just maybe, the other kernel modes just let the kernel know it, having no difference to the original kernel. That's a big maybe, but a possible one.
I'd expect someone to confirm that the kernel modes "cut off" the voltage, and because of that may charge faster. Someone?
Hi,
I just rooted my blu r1 hd and confirmed it by opening my #supersu app. I have root access. But I still am unable to make my phone detect my otg usb. I tried usb otg helper - but that doesnt seem to help. I tried stickmount and it doesnt work.
Can someone please help?
Thanks so much
ravishankar_sitar said:
Hi,
I just rooted my blu r1 hd and confirmed it by opening my #supersu app. I have root access. But I still am unable to make my phone detect my otg usb. I tried usb otg helper - but that doesnt seem to help. I tried stickmount and it doesnt work.
Can someone please help?
Thanks so much
Click to expand...
Click to collapse
Out of Box the R1 doesn't support OTG, there was a report of someone making it work with a powered hub. But BLU states no OTG.
Used other checker
Hi,
Mi used otg checker and it confirms that my rooted device supports otg. It did not say that before rooting. But still my device does not recognize otg.
Please help.
Thanks
ravishankar_sitar said:
Hi,
Mi used otg checker and it confirms that my rooted device supports otg. It did not say that before rooting. But still my device does not recognize otg.
Please help.
Thanks
Click to expand...
Click to collapse
As stated, the R1 does not support OTG. You can try a powered OTG hub, but your not going to get enough power from the USB port alone on the R1.
Hi Kal250,
Thanks for your reply. Please excuse my ignorance. What is a powered otg hub?
Can you please give an amazon link as a product example?
Your help is much appreciated. I understand that you are saying that it may/may not work. But I want to give it a try.
Thanks so much
ravishankar_sitar said:
Hi Kal250,
Thanks for your reply. Please excuse my ignorance. What is a powered otg hub?
Can you please give an amazon link as a product example?
Your help is much appreciated. I understand that you are saying that it may/may not work. But I want to give it a try.
Thanks so much
Click to expand...
Click to collapse
I can't verify that this will work, there was only one user who reported success using an adapter, though I can no longer find the post, anyhow you can give this a try, you will have to supply power with a charger cable, but I make no guarantee as to if it will work. BLUs official statement is no support for OTG. I'm not responsible if you damage your device(s)!!
https://www.amazon.com/gp/aw/d/1059...ed+adapter&dpPl=1&dpID=41e4lIWfNlL&ref=plSrch
kal250 said:
I can't verify that this will work, there was only one user who reported success using an adapter, though I can no longer find the post, anyhow you can give this a try, you will have to supply power with a charger cable, but I make no guarantee as to if it will work. BLUs official statement is no support for OTG. I'm not responsible if you damage your device(s)!!
https://www.amazon.com/gp/aw/d/1059...ed+adapter&dpPl=1&dpID=41e4lIWfNlL&ref=plSrch
Click to expand...
Click to collapse
Thanks a lot kal250! I am going to give it a try!
ravishankar_sitar said:
Thanks a lot kal250! I am going to give it a try!
Click to expand...
Click to collapse
Did you try the powered usb hub?
wfandreas said:
Did you try the powered usb hub?
Click to expand...
Click to collapse
I dont think it will work, i believe only one user reported that, and nobody has verified....
kal250 said:
I dont think it will work, i believe only one user reported that, and nobody has verified....
Click to expand...
Click to collapse
I'll try it this weekend.
Holy crap, can confirm.
I first tried using this powered hub, as well as a powered usb otg cord (similar to this one), it read my generic usb stick, as well as a 500gb HD (well, sorta, it saw it but can't read ext4).. Then I tried just the otg cord, powered, and it worked. As long as it was getting external power, it seemed to work just fine.
Bare in mind, it "NEEDS" the powered OTG cord, running it without having a micro usb hooked up to power in and it didn't work at all, at least for me. Though you can run the hub without power, don't know why this is, but it was how it was acting.
Non drive testing:
It also sorta saw my Logitech F310. In that it pops up that it is disconnecting, but never shows up while connected (with gba.emu). A 360 controller did nothing.
Mouse and Keyboard worked just fine.
USB Audio seemed to not work, at least with my crappy Griffin iMic (think it is an apple device, I got it at goodwil). I also tried a Logitech usb speaker (not sure what model). No audio came though, thought the buttons worked (play/stop/volume/skip). All this with "Disable USB audio routing" not on (as well as on, just in case i was misreading it).
I also have a Pinnacle Systems AV to USB2 (old school rca video cables to usb) adapter I "could" check, however I know of no android app that can take that in. I do know it works with linux by default, ala V4L2, but android is a mystery. It does light up, but other then that no idea, looking through dmesg was a bust for me at least. Eh, nitch item anyways, doubt much here would use it.
Can't think of anything else to test at the moment, but I hope this helps you guys out a bit.
Tried the powered OTG cable and was able to mount a USB flash drive. I did not have to root my R1 HD to get this to work. The mounted drive did not show in ES Explorer or in Solid Explorer. But I can go to Settings -> Storage & USB and click on the mounted drive. That puts me in the system file explorer and I can copy files. (Do choose "Show SD Card" in the menu. Otherwise there are not many places to copy to.)
---------- Post added at 11:49 PM ---------- Previous post was at 11:20 PM ----------
Following up: of course you have supply power to the microUSB port of the powered OTG cable. I tried supplying power from an AC adapter and from an external battery both worked.
Another note: to copy files from the USB flash drive to internal SD or external SD, click on the USB Drive (in Settings->Storage & USB) first, select some files. Then, navigate to the place where you want the copy. If you want to copy to the USB drive, then click on the internal or external SD card (in Settings->Storage & USB) and do the same thing.
I got OTG to work with a powered OTG cable but I couldn't get UVC to work
Has anybody else tried using a USB camera?
Sent from my R1 HD using Tapatalk
I bought a Blu R1 specifically to use in a pair of Gear-like VR goggles, as an FPV headset for quadcopter flight. I was hoping to wire (solder) a wireless receiver to a USB UVC stick, run Go FPV (split-screen Cardboard-like vid player), and power all with a 10k mAh power bank battery.
I'm hoping the UVC not working is just a case of a missing driver. Can you (moshiach101) load a webcam app from PlayStore and see if that installs drivers?
zx2gsxr said:
I bought a Blu R1 specifically to use in a pair of Gear-like VR goggles, as an FPV headset for quadcopter flight. I was hoping to wire (solder) a wireless receiver to a USB UVC stick, run Go FPV (split-screen Cardboard-like vid player), and power all with a 10k mAh power bank battery.
I'm hoping the UVC not working is just a case of a missing driver. Can you (moshiach101) load a webcam app from PlayStore and see if that installs drivers?
Click to expand...
Click to collapse
OK. I tried it with a USB wall-mount charger, USB-C micro in a brand new power OTG cable, with a Logitech V-U0007 webcam which was shown to work on a PC.
No dice. I conclude the Blu R1 HD does not support UVC via the USB port.
(and the phone is completely useless to me as I have a good phone and Sprint plan for the family already...)
Is there a way to add the UVC driver to the phone?
Is it part of the ROM, kernel?
Sent from my R1 HD using Tapatalk
moshiach101 said:
Is there a way to add the UVC driver to the phone?
Is it part of the ROM, kernel?
Sent from my R1 HD using Tapatalk
Click to expand...
Click to collapse
It should be added by adding an app which needs it.
The UVC setup works with my HTC One M7. Not with the Blu, so I think this is a HW/FW limitation.
Try OTG Patch or similar from playstore
guliver365 said:
Try OTG Patch or similar from playstore
Click to expand...
Click to collapse
No dice (I just tried). Pretty sure it's an MTK processor, which doesn't do OTG, and probably why it's cheap enough to sell at this pricepoint.
ravishankar_sitar said:
Hi,
I just rooted my blu r1 hd and confirmed it by opening my #supersu app. I have root access. But I still am unable to make my phone detect my otg usb. I tried usb otg helper - but that doesnt seem to help. I tried stickmount and it doesnt work.
Can someone please help?
Thanks so much
Click to expand...
Click to collapse
Use a powered hub I have tried and it works for most devices (keyboards, mice, and USB drives), but for other devices such as an arduino, which is what I needed, use USB Host Diagnostics to install a patch.