USB Host support

starbright_

Senior Member
Apr 11, 2010
1,116
179
83
The thing is, everytime I connect my hdd there is no red line appearing. Do I have to fix the voltage nevertheless?
Even connecting an USB stick doesn't work for me :(.

Sent from my BN NookHD+ using xda app-developers app
For me LED of HDD is powered up with enabling the host feature, either by verygreens tool or the implementation by dubidu.
But, that doesn't mean I can read from HDD (USB stick no problem). I need to enable more power at USB host for HDD.
 
  • Like
Reactions: derschnelle

dubidu

Senior Member
Apr 19, 2006
210
168
63
UK
For what I know there are a couple of reasons why a external device may or not work.

1. How much power the device ask to the host (This is what it's showed as a red line in the dmesg output)

2. The real power the device needs. It your external disk needs more than what the usb bus can provide it will to work. This is the same with any USB host, I have some external HDD that only work when plugin to a powered hub. It doesn't matter which device (Nook/Desktop/Laptop).
You won't be able to solve this by software.

3. The file system used by the device was not recognized. FAT32 is automatically mounted. Ext2/Ext3 are not (that's why I added the two mount/umount buttons to the crappy app). Haven't tried with NTFS or Exfat but I guess it is the same case.

I doubt the "SU message" can cause any kind of reboot. It is there because the new SU tool (I wrote the TPUMount app some time ago) is showing a toast message everytime an app runs a SU command. To monitor the dmesg output the app runs a "dmesg | grep USB" every couple of seconds and that's what cause the annoying SU message.
Still if you click the "Exit" button the app should died (proper died) so the activity that does the SU command should not run any more, and no more SU toast, or you can just disable Toast notification for the app (as I did on mine)
 
  • Like
Reactions: derschnelle

derschnelle

Senior Member
Aug 7, 2011
293
49
0
For what I know there are a couple of reasons why a external device may or not work.

1. How much power the device ask to the host (This is what it's showed as a red line in the dmesg output)

2. The real power the device needs. It your external disk needs more than what the usb bus can provide it will to work. This is the same with any USB host, I have some external HDD that only work when plugin to a powered hub. It doesn't matter which device (Nook/Desktop/Laptop).
You won't be able to solve this by software.

3. The file system used by the device was not recognized. FAT32 is automatically mounted. Ext2/Ext3 are not (that's why I added the two mount/umount buttons to the crappy app). Haven't tried with NTFS or Exfat but I guess it is the same case.

I doubt the "SU message" can cause any kind of reboot. It is there because the new SU tool (I wrote the TPUMount app some time ago) is showing a toast message everytime an app runs a SU command. To monitor the dmesg output the app runs a "dmesg | grep USB" every couple of seconds and that's what cause the annoying SU message.
Still if you click the "Exit" button the app should died (proper died) so the activity that does the SU command should not run any more, and no more SU toast, or you can just disable Toast notification for the app (as I did on mine)
When I connected my hdd I plugged it into a powered hub as well. So I think power should not have been the problem. What was strange though was that no notification about a new device plugged into usb appeared, as it does when connecting an USB stick. I think I will have to test with another hdd and report again.

One more thing I want to ask, yesterday I connected a wired keyboard (cherry evolution) and it was recognized in dmesg as a mass storage. No wonder, it didn't work;). Another keyboard I tested later worked flawlessly as it was recognized as a keyboard right away. Is it possible to change the mode from mass storage to keyboard or something like that?

Sent from my BN NookHD+ using xda app-developers app
 

dubidu

Senior Member
Apr 19, 2006
210
168
63
UK
When I connected my hdd I plugged it into a powered hub as well. So I think power should not have been the problem. What was strange though was that no notification about a new device plugged into usb appeared, as it does when connecting an USB stick. I think I will have to test with another hdd and report again.

One more thing I want to ask, yesterday I connected a wired keyboard (cherry evolution) and it was recognized in dmesg as a mass storage. No wonder, it didn't work;). Another keyboard I tested later worked flawlessly as it was recognized as a keyboard right away. Is it possible to change the mode from mass storage to keyboard or something like that?

Sent from my BN NookHD+ using xda app-developers app


If is me, I will blame more the Keyboard than the Nook ;)
It is the USB device the one that identifies itself to the USB host, and I guess, your keyboard is returning an USB HID class that correspond to a mass storage device rather than a keyboard. (but it does sound a little weird)
 

derschnelle

Senior Member
Aug 7, 2011
293
49
0
Soo it's me again ;),
I moved to cm 10.2 nightly and am finally able to mount ntfs :). One question I have left is, how can I mount 2 or more devices to different points?
Do I have to do it manually via terminal? I already tried some host apps from playstore, but they didn't work...

Sent from my BN NookHD+ using xda app-developers app
 

Fieryabyss

New member
Jan 31, 2011
4
0
0
This might be a dumb question but will something like the items listed below hide the power draw from the PS3 controller, or do i need something different. Trying to find a solution with a built in mini usb to reduce the wire clutter.
(Sorry still new so couldnt link)

Search "3in1 USB Connection Kit HUB SD MMC TF Card Reader Adapter For OTG Mobile Phone" on Amazon

Search "P&o Usb 2.0 Female To Mini 5 Pin Male Usb Otg Host Extension Cable -Black" on Amazon
 
Last edited:

dubidu

Senior Member
Apr 19, 2006
210
168
63
UK
dubidu the app is stuck on filtering dmesg on CM11.... just saying

im trying to get a usb hdd wd500gb to work through a powered usb hub

Still need to update mine to CM11 ;)

If the "fix my power" button doesn't work, you can try with the first version (http://rootzwiki.com/topic/33033-otg-usb-insufficient-available-bus-toolthingy/)
I think it doesn't try to filter dmesg at all, so the buttons should work.


This might be a dumb question but will something like the items listed below hide the power draw from the PS3 controller, or do i need something different. Trying to find a solution with a built in mini usb to reduce the wire clutter.
(Sorry still new so couldnt link)

Search "3in1 USB Connection Kit HUB SD MMC TF Card Reader Adapter For OTG Mobile Phone" on Amazon

Search "P&o Usb 2.0 Female To Mini 5 Pin Male Usb Otg Host Extension Cable -Black" on Amazon
I'm not sure the Nook battery will have enough juice to power the hub and the PS3 controller. The only think the "fix power" button does is to change one of the usb device (bConfigurationValue) which should switch configs. So far I haven't found any device (USB sticks/external HD/HUB/DVB-T) which fail to work with that enable, but the best way is to try it with your hub/controller and see if it works or not ;)
 

