Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[WIP] USB Host support (working)

OP verygreen

13th April 2012, 09:38 PM   |  #181  
Member
Thanks Meter: 3
 
66 posts
Join Date:Joined: Nov 2011
thanks very much!

Quote:

As above, do a ps, find, mediaserver, kill -9 it.

this is chinese for me again, sorry...
13th April 2012, 10:26 PM   |  #182  
Senior Member
Thanks Meter: 19
 
147 posts
Join Date:Joined: Jan 2012
wait
Quote:
Originally Posted by Gogolo2

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".....
14th April 2012, 01:33 AM   |  #183  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 822
 
2,001 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by Gogolo2

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:	505
Size:	47.5 KB
ID:	1002873   Click image for larger version

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

Name:	audioctl.jpg
Views:	351
Size:	18.3 KB
ID:	1002875  
Last edited by Renate NST; 15th July 2012 at 12:58 PM.
The Following 7 Users Say Thank You to Renate NST For This Useful Post: [ View ]
15th April 2012, 10:35 AM   |  #184  
Member
Thanks Meter: 3
 
66 posts
Join Date:Joined: 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.
15th April 2012, 01:36 PM   |  #185  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 822
 
2,001 posts
Join Date:Joined: Feb 2012
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: [ View ]
15th April 2012, 04:00 PM   |  #186  
Member
Thanks Meter: 3
 
66 posts
Join Date:Joined: 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.
15th April 2012, 04:47 PM   |  #187  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 822
 
2,001 posts
Join Date:Joined: Feb 2012
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?
18th April 2012, 07:03 PM   |  #188  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 822
 
2,001 posts
Join Date:Joined: Feb 2012
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: [ View ]
18th April 2012, 08:50 PM   |  #189  
Senior Member
Thanks Meter: 2
 
133 posts
Join Date:Joined: Jun 2010
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!
18th April 2012, 10:33 PM   |  #190  
Renate NST's Avatar
Recognized Contributor / Recognized Developer
Boston
Thanks Meter: 822
 
2,001 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by nrseife

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.

Post Reply Subscribe to Thread

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

Advanced Search
Display Modes