[cm11] Charging while on USB Host - Motorola Photon Q 4G LTE

Is there a similar interface to http://electronics.stackexchange.com/a/46918 to force charging while the device acts as a USB host?
Does anyone know which resistor value is required to otherwise enable charging?

Fr4gg0r said:
Is there a similar interface to http://electronics.stackexchange.com/a/46918 to force charging while the device acts as a USB host?
Does anyone know which resistor value is required to otherwise enable charging?
Click to expand...
Click to collapse
It should certainly work, as the phone should be able to act in OTG mode while being charged at the same time, when placed in Motorola lapdock.
There are (at least) some 100k and 200k (between pin 4 and 5, I assume) tests present in kernel (emu detection) that switch the behaviour, but I didn't need to look into it too closely so far. You'll have to study the source and experiment...

@Fr4gg0r
I have recently bought this USB OTG adaptor: http://www.ebay.com/itm/New-Host-OTG-Power-Cable-Micro-USB-Male-to-USB-Female-for-Galaxy-Note2-S3-S4-/191145599519?ssPageName=ADME:LCE:3160
It's the first OTG adaptor fully working for me. All my USB Flash drives are working without problem. It's also charging my Photon Q while using USB host.

Related

Usb-host

Sorry 4 the prev thread in wrong section .. then .. One S ( stock rom or another custom rom - with or without Sense ) supporta the usb-host mode ?
I am reasonably sure that out of the box, on stock ROM it does not support the ability to act as an USB host. Additionally, the microUSB on the phone is an USB slave socket, so it would need an adapter to connect a USB slave device to it anyways. (At least I have not yet seen a native USB-Host device with a microUSB socket.)
I am pretty certain it can be hacked into a custom ROM or application, however there are limitations to this. Commonly a device that is designed as USB slave (like the One S) will not be able to power devices through the USB port as regular USB hosts have to.
So IMO, in order to get it to work as an USB host you would need an adapter to connect the devices properly, a modified firmware or specialized app AND a way to externally power the USB slave you want to connect to the One S acting as USB host. The external power might a portable USB charger battery (like the Gumpack) or an Y-cable which is connected to a "real" USB-Host device just for the power (or a car/wall USB charger).
So, theoretically it would be possible, but not very practical. To the best of my knowledge it has not been done in the past because there was no need to. This however might actually change with the current trend towards non-expandable memory on newer phones... if demand rises I bet manufacturers would come up with solutions. Think small USB storage sticks with regular USB plug on one side for use on Notebook/Desktop and a microUSB plug on the other which contain a tiny battery (think Bluetooth headset size) to power the stick while attached to the phone and are charged while connected to a real USB Host port which is designed to deliver juice.
Further reading: http://en.wikipedia.org/wiki/Universal_Serial_Bus#Connector_types

[MTK6582] [KitKat 4.4.2] USB OTG no Vout on usb

Hi,
Have tried to enable USB OTG on my smartphone (a chinese MTK6582, branded Overmax Vertis 4011).
When I attach an USB OTG cable (alone or with any usb device), the only reaction of the smartphone is raise in sound volume (all the way up to 100%).
So I checked if the device supports OTG:
-USB OTG Helper shows that: root access OK, storage module Live, NTFS read-write supported (no module files (.ko) in the directory, so I assume they are built-in the kernel),
-USB Host Check showed: "handheld_core_hardware.xml" OK, but "android.hardware.usb.host.xml" not writable. So I changed the permissions, and both are OK now.
Attached an USB OTG again (in fact, just a plain plug), and there was no voltage, no matter if I shorted pins 4 and 5, or not. Still, shorting 4 and 5 has a "raise in sound volume" effect.
I plan to try an USB mass storage (pendrive), powered externally, and now questions:
-shall I isolate Vcc and ground from smartphone (powering only the pendrive, and connecting only the 2 and 3 pins of pendrive and smartphone)?
-shall I short the 4 and 5 pins - supposedly putting the USB in OTG mode? my doubt is whether it's necessary, if I don't draw any current from the USB port. Moreover, I feel a bit uneasy about the "raise in sound volume" effect,
-any other suggestions?
I know it's rather about hardware than software, but perhaps somebody here has enough knowledge/experience to help me?
Cheers
Janusz
Any advance man?

How to get non-storage USB peripherals to work?

I got an Anker OTG hub. It works completely if I connect it to my laptop, however, if I try connecting it to my phone, my USB mouse+keyboard combo (wireless with a receiver) doesn't work. It works with other devices, including my laptop's USB C port, and my old phone's USB C port.
I did turn OTG on prior to connecting anything (I'd love (root) to know to keep it on at all times).
I already ensured they work on other computers through that OTG adaptor, and that a USB storage stick works on this phone through it. In addition to that, HDMI works too (the adaptor also has an HDMI port), and the USB C passthrough passes power successfully, as well. No warp charging, but that is to be expected and that's alright.
I have TWRP and everything. Is there a kernel mod I need? I'd be happy to do whatever's needed.
Maybe OnePlus needs some updates
Even i have latency issus with my midi keyboard
But not with op5t

Connecting Pixel 3a to PC for file transfer.

I don't own any USB-C devices or cables at this time.
I am planning to buy Pixel 3a soon and would like to understand whether it comes with everything I need to connect it to my PC that is 6 years old and equipped with USB-3 Standard A connectors on motherboard. The objective is to transfer files in both directions.
From what I understand 3a comes with USB-C to USB-A adapter in the box. Does it mean I don't need anything extra to connect to PC to transfer files? That is it seems I would plug this adapter to motherboard, then USB-C cable to the adapter, then another end of USB-C cable to the phone. Is this correct?
And if I wanted one-cable solution then this is what I would want: https://www.amazon.com/dp/B01E9W8KY...colid=DAYIUPLW7ZM8&psc=1&ref_=lv_ov_lig_dp_it, right?
JoeSchmoe007 said:
I don't own any USB-C devices or cables at this time.
I am planning to buy Pixel 3a soon and would like to understand whether it comes with everything I need to connect it to my PC that is 6 years old and equipped with USB-3 Standard A connectors on motherboard. The objective is to transfer files in both directions.
From what I understand 3a comes with USB-C to USB-A adapter in the box. Does it mean I don't need anything extra to connect to PC to transfer files? That is it seems I would plug this adapter to motherboard, then USB-C cable to the adapter, then another end of USB-C cable to the phone. Is this correct?
And if I wanted one-cable solution then this is what I would want: https://www.amazon.com/dp/B01E9W8KY...colid=DAYIUPLW7ZM8&psc=1&ref_=lv_ov_lig_dp_it, right?
Click to expand...
Click to collapse
You would need to get a cable like the one in your link to connect to PC.
The adapter it comes with allows you to connect a USB thumb drive to the phone.
kc6wke said:
You would need to get a cable like the one in your link to connect to PC.
The adapter it comes with allows you to connect a USB thumb drive to the phone.
Click to expand...
Click to collapse
Got it, thanks.
kc6wke said:
You would need to get a cable like the one in your link to connect to PC.
The adapter it comes with allows you to connect a USB thumb drive to the phone.
Click to expand...
Click to collapse
I'm pretty sure you could also use it to connect a male to male USB A cable to connect a phone to a computer.
But yea, a USB-A to USB-C cable is the easier option.
Sent from my Google Pixel 3a XL using XDA Labs
If you need to plug it in to your computer yes, you need an additional cable. But for data transfer only just use ftp, no cable need and probably faster
Artim_96 said:
If you need to plug it in to your computer yes, you need an additional cable. But for data transfer only just use ftp, no cable need and probably faster
Click to expand...
Click to collapse
I find adb is far faster for data transfer when it wants to work tbh.
Sent from my Google Pixel 3a XL using XDA Labs
I just got a 3a and can't get the phone to connect to my PC properly for file transfer or adb use despite the phone showing properly on device manager and having had it work fine with an S9, G7 power and even a previous 3a. I'm lost.
carnivalrejectq said:
I just got a 3a and can't get the phone to connect to my PC properly for file transfer or adb use despite the phone showing properly on device manager and having had it work fine with an S9, G7 power and even a previous 3a. I'm lost.
Click to expand...
Click to collapse
I don't have the 3a but I saw in one of the videos there is a setting in the phone that defines what to do when phone is connected to a computer. One is "Charge Only", another something like "File Transfer" (and I think there are others). Could it be that you have it set it to "Charge Only"?
carnivalrejectq said:
I just got a 3a and can't get the phone to connect to my PC properly for file transfer or adb use despite the phone showing properly on device manager and having had it work fine with an S9, G7 power and even a previous 3a. I'm lost.
Click to expand...
Click to collapse
It's likely one of three things.....
1) You haven't installed the latest ADB drivers (although this is unlikely if you had it working with this computer and another Pixel 3a).
2) As already noted, by default you have to manually change the connection type to "Data Transfer" anytime you plug your phone into a computer. When you plug the phone into the computer, you should see a new "Android System" notification on your phone. Open that notification and change the connection type from "Charge Only" to "Data Transfer".
3) To use ADB, you need to make sure you have turned on Developer Settings and turned on "USB Debugging" in the developer settings.
If all of these things are correct, then I would "Revoke USB debugging authorizations" in the developer settings and then plug the phone back into the computer. You will see a new authorization popup on the phone which you need to accept.
Skittles9823 said:
I'm pretty sure you could also use it to connect a male to male USB A cable to connect a phone to a computer.
Click to expand...
Click to collapse
Not really. There's no such thing as a Type-A to Type-A USB cable in USB 2.0. You can probably find a cable with USB 2.0 connectors on both ends, but they violate the spec, and can't properly be called "USB." (there's lots of crap like that around) In USB 3.1, there's a very specialized one "defined for operating system debugging and other host-to-host connection applications."
The adapter included with Pixels is a USB "On-The-Go" one, it tells the phone act as a USB host (so it can connect to a thumb drive, keyboard, USB headset, etc.). Per the spec "This cable assembly is defined for direct connect to a USB device (e.g., a thumb drive). System functionality of using this adaptor assembly together with another USB cable assembly is not guaranteed." Having said that, Google does provide the adapter to allow the Pixel to connect to another Android phone using its A to micro-B "charging" cable in order to copy data when changing phones.
To have the phone appear as a drive on a PC, the PC is the host. You need a USB Type-A to Type-C cable to connect to the Pixel.
mike.s said:
Not really. There's no such thing as a Type-A to Type-A USB cable in USB 2.0. You can probably find a cable with USB 2.0 connectors on both ends, but they violate the spec, and can't properly be called "USB." (there's lots of crap like that around) In USB 3.1, there's a very specialized one "defined for operating system debugging and other host-to-host connection applications."
The adapter included with Pixels is a USB "On-The-Go" one, it tells the phone act as a USB host (so it can connect to a thumb drive, keyboard, USB headset, etc.). Per the spec "This cable assembly is defined for direct connect to a USB device (e.g., a thumb drive). System functionality of using this adaptor assembly together with another USB cable assembly is not guaranteed." Having said that, Google does provide the adapter to allow the Pixel to connect to another Android phone using its A to micro-B "charging" cable in order to copy data when changing phones.
To have the phone appear as a drive on a PC, the PC is the host. You need a USB Type-A to Type-C cable to connect to the Pixel.
Click to expand...
Click to collapse
Thanks for the info.
Sent from my Google Pixel 3a XL using XDA Labs
sic0048 said:
It's likely one of three things.....
1) You haven't installed the latest ADB drivers (although this is unlikely if you had it working with this computer and another Pixel 3a).
2) As already noted, by default you have to manually change the connection type to "Data Transfer" anytime you plug your phone into a computer. When you plug the phone into the computer, you should see a new "Android System" notification on your phone. Open that notification and change the connection type from "Charge Only" to "Data Transfer".
3) To use ADB, you need to make sure you have turned on Developer Settings and turned on "USB Debugging" in the developer settings.
If all of these things are correct, then I would "Revoke USB debugging authorizations" in the developer settings and then plug the phone back into the computer. You will see a new authorization popup on the phone which you need to accept.
Click to expand...
Click to collapse
Turns out there was a heavy Windows update pending upon restart. The thing bugs me about them constantly so I usually ignore them. I restarted and let it do it's thing for 4 hours (damn Windows lol) and after it restarted the phone for file transfer, as well as adb started working correctly.

