Nexus 6 won't see USB connected wifi adapter - Nexus 6 Q&A, Help & Troubleshooting

I have a Nexus 6 rooted, build (lineage_shamu-userdebug 9 PQ3A. 190801.002d3c5a43eee4) w/ LOS 16 and Nethunter. I have tried multiple android and LOS versions to get the USB connected wifi device to be recognnized. (Panda PAU09) I've tried 3 different cables, Y-connecter cable, all with no luck. I can connect to the phone with my computer and do all the ADB functions, but can't make the phone see a WIFI device. My LSUSB command only shows a 3.0 and 2.0 root hub and the Qualcomm CDMA tech MSM. I do not have a SIM card in the phone, and I'm wondering if that is affecting the problem. The phone connects to wifi perfectly. Any thoughts on a fix for this? Is this a lack of SIM card or something else I'm missing to use an external USB wifi adapter?

Would you explain why this is needed? Only on my 1st cup of coffee.

Why dou you think the kernel should include the driver for your wifi adapter. I'm not saying it does not, but you can't take it for granted

First step is to get the device to show in lsusb. That part does not require any device-specific support from the kernel or rom, AFAIK.
Try an ordinary USB memory key. If that doesn't work, your OTG cable is probably bad.

Monitor mode
So I can use a wifi adapter with monitor mode.
zapjb said:
Would you explain why this is needed? Only on my 1st cup of coffee.
Click to expand...
Click to collapse

reply
runekock said:
First step is to get the device to show in lsusb. That part does not require any device-specific support from the kernel or rom, AFAIK.
Try an ordinary USB memory key. If that doesn't work, your OTG cable is probably bad.
Click to expand...
Click to collapse
Agreed- memory sticks work, lsusb shows 2 devices on bus 001 and one device on bus 002, then when I plug a memory stick in I get a device on bus 003 and 004. When I unplug the memory stick (or wifi adapter) I continue to see bus 003 and bus 004. Same results with 3 OTB cables, and 1 Y cable.

Elektroschmock said:
Why dou you think the kernel should include the driver for your wifi adapter. I'm not saying it does not, but you can't take it for granted
Click to expand...
Click to collapse
The Offensive Security nethunter image says it does. I don't think it's a driver issue (I could be completely wrong) I'm hoping I can patch the firmware for the wifi chip with the NEXMON patch, but that's beyond my right now.

Have you tested the Panda in a computer?
Maybe it requires more power than the phone supplies. Your Y cable, does that connect an extra power supply?

runekock said:
Have you tested the Panda in a computer?
Maybe it requires more power than the phone supplies. Your Y cable, does that connect an extra power supply?
Click to expand...
Click to collapse
works great in laptops and a rasberry pi. Y cable does provide power, didn't seem to change anything.

Related

Optimus One support USB host mode? (update: working now!)

