Post Reply

[WIP] USB Host support (working)

6th February 2012, 07:30 PM   |  #21  
Junior Member
Thanks Meter: 16
 
22 posts
Join Date:Joined: 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
Last edited by digiflash; 7th February 2012 at 09:07 PM.
9th February 2012, 05:53 AM   |  #22  
OP Recognized Contributor
TN
Thanks Meter: 2,582
 
1,289 posts
Join Date:Joined: Feb 2011
Donate to Me
Quote:
Originally Posted by Renate NST

@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.
9th February 2012, 06:00 AM   |  #23  
OP Recognized Contributor
TN
Thanks Meter: 2,582
 
1,289 posts
Join Date:Joined: Feb 2011
Donate to Me
Quote:
Originally Posted by digiflash

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?
9th February 2012, 03:56 PM   |  #24  
Senior Member
Flag Earth
Thanks Meter: 462
 
1,203 posts
Join Date:Joined: Dec 2008
Quote:
Originally Posted by Thiso

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.
9th February 2012, 06:39 PM   |  #25  
Junior Member
Thanks Meter: 16
 
22 posts
Join Date:Joined: Oct 2007
Quote:
Originally Posted by verygreen

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.
Last edited by digiflash; 9th February 2012 at 06:44 PM. Reason: adding information
11th February 2012, 12:10 PM   |  #26  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 807
 
1,995 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by verygreen

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
11th February 2012, 03:21 PM   |  #27  
Senior Member
Thanks Meter: 132
 
208 posts
Join Date:Joined: 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.
11th February 2012, 05:22 PM   |  #28  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 807
 
1,995 posts
Join Date:Joined: Feb 2012
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
Last edited by Renate NST; 11th February 2012 at 08:13 PM. Reason: Correcting errors
11th February 2012, 05:43 PM   |  #29  
Senior Member
Thanks Meter: 132
 
208 posts
Join Date:Joined: Jun 2007
Donate to Me
Quote:
Originally Posted by Renate NST

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
Last edited by mali100; 11th February 2012 at 05:59 PM.
The Following User Says Thank You to mali100 For This Useful Post: [ View ]
11th February 2012, 06:01 PM   |  #30  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 807
 
1,995 posts
Join Date:Joined: Feb 2012
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.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes


Top Threads in Nook Touch Android Development by ThreadRank