Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,899 Members 48,890 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] USB Host support (working)

Tip us?
 
Renate NST
Old
#91  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 792
Posts: 1,967
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by Googie2149 View Post
I wonder how I could make a portable charger...
Hmm, that's a big subject. Basically you want something with batteries that puts out 5.0 Volts.

The Nook itself has a 1530 mAH battery.
It depends on how hard core you want to get. Picked at random:
http://www.amazon.com/Universal-1000...dp/B005NGLBHM/

You could build something with D cells and put in a little switching regulator.

When you have the 5.0 Volts all you need to do is splice the power in, feed a hub or back-feed a hub.

In any case, don't blow your Nook up!

There are two possible external power modes on the Nook.
  1. It can takes all the power from outside and leaves the battery alone.
  2. It can charge and operate from external power.
 
ApokrifX
Old
#92  
Senior Member
Thanks Meter 47
Posts: 410
Join Date: May 2011
Quote:
Originally Posted by Googie2149 View Post
I wonder how I could make a portable charger running on batteries to compensate for the battery drain while using host mode... (unless this app will shut it down when it's not needed)
I might be wrong, but somewhere early in this thread it was something like:
If you enable host-mode, it'll drain Nook battery like in 1 day, even if nothing is connected.
 
Renate NST
Old
#93  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 792
Posts: 1,967
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by ApokrifX View Post
It'll drain Nook battery like in 1 day, even if nothing is connected.
People have had varied and random experience with batteries draining.
I like the auto shut-off at one hour and usually just click the rear power button when I'm done reading.
I never noticed it before, but it appears that the WiFi does not shut down when you do that.
 
ApokrifX
Old
#94  
Senior Member
Thanks Meter 47
Posts: 410
Join Date: May 2011
Quote:
Originally Posted by Renate NST View Post
People have had varied and random experience with batteries draining.
I like the auto shut-off at one hour and usually just click the rear power button when I'm done reading.
BTW: What is the adb shell command to shutdown?
My rear button is doesn’t work well…

Quote:
Originally Posted by Renate NST View Post
I never noticed it before, but it appears that the WiFi does not shut down when you do that.
When you do what?
Shutdown using rear power button?
 
Renate NST
Old
#95  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 792
Posts: 1,967
Join Date: Feb 2012
Location: Boston
I just now clicked the rear button and the screen goes to my screen saver.
From the outside, it looks dead.
I'm ADB shell-ing with the thing acting normal.
Lol, I can even start activities, the screen flashed, then went back to the screen saver.
The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
durn_it
Old
#96  
Junior Member
Thanks Meter 1
Posts: 9
Join Date: Mar 2009
Quote:
Originally Posted by Renate NST View Post
The "State", "Drive" and "Sense" are only what the driver reports.
They may actually be different.

Normally with this driver you will get flashing of the screen when it starts working.

Do you get the green LED to go on solidly before you plug in?

You should be able to turn the green led on/off with nothing attached.

If you can only get it to flash whenever you hit "Host" and you have hit "Magic" already then you have another problem.

You know, I can't make up my mind on this OTG. I use an OTG, it works fine. I tried with a non-OTG and it worked then. Now it doesn't seem to work! Recommendation: use an OTG cable.
The green LED doesn't switch on unless I have it hooked up to power when pressing magic & host buttons.

I'll try getting an OTG cable. Thanks for your help!
 
ApokrifX
Old
#97  
Senior Member
Thanks Meter 47
Posts: 410
Join Date: May 2011
Quote:
Originally Posted by Renate NST View Post
I just now clicked the rear button and the screen goes to my screen saver.
From the outside, it looks dead.
I'm ADB shell-ing with the thing acting normal.
Lol, I can even start activities, the screen flashed, then went back to the screen saver.
That's short vs. long push...
 
Renate NST
Old
#98  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 792
Posts: 1,967
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by ApokrifX View Post
That's short vs. long push...
Just a short click. Not the full "Do you want to turn your device completely off".
 
ApokrifX
Old
#99  
Senior Member
Thanks Meter 47
Posts: 410
Join Date: May 2011
Quote:
Originally Posted by Renate NST View Post
Hmm, that's a big subject. Basically you want something with batteries that puts out 5.0 Volts.
Link below for "micro USB Dual Male Y Adapter"
http://www.amazon.com/Samsung-Splitt...ef=pd_sxp_f_pt

It's gotta be "micro USB Dual FeMale Y Adapter"
So USB charger can be used.
Or the "Dual Male Y" above + "gender-changer" for charger

---------- Post added at 02:32 AM ---------- Previous post was at 02:31 AM ----------

Quote:
Originally Posted by Renate NST View Post
Just a short click. Not the full "Do you want to turn your device completely off".
Right.
Do you know the command to do it via adb?
The Following User Says Thank You to ApokrifX For This Useful Post: [ Click to Expand ]
 
Renate NST
Old
(Last edited by Renate NST; 25th February 2012 at 01:42 AM.)
#100  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 792
Posts: 1,967
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by ApokrifX View Post
Link below for "micro USB Dual Male Y Adapter"
http://www.amazon.com/Samsung-Splitt...ef=pd_sxp_f_pt

It's gotta be "micro USB Dual FeMale Y Adapter"
So USB charger can be used.
Or the "Dual Male Y" above + "gender-changer" for charger

---------- Post added at 02:32 AM ---------- Previous post was at 02:31 AM ----------


Right.
Do you know the command to do it via adb?
Actually, I'm using a modified powered hub now. It works like a charm and no Y.

I would have though that input keyevent 26 would work, but I just checked it and it doesn't. I'm more likely to just use the reboot command, either in the shell or as an adb argument.

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

Advanced Search
Display Modes