I'm looking for an Android phone that supports USB host mode. The Optimus One looks like a great phone but I can't seem to find anywhere whether USB host mode can be enabled for this phone. I'll have a separate power source for the USB devices, so the phone doesn't need to supply power in USB host mode, similar to Nexus One.
Has anyone tried to make USB host mode work with this phone? Thanks,
i read the p500 datasheet ..apparently the underlying chipset msm7227 supports it ..Its just been unutilised..So no i dont think we can have USB OTG here
sarfaraz1989 said:
i read the p500 datasheet ..apparently the underlying chipset msm7227 supports it ..Its just been unutilised..So no i dont think we can have USB OTG here
Click to expand...
Click to collapse
Thanks! By being unutilised do you mean it's hardware related or it's "just" a software issue? I'll probably give it a try if can be enabled with a proper driver.
USB host mode
I built a usb adapter just like here (but not the mini dongle, yet) but I see no output in dmesg.
I have tried it with my camera which should not be USB powered (olympus dslr - that would be the primary use, if we could get it working) and with a wireless mouse (it's dongle is surely USB powered). No output in dmesg whatsoever.
I will also try a keyboard, and also test it with a USB hub with separate power input. I will also try to make that mini dongle mentioned in the link, but have to find a cheap micro usb charger first.
Another thing is that I have no idea what drivers are included in the kernel, if any, for USB devices. still trying to figure out a way to do that. If anyone knows how, please tell me how.
my kernel version is 2.6.32.9 lg-electronics (at) android3g-buildserver #1 Sat Oct 9 20:54:44 KST 2010
Build number FRF91
Software version LG-P500-V10b
EDIT:
Found this site, with the same thing done to a ZTE Blade, which is similar (same chipset - MSM7227 and same problem with powering usb devices), but has eclair (different kernel version and of course different build).
Could any of the senior or more experienced members of XDA do something similar? It would be a very nice thing to have on our little phones...
Thanks, so it looks like it doesn't "just work".
I can't be of much help just yet since I don't have the phone, but I think if you see nothing in dmesg, then first you have to rebuild the kernel with USB host support, using maybe the driver in ehci-msm7201_Blade.tbz in your second link.
It could "just" work, haven't bought a proper usb otg cable yet, mine is hacked and might not be the right one,because the micro part of it is from a normal micro usb cable, and i think that the fifth pin on the micro usb must be wired through some kind of resistor to gnd or vcc of a certain value in order to activate the host mode in proper otg manner.
Also, i do not know if the port would provide (enough) power for unpowered devices (usb memory sticks).
Anyway, i am only interested in self powered devices, such as cameras (in mass storage mode).
Sent from my LG-P500 using XDA App
Some updates here! I took the plunge and got the Optimus One anyway
The good news is that the LG v10r kernel source seems to have the USB host driver for msm7x27; it is just not compiled into the official kernels. I compiled a kernel with usbcore, ehci-hcd, usb-storage and usbhid built in.
Extract boot.img and flash it with:
flash_image boot /sdcard/boot.img
If it works, then you should be able to attach a self-powered usb mass storage device or keyboard with it. I haven't actually connected the phone with any USB device yet; the phone still charges when connected to my computer, which might not be a good sign. I'll do more testing on it myself in a few days when I get the right cables. Be warned though that I take no responsibility for any potential damage
Oh, and note that usb client mode is nonexistent with the attached kernel because host and client drivers don't play nice with each other. Because of this you'll probably see some error message that some setting application crashed, but it's not a big deal.
EDIT: this one doesn't work; please see my next post
Could some one please explain, what is this "host mode" ?
I am new to android
@haoto
Done it, no luck (no output in dmesg whatsoever)... maybe some insmod should be in order?
My cable is a hacked one, with the sense pin "floating"
I used a external usb hub, and a Y cable (with a second usb for PC-style plug) to provide the power to the hub.
Could you please post a version of the kernel that is flashable via recovery (maybe more people - including me - would find it easier to do)?
I tried to connect the camera both directly and with the usb hub in between. Not even the usb hub was detected.
Maybe the sense pin in the micro plug, that in my hacked adapter is floating...
And also, do these drivers look at the sense pin on the usb cable? I haven't found a "proper" USB OTG adapter (using a pathed one, made fom am micro data cable and a usb extender), and in the cable that I have, pin 4 (the sense pin) is floating, it's not grounded.
I think that the conflict between host and client is solved in the ZTE Blade (with an official froyo update), and, if I remember correctly, the sources for the kernel are released (I think I have seen them here on XDA). And I think that it is solved by the means of the sense pin in the usb connector. Even in the Optimus the sense pin is connected, as far as I remember from the schematics in the service manual (also found here on XDA), and it could be watched/read... but then it would not work with hacked cables.
As for the charging, I'm not sure how the charging circuit works, but, if what I'm saying about the sense pin in the USB port (I'm obsessed with that pin, it seems...) being floating (not strapped to GND) in the charger cable, it might trigger the charging circuit to start charging.
And now to explain my "obssesion" with the sense pin:
I bought a Nokia CA-157 cable (USB OTG adapter) and, not being very careful, I did not notice that it is micro USB A, not B and it does not fit (same size, but it has squared ends, so it is a bit too big...). So I tried to "bend" it i order to fit, but I destroyed it. But then I read a bit more about the pins in the usb port, and measured it (very carefully, cause the pins are so small) and found that pins 4 an 5 are strapped together (zero ohms). Then I tried to measure the pins on the normal micro usb cable, and found out that they are not strapped. So I figured that, in order to have a OTG adapter working correctly (charging, usb host and usb gadget) you need to have that 4 pin strapped to pin 5 in order to get the chipset in host mode.
@DJoptimus-One:
USB host (or rather USB OTG) is the posibility to connect devices to your android just like connecting them to a PC, eg. connecting a photo camera to the phone directly (no PC) for copying photos, or connecting a PC keyboard directly to the phone, or connecting... a USB memory stick directly to your phone for file copy... etc.
@moderators:
Maybe this thread should be moved to the development section, as it has a bit of recompiling and testing, and maybe it could get more people involved in the development of this?
More updates. I'm using the LG kernel source LGP500(Thunder)_Android_Froyo_v10r.zip which is based on linux 2.6.32.9, with stock 2.2.2 system. Attached are the boot image, kernel zImage, and kernel config I used. You should be able to at least see some dmesg output this time. Sorry if it's not easy for you to flash it; I'm completely new to android phones and will learn the proper ways when I get the time. For now it looks like everyone wishing to take this further needs to hack and compile the kernel source anyway Also, I didn't compile the USB device code (Android gadget) in because it seems to crash my phone when combined with USB host driver. Maybe the LG driver engineers didn't expect us to use it this way yet.
A Micro-AB plug (our a hacked Micro-B one like yours by soldering ID and GND) is required to produce any response when a USB device is connected. According to OTG spec you should also connect a 36.5 kΩ resistor between ID and GND when using a charger. I didn't test this, but I don't think it's a problem for now.
However, there are some complications I cannot figure out.
First, the hardware doesn't produce an ID-changed IRQ (OTGSC_IDIS) when the Micro-AB plug is plugged-in, nor does OTGSC_ID ever becomes "A". I simply hacked the is_host() macro in drivers/usb/otg/msm72k_otg.c to always return true so that the driver believes it is a host. But for some unknown reason, you still need to use a Micro-AB plug.
I did manage to get the phone run in USB host mode, using a Y-cable to power the devices. But I can't get it to recognize any device. Below is a sample dmesg output when a USB keyboard is connected:
Code:
<7>[ 153.284488] usb usb1: usb resume
<7>[ 153.284513] msm_hsusb_host msm_hsusb_host.0: resume root hub
<7>[ 153.321383] hub 1-0:1.0: hub_resume
<7>[ 153.321453] msm_hsusb_host msm_hsusb_host.0: GetStatus port 1 status 84001403 POWER sig=k CSC CONNECT
<7>[ 153.321486] hub 1-0:1.0: port 1: status 0301 change 0001
<7>[ 153.431414] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
<7>[ 153.431471] hub 1-0:1.0: port 1, status 0301, change 0000, 1.5 Mb/s
<6>[ 153.551378] usb 1-1: new low speed USB device using msm_hsusb_host and address 2
<7>[ 153.553388] msm_hsusb_host msm_hsusb_host.0: detected XactErr len 0/8 retry 1
<7>[ 153.554364] msm_hsusb_host msm_hsusb_host.0: detected XactErr len 0/8 retry 2
...
<7>[ 155.943383] msm_hsusb_host msm_hsusb_host.0: detected XactErr len 0/8 retry 31
<7>[ 155.944376] msm_hsusb_host msm_hsusb_host.0: devpath 1 ep0out 3strikes
<7>[ 155.944399] usb usb1: clear tt buffer port 1, a0 ep0 t00080248
<3>[ 156.151369] usb 1-1: device not accepting address 5, error -71
<3>[ 156.151451] hub 1-0:1.0: unable to enumerate USB device on port 1
<7>[ 156.151478] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 000
Notably, connecting a high-speed device such as a USB stick produces a different, and shorter message:
Code:
<7>[ 4333.870061] usb usb1: usb resume
<7>[ 4333.870088] msm_hsusb_host msm_hsusb_host.0: resume root hub
<7>[ 4333.901361] hub 1-0:1.0: hub_resume
<7>[ 4333.901438] msm_hsusb_host msm_hsusb_host.0: GetStatus port 1 status 8c001002 POWER sig=se0 CSC
<7>[ 4334.011429] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
So, it seems that the hardware has difficulty recognizing USB "j states". I'm not really sure about this because I didn't do these experiments very carefully, and I do remember seeing "sig=j" once, but can never reproduce it anymore. (Hint: I guess it might be related to control of the pull-up resistor on the phone side. It's also possible that my cable is bad and it'll just work for you, fat chance )
As a side note, I also tried reversing the D+ and D- pins on one of the devices I tested as per:http://android.modaco.com/content-page/334222/an-experimental-cm7-kernel/page/200/#entry1667619 But (apparently) it doesn't help except making the device useless.
Hope someone can pick this up from here as I'm out of spare time at least for some weeks
Tried the latest kernel, but still does not work...
I will try to hack the cable a bit more, see if I can get any change in behavior.
I hope someone else reads this thread and and comes with some more input...
My only input so far is testing... (I do lack some knowledge about kernel building...)
Maybe looking into the ZTE Blade kernel and apps would help... (it's here)
Oops, I just noticed the build I uploaded doesn't work for me either; I changed some configuration and assumed it was harmless. They are updated now, sorry for the blunder
Will try it again (I assume it is in the older post).
Also, maybe a "software switch" (either app or simply a touch or something) could be made to switch from host to gadget mode like here? (Better after we get it working, though...)
Oh no, it's in the newer post
If you have the time, could you also try to measure the following with that kernel installed:
1) voltage between VCC and GND when nothing is connected
2) voltage between D- and GND and the voltage between D+ and GND when only a charger is connected
3) resistance between D- and GND, and resistance between D+ and GND when nothing is connected
I'm not sure I know what to do next, but this might help us clear up a couple things.
I'll try to have a look at the ZTE Blade kernel source later, thanks.
Update: it's suddenly working!!!
I successfully mounted a USB stick! So either the driver is unstable, or there indeed is something wrong with my hacked cable!
(And then I burned my USB charger! Thankfully my phone is alright. Looks like there is definitely something wrong with my cabling )
With my cable did not work, so I managed to completely destroy the micro part of my cable trying to find a way to short pins 4 and 5.
As I understand it, you have your cable with pins 4 and 5 shorted (sense - gnd).
I am still trying to find a proper adapter, but all I can find is the CA157 from nokia, which is A and does not fit...
And I could not find another standard otg cable (at least the part number, in order to find it faster) from a big manufacturer (htc, noika, samsung, whatever...).
I will get another micro and hack it once more, though, and try to measure the voltage on the pins. Maybe a noname cable is easier to mod...
As for the burnt charger... I don't think that there should be any problem... Here are some prints from the service manual.
Did you use the charger for powering the USB bus? Or did you just plug in the power?
I don't have issues with the charger connected just for charging the phone (I'm using a nokia micro USB charger, and it's working perfectly... even with the modded kernel)
I actually got a micro-B to mini-B adapter with all 5 lines connected, so I can cut the cable at any place to solder the ID and GND lines. Please do let me know when you get it working (or not... mine seems to work from time to time now)
The charger burned when I was using it to power the USB devices. I guess it's most likely caused by a short in my hacked OTG cable , it was a cheap USB charger which probably doesn't have any over-current protection.
sorry for this noobie question but did u meant we could attach usb devices directly to phone?
scorpionking674 said:
sorry for this noobie question but did u meant we could attach usb devices directly to phone?
Click to expand...
Click to collapse
Ya.
Sent from LG P500.
This seems very interesting! Can you guys write a short tutorial on the steps needed to get OTG working?
It is not fully working yet (at least not in a very friendly way).
Anyway, I'm still trying to hack a cable with the sense pin grounded, in order to do some testing at least...
Steps to be taken:
WARNING!
Rooting the phone and installing a new kernel and some other stuff presented here voids warranty, and MAY brick your phone!
Also, this requires connecting to your phone a cable that is HACKED and not supported by the manufacturer; it MAY (and is not very unlikely) FRY YOUR PHONE
We do not take ANY responsibility if you brick/fry your phone; this is only what we are doing or trying to do.
Also, the mod is not yet complete, as in the last version only the usb HOST is included (connect devices to Optimus), not the USB device is included (connecting the optimus to the PC does not work any more, not as sync nor mass storage, and there is no mode switching yet). Charging does work.
Also, after boot you get a message that some settings app does not work (we ignore that).
So, if you are willing to risk bricking or frying your phone at your own responsibilty, here is what we are trying to do...
0. Do a full backup. This is the firs step, no matter what you do to the phone (well, at least after rooting and installing custom recovery...), in order to have a WORKING restore point. (it will help if something that you have been warned might happen actually happens - except a fried phone)
1. a. Get a micro USB B male to USB A female OTG cable (that has pins 4 ans 5 straped together)
1. b. Alternatively, you can hack a cable like that, if you find the parts (one micro usb b male to mini usb male/female cable with all 5 wires inside and a normal usb a male to usb a female, and hack the cable)
2. root your phone (!! at your own risk !! only YOU are responsible for what you do to your phone)
3. install the latest kernel version posted here. Same warning as above.
4. make some hack on the cable (eg. get a y usb cable from an external hdd or something) in order to get +5V to the USB bus (at this time the phone does not supply +5V to the devices connected, maybe some state on the usb driver chip must be changed, or maybe the phone does not support providing power via the USB port). Connecting this cable to your phone may fry your phone, so double check, triple check and remember that YOU DO THIS AT YOUR OWN RISK...
5. connect a usb stick and... (from this point I could not test, as I do not have yet a cable with the sense pin grounded) make it work... (probably like in the steps below; NOTHING IS AUTOMATED YET, I GUESS)
6. open a terminal, type "su" (get root access), type "dmesg" (lots of lines will appear) and then identify the block device that the stick is (probably something like "sda").
7. make a folder somewhere where will mount the USB stick
8. mount the usb stick and see if it works properly.
From step 5 onward I did not test anything, so please correct me if I said something wrong.

