yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] racks11479:
Dangit! How am I suppose to get any work done when you release something like this. Gonna have to run out and get a gender changer during lunch so I can play around with this! :D

Thank you verygreen!

-Racks
[Nook Color Android Development] ace7196:
Yep, keyboard and mouse work!

THIS IS AWESOME!

holo and vg, you guys rock!

Youtube video here:

http://www.youtube.com/watch?v=wxuhCS50-e0

I know...it sucks and it's rotated. I'll get a better one up.
[Nook Color Android Development] paleh0rse:
Both at the same time? Using a hub?
[Nook Color Android Development] ace7196:
Sorry, haven't tried that yet. But in theory it should (with a powered hub).
[Nook Color Android Development] verygreen:
Even unpowered hub should be fine. I use unpowered hub and it works with keyboard and mass storage.
[Nook Color Android Development] verygreen:
OTG cable is only needed when hardware is supporting OTG mode natively.

All it does is has an extra connected pin. Nook ignores this signal unfortunately.

Nook cannot have fully automatic otg mode where you just plug an accessory and it works, then unplug, lug a host and it works.

Instead you need to manually control the mode from the provided app.
[Nook Color Android Development] joenathane:
This is so awesome, if the nook can support a usb Ethernet adapter i'd be in heaven, I wouldn't have to lug around my Sony UX. Who has the best development community in the world? Nook does!
[Nook Color Android Development] Divine_Madcat:
Thanks for the cable info - adapter is ordered. ;)

As for the mass storage, i guess what i was asking in a round about way; what IS the proceedure to mount a USB flash stick (for instance) so that something like Root Explorer could see the files?

Personally, i am REALLY interested in this for my photography. I would love to be able to connect my nook in the field, and get a sneak peak at what my shots are looking like, without having to haul out a full on laptop. My camera connects as a mass storage device, so assuming that Android could read a mass storage volume, i would be in business.
[Nook Color Android Development] Gin1212:
I hate you guys! =( Always making me spend more money that I don't have! Now I need to go find a good solid case with a usb keyboard!
[Nook Color Android Development] verygreen:
I think vold is much bette rsuited for this.

The app you only run once to start the host mode. Then another time to stop it.

(btw dalingrin is adding support for this into his tweaker app, and that would be the default app to do everything-nook that we hope to ship embedded into CM7 update)
[Nook Color Android Development] lekofraggle:
Thanks again everyone.

I was wondering. Is there any way to know before purchase if a usb CF card reader would support this wwithout external power?

I enjoy what I have with the hub and all, but since I am a have my cake and eat it too (sometimes eat it two) kind of guy, I can't help but think it would be sweet to hang out with my shooting partners in a coffee house after a day in the field and show them what we just shot on the Nook.

This would be best without power.

I currently have the

Sony card reader MRW62E

On the back it says it uses 5v 500mA.

From what I read here, it should work without power, but no go.

Again, this is just the icing on the cake. You all did the hard work.

Thanks again.

~Leko

Edit: Sorry, I see we are limited to 100mA. Got it. So I will look. Most manufacturers do not put power requirements in the description, but I will look.

Would I be safe plugging in my camera? I do not want to fry either of my dslrs.

They do not charge from usb. Actually they do not charge in the camera at all...

50d and Xti.
[Nook Color Android Development] Divine_Madcat:
Seeing that your camera's do not charge from USB, you should be totally fine.
[Nook Color Android Development] :
Ooooo this sounds interesting. Where can I find out more about this app? A quick search of the forum did not uncover an answer . . .
[Nook Color Android Development] verygreen:
Currently it's called Nook Color Tweaks on the market and only can adjust speaker volume (as in to make it really loud). We are going to extend it.
[Nook Color Android Development] :
Excellent . . . thanks! Downloaded, installed and patiently waiting for awesome updates! You guys really are amazing!
[Nook Color Android Development] cama900:
Yes! Thank you so much! I forgot to say thanks at first :/
[Nook Color Android Development] newellj79:
Just got my adapter. Optical mouse working with no problems! I can't get my dell keyboard (model # sk-8135) to work tough. It does have some lights so it may be that I need a powered hub to use it. I was wondering if n e body could verify that and if I do need a hub can somebody recommended one, I don't know alot about them. Thanx.
[Nook Color Android Development] :
I noticed that keyboards (tried two different ones) only worked for me if they were run through a hub. It did not even need to be a powered hub. . . I used one powered and one generic cheapo unpowered hub and both allowed me to use the keyboard AND the mouse at the same time.

I purchased this powered hub. Don't know if it is good, but it works.

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=120696256459&ssPageName=STRK:MEWNX:IT
[Nook Color Android Development] newellj79:
Thanx. I will look into it.
[Nook Color Android Development] newellj79:
Been thru the thread a couple of times. I'm trying to get a mp3 player that mounts as a USB drive to work. I've been thru the thread a couple times. Is editing vold all that is neccasary? Can somebody point me to what to edit? Thanx.

Edit... re-read thread. If I understand correctly just a couple lines need to be added to vold.fstab to use the USB drive. I can't find the vold.fstab to edit :) where is it? Is my understanding correct?

Edit 2. Found it. Adding this line now and trying... dev_mount usb /mnt/sdcard/usb auto /devices/platform/musb_hdrc
[Nook Color Android Development] verygreen:
I guess it depends on the power profile the keyboard presents.

My generic dell keyboard works without a hub too (as evidenced by the video).

If you need more than one device (like a keyboard and a mouse) you still need a hub anyway, though ;)
[Nook Color Android Development] newellj79:
So I added the line as stated in my previous post to vold. It didn't work. That is I can't find it in a file manager. Help please!!!!
[Nook Color Android Development] cama900:
Go into the terminal emulator and type su mount /dev/block/sda1 /sdcard/usb (or wherever you want to mount it) and see if it works
[Nook Color Android Development] newellj79:
It returns can't read /etc/fstab no such file or directory. Vold.fstab is in /etc for sure, I checked.
[Nook Color Android Development] cama900:
well the only thing i can think is that it may be corrupted or something, can open it in a text editor? what file manager did you use to view it? also make sure its spelled correctly, no capitals or anything just vold.fstab

