USB Host possible? - Nook Touch General

This is just about the perfect ebook out there but there are two things that it lacks: USB host and bluetooth, of which I would've loved to use for connecting a physical keyboard to. For now, it's unlikely that anyone can connect a keyboard to this without USB host abilities.
It contains the same SoC as the Nook Color, the 800mhz OMAP3621 which has USB host capabilities through this tweak, but that may not mean the Nook Touch is capable of USB host.

For this we'll need to wait for B&N to release the kernel source for N2.
Once we have the kernel, we may even be able to get a special build of CM7 for N2 as well.

We have already the kernel source of the N2E

Check new thread about this:
See (Nook Touch Android Development) USB Host support (working) by verygreen

Related

[Q] Which USB cameras work with nook color?

Is there a list of supported USB cameras that work with the nook color's USB host mode? Especially ones that have build-in microphones - I would like to start using Skype with the nook color if possible or at least be able to take a picture/video from time to time.
I could be wrong, but I don't think any webcams work with the USB host mode yet.
Sent from my NookColor using xda premium
Hey. I apologize if I'm asking a question that's been answered. But how can I get USB Host mode enabled? Do I still have to use that special kernel? If I do, the link for it doesn't work anymore. I have the micro-USB gender adapter, NOOK Color Tweaks, Cyanogen Nightly 8-31-2011, and that's it. Do I need something else? I have looked everywhere and can't find a comprehensive guide for enabling USB Host mode for USB peripherals. Please help me!
hodriver83 said:
Hey. I apologize if I'm asking a question that's been answered. But how can I get USB Host mode enabled? Do I still have to use that special kernel? If I do, the link for it doesn't work anymore. I have the micro-USB gender adapter, NOOK Color Tweaks, Cyanogen Nightly 8-31-2011, and that's it. Do I need something else? I have looked everywhere and can't find a comprehensive guide for enabling USB Host mode for USB peripherals. Please help me!
Click to expand...
Click to collapse
Yeah, that thread is a bit of a nightmare. USB Host is built into the nightlies now, and I think it has been since before 8/31, but you may want to grab a more recent nightly. You enable USB Host in the Nook Tweaks app. A lot of peripherals won't show up unless you run them through a USB hub, ideally a powered one.
I think a lot of things need to be mounted via terminal commands, too. I'm just offering a digest of what I've seen in the thread, though--I haven't gotten any of my peripherals to register on the NC, but then I wouldn't expect any of them to register without a hub, except maybe my card reader.

[Q] externally powered wifi adapter via otg for Backtrack

Greetings! I've been lurking on XDA for quite some time, and first I would like to give a big thank you to all the developers. I would never have purchased a Kindle Fire if I didn't have faith in your ability to unlock the hardware's true potential. You guys/gals rock.
Here's my question: I develop and troubleshoot municipal and commercial wired/wireless networks and I would really like to be able to use the KF with backtrack. I understand that OTG support under ICS is very close to being a reality, would it be possible to support an external wifi adapter via OTG?
Drawing power is the first problem that comes to mind, so my thought is to mod a USB OTG adapter to draw from an external DC source instead of the KF.
This could have some awesome potential if it could work. I'm willing to do whatever I can to make this happen, so if one of you veteran developers could set me on the right track to backtrack it would be greatly appreciated.
I'm no wifi/kernel expert but as far as i have understood it:
It should be possible if you get the right wifi modules to work. Android uses a modified wpa_supplicant, so even if you have linux wifi drivers for usb you would need to patch them to get it running. The current kernel does not have mac80211/cfg80211 modules compiled it, but i think that you probably would need them (i think they are in the kernel source, they are just not set yet). The current module for the tiwlan is proprietary and is also uses some strange ibCustomWifi as wrapper around WEXT, not sure if they also did some changes there.
If the 3.0 kernel boots we should anyhow change to a mac80211 wifi driver and also use wpa_supplicant 0.8 instead of 0.6 so your chances should be a lot better with the 3.0 kernel.
So it strongly depends if your external wifi adapter is very well supported for linux (or better for Android ....) und if we get otg running. (There might be some hidden problems to discover).
Sengwall,
There are several threads in the xda forums for similar projects on different devices that might be useful as the steps are basically the same (assuming that somebody gets OTG working). Here's one of them:
http://forum.xda-developers.com/showthread.php?t=1484339
Thanks for the input...ill look and see if there has been success on other devices with the same board.... great suggestion.

Usb Host Mode Problem

Let me start this thread by stating that I DID have my Nook Color, booted off an sd card with cm9, working with my usb powered hub connected to a mouse, controller, flash drive, and keyboard. But through a possible hardware error on my part, I cannot get it to work anymore. I'm fairly adept at modifying my Android Devices. I used USB Host Controller and looked through my dmesg logs and the only thing I found of note was it recognized my 7 port hub, but had it suspended. I attempted to enabled/disable USB Host in my Terminal Emulator with commands found in the USB Development Thread but it simply did nothing. Reading logs, etc. is not necessarily a strong suit of mine. So finding what MAY by the problem, has been a bit of a pain the past 2 days. However I will detail my problem below:
Items used:
- 7 - Port USB Powered Hub from Micro Center
- OTG Cables bought from Amazon.
- Nook Color (With various roms. Notably Cm7.2, CM9 (Unsure of nightly version), AOKP Build 40):
- Belkin USB Keyboard and Mouse
- PS3 Controller
- Sandisk 16gb Micro Flash Drive
Apps Used:
- Nook Color Tweaks
- USB Host Viewer
- USB Host Diagnostics
- USB Host Controller
About 3 days ago I decided to set up a station for my tablet as a mini-computer. I had successfully connected a mouse and keyboard (independently of each other) previously but I wanted to go ahead and use my powered usb hub and get a real mini-computer experience on my android tablet. These are the results (All tests include the use of an OTG Cable to connected to either the USB Device or Powered Hub):
Test 1:
Rom: CM 7.2 Kang
1 USB Device Connected: Mouse (Yes), Keyboard (Yes), Flash Drive(No), Game Controller(No) - All enabled via Nook Color Tweaks
Devices Connected to Hub: No
Test 2:
Rom: CM 9
1 USB Device Connected: Mouse (Yes), Keyboard (Yes), Flash Drive(No, I believe it required more than 100mah to power), Game Controller (Yes) - All worked by just Plug N Play.
Devices Connected to Hub: Yes (The Mouse, Keyboard, Flash Drive, and Controller worked simultaneously)
[To Note: Inbetween this test I pulled the OTG-Cable connected to the hub without un-mounting the flash drive first. CM 9 wasn't happy and told me to properly un-mount my sdcard first before pulling the cable. (I bowed to my Android lord and said "okay".)]
Test 3:
Rom: AOKP Build 40
1 USB Device Connected: Mouse (Yes), Keyboard (Yes), Flash Drive(No, I believe it required more than 100mah to power), Game Controller(I have not verified) - All worked by using Nook Color Tweaks. Did not Plug N Play.
Devices Connected to a Hub: No (However it will charged).
Problem:
Looking back at my 'To Note'. Somehow I believe this has caused the problem. Since then USB Host Mode has only worked with a single device NOT connected to the USB Hub. Although my Nook will charge connected to the powered hub with or/without the hub turned on it still will not allow a single device to worked. I've used Nook Color Tweaks with my USB Hub plugged in with both USB Host Mode and VBus External Powered checked (In all 3 roms; AOKP, CM 7, and CM 9) and the only successful attempt made where the HUB and all 4 devices worked were in CM 9 for about a day and a half. Then I pulled the OTG Cable without un-mounting the flash drive, and alas, no-go with the Powered USB Hub.
USB Host Controller tells me I have USB Host Mode enabled (In all 3 roms) yet going to connected devices shows nothing. USB Host Viewer (In all 3 roms) shows nothing connected. And USB Host Diagnostics tells me various things that I'm willing to list here if needed (Host API, Kernel, etc), yet each time the USB Devices connected during the diagnosis, they are not recognized.
Troubleshooting:
- I've plugged my usb powered hub to my computer. It works just fine with each device connected, at once, or together.
- Each device works independently connected to my computer (Keyboard, Mouse, Flash Drive, Game Controller).
- I can still connect a keyboard and mouse independently to my nook with Nook Color Tweaks, but Plug N Play does not work.
- I've attempted both USB Host Mode off of SD Card (CM 9) and EMMC (AOKP Build 40) where Plug N Play only worked with SD Card (CM 9).
- The Kernel for all 3 roms has been 2.6.32.xx or greater (Cm 7.2 used Dalingrin's OC kernel, AOKP Build 40 uses 2.6.32.59, and I'm unsure of CM 9's).
At this point I'm at a loss and I am looking for help. I've done a fair bit of searching (Admittingly too much during work) on these forums. As stated in the beginning of my post, I had it working with all 4 devices in CM 9 booted off my sd-card, since then I've switched my EMMC from CM 7.2 Kangs to AOKP Build 40 (hawt) and successfully used both with a mouse and keyboard. But I cannot get the powered USB HUB to do anything BUT power my Nook Color.
Thank you for your responses and if you need logs, links to the items, apps, or roms used,(forum wouldn't let me post all of them) screenshots from apps, anything, I will respond as quickly and as efficiently as possible.
Have you considered on just reinstalling the whole build over from scratch? I think the USB host is part of the drivers in the kernel layer and that kernel layer might have become corrupted. If you got wifi and audio working on that nook color then the likelihood of having a hardware problem by that definition becomes less of an option, the USB hub is driven by the CPU. So if you got cyanogenmod up and booted, this points to a possible kernel opps. You stated you had it up before. I don't work on kang and AOKP builds so how is the stability of the usb host mode for those builds? Sounds more of a software issue and not some hardware issue. Unless you just like trying to decompile software for a learning experience for yourself. Did you do a hardware hack for your nook as stated in this thread here? http://hackaday.com/2010/02/10/usb-host-mode-for-droid/
Also make sure you disable all of your apps on your device, that is another possible cause, we don't know what type of apps or mods you have made.
Unless you got support to your USB the only way to find the problem is to decompile your whole build through ADB. Logs will not find the problem if its in the kernels. Or are you using ADB through wireless? Check this thread here if you haven't seen this thread yet. There is an app that gives you USB host support already. http://forum.xda-developers.com/showthread.php?t=1468531
UPDATE Aug 31st. 2012. Check thread here on USB host support. http://forum.xda-developers.com/showthread.php?t=1459892
If you want more experience on how android operates, you can start off by building your own cyanogenmod on your computer, the cyanogenMod wiki here shows you how. http://wiki.cyanogenmod.com/wiki/Barnes_&_Noble_Nook_Color:_Compile_CyanogenMod_(Linux)

[INFO] OTG / USB Host

Oppo says that the hardware doesn't support OTG/USB host at all
the platform (APQ8064 SoC) does. don't remember/know what USB chipset this device uses
device hardware documentation
Last time I traced the kernel, it looks like the USB device tree isn't loaded at all in the kernel, so no OTG support... wonder if other people have had time to look at it
paperWastage said:
Oppo says that the hardware doesn't support OTG/USB host at all
the platform (APQ8064 SoC) does. don't remember/know what USB chipset this device uses
device hardware documentation
Last time I traced the kernel, it looks like the USB device tree isn't loaded at all in the kernel, so no OTG support... wonder if other people have had time to look at it
Click to expand...
Click to collapse
Tried it on my CyanogenMod build, no reaction. It is possible that it acts like Nexus 4, aka. the phone doesn't power the USB upstream (even if I saw some references to that in the kernel...), so if you enable USB OTG support, you'd need to power your USB device externally.
XpLoDWilD said:
Tried it on my CyanogenMod build, no reaction. It is possible that it acts like Nexus 4, aka. the phone doesn't power the USB upstream (even if I saw some references to that in the kernel...), so if you enable USB OTG support, you'd need to power your USB device externally.
Click to expand...
Click to collapse
That seems to be a common issue for a lot of devices - The host SoC supports it, but they didn't bother to wire up the PMIC's boost converter.
There's a lot of code related to OTG in the kernel source, but I think it's all upstream CAF stuff. All of Oppo's changes to the USB drivers seem related to charging. (It's a little confusing, as there are a lot of functions with "otg" in the name that are doing lots of non-OTG-related stuff.)
I'm thinking of looking into adding/enabling ACA support for Nexus 4 (and maybe other devices too). There is an official standard for externally powered OTG adapters - they can even charge the phone! However 90% of the adapters on the market aren't compliant with this standard.
Entropy512 said:
That seems to be a common issue for a lot of devices - The host SoC supports it, but they didn't bother to wire up the PMIC's boost converter.
There's a lot of code related to OTG in the kernel source, but I think it's all upstream CAF stuff. All of Oppo's changes to the USB drivers seem related to charging. (It's a little confusing, as there are a lot of functions with "otg" in the name that are doing lots of non-OTG-related stuff.)
I'm thinking of looking into adding/enabling ACA support for Nexus 4 (and maybe other devices too). There is an official standard for externally powered OTG adapters - they can even charge the phone! However 90% of the adapters on the market aren't compliant with this standard.
Click to expand...
Click to collapse
Do basically we have no otg no matter what
Sent from my Oppo Find 5
osmosizzz said:
Do basically we have no otg no matter what
Sent from my Oppo Find 5
Click to expand...
Click to collapse
We don't know yet, but it looks like it'll only be possible for externally powered devices.
Ahh man...
So what you're saying is that dock thing with a usb port on it from Sony Ericsson might work but that's it?
Oppo product manager said they do not want to take the risk by adding OTG Find 5, I saw that post on Sina Weibo in China
has anyone tried stick mount from play store .....is it working? it requires root but
The device has basicly the same issue (missing 5V output) like the Nexus 4. With some modifications its at least possible to get a properly function with external powered usb devices.
Kernel is based on the work from Ziddey and Cyanogenmod Team:
http://www.oppoforums.com/threads/usb-otg-externally-powered-usb-otg.2083/
Does that mean that in order to get USB host to work you must power the device externally AND use a modified kernel?

[Q] Usb Host: Ethernet Adapter (Driver Compile Requested For Money)

Greetings....
I am hoping to get my Asix Usb to Ethernet adapter working with my nook STG. I believe the only remaining requirement is to compile the drivers for it (which are android 2.x compatible according to the driver manufacturer website).
I am rooted and have 'usb host mode' successfully working.
When my adapter is plugged in, it displays as a 'connected device' in my Usb Host information app and shows the details; make/model etc - so its connected successfully.
It works plugnplay with my other droid devices, however in these devices there is an Asix driver folder in /sys/bus/usb/drivers and there is not in my Nook, thus I believe i simply need to compile the drivers which will create the Asix driver folder.
If you have the correct setup and can compile the drivers for me (and potentially other Nook users), i will exchange them for 10GPB or 10 of your currency, via your desired means.
I am slowly trying myself on an ubuntu vm in windows but can only use the pc for short periods due to eye troubles; hence trying to use a Nook as my sole computer.
INFO:
Device: Nook STG firmware 1.21 - kernel source file link = images.barnesandnoble.com/PResources/download/Nook/source-code/nook2_1-2.tgz
Adapter Driver: Asix AX88772 - driver source file link = www.asix.com.tw/FrootAttach/driver/AX88772C_772B_772A_760_772_178_LINUX_Driver_v4.11.0_Source.tar.bz2
Adapter Info: BobjGear Adapter made for Android Tablets = www.amazon.co.uk/BobjGear-Ethernet-Exceptions-Description-Ultrabooks/dp/B007RTACDM
Other info: An XDA thread compiling the same drivers - http://forum.xda-developers.com/showthread.php?p=37548841
I don't know how to apply the drivers so I need to learn how to do so, I have ADB set up and have Noogie, CWM and NookManager .img also.
Any other info needed i will provide
Sam
Just a quick comment:
Host mode on the Nook currently uses a lot of power.
Something like >100mA in comparison to a usual 8 mA or so.
It's not been tracked down yet.
I can get you better figures for this later.
Presumably this is for some fixed install using hard-wired power?
Renate NST said:
Presumably this is for some fixed install using hard-wired power?
Click to expand...
Click to collapse
No I'm actually just using it as it is; no hardware mods.
I have not used usb host enough to know the drain speed but while plugged in to a live ethernet yesterday, it drained seemingly quick.
This isn't a preventative issue though; my need to access the web on the nook via ethernet (no wifi dizziness) is urgent.
If i had to recharge every 10 mins e.g, this would be extremely hindering but still necessary.
Hard wiring may be desirable (maybe not if it's permanent), i haven't read any posts on it thus far.
I do have a powered hub etc if applicable, i dont know if it can charge as well as hosting from the usb.
Sam
Yes, you can USB host and charge.
I'd recommend a back-powering hub.
That way, if you want to throw a USB keyboard on it too, you can.
See: http://forum.xda-developers.com/showpost.php?p=22956658&postcount=103
Great, i'll give it a try

Categories

Resources