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?
 
ros87
Old
#41  
ros87's Avatar
Senior Member
Thanks Meter 156
Posts: 312
Join Date: Oct 2010
Location: Bodø

 
DONATE TO ME
Quote:
Originally Posted by verygreen View Post
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.
That would be great
Did you remember to back up your Nook?
Author of Nook2 Recovery Tools
 
Renate NST
Old
#42  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 481
Posts: 1,237
Join Date: Feb 2012
Location: Boston
I've got a USB keyboard working fairly well.
The escape key doesn't seem to "escape" out of anything.
Also, F8 or the End key will cause the Nook to do a direct shut-off without even going to the shut-off screen. It goes to the normal screensaver.
The page up/down keys don't work like I would have them work on Opera Mobile.

On the plus side, the multimedia volume up/down keys pop up a loudspeaker icon and you can adjust the (non-existent) volume! :P
The multimedia search key will call up the search dialog.

A mouse will work, it's kind of amusing.
The scaling is much too sensitive. I don't know where the scale values get configed.
The scroll wheel is apparently not supported.

I tried plugging a USB GPS hockey puck in. It is scanned but I couldn't get anything out of cat /dev/tty???
 
toxicdog
Old
#43  
Junior Member
Thanks Meter 0
Posts: 29
Join Date: Jun 2007
Location: Sopron
Thanks for the tips, I got it working!

The problem was with the complied binaries, somehow, my installer script didn't work.

Anyways, It works all the time. No need to unplug, replug the cable, or the keyboard multiple times, or switch usb host mode on-off-on to work. I just enable it with the mode changer button, and it works as expected.

Unfortunately, USB mouse gets recognized, but only as a keyboard device. I mean, it only issues UP, and DOWN commands. I guess we're missing drivers for this at the moment.

Is there anybody here, developing usb host drivers for our device?

Mouse with a pointer, and mass storage support would be awesome.
 
mali100
Old
(Last edited by mali100; 14th February 2012 at 11:44 AM.)
#44  
Senior Member
Thanks Meter 123
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Hi,
I built the kernel with some additional modules enabled. I was able to mount a usb-memory, but had to use a powered hub.

@Renate NST: In this kernel the usb-serial driver should be included, maybe you could test it with the gps.

/edit: removed attachment, new one is here http://forum.xda-developers.com/show...2&postcount=51
The Following 2 Users Say Thank You to mali100 For This Useful Post: [ Click to Expand ]
 
ros87
Old
#45  
ros87's Avatar
Senior Member
Thanks Meter 156
Posts: 312
Join Date: Oct 2010
Location: Bodø

 
DONATE TO ME
Quote:
Originally Posted by mali100 View Post
Hi,
I built the kernel with some additional modules enabled. I was able to mount a usb-memory, but had to use a powered hub.

@Renate NST: In this kernel the usb-serial driver should be included, maybe you could test it with the gps.
Lo mate, as this is a dev thread it would be nice if you included the kernel config
Did you remember to back up your Nook?
Author of Nook2 Recovery Tools
 
mali100
Old
#46  
Senior Member
Thanks Meter 123
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
config is included in the zip
 
ros87
Old
#47  
ros87's Avatar
Senior Member
Thanks Meter 156
Posts: 312
Join Date: Oct 2010
Location: Bodø

 
DONATE TO ME
Quote:
Originally Posted by mali100 View Post
config is included in the zip
Ah, I apologize then
Did you remember to back up your Nook?
Author of Nook2 Recovery Tools
 
Renate NST
Old
#48  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 481
Posts: 1,237
Join Date: Feb 2012
Location: Boston
@mali100: Um, I don't know what I'm looking for in /dev for the USB GPS
It doesn't seem to be an obvious ttyXX
I see ttyDCC0, tty0-tty63, ttyS0, ttyS1

@toxidog: I get a real pointer in Opera Mobile with a mouse.
With only a keyboard connected I get a fake pointer with the buttons.

For everyone: My battery seems to be draining very quickly even using a powered hub.
Even disconnected it went from 40% to 25% over the course of a day when shut off by the rear button (but not full powered down).
 
verygreen
Old
#49  
Senior Member - OP
Thanks Meter 1278
Posts: 783
Join Date: Feb 2011
Location: TN

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
For everyone: My battery seems to be draining very quickly even using a powered hub.
Even disconnected it went from 40% to 25% over the course of a day when shut off by the rear button (but not full powered down).
I think this is somewhat expected, since the usb is forcefully powered up all the time (I do a fake "usb vbus is on") which prevents the thing from sleeping.

With added ID sensing it should become better.
 
Renate NST
Old
#50  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 481
Posts: 1,237
Join Date: Feb 2012
Location: Boston
Why is forcing the vbus necessary?

For powered hubs, communications should be possible with no voltage on the VCC.

For other devices (direct keyboards) have we determined that the USB specified mechanism for negotiating power doesn't work? If so, does the fault lie in the driver or that many USB peripherals haven't implemented the handshake correctly?

The LED flashing for 100 milliseconds would seem to indicate that the Nook is trying to negotiate correctly. The fact that even powered hubs don't work after a blink would seem to indicate that the driver shuts down if the device doesn't negotiate power.

Is there some way to add an option/test to see if devices can negotiate power without having to force the VBUS?

I experimented to see if you could charge the Nook while using host mode. Many small hubs take pin #1 (VCC) through a diode to the outgoing pin #1 and to the circuitry. I bypassed the diode with a small resistor while in host mode and got the battery status to change from "Discharging" to "Not charging". Turning off the charge pump might allow charging. If this were the case, you could just short out the diode in a powered hub and have charging and host mode at the same time.

Tags
usb host, usbhost