Nexus 4 USB OTG Question - Nexus 4 Q&A, Help & Troubleshooting

I'd really like to hook a USB to RS232 adapter to my nexus 4, I was wondering if this was possible with an app, or if I will need to flash a custom kernel? I do not need USB storage, or usb input devices, just the serial adapter.
I understand the nexus 4 doesn't have a way to power 5V USB devices, but that is OK for my application. I will be able to power the RS232 adapter using the serial device I'm trying to connect to my phone.
If I do need a custom kernel, which one would you recommend? Will I be able to stay on lollipop?
Thanks in advance!

No love, huh?
Alright, thanks anyway!

pontiacg5 said:
No love, huh?
Alright, thanks anyway!
Click to expand...
Click to collapse
Check this out, it supports otg with a usb Y cable

I went through that thread for hours trying to figure out if it works with lollipop only to find the answer in the original post several attempts later. I don't know how I missed that, so many times.
Thank you for the link, I'm going to give it a try.

Related

[Q] Homemade USB hub? (no soldering!)

I posted this on Plopper's thread here(http://forum.xda-developers.com/showthread.php?t=923864) but thought it might be better here as I might get a quicker reply
"I have bought a 4 way USB hub which has a usb socket on its input lead. This can be plugged into your PC or into a usb mains charger or usb car charger.
If the input lead is plugged into one of the four output sockets and the lead is cut open and the red and black wires are exposed, a 2A 5v charger can be connected to these wires by twisting together and taping.
This then powers both sides of the hub with 2A supply and by-passes the protection.
It does sacrifice 1 output socket but HD2 +keyboard+mouse= happy Ubuntu
Will this work?"
I am dying to try it but thought I'd check with tech savvy types first.
Edit; I am thinking now that the green and white data cables in the input leads may have to be cut and the ends taped, but it may not matter(?)
Have attached photo of the hub and the charger
The charger is an old Nokia one and has a lump of plastic near the end which I assume houses a fuse of sorts.
Reading through Plopper's thread again I am sure this is OK, but am unwilling to brick my HD2!
You could get a 7 way usb hub and add things like external HDD or (my favourite) a usb fan to cool down your HD2!
Working
OK over 300 views of this thread and no reply!
this usually means the idea is a dud or its been done before!
I have searched around but can only find y-cables, which supply extra 500mA from another USB socket but only allow 1 device connection.
If this has been done before, I apologise.
However, I got bored of waiting and went ahead with cutting up leads and splicing wires. I flashed WM6.5 and loaded Ubuntu 0.3 (only one with USB host that I can find!)
AND IT WORKS!!!!!
I had to buy a micro USB cable because I didn't want to cut my stock one (get a data cable because a charging cable only has 2 wires in it).
Note on cable colours, apparently there may be variation on some manufacturer's cable core colours, take care to identify by tracing circuits on the hub and checking continuity from the pins to each core.
Also, being an electrician, I am wondering what the current carrying capacity of the tiny core cables are, I will have to look it up at some point (adiabatic equation) meanwhile check for overheating.
Enjoy! (something to do on wet weekend!)
Homemade USB
i made this, unfortunately i can't use it with 0.3 bucouse i installed magldr and i use Android, and linit tutorial doesn't work for me
http://i54.tinypic.com/2dquiwo.jpg
http://i54.tinypic.com/2zsxz6b.jpg
Impressive!
It sure beats the above from me.
What do you use it with?
What else might support USB hosting?
I prefer to use WP7 and Android too (see sig)
i made it for HD2 for use it with Ubuntu, i hope that the v0.4 come out soon and with usb host support...
Doh!
467 views after first posting this and after re-reading plopper's thread again I have realised what plopper and Mister B were saying in their last posts.
There is no protection in unpowered usb hubs, so no need to bypass it!
I have over-complicated everything.
It is only necessary to change the hub lead plug to a microUSB one and then connect the charger to the usb plug which you have just cut off, then plug it into one of the spare ports.
Oh well never mind!
i take a photo with HD2 on it http://i53.tinypic.com/34dr96v.jpg
很好很强大!
nice... ...but, don't smoke so much....
Guys,
For those using Android, you can try Dorimanx's latest 2.9.9 ROM which claims to have USB Host enabled. I don't have a USB OTG cable to try it on, but let us know if having a self-powered USB hub works on it. Thanks
nikola360 said:
i take a photo with HD2 on it i53.tinypic.com/34dr96v.jpg
Click to expand...
Click to collapse
OMG this thing is amazing! I really want to make something like this, got any pointers on how to do it?
wow thats the crazyest mod ever you should move to hardware moding scection! maby you will get more help!
bever86 said:
OMG this thing is amazing! I really want to make something like this, got any pointers on how to do it?
Click to expand...
Click to collapse
Thanks!....unfortunately i haven't a tutorial, i made it only with my fantasy, i saw 2 DVD cases and i made it.
Guys,
For those using Android, you can try Dorimanx's latest 2.9.9 ROM which claims to have USB Host enabled. I don't have a USB OTG cable to try it on, but let us know if having a self-powered USB hub works on it. Thanks
Click to expand...
Click to collapse
i tried it (XB V.19 that is based on it, with the same kernel USBH enabled) but unfortunately it doesn't work, i saw in the system partition of this rom and i saw that there aren't any driver for USB hardwares support (USB Keyboard, mouse, USB Flash memory...)...so i think that the problem is this (no drivers support)
nikola360 said:
i take a photo with HD2 on it http://i53.tinypic.com/34dr96v.jpg
Click to expand...
Click to collapse
This looks really cool, you should produce it and offer it, I guess I would buy it

Regarding USB Adapter ...

Hi,
I have a few questions regarding the extra functionality available through the USB adapter that I would be grateful if someone could answer. I really like the look of this device but am unsure about a few things.
1) Does the USB adapter (30pin to USB) allow charging at the same time?
2) Does anybody know if there is a docking station that will provide USB & HDMI out. It would be nice to use this device, attach a harddrive and output to a TV.
Thank you for your time!
jimmybob_007 said:
Hi,
I have a few questions regarding the extra functionality available through the USB adapter that I would be grateful if someone could answer. I really like the look of this device but am unsure about a few things.
1) Does the USB adapter (30pin to USB) allow charging at the same time?
2) Does anybody know if there is a docking station that will provide USB & HDMI out. It would be nice to use this device, attach a harddrive and output to a TV.
Thank you for your time!
Click to expand...
Click to collapse
i suppose it might be possible if you were to use a multi usb port adapter with the usb adapter. I am not really sure if that will work though.
I talked with Samsung support today asking if the USB dongle could be attached to a regular USB cable for charging and they said yes.

Usb otg on standard charger cable?

Hi there. Recently got nexus 7 there and I was not going to root or mess with it but the lack of otg cables around my area is
Doing my head in. But on my HTC one s I have a mental installed by a dev called zarboz. He got the standard USB cable that goes from the charger to the device working as an otg cable. Without having to buy a proper otg cable.
is there a kernel that supports this. I have been looking but have not found anything on it.
snwman said:
Hi there. Recently got nexus 7 there and I was not going to root or mess with it but the lack of otg cables around my area is
Doing my head in. But on my HTC one s I have a mental installed by a dev called zarboz. He got the standard USB cable that goes from the charger to the device working as an otg cable. Without having to buy a proper otg cable.
is there a kernel that supports this. I have been looking but have not found anything on it.
Click to expand...
Click to collapse
All kernels support otg. Even the stock. Some dont have automount for external drives, but I have yet to find one that didnt accept a kb or mouse immediately. Now, otg plus host mode charging is a different story.
Sent from my Nexus 7 using xda premium

[Q] Connecting the device to a TV