Trouble using my Samsung Galaxy S9 with a USB-C Hub

My Samsung S9 has had some screen damage and the touchscreen mostly does not work.
In order to navigate it I must use a mouse that I connect to the phone using the supplied USB C- A adapter.
I wish to get my phone repaired but I wish to backup all the data upon it first.
If I plug my phone directly into my PC, it asks for my permission to allow the PC access. However, since the touchscreen does not work properly, I cannot press the button to accept.
I could not plug both the mouse and PC simultaneously.
So I bought a USB-C hub. (Actually I've bought several, none of them have worked, this latest one is the most expensive and I had hoped it would work - (https://www.amazon.co.uk/gp/product/B07ZVKTP53/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1).
It has a separate port for USB-C Power Delivery and a separate one for data.
I plug the attached USB-C cable from the hub into my phone, and then I plug my mouse into a regular USB port, my charger into the USB-C PD port, and another USB-C to A cable from the USB-C Data port on the hub into a USB port at the back of my (new) PC.
Now my computer does not recognise my phone at all, nor does my phone seem to acknowledge it is connected to a PC. The mouse still works upon the phone and it charges fine through the PD port. If I plug the phone straight into the PC, it is recognised, so I do not think the problem lies there. The hub seems to block communication between the phone and PC.
I would like to backup my data and get my phone repaired. If anyone can solve the USB-C Hub issue or propose another solution to my problem then I would be grateful.
A mouse and keyboard will take priority over anything else in a hub.
I'm betting the hub's power is 2000mA or 2.0 Amps.
What does your fone charger state its power is? Add the mouse, keyboard, and fone's milliamps together. If it's more than the hub's power pack supplies....
In this situation, I would use Vysor, this will defo solve your problem, it allows you work with your fone on your pc/lappy by providing a lovely window that is a duplicate of your fone screen, you'll be glad you found this!!!
I can provide an old cracked version I used for my emergencies, if there is no objections?
Then you'll only need the mouse to use as your finger
Google Vysor. case closed lol.
Pachacouti said:
A mouse and keyboard will take priority over anything else in a hub.
I'm betting the hub's power is 2000mA or 2.0 Amps.
What does your fone charger state its power is? Add the mouse, keyboard, and fone's milliamps together. If it's more than the hub's power pack supplies....
In this situation, I would use Vysor, this will defo solve your problem, it allows you work with your fone on your pc/lappy by providing a lovely window that is a duplicate of your fone screen, you'll be glad you found this!!!
I can provide an old cracked version I used for my emergencies, if there is no objections?
Then you'll only need the mouse to use as your finger
Google Vysor. case closed lol.
Click to expand...
Click to collapse
Hi
Thanks for your reply
It's not a battery hub, but just a USB-C hub (check the link). Power comes from the PD USB-C port which is hooked up to my phone's original USB-C charger.
It also fails to work even when a mouse isn't attached to it.
I will look into Vysor. Also thought about the possibility of using a standalone bluetooth mouse which would free up the cable.
Your fone will suck the life out of a poorly powered hub, by using vysor, your pc/lappy mouse will work your fone using vysor, best app I've ever seen for working with broken screens, just plug phone direct into lappy, vysor works if you've no screen at all!!!!!
Use
Vysor
www.vysor.io
...Njoi
Dont pay for mouses/hubs in this scenario. Just pay for a top quality tool. I would place this as my number one android tool for ANY fone.
Again, if all your doing is data recovery (saving your stuff) I have a patch for an earlier version to unlock full version I swear by, you could use this once if only to try before you buy
The hub supports 85W fast charging directly from mains, which is what it is getting.
How do I enable USB debugging specifically for the app?
I have enabled it in developer options but when I connect my phone via USB to my computer as per the Vysor app, another window pops up on my phone asking to allow USB debugging. Ask there is no mouse attached to the phone at this point, I am unable to allow it.

Categories

Resources