Edit: If everything seems fine, you could stick in the vold.fstab I posted earlier. And if all else fails, you can re-flash cm7, then the usb-host kernel and have another go at it
[Nook Color Android Development] newellj79:
Used iota text editor. Ill try a different one. It is spelled right.
[Nook Color Android Development] bled82:
ok so i edited the vold.fstab and well its the end of the day and im feeling dumb where can i look to verify my usb thumb drive mounted i set it as such dev_mount usb /mnt/sdcard/usb auto /devices/platform/musb_hdrc , but all i see is the normal sdcard and the emmc in storage do i need to run another command ?

On a side note could we use this to enable usb host on other devices ? perhaps the G2 ?

THANKS FOR ALL THE CODING WORK GUYS , And thanks in advanced for the help .
[Nook Color Android Development] Techienana:
Received my adapter today and am all set up and typing from an external keyboard to say it works for me. As already noted, it's a learning expericence because except for straight typing, things don't quite work the way you expect them to. Either way, it's a great thing to be able to type directly into the NC.

Keyboard: $6.99 no name brand

Adapter: $3.20 including shipping

Typing directly into the NC with an external keyboard: Priceless!
[Nook Color Android Development] cama900:
k, just make sure it has root access, I just use root explorer and it works amazingly well
[Nook Color Android Development] newellj79:
just downloaded root explorer, it does make things easier. just to be safe i downloaded the vold file u uploaded and used it. I'm rebooting now to try again. i know the kernel works because my mouse is working just fine. ill edit this post in a minute with results.

edit

still says no such file of directory... i have to assume that it's my mp3 player? it mount fine on pc. argh!
[Nook Color Android Development] cama900:
in terminal run dmesg and see if you can find it, I ha a flash drive that won't mount because it uses too much power
[Nook Color Android Development] J-ROCK:
Same here!
[Nook Color Android Development] seth.i.simmons:
Are you using busybox to mount it?? I had the same problem, and it took me forever to figure out that I had to mount it like this:

busybox mount /dev/block/sda1 /sdcard/USB

Try adding in the busybox part and see if that helps.

