[Q] Help with USB Host (OTG) - Nexus S Q&A, Help & Troubleshooting

Hi All,
I'm trying to get a USB device connected to my phone (specifically an OBDII reader with Torque Pro). No matter what I do, I can't get it to recognize on my Nexus S 4g. When I run USB Host Diagnostics, it basically says it can't find anything.
I'm running a flavor of Cyanogen 10 with its stock kernal.
My questions are:
Do I need to go through a powered USB hub to get the proper power?
Do I need a specific kernel with the correct host modules enabled? (if so, can someone point me to one)
Thanks,

Torque Pro worked fine with my NS4G with a cheap ebay bluetooth adapter with no hassle. That adapter had no batteries at all, it was powered through the ALDL port on the car. I couldn't imagine needing power since no scanner I know of needs power at the ALDL port, it pulls it from the port itself. I would bet it is USB driver problems, or problems reading the USB adapter through Jellybean because of this new MTP protocol that sucks

Good to know.
Should I try a HoneyComb ROM? I guess it COULD be the OTG cable I got from amazon. Maybe it's not plugging in all the way.
thx
DizturbedOne said:
Torque Pro worked fine with my NS4G with a cheap ebay bluetooth adapter with no hassle. That adapter had no batteries at all, it was powered through the ALDL port on the car. I couldn't imagine needing power since no scanner I know of needs power at the ALDL port, it pulls it from the port itself. I would bet it is USB driver problems, or problems reading the USB adapter through Jellybean because of this new MTP protocol that sucks
Click to expand...
Click to collapse

shelbydz said:
Good to know.
Should I try a HoneyComb ROM? I guess it COULD be the OTG cable I got from amazon. Maybe it's not plugging in all the way.
thx
Click to expand...
Click to collapse
No Honeycomb roms for Nexus S...
I highly suggest a OBDII bluetooth adapter. They're 15$ on the net and will spare you the trouble. Make sure you find one that has good reviews, some cheap ones have problem connecting to some cars because of broken J1850 PWM (i think it's PWM, might be VPW) protocol.

Related

[Q] HP Touchpad OTG support?

