yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] lschroeder:
Nook Tweaks 1.2 USB Settings

For testing purposes I modified post 301 to work until reboot

http://xdaforums.com/showpost.php?p=14994272&postcount=301

Audio and CPU Settings of Nook Tweaks 1.2 work perfectly. Did not try the Boot Settings. I am running from verygreen's sdcard. I get Loading... when it starts using nightly 108 and kernel 061811. I think it should say something else since I am using nightly 108. Not sure what Boot Settings will do since my behavior at boot time seems strange. When I use verygreens update I get black screen instead of his recovery screen, although the update will function perfectly. ???

Back to USB Settings. Using Belkin powered hub with y cable and micro adapter. With UDB Host mode checked, keyboard and flash drive light on hub shows. Spare Parts > Battery info shows Discharging, Unplugged usb cable. When you look at /mnt/usbdisk it shows the content of my flash drive. Unplugged Flash Drive. Warning message, should of used command in terminal to dismount /mnt/usdisk. Plug a differen flash drive in, it mounts and I can see all the files. Use from terminal busybox umount /mnt/usbdisk, this time when I remove the flash drive notification says SD card removed. Insert a new one. When viewing mnt/usbdisk This folder is empty. I know this will be automatic with the commit.

When I try this same sequence in this post your app works the same (I now know the charge does not show correctly but the Battery voltage: 3937mV for example will go up.)

http://xdaforums.com/showpost.php?p=14696694&postcount=239
[Nook Color Android Development] peramikic:
Dal,

I get FC when starting the Nook Tweeks with the n111 from 623 and 6/18 non-OC kernel, running from SD card.
[Nook Color Android Development] peramikic:
My Pentax K-X pulls only 2mA in USB mode :D and the RawDroid support the DNG format so im a happy camper. Just needs better support for large number of files

A sidenote, windows users can figure out how much their usb device will draw by going int device manager and checking the properties of USB Root Hub under the power tab. There will most likely be several so just go through all of them until you find the one that handles the usb port you are using
[Nook Color Android Development] :
Okay. . . I have the same issue using Nook Tweeks or USB Switcher apps. . . Maybe it is my cable, maybe I am doing something wrong, but can somebody tell me what it is?

Y cable with mini USB on end and Standard usb on the other end and a power drop line as well. The power drop line is plugged into the computer, the Mini USB end into the upstream port on the hub. Power light on the hub is lighted

Go to either Nook Tweeks or USB Switcher and turn on External Vbus and then Turn on USB Host Mode

Plug remaining data end of USB cable with a Micro USB adapter to the nook

Spare Parts reports that the battery is charging, but the USB devices do not work.

unplug the Micro USB from the Nook Color and unplug the power drop from the PC

Turn off both usb host mode and External Vbus

Turn on usb host mode (with the power disconnected from the computer) and plug the USB micro into the nook and the hub and USB devices work

The bottom line is that I cannot find a sequence that allows me to have external Vbus working and charging AND have the USB devices recognized and working. . .
[Nook Color Android Development] verygreen:
Following one works for me:

With nook unplugged from the cable, enter external vbus mode

Turn on USB host

Plug in nook side of the cable

If power end of the cable is not plugged into a PC, plug it in too

If you want something that would work when the nook is already plugged, then I think (but have not tried yet) you just need to enable usb host mode only,

it will sense that the external vbus is present and would use that, or so I think.

I need to review the code to see why sdoing forced external when external power is already applied does not work, I guess.
[Nook Color Android Development] :
Following that sequence does allow the usb devices to work, but spare parts reports that the Battery Status is discharging and the Power plug is unplugged. . .

For giggles, I tried to enable USB Host mode when it is already plugged in . . . and the Nook keeps charging but the USB devices are not recognized.
[Nook Color Android Development] verygreen:
Well, this is expected.

The battery is in fact charging. I am long planning to fix the display of this.
[Nook Color Android Development] :
I knew that the battery icon on the status bar would not report charging, but it does not show up in spare parts either? Also, the battery level continues to decline at a rate that seems comparable to when it is unplugged . . .

Is that because the battery drain is higher than the charge supplied through a standard usb port?

What app do you use to verify if the battery is in fact charging? I don't doubt you, I am just the sort of curious person who likes to see what is happening.

Ok. . . one last question . . . did I understand correctly that the Nook will autodetect the external VBUS? Does that mean we no longer have to worry about turning on external VBUS?

Thanks Verygreen!!! You guys rock!
[Nook Color Android Development] verygreen:
I guess that could be the case.

Try powering it from a power supply (e.g. one from nook) instead of a PC?

I don't use any app.

I just know that I am opening a charging gate manually in such a scenario, so if the power supplied is enough to provide charging, the charging should be ongoing.

Only if you enable usb host while the external power is applied.

If you first enable usbhost and then apply external power, then we don't sense this currently, though I was planning to look into this too eventually.
[Nook Color Android Development] lschroeder:
Spare parts does say Discharging and Unplugged but if you look at the "Batteryvoltage:" while doing nothing, or dimming the screen for awhile and then coming-back it will show it going up some. Look at it a little later it goes so back down even though all you did was dim it. I guess by dim I mean sleep mode with the power button.

It does seem though that the "Battery level:" never increases in value or actually decrease a little while in sleep mode.

I have y power only leg plugged into a powered hub. I have tried it plugged into a usb ac adapter as well. Did not think it may any difference.

Edit: Playing Bad Boys using the Crackle App on phiremod v7 Test off an class 2 8GB sandisk SDcard, Nook Tweeks v1.2. The battery percentage indicator has decreased from 76 to 73 (10 minutes lapsed) with usb keyboard active, power leg active. Using flash 10.3 us hulu fix and flash lib directory to immutable to preserve reboots. Side fact, first time I have had Cracle App play without stuttering. Once in a while it will stop to let buffer catch up (not very often).
[Nook Color Android Development] rigy73:
If i can get this, will mic work?? I saw verygreen's post in which he talked about USB audio but is only the output working or is input also working??

http://cgi.ebay.com/Logitech-Analog...categoryZ41993QQvarZQQcmdZViewItem#vi-content
[Nook Color Android Development] verygreen:
Yes microphone will work (not ideally, but good enough for test calls).

This one you point to is overpriced, though.

Search for "usb audio 7.1" on ebay to have a similar but cheaper thing that would work as well. If you are fin with the waiting, could be had for $2 shipped from China, otherwise it's also widely available from US as well)
[Nook Color Android Development] DigitalMD:
I have a generic USB audio dongle and the mic audio input works well enough to use voice search and voice keyboard input. Have not tried it with VOIP, but it should work.

Great job on this. Can't wait until its all integrated into the nightly with webcam support and USB storage auto mount.
[Nook Color Android Development] lschroeder:
RC 1 Support vs this thread

Compare to this thread what is missing in RC 1 with Nook Tweaks v1.2? What usb host features can be modified in RC 1 to make it compatiable with this thread features? How do we do these modifications?
[Nook Color Android Development] DigitalMD:
Verygreen is the expert on this, but my understanding is that webcam support and USB storage auto mount need to be added to the current CM7. There may be more, but these are what I know of. I see two open issues on the CM7 code tracker related to these items so I know they are being worked.
[Nook Color Android Development] DigitalMD:
Has anyone found a USB webcam with mic that works with the NookColor without external power or powered hub?

My HP Webcam 2100 says it needs 500ma when I attach to a PC , so I use the Y cable method, but it would be great to have a camera without the hassle of extra power.
[Nook Color Android Development] Divine_Madcat:
I would love to find one, but i haven't seen one yet...
[Nook Color Android Development] bled82:
So cm7.1 rc1 is out but the nook tweaks dont work with it and i dont see any added support for usb host has anyone else found any in the rc1 ?
[Nook Color Android Development] newellj79:
Nook tweaks is working fine with it hear. Do u have the latest update of it? However I too can't find any of the before mentioned built in functions to cm7. I assume they r yet to be merged.
[Nook Color Android Development] dalingrin:
USB host will be merged as soon 7.1 is released. It will be in 7.2.
[Nook Color Android Development] Gin1212:
Increasing Bluetooth Signal?

So it just occurred to me... Has anyone tried a usb bluetooth dongle? Might be a great way to increase the signal strength with the NC by just sidestepping the built in bluetooth.
[Nook Color Android Development] newellj79:
Thought the same thing last night while rocking my daughter to bed. Let us:cool: know what u come up with.
[Nook Color Android Development] verygreen:
This would require recompiled CM7 since usb bluetooth device would sit on a different interface (so you need to update the board file to this effect).

I start to really hate all the quirks of Android. Things that naturally work in real Linux distros and could be adjusted on the fly require long and painful exercises on Android.
[Nook Color Android Development] Gin1212:
That really bites.. =(
[Nook Color Android Development] chisleu:
plus USB bluetooth devices require a bunch of power, so you would need external power at the same time, which is extra suck.
[Nook Color Android Development] martian21:
That's not entirely true. Power consumption depends a great deal on the class of the Bluetooth device which obviously corresponds to range.

I grabbed this from wiki so I don't know how accurate it is but you get the idea:

Class Pwr(mW) Pwr(dB) Range
Class 1 100 20 ~100 meters
Class 2 2.5 4 ~10 meters
Class 3 1 0 ~5 meter

If this chart is accurate (???) even a class 1 device (.1 W / 5V = 20 mA) would be within the 100 mA the Nook is capable of providing.
[Nook Color Android Development] chisleu:
That's TX wattage I'll bet. most devices I see are in the 300-400mw range.
[Nook Color Android Development] martian21:
Yeah, I'm thinking you are right. I thought those seemed low. That said, I'm still thinking a class 2 or 3 adapter might work.
[Nook Color Android Development] Divine_Madcat:
I dunno - i plugged in a logitech wireless mouse (2.4Ghz, not specifically BT), and the nook had no problem powering the transmitter/receiver...
[Nook Color Android Development] deolarte:
I have read thru the whole thread and still cannot seem to get the my nook to read any flash drive or hard drive. I got my usb wireless mouse to work perfectly but that is it. I have created the mount location on sd card, but when i try mounting it gives me no directory exist, I have deleted it and tried again, no luck. I also replaced the vold file and still have same problem. I have tried several flash drives and hard drives. I have also tried the hdd with external power source Y cable. I have no idea, what else to do any help? I have read the whole thread and tried everything. Thanks.
[Nook Color Android Development] lekofraggle:
Deolarte,

I only found one CF reader that would work without external power. I am thinking that may be your problem. If you can find a powered hub, try that. It works for me. I also found that one of my Nook cables does not work right with this setup, and the other one does. I can tell this by the fact the green N flickers. At that point, I need to use the other cable to get any drive to work regardless of hub.

Try to type dmesg in terminal after the failure. it should tell you the mount location. Or, it will tell you the problem.

Good luck.

~leko
[Nook Color Android Development] peramikic:
Lekofraggle,

Or the hub is not masking the power profile of the Cruzer, but i don't see the probe showing how much it actually is asking for.

...

Or if I am reading this right on the second look, the hub only has 100mA total bus power, and 8 is already being eaten by Nook, i assume. In any case I think the bus has only 92 to spare when the Cruzer most likely wants 100 (can you check in Windows how much the Cruzer pulls)

VG, what do you think?
[Nook Color Android Development] deolarte:
Yes I received this in both with and without hub. I don't see why when I had usb power connected and had both setting in app check to allow charging. But then my nook keyboard would be all over the place, as if it was receiving too much power. How would I check power usage in windows, I checked device manager and task manager still no luck locating, including inside device id properties in device manager. Thanks again for your help.
[Nook Color Android Development] J-ROCK:
Yeah, I never had much success with my sandisk cruiser either, I had to use an older flash drive. Seems to draw to much power.
[Nook Color Android Development] DigitalMD:
Remember that a USB self powered device can still draw up to 500ma from the host. The best bet is to use a powered USB hub. Not all are compatable, I have one this is and one that won't work at all with the Nook. The one that works for me every time is a Belkin 4 port with external power. I would guess that your "powered" reader still draws more than 100ma from the host. You can check this by attaching it to a PC and looking at the properties for USB hub in device manager. I have a IO-Gear powereed hub with built-in card reader that behaves this way. Even with external power it still wants to draw 450ma from the host. Won't work at all with the Nook.
[Nook Color Android Development] peramikic:
In Device Manager, Under USB, look into properties for USB Hub, Power Tab. You will probably have several, so best is to pick one, then plug in Cruzer and see if it pops up. If not, move on to next USB hub device.

Also try the hub-cruzer setup on pc, to see ig hub is providing enough juice. And turn of charging mode on Nook, to isolate the problem with Cruzer first
[Nook Color Android Development] deolarte:
I actually am using a belkin 4 port hub, I will have to work on this tommorow since I forgot it at work but thanks to everyone who posted suggestions, hopefully, I can get this to work, I would like to hook up at least a 320gb hdd which is filled fully with music so I can play on go till archos 250 gb android 3.1 tab is out. That baby will replace my nook, which will pass on to my sis. Thanks again.
[Nook Color Android Development] rigy73:
I cannot get a usb audio output on my Motorola micro usb headset

I used demsg and here is the log

The kernel that i am using is verygreen's original zip with uimage replaced with the usb audio kernel image posted by verygreen.

Headphones that i am trying to use http://www.motorola.com/Consumers/X...80-Micro-USB-Wired-Stereo-Headset-80179-XP-EN

The only thing that changes when i plug in or plug out the headphones is this IRQ TAP1

and I have no idea what this is?
[Nook Color Android Development] newellj79:
I'd be all over the archos except that I read it's a 1.5 single core. I have to have atleast duo, but if quad is cheap enough I'm all about it. Transformer 2 (quad) in October, of Amazon Hollywood (quad) in September. I hope I can hold out that long and not cave. Sorry to get off topic.
[Nook Color Android Development] DigitalMD:
Rigy73:

found your problem, Motorola S280 Stereo Headset is not a USB device , it is a stereo analog device that happens to have a micro USB connector because Motoroal used that connector as a dual use connector on their older phones. You cannot connect it to a USB host.

Looking at your dmesg list it appears that the nook does not see your headset connected. You should see more after what you have that says things like, PID= ...., manufact: = Motorola, Config 1 choosen from .. possible configurations...., etc.
[Nook Color Android Development] boxcar8028:
I'm going to fry's this weekend to get an adapter, so I can try out the usb hosting. just wondering if I can just use my stock B&N charging cable with a usb female to female adapter or do I also need to get a microUSB to usb female adapter?

amazing piece of work. thanks verygreen :D
[Nook Color Android Development] joenathane:
You can use your stock cable with an adapter.
[Nook Color Android Development] boxcar8028:
oh good, thanks, save me a couple of bones :D
[Nook Color Android Development] lschroeder:
Using Phiremod Test v7 (based on nightly 101) running on a SDcard. OC kernel 6/18. Nook Tweaks v1.2.1. Trying to get my Logitech USB Headset H360 to work?

Edit: For example when I use mike with keyboard, it gives error couldn't connect

1. "Drop it to /system/lib/hw/ (this on sdcard this is partition2, /lib/hw)". I used SwiFTP to move over alsa.omap3.so to nook SDcard. Then used File Expert set to root to copy it to /system/lib/hw/.

2. "You will need this kernel image: uImage." Downloaded as uImage.txt. Renamed as uImage. Used utility NookColorUMS to mount 1st partition and backup uImage on the nook. Can I power off Nook, eject SDcard, mount on pc and replace uImage? I installed Phiremod using Rack's CWM for Flashing Roms to SDcard + More! Is just replacing uImage going to give me problems, since to install OC Kernel 6/18 I placed on 4th partition and ran his CWM from a second SDcard?

Edit: Did this Wi-Fi Settings gives me Error

3. Can I use Nook Tweaks v1.2.1 with verygreen's uImage or do I need to use his NookUsbHostSwitcher?

Edit: Had to use NookUsbHostSwitcher.

4. Maybe I should use my second SDcard (verygreen's installer) with nightly 118 and work from there?

# cat /proc/asound/card1/stream0
Logitech Logitech H360 headset at usb-musb_hdrc-1.2, full speed : USB Audio

Playback:
Status: Stop
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (SYNC)
Rates: 8000 - 48000 (continuous)
Interface 1
Altset 2
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (SYNC)
Rates: 8000 - 48000 (continuous)

Capture:
Status: Stop
Interface 2
Altset 1
Format: S16_LE
Channels: 1
Endpoint: 4 IN (SYNC)
Rates: 8000 - 48000 (continuous)
[Nook Color Android Development] DigitalMD:
USB support for hard drive?

Does the current implementation support USB hard drives?

I can mount a USB thumb drive and read all the files (using a powered hub), but when I attach my external USB hard drive (formatted Fat32) dmesg looks fine but no files show up in mnt/usbdisk.

in dmesg the drive shows up as a SCSI hard drive
[Nook Color Android Development] lschroeder:
I did the mnt/usbdisk thing in this thread (see my post 313 and edited 301), but did not try to mount external USB hard drives, only 2 flash drives with umount through busy box. Currently my daily driver is Phiremod's TEST v7 on sd card. I do have my own directory for /mnt/sdcard/USB for Phiremod's TEST v7 ROM and my vold.fstab modified to find it. I have 300 GB of music on a Fat32 external hard drive and commerical program PowerAMP catalogs it all with cover art added on the fly for this ROM. It sounds good also. I am using the 15 day trial but looks like I will be buying.

Edit: To remove safely - use from terminal "su" return "busybox umount /sdscard/USB" return - use your usb keyboard. It said invalid argument when I tried. busybox umount mnt/sdscard/USB gave me that device was busy, so I shut down to dismount it. Flash drives dismount fine with busybox.

See my post below for how I did it. (You may also want to look at my post right above this for how I made OC 06/18 work plus Nook Tweaks. Had to do same procedure to make Phiremod TEST v7 ROM work on an SDcard, covered in Racks post 281 to me in same thread.)

http://xdaforums.com/showpost.php?p=15031190&postcount=286
[Nook Color Android Development] DigitalMD:
lschroeder :

Thanks I am using your method as you described and it works very well for my thumb drives, but does not work for my external 160gb hard drive. The drive is recognized but no files are accessable. It could be because it has multiple Fat32 partitions. I don't know. Later I will try another hard drive that only has a single partition. Anyway thanks for the advice.
[Nook Color Android Development] lschroeder:
Your welcome. You need to have patience my 1tb hard drive has 300gb of music on it. It takes it some time to check for errors (listed in notification bar), but it does complete. The PowerAMP music program next takes a lot of time to scan and catalog the music folder each time I mount it. Again it completes.

Edit: I just dismounted two flash dirve with the busybox command and then mounted the 1tb external hard drive with no problem.
[Nook Color Android Development] yourm0m1:
is ANYONE using an xbox s-type controller?? i understand there may be mapping issues but it doesnt even seem like my remote is being recognized.....cant map buttons in emulators. dmesg does seem to be getting something but it never states MS/xbox/gamepad or anything of the such.

appreciate any info/help
[Nook Color Android Development] :
I upgraded to v7 and am trying to get the usb host stuff to mount my usb drive.

I did the following:

installed v7 phinemod

installed gapps

installed dal's oc kernel 063011

installed sideload nook tweaks.

Changed vold.fstab to the following:

## Vold 2.0 Barns and Nobel Encore

#######################

## Regular device mount

##

## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>

## label - Label for the volume

## mount_point - Where the volume will be mounted

## part - Partition # (1 based), or 'auto' for first usable partition.

## <sysfs_path> - List of sysfs paths to source devices

######################

dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc1

## nookcolor has two fat32 partitions, p1 is boot p8 is internal storage, so we have to specify here

dev_mount emmc /mnt/emmc 8 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0

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

When I enable the host usb on nook tweaks, I'm able to see the light on my usb drive turn on, but I don't have anything mounted at sdcard/USB. I'm connecting the usb drive directly to the port without a hub. I tried a different usb stick and I get a notification that the card is safe to move. But I'm never able to having it mounted to access the drive.

Not sure where I went wrong. Do I need to create a folder at sdcard/USB? Have to use a hub? Are there certain drives that just don't work?

Any help would be appreciated.

Thanks.

-Aaron
[Nook Color Android Development] newellj79:
I had to use a hub. Some do some don't. Yes u have to make the USB folder.
[Nook Color Android Development] BobK46:
I am not an expert, I am still learning a lot here. However, I believe you must create the mount point for each device, yes in the USB folder is good.

If you still cannot see the files on your drive (hopefully formated Fat32), then go to terminal and enter dmesg. This should tell you if your drive was recognized and possibly the reason it was rejected.

This a time consuming process, but very informative.

BTW you sould recognise that the number of partitions somewhat unique to the rom you flash, not all have 8 partitions.

I hope this helps and does not confuse