Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,283 Members 38,520 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] USB Host support (working)

Tip us?
 
Gogolo2
Old
#181  
Member
Thanks Meter 3
Posts: 66
Join Date: Nov 2011
thanks very much!

Quote:
As above, do a ps, find, mediaserver, kill -9 it.
this is chinese for me again, sorry...
 
mrWax
Old
#182  
Senior Member
Thanks Meter 19
Posts: 147
Join Date: Jan 2012
Default wait

Quote:
Originally Posted by Gogolo2 View Post
thanks very much!



this is chinese for me again, sorry...
then i suggest you to wait for the app or look it up on the google. commands "ps" and "kill".....
 
Renate NST
Old
(Last edited by Renate NST; 15th July 2012 at 11:58 AM.)
#183  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by Gogolo2 View Post
This is chinese for me again, sorry...
Ni hao ma?

Ok, no problem.

Here is the official (interim, hacked) way to get your Nook to be an MP3 player.
  1. Root
  2. Install mali100's uImage with USB host mode and audio drivers
  3. Install superuser.apk and su
  4. Install UsbMode-1.4.apk (see below)
  5. Install AudioCtl-1.0.apk (see below)
  6. Create the text file /system/etc/asound.conf as shown here
  7. Plug in USB audio adapter through a special OTG cable adapter
  8. Using UsbMode, set in host mode
  9. Run AudioCtl, it should make beeping noises
  10. Go to your file manager and select a suitable song to play
  11. Goto step #10

AudioCtl is very much a version 1.0
It is necessary to use now as a workaround due to problems with mediaserver.
You only need to run it once after each time of turning on the USB audio adapter.
In the future, AudioCtl will have useful features.

Note: Ignore all that stuff about ps, kill, mediaserver, etc. AudioCtl obviates all that.
Attached Thumbnails
Click image for larger version

Name:	usbmode1.jpg
Views:	491
Size:	47.5 KB
ID:	1002873   Click image for larger version

Name:	usbmode2.jpg
Views:	437
Size:	44.3 KB
ID:	1002874   Click image for larger version

Name:	audioctl.jpg
Views:	341
Size:	18.3 KB
ID:	1002875  
The Following 7 Users Say Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
Gogolo2
Old
#184  
Member
Thanks Meter 3
Posts: 66
Join Date: Nov 2011
thank you very much, I just want to connect a keyboard. I realize that mediaserver is no concern here.
but I just can't get it working. I successfully installed uImage, but is uRamdisk also required? If so, How?

I've read the whole thread but can't find a step by step howto. sorry I may have missed something.
 
Renate NST
Old
#185  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,993
Join Date: Feb 2012
Location: Boston
You do have an adapter that specifically says "OTG"?
You are using the UsbMode application (as above)?

Plug in OTG adapter & keyboard
Go to UsbMode
Hit "Off"
Hit "Host"
Did the green LED on the Nook go on solid? No => hit "Peripheral", then "Host"
Now the green LED is on
Does it say "keyboard"? No => unplug keyboard from adapter, then reinsert.
It shows keyboard.

If you can never get the green LED to go on solid:
Are you sure that you have an OTG adapter there?
You did hit "Off" before "Host"?
You did try "Peripheral", then "Host".
Try with just the OTG adapter to get the green LED on.

It should not be that tricky to get the keyboard recognized.
It is a bit more tricky to get it using USB and charging when using a back-powered hub (for advanced users).
The Following 3 Users Say Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
Gogolo2
Old
#186  
Member
Thanks Meter 3
Posts: 66
Join Date: Nov 2011
Thanks very much for your kind help!

It is weird: The green lamp is on, it says: keyboard: none, kbd:2

Sometimes the upper row is functioning (multimedia keys like "play/pause" and "E-Mail" etc. but none of the others). May it be that there are actually two keyboards (as it is recognizing kbd:2) one of them a multimedia one and it only is able to connect to the second?

Thanks again.
 
Renate NST
Old
#187  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Yes, "multimedia" keyboards are actually two separate and unrelated devices.
What "None" is telling you is that there is no recognized qwerty or numeric keyboard attached.
What "Kbd:2" is telling you is that are two event style things on the system.

Can you try another keyboard? The host mode seems to be working fine.

What does View USB tell you?
 
Renate NST
Old
#188  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,993
Join Date: Feb 2012
Location: Boston
I still haven't managed to figure out with the drivers how to make a good quality recording,
but I did get the text-to-speech working.

As all TTS, it is amusing.
You have to fill /system/tts/lang_pico with language packs that you download and copy over.
The Following 2 Users Say Thank You to Renate NST For This Useful Post: [ Click to Expand ]
 
nrseife
Old
#189  
Senior Member
Thanks Meter 2
Posts: 101
Join Date: Jun 2010
Default micro USB to Audio Jack Converter

Hi renate NST, will this work in your opinion?:
http://www.amazon.com/gp/product/B00...7504575&sr=1-6
I have not tried yet your instructions to fix audio support via usb....do you believe that you a "simple" solution (I guess I am lazy) that requires running only one app (or copying a few files to the NST using Root Explorer) will be available soon?
Thanks for all your good work!
 
Renate NST
Old
#190  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 804
Posts: 1,993
Join Date: Feb 2012
Location: Boston
Quote:
Originally Posted by nrseife View Post
Will this work?
No. Many cell phones have non-standard micro USB connectors with separate pins for audio.
What you indicated was a break-out cable for these extra contacts that the Nook does not have.

You need an OTG adapter, I have this: http://www.amazon.com/dp/B005FUNYSA

And a USB audio adapter, I have this: http://www.amazon.com/dp/B002R33VWW
(Only because it was the cheapest thing that I could buy locally.)
You can buy similar things for anywhere from $2 to $10.

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

Advanced Search
Display Modes