Otg + charging - Xiaomi Mi Pad 4 Questions & Answers

Does out tablet support otg and charging at the same time?

Tried by using hootoo ht-u001 type c adapter and a sd card, otg is disabled once the charger is plugged in.

SurfinSpirit said:
Tried by using hootoo ht-u001 type c adapter and a sd card, otg is disabled once the charger is plugged in.
Click to expand...
Click to collapse
Do you have a native firmware MIUI?
You can experiment, first connect the charging going to the hub, and then the periphery of the USB flash drive or keyboard and mouse..
and then vice versa, first the periphery and then the power to the hub
on my tablet with micro us it mattered... Can you try different variants

I guess you will need something like the one in the link below that supports USB Power Delivery.
https://www.aliexpress.com/item/USB...469.html?spm=a2g0s.9042311.0.0.3b144c4dDoroZN
It is mainly for Macbooks but it is compatible (according to the sellers) with most Smartphones and Tablets that use USB Type-C.
I just ordered one for a project so I'll know in several weeks (when it arrives from China) if it works with the Mi Pad 4.
Update: I've just checked the hub you used and it is also with USB Power Delivery... oh well let's see if I'll get lucky or...

anyone have success with this? i have a few adapters and hubs that work with everything else but not the pad 4.

Related

Touchpad USB OTG Compatibility List

Thanks to a recent video by reverendkjr on Youtube, we now have a confirmed USB OTG method for CM9.
http://www.youtube.com/watch?v=Nc7tlPwFQpg
This has lots of potential and since I did not see much talk about it here, I decided to create a thread with what you need to buy listed in reverendkjr's video and what works. I would recommend only buying from Amazon Fulfilled sellers as they are backed by Amazon's return policy. All 3 items only cost a little over $10.
OTG Cable:
http://www.amazon.com/gp/product/B005QX7KYU
USB Y Cable:
http://www.amazon.com/gp/product/B0041CFFBM
2AA Battery Powered Portable USB Power Supply:
http://www.amazon.com/gp/product/B003M9Z5F6
(Added September 7th)
OTG Cable With Female MicroUSB (Allows you to use any microUSB charger as the power supply)
http://www.ebay.com/itm/130740524313?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1438.l2649
OTG Cable With Male Full Size USB (Allows you to use any power supply with regular USB port)
http://www.ebay.com/itm/Micro-USB-H...i9100-S3-i9300-i9220-i9250-XOOM-/140825132367
You can use whatever source of USB power you want including a wall charger, but I bought the 2AA battery powered supply above and can confirm it works.
Compatibility List:
-Multiple USB devices will work if you use a USB hub. A non-powered one works fine for me since you will already have a separate power source.
-USB keyboards and mice work fine including all basic functions like scroll wheel on the mouse, num and caps lock on the keyboard.
-FAT32 formatted flash drives will mount by default under "/mnt/usbdisk".
(Added September 7th)
-If you want to mount NTFS drives or multiple flash drives, download Drive Mount. This software will mount drives under "/mnt/sda1", "/mnt/sdb1", etc. I can confirm it works for multiple drives and NTFS/FAT32. It was removed from Google Play so the apk has been posted. If anybody has had success with other NTFS mounting software please post your results.
(Added April 6th)
-I tried a Rosewill USB SATA/IDE externally powered hard drive reader and was able to mount a 400GB SATA 3.5" HDD using Drive Mount. Just to see what would happen I tried a SATA DVD drive but Android doesn't recognize it and probably doesn't even support the CD/DVD file system.
(Added April 7th)
-USB card readers will work, but I've had mixed results.
USB Device Info:
If you want to diagnose items and see some info about what the Touchpad is detecting, download USB Device Info free from Google Play. Everything shows up under the Linux tab. This shows some useful info about devices including current draw, device identification, etc. I tested it with a USB hub and a few flash drives and it successfully showed entries for the hub and the flash drives. It wont tell you if Android has drivers for the device, but merely IDs the device(s) confirming the connection if working.
(Added Dec 9th)
A plugged in USB OTG adapter will show up as "Qualcomm On-Chip EHCI Host Controller" under the Linux tab regardless of whether or not power is present. This is a good way to see if you have a working OTG adapter.
Flash Drive Unmounting Issues:
Flash drives are called an SD Card when mounted. There is no option to unmount a flash drive unless you use Drive Mount, so if you notice SD card removal error messages they are referring to your flash drive and not the Touchpad's internal memory partition that is mounted as /sdcard.
When a flash drive is removed or powered off without being unmounted, its common to get a "android.process.media" force close, just tap OK.
Charging:
You will not be able to charge via micro USB while using OTG even if your power source has enough current. You can charge via the Touchstone just fine. Knowing this, you can set up a really nice docking station by using the Touchstone as a stand/charger and then using the microUSB slot for peripherals like a USB keyboard and mouse connected to a hub with spare ports for flash drives, etc.
(Added September 7th)
Insufficient Available Bus Power Fix:
If you get this error, I haven't yet, some users have had success using this app posted on Rootzwiki.
I didn't feel like buying anything and already had some things laying around so I modified an Adafruit MintyBoost to accept a device via usb, add power, and continue on down the line...
Really all I did was solder a usb cable onto the female USB port on the MintyBoost, drill a hole on the other side of the tin and feed it out. The card reader conveniently fits inside of the mint tin so it's a pretty compact package.
The only down side I've noticed is that it also charges the TouchPad (the batteries will die quicker) and continues to send power to the card reader after the OTG cable has been unplugged from the TouchPad.
Excuse the crappy pic. I really don't feel like taking a better one.
I could never get the OTG cable to charge the Touchpad, I always thought when the Touchpad sensed OTG (grounding on pin 4) it refused to take power. You can disconnect the +5v Vcc to the Touchpad (red wire) on your OTG cable and OTG devices will still work.
spunker88 said:
I could never get the OTG cable to charge the Touchpad, I always thought when the Touchpad sensed OTG (grounding on pin 4) it refused to take power. You can disconnect the +5v Vcc to the Touchpad (red wire) on your OTG cable and OTG devices will still work.
Click to expand...
Click to collapse
I came to the same conclusion some days ago ,touch pad can't be charged using org cable,needs a regular micro USB cable and the barrel AC charger.I did many tests but having otg devices working and really charge at the same time its not possible,it seems like charging but its not.
Today I accidentally found this http://direct.sanwa.co.jp/ItemPage/400-GADR002W that by first look it could be awesome...
Edit:a mini review in english http://www.gadget.pdamu.com/2012/03...r-dock-station-for-android-smartphone-tablet/
says that it can be also powered be micro usb charger....
Bummer. Tried linking my phone evo3d, but no luck.
Sent from my PG86100 using XDA
wolfgr said:
Today I accidentally found this http://direct.sanwa.co.jp/ItemPage/400-GADR002W that by first look it could be awesome...
Edit:a mini review in english http://www.gadget.pdamu.com/2012/03...r-dock-station-for-android-smartphone-tablet/
says that it can be also powered be micro usb charger....
Click to expand...
Click to collapse
If its provides its own 5v power it would likely work, but I don't really see anywhere for an external power connection and it looks too small to house a battery.
spunker88 said:
You can disconnect the +5v Vcc to the Touchpad (red wire) on your OTG cable and OTG devices will still work.
Click to expand...
Click to collapse
For whatever reason, when I tried that the card reader wouldn't initialize. Once I connected the +5v from the OTG it'd light right up...
After it lit up I could disconnect the +5v and it'd stop the "charging" notification on the touchpad and keep working.
spunker88 said:
If its provides its own 5v power it would likely work, but I don't really see anywhere for an external power connection and it looks too small to house a battery.
Click to expand...
Click to collapse
it has the regular usb port to connect otg device plus a micro usb female to connect. our ac charger
wolfgr said:
it has the regular usb port to connect otg device plus a micro usb female to connect. our ac charger
Click to expand...
Click to collapse
Then it should work fine as the Touchpad uses a standard OTG pinout, it just doesn't provide power so if it has a way to provide power to devices than I see no reason why it wouldn't work.
quick question that i didn't see answered above :S can i use the otg cable adapter without another power source (like can touchpad power it?)? Saw it asked above but didn't see anyone saying that the power source is required :S
kind of want to plug a usb flash drive into touchpad so I can type documents when I'm on the go and switch to computer. don't want to carry another power source either :S
eyeb said:
quick question that i didn't see answered above :S can i use the otg cable adapter without another power source (like can touchpad power it?)? Saw it asked above but didn't see anyone saying that the power source is required :S
kind of want to plug a usb flash drive into touchpad so I can type documents when I'm on the go and switch to computer. don't want to carry another power source either :S
Click to expand...
Click to collapse
No, the Touchpad doesn't provide any power for OTG devices which is why you need to supply it power. The cheap USB charger I linked to in the original post will work fine for a portable power supply if you don't want to build something yourself.
And it also appears you can't just plug the other USB into the wall?
Sent from my PG86100 using XDA
can someone get a group buy going for these???
spunker88 said:
If its provides its own 5v power it would likely work, but I don't really see anywhere for an external power connection and it looks too small to house a battery.
Click to expand...
Click to collapse
This would be fantastic... but i dont speak Japanese!!
mrtomaso said:
And it also appears you can't just plug the other USB into the wall?
Sent from my PG86100 using XDA
Click to expand...
Click to collapse
So, we can't just plug it into a wall for power? I have to buy a battery powered unit or use a powered hub?
Sent from my cm_tenderloin using XDA
Nice and cheap and the best part it works.
USB Hub works...sort of.
I tried this with a cheap USB hub I bought. I had bought it for my laptop and made sure it had it's own power supply to keep the load off my laptop, so I thought it would be perfect for this. Nice try though.
Turns out it needs 5V from the host to activate as well as the additional external power supply. Just fired it up with my TouchPad connected via a Y-Cable and my Laptop providing the 5V to fire it up. Works like a charm.
As yet to find out if it works with my travel charger providing the 5V and no external power supply plugged in, and how many devices I can hook up. It's got 7 ports so I suppose the supply might be useful then, but do I really need to hook up that many devices? Otherwise...pointless. Back to the drawing board I go.
wolfgr said:
Today I accidentally found this http://direct.sanwa.co.jp/ItemPage/400-GADR002W that by first look it could be awesome...
Edit:a mini review in english http://www.gadget.pdamu.com/2012/03...r-dock-station-for-android-smartphone-tablet/
says that it can be also powered be micro usb charger....
Click to expand...
Click to collapse
This would be really handy and it's a much more elegant solution than a y cable and external power source.
Too bad it seems like we won't be able to get one easily.
Am i missing something here or can i use my 3.5" external HDD (with a power supply) to provide power to my External so i dont have to plug the cable into a USB hub?
mafu6 said:
Am i missing something here or can i use my 3.5" external HDD (with a power supply) to provide power to my External so i dont have to plug the cable into a USB hub?
Click to expand...
Click to collapse
You should, I did this on my Touchpad running CM7. Haven't tried since going to CM9.
Sent from my Nexus S using xda premium

[INFO] HP TP USB OTG Notes, Tips, & Tricks (4-28-14)

[INFO] HP TP USB OTG Notes, Tips, & Tricks ​
DISCLAIMER: I'm not a dev, nor do I play one on t.v. Use the information and links at your own risk. READ and UNDERSTAND what your doing before flashing is the best bet. I take no responsibility or credit for the information.
This is a work in progress... Still gathering my notes for the thread.
Major Credit to @ramjet73 for working with me on the Evo3d OTG Tips & Tricks thread and allowing me to reuse the info here:
-----------------------------------------------------------------------------------------------------------------------------------
Other XDA USB OTG related threads:
Spunker88's HP Touchpad USB OTG Compatibility List
Solar powered USB hub (kinda cool)
Nitty gritty OTG hardware discussion
Mpgrimm2's [MOD] Self Powered USB OTG on the HP Touchpad! (v2 Full Size)
ramjet73 said:
For kernels that have On-The-Go (OTG) USB host support built-in, it's very easy to support USB peripherals such as keyboards, mice, flash drives and portable hard drives from your phone regardless of the ROM installed. If you would like more information about OTG, here's a very good thread in the XDA Sensation forum that covers it pretty well.
The commands to mount and unmount USB storage devices manually are covered in that thread, but I've found the easiest way to mount and dismount my flash drive is to use an app called [root]StickMount from Chainfire, the developer of SuperSU. Depending on the ROM installed, it may not be considered compatible and won't show in the Play Store, let me know if that happens and I will post the apk.
If you are using OTG to attach any type of USB devices, please share your experiences and any tips you might have. Also, please use this thread for any questions you might have about OTG support and devices, even if you haven't gotten around to trying it yourself yet.
Click to expand...
Click to collapse
A couple of quick FYI's about using USB OTG with the Touchpad:
- USB OTG has been possible on the HP TP since CM9 (or earlier?)
- To enable OTG on any android device, Pin 4 (I.D. Pin) needs to be shorted to Pin 5 (DC Return) on the host device. This is the function of "OTG" cables. Note that I have purchased OTG cables that didn't work because Pins 4 & 5 were not shorted/manufactured correctly. On some devices with 3.x Kernels, it is possible to enable USB OTG via a sysfs command (not the TP yet).
- The HP Touchpad is not capable of supplying 5v power out the microUSB port for OTG functions so a standard OTG cable WILL NOT WORK. You must use either an OTG Cable with Isolated External Power Plug, an externally powered USB Hub, or a modified USB Charger/Cable.
- Even though external power is required for OTG, earlier support for USB OTG on the TP would only allow a device that draws/reports 100ma or less (ie USB mouse, small thumbdrives, etc) to be active when directly attached to the primary msm_otg port of the TP (Not Sure if this still applies). This limit can be "bypassed" for larger draw devices (ie portable hard drives) by using an externally powered USB Hub in between the TP's OTG Cable and the device. The hub's "Host" end will report 100ma or less to the TP and allow up to 480ma devices to be plugged into the hub. Good. (Credit to AndroidLover at RootzWiki for this info)
- It is possible to make your own USB OTG Cable with Power, or modify some USB Chargers for OTG functionality if you have some basic soldering skills and equipment.
- Most "dedicated" android USB Chargers have the "Data" pins sorted to tell an android device to use "AC Charging" ("fast charge") instead of "USB Charging". This "prevents data communication and only allows charging. Without a correctly "isolated" OTG Power Cable, OTG will not work with most chargers. Some chargers will either have shorted data pins (i.e. HTC), a low resistance across the pins (i.e. HP) or an "Open" (nothing) across the pins (i.e. aftermarket "Apple" chargers).
- Recommended minimum apps to use with USB OTG:
StickMount, USB Device Info, USB Host Diagnostics, ES File Explorer (or Similar)
Purchase Links for USB OTG items I Use with my TP
I just verified that if you get the Micro USB Host OTG Cable With USB power ($6 from AppleCable on Ebay) that Ramjet73 mentioned (or this one), it will work with any standard USB charger (ie the 1 Amp HTC or 2 Amp HP Touchpad Charger) because the USB Power Connector is Isolated. I also picked up Applecable's USB 2.0 3 Port Hub with data Sync Charger cable for $7
(I may try to modify it to be a USB OTG powered hub with this OTG Adapter and this USB to 3.5mm/1.3mm Adapter to power the hub directly from "ANY" USB charger.
EDIT: It works fine, but modified it anyway).
Here's some updated AppleCable Ebay Store links (4-18-14):
Micro USB Host OTG Cable With USB power
USB 2.0 3 Port Hub with data Sync Charger cable (not OTG, but a cheap hub that works. can be modified for OTG)
Micro USB Host OTG Cable w/micro USB power
Left Angled Micro USB Host OTG Cable w/USB power
Right Angled Micro USB Host OTG Cable w/USB power
USB OTG Cable Schematics. HP TP Needs Cable 2 or Cable 3​
If you are able and want to make your own OTG cable, use the schematic for cable 2 (or cable 3) as needed for the TP.
Here are some pictures of an earlier version I made (Cable 4, not recommended) as an example.
Markmx6's HTC USB Charger/Powered OTG Cable Mod Part 1 of 2 : (Reposted here with permission)​
Markmx6; said:
First off, I am not responsible for you screwing up your phone, shorting your house out, frying your SD card, burning down your home, or anything else that may or may not occur from you building this...
Tools you will need: Razor blade, Soldering iron, Solder, Super glue.
Optional tools: Dremel with cut-off wheel.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I started with components I imagine you will all have, since they came with the phone. The HTC charging cable and outlet adapter.
First, cut around the base of the outlet adapter. This is around 3/16" thick, and the cut is better off to be made on the "shiny" plastic than the "dull" portion. I used a Dremel, but any type of blade will do, it just may take more time.
Make a cut along the white line on the board (Shown in red here) Otherwise this will not work. On typical chargers they short out the Data+ and the Data- connections (mpg2 edit: it forces "AC Charging" mode). Not sure why... Digging a razor blade across this several times should do the trick, but if you want to make sure with a continuity tester that will always give piece of mind.
Now you need to cut your cable, I recommend leaving around 2" or more from the standard usb side. (A little of this wire will come in handy for later in this project)
Cut and then strip your wires, there will be a braided shielding wire just under the insulation. Then it will be helpful to "Tin" the ends of your wires.
The shielding can be completely removed, or you can ground it out, but I haven't found this to be needed.
You will now need to solder the wires to the circuit board. This will obviously need to be in the correct order.
From the top will be:
RED = 5V+
WHITE = Data +
GREEN = Data -
BLACK = 5V-
Now you can re-assemble the Outlet adapter if you choose.
Now you need to cut up the other (phone) end of your cable to enable the OTG function.
Post 2 will outline this.
Click to expand...
Click to collapse
Markmx6's HTC USB Charger/Powered OTG Cable Mod Part 2 of 2 : (Reposted here with permission)​
Markmx6; said:
Carefully cut down the sides of the connector, if you can do this in one clean cut it will be helpful when you re-attach then after your modifications.
Carefully cut away the plastic, and what looks like hot glue. You need to expose the side that has a blank terminal. and the one on the other side that has a black wire.
Pins 4 and 5 need to be attached, so a small piece of wire (from the leftover ends of the cable comes in handy) works really well.
It doesn't really show up in the pictures though
Now re-glue the pieces from the end of the cable back onto the connector
That is all.
For usb storage you need to have all of the cables hooked up before you insert the SD card.
Click to expand...
Click to collapse
Sent from my "Up all night, Sleep all day" EVO3D!
I got to looking around and wondering with the parts I have if I am setup for OTG and just need to plug everything together without hacking up a power supply which I'd prefer not to do.
Here's what I have on hand:
I ohmed out the " CrazyOnDigital 2 port charger's" data pins:
Port1-pin3 & port2-pin3 = 0.1 ohms (and about 30k to gnd/shld)
Port1-pin2 & port2-pin2 = 0.1 ohms (and about 30k to gnd/shld)
(I also reversed the leads in case I was reading through a diode)
So it looks like the data pins on this aren't shorted together and that it will function as a Powered USB "y" cable/pass through between ports 1 & 2.
Part 2
I realize that my purchased USB OTG cable won't plug in between the charger & my phone (Schematic #1) so I may use a USB extension Cable and USB A to A adapter that I have (not pictured) or I may just hack a spare USB A to Micro USB (5pin) cable that I have into another OTG Cable.
Q: My understanding is that an OTG cable has the ID pin (pin 4 of the 5pin Micro) tied to Gnd, like Markmx6 did in his original cable; correct? So, that's why the micro USB end gets cut open a bit.
A: Yes.
----------------------------------------------------------------
My Additional References:
Zoom [DIY] MicroUSB Host Cable
So in a normal micro/mini USB cable, there are 4 wires, 5 pins.
1. Red - V+
2. White - Data -
3. Green - Data +
4. Empty
5. Black - Ground
That micro male to mini female cable above has the 4th (5th?) wire, brown. This is the ID wire. Shorted to ground, it makes the cable a host cable.
Click to expand...
Click to collapse
Wikipedia's: USB On-The-Go page
The OTG cable has a micro-A plug on one side, and a micro-B plug on the other (it cannot have two plugs of the same type). OTG adds a fifth pin to the standard USB connector, called the ID-pin; the micro-A plug has the ID pin grounded, while the ID in the micro-B plug is floating. The device that has a micro-A plugged in becomes an OTG A-device, and the one that has micro-B plugged becomes a B-device. The type of the plug inserted is detected by the state of the pin ID .
Three additional ID pin states are defined[4] at the nominal resistance values of 124 kΩ, 68 kΩ, and 36.5 kΩ, with respect to the ground pin. These permit the device to work with a USB Accessory Charger Adapter which allows the OTG device to be attached to both a charger and another device simultaneously.[6]
These three states are used in the cases of:
- A charger and either no device or an A-device that is not asserting VBUS (not providing power) are attached. The OTG device is allowed to charge and initiate SRP but not connect.[6]
- A charger and an A-device that is asserting VBUS (is providing power) are attached. The OTG device is allowed to charge and connect but not initiate SRP.[6]
- A charger and a B-device are attached. The OTG device is allowed to charge and enter host mode.[6]
Click to expand...
Click to collapse
Micro-USB connector pinout
-----------------------------------------------------
Part3: SUCCESS! (with Otg Enabled kernel)
I went ahead and modified a spare USB A to Micro B cable for OTG without power. Plugged everything up with my Logitech Wireless USB mouse and it works! Cool as can be! See new pics. (Yellow wire is the Jumper).
Still have a few questions:
Q: Would the "purchased" OTG Cable already have pin 4 & 5 Shorted?
A: YES it should, but one of the cables I bought was defective.
Q: Does your OTG setup from the op charge the phone at the same time (and/or keep it charged)?
A: Yes (Not Likely on the HP TP)
Edit: Apparently I broke the +5v wire during reassembling the cable. See pictures.
My CrazyOnDigital 2 port charger doesn't have the data pins shorted (D+ and D-) like the stock HTC unit. This causes any "Android" device to charge at the lower 500ma Max "Charging USB" rate vs "AC Charging" (explains my slow charging when travelling), but a bonus is that it allows me to pass data b/w the 2 ports like a simple hub.
- If the D+ and D- pins are shorted when an OTG USB cable is plugged in, the phone will go into "AC Charging" mode, but not allow OTG devices to work, but if the phone is still connected and the data pins opened back up, you retain "AC Charging" mode and have USB OTG functions.
(I'm thinking that a simple on/off switch installed across the data pins of my charger will give me a dual mode charger).
---------------------------------------------------------
AC CHARGING / USB CHARGING (Data Pass Through) MOD 12-1-12​I am not responsible for you screwing up your device, shorting your house out, frying your SD card, burning down your home, or anything else that may or may not occur from you building this...
- I got tired of having a 2 port 2 Amp charger that only allowed 500ma "USB Charging" with Android & OTG. See pix:
Post 8 for me.
Originally Posted: 2/23/13
Q: Does anyone know for certain if it's possible on the touchpad to echo the OTG "mode" command (ie host vs none) ?
On the evo3d there is a sysfs command that can be "echoed" to enable OTG with any standard cable and I was able to get the Kernel Tuner dev to add a toggle in his app for it.
If I can find someone who knows & can verify the sysfs command for our CM touchpad's I can have him add it into the app easily (Apr2014 Edit: KT not currently in development).
Note: I haven't found it yet by digging around with EsFileExplorer and activating OTG with a cable.
Mpgrimm2 said:
Didn't know OTG could be activated (on the Evo3D) using a standard cable with a sysfs command like:
Code:
echo host > /sys/kernel/debug/msm_otg/mode
Options are "host" or "none" (maybe this command can get added to "kernel Tuner" app! ). Wonder if it's the same for the Touchpad.
Fyi, don't know how different it would be on each device (ie GS3 vs. Evo3d & HP Touchpad), but it looks like for the Touchpad on CM9 it's
Code:
/sys/kernel/debug/otg/mode
Click to expand...
Click to collapse
I realize some may say "why bother, just use an OTG cable", but if you look through my OTG mod thread, you will realize that it's one less wire to solder to a circuit board and will also allow any user to avoid buying the cable.
Note: I also posted this in my [MOD] Self Powered USB OTG on the HP Touchpad! (v2 Full Size) 11-30-12 thread.
Dorregaray said:
In kernels 2.6.39 and newer the sysfs entry is named msm_otg. We're using the 2.6.35 kernel where the entry is named otg. The available options are: none, peripheral and host.
It seems that the:
Code:
echo host > /sys/kernel/debug/otg/mode
command should work.
Click to expand...
Click to collapse
Mpgrimm2 said:
Thank you for the feedback.
Code:
/sys/kernel/debug/otg/mode
That's what I was thinking too, but I can't seem to see any change of state at that location when activating it with a shorted ID pin and the developer for Kernel Tuner indicated that he added the code for it which doesn't seem to work either.
When I check the mode file there isn't anything there (blank). I have also tried settings permissions for rwx-rwx-rwx and manually typing "host" and saving the file. It goes immediately back to a blank file.
Admittedly I'm an amateur and was trying to echo it with an /init.d script at one point (edited with EsFileExplorer), shouldn't that work? I will fiddle with it some more.
Click to expand...
Click to collapse
Dorregaray said:
First of all try to echo from a terminal app on running system and check if it works, check also the dmesg if there's no error there. If it will be working then you can add an entry to init.d script
Click to expand...
Click to collapse
Last one for me. Feel free to comment.
Trouble with OTG/Touchpad/DS4 controller
I hope someone can help me. I am trying to connect my Dual Shock 4 PS4 controller to my Touchpad via OTG, so I can use Remote Play for my games. I am rooted, using PAC MAN ROM 4.4.4RC-1. Through trial and error (and this forum), I discovered that a normal OTG cable will not work. So, I ordered and received my powered OTG cable in the mail from China (I found the link in this thread a couple of weeks ago). Unfortunately, the HP Touchpad still doesn't seem to recognize the DS4, so I want to make sure I am doing this correctly. Pictures of the cable are attached, along with my setup. The only thing missing from the pix is the connection of the male USB side of the cable to the iPhone wall charger (the cable is very short to get all in one picture). I lost the official Barrel charger 2 years ago, but the iPhone wall charger DOES charge my Touchpad when in Android mode, so not sure why it won't work for OTG connectivity.
1. I connect the DS4 to the micro-USB controller cable that came with the PS4.
2. I then connect the male USB side of that cable to the female USB of the powered OTG cable.
3. I then connect the micro-USB of the powered cable to the HP Touchpad.
4. I then connect the male USB side to the female iPhone wall charger (I lost the TP Barrel charger a couple of years ago).
And I get nothing. The DS4 seems to have no connectivity with the HP Touchpad using this method.
FYI: Again, I am rooted and running Pac Man Rom 4.4.4RC-1
The strange thing is that when I connect the Touchpad to the iPhone wall charger when it's on Android, it charges! So I don't understand why it's not working when connected to the DS4. Is the official Barrel charger the only one that will work? Do I need to install some app or software to get the DS4 to be recognized via OTG?
Any help you can provide would be greatly appreciated!
Thank you!
ConfusedTouchpad said:
I hope someone can help me. I am trying to connect my Dual Shock 4 PS4 controller to my Touchpad via OTG, so I can use Remote Play for my games. I am rooted, using PAC MAN ROM 4.4.4RC-1. Through trial and error (and this forum), I discovered that a normal OTG cable will not work. So, I ordered and received my powered OTG cable in the mail from China (I found the link in this thread a couple of weeks ago). Unfortunately, the HP Touchpad still doesn't seem to recognize the DS4, so I want to make sure I am doing this correctly. Pictures of the cable are attached, along with my setup. The only thing missing from the pix is the connection of the male USB side of the cable to the iPhone wall charger (the cable is very short to get all in one picture). I lost the official Barrel charger 2 years ago, but the iPhone wall charger DOES charge my Touchpad when in Android mode, so not sure why it won't work for OTG connectivity.
1. I connect the DS4 to the micro-USB controller cable that came with the PS4.
2. I then connect the male USB side of that cable to the female USB of the powered OTG cable.
3. I then connect the micro-USB of the powered cable to the HP Touchpad.
4. I then connect the male USB side to the female iPhone wall charger (I lost the TP Barrel charger a couple of years ago).
And I get nothing. The DS4 seems to have no connectivity with the HP Touchpad using this method.
FYI: Again, I am rooted and running Pac Man Rom 4.4.4RC-1
The strange thing is that when I connect the Touchpad to the iPhone wall charger when it's on Android, it charges! So I don't understand why it's not working when connected to the DS4. Is the official Barrel charger the only one that will work? Do I need to install some app or software to get the DS4 to be recognized via OTG?
Any help you can provide would be greatly appreciated!
Thank you!
Click to expand...
Click to collapse
I will hopefully touch base with you shortly. PM sent.
Small update. Spoke over the phone briefly and he was able to get USB OTG working with a USB mouse (had to unplug/replug OTG cable from TP to have it initialize each time) so it looks like he has the basics for a working OTG setup and an OTG enabled ROM.
Might be the version of ps4 controller he is using or the apk/driver that enables it to work.
Hopefully more to come. Anyone else try this setup before? Chime in.
He is on
[ROM][OFFICIAL][KitKat 4.4.4][TENDERLOIN] PAC-man KK RELEASE [WEEKLY]http://forum.xda-developers.com/showthread.php?t=2779954
[NEW][ALL][PORT][4.0+] PS4 Remote Play for Android (New Thread)
http://forum.xda-developers.com/showthread.php?t=3068225
Sent from my LG G4 on Tapatalk.
An confused update
ConfusedTouchpad said:
Hi ....just an update following my email earlier:
1. I went to a local PC Repair place and they let me use a 5.3V wall charger, to see if some added juice might be enough to get the DS4 recognized by the TP over the OTG cable. Unfortunately, nothing.
2. I went to Gamestop and they let me connect their DS4 to the Touchpad, to see if it would work (using the iPhone wall charger I brought along). Again, nothing.
3. I don't know how this happened, but at one point during the process, the Touchpad turned completely blue and would not respond to anything. I was able to reboot by holding the Vol button down, plus the other 2 buttons. Freaky.
Maybe this info + my earlier email might help you know what's going on? It doesn't seem like this is going to work for me, but you never know.
Thanks!
Click to expand...
Click to collapse
Sent from my LG G4 on Tapatalk.
Another thought on the matter,
Last time I dug into OTG TP setup, there was an issue with either the kernel or the msm chipset that prevented it from using any device directly connected to the OTG cable/port that was asking for more than 100ma or so (ie USB portable drives, CDROM's, etc). You would think this doesn't matter since we are providing power externally separate from the TP but it didn't know that.
The work around was to connect a powered USB hub between the touchpad and the device so that the Touchpad sees the low power Hub on its port, and the hub acts as the middle man supplying the full 500ma out to the device, ie the DualShock4 controller.
Got a powered USB hub handy?
See post 2 for a picture of my hub setup.
(I see I mentioned this in post 1 also)
If u want to see the details, you can get USB port and current draw info from the USB Device Info app or USB Host Diagnostics app linked at the bottom of post 1
Sent from my LG G4 on Tapatalk.
Mr. Grimm....as always, thanks for the info. Other than your responses, it's pretty much crickets in here, eh? (Think everyone else abandoned this thread a long time ago).
I am a little confused about your post below. I did see posts #1 and #2, where it was stated that regular OTG cables wouldn't work for the TP, that you need a powered USB one. That's why I bought and tried a powered cable....in fact, there was a link to it in post #2: "Micro USB Host OTG Cable With USB power".
So if I understand your post below correctly, you're now saying I need something ADDITIONAL (power or an additional cable) on top of the one I just purchased? I'm not sure I understand....I thought I had done what I was supposed to. I connected the USB male part of the cable to the iPhone charger, and also a 5.3V wall charger I tried at a PC Repair store and neither would work. The only thing I've gotten to work, occasionally, is the USB mouse connected to the cable. DS4 not working.
Any help would be appreciated....thanks!
mpgrimm2 said:
Another thought on the matter,
Last time I dug into OTG TP setup, there was an issue with either the kernel or the msm chipset that prevented it from using any device directly connected to the OTG cable/port that was asking for more than 100ma or so (ie USB portable drives, CDROM's, etc). You would think this doesn't matter since we are providing power externally separate from the TP but it didn't know that.
The work around was to connect a powered USB hub between the touchpad and the device so that the Touchpad sees the low power Hub on its port, and the hub acts as the middle man supplying the full 500ma out to the device, ie the DualShock4 controller.
Got a powered USB hub handy?
See post 2 for a picture of my hub setup.
(I see I mentioned this in post 1 also)
If u want to see the details, you can get USB port and current draw info from the USB Device Info app or USB Host Diagnostics app linked at the bottom of post 1
Sent from my LG G4 on Tapatalk.
Click to expand...
Click to collapse
You MAY need the hub if the Ps4 controller indicates it needs more than 100ma on the USB port. Perhaps you can pick one up at Walmart and return it later if it doesn't work.
- Yeah, I don't think many people actually use or have tried OTG with their Touchpad. So there may not be a lot of traffic here.
Most of my OTG info actually originated from my Evo3D threads because it had the same chipset and processor as the Touchpad.
Sent from my LG G4 on Tapatalk.
Thanks. Is 100ma more than the stock TP barrel charger provides? Maybe I should just order one of those off Ebay, if that will provide the power needed, since I need one anyway after losing it. Is the USB hub more powerful than the barrel charger?
Also, adding all these things makes for a really clunky setup and sadly reduces the convenience of OTG connection. I guess I will have to decide if it's worth it.
mpgrimm2 said:
You MAY need the hub if the Ps4 controller indicates it needs more than 100ma on the USB port. Perhaps you can pick one up at Walmart and return it later if it doesn't work.
- Yeah, I don't think many people actually use or have tried OTG with their Touchpad. So there may not be a lot of traffic here.
Most of my OTG info actually originated from my Evo3D threads because it had the same chipset and processor as the Touchpad.
Sent from my LG G4 on Tapatalk.
Click to expand...
Click to collapse
ConfusedTouchpad said:
Thanks. Is 100ma more than the stock TP barrel charger provides? Maybe I should just order one of those off Ebay, if that will provide the power needed, since I need one anyway after losing it. Is the USB hub more powerful than the barrel charger?
Also, adding all these things makes for a really clunky setup and sadly reduces the convenience of OTG connection. I guess I will have to decide if it's worth it.
Click to expand...
Click to collapse
That is not exactly the issue, but you should be using a 2 Amp (2000ma) charger with your Touchpad. 1.8A may work fine though. (Stock is 2.0 or 2.1 Amp I believe)
Regardless of getting 'enough' actual power from a charger to the devices, here is the deal/conversation between the TP's chipset (Host device) and the DS4 controller's usb chipset...
DS4: knock knock. Hi, I'm a device that needs 480ma from your USB port, can you let me in.
TP: From behind the closed door... Sorry, only 100ma or less here.
DS4: But I have my own USB power. [email protected]#%
(TP lets hot little 30ma thumbdrive through, followed but 35ma mouse)
Later... Ds4 comes back with its cute little 75ma Hub friend...
Hub: knock knock. Hi, I'm a device that needs 75ma from your USB port, can you let me and my friends in?
TP: From behind the closed door... Uh, sure you all look like only 100ma or less.
Sent from my LG G4 on Tapatalk.
I don't know many people where I moved to recently but if I can get my hands on a ps4 controller, I can see how thing work on my setup.
Please install those 2 USB info apps I mentioned before, they will help identify what the TP sees on its port:
USB Device Info
USB Host Diagnostics
Sent from my LG G4 on Tapatalk.

Micro-USB plug hub with Ethernet

Does a micro-USB hub with ethernet that has at least 3 USB ports exist? I despise chaining a bunch of dongles, so I'd like to see if an all-in-one solution exists:
- micro-USB cable attached to the dongle so it can plug straight into the GNP
- Ethernet port (my experience is that wifi sucks on the GNP)
- 3 USB plugs for flash drive, keyboard/touchpad combo, Flirc.
The closest I found is this Samsung dongle (the price used to be $25 but it went up, can still be found around $17 on ebay shipped from China though), but it only has 2 USB ports and I'm not sure that it would actually work with the GNP:
http://www.amazon.com/Samsung-Original-Adapter-ET-UP900-Galaxy/dp/B00J2N0GB4
(may be an excellent solution for someone looking just for 1-2 USB ports)
Look on http://www.amazon.com/Inateck-Bus-P...55&sr=8-5&keywords=inateck&pebp=1418217376093
Sent from my Nexus 7 using XDA Free mobile app
myshyak said:
Look on http://www.amazon.com/Inateck-Bus-P...55&sr=8-5&keywords=inateck&pebp=1418217376093
Click to expand...
Click to collapse
It would be great if it had a micro-USB connector rather than a standard one, to avoid yet another adapter cable.
I dont think that will work. My friend got one and I plugged it into my tablet that has a standard USB slot and ethernet didn't work. I bought a USB (standardsize) to ethernet adapter works fine on my tablet. Now I need a standard to micro adapter

LG G5 otg cable with usb hub

I was just wondering about the compatability of the lg g5 with a usb hub in this way. I already have a usb hub(just an amazon basics one) and wanted to make a little media/gaming setup using an otg cable and miracasting it to my firestick. I don't know if it would be compatible with my controllers and pendrives etc. Or will i need a specific type c usb hub?
Ooops sorry for double post but i understand i may have posted this in the wrong section and it should have been in accessories. Not sure how to move it though. Sorry again.
well I think it might work but the hub needs to have additional power to do that
5V is needed to power it since the phone will not be able to power all mounted storage
I have a Ugreen HUB that I also recommend if you want to try it as it supports additional 5V power supply (http://www.aliexpress.com/item/Ugre...-LED-indicator-for-PC-Laptop/32526640882.html)
Thanks for the reply,
So the since the hub is bus powered you are saying the phone will not be able to power the mounted storage and say a gamepad or something? Is it that the phone is not capable of supplying it or that it will drain the phone quicker. For example if i had a usb otg cable that supplied input too the phone would it be possible?
If it is the case i should go for one of these hubs are there any you can recommend on amazon as I would rather not wait 2 or 3 months delivery?
If you plan on connecting gamepad, storage and so on at the same time, you will most likely lack enough power since the phone alone can not supply it therefor you will need additional power to the hub
So far the phone should be able to support powering a USB storage device (USB stick) but if you plan adding a external HDD for example, it will not work (I managed to test with a 1TB external HDD and was not able to fully power it)
As for a amazaon suggestion for a HUB, well not sure but you can try one that supports additional power supply (https://www.amazon.com/AmazonBasics-Port-2-5A-power-adapter/dp/B00DQFGH80)
Thanks very much for the reply i might purchasr that as well and see if there is a difference between using both. Anyone have any recommendations on type c otg cables?
My otg cable got delivered. And i used it with my current usb hub that was bus powered... It doesn't work reliably(it has worked once for me). I'm not sure why this is, I assume its because of the power. So if i was to buy a usb hub now that was powered such as the Ugreen 4 port usb hub will i see better results with that? Also anyone know the best gamepads i can buy for otg as i dont have a usb x360 or ps3 controller.
I was interested having a otg setup for my car, usb dac for audio, plus phone charging, but i dont think its possible to have otg + charging.
Even if you get otg working on a hub, chances are you wont be able to charge at the same time which is an issue for gaming?

A5 ’17 USB OTG: a little research

One of the things I’m really amazed by with the modern PDAs is the USB OTG. So just as I found out that my Galaxy has it, I got myself an adapter (for less than $3) and tested it with several devices. Here’re my results:
USB flash drives: every single one I tried worked perfectly except a 1 GB drive of unknown vendor, which wasn't even recognized by the Galaxy, works okay with PCs thought.
External HDDs: the Toshiba 500 GB USB 3.0 drive wasn't recognized and didn't show any signs of life. Surprisingly, a 320 GB SATA WD Blue in a USB bay was detected and spinned up, but the Galaxy didn't recognize the file system and asked if I want to format it. I didn't, since the disk had some data I needed, but there's definitely a potential.
Input devices: all the mice and keyboards I tried worked as they should, both wired and wireless, which was expected. Which wasn't, is that DualShock3 controller from my PS3 was immediately recognized too without any additional drivers or software, it even let me control the menus. Sadly, that wasn't the case with my Logitech Freedom 2.4 wireless joystick. I guess the power wasn't enough.
Output​ devices: Sennheiser wired USB headset (basically, the USB sound adapter with the headset attached) worked as it should. HP LaserJet P1102 printer didn't work even with USB printing service installed.
Overally, I got much more then I dreamed of, especially since I heard that the OTG is very poor on a modern devices. DualShock3 success is especially cool.
This is quite weird as I have tried the original Samsung Micro USB OTG adapter, with the little white USB-C adapter and it did not work. This is on A3 2017.
There were rumors that USB OTG was disabled. Which adapter do you have?
W00fer said:
This is quite weird as I have tried the original Samsung Micro USB OTG adapter, with the little white USB-C adapter and it did not work. This is on A3 2017.
There were rumors that USB OTG was disabled. Which adapter do you have?
Click to expand...
Click to collapse
The rumors aren't true. The thing is, Type-C uses a different pinout for OTG, so it shouldn't be a combo of Type-C to Micro and Micro to Type-A OTG, it should be a special Type-C to Type-A OTG adapter. The adapter that comes with the device is good for charging only, or so I heard. I’ll photo my adapter, but I got it for almost nothing in a local computers store.
Agent_B-7 said:
The rumors aren't true. The thing is, Type-C uses a different pinout for OTG, so it shouldn't be a combo of Type-C to Micro and Micro to Type-A OTG, it should be a special Type-C to Type-A OTG adapter. The adapter that comes with the device is good for charging only, or so I heard. I’ll photo my adapter, but I got it for almost nothing in a local computers store.
Click to expand...
Click to collapse
Very interesting. A different pinout for OTG. Yeah I thought it was the combo that shoud have worked.
The little adapter comes with the device is said to be charge and sync. Because when connected to my PC it works. for data transfer.
http://www.nix.ru/autocatalog/usb_cables/KS-is-KS-297-Perehodnik-USB-AF-USB-C-M-OTG_279425.html
Here’s the one I got. The site is in Russian, but the pictures are self-explanatory.
I have an OTG now from Aliexpress. It works for my A3 2017. 90 degree angle connector.
Now onto an USB-C to HDMI. The official Samsung EE-HG950 does not work.
Agent_B-7 said:
The rumors aren't true. The thing is, Type-C uses a different pinout for OTG, so it shouldn't be a combo of Type-C to Micro and Micro to Type-A OTG, it should be a special Type-C to Type-A OTG adapter. The adapter that comes with the device is good for charging only, or so I heard. I’ll photo my adapter, but I got it for almost nothing in a local computers store.
Click to expand...
Click to collapse
So if i understand correctly the little "micro usb connector" that comes with the A5 2017 won't work for anything other than charging? I tried using it with a regular otg cable and it doesn't detect any flash drive, not even a ps3 controller, i don't even get the notification that a usb is plugged in.
But whats weird is if i use a male to male usb cable and connect to to a pc it works just fine. Any idea whats causing this?
Please help. I have the same problem. I have newly bought a5 2017. I already have otg usb drive sandisk. The adapter type c included in the box didn't work fine. Except only for charging when connected to usb 2.0.
My usb otg drive will become useless if it doesn't read by my device. What should i do? Or how to activate maybe my otg support? Tnx in advance.
shrekpido21 said:
Please help. I have the same problem. I have newly bought a5 2017. I already have otg usb drive sandisk. The adapter type c included in the box didn't work fine. Except only for charging when connected to usb 2.0.
My usb otg drive will become useless if it doesn't read by my device. What should i do? Or how to activate maybe my otg support? Tnx in advance.
Click to expand...
Click to collapse
The adapter from the box is just for charging and data transfer to compuer. If you want to use your flasdisk you can buy a new usb otg for type c slot.

Categories

Resources