ccbrewer

Member
Dec 29, 2013
10
1
0
Still need to update mine to CM11 ;)

If the "fix my power" button doesn't work, you can try with the first version (http://rootzwiki.com/topic/33033-otg-usb-insufficient-available-bus-toolthingy/)
I think it doesn't try to filter dmesg at all, so the buttons should work.
I will try this as I am working out of town, last week 92 hours... just last week... and I like to have data with me to watch in case I stay somewhere the internet sucks

will test this shortly


EDIT/UPDATE

dubidu: it hangs on "filtering 'dmesg' " on cm11

EDIT/ the buttons work and it asks for superuser and says granted, however my drive still does not pop up.

it shows unsupported or blank sd card, and registers when removed, but will not read the drive when formatted as NTFS, or fat32, or ext4.... I am using the cm11/kitkat thread cm version....
 
Last edited:

extrem0

Senior Member
Feb 7, 2012
1,188
467
103
Working on my Nook HD+ with CM 10.1.3.
I made a .zip with the.apk, in order to force install it from recovery. File is attached if you want to try it. Cheers.
Working with CM11 too. Thanks!
Just unzip your file and installed the apk as user app. Didn't have to go to recovery.
 
  • Like
Reactions: jpisini

ccbrewer

Member
Dec 29, 2013
10
1
0
Still need to update mine to CM11 ;)

If the "fix my power" button doesn't work, you can try with the first version (http://rootzwiki.com/topic/33033-otg-usb-insufficient-available-bus-toolthingy/)
I think it doesn't try to filter dmesg at all, so the buttons should work.




I'm not sure the Nook battery will have enough juice to power the hub and the PS3 controller. The only think the "fix power" button does is to change one of the usb device (bConfigurationValue) which should switch configs. So far I haven't found any device (USB sticks/external HD/HUB/DVB-T) which fail to work with that enable, but the best way is to try it with your hub/controller and see if it works or not ;)
Working with CM11 too. Thanks!
Just unzip your file and installed the apk as user app. Didn't have to go to recovery.



I am having trouble with my hdds still. I installed the CM11 posted in here which has the usb integrated, but not working for me.

Should I try a complete fresh image? or perhaps a different external hdd? my 8gig flash sticks work, but not my 80 or 500gb external hdds, work fine on my linux box but not on nook.
 

Daved+

Senior Member
May 25, 2008
567
117
73
all sorts of stuff.
HID (keyboards, mice), usb serial ports, DSLRs, a bunch of 3g sticks, audio (as in headphones, speakers, microphones (?)).
I couldn't get a mouse to work but pendrives work just fine. Is there anything else I need to do?
 
Last edited:

verygreen

Senior Member
Feb 13, 2011
1,305
2,637
0
TN
linuxhacker.ru
I couldn't get a mouse to work but pendrivers work just fine. Is there anything else I need to do?
Your mouse might need some special handling because it deviates from USB HID spec, I enabled a bunch of such fixups in kernel config, but definitely not all of them.
What mouse do you have and how does it reports in dmesg?
 

Daved+

Senior Member
May 25, 2008
567
117
73
Your mouse might need some special handling because it deviates from USB HID spec, I enabled a bunch of such fixups in kernel config, but definitely not all of them.
What mouse do you have and how does it reports in dmesg?
device v0458 p003a is not supported.

And there a lot of error -71.

It's a Genius NetScroll 120

Thanks
 

ckran

Member
Oct 25, 2010
19
1
0
CM 11

Does USBHostSwitcher work with CM11? I get messages:

Forced USBHOST status
OFF (button)
Error reading status

If I click OFF the last message changes to:
USB ID control file not found
 

MiddleC

Member
Apr 28, 2014
7
0
0
Connect digital piano

It pains me to do this, as I was hoping B&N will step forward and release an OTG/USB Host cable. The hardware is certainly all there.
But alas, they are sitting on their hands again, so I have no other choice but use this software override kludge again.
All for the better most probably, as I suspect when they do release, it'll cost some outrageous amount of money, just like what happened to the HDMI adapter.


If you want to try it yourself.
Hi
Should I be able to connect a digital piano to the Nook HD (I currently connect to a PC via Midi IN/OUT to USB cable)
Could you advise where to to get the App for the 'switch'
Many thanks for any help you can give - it is driving me crazy having to run leads to the PC.