Manual USB OTG working

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 )

USB Port

Does the USB port have any other function other than power?
Don't think so, only power AFAIK.
I plugged it into my computer and even tried pressing and pressing/holding the button on the Chromecast but my computer didn't indicate any hardware plugged in.
I wonder if the data pins are even wired to anything internally.
UPDATE: The USB cable that comes with it may not work for data transfer, tried it with my phone and it didn't work. So I tried a normal microUSB cable but still nothing.
spunker88 said:
I plugged it into my computer and even tried pressing and pressing/holding the button on the Chromecast but my computer didn't indicate any hardware plugged in.
I wonder if the data pins are even wired to anything internally.
Click to expand...
Click to collapse
If we could plug a mouse or keyboard into it would be great!!
comatose1978 said:
If we could plug a mouse or keyboard into it would be great!!
Click to expand...
Click to collapse
It has bluetooth... so in theory that could be a simple alternative... we just need to figure out how to access hidden menus.
comatose1978 said:
If we could plug a mouse or keyboard into it would be great!!
Click to expand...
Click to collapse
I tried this with a self powered USB OTG cable, just to see if the Chromecast would blink, bing, or do anything to show recognition, no dice. Also tried booting with a USB drive in, no difference.
Universal Charger
Universal Charger:victory:
Examining board
Based on examining the photos of the motherboard on ifixit.com...
Component EM1 appears to be a USB Common Mode Choke. That goes on the D+/D- pair which you can see routed from the USB port, so it wouldn't be present if there wasn't some use for data communication over the USB port. (Cost sensitive equipment.) The flip side of the PCBA shows TP1-TP20 (Where TP19 and TP20 appear to be GND). My guess is in that mix you have a JTAG port for programming/testing the unit initially with a pogo pin rig (evidenced by the dimples observed in each of those locations), and there might be more high/low GPIO pins where one might allow the unit to enter its USB data mode.
-Jon
ften said:
I tried this with a self powered USB OTG cable, just to see if the Chromecast would blink, bing, or do anything to show recognition, no dice. Also tried booting with a USB drive in, no difference.
Click to expand...
Click to collapse
Is there any special kind of powered otg cable to work with this? I looked on Amazon but not sure. I want to grab one incase they make any progress on rooting this.
Sent from my HTCONE using Tapatalk 4 Beta
mustang_52 said:
Is there any special kind of powered otg cable to work with this? I looked on Amazon but not sure. I want to grab one incase they make any progress on rooting this.
Sent from my HTCONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
Looks like its already been rooted. With what looks like a dual usb otg. They don't go deep into what specific cable but, I would guess it is a generic dual usb one off ebay, or amazon, heres a quick one i pulled from amazon http://www.amazon.com/Micro-Cable-P...8&qid=1375052489&sr=8-3&keywords=Dual+Usb+otg
But if you read into it, they say you can root, but unless your a developer you probably wont get any benefit of rooting....yet, if at all.
Obtaining root Link: http://blog.gtvhacker.com/2013/chromecast-exploiting-the-newest-device-by-google/
OneAn9ryN00b said:
Looks like its already been rooted. With what looks like a dual usb otg. They don't go deep into what specific cable but, I would guess it is a generic dual usb one off ebay, or amazon, heres a quick one i pulled from amazon http://www.amazon.com/Micro-Cable-P...8&qid=1375052489&sr=8-3&keywords=Dual+Usb+otg
But if you read into it, they say you can root, but unless your a developer you probably wont get any benefit of rooting....yet, if at all.
Obtaining root Link: http://blog.gtvhacker.com/2013/chromecast-exploiting-the-newest-device-by-google/
Click to expand...
Click to collapse
Please correct me if Im wrong, but the cable you linked only charges the thumbdrive/keyboard/mice/etc NOT the Chromecast so how would one root it since it does need power from usb plug? I've been searching for correct cable and cant find it; link to correct cable would be greatly appreciated!!!
This cable wouldnt work, right? http://www.ebay.com/itm/Usb-type-A-..._USB_Cables_Hubs_Adapters&hash=item4857e3608e
eurominican said:
Please correct me if Im wrong, but the cable you linked only charges the thumbdrive/keyboard/mice/etc NOT the Chromecast so how would one root it since it does need power from usb plug? I've been searching for correct cable and cant find it; link to correct cable would be greatly appreciated!!!
This cable wouldnt work, right? http://www.ebay.com/itm/Usb-type-A-..._USB_Cables_Hubs_Adapters&hash=item4857e3608e
Click to expand...
Click to collapse
I own that cable from Amazon and it should work. It brings in +5v from a charger connected to the female microUSB port and then splits it to the female full size USB port and the the male microUSB port so both the USB host device and the USB peripheral device are getting power.
spunker88 said:
I own that cable from Amazon and it should work. It brings in +5v from a charger connected to the female microUSB port and then splits it to the female full size USB port and the the male microUSB port so both the USB host device and the USB peripheral device are getting power.
Click to expand...
Click to collapse
I ordered this cable http://r.ebay.com/QgwBIW Will report back if it works when I get it.
eurominican said:
Please correct me if Im wrong, but the cable you linked only charges the thumbdrive/keyboard/mice/etc NOT the Chromecast so how would one root it since it does need power from usb plug? I've been searching for correct cable and cant find it; link to correct cable would be greatly appreciated!!!
Click to expand...
Click to collapse
I also bought that powered OTG cable off Amazon and it will power the Chromecast as well as provide the means to flash the Chromecast via a USB thumbdrive. When you apply power to the Chromecast, it automatically flashed the bin from the USB drive. There was no interaction required (or even possible). Of course this was on the original firmware - if your Chromecast updated itself, you have lost the ability to root the device at this time.
Clearly the Chromecast does sense the USB drive and pulls data from it during the initial boot sequence. However I'm not sure if it would ever work for other devices such as keyboards or storage devices, etc.
I'm not sure why anyone would want to hook those types of devices up to the Chromecast however. Once you have root, you can telnet into the device, so adding a keyboard doesn't seem that important. The whole idea of the device is that you send it media from other devices and control it via that other device. Adding storage for example doesn't seem important since it can pull media off the network already (ie a NAS or another computer).
Anyway. That has been my experience with it so far. It's a long winded answer to more than just your question about the OTG plug.
I would personally love the ability to send audio out without having an hdmi TV be on through the usb somehow...
Sent from my Nexus 7 using Tapatalk 4
USB Tethering not working - SGH-i997
Hi all,
i have install Avatar 7.0 to my Samsung SGH-i997 from "http://forum.xda-developers.com/showthread.php?t=2174227". it's look cool.
But when i am trying to USB Tethering, the massage shows as "Unfortunately,Setting has Stopped".
how to Fix this issue.

