New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mali100
Old
#31  
Senior Member
Thanks Meter 123
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
Green? I never get green. I can get red and the red stays on, but never green.
I only got it once to red, when I had a standard micro usb cable connected (wasn't connected to anything on the other side) but couldn't reproduce it.
 
Renate NST
Old
#32  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 481
Posts: 1,239
Join Date: Feb 2012
Location: Boston
Ok, a razor blade and a bit of hacking on a spare micro USB cable proves it:

The NST does support the OTG pin detect (despite statements made elsewhere).
The signal runs around 1 V and should be grounded to enable host mode.
Without grounding the pin you can not get things working.

I got the green light to come on! I got a_host! I got the keyboard to work!

If you feel adventurous you can try a razor blade on a plug.
Solder a jumper and you're there.
Or buy an OTG adaptor.
The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
verygreen
Old
#33  
Senior Member - OP
Thanks Meter 1295
Posts: 795
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
Ok, a razor blade and a bit of hacking on a spare micro USB cable proves it:

The NST does support the OTG pin detect (despite statements made elsewhere).
The signal runs around 1 V and should be grounded to enable host mode.
Without grounding the pin you can not get things working.

I got the green light to come on! I got a_host! I got the keyboard to work!

If you feel adventurous you can try a razor blade on a plug.
Solder a jumper and you're there.
Or buy an OTG adaptor.
Hm, interesting. I know that in the Nook Color the id pin is not routed.

Additionally there is no interrupt when you short the ID pin (or at least I never observed anything that would suggest the interrupt coming.)

I just did a bit of testing and indeed seems the id pin is important. That's good to know.
Need to play with some code to try and only supply vbus if otg cable is used, and if it works, we would be able to do away with the app altogether.
The Following 2 Users Say Thank You to verygreen For This Useful Post: [ Click to Expand ]
 
Renate NST
Old
#34  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 481
Posts: 1,239
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by verygreen View Post
...we would be able to do away with the app altogether.
That would be great. Or just making it a "Quick Setting" like WiFi or on the status bar?
 
mali100
Old
#35  
Senior Member
Thanks Meter 123
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Hi verygreen,
For me it works only if I follow exactly this sequence:
-connect OTG-cable without the keyboard
-enable host mode
-connect keyboard to the otg-cable
Do you have any idea why?
 
verygreen
Old
(Last edited by verygreen; 12th February 2012 at 04:32 AM.)
#36  
Senior Member - OP
Thanks Meter 1295
Posts: 795
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
Quote:
Originally Posted by mali100 View Post
Hi verygreen,
For me it works only if I follow exactly this sequence:
-connect OTG-cable without the keyboard
-enable host mode
-connect keyboard to the otg-cable
Do you have any idea why?
Try this:
Connect the cable with the keyboard.
enable host mode (see the green light turning on briefly and then turning off all by itself)
after the green light is off, turn off host mode
wait a second
turn on host mode again.

Works for me in this way.
 
toxicdog
Old
#37  
Junior Member
Thanks Meter 0
Posts: 29
Join Date: Jun 2007
Location: Sopron
It can't seem to work for me.

My nook is rooted.

When I try to echo host to the mode file, it succeeds, but when I try to 'cat mode', it stays 'b_idle' or 'b_peripeherial'.

The switcher app is not working as well: it says nothing, and the button does nothing. I mean, I can press it, but nothing happens, it says 'Click to enable USB Host Mode', no matter how many times I click it.

Did I install the two binaries the wrong way?
 
verygreen
Old
#38  
Senior Member - OP
Thanks Meter 1295
Posts: 795
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
Quote:
Originally Posted by toxicdog View Post
It can't seem to work for me.

My nook is rooted.

When I try to echo host to the mode file, it succeeds, but when I try to 'cat mode', it stays 'b_idle' or 'b_peripeherial'.

The switcher app is not working as well: it says nothing, and the button does nothing. I mean, I can press it, but nothing happens, it says 'Click to enable USB Host Mode', no matter how many times I click it.

Did I install the two binaries the wrong way?
So, when you do cat /proc/version , does it show that it was built by green@...
 
Renate NST
Old
#39  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 481
Posts: 1,239
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by toxicdog View Post
It can't seem to work for me.
The switcher apps are dependent upon superuser.apk and su.

To troubleshoot, you can stick with the ADB commands.

Host mode needs the new uRamdisk and uImage copied into the boot partition.

You need to have a OTG cable plugged in when you issue a host command.
(OTG is a special cable that will say USB OTG cable.)

And finally, entering host mode is very erratic. Sometimes it will just do the 100 millisecond flash, other times it will lock into host mode.
 
mali100
Old
#40  
Senior Member
Thanks Meter 123
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Quote:
Originally Posted by verygreen View Post
Try this:
Connect the cable with the keyboard.
enable host mode (see the green light turning on briefly and then turning off all by itself)
after the green light is off, turn off host mode
wait a second
turn on host mode again.

Works for me in this way.
I can confirm that this works also for me. Still a bit tricky but useable. Thanks

Tags
usb host, usbhost