i try to connect a usb flash memory to my tab 2 and i follow a trick
i get female-to-female usb adapter and connected it to the galaxy tab 2 usb adapter (that comes with it in the box)
then connect to it a usb flash memory , but my tab didn't read any thing
so after searching,using my avometer and making tests between my tab and my lab i concluded that:
-the female-to-female usb adapter is working probably
-there is no 5v output on the usb male adapter so i think because that the terminal device can't be read
please help me, any one can explain that?
is the manufacture close that property or my android is crushed or must be a microcontroller in otg to work,.... or what??
hey ever body , where is the developers
where is the genius people
i need help
My guess is they sell an official USB reader for a reason...
Sent from my SGH-T679 using xda app-developers app
mon3esh said:
i follow a trick
Click to expand...
Click to collapse
Here is the trick I used:
http://www.ebay.com/itm/300701358749#ht_891wt_1037
Open wallet, buy fix
:silly:
The following link shows how to make your own OTG cable (for another device). http://tech2.in.com/how-to/accessor...sb-otg-cable-for-an-android-smartphone/319982. So there is some additional connection b/w pin 4 & 5 that makes it works as OTG cable.
Is it worth the hassle? I am not sure. I got OTG cable for $0.99 in ebay. Before buying it I tried female USB cable like OP and failed.
thanks for every one tries to help
i found the reason
the secret in the 30 pin connector
which its pins are grouped each group is serves another connector in the another side of cable
so the group of usb has a pin named otg responsible for turning your cable to otg cable
so in the usb male connector it is not connected
so i think that is why samsung didn't built in its tabs a micro usb port and built this port instead it "to can market its accessories"
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've no idea if this will be of interest to any of you, especially those people who have yet to buy a 5t and are trying weigh up the pros and cons, but USB OTG is something I use all the time, so o it was one of the first things I tested when I got mine. So far I'm really pleased as everything I wanted to work does so. My last device, a Xiaomi Redmi Note 2, had very poor USB OTG implementation so this is great from my point of view. Maybe I'm behind the times and I had the last phone on the planet with that problem - if so, please delete this mods
First off, before you can use USB OTG, you need to head into settings, then advanced and check the OTG setting. It turns off after ten minutes so I created a link on my homepage using Nova launcher's activity widget menu.
*EDIT* As ny-hardcore has kindly pointed out below, you can also have an OTG quick toggle in notification area. This didn't work for me at first (or I was hitting the wrong thing), but now it does .
Tested and working:
USB card readers of various types, including micro USB readers, with the help of a USB C to Micro USB adapter (5 for £4 on eBay!). The only one that didn't work is a proprietary Samsung multi card reader that also has a full sized USB output and HDMI out too. This isn't very surprising of course, but they're to be avoided if you see one on eBay and assume it's a generic adapter.
80 GB iPod hard drive in a cheap enclosure bought via Amazon.
1 TB 2.5" Western Digital HDD - that's right, no USB hub required, just plug it straight in. The only other portable device I've owned could power it was a Samsung tablet.
2 mega pixel boroscope (using USB Camera app in Play Store) . So useful for finding slow water leaks under the floor or peering down a spark plug hole into a cylinder!!
Micro USB DVB TV dongle, via adapter.
Keyboards and mice via an OTG adapter, including a combination media keyboard with built in trackball mouse (this usually doesn't work on my phones for some reason). The UK keyboard layout is supported via settings so you can have a £ key - woohoo!
Other phones! I plugged my old phone in and discovered I could mount it in MTP mode and then browse its contents from the built in file explorer. For what it's worth, the Oneplus even charges the device that's connected to it.
When you need to eject the device there's a button that appears in the notification area. Sometimes this gets obscured, so swipe down a second time and the 'eject' will appear.
I haven't tried any game controllers yet, but so far the support has been so comprehensive I don't see why there would be a problem.
In the attached photo, the only thing that doesn't work is the black coloured multi purpose card reader on the far right.
In quick toggles you can add an otg switch.
You don't have to go in settings that way to enable otg.
ny-hardcore said:
In quick toggles you can add an otg switch
Click to expand...
Click to collapse
Thanks, for some reason that just didn't work for me unless I went into settings/advanced as well. I can't recall which firmware I was on at the time and I haven't tried since The quick toggles are so far away for my little hands too (please Oneplus add a Xiaomi one handed mode - in fact, make it EXACTLY like Xiaomi devices).
LOL, typical, now it does work for me! I was probably pressing flight mode by mistake or something.
Just FYI, I've tried the following USB DACs with an OTG cable on my 5T and they appear to work:
- Fiio E17
- Meridian Explorer (v1)
- Audioquest Dragonfly (v1)
I just discovered my old Saitek X35/X36 throttle/joystick combo works too! That's a first for one of my Android devices too. Now I need something fun to test it with
I'm using an IrigUA without any problem so far...
eboissier said:
I'm using an IrigUA without any problem so far...
Click to expand...
Click to collapse
Good news for the fret shredders out there
Are those also working well in twrp?
jkyoho said:
Are those also working well in twrp?
Click to expand...
Click to collapse
Sorry, I haven't tried. I'm still fully stock for now, including the recovery.
Has anyone gotten USB sound cards to work *for recording*.
Like I have a Terratec Aureon USB MkII and would like to livestream my DJ sets to Facebook via the FB app, by hooking up the line-out on my decks to the line-in on a soundcard hooked up to my phone and have the streamed video use the soundcard instead of the internal mic which sounds rubbish.
Edit: Tried it, and yes it works, but you have to hook up to the mic port, not the line in, and this doesn't seem like a great idea. Any idea how to change it?
Edit2: Scratch that, phone rebooted itself during a longer test
Lum_UK said:
Has anyone gotten USB sound cards to work *for recording*.
Like I have a Terratec Aureon USB MkII and would like to livestream my DJ sets to Facebook via the FB app, by hooking up the line-out on my decks to the line-in on a soundcard hooked up to my phone and have the streamed video use the soundcard instead of the internal mic which sounds rubbish.
Edit: Tried it, and yes it works, but you have to hook up to the mic port, not the line in, and this doesn't seem like a great idea. Any idea how to change it?
Edit2: Scratch that, phone rebooted itself during a longer test
Click to expand...
Click to collapse
That would be so cool if you can get it working. Wonder if it's the phone or the Terratec? I have NO experience in that area. Good luck! How much power does it draw? Would a powered USB hub in the mix help?
Hadn't thoughtof the power draw issue.
What I really need is a super cheap low power USB line-in of some sort. Though after further testing, FB live streaming is crap, with low quality audio and video in all the configurations I tried (Android app, Win10+Firefox, Win10 app) so I'm probably going to abandon this plan and try a different platform like Youtube or something.
Just cant get otg to work in my device, I am on OOS 4.7.5, rooted with SuperSu, tried a type c to micro USB adapter, also a type c to USB 3.0 adapter, I have enabled the otg option in advanced settings before plugging in the devices, I don't know whether its the phone or the adapter I use, what kind of adapter did you buy, is it a type c 3.1 to micro USB 2.0/ USB 3.0, could you provide me with a name of the adapter.
freegame619 said:
Just cant get otg to work in my device, I am on OOS 4.7.5, rooted with SuperSu, tried a type c to micro USB adapter, also a type c to USB 3.0 adapter, I have enabled the otg option in advanced settings before plugging in the devices, I don't know whether its the phone or the adapter I use, what kind of adapter did you buy, is it a type c 3.1 to micro USB 2.0/ USB 3.0, could you provide me with a name of the adapter.
Click to expand...
Click to collapse
I have the following USB OTG adapters.
2 X micro USB to full sized USB (the long type with a two inch cable).
1 X mini micro USB adapter that is tiny.
1 X micro USB adapter (bigger than above)
1 X USB C OTG adapter with micro SD card reader built in.
All of the above work. In the case of the micro USB OTG adapters, I'm using a USB C to Micro USB adapter (they're tiny, about 2 CM long).
In short, every USB OTG adapter I've put in it works. All are unbranded, generic adapters that I've bought from Amazon or eBay. I've never had to do anything more than enable OTG in settings.
Could it be something to do with the ROM you're using?
In the attached photo, the ones with a yellow Mark are micro USB OTG adapters. The one with a red mark is a USB C multi card reader (built in USB OTG). The one with a blue mark is a USB C to Micro USB adapter.
Lum_UK said:
Hadn't thoughtof the power draw issue.
What I really need is a super cheap low power USB line-in of some sort. Though after further testing, FB live streaming is crap, with low quality audio and video in all the configurations I tried (Android app, Win10+Firefox, Win10 app) so I'm probably going to abandon this plan and try a different platform like Youtube or something.
Click to expand...
Click to collapse
Sadly what you're doing is way beyond anything I've tried. I'm happy when I can get card readers and stuff to work
I vaguely recall reading about specifications for the older micro USB ports on phones and what type of power output they supported - not all were equal. For example, there were a bunch of Samsung phones and tablets that could power hard drives without needing a powered USB hub inline. Similarly, some could power an MHL connection to a TV without the adapter being plugged into a charger like most phones that supported MHL had to. I've forgotten the name for these specs, but presumably USB C is exactly the same and it'll be online somewhere. No idea what your Terratec draws or if that could be the problem - if our phones can spin a 1 TB hard drive then perhaps it's not an issue, I was just clutching at straws.
Good luck!
Ouzo said:
I have the following USB OTG adapters.
2 X micro USB to full sized USB (the long type with a two inch cable).
1 X mini micro USB adapter that is tiny.
1 X micro USB adapter (bigger than above)
1 X USB C OTG adapter with micro SD card reader built in.
All of the above work. In the case of the micro USB OTG adapters, I'm using a USB C to Micro USB adapter (they're tiny, about 2 CM long).
In short, every USB OTG adapter I've put in it works. All are unbranded, generic adapters that I've bought from Amazon or eBay. I've never had to do anything more than enable OTG in settings.
Could it be something to do with the ROM you're using?
In the attached photo, the ones with a yellow Mark are micro USB OTG adapters. The one with a red mark is a USB C multi card reader (built in USB OTG). The one with a blue mark is a USB C to Micro USB adapter.
Click to expand...
Click to collapse
I am on official OOS 4.7.5 rooted with supersu, on which rom are you, is it 4.7.4, are you rooted, are you using any custom kernel.
freegame619 said:
I am on official OOS 4.7.5 rooted with supersu, on which rom are you, is it 4.7.4, are you rooted, are you using any custom kernel.
Click to expand...
Click to collapse
4.7.4 Stock. Stock recovery too (not rooted either).
USB OTG worked on stock 4.7.2 as well.
Working fine for me, stock, custom roms etc. Use a cableconnection usb/otg cable 6" in length. Just enable OTG in the swipe down, plus USB stick in...no problems.
I gave up on using the phone for this because the audio quality via the FB app is terrible anyway, so I nicked my GF's Windows laptop and started using OBS for streaming instead.
Power aside, it's awesome that an external sound card will work (kinda) for recording though!.
techlogik said:
Working fine for me, stock, custom roms etc. Use a cableconnection usb/otg cable 6" in length. Just enable OTG in the swipe down, plus USB stick in...no problems.
Click to expand...
Click to collapse
On which ROM version are you on, is OOS 4.7.5 or another version of OOS or some other ROMs.
---------- Post added at 04:30 AM ---------- Previous post was at 04:28 AM ----------
Ouzo said:
4.7.4 Stock. Stock recovery too (not rooted either).
USB OTG worked on stock 4.7.2 as well.
Click to expand...
Click to collapse
Thanks for the reply, I am beginning to think that it kind of an issue with OOS 4.7.5, I have to flash the old version and try my luck on it.
Hi,
So I'm developing an app to communicate over serial with a HID and testing on the g6 is proving troublesome.
The scene:
-Hid/USB Permissions granted
-Device filter correct and working as intended
-Goal is to send a string over serial.
Allthough I'm 100% sure my test code is correct, the app cannot open a serial port.
Is it normal behaviour in recent versions of android for the device to recognise an otg cable as a power source? Even with no other device connected? Are there any known issues opening serial ports on the g6? (7.0)
The cable works as intended when I plug a mouse or keyboard in but refuses to open a serial connection when my takget device is plugged in. It recognises it as a HID an can pull the serial number etc.
The android serial library should not require root or any other hackery So I'm a bit confused. I've ordered a few other otg adapters just in case.
Anyone who knows what might be going on pleas pitch in.
I've had some issues getting a serial adaptor working as well. I'm on 870DS. Originally tried the wired version of this:
https://forum.xda-developers.com/an...odemu-connect-android-to-30pin-t3234840/page1
Thank God the developer changed to Bluetooth. I tried about 6 different otg cables. Worked fine on other non usb-c phones.
I suspect it is the adapter too...sucks so bad. The annoying thing is that I was so confident in android serial that I wrote a lot of code before I bothered testing the concept lol.
Does your OTG work on memory sticks OK? I have a G6 h870ds. My OTG only works for me with USB3 OTG adapters and USB3 memory sticks. I don't have a USB3 HID device to try. I now have a large collection of different OTG adapters and memory sticks. I opened up some of the adapters to buzz them through to make sure they were made correctly. They were! It took a while for the penny to drop why some things worked and some didn't!
I cant use USB2 OTG adapters or USB2 memory sticks, keyboards or cameras. Initial connection of the USB2 OTG adapter is recognized but no connected devices are detected. I used an app called USB Device Info that can give me details of detected devices and only USB3 devices are ever detected.
I have a USB2 memory stick with an LED on it. When it is first connected to the OTG cable it flashes in a way that leads me to think it is trying to reply to USB bus interrogation but something (probably software) fails. The phone connects to my USB2 PC port just fine so I don't think the hardware is at fault. I've reset the phone and upgraded to Oreo too but alas that didn't help.
A friend of mine has a G6 H870S and all my adapters and memory stick combinations work fine on his phone so I find myself wondering if I'm just unlucky or whether the dual sim version is subtly different in some way.
I fully admit I know nothing about the inner workings of USB but as far as I can determine USB3 uses all of the USB2 connections and the additional connections only available on a USB3 port so the hardware should be OK. I'm guessing most HID devices are USB2 but if its a USB3 could you possible have a related problem but in reverse?
Every time I plug in any USB OTG adapter I get that same pop up screen that defaults to select as "power supply" even with no device connected whatever I have previously chosen.
What works for me is to plug in the OTG adapter, and only then plug in the memory stick to it. Otherwise I get the "Power supply" thing too.
Arak0n said:
What works for me is to plug in the OTG adapter, and only then plug in the memory stick to it. Otherwise I get the "Power supply" thing too.
Click to expand...
Click to collapse
Leaving just the OTG adapter connected for a few seconds then attaching the usb device does not help. USB2 devices are never detected but all my various USB3 memory sticks work reliably when using a USB3 spec adapter. I've given up worrying about it now and accepted that there is just something a bit iffy about my G6.