[Discussion] Nexus 7 OTG cable and USB Hub - Nexus 7 (2013) General

I'm installing a 2013 Nexus 7 into my car. I plan to load Timur's ROM on it. I have an OTG cable. I've also purchase a USB Y cable and a USB hub which i'm waiting to be delivered. Will a USB Y cable separate power and data? meaning will one USB port have power and the other data? seeing as I want to connect the data to a USB hub, the hub itself will need 5V power too.
I've sketched up a little idea which is attached below. Can anyone tell me if such a thing will work?
The idea is to have +12v ignition wire and ground from the car going to a 12v > 5v converter. The output of that converter will then provide charging power to the Nexus via the + and ground wires on the OTG cable. This leaves the + and - data cables untouched. Then the idea is to take the + and - data cables directly to the USB hub. And seeing as the USB hub also requires 5V power through its main feed USB, i can provide the same 5V power thats coming from the 12v > 5v converter.
This is just an idea, not sure if it will actually work. Other thing I can do i just stick with the Y usb cable.
Any suggestions and comments would be greatly appreciated.
Thanks

Using active USB hub with +5V You do not need Y-cable, just standard OTG cable.
I'm using this config with ElementalX kernel with N7 as external navigator/videoreg.
I'd suggest to browse through "InDashboard install" threads in "N7 2013 -> General" board for other tips and tricks.

Related

is simultaneous charge & USB host mode possible?

Has anybody tried this: 1. Setup a powered USB hub plugged into the Micro OTG cable 2. hack the cable from right after the OTG cable to where it plugs into the hub, so that the voltage pins are exposed 3. solder in the voltage pins to a usb connector so you can plug in a normal charger [5V 2A] 4. check to see if you can use the USB hub and charge at the same time
I currently have a Asus transformer TF101 and the primary use is watching clips off a 500GB usb HDD. I really, really want to get a N7 and sell my TF101, but if charging & simultaneous host mode is not possible, I would be slightly hesitant to buy it, because I would be eating up the battery much faster than I would like.

What's the differences between OTG cable and the one that comes with the Nexus 7?

Sent from my Nexus 7 using xda premium
An OTG cable is not for charging/connecting your device to a computer. Instead of usb micro to a male usb, it's micro to female usb, so you can plug in peripherals and flash drives etc. to your device.
Sent from my SGH-I777 using xda premium
When a normal USB is plugged in, the Nexus is in "slave" mode. Receives instructions.
When an OTG cable is plugged it allows it to be in "master" mode. Can give instructions.
Sent from my Nexus 7
Stop... MUFFIN TIME!!!
There are basically 3 types of cables you can plug into the USB port of a Nexus 7:
1. A normal USB-to-microUSB cable, plugged into a computer or a USB charger. Either way it charges, and if it is hooked to a computer the N7 is in Client Mode and you can transfer files as well.
2. High-current chargers (like the one that comes with the Nexus 7). The data lines on these are shorted together; this tells the Nexus to accept higher current on the power lines for faster charging.
3. OTG cables have the normal 4 wires on the USB end - two for power, two for data - but on the microUSB end there is a fifth connection called USBID. Normally (as when using a normal 4-wire USB cable) the USBID pin is floating, i.e. not hooked to anything. On an OTG cable, the USBID pin is connected to the ground wire. This tells the N7 that an OTG device is plugged in, which causes it to do two things: it reverses the current on the power lines - because it needs to power whatever you have plugged into the OTG cable, like a USB card reader or keyboard - and it switches the USB interface from Client Mode (which it uses when it is plugged into a computer, because in that instance the N7 is a peripheral device) to Host Mode (because in that instance the OTG device is the peripheral and the N7 is the 'computer').
There is one other option for charging: the pogo pins on the side. (The 4 pins are 5V, stereo left, stereo right, and ground.) Providing power to the pogo pins (as when it is put in a dock) tells the N7 to accept high current on the pogo pins. Momentarily connecting 5V to the right stereo channel tells the N7 that external speakers are connected and it starts driving audio out the two center pogo pins. When this is happening the charging takes place through the dock, the USB connector can be used with a data cable or an OTG device, but no charging takes place through USB when the dock is connected. (An OTG device is still powered by the N7, but current never goes the other way.)
Mechanio said:
There are basically 3 types of cables you can plug into the USB port of a Nexus 7:
1. A normal USB-to-microUSB cable, plugged into a computer or a USB charger. Either way it charges, and if it is hooked to a computer the N7 is in Client Mode and you can transfer files as well.
2. High-current chargers (like the one that comes with the Nexus 7). The data lines on these are shorted together; this tells the Nexus to accept higher current on the power lines for faster charging.
3. OTG cables have the normal 4 wires on the USB end - two for power, two for data - but on the microUSB end there is a fifth connection called USBID. Normally (as when using a normal 4-wire USB cable) the USBID pin is floating, i.e. not hooked to anything. On an OTG cable, the USBID pin is connected to the ground wire. This tells the N7 that an OTG device is plugged in, which causes it to do two things: it reverses the current on the power lines - because it needs to power whatever you have plugged into the OTG cable, like a USB card reader or keyboard - and it switches the USB interface from Client Mode (which it uses when it is plugged into a computer, because in that instance the N7 is a peripheral device) to Host Mode (because in that instance the OTG device is the peripheral and the N7 is the 'computer').
There is one other option for charging: the pogo pins on the side. (The 4 pins are 5V, stereo left, stereo right, and ground.) Providing power to the pogo pins (as when it is put in a dock) tells the N7 to accept high current on the pogo pins. Momentarily connecting 5V to the right stereo channel tells the N7 that external speakers are connected and it starts driving audio out the two center pogo pins. When this is happening the charging takes place through the dock, the USB connector can be used with a data cable or an OTG device, but no charging takes place through USB when the dock is connected. (An OTG device is still powered by the N7, but current never goes the other way.)
Click to expand...
Click to collapse
Dont forget a "y cable", which can charge and preform host mode (otg) at the same time, only at a slower charging rate. This is providing you are using a kernel that supports this function. "Otg+host mode charging"
Sent from my Nexus 7 using xda premium

How to attach usb powered hub to android stick? Which port

I have an andrid. Stick mx2 imito and I have a powered USB hub but I can't configure how I am meant to to get it to read from the hub. I have 2 ports on the stick, one full sized usb and one mini usb .
And In terms of devices I have my keyboard I want to add
1 external usb hard drive
And if I can get it to work a USB wifi dongle
Huh!
Since there is only one full sized USB port, I would think that is the solution. That's how it runs on mine anyway. Connect all your devices to the powered hub. Should be straight forward
So I would need a usb cable male to make? To connect to the hub. Do they exist ? I will try find the cable .
i cantget it to work
so the large usb port. i need a cable from that to connect to the hub? usb port
but i dont have a usb port with the same end? male to male etc
Get a USB powered hib
wakkaday said:
i cantget it to work
so the large usb port. i need a cable from that to connect to the hub? usb port
but i dont have a usb port with the same end? male to male etc
Click to expand...
Click to collapse
The hub will come with one male USB to connect to the stick.
http://gadgets.softpedia.com/images/news/How-to-Charge-your-USB-Devices-Quick-and-Easy-4.jpg
Make sure to get a powered hub so that all the devices can be supported properly.
gsurath said:
The hub will come with one male USB to connect to the stick.
http://gadgets.softpedia.com/images/news/How-to-Charge-your-USB-Devices-Quick-and-Easy-4.jpg
Make sure to get a powered hub so that all the devices can be supported properly.
Click to expand...
Click to collapse
this was an old hub i had, i dont have that wire. its a mini usb to full usb type connection isn't it?
Plenty of such options available
Here is another on ebay. Just search for powered USB hub and choose one
http://www.ebay.com/itm/10-PORT-USB-2-0-EXTERNAL-HUB-W-POWER-ADAPTER-FOR-PC-MAC-WITH-cable-SILVER-/370772094009?pt=US_USB_Cables_Hubs_Adapters&hash=item5653bd2c39
gsurath said:
Here is another on ebay. Just search for powered USB hub and choose one
http://www.ebay.com/itm/10-PORT-USB-2-0-EXTERNAL-HUB-W-POWER-ADAPTER-FOR-PC-MAC-WITH-cable-SILVER-/370772094009?pt=US_USB_Cables_Hubs_Adapters&hash=item5653bd2c39
Click to expand...
Click to collapse
ok great, so the port next to the power socket, is the cable i need to attach to and from the imito android stick? so that will be the main one and any other usb devices can go on the hub.
m confused on where i need to connect from on the android stick. which has 1 full sized usb, 1 mini usb otg socket and 1 mini usb (power)
It should also be possible to modify a USB hub to back feed power to the HDMI stick.
You would then power the hub with a sufficiently large USB power supply to power both the stick and all of the USB devices. In most cases, a single 2.1 Amp USB "wall wart" would work to power everything, unless you are really running something outrageous.
My NX003 (Same as MX1) can be powered from either the dedicated USB power jack, or the MicroUSB (OTG) connector.
So to build something like this, here is what I would do:
1. Obtain a USB hub I was willing to modify (destroy, as far as any other use is concerned)
2. Disassemble it.
3. Remove the input (Host) cable or connector.
4. Attach a short cable with a MicroUSB plug. Connect all 4 wires correctly.
5. Find "The diode" - Buy "The diode" I mean the one that that allows USB power to flow from the host to the peripherals when used in non-powered mode, but prevents power from flowing upstream to the host when an external power supply is used. (see referenced link).
6. Remove this diode, and replace it with a wire, jumper, or solder bridge.
7. Ensure all power circuity in the hub can handle 2 amps. Add solder to traces, or add jumper wire if needed to beef up current capability.
8. Reassemble, and clearly mark so that this hub is never used with anything else.
If the HDMI stick were powered via a coaxial connection, but is still powered by 5 Volts, I'd add a lead and coaxial plug off of the +5 in the hub. you'll have 2 wires, but it will still work. (Watch polarity.)
I have done this successfully for a prior, similar project. Reference Here: (Scroll to section about power.)
http://linuxslate.com/N770DockingStation.html
So why don't I actually do this to power my NX003? I did it an easier way. I bought a Tronsmart Prometheus. It has 3 full USB ports built-in.
-
Linuxslate said:
It should also be possible to modify a USB hub to back feed power to the HDMI stick.
You would then power the hub with a sufficiently large USB power supply to power both the stick and all of the USB devices. In most cases, a single 2.1 Amp USB "wall wart" would work to power everything, unless you are really running something outrageous.
My NX003 (Same as MX1) can be powered from either the dedicated USB power jack, or the MicroUSB (OTG) connector.
So to build something like this, here is what I would do:
1. Obtain a USB hub I was willing to modify (destroy, as far as any other use is concerned)
2. Disassemble it.
3. Remove the input (Host) cable or connector.
4. Attach a short cable with a MicroUSB plug. Connect all 4 wires correctly.
5. Find "The diode" - Buy "The diode" I mean the one that that allows USB power to flow from the host to the peripherals when used in non-powered mode, but prevents power from flowing upstream to the host when an external power supply is used. (see referenced link).
6. Remove this diode, and replace it with a wire, jumper, or solder bridge.
7. Ensure all power circuity in the hub can handle 2 amps. Add solder to traces, or add jumper wire if needed to beef up current capability.
8. Reassemble, and clearly mark so that this hub is never used with anything else.
If the HDMI stick were powered via a coaxial connection, but is still powered by 5 Volts, I'd add a lead and coaxial plug off of the +5 in the hub. you'll have 2 wires, but it will still work. (Watch polarity.)
I have done this successfully for a prior, similar project. Reference Here: (Scroll to section about power.)
http://linuxslate.com/N770DockingStation.html
So why don't I actually do this to power my NX003? I did it an easier way. I bought a Tronsmart Prometheus. It has 3 full USB ports built-in.
-
Click to expand...
Click to collapse
Thank you for the informatiom, but its a bit too technical for what i want... but i appreciate you efforts in writing this.
my stick can also power via both usb ports (mini) i have connected the cable from the stick to the hub which has been powered to the mains and it works, but the problem i have is when i put another usb device in the hub, it doesnt detect it e.g. keyboard wireless and i don't think the device has enough power to run my usb 2.0 portable harddrive (not main powered) - how can i get this to work? i have tried connecting this directly to the stick, but it just makes a beep sound. im guessing its lack of power... and i was hoping a hub would help.
my hub is powered 3.5 or 4 watts i believe...
Strange
Wakkaday,
This is very strange. On my MK802III I connect the powered USB hub (4 ports) to the full USB port.
I connect my bluetooth keyboard, 1 TB HDD and USB ethernet to the hub.
I power my Android stick using the 4rth port in the USB hub.
If I want USB audio, I replace the Ethernet/HDD with a USB audio peripheral.
All my peripherals work right out of the box. The only thing I am considering now is to have a separate power supply to the Android stick so that I can use all 4 ports on my hub.
It seems your device is not supporting the peripherals? Are the working when you connect directly?
gsurath said:
Wakkaday,
This is very strange. On my MK802III I connect the powered USB hub (4 ports) to the full USB port.
I connect my bluetooth keyboard, 1 TB HDD and USB ethernet to the hub.
I power my Android stick using the 4rth port in the USB hub.
If I want USB audio, I replace the Ethernet/HDD with a USB audio peripheral.
All my peripherals work right out of the box. The only thing I am considering now is to have a separate power supply to the Android stick so that I can use all 4 ports on my hub.
It seems your device is not supporting the peripherals? Are the working when you connect directly?
Click to expand...
Click to collapse
I'm also trying to use a powered 4 port usb hub with my android stick, but it doesnot recognises the hub. Do i need to have any usb host drivers or change any setting to get it work? My stick is on Android ICS.. Thanks in advance

[Q] Nexus 7 car install general questions

Am beginning my project to install a 2012 N7, 32 gig, wifi only, in my 2006 Scion xB double DIN as a replacement for the stock head unit. I am keeping the stock speakers for now. I am adding an external amp.
I've done head unit swaps over the years so I know how to open up the dash, remove the existing unit, and how to wire up a regular head unit.
Here's question #1. I am going to use Timur's kernel (using USB ROM for Nexus 7) so that I can use a USB hub and the OTG cable. The OTG cable micro USB will plug into the N7 micro USB port, but the other end of the OTG cable has two plugs. One is a regular USB (female), which I will need to gender change so I can plug into my powered USB hub. The third plug is a micro USB female. Is that third plug needed to bring power or data back to the N7? And if so, what does it get plugged in to?
To power the hub I plan to use a buck converter connected to a dedicated 12v line. The converter will step the voltage down to 5v 3a to power the USB hub. The only thing coming off the hub will be the N7 and a USB 3.0 thumbdrive that will hold my music library.
The second q concerns heat. I'm in S Texas. Has anyone experimented with leaving the back of the N7 off and adding a heat sink to the battery, or adding some sort of insulation, or diverting AC air from the existing ductwork (for when the car and AC are on)? Just looking for ideas.
Thanks in advance for any and all help.
bob.lehardy said:
Am beginning my project to install a 2012 N7, 32 gig, wifi only, in my 2006 Scion xB double DIN as a replacement for the stock head unit. I am keeping the stock speakers for now. I am adding an external amp.
I've done head unit swaps over the years so I know how to open up the dash, remove the existing unit, and how to wire up a regular head unit.
Here's question #1. I am going to use Timur's kernel (using USB ROM for Nexus 7) so that I can use a USB hub and the OTG cable. The OTG cable micro USB will plug into the N7 micro USB port, but the other end of the OTG cable has two plugs. One is a regular USB (female), which I will need to gender change so I can plug into my powered USB hub. The third plug is a micro USB female. Is that third plug needed to bring power or data back to the N7? And if so, what does it get plugged in to?
To power the hub I plan to use a buck converter connected to a dedicated 12v line. The converter will step the voltage down to 5v 3a to power the USB hub. The only thing coming off the hub will be the N7 and a USB 3.0 thumbdrive that will hold my music library.
The second q concerns heat. I'm in S Texas. Has anyone experimented with leaving the back of the N7 off and adding a heat sink to the battery, or adding some sort of insulation, or diverting AC air from the existing ductwork (for when the car and AC are on)? Just looking for ideas.
Thanks in advance for any and all help.
Click to expand...
Click to collapse
Timurs kernel is old. Use kangaroo rom or any 4.4.2 rom and kangaroo or oxydo kernel in the kangaroo thread there is a power manager app that will allow the tablet to fast charge and turn on and off with ignition. If your worried about heat buy a 12 volt fan and power it up with 12 volt from car. The micro usb female is for power use the cable that came with the n7 Power it with a 2amp or more 5v power car charger(i bought a samsung branded) works great. You dont need a hub if your only gonna power a flash drive. Micro male to tablet, full size female to flash drive ,micro female to nexus charging cable to usb car charger plug.
The GPS WiFi Bluetooth and NFC antennas are all on the back cover so none of them will work without it. So that means no sat nav or internet. I wouldn't worry about cooling it the tablet is meant to function with the back on in a variety of conditions. If you want you could cut a hole in the back there is a copper sheet that is the Nexus's heat sync. Maybe hook up a CPU or graphics card heat sync out a desktop. Or even just stick it to the plastic back its bound to do something.
Sent from one of my 47 iPads running android C3P0

OTG Cable Mod to block power output to peripherals

First, my apologies if this isn't the proper place for this thread. Please point me in the right direction.
I have an in-dash Nexus 7 solution using an OTG cable and a powered USB hub. My issue is the damn USB devices connected to the hub suck the life out of the N7 when power is turned off to the hub and OTG connected charger. I attempted to mitigate this by splicing a 1N4001 diode on the power side of the OTG cable but not luck. The N7 charges properly but the USB devices still show power when the power is turned off to the USB hub.
Any help would be greatly appreciated.

Categories

Resources