Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,216 Members 53,457 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] USB Host support (working)

Tip us?
 
digiflash
Old
(Last edited by digiflash; 7th February 2012 at 09:07 PM.)
#21  
Junior Member
Thanks Meter 16
Posts: 22
Join Date: Oct 2007
I tried everthing. Restore + New root..
I didn't get the usb host to work. Replacing the uimage and uramdisk doens't work.
Are there any steps I have forgotten?

Help would be apprechiated
 
verygreen
Old
#22  
Recognized Contributor - OP
Thanks Meter 2,580
Posts: 1,289
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
@Googie2149: Any standard USB cable will work as well as any other.
The ID pin on the micro USB connector on the Nook is not going anywhere so a special OTG cable is not required.

I loaded in the new uImage and uRamdisk and things act more consistently, but I still can't get a keyboard to work.

Neither of the two utilities out there seem to work correctly for me. I do have su installed. I have had more success with simple commands

Code:
echo host > /sys/devices/platform/musb_hdrc/mode
echo peripheral > /sys/devices/platform/musb_hdrc/mode
cat /sys/devices/platform/musb_hdrc/mode
One thing is clear; the Nook adheres to the USB standard for supplying power, that is, it supplies it for 100 millisecs and if the peripheral signals back correctly it continues to supply it. Issuing a host command cause the red LED to flash for about a 1/10 of a second. Supplying power on the red wire is not necessary for host communication.

My setup has a powered hub and a cable with the red lead not carried through. I can issue a host command but it never seems to communicate. The status reads back "a_wait_vrise".

Does anybody have any insight into the FSM to say what is going on?
My recent testing seem to indicate that you must enable host, then disable host, then enable it again and then it will work.
 
verygreen
Old
#23  
Recognized Contributor - OP
Thanks Meter 2,580
Posts: 1,289
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
Quote:
Originally Posted by digiflash View Post
I tried everthing. Restore + New root..
I didn't get the usb host to work. Replacing the uimage and uramdisk doens't work.
Are there any steps I have forgotten?

Help would be apprechiated
Did you install the app?
 
cybermaus
Old
#24  
Senior Member
Thanks Meter 462
Posts: 1,203
Join Date: Dec 2008
Location: Earth
Quote:
Originally Posted by Thiso View Post
BT USB dongle consumes almost same as USB mouse
http://www.tomsguide.com/us/squeezin...ew-583-26.html
Since USB mouse is working, BT USB might be feasible as well...
I second the USB->BT->Audio route, it would be great. One of these tiny no-larger-than-the-plug USB dongles would be really low power.

Please see if you can make that work.
 
digiflash
Old
(Last edited by digiflash; 9th February 2012 at 06:44 PM.) Reason: adding information
#25  
Junior Member
Thanks Meter 16
Posts: 22
Join Date: Oct 2007
Quote:
Originally Posted by verygreen View Post
Did you install the app?
Yes. I also tried it through the shell.
But my problems start before that step.
If I use the 2 usbhost-binaries with TouchNooter 2.1.31 my Nook isn't rooted anymore. The superuser-app won't work for me.
Using the switcher-app only shows a message that my kernel isn't able to switch due to my lost su-abilities.
After restoring and flashing other files (e.g. SalsichaNooter) my Nook works perfect.
 
Renate NST
Old
#26  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by verygreen View Post
My recent testing seem to indicate that you must enable host, then disable host, then enable it again and then it will work.
I can switch back and forth until the cows come home and it doesn't seem to make a difference.

None of the applications for switching seem to work correctly or enumerate the USB bus.

What do you get when the USB is working and you do a:
Code:
cat /sys/devices/platform/musb_hdrc/mode
You can also read the power status here, but the LED already tells you that.
Code:
cat /sys/devices/platform/i2c_omap.1/i2c-adapter/i2c-1/1-0048/twl4030_usb/vbus
 
mali100
Old
#27  
Senior Member
Thanks Meter 131
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Today I got my OTG-cable and the host mode works here.
What I have to do is plug in the otg cable without a keyboard connected, then use the USB Host Mode switch app to enable the host mode, and then connect the keyboard.
If I don't follow this sequence, it doesn't work. For example if I try to enable the host mode without the otg cable plugged in, it doesn't work, and the led stays off.
 
Renate NST
Old
(Last edited by Renate NST; 11th February 2012 at 08:13 PM.) Reason: Correcting errors
#28  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
That's interesting that you say that an OTG cable works.
Elsewhere it's reported that the OTG ID pin is not connected in the NST.
Wrong! See later posts.

It's hard to check that since there is no easy way to probe that pin.
An OTG cable grounds that pin, but doesn't bring it out to where it could be measured.

It's still not clear if you can get host mode to work without the LED being on.
Powering would not be essential using a powered hub.

I still can't get anything to work here.
I can get the red LED on with a host command when it's first plugged into a charger.

Maybe su isn't working? It's there, but how do I check it? Neither of the switch applications seem to work.

Could you tell me what this does when you are connected to a keyboard?
Code:
cat /sys/devices/platform/musb_hdrc/mode
 
mali100
Old
(Last edited by mali100; 11th February 2012 at 05:59 PM.)
#29  
Senior Member
Thanks Meter 131
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
Could you tell me what this does when you are connected to a keyboard?
Code:
cat /sys/devices/platform/musb_hdrc/mode
When the host mode is switched off:
b_idle
plugging in the otg cable:
b_idle
switching on host mode:
a_wait_vrise and the led is green
plugging in the keyboard into the otg cable:
a_host and the text on the button for switching to host mode changes to "ON" (led stays green)

If I don't plug in the otg cable first it stays on a_wait_vrise even after plugging in the otg + keyboard

I use the apk from this post for switching http://forum.xda-developers.com/show...4&postcount=16
The Following User Says Thank You to mali100 For This Useful Post: [ Click to Expand ]
 
Renate NST
Old
#30  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 805
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Green? I never get green. I can get red and the red stays on, but never green.

I've also never seen a_host.

Hmm, maybe I should get an OTG cable.

Tags
usb host, usbhost
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes