USB OTG Host Mode + Charging? - Nexus 9 Q&A, Help & Troubleshooting

I was wondering if it's easy to enable this feature on a kernel? I saw that there were requests for it, but I haven't seen the current kernels we have listing it as a feature. If it's not too difficult, I'd like to attempt to make it work and compile my own kernel!

I'm also VERY interested in this feature, but have absolutely no clue how to go about compiling a kernel...

lfrst05 said:
Generally I think for "OTG + charging" to work the USB chipset on the device has to support it and/or you have to find out how you could trick the device into enabling this mode (with a certain resistor on the USB connector and/or with a kernel modification).
The bad thing is that no device seems to support the official "USB Accessory Charger Adapter" specification. (see section "OTG micro plugs" here: https://en.wikipedia.org/wiki/USB_On-The-Go for details)
Click to expand...
Click to collapse
http://forum.xda-developers.com/nex...ging-nexus-9-using-otg-cable-usb-hub-t2950726
Generally I think we need to know first if the hardware would even be capable of it.

Its too bad, this makes my life just a little rougher when trying to run the tablet with a MIDI keyboard plugged in. The battery drop is so fast its almost not worth using it for music design.
Sent from my Nexus 5 using Tapatalk

Related

Wizard usb host

is it true what i heard, that wizard supports usb hosting? what i understand it means, it would be pluging usb drive to wizard usb through some kind of usb mini adaptor and accessing this drive through wizard? is it true? any special cable required or just mini 2 mini usb?
Not true. Search the forum.
thanks hanmin i did, just wanted do make sure.
i got confused by the usb host drivers floating around...
so should i understand these ar ment for other then wizard wm5 devices, or is it generally not true?
Good if you can point out where you get to know about this.. usb host drivers.
As far as I know, it is not true for all current devices discussed in this forum. If it were to be true, I think I would have known it as it is a rather big 'feature'.
this url http://www.deje.gmxhome.de/software.html was mentioned by someone asking similar question in this thread
http://forum.xda-developers.com/showthread.php?t=270117&highlight=usb+host+wizard
if you scroll down the page you will read
"This is a driver which enables you to use USB mass storage devices (HD, multimedia Reader, digital camera) with your USB host enabled PocketPC."
that's exactly what i'm unsure of, are there any usb host enabled PocketPCs?
in addition here's a place where i first read it's possible
http://pdaclub.pl/dl/file_view.php?f_cat=92&sortby=t&sort=asc&f_id=530
unfortunately it's in polish, so no use for you guys. It states that
"WM 2003 SE original built in drivers allow you to use most generic usb storage, digital cameras, and even usb keyboards..." this site doesn't give any details about authors homepage, but mentiones that its the same guy who did MPointer (usb mouse plugged to pda)
don't really know what to think about it... enlight me
Interesting... it seems to be working on some PDAs...
http://www.toshibadirect.com/td/b2c/adet.to?coid=-26489&poid=242764
Hmm.. you can try the suggestion here
http://pocketpcmag.com/forum/topic.asp?TOPIC_ID=13738
But, I still think the current units discussed in this entire forum can't do it.
Thats what i ment. there are rumors it could work... but until i'm sure, i think i'll pass... i'm a bit affraid to play with power. Wouldn't pluginn a HDD to a device the way i'm unsure of... would'nt it be dangerous for my wizard? i'm a bit worried, because i already lost one of these toys due to electricity... http://forum.xda-developers.com/showthread.php?t=281932
Ok, did some seaches, and this thread is interesting
http://forum.xda-developers.com/showthread.php?t=250344&highlight=
At the end of the last post, someone mentioned that all HTC devices has a 3.7v battery which would not able to generate a 5v required for any USB devices. This fact seems to be true enough, in a electrical point of view. Theoritically, it is possible to generate a higher DC voltage via a DC source, however, it would take up relatively large expensive real estate of the motherboard. So, unless HTC has a very good reason, requiring them to get a 5V from a 3.7V (eg for some fussy components), HTC shouldn't have any form of DC voltage doubler in the unit. So, consider the voltage wise, you are out of luck.
hanmin said:
Ok, did some seaches, and this thread is interesting
http://forum.xda-developers.com/showthread.php?t=250344&highlight=
At the end of the last post, someone mentioned that all HTC devices has a 3.7v battery which would not able to generate a 5v required for any USB devices. This fact seems to be true enough, in a electrical point of view. Theoritically, it is possible to generate a higher DC voltage via a DC source, however, it would take up relatively large expensive real estate of the motherboard. So, unless HTC has a very good reason, requiring them to get a 5V from a 3.7V (eg for some fussy components), HTC shouldn't have any form of DC voltage doubler in the unit. So, consider the voltage wise, you are out of luck.
Click to expand...
Click to collapse
Yes that is true, but they are also saying that the processor of the wizard can act as an usb host. So maybe it should work with an external powersource, aka USB Power Injector.
...which leads us back to Zeno's drivers that require a USB power injector...

[webcam support] USB Host support that YOU can try (now in nightlies)

USB support and usb audio support were recently picked up by mainstream, so starting from nightly 135 you get all of the below (except for the webcam support). I am leaving the old information for history preservation purposes. The usb mode utility is replaced by Nook Tweaks
IMPORTANT! READ TO THE VERY END FIRST!
Ok, so I know some people want to try the usbhost mode and I am releasing this trial package to gather feedback and see how it works in the wild.
I am not responsible if you fry your nook (see below).
First, you need some hardware, namely microUSB to USB Female adapter. Something like this one. (There are cheaper ones on ebay, but delivery time is about 3 weeks, I got mine for $1.43).
Also an USB gender changer will work.
Then you need a kernel with usbhost enabled. I made a package that you can install onto emmc with CWM, or the same package could be installed on SD card if you use my installer. This package is only for CM7 users that already converted to .32 kernel. If you still run 2.6.29 kernel (ie CM7.0.3) - you need to upgrade to a fresh nightly like -87 or wait longer.
You can get the kernel here: http://nook.handhelds.ru/usbhost/update-CM7-green-usbhost-2-emmc.zip
As you probably know, the Nook Color comes a little bit crippled in a sense that id pin on the OTG controller is not connected and so we cannot rely on it to properly choose mode. Instead I wrote an app to achieve the switching.
The app is ugly as hell, sorry, it's my first attempt at writing an Android app, bear with me, it would become better (I accept free Android programming lessons too! ).
You can get the app here: http://nook.handhelds.ru/usbhost/NookUsbHostSwitcher.apk
The app requires root, so make sure to allow it once asked and make it to remember the setting.
Install the kernel, install the app.
Reboot into the new kernel.
Run the app and you'll see a big "ToggleButton". When it's in Off mode, that means your nook is in usb client mode.
When you press it for the first time it will change to On, that means usb host.
(you can connect your external accessory before or after you enable the host mode).
When you press it again, it will change to Off and switch back to the client mode.
I recommend that before switching the host mode off you first disconnect your accessory, otherwise the internal hub cannot switch off.
(note that in some configurations the host mode enabling did not work for me on the first try and I needed to turn it off and on several times before the device registered. I believe there is no such problem with this kernel, but keep in mind such a possibility)
Addition in v2:
A second button is now added that lets you to force "external" vbus source. When you make it to ON, the battery charger pump is opened and connected to vbus terminals. In this state it is safe to connect nook to a power source, usb host will work and the battery should be charging at the same time.
Even without external power if your battery has high enough voltage (usually when it's full for me), it still somewhat works.
Additionally if you try to enable HostMode and an external power source is connected already, the "external" power mode is enabled (not shown in the app, though). This is to avert a potential disaster from below and to save battery.
Now the important part: When the Nook is in host mode, it drives 5V vbus off the connector at all times. If you connect the nook to a PC in this state, the PC will try to drive it's own vbus. Last time I tried to do this, my usb port in the nook fried! You've been warned! But that was before I had the host mode working and it might have been caused by a number of other things I was doing at the time too. Anyway I am not very keen on repeating this experiment again. If you are curious and decide to try it anyway regardless of the warning, make a comment and tell me what happened
Supported devices (this is important, right?)
Note that only low power devices will work if you don't have an externally powered hub. Don't expect to be able to drive a cdrom or a hard drive out of just nook. 100mA is the current limit. (Current testing shows that if you use ISB hub, even unpowered, it hides this issue).
All keyboards should be supported. (the keymap in CM7 is a bit strange, though, you'll see it).
All mice should be supported too, though I have not tried.
I enabled Xbox and PS3 controllers support, but have not tried.
Usb camera support - I only enabled UVC-compliant cameras (Microsoft Live cameras are compliant for example, probably many others). You also need specially built nigthtly with videocam support (try Camera app).
USB storage - generic support enabled, so should work for you.
Serial port support - only generic support enabled (I guess GPS devices mostly work as serial ports)
USB audio support enabled - not sure if the Android has any idea how to support it.
The kernel is basically normal dalingrin's kernel with USB host support enabled and ipv6 disabled (to keep kernel size below 3M threshold).
Kernel source (for the curious and if you want to build your own kernel with some mode devices support): git://github.com/dalingrin/nook_kernel.git branch usbhost
Enjoy and share your experience.
Just ordered the adapter for this. Thanks so much for your efforts!
So if anything goes wrong, we can revert by just flashing Dalingrin's kernel again, right?
Going to order an adapter now
Quick (and possibly stupid) question: Would gender changer plugs work in combination with a regular micro USB->USB cable?
this is incredible, thanks for all your hard work !!!
Awesome news
Thanks for all your work on this. It just amazes me how much talent is here on XDA.
It also amazes me that Android tablets/phones struggle with something a 10+ year old Windows 98SE laptop can do with ease.
Ordered my cable and can't wait to try transferring pictures from my camera to the Nook!
Has anyone seen a netbook-style keyboard/case combo that would work with the nook? (Bluetooth and/or USB)
Great work man, can't wait to try this out!!
Just built cm7 from source as of 6AM and flashed your kernel, turned usb host on and attached my usb gender changer to my phone's micro usb cord and plugged in a mass storage device. dmesg in Terminal Emulator showed the device properly but apparently android has no idea what to do with it, the light didn't even come on. Encouraged by this minor sign of life, I plugged in a keyboard and it works (though of course the android keymap is close to full retard).
Good job! I think nullghost's idea of adding this to the CM7 pulldown menu is a good idea. Maybe also the power control?
You will need to mount the USB storage yourself.
Glad I though ahead and got an adapter
Working well so far. Will try more accessories at school!
Any advice on what adapter to buy? I was looking at this one:
http://www.amazon.com/USB-Micro-Ada...YMU6/ref=sr_1_1?ie=UTF8&qid=1306940268&sr=8-1
but not sure if it is what we are looking for since one review said it does not work for USB OTG.
Actually, thinking about it, is the USB host mode that is enabled here, different from the USB OTG that i am thinking of?
And since i dont mind being the first to ask a dumb question..
hololight said:
You will need to mount the USB storage yourself.
Click to expand...
Click to collapse
Would this be something done in the terminal, or through the settings UI (aka, it will show up on the same place that the SD card shows up)?
Using my mouse with my Nook at the moment
I went out and bought a gender changer, which seems to work. Thank you a LOT!
No luck with my Xbox 360 controller. It lights up and then keeps on blinking. I tried to assign hardware keys in FPse but it didn't respond to any keypresses.
Also, my Nook froze when plugging my mouse back in.
Dangit! How am I suppose to get any work done when you release something like this. Gonna have to run out and get a gender changer during lunch so I can play around with this!
Thank you verygreen!
-Racks
Yep, keyboard and mouse work!
THIS IS AWESOME!
holo and vg, you guys rock!
Youtube video here:
http://www.youtube.com/watch?v=wxuhCS50-e0
I know...it sucks and it's rotated. I'll get a better one up.
ace7196 said:
Yep, keyboard and mouse work!
Click to expand...
Click to collapse
Both at the same time? Using a hub?
Sorry, haven't tried that yet. But in theory it should (with a powered hub).
ace7196 said:
Sorry, haven't tried that yet. But in theory it should (with a powered hub).
Click to expand...
Click to collapse
Even unpowered hub should be fine. I use unpowered hub and it works with keyboard and mass storage.
Divine_Madcat said:
Any advice on what adapter to buy? I was looking at this one:
http://www.amazon.com/USB-Micro-Ada...YMU6/ref=sr_1_1?ie=UTF8&qid=1306940268&sr=8-1
but not sure if it is what we are looking for since one review said it does not work for USB OTG.
Actually, thinking about it, is the USB host mode that is enabled here, different from the USB OTG that i am thinking of?
Click to expand...
Click to collapse
OTG cable is only needed when hardware is supporting OTG mode natively.
All it does is has an extra connected pin. Nook ignores this signal unfortunately.
Divine_Madcat said:
Would this be something done in the terminal, or through the settings UI (aka, it will show up on the same place that the SD card shows up)?
Click to expand...
Click to collapse
Nook cannot have fully automatic otg mode where you just plug an accessory and it works, then unplug, lug a host and it works.
Instead you need to manually control the mode from the provided app.
This is so awesome, if the nook can support a usb Ethernet adapter i'd be in heaven, I wouldn't have to lug around my Sony UX. Who has the best development community in the world? Nook does!
verygreen said:
OTG cable is only needed when hardware is supporting OTG mode natively.
All it does is has an extra connected pin. Nook ignores this signal unfortunately.
Nook cannot have fully automatic otg mode where you just plug an accessory and it works, then unplug, lug a host and it works.
Instead you need to manually control the mode from the provided app.
Click to expand...
Click to collapse
Thanks for the cable info - adapter is ordered.
As for the mass storage, i guess what i was asking in a round about way; what IS the proceedure to mount a USB flash stick (for instance) so that something like Root Explorer could see the files?
Personally, i am REALLY interested in this for my photography. I would love to be able to connect my nook in the field, and get a sneak peak at what my shots are looking like, without having to haul out a full on laptop. My camera connects as a mass storage device, so assuming that Android could read a mass storage volume, i would be in business.
I hate you guys! =( Always making me spend more money that I don't have! Now I need to go find a good solid case with a usb keyboard!

(Q) wireless keyboard for nst

Hi, is anybody using wireless keyboard on nst? Wired one works fine for me. But when I'm connecting wi-fi mouse, it doesn't seem to work correctly, there is no control over the pointer. I am asking because that could give me bigger choice of keyboards, and maybe also would help to reduce the battery drain. Thanks
Mouses are not currently supported correctly.
Movement gets translated into KEYCODE_DPAD KeyEvents.
thank you... So does that mean that wi-fi keyboard should work normally?... Sorry, I just don't have any to check myself. I don't wanna buy before someone will tell that it is possible. thanks
Well, there's wireless, Bluetooth and WiFi, all very different.
You could use a regular wireless keyboard with a USB dongle on the Nook side.
That will work fine as to the Nook it looks exactly like a wired keyboard.
USB mode as it is now uses a lot of current.
You time between charging will drop to once a day.
Bluetooth would have been a good one, if only B&N had spent the extra $0.50 for the WiFi module with Bluetooth.
Bluetooth on a USB dongle would have all the drawbacks of the above wireless keyboard but would also require a driver.
Keyboard over WiFi using a PC or another Android device would work.
You'd just need software on both ends.
Many keyboards that say "WiFi" are simply wireless keyboards that use the ISM spectrum the same as WiFi does.
The easy way to check is if the package includes a USB dongle.
Thanks for very detailed answer. Yes, I was thinking only about keyboard with wi-fi dongle. I've already noticed that unfortunately bluetooth will not work. There is a rather small range of portable USB keyboards that are specially dedicated to android devices. I was looking for one with a stand for comfortable typing anywhere I will be... a train, park bench etc.... Or well, you can find many usb keyboards with stands on ebay for example , but they all looks almost the same just with different logos, cheap, poor quality ones. Market is concentrated on bluetooth keyboards, then a lot of them are quite decent. So I'm just going to find a good usb compact keyboard, and then mount some kind of stand to it myself. Anyway, that is not very important for others, this post might be already to long.
ok, my question is: will it help to reduce battery usage in usb host mode, if I'll use keyboard powered by batteries?
Excuse my English. Thanks
09mysh said:
ok, my question is: will it help to reduce battery usage in usb host mode, if I'll use keyboard powered by batteries?
Click to expand...
Click to collapse
A good question. And I have a related one - won't using a USB dongle and wireless keyboard take a good bit less current than a plain USB keyboard, because the port isn't supplying power to the keyboard itself? I know to expect things like "It takes more battery life from the WiFi than the current" but I'd just like to know exactly.
Renate NST said:
Mouses…
Click to expand...
Click to collapse
*Mice
:laugh:
Sorry to bump this old thread (and hope someone might still read this).
I was wondering about Renate's bluetooth suggestion above. I realise it would still not be ideal, but I've got a pretty good bluetooth keyboard for my other android devices and it would be great if I could try it with my nook as well (in particular I'd also be curious to test NOOK!E's question about power demand).
I'm running pinguy1982's tweaked ROM (http://forum.xda-developers.com/showthread.php?t=2651053) and have been able to connect a micro-USB keyboard (the cheap ones built-in in some cases) using Renate's USBmode app. Now I was wondering if/how I would be able to use a USB bluetooth dongle to connect my bluetooth keyboard. Using the USB app, it seems to be recognised - it says something about a wireless device under View USB when I connect the bluetooth dongle. Exact output is:
1d6b:0002:01 MUSB HDRC host driver
0a12:0001:01 CSR8510 A10
#1 - e0:01:01 Wireless
#2 - e0:01:01 Wireless​
Click to expand...
Click to collapse
I don't know how to proceed from here though, as there's obviously no menu point for pairing a bluetooth device. I've had a look around for standalone apps for this, but not successful so far (devices that have bluetooth usually have a regular menu for that of course).
Any help about how to proceed would be much appreciated!
PS:
Just found BlueInput, but it just tells me that Bluetooth is not available. I guess that means something else is missing (if this is at all feasible to work).
Oops, sorry, I didn't see this.
The Nook has remnants in the build for Bluetooth support.
That's mostly in permissions and groups.
The WiFi adapter module on the circuit board does not support Bluetooth.
For an extra $0.25 they could have speced the version of the module that supported it.
I guess that it's not a priority for B&N, even the new Nook Glow Plus has the same problem.
Your Bluetooth dongle gets enumerated on the USB host, but there are no drivers to handle it.
This is indicated by the lack of black dots to the right.
A wired keyboard would show you dots.
Renate NST said:
Oops, sorry, I didn't see this.
The Nook has remnants in the build for Bluetooth support.
That's mostly in permissions and groups.
The WiFi adapter module on the circuit board does not support Bluetooth.
For an extra $0.25 they could have speced the version of the module that supported it.
I guess that it's not a priority for B&N, even the new Nook Glow Plus has the same problem.
Your Bluetooth dongle gets enumerated on the USB host, but there are no drivers to handle it.
This is indicated by the lack of black dots to the right.
A wired keyboard would show you dots.
Click to expand...
Click to collapse
Thanks for your reply! So I guess there's no hope to get this to work (except for possibly somehow adding drivers, which I'm afraid is probably beyond my capabilities)...

[SOLVED]USB OTG+Charge at the same time?

Is it possible? I assume it would be but not at fast charge rate, I'll be using it on a flight and it would be nice to keep it topped up, as I'm sure connecting an external hard drive will drain the battery very fast (uses 2.5W!)
The dual charging + USB storage access is usually something that is kernel dependent. I did just verify that, on my M5, an OTG cable will only do one or the other. However, in the future I'd bet a developer will add that capability.
Have a good trip!
equi_design said:
The dual charging + USB storage access is usually something that is kernel dependent. I did just verify that, on my M5, an OTG cable will only do one or the other. However, in the future I'd bet a developer will add that capability.
Have a good trip!
Click to expand...
Click to collapse
Thanks, i'm going away end of august, but in any case the flight is only 3hrs, and with the big battery i should survive.
:good:
Sorry to necro this thread but has this changed lately? I would love to use the M5 in a fixed car install but that would require OTG+Charging. Is there a known ROM, Kernel or hardware/dongle that enables this?

MHL or USB-C video support?

I know this is not a popular feature these days, but I figure I would ask. Does this support any sort of video output via a cable? MHL dongle, USB-C to HDMI dongle, etc.
I would love to hook it up to a TV to play emulator games with no input lag.
Sorry I can not answer your question but I got to say that usb-c video out is criminally underrated. It is such an amazing and hassle free feature. I really hope it catches on. If you ask me its because for some reason its not advertised. I only know about it because I Googled it out of curiosity. 2 days and $15 later I had one of my own.
Clyzm said:
I know this is not a popular feature these days, but I figure I would ask. Does this support any sort of video output via a cable? MHL dongle, USB-C to HDMI dongle, etc.
I would love to hook it up to a TV to play emulator games with no input lag.
Click to expand...
Click to collapse
I would love to have this feature too. Would love to run something like Sentio Desktop or better still MIUI Desktop Mode (once they implement it). I would even buy this phone solely for this purpose.
I have the same question, can we use a cable usb c to hdmi in order to connect poco f1 to a tv.
The snapdragon 845 doas support it so it should work
But it doesn't work on some Sony smartphones with the supported soc
bro to clarify, actually usb type c is 3.0 port, and it does support reverse charging, dex, audio peripherals etc (according to USB corporation). but midrange and budget flagships like poco, oneplus does not provide 3.0 connectivity via those ports. they put a c type look-a-like port but it is micro usb wiring done on board. you can charge using any type c branded cable and transfer data but at 2.0 speed and the features you asked may not work. only limited manufacturers like lg, sony, samsung only provide real type c 3.0 or 3.1 port connectivity.
hope this clarifies something.
Gregbmil1 said:
Sorry I can not answer your question but I got to say that usb-c video out is criminally underrated. It is such an amazing and hassle free feature. I really hope it catches on. If you ask me its because for some reason its not advertised. I only know about it because I Googled it out of curiosity. 2 days and $15 later I had one of my own.
Click to expand...
Click to collapse
Does it work on Poco?
USB C video doesn't work. Already tested. There's already a thread and few users like me tested with such accessories. MHL also doesn't work (not tested by me but some other user) search general section.
I wonder if it can be enabled by software, though. There are much older phones without USB-C that can do it. Shouldn't USB 2 provide enough bandwidth?
JeffPotatoBubble said:
I wonder if it can be enabled by software, though. There are much older phones without USB-C that can do it. Shouldn't USB 2 provide enough bandwidth?
Click to expand...
Click to collapse
As far as I understand it's a hardware issue, as in the hardware doesn't support it. I'm sure the USB type C port is just for charging and file transfer at USB 2.0 speeds

Categories

Resources