[Q] install iodak v10 kernel on cm 10.1.3 stable

hi everyone,
i'd like to use the iodiak v10 kernel because it has the usb to go feature.
I need this feature to build a module for the pcan-usb-adapter. i need it for my bachelor's degree.
i updated my stock p-880 to cm 10.1.3 stable cause the stock system lagged horribly.
it worked without any problems. but after that i tried to install the iodiakx3_v10_cm kernel and it stuck on the lg logo so i switched back to cm kernel.
i alwas wiped all the caches.
since i cant write in the suitable developer thread, i hope i get here some help.
thanks in advance
ray
If it was for my degree, I'd get a real OTG-supporting device. What we have here is a hack and it's not stable enough IMO.
Adam77Root said:
If it was for my degree, I'd get a real OTG-supporting device. What we have here is a hack and it's not stable enough IMO.
Click to expand...
Click to collapse
well it's worth a try ... if it's working i'd be happy because i can save money and i dont have to wait until the company provides me with one (this takes time and i have only 1/2 semester to finish it ).
the problem is, there are no reports on the original kernel thread that v10 has installing issues so i assume only i do something wrong.
initially i wanted to use EternityProject Kernel 3.4.37 but sadly its dead.
Consider upgrading to cm11 nightly
Flying_Bear said:
Consider upgrading to cm11 nightly
Click to expand...
Click to collapse
well i did it and it worked. so thx !
i installed the nightly +gapps and after that iodak.
but in kernel version it showes 3.1.10-cm and not iodak. so how do i verify hes using the iodak kernel?
at the adb shell uname -r shows only 3.1.10-cm.
mo_oin said:
well i did it and it worked. so thx !
i installed the nightly +gapps and after that iodak.
but in kernel version it showes 3.1.10-cm and not iodak. so how do i verify hes using the iodak kernel?
at the adb shell uname -r shows only 3.1.10-cm.
Click to expand...
Click to collapse
[email protected] means iodak's kernel is installed
Flying_Bear said:
[email protected] means iodak's kernel is installed
Click to expand...
Click to collapse
awesome thanks!
but why doesn't work otg ?
its kind of confusing
1) echo 1 > /sys/kernel/otg_mode/otg_enable
2) connect phone to power (charger or USB)
3) unplug charger, connect OTG cable and then connect device to it (like USB mouse)
4) plug OTG male cable to power (USB or charger)
after device (mouse) is working you can disconect OTG male from power it will still work
Click to expand...
Click to collapse
point 1 makes total sense but 2 - 4 is confusing
i wrote a 1 in the file while the phone was connected to pc usb. for a short second it disconnects the handy and connects it again.
after that i connect via otg cable a normal microsoft wheel mouse optical (super fancy ) and nothing happens, no light from the mouse or else, same from a cherry keyboard or usb stick.
even with a powered usb hub between otg cable and mouse nothing happens.
do i have to use a certain app / programm ?
or have i done something wrong? kind of confusing....
mo_oin said:
point 1 makes total sense but 2 - 4 is confusing
i wrote a 1 in the file while the phone was connected to pc usb. for a short second it disconnects the handy and connects it again.
after that i connect via otg cable a normal microsoft wheel mouse optical (super fancy ) and nothing happens, no light from the mouse or else, same from a cherry keyboard or usb stick.
even with a powered usb hub between otg cable and mouse nothing happens.
do i have to use a certain app / programm ?
or have i done something wrong? kind of confusing....
Click to expand...
Click to collapse
I suggest to try it out without connected to PC. It could confuse the whole operation.
Yes, you need a USB Y-cable with external power support. After it you can disable external power, but it is needed in the first place.
mo_oin said:
awesome thanks!
but why doesn't work otg ?
its kind of confusing
point 1 makes total sense but 2 - 4 is confusing
i wrote a 1 in the file while the phone was connected to pc usb. for a short second it disconnects the handy and connects it again.
after that i connect via otg cable a normal microsoft wheel mouse optical (super fancy ) and nothing happens, no light from the mouse or else, same from a cherry keyboard or usb stick.
even with a powered usb hub between otg cable and mouse nothing happens.
do i have to use a certain app / programm ?
or have i done something wrong? kind of confusing....
Click to expand...
Click to collapse
i've used otg with y usb host cable and it worked.
this is short summary:
1. have your phone with you but not connected to charger
2. change the line from 0 to 1
3. plug in charger, and unplug it
4. plug in your otg y cable, and then plug in your mouse/usb stick*
5. plug in the y cable into computer/charger
6. unplug it after you confirm the mouse/stick working
*
in case of using usb stick, you gotta mount the storage after you plug it in. there are several apps that should be able to do this on the market, so check them out (i used stickmount)
Adam77Root said:
Yes, you need a USB Y-cable with external power support. After it you can disable external power, but it is needed in the first place.
Click to expand...
Click to collapse
Flying_Bear said:
i've used otg with y usb host cable and it worked.
Click to expand...
Click to collapse
thanks both of u.
today i learned USB Y-Cable != Powered USB Hub.
i tought the outcome of both solutions would be the same but i was wrong (a work mate explaind it in short to me).
i guess i cant hide myself of reading the otg specifications.
i made a usb y-cable myself and tried the steps with it but it also didn't want to function.
i wanted to provide pictures of my selfmade cable but it seems the pictures are corrupt (cant transfer them from handy to comp, i try it later again).
just to make shure i did it the right way.
here in short what i did:
- opend carefully a usb extension without damaging the small wires in it.
- soldered a male usb plug to : shield, red, black ( didnt do anything to white & green).
- no wire or shield of the extension were cut trough, only carefully opend.
i tested it so far only with a mouse & keyboard, but the usb stick will soon follow.
maybe there are issues with the cm-nightly ? -just a guess-
but i will later try Flying_Bear's steps to make shure i didnt miss smthing.
here the pictures
http://imgur.com/xuAEdii
http://imgur.com/yQcRnMz
http://imgur.com/id4gnxJ
http://imgur.com/zbNvTQf
Flying_Bear said:
i've used otg with y usb host cable and it worked.
this is short summary:
1. have your phone with you but not connected to charger
2. change the line from 0 to 1
3. plug in charger, and unplug it
4. plug in your otg y cable, and then plug in your mouse/usb stick*
5. plug in the y cable into computer/charger
6. unplug it after you confirm the mouse/stick working
*
in case of using usb stick, you gotta mount the storage after you plug it in. there are several apps that should be able to do this on the market, so check them out (i used stickmount)
Click to expand...
Click to collapse
tried it yesterday and it didnt work... tried it today and it worked perfectly with mouse and keyboard !
so thanks alot !!!
now starts the real work

Google's "Ethernet Adapter for Chromecast"

Has anyone tried to use Google's "Ethernet Adapter for Chromecast" (combined power and OTG Ethernet adapter)?
Averix said:
plugging in the Chromecast ethernet/power combo into the Nexus 5 will charge, but is not recognized as an ethernet network.
Click to expand...
Click to collapse
Sure the Kernel has to support USB Host Mode + External Power at the same time, like Timur's USB host kernel and others do.
But maybe a driver is missing?
the Chromecast kernel includes only one driver (asix.ko / USB_NET_AX8817X), but that supports a large family of ASIX parts (AX88xxx), and is very common today. if you search for "USB AX88179" in Amazon/Newegg/Google/wherever, you should be able to locate something cheap.
Click to expand...
Click to collapse
https://productforums.google.com/forum/#!topic/chromecast/xo_NDh5CZA8

Categories

Resources