NOTE: I only had to do this in the terminal emu, in vold.fstab it worked without it. Try mounting the drive in the terminal emu first, and THEN worry about auto mounting through vold.
[Nook Color Android Development] newellj79:
Busybox didn't work. Dmesg did find it, but in it it said "rejected insufficient available bus power". Maybe a powered hub wouldn't work? I feel confident and relieved that it wasn't me at this point. Grrr, struck out with my keyboard and USB drive because of no hub. Mouse works great though :) thanks guys.
[Nook Color Android Development] cama900:
+1 on everything you said
[Nook Color Android Development] seth.i.simmons:
Do you have an unpowered hub you could try?? I lost the cord to my hub (which sucks epicly) and just use it as an unpowered one, which tricks the nook into allowing me to use a USB drive. Without the unpowered hub, it won't mount for me at all.
[Nook Color Android Development] newellj79:
No hub unfortunately. Maybe ill pick one up soon.
[Nook Color Android Development] hololight:
One thing to keep in mind when "tricking" the kernel with an unpowered hub is you may in fact be drawing more than 100 mA. This limit the kernel enforces may not have a physical counterpart in the pmic. This could end up frying your pmic since the datasheet does state the Max current is that 100 mA.

As with most electronics, it may tolerate it for a little while... but if you are exceeding the 100 mA then it is likely just a matter of time.

Just food for thought.

Sent from my Apple IIe

Edit: I lost my good meter, but I will try the cheapie I have lying around to measure current draw from some flash drives and other USB devices. I am not sure I can rely on its measurements on the small current draws involved here.
[Nook Color Android Development] verygreen:
I tried this. Once you go over 100mA the voltage drops and the usb gets errors and aborts all transfers.

Then vbus recovers (due to devices stopping to draw).
[Nook Color Android Development] jeph36:
I am still waiting on my adapter, so I have not been able to really try this yet. I verified I could power with the NC by seeing it turn on the LED in my hub and my car reader just using the standard cable. I am curious how bad the keyboard mapping is, what is messed up, etc. Is there a reasonable possibility to change that? I remember back in the MSDOS days when we learned how to capture the keyboard input before it went to the command line, but I am guessing that does not port (nor do I remember how to do it).

Has anyone tried a case/keyboard like this, or a better non-cheapo-Chinese version? I could see paying for one of the office apps and using this at work if I could get laptop-esque functionality out of it.
[Nook Color Android Development] teamplayer:
I am wandering if one of the benefit of this is to do USB tethering. I've windows mobile phone with unlimited data and wanted to USB tether. Earlier I purchased USB mini to female adapter and tried it but did not work. Hoping having Nook USB host will make it work. What is the best way to USB tether Nook with WM6 phone?
[Nook Color Android Development] verygreen:
Keyboard mappings are easy to change. Now some things are strangely mapped, I have no found where is the '|' mapped at (the unix pipe symbol) for example.
[Nook Color Android Development] verygreen:
Tethering should work. I imagine phones present themselves as some sort of serial or ethernet interface and there are special apps to support it. I don't have a windows phone myself, so cannot try it.
[Nook Color Android Development] lschroeder:
dmesg finds my flash drive, busybox mount /dev/block/sda1 /sdcard/USB failed: No such file or directory. I am running from sdcard, do I need a different path?

Keyboard works in voice and browsers. Thanks devs.
[Nook Color Android Development] seth.i.simmons:
Are you sure that you created the /sdcard/USB mount point, and that its still there and empty before mounting? Also, are you sure the drive is at /sda1 and not /sda or /sdb1 or /sdb?? You'll need to check that before trying to mount it.
[Nook Color Android Development] verygreen:
I usually run bash before running mount, otherwise I get a very similar error as I remember.
[Nook Color Android Development] deadbot1:
Ok...I want to make sure of things...

I have a cheapo Targus USB hub now...unpowered. this should tell the nook there is no draw right? The hub will be modified to supply power from a battery powered LM7805 low dropout linear regulator.

There will be no power connection from the hub to the nook...only data. Power will be supplied for charging by a modified stock cable with diode traps to isolate the power buses.

Does this sound right so far?

I haven't made any schematics yet..kinda flying by the seat of the pants. Ill be posting pics of things this week as I get to soldering.
[Nook Color Android Development] lschroeder:
Thanks. As you stated I needed to us busybox mkdir /sdcard/USB first. Then use busybox mount /dev/block/sda1 /sdcard/USB. I was able then to see and use the files on my flash drive. For example I play backed a mp4 movie with the default player.

