Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,883 Members 41,166 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] USB Host support (working)

Tip us?
 
mali100
Old
#111  
Senior Member
Thanks Meter 130
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
Don't people want to have keyboards on their Nooks?
Maybe you should post your tool in this forum http://www.mobileread.com/forums/sho...d.php?t=159007 , they surely are interested in this.

For me your actual tool isn't needed, I never had problems connecting devices. But I would love to get the new version. From the screenshot I assume that it is possible to deactivate charging when connected as usb-device? That would be awesome, it would allow me to connect the nook to my tablet, which supports usb-host only for low-power devices and disables the nook because it tries to charge.
 
Renate NST
Old
#112  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 794
Posts: 1,971
Join Date: Feb 2012
Location: Boston
Now, I'm getting all confused.
I went back to what I believe is the Nook 1.1 uImage.
Is this the original?

Linux version 2.6.29-omap1 (build@dhabuildimage16) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)) #1 PREEMPT Sat Oct 29 00:45:49 PDT 2011

I can get the original kernel to handle keyboard without using any root access or application?
 
Renate NST
Old
(Last edited by Renate NST; 9th April 2012 at 11:13 PM.)
#113  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 794
Posts: 1,971
Join Date: Feb 2012
Location: Boston
Ok, here's the new version.

If you are using unpowered devices or an unmodified hub:
  1. Hit the "Off" button.
  2. Plug in.
  3. Hit the "Host" button.

If you are using a modified hub:
  1. Plug in.
  2. Play with the charging settings if you feel like it.

When you are done:
  1. Unplug.
  2. Hit the "Peripheral" button.
  3. Hit the "Off" button.
  4. Hit the "Auto" button.
The Following 2 Users Say Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
durn_it
Old
#114  
Junior Member
Thanks Meter 1
Posts: 9
Join Date: Mar 2009
Default What to do with init binary

I just realised that there were 3 files in the zip file provided by verygreen. I know what to do with the other two, but what should I do with the init binary?
 
Renate NST
Old
#115  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 794
Posts: 1,971
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by durn_it View Post
...but what should I do with the init binary?
I dunno. I didn't use it.
 
mali100
Old
#116  
Senior Member
Thanks Meter 130
Posts: 208
Join Date: Jun 2007

 
DONATE TO ME
Quote:
Originally Posted by Renate NST View Post
Ok, here's the new version.
Thanks works fine for me.

Quote:
Originally Posted by durn_it View Post
I know what to do with the other two, but what should I do with the init binary?
The init binary is already included in the uRamdisk, you need it only if you want to build your own uRamdisk.
 
Renate NST
Old
#117  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 794
Posts: 1,971
Join Date: Feb 2012
Location: Boston
For those who did get a USB keyboard working there are two map files which could be updated to something sane.

/system/usr/keylayout/qwerty.kl maps scan codes to key codes.
/system/usr/keychars/qwerty.kcm.bin maps key codes to Unicode.

qwerty.kl is commented text and you can add your own F1-12 keys, etc.
qwerty.kcm.bin is binary and you probably don't need to edit it.

Hint:
Shift-Alt A-I-N-Q-U are composing accents.
Alt E-L-Y are Euro, Pound, Yen
Alt C-S are c cedilla, eszet
Attached Files
File Type: zip qwerty.zip - [Click for QR Code] (1.5 KB, 79 views)
The Following 2 Users Say Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
darkguy2008
Old
#118  
darkguy2008's Avatar
Senior Member
Thanks Meter 223
Posts: 645
Join Date: Apr 2011
Location: Caracas

 
DONATE TO ME
Damn, this is AWESOME. It's mainly the fact why I just ordered one: price & usb-host support =) (WIP but it seems it's working ).

I've got a small question though - would it be possible to install a 3G modem on it? or plug my android device to it and enable 3G tethering? if not - but it seems possible - I'm up to helping all with this feature
Current devices:
ZTE Grand X V970M ["Mimosa X"]
B&N Nook Simple Touch

Previous devices:
HTC Magic 32A (stolen) - FroyoDragon ROM developer
Motorola Defy+ MB525 (sold)
 
brendan10211
Old
#119  
brendan10211's Avatar
Senior Member
Thanks Meter 12
Posts: 200
Join Date: Feb 2012
Location: Cary
Quote:
Originally Posted by Renate NST View Post
qwerty.kl is commented text and you can add your own F1-12 keys, etc.
Can you make it so F1 is back, F2 is menu, etc?
 
Renate NST
Old
#120  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 794
Posts: 1,971
Join Date: Feb 2012
Location: Boston
qwerty.kl as posted has Escape=Back, and Application key=Menu.
(App key= key between Windows and Ctrl on the right.)

Yes, you can assign the F keys or the multimedia keys any way you like.

Warning: If you edit it, a syntax error in qwerty.kl will cause it to ignore the rest.

The Following User Says Thank You to Renate NST For This Useful Post: [ Click to Expand ]
Tags
usb host, usbhost
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes