Hello, I am new to developing with Android and would like some insight regarding the Dock Modes and how to control USB Audio (Line Out over the D+/D- lines).
I have figured out the resistor settings to go into the 2-3 dock modes (Dock Lite, Car Dock and USB Audio), but I cannot figure out how to use USB Audio for all my dock applications.
What I would like to do is determine what part of the kernel decides which dock mode to enter and which application to run. Preferably, I would like to tap into the sensing circuit for the ID pin of the micro-usb connector and then shift audio to the USB lines.
I suppose writing my own dock application may solve this problem and provide an easier approach, unfortunately, I'm not sure where to get started.
Related
Does anyone know of a cable to do both charge and output audio to 3.5mm (AUX) using just a single USB connection? Trying to regain the ease of use of the dock connector on my old iPhone.
I found a Motorola cable that appears to be the right thing, but likely wouldn't be compatible with the Nexus 4:
Example: http://www.verizonwireless.com/b2c/...artItem&accessoryId=50288&cartIndexLocation=0
Closeup: http://www.motorola.com/us/consumer...e,en_US,pd.html?cgid=mobile-phone-accessories
So the Nexus 4 doesn't have USB OTG support. That sucks. I'm fairly certain the answer on the following question will be "no", but I've still got hope.
With SlimPort, you can connect your Nexus 4 to a HDMI monitor, similar to MHL. It also charges your device. In my amazing Dell ST2220T touch monitor (well, the touch isn't so amazing, but the screen quality is), there are four USB ports. When I connect my Nexus 4 to my monitor with SlimPort, would I be able to plug in a keyboard and mouse in the USB ports on my monitor?
If not, I could use bluetooth (if you can connect multiple devices at least, both mouse and keyboard) or use the touch functionality on my monitor, but I'm not sure that works because it's a seperate cable.
It would be really cool to use the N4 as a sort of mini computer. Like Ubuntu had in mind. I can connect it to my speakers, to my monitor, I'm only hoping that I won't have to buy bluetooth accessoires. I prefer to use my wired accessoires, or if that isn't possible the touch functionality of my monitor, but I'm fairly both won't be possible.
the usb on your monitor would have a upstream connector that goes into your pc, so it won't work with phone,
you have to use bluetooth keyboard and mouse
republicano said:
the usb on your monitor would have a upstream connector that goes into your pc, so it won't work with phone,
you have to use bluetooth keyboard and mouse
Click to expand...
Click to collapse
So even if the N4 had USB Host support, I still wouldn't be able to use a wired keyboard and mouse together with the SlimPort, right? I doubt there's some adapter that can do both.
The slimport controller acts as a switch, it either routes usb or displayport signals though the data pins, the usb lanes are not connected while it's in use.
While displayport does contain aux pins for handling additional stuff such as usb (hypothetically?), those pins do not exist in our setup.
Hello guys, I'm trying to interface android tab with peripherals. Problem is, it is having only one micro USB port which is used for charging and otg/host, only one function is possible at a time .But I need to charge the tab and simultaneously transfer data to peripherals, say for example I need to use external mouse and charge the tab at same time.
So, is there any way to do it?
I know usb has 4 pins 5v,d+,d-,gnd. I thought to wire charging input power to tab pin 5v and gnd and pin D+,D-of tab to mouse D+, D- and giving external power supply to 5v and gnd pin of mouse.
Is this a right method? To charge and transfer the data at the same time?
Kindly help me. Suggest a better way to do it.
(mini & micro) USB connectors have 5 pins: Vbus, D-, D+, Id, Gnd.
For OTG, the Id pin is connected to Gnd.
It's like the old adage, "You can lead a horse to water, but you can't make him drink."
You can connect a peripheral to an OTG host and have it work fine.
You can then connect an external power supply across the Vbus and Gnd.
The problem is, how does your host device know that it can "drink"?
There are basically two ways.
If the host detects power on its input before it switches into OTG host mode it may continue to charge.
If the host is in OTG host mode, device-specific commands to the charging circuits may convince it to charge.
There may also be non-standard Id resistor values for signalling host & charge for some devices.
I think your mileage would vary very much depending on what devices your using. AOS was not meant to deal with people hacking on the USB port, and probably the code to implement those features depend on your HW/FW.
If its a Samsung, you can play with some resistor values like these:
http://forum.xda-developers.com/showpost.php?p=25532839&postcount=2
I think the USB "CarKit" specifications should allow you both to charge and "connect" in some way.
A more easy solution would be to use a BlueTooth mouse and keep charging as usual.
I have a Nexus 7 (2012) that I want to do a dash install with. I would like to retain my head unit (already relocated) for audio, and I have a few questions.
I mainly want the following features:
-USB Tether
-Bluetooth OBD
-Airstream (or otherwise) phone calls from iPhone through Nexus
-WIFI backup camera
-Bluetooth keyboard?
From what I've been reading it appears Timur's ROM is the way to start. It looks like with an OTG cable and a usb hub I can easily do usb tether.
I have a bluetooth keyboard that has its own USB dongle, I'm wondering if with that dongle I can be connected to the keyboard and the obd transmitter simultaneously
I saw an app that was available years ago to support airstream, but it seems to have disappeared. Does anyone know a way I can have the audio/mic go through my nexus for phone calls while driving? (Right now I use Bluetooth through my head unit)
I found the following parts, is there anything I need to avoid? Or anything I'm missing?
Tendak (Pack of 2) Micro USB 2.0 On-The-Go (OTG) Cord Cable Adapter with USB Power for Cell Phone Tablets
ORICO MPU-5S Auto Universal converter car inverter 12V 5 port smart charger for iphone 5 5S Car Charger Adapter By AFUNTA
Turtle Beach Audio Advantage Micro II USB Analog & Digital Audio Adapter
I'm still trying to do more research on backup cameras, and the possibility of a dash camera. If anyone has any input on any of this I would greatly appreciate it! Thanks in advance and I look forward to being a more active member of the community!
Hi All,
I have an issue with my Galaxy S4 (CM12.1) and the Leicke Clever Dock multimedia and otg dock I'm using. If I operate the dock by the instructions (plug in usb peripherals then plug in HDMI then plug in micro usb power before plugging the phone in) it works flawlessly. If I then power off the dock leaving the phone on (i use macrodroid to set it into a low power mode) and then power up again it starts charging but wont transfer the screen to hdmi unless I pull out the phone and plug it back in.
I assume that the issue is the trigger for MHL but I cant understand whether it is something in the phone that isnt putting the usb port into mhl mode or if its the dock not doing something.
A few options:
1 - Find a new dock that enables this (im struggling to work out whether any of them can, even the official samsung one)
2 - Get the phone to enable MHL when charging (i have searched high and low and cant find anything that might be able to help
3 - Get the phone to disable and then enable the usb port (dont know if this will even solve the problem)
4 - Other (suggestions appreciated)
Im also investigating screen casting and will see if there is a route there but I will also need the OTG capability.
Cheers
Findlay