Hi everyone,
I've searched this forum and on Google but didn't really find the answers to my questions.
If I want to connect my Nexus to a TV (that has a USB port of course) what cables and adapters do I need to use?
By searching I found out I need this adapter:
http://www.amazon.com/gp/product/B009UZBLSG
But what other cable/s do I need?
Thank you.
TheeWolf said:
Hi everyone,
I've searched this forum and on Google but didn't really find the answers to my questions.
If I want to connect my Nexus to a TV (that has a USB port of course) what cables and adapters do I need to use?
By searching I found out I need this adapter:
http://www.amazon.com/gp/product/B009UZBLSG
But what other cable/s do I need?
Thank you.
Click to expand...
Click to collapse
just a full-size hdmi cable.
TheeWolf said:
Hi everyone,
I've searched this forum and on Google but didn't really find the answers to my questions.
If I want to connect my Nexus to a TV (that has a USB port of course) what cables and adapters do I need to use?
By searching I found out I need this adapter:
http://www.amazon.com/gp/product/B009UZBLSG
But what other cable/s do I need?
Thank you.
Click to expand...
Click to collapse
Just a heads up, there are cheaper ones that work better...
You screen will flicker with the SlimPort... at least mine did.
theabsurdman said:
just a full-size hdmi cable.
Click to expand...
Click to collapse
Can you show me an example, give me a link in Ebay or something? I seriously don't know what to search for.
UberSlackr said:
Just a heads up, there are cheaper ones that work better...
You screen will flicker with the SlimPort... at least mine did.
Click to expand...
Click to collapse
Thanks, how are they called?
Can someone help? Do I need to buy a cable that has a male HDMI connector and a male USB connector so that it connects to my TV?
And along with it I need the slimport adapter (or any other adapter)?
Thanks.
TheeWolf said:
Can someone help? Do I need to buy a cable that has a male HDMI connector and a male USB connector so that it connects to my TV?
And along with it I need the slimport adapter (or any other adapter)?
Thanks.
Click to expand...
Click to collapse
Just a normal male to male hdmi cable, slimport goes to the hdmi input on your tv
It's easiest to just get a Miracast adapter since that's what the Nexus uses for Wireless Display. Just connect that little box to your TV via said HDMI cable and the nexus will connect to it directly, wirelessly.
shotta35 said:
It's easiest to just get a Miracast adapter since that's what the Nexus uses for Wireless Display. Just connect that little box to your TV via said HDMI cable and the nexus will connect to it directly, wirelessly.
Click to expand...
Click to collapse
That's no good for gaming though as there is a slight delay

No power going through OTG cable?

I've recently bought a USB OTG cable but my phone (D290N) doesn't give power to any device I connect. I tried on a Lenovo tablet I have handy in my home and I can confirm that the problem is only with our device. How can I make my phone give voltage to the OTG cable ?
proudlytm said:
I've recently bought a USB OTG cable but my phone (D290N) doesn't give power to any device I connect. I tried on a Lenovo tablet I have handy in my home and I can confirm that the problem is only with our device. How can I make my phone give voltage to the OTG cable ?
Click to expand...
Click to collapse
A quite simple answer.. It doesn't support OTG...
Ky$h said:
A quite simple answer.. It doesn't support OTG...
Click to expand...
Click to collapse
Maybe the hardware does but the kernel doesn't
sdeepb said:
Maybe the hardware does but the kernel doesn't
Click to expand...
Click to collapse
But even I am not able to use OTG..
Ky$h said:
But even I am not able to use OTG..
Click to expand...
Click to collapse
Haha otg is not only about hardware the kernel also has to support it, even my secondary device supports it by hardware but the kernel doesn't.....
Of course it does support otg, but not fully. It doesn't give power when u connect something to the port though.. :/ So how can I make it give power ?
proudlytm said:
Of course it does support otg, but not fully. It doesn't give power when u connect something to the port though.. :/ So how can I make it give power ?
Click to expand...
Click to collapse
You have to get an otg set up with a separate power source. The old nexus 4 was the same way.
How exactly do I do that? I have one more cable with a USB A Male connector.
proudlytm said:
How exactly do I do that? I have one more cable with a USB A Male connector.
Click to expand...
Click to collapse
To be honest I am not sure as I never used the OTG for the nexus 4 or any device I have used so far so really have not looked into it.

Categories

Resources