[Q] Does the Nexus 7 have USB host mode? - Nexus 7 Q&A, Help & Troubleshooting

Hi,
I was hoping I could post on the developer sub forum, but I have too little post, so I hope some of the devs can help me out.
I have in my possession a USB OTG cable, and I am able to connect it to a usb -> serial port, and send/receive data to and from a PC's hyperterminal. I am also able to send/receive data to and from one of my custom boards (something like arduino) that has a serial interface.
I've written my own program to perform this communication, but it is largely based on
- Slick USB 2 Serial
- USB Serial Monitor Lite
from the playstore.
Now, I am able to perform the above with my Samsung Galaxy S3, however, when I tried running my program, or anyone of the above programs (from the playstore) on one of the china branded tablets, which claimed to have USB host mode, it didn't work.
The tablet that I bought is ICOU7.
Now, I am desperately trying to get my program to run on a tablet, but I do not want to buy a tablet, and waste my money (which I already have with that china tablet) if it doesn't work, so can any of the devs out there, with a Nexus 7, confirm that the Nexus 7 is able to perform serial communication with PC/board through an OTG cable?
Do I need a specific OTG cable to do so?

I can't say for certain that it supports serial connections but it does have host mode. I've used keyboards/mice & flash drives without problem
Sent from my HTC One X using xda app-developers app

Depends on what you mean by "serial" device. If you mean CDC/ACM class usb device, then yes, nexus 7 can handle those, it creates /dev/ttyACMX like on desktop linux. This is only accessible if you have root, though. But, ACM devices are also supported by android USB Host API, which means you can write android app, which communicates with such device, and it does not require root.

Tasssadar said:
Depends on what you mean by "serial" device. If you mean CDC/ACM class usb device, then yes, nexus 7 can handle those, it creates /dev/ttyACMX like on desktop linux. This is only accessible if you have root, though. But, ACM devices are also supported by android USB Host API, which means you can write android app, which communicates with such device, and it does not require root.
Click to expand...
Click to collapse
How about for starters, I just wanna communicate with a PC's hyper terminal through its comport? Will Nexus 7 be able to do that?

bagofcrap24 said:
I can't say for certain that it supports serial connections but it does have host mode. I've used keyboards/mice & flash drives without problem
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
The china tablet I had was able to support mouse/keyboard too. But it was unable to establish a link to my PC's hyper terminal, which I was able to do with my unrooted Samsung S3

Related

USB host

I've been searching but I haven't been able to find an answer...does the hd2 support USB host while running android? I'd like to b able to connect a web cam to it...I've have also found Bluetooth webcams, also wondering if using one of those with the hd2 would b possible....I'd just like to b able to video chat with the hd2 and I wouldn't mind carrying an attachment....
Sent from my Nexus One using XDA App
Hello,
Is there a chance to have USB host on HD2 under android builds ?
If not can we know what is the main problem ?
Android is based on a linux kernel isn't it ?
So, if USB host is supported under linux builds, why is it impossible on android ?
Thanks to teatch me !
I don't think android in general allows USB host on any device... that's the problem. The linux kernel supports it, but android doesn't. If you use ubuntu you can have usb host on the HD2.
Actually, the Notion Ink Adam runs Android and has USB host mode. With a bit of kernel hackery, this could well be possible on the HD2.
Using a USB Y-cable and providing external power, it should be possible to connect all sorts of things. I'm patiently waiting for this capability as I have a USB SSD HDD that I connect to my car's head unit that I'd like to connect to my phone when I'm at work
Major_Sarcasm said:
Actually, the Notion Ink Adam runs Android and has USB host mode. With a bit of kernel hackery, this could well be possible on the HD2.
Using a USB Y-cable and providing external power, it should be possible to connect all sorts of things. I'm patiently waiting for this capability as I have a USB SSD HDD that I connect to my car's head unit that I'd like to connect to my phone when I'm at work
Click to expand...
Click to collapse
You're right, I have seen other android tablets with usb host, too. I remember seeing the devs explain somewhere why android on the hd2 doesn't have usb host... I thought I remember it sounding like it wouldn't be able to happen until a later version of android... but I could be wrong or misunderstood. I'll try to find where I read this.
Sent from my HTC bravo using XDA App
Hi.
http://forum.xda-developers.com/showthread.php?p=10797562
It's an easy way to use the USB connector in host mode, works under ubuntu.
with some adaptors you can build it also by using an y- cable.
But I think android for HD2 doesn't support anny usb features until now, perhaps someone will activate it in the kernel.
regards
mf_1
Yes, most of us are aware that host mode is usable whilst running Ubuntu. The problem is that Ubuntu is not really convenient as a main phone OS; Android is and some devices seem to have host mode while running Android.
Hopefully one of the devs will see this thread and give some insight.

[Q] What exactly works from the USB port on the Iconia Tab?

I'm looking to get a tablet to introduce BackTrack 5 to. I don't believe this tablet has a wifi chip capable of injection, so I wanted to connect a USB wifi adapter to it (this one right here). I read in the update it's able to register the usb port for usb devices, but which exactly work without me having to create a driver? And, I'm sure there are linux drivers for said USB adapter, I assume I could take that and (easily) create one?
From what I've read so far, the USB port handles things like hard drives, keyboards and flash card readers (and not necessarily all of them).
A Wi-Fi adapter may function under Linux but you would probably have to be rooted on the device to install drivers since they are not natively included in the system build that I know of.
Backtrack 5 works fine on the A500. I'm running it right now. I've had no issues with it.
i posted a thread in the accessories section on compatible usb devices
runeblade said:
Backtrack 5 works fine on the A500. I'm running it right now. I've had no issues with it.
Click to expand...
Click to collapse
Do you have any success with it or just running it
Sent from my SPH-D700 using XDA App
I am thinking about putting Backtrack on my Iconia A500. Following up on a previous question by NickkxNekro, would one be able to plug the Alfa wifi device into A500 and make use of it?
im assuming yes since you can use 3g usb dongles

Connecting to MAC via USB ???

Well it's official, I'm at my wits end trying to figure out just how to connect my Note 10.1 to my Macbook Air connecting via USB cable. Every time I connect the two, I can't find it ANYWHERE on my laptop !!!
Anyone else experience this all too frustrating conundrum???
Sent from my GT-N8013 using xda premium
I've had this issue since I bought it months ago. Use AirDroid.
dmarco said:
Well it's official, I'm at my wits end trying to figure out just how to connect my Note 10.1 to my Macbook Air connecting via USB cable. Every time I connect the two, I can't find it ANYWHERE on my laptop !!!
Anyone else experience this all too frustrating conundrum???
Sent from my GT-N8013 using xda premium
Click to expand...
Click to collapse
Android file transfert works fine. Do NOT install the Samsung USB driver from kies this Is complete ****. airdroid is **** too you can't even copy a folder. ah don't forget to disable USB debbug otherwise aft won't detect your device.
I've never been able to see any of my Android devices on my Mac without using Android File Transfer & I believev that's the way things just are.
The problem is that Android only presents itself over USB as either a media device using MTP (Media Transfer Protocol) or PTP (PrinterTransfer Protocol) standards - settable in settings. It does not support USB Mass Storage protocol.
Windows supports MTP out of the box for Media Player, so when you connect your Android to it - it shows up as what looks like, for all intents and purposes, a hard drive. In the Note's case - you get two: one for the internal simulated 'SD' card - and one for the actual SD card reader. This is why when you copy files to and from the Note, the experience is a little weird - it will offer to convert files for you, for example.
Unfortunately, MacOS X doesn't support MTP because, I suspect, Apple wants everyone using iDevices and their proprietary iTunes protocols which aren't compabtible with MTP.
Now, while it's dumb of Google not to support USB Mass Storage in Android, it's equally dumb of Apple not to support MTP in their OS.
Fortunately, there are addons you can get to fix this (as noted above).
Windows users (and I suspect, Linux ones as well) don't have a problem.
TheWerewolf said:
The problem is that Android only presents itself over USB as either a media device using MTP (Media Transfer Protocol) or PTP (PrinterTransfer Protocol) standards - settable in settings. It does not support USB Mass Storage protocol.
Windows supports MTP out of the box for Media Player, so when you connect your Android to it - it shows up as what looks like, for all intents and purposes, a hard drive. In the Note's case - you get two: one for the internal simulated 'SD' card - and one for the actual SD card reader. This is why when you copy files to and from the Note, the experience is a little weird - it will offer to convert files for you, for example.
Unfortunately, MacOS X doesn't support MTP because, I suspect, Apple wants everyone using iDevices and their proprietary iTunes protocols which aren't compabtible with MTP.
Now, while it's dumb of Google not to support USB Mass Storage in Android, it's equally dumb of Apple not to support MTP in their OS.
Fortunately, there are addons you can get to fix this (as noted above).
Windows users (and I suspect, Linux ones as well) don't have a problem.
Click to expand...
Click to collapse
It's not across the board android, just the tablets. All my phones up to the note 2 would connect as mass storage even with exchange installed. Even the og note
I've just found an app called ES file explorer. Set up your Mac as a smb server and you can access your files via wifi. Much faster than blue tooth.
A video file transfer from my macbook to my note 10.1 took 4 hours, similar file via wifi took about 5 mins.
Still testing the app, but quite pleased so far.
esincho said:
It's not across the board android, just the tablets. All my phones up to the note 2 would connect as mass storage even with exchange installed. Even the og note
Click to expand...
Click to collapse
Kinda. I don't think my Galaxy Nexus phone shows up in MacOS either (it's been a while since I checked so I could be wrong).
To complicate matters, each vendor adds bits to the OS. For example, Asus Transformer Primes can read NTFS drives out of the box - but most Androids can't. They've added something to the kernel to add the capability.
AFAIK, the base Android doesn't support USB Mass Storage on the host port.
Did u try to mount the drives in recovery? I'm assuming your rooted
esincho said:
Did u try to mount the drives in recovery? I'm assuming your rooted
Click to expand...
Click to collapse
I'm NOT rooted, I'm actually running stock JB version on T-mo.
Sent from my SGH-T999 using xda premium

[Q] Nexus 7 as display for TV dongle possible?

Hello everyone,
I am attempting to set up a Tronsmart MK908II TV dongle as a portable sandbox and web development environment. For my first attempt I'm using the stock ROM and apps from the app store such as Bit Web Server and Terminal IDE. I've had a fair amount of success, though very tempted to install Pi****u (Ubuntu) for a more powerful environment.
One of my main objectives have a miniature HD monitor so I can have direct access to the device if necessary even when I'm on the go. Before I go out and buy a suitable device for this, I'm trying to get my Nexus 7 to act as the display, since I will always have it with me and it's the perfect size. I believe I may have all the necessary cables and converters to make something like this possible... I'm just a bit stuck at the moment on getting it all to work as I want and I suspect its a software/config/capabilities limitation more than a physical one. I have already attempted this a couple of different ways, including using a USB cable from the dongle and an OTG converter for my Nexus 7, but could not get the Android USB Serial Monitor Lite app to recognize input from the dongle.
Does anyone know of any tools or knowledge that might help me achieve this? I can probably find an app that will allow me to remote control my dongle from my Nexus, which is plan B, but it's far less desirable since there are some circumstances that a purely software solution might not work from the dongle end.
Thank you for your time!
Tennyson Hull

[Q] XBOX360 Controller on Nexus 4 via OTG?

Hi all, i have just installed the mod for OTG, it work great and i can mount any usb storage =) But now i want to use the original XBOX360 gamepade, the same i use for PC, on my nexus 4. If i plug it in the OTG cable the light in the middle of the gamepad start blinking but nothing happen, it doesn't work =( What i should do?
Is it a wired or wireless controller?
I believe goog added native support for the wired one around HC 3.1/3.2,
but they never added support for wireless ones.
He said its the wired one.
I have no idea if it works. But maybe you can find something in settings/language&input ?
I never got my 360 controllers to work even under Windows so I wouldn't expect too much, haha.
Sent from my Nexus 4 using XDA Free mobile app
Unless you're running win95, all you need are the drivers.
There's downloadable drivers for xp/vista/7, it's pre-included in 8/8.1.
It might be pre-included in 7, but it's been years since i used it.
Android does include the key mapping profiles for 360 controllers, there shouldnt be any additional settings options for it. But i've never had a wired controller to test it with.
It should automagically map it so that it follows the android default mapping for controllers.
TheManii said:
Unless you're running win95, all you need are the drivers.
There's downloadable drivers for xp/vista/7, it's pre-included in 8/8.1.
It might be pre-included in 7, but it's been years since i used it.
Android does include the key mapping profiles for 360 controllers, there shouldnt be any additional settings options for it. But i've never had a wired controller to test it with.
It should automagically map it so that it follows the android default mapping for controllers.
Click to expand...
Click to collapse
Nexus 4 does not support USB OTG without a kernel hack and external power for the device. Also, the drivers are preinstalled on windows 8, previous OSs need an installer
lopezk38 said:
Nexus 4 does not support USB OTG without a kernel hack and external power for the device.
Click to expand...
Click to collapse
OP already mentioned he had an otg enabled kernel and can connect other usb devices to his n4
TheManii said:
OP already mentioned he had an otg enabled kernel and can connect other usb devices to his n4
Click to expand...
Click to collapse
I dunno how I missed that. It should work then... The controller might need its own power though
Yea I know apparently they are supposed to work under windows. Never did for me though (xp, 7) no matter which drivers and methods I used.
Sent from my Nexus 4 using XDA Free mobile app

Categories

Resources