I hooked up a power hub with the flash drive and usb keyboard. It made the typing easier.

@ verygreen bash also worked after I made the directory. A question, does the Force external VBUS + Charge button allow the powered hub to give a charge as well? Is that what the OP said? When I toogle this second button on Battery Info says Discharging plus Unplugged. I guess it said something else?
[Nook Color Android Development] lschroeder:
Using a Flash Drive

First get it working in terminal(see earlier posts). Change vold.fstab by adb. I used adbWireless widget by MrSlir. You could use adb as well. Directory USB was created earlier on my sdcard.

For windows adb pull vold.fstab down, open vold.fstab with notepad++ to add the following line

dev_mount usb /mnt/sdcard/USB auto /devices/platform/musb_hdrc

Save it. Then use windows adb to push it. Be sure to change the file,vold.fstab, with notepad++ (Linux format editor for windows) before you push it. Do not use notepad format it wrong.

You will have to download and install notepad++.

STEPS

adb pull /etc/vold.fstab

open vold.fstab, add line below, and save in notepad++ ...

dev_mount usb /mnt/sdcard/USB auto /devices/platform/musb_hdrc

adb remount

adb push vold.fstab /etc/vold.fstab

adb reboot
[Nook Color Android Development] newellj79:
I feel like I need to try to get me flash drive to work again. I did not use busybox to make the directory. This had me wanting to pull me hair a couple days ago. I thought that maybe because I was tying to use a powered mp3 player, that was the problem, but it only uses a AAA battery. Will trying in a bit.

edit... no go. i still get no such file or directory. i have added the appropriate line to vold. can anybody shed some light on my situation?
[Nook Color Android Development] lschroeder:
Are you using the Nook USB Host Switcher app?

I just removed my powered hub and connected the usb Flash Drive directly. Using Nook USB Host switcher ON button I was able to use File Manager to examine my Flash Drive. I then turned OFF and inserted a different Flash Drive. It gave me a warning message that said I needed to unmount my sdcard first. I turned it back on and File Manager found the new Flash Drive and its contents. This time I backed out of File Manger before turning switcher off and pulling the Flash Drive. I did not receive the warning. However when I used File Manager it to look at USB directory it still appeared that the drive was mounted. Any comments about what is happening?

Edit: Just reconnected powered hub and mounted 1TB WD Elements SE fat 32 quick formated from NTFS with EASEUS Partition Master on Windows 7. Will add entire music and video collection to this drive.
[Nook Color Android Development] newellj79:
Yes I'm using the app. This is what I've done. Added recommended line to vold. Using host app. Used terminal and busybox to make USB directory, and try to mount drive. I still get does not exist error. Am I doing something wrong concerning mount points, I still don't understand exactly what that is. Is it possible that I need a powered hub? My flashdrive/mp3 player does require a AAA battery, but I noticed when I mount it to PC the PC powers it. (Note, when amounted to nook the display does come on but hangs at hour glass where when mounted to

PC the display says USB on it)

pc
[Nook Color Android Development] lschroeder:
Try using a different flash drive. Borrow or find a cheap one, any size, and plug it in to the nook. Then use File Manager to open the directory that you created and view the default files on the flash drive. No changes have to be made to anything. If it works then you know it is the mp3 version, if not then something else if probably wrong.
[Nook Color Android Development] verygreen:
the force external vbus + charge does what it says. It opens a charger circuit.

The result is twofold.

If you have external power connected, then the nook will charge the battery and the vbus would be supplied by that external power too.

If you do not have external power connected, the battery will try to supply the vbus power directly, but this is not very stable esp. if you don't have fully charged battery.
[Nook Color Android Development] deadbot1:
Verygreen...I'll quit crapping your thread up with my ramblings...if anyone would like to follow my progress on the backpack or help out....My post on the accessories section....
[Nook Color Android Development] cama900:
Hopefully im helping and not confusing everyone with my "advice". But here it goes again. The file not found error is caused by it not being able to find either /sdcard/usb or /dev/block/sda1. I think we can be pretty sure its not by /sdcard/usb, so it must be the other one. so go to the terminal (while the device is plugged in and in usb host mode), enter su and click enter. then enter (without quotes) "busybox ls /dev/block"

