Hej,
my phone is powered by Android 10. As you probably know, to get ADB over Wifi working on devices running Android 10 you have to connect it to a computer via usb cable.
This is not very comfortable nor a practical way to go.
So i prepared a Pi Zero 2W in a way that it runs 'adb tcpip 5555' when it recognises that the device id of my phone is connected. but there is this problem that i need 2 cables right now to achive what i want.
1. If I connect the phone to my pi (any port, normal usb cable, no further powersource), the pi start up just fine but the phone isn't available in the list of the usb host controller
2. If I power up the pi with external power and connect a second usb cable with otg adapter afterwards to the phone the pi recongize the phone and begins to start adb.
3. If I try to power the pi with only the otg adapter cable with the phone, the pi doesnt get alive. There seems no current.
My Question is:
Is it possible to connect the pi with only one cable or maybe a splitter cable to the phone so the pi can draw power from the phone and also see the phjone as regular usb device that can be operated on ?
regards
rob
Related
I have a custom USB peripheral that I use to communicate through USB OTG of the tablet. The device is wired in such a way, that I don't use a Y-cable. In the USB line, I have wired it so that the device can either be powered by the tablet, or it can be powered by an external power supply.
Scenario A:
---------------
When the USB peripheral device is self-powered, it directs power to itself and sends the power to the tablet as well. The tablet is charging while hosting the peripheral device. The USB connection is still intact.
When the power is pulled, the USB peripheral device shuts off completely. What should happen is when the power is pulled, the tablet should detect this and start supplying power to the USB peripheral. This doesn't happen for some reason, until the tablet is rebooted. When the tablet reboots, it detects that there is a USB device plugged in, and starts supplying power.
Scenario B:
--------------
When the USB peripheral is bus-powered, (meaning the tablet is currently supplying power to peripheral device and is currently hosting it), plugging in the power to the peripheral SHOULD start charging the tablet. This doesn't happen. Instead, the tablet continues to discharge.
So basically, I would like the tablet to supply power to the USB device when it detects that the power is gone. Alternatively, when the tablet detects power coming into its port, it should start charging.
Because I custom made the USB peripheral device, I am able to manually force the host to re-enumerate the device by pulling down the 1.5K pullup (hopefully you know which one I am talking about). Do you think this will work? In my application, I wouldn't have access to the OTG adapter and therefore I wouldn't be able to pull it out from the tablet. [That's what he said...]
How would I come to realize in my app that the power is lost and I need to re-initialize a new handle for the USB stream? Suppose I am able to do this, re-initializing the USB port will enable the tablet to start charging again?
Thanks.
How do I connect my Android TV stick to my laptop? It has no reset or power on button. Just a microsd slot and two USB ports: a regular one and a mini usb one.
Hi can you tell us a little more about your device what make brand ect ect also some photos would really help
yes model number would help a lot.
usually it is going to be connected via the regular USB connector to the PC. Then you should see the internal and/or external SD cards as part of your computers resources.
Power on and off is by plugging in the power source, which sounds like it is micro-usb. Then remove to power off.
additional tips...
Some additional tips; I hope they can help...
In the OS settings, under "Device", subheading "USB", make certain that "connect to PC" is checked.
Also, if you use a microUSB-to-USB cable to connect the dongle to your PC, make certain you use a cable that you know has all four wires internally connected.
- I was going nuts one time, trying to figure out why I could not get the stick PC to connect over USB, and it turned out I was using a cheap microUSB-to-USB cable that was intended for power ONLY. (it had only the two power wires in the cable, and not the two data wires). Swapping the cable out solved that dilemma.
Cheers!
When i connect the iwork the PC with the cable Type C it only charges
When I connect with USB 2.0 nothing happens ...
What I have to do to be able to transfer files between the tablet and the PC?
Thank you
PC Trick?
filipe_m said:
When i connect the iwork the PC with the cable Type C it only charges
When I connect with USB 2.0 nothing happens ...
What I have to do to be able to transfer files between the tablet and the PC?
Thank you
Click to expand...
Click to collapse
Greetings!
I had this issue as well, keeping track of it via Device Manager on the PC. Sometimes, it says it's the Model #, other times (depending on if you're recovering, adb debugging) it will say is "ADB Interface". I'm in need of recovery and refresh for mine, which is how I figured this part out. It's not much, but open your Device Manager on your PC before plugging it in via the 2nd USB2.0 down on the tablet. Watch it. If on the Windows side, it should pick it up as a media device or the device model number. On the Android side, if USB Debugging is on (which mine already is, thanks to the last person who had it -- I bought it from Amazon.), the charging should show up on-screen, and the Device Manager (USB Device, last one down) should see it.
I hope this little bit helped.
-- Lady Adellandra
I managed to set a nicely working Android-x86 on my laptop,
I was initially hoping to use adb with it just as I am doing with real phones, via USB. So I plugged in a dedicated USB male-to-male cable and... nothing happened. Turns out Android-x86 doesn't support connection via USB cable.
Is there an idea?
Verizon Pixel 4a running Android 11
I have a powered hub that uses a 5V 3.6 power adapter. There are three devices connected to the hub via USB A connectors - midi keyboard, audio interface and midi controller. If the hub is connected to power and I plug the OTG cable in the Pixel 4a goes into charging mode and the devices connected don't communicate via USB. If I disconnect the hub's power adapter and then plug in the OTG cable the devices communicate. The draw at the point with the screen on according to Ampere is 550mah. If I then plug in the power adapter it drops to about 180mah with the screen set to lower brightness.
I have two questions regarding this setup:
1. Is there any way to have USB communication and charge the phone at the same time?
2. Is there a way to programmatically control whether the phone is charging or communicating over OTG using an app or Tasker?
Thanks,