So simple question, does anyone know (have tasted) if Touchpad supports OTG like for example Galaxy S2?
I bought these from DX: http://www.dealextreme.com/p/micro-usb-on-the-go-host-otg-adapter-pair-50774 and is working great with my Galaxy S2, but can it be used for Touchpad?
First, it is TESTED.
Second, Nope no native support yet, might have to wait till android port is complete, might take a couple of months.
[Q] USB OTG?
That's pretty cool, keep up the work.
Does anyone have ubuntu chrooted to check if the usb module is reporting anything?
kinda pre emptively ordered one in hope.
http://www.ebay.co.uk/itm/New-Micro-USB-Male-USB-Female-Data-Cable-Adapter-/280715545728?
Apparemtly there is built-in OTG USB support using a powered hub or Y cable, and an OTG mini-male to regular female USB adapter, according to rootzwiki.com/showthread.php?4332-Functional-USB-Host-on-Touchpad
Bill2 said:
Apparemtly there is built-in OTG USB support using a powered hub or Y cable, and an OTG mini-male to regular female USB adapter, according to rootzwiki.com/showthread.php?4332-Functional-USB-Host-on-Touchpad
Click to expand...
Click to collapse
One of those newbs who can't post links eh? I'll fix that...
http://rootzwiki.com/showthread.php?4332-Functional-USB-Host-on-Touchpad
The Touchpad doesn't have a powered port is the only problem - so provide power to whatever device and you're good to go.
what about a external HDD with its own powe supply, will it work..
unfortunately, i'm still waiting for my TP so cant test
Does it work with your HD2?
If so, there is no reason not to work with TP
(Hint: HD2 has same kind of usb host capabilities that needs external power supply)
So was it ever established whether or not USB OTG works on the Touchpad? Sorry to necro-post, but I picked up a touchpad during the firesale, have been loving it with first WebOS then CM9, and since I ordered a USB OTG adapter for my GSIII (this friday!) I was curious if there was anything I needed to know about using OTG with the HPTP.
It just works with a powered adapter. Nothing more to it then that. I've plugged almost everything into mine!
Sent from my SAMSUNG-SGH-T989 using xda premium
This thread has pictures links etc of the cable setup I'm using on cm9 with the TOUCHPAD
http://forum.xda-developers.com/showthread.php?t=1934380
[Tips and Tricks] OTG (USB Host Support) - Requires kernel support
Here's a cool mod at sdx that I plan to do for TP powered OTG courtesy of ften ...
http://forum.sdx-developers.com/index.php?topic=19916.0
Self Powered USB Host on the HP Touchpad!
Sent from my "Up all night, sleep all day" HP CM9 Touchpad
Thanks for the links, will see if I can get the needed cables etc from eBay/Amazon
Thanks for the help. My OTG cable and other things from Monoprice should've come yesterday, so hopefully I'll have them tomorrow. By powered adapter, do you mean something like a powered USB hub? Although I didn't get that OTG cable for the touchpad, it'd be a nice treat to be able to use it with that, it would definitely make moving movies around a lot easier.
EDIT (10/19): Dangit, they didn't come today. I'll have to see what's up, because they've been in my area for a while according to tracking just not coming.
Yes, u will have to use either a powered USB hub or get power from a USB charger that doesn't have the data +/- pins shorted internally (purchased or modified). If u plug device (ie phone) into charger and it says "ac charging" that means the data pins are shorted.
Sent from my "Up all night, Sleep all day" EVO3D!
mpgrimm2 said:
This thread has pictures links etc of the cable setup I'm using on cm9 with the TOUCHPAD
http://forum.xda-developers.com/showthread.php?t=1934380
[Tips and Tricks] OTG (USB Host Support) - Requires kernel support
Here's a cool mod at sdx that I plan to do for TP powered OTG courtesy of ften ...
http://forum.sdx-developers.com/index.php?topic=19916.0
Self Powered USB Host on the HP Touchpad!
Sent from my "Up all night, sleep all day" HP CM9 Touchpad
Click to expand...
Click to collapse
hi:
thread speaks of wiring directly the 5v stepup to the existing microusb port w/ diode..this would be great to see.
i am notsmart but w/ detailed instructions AND pics and supplies links, i would consider trying it.
mpgrimm2 said:
Yes, u will have to use either a powered USB hub or get power from a USB charger that doesn't have the data +/- pins shorted internally (purchased or modified). If u plug device (ie phone) into charger and it says "ac charging" that means the data pins are shorted.
Sent from my "Up all night, Sleep all day" EVO3D!
Click to expand...
Click to collapse
Alright, thanks. I think I need to get a powered hub for my laptop (which I am currently using as a desktop with external monitor and keyboard) so I there may be a happy coincidence here.
Also, just checked on my touchpad, and the HP charger says charging (AC) as well as my phone charger, which I think started life destined for some Blackberry.
The powered hub should work though, and that would make a great machine for typing and working in bed as opposed to my laptop burning my thighs off.
feteru said:
Alright, thanks. I think I need to get a powered hub for my laptop (which I am currently using as a desktop with external monitor and keyboard) so I there may be a happy coincidence here.
Also, just checked on my touchpad, and the HP charger says charging (AC) as well as my phone charger, which I think started life destined for some Blackberry.
The powered hub should work though, and that would make a great machine for typing and working in bed as opposed to my laptop burning my thighs off.
Click to expand...
Click to collapse
I just verified that if you get the Micro USB Host OTG Cable With USB power ($6 from AppleCable on Ebay) that Ramjet73 mentioned (or this one), it will work with any standard USB charger (ie the 1 Amp HTC or 2 Amp HP Touchpad Charger) because the USB Power Connector is Isolated. I also picked up Applecable's USB 2.0 3 Port Hub with data Sync Charger cable for $7 (I may try to modify it to be a USB OTG powered hub with this).
I will be updating the OTG thread I mentioned earlier. See attached:
I've never successfully used OTG. I've bought 2 cables.
michaelgcarro said:
I've never successfully used OTG. I've bought 2 cables.
Click to expand...
Click to collapse
I've received a bad one before. Cut it open to verify the id pin hadn't been tied to ground like it was supposed to be. I can verify that OTG is enabled with the CM9 Nightly and jcsullin's latest Cm10.
Sent from my "Up all night, sleep all day" HP CM10 Touchpad

[Q] USB Hosting on ICS, possible for the G2x?

Hi. I've just recently tried out an app from the market that would let me control emulators and some games with a Wii remote, but it wasn't compatible with my G2x. However, I stumbled upon what is most commonly known as "OTG" cable, but discovered they were worthless for the G2x as of now because 2.3 doesn't have USB hosting.
What I wanted to know is, number one, will the G2x have USB hosting when the official 4.0 update comes out, or is it missing some special hardware needed for that? And number two, is there any risks in just getting a cheap MicroUSB to Female USB cable from a trusted seller? Like, can it damage any internal parts because of different voltages between devices or something like that? Or is the worst thing that can happen is the cable simply not working?
I'd really appreciate an answer on this one, because USB hosting seems to open up a lot of possibilities with our devices.
The short answer as of right now is NO there aren't any common ways to enable USB Host. With that said, can the Tegra2 chip in the G2x support host mode?...yes. Will it require a custom kernel?...yes. So basically your phone needs to be rooted to say the least and a kernel framework to enable and support it. I'm actually looking into this as we speak but it's looking like it'll be a while.
As for the cable... no most generic micro-USB cable won't work as is. The OTG cables have either a 'grounded' 4th pin or a disconnected 4th in some usb host modes. But either way you either need an OTG cable or if you search online you can find several ways to splice and solder back generic USB.
I have been looking for a while, but there doesn't seem to a custom kernel that supports USB Host mode. I already have USB OTG adapter (mini Male to 4 pin USB female) + arduino board etc.. So are there any custom kernels out there?
oOo B0XeR oOo said:
The short answer as of right now is NO there aren't any common ways to enable USB Host. With that said, can the Tegra2 chip in the G2x support host mode?...yes. Will it require a custom kernel?...yes. So basically your phone needs to be rooted to say the least and a kernel framework to enable and support it. I'm actually looking into this as we speak but it's looking like it'll be a while.
As for the cable... no most generic micro-USB cable won't work as is. The OTG cables have either a 'grounded' 4th pin or a disconnected 4th in some usb host modes. But either way you either need an OTG cable or if you search online you can find several ways to splice and solder back generic USB.
Click to expand...
Click to collapse
this^^^
Nothing had really changed on this front, if you want to use Android as an ardi interface, I'd suggest you grab a cheapo phone that supports it out of the box.
Sent from my LG-P999 using Tapatalk
I bring you back to life!!!
Any update on this? Seems ICS/JB roms are out now... any strides in getting OTG to work? I'm looking to make a G2x into a dedicated TV gamer unit to replace my MK808 and forgot about OTG for my air mouse. I have a Bluetooth mouse to get me by but the airmouse was awesome.
I guess I can look for a Bluetooth airmouse as a last resort.
player911 said:
I bring you back to life!!!
Any update on this? Seems ICS/JB roms are out now... any strides in getting OTG to work? I'm looking to make a G2x into a dedicated TV gamer unit to replace my MK808 and forgot about OTG for my air mouse. I have a Bluetooth mouse to get me by but the airmouse was awesome.
I guess I can look for a Bluetooth airmouse as a last resort.
Click to expand...
Click to collapse
No OTG happiness for the G2X with any ROM and/or Kernel. There is a board from Sparkfun which provides an interface that enables a non-OTG phone to work like one for interfacing to Arduino, etc.
https://www.sparkfun.com/products/10748?
http://forum.xda-developers.com/showpost.php?p=19967110&postcount=8

[Q] External USB Adapter

I've heard that the External USB Adapter from ASUS is a notoriously difficult beast to locate. It's marketed to plug into a bare tablet and provide a Host USB connector. But, would it also work in the charging port of the keyboard dock giving a second Host USB port? (Yes, I know a hub would do this. But If one wants this device to connect USB storage to a bare tablet, would it also do double duty and work with the dock?)
It certainly sounds possible. Mostly because I think the internals of the keyboard dock are a hub already basically.
One usb going to the card reader, one going to the usb port, one to the keyboard function, and another as a passthrough to the proprietary data port.
So by using the usb adapter you are just converting the otherwise unused data port into another usb port.
since there both 40 pin connecters i imagine that would work
m3n991 said:
since there both 40 pin connecters i imagine that would work
Click to expand...
Click to collapse
That is also my assumption, but we all know what assuming does. All depends if all the signals are passed through, and if there are any lag or transmission line issues.
Has anyone tried this to verify if it does or does not work?

Sabrent 7-PORT USB 2.0 HUB WITH AC POWER ADAPTER. Will it work with OTG in ICS?

Hello,
I think I found a cheaper alternative to Lapdock, but IDK if and how this can work or not.
I found something with external power here and I'm wondering if we can attach a mouse/keyboard with it.
Thanks in advanced,
TCF38012
tcf38012 said:
Hello,
I think I found a cheaper alternative to Lapdock, but IDK if and how this can work or not.
I found something with external power here and I'm wondering if we can attach a mouse/keyboard with it.
Thanks in advanced,
TCF38012
Click to expand...
Click to collapse
It should work as long as you have an OTG adapter or cable that shorts pins 4 (the ID pin) and 5 (ground) that would then connect to the powered hub. These can be bought pretty cheap or just make one with a spare cable. The phone needs to know it is in USB host mode (shorted ID to ground) and there needs to be external power for the peripheral devices.
I just recently bought this , this, and this. The hub has two usb's: one for the phone, which has the otg cable, and the other for power (which I connected with the extension cable). You can then use your regular usb wall charger. Everything works great (attach any usb device you like) and when you attach a micro HDMI to regular HDMI cable to a TV/Monitor, you got yourself a computer like setup. I haven't tried it, but I think you can even attach external storage to it as well.
When did otg start working with atrix 2
shanghei said:
When did otg start working with atrix 2
Click to expand...
Click to collapse
Since ICS
tcf38012 said:
Since ICS
Click to expand...
Click to collapse
Actually, I used it on stock 2.3.6. As far as I know, that's more or less all that the the laptop docks are (with some added signal to know to use webtop when connected).

Otg with charging

Hey guys, I'm fixing to refunction an original Pixel as a 3D printer server (Octoprint), and OTG works a treat, however I cannot keep the phone charged while using OTG.
Is there a working solution for this? I don't mind getting my hands dirty.
Thanks y'all.
It's a bit finicky, you just have to find the right usb-c hub that supports charging and OTG.
one thing I noticed was the usb-c hub I am using supports passthrough PD charging (your pixel stock charger is a PD charger). if your usb-c pd charger power output is too high, i think it might run into issues with the hub.
by chance, my usb-c hub that supports passthrough PD charging is paired with a generic charger.... both the charging and OTG function may sometimes take a few connection attempts to get it working.... trying different combination of plugging in the charger to the hub, OTG device (i use a microsdxc card reader) and plugging into the pixel.
all i can say is good luck!
WhereCoffeeFlowsLikeMud said:
Hey guys, I'm fixing to refunction an original Pixel as a 3D printer server (Octoprint), and OTG works a treat, however I cannot keep the phone charged while using OTG.
Is there a working solution for this? I don't mind getting my hands dirty.
Thanks y'all.
Click to expand...
Click to collapse
hey just wanted to say, funny I should find this thread because I'm trying to achieve the exact same thing (Octoprint server) with an old Galaxy Note 4, and can't for the life of me figure out why OTG charging/data would be disabled. Did you manage to figure out a fix?
peanutismint said:
peanutismint said:
hey just wanted to say, funny I should find this thread because I'm trying to achieve the exact same thing (Octoprint server) with an old Galaxy Note 4, and can't for the life of me figure out why OTG charging/data would be disabled. Did you manage to figure out a fix?
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Alas, nope - not without soldering directly to the main board. I just gave AliExpress $15 instead and they gave me a Rockchip-based MXQ Pro Android TV box in return (that sits under my printer). I parked Armbian Linux on it, then plugged in a webcam. Working like a dream. Thinking of switching to Klipper at some point, so going the TV box route was probably for the best (on account of the 4 CPU cores, loadsa RAM and internal storage, and the four or five USB ports).
Ps, sorry about the formatting - my phone flipped out cos of some annoying ad.
Thanks for the response; it's unfortunate that a solution like Octoprint 4 Android would be rendered almost pointless by something as assumedly simple as 'device can't charge via USB'.
I have a Raspberry Pi that I can probably get Octoprint running on with a cheap webcam, but I'm going to google that Android TV box you mentioned too because a few other people have mentioned that these are somehow even better/more future-proof than a RPi.

Categories

Resources