It should see stuff like: dm-0, loop0, mmcblk0, platform, ram0, vold..... if everything is working right, you should see sda (or something similar) and sda1.

so go check and tell us what you see
[Nook Color Android Development] newellj79:
Rebooting to USB kernel. Will report back.

edit... no sda anywhere... :(
[Nook Color Android Development] cama900:
so that means that you probable needa powered usb hub since its not working normally
[Nook Color Android Development] newellj79:
grrr.. That's what i thought. Thanks for verification though.
[Nook Color Android Development] lschroeder:
Is this what I need to charge and use the nook as a host at the same time?

A y usb cable with one branch going to nook power adapter or a pc, another branch going to the upstream port of a powered/unpowered usb hub (or usb device you wish to use), and the final last branch going to the nook? Do I have the Nook USB Host Switcher button ON and Force external VBUS + Charge button ON? Do I have to watch the order I turn on or off the buttons? Is it the y usb cable option that can cause real problems?
[Nook Color Android Development] verygreen:
Yes, this is how I and several others tested it (somebody even tested the branch that was supposed to go into the power adapter to go into the powered port of the same powered hub instead and it worked).

The order is such that you enable the "force external vbus" first.

the order of insertion of the nook branch of the Y cable and turning USB host mode is not all that important.
[Nook Color Android Development] lschroeder:
Clarification, assuming mini usb hard drive connection for y. The power only male A, small diameter wire, branch goes to the power adapter (or powered port of the same hub), correct? The full power and data male A, large diameter wire, goes into the female A/micro adapter on the nook, and the final original hard drive end, mini usb, of the y goes into the the upstream port of the hub, correct? My hub upstream has a female mini usb port. I guess my question is, except for the power, does it matter which goes where?

Somebody suggest that I could forget all this, drop the upstream cable entirely, and just run a cable with Male A to powered usb hub port with the other end of cable, also a Male A, being connected to the female A/micro adapter on the nook. Another friend cautioned that without knowing more that this could lead to some possible hardware problems with nook or hub. Any comments about this direct connection.

In both of the above situations I would "force external vbus first". The direct connect sound too risky to me.
[Nook Color Android Development] verygreen:
I have the same cable as you, also from a hard drive.

I put the miniUSB end into the upstream hub port as that minimizes number of converters I need to just one - usb to microusb for the nook.

But I think it should not matter one bit if you do it the other way with two converters.

I believe this one does not work as the hub does not expect the host on one of it's powered ports, there is an upsteam port for a reason.
[Nook Color Android Development] yourm0m1:
i didnt see a response on how to add the xbox s type userspace drivers....im very lost and cant find any documentation on it....anyone have a clue??
[Nook Color Android Development] lekofraggle:
Perhaps someone with more android programming than me can correct me, but I think you need an app for the xbx drivers. It should not eb too hard as there is already a Linux app.

http://pingus.seul.org/~grumbel/xboxdrv/

But, this does prove the drivers are not native.

~Leko
[Nook Color Android Development] Arbelzapf:
Thank you for bringing this up again. To be honest, I'm desperately hoping to be able to use my 360 controller soon, but I wouldn't know at all how to give these drivers a shot myself.
[Nook Color Android Development] yourm0m1:
okay i think i understand what needs to be done for the xbox controllers.... xpad.ko takes care of it but it needs to be compiled for our kernel....

edit: im going to give it a shot...havent compiled from source since my Samsung Moment so ill basically be starting from scratch and learning it all again...wish me luck :P
[Nook Color Android Development] lschroeder:
With the cable hooked this way I can not get it to do both the host and charge. Both the Switcher and Force buttons are on. If my hub lights are on for keyboard and flash drive, they work but battery icon does not show charge and Battery Info shows Discharging with the Battery voltage decreasing.

If I turn Switcher OFF (shows b_idle) leaving Force on the battery icon shows charge and Spare Parts Battery info shows Charging(USB) with voltage increasing.

If I turn Switcher ON (shows a_wait_vrise) the hub lights do no come on for my keyboard and flash drive and they do not work. If I unplug male power, turn Switcher OFF and back ON (shows a_wait_vrise) the hub light come on, kb and fd work, charging goes off.