[Q] USB OTG - HTC One V

Hi
Can someone answer if USB OTG is supported on the One V
using stock kernel and ROM?
Regards
max
EDIT: After some searching I found that "official" it is not suported
What surprises me is that in the kernel configuration of the stock
kernel all options are set that I would assume to allow OTG
e.g. there is something like
...
CONFIG_USB_MSM_OTG:
Enable this to support the USB OTG transceiver on MSM chips
...

Would be nice if someone could enable this for One V. This kernel project is enabling OTG for One X http://forum.xda-developers.com/showthread.php?t=1640532

Otg only works in bootloader....
Sent from my HTC One V using XDA

Hy
Actually we are talking here about USB-Host support and not USB-OTG
regards
max

maxwen said:
Hy
Actually we are talking here about USB-Host support and not USB-OTG
regards
max
Click to expand...
Click to collapse
Isn't it the same?
USB On-The-Go, often abbreviated USB OTG, is a specification that allows USB devices such as digital audio players or mobile phones to act as a host allowing a USB flash drive, mouse, or keyboard to be attached and also connecting USB peripherals directly for communication purposes among them.
http://en.wikipedia.org/wiki/USB_On-The-Go

Hi
hlavicka82 said:
Isn't it the same?
Click to expand...
Click to collapse
USB-OTG also means that you dont necessarily need a powered hub to use it AFAIK
And USB-OTG means that "both sides" can act as a client or a host
From your link above
...
USB OTG defines two roles of devices: OTG A-device and OTG B-device. This terminology defines which side supplies power to the link, and which is initially the host. The OTG A-device is a power supplier, and an OTG B-device is a power consumer. The default link configuration is that A-device act as USB Host and B-device is a USB peripheral. The host and peripheral modes may be exchanged later by using HNP. Because every OTG controller supports both roles, they are often called "Dual-Role" controllers rather than "OTG controllers"
...
Whereas USB-Host means that the android device is always the host
Since the HTC is not providing power on its USB port you always
need to use a powered usb hub in this case.
I am pretty sure that we can have USB-Host on the V since other devices
using exactly the same chipset can do it. But I still need to do some investigation
regards
max

Hi Guys
See attached screenshot and notice the "mouse pointer"
So it means we will have USB host support!
Actually not much was "missing" the guys at HTC just
"forgot" to register the usb host driver on init
At the moment the "mode" musst be switched manually
between "host" and "peripheral" which means e.g. charger a.s.o
The automatic switch based on using a OTG cable is not working
or I have the wrong cable
SO I was able to connect a active hub with a mouse and it works
Next thing will be a usb storage device
I will still need some more time to finalize this.
This will then continue in the Titanium-KISS kernel thread
regards
max

Lol why do you have an app for screen shots?
Sent from my GT-P7500 using xda app-developers app

Hi
Just a short update
-OTG cable detect working
that means switching between host and peripheral (normal) mode works
automatically. No need for a script anymore
-USB keyboard tested and works
-USB storage is still killing me
regards
max

Hi
Update:
http://forum.xda-developers.com/showthread.php?goto=newpost&t=1794497
Regards
max

Hi
Just found a nice other xda thread about USB host
http://forum.xda-developers.com/showthread.php?t=1820375
Info there applies nearly 1:1 to KISS kernel
regards
max

Hey...i am on stock rom and kernel..can uab otg work for me..if yes then tell me the setup...
Sent from my HTC One V using Tapatalk 2

I also wan to use otg on my one v.
Sent from mah Htc one V.

Related

RS-232 for Serial Access

Hi there,
I was searching the forums for an RS-232 for serial access and can't find any information as I was wondering if there is a RS-232 cable avaiable for serial access. Like the cables RS-232 to USB converter for laptops to config cisco, juipters and Huawei. I have a RS-232 to USB but it is using a regular USB A plug. So the other question is that is possible to use the regual RS-232 to USB converter with gender change, but I don't think there are any drivers for the accessory for WM6. So it sounds like I have answered my own question . BTW, I am using the Kasier and it would be a great help if I can buy one instead of DIY one like -> http://forum.xda-developers.com/showthread.php?t=257858
Kengie
would believe it is required for such a device to work that the pda support usb host only Athena does that
Thanks. I though that the Kasier has the OTG (yes it does), but you are right. It doesn't support the USB Host features. Thanks.
if you by OTG mean usb on the go then htc dont seem to use that feature in any of their devices even if the cpu have it included it seems they use their own usb chip

[Q] OTG cable enables USB Pendrive reading, but not keyboard / mouse operation

Hello.
I bought this USB OTG cable from Amazon :
http://www.amazon.fr/gp/product/B00646KVBW/ref=oh_details_o00_s00_i00.
With it, I can read USB pen drives content without any problem. It is detected as soon as I plug it and I can play MP3 files from the drive for example.
However, I'm unable to use any USB mouse / keyboard or gamepad (ICS is supposed to have added gamepad profile...), although i've seen many people doing it.
I'm using stock ICS 4.0.3 (unrooted, but that shouldn't be a problem...), I've tried to use USB Joystick Center to see if anything was detected, but no luck so far, although Videos show people even using a wireless XBOX360 controller with what seems the exact same configuration...
Did I miss something ? Is it possible that my cable only allows to use usb mass storage but nothing else ?
I hope someone has some experience to share...
Thanks in advance for your help and sorry if this has already been answered.
Myster-D
Bump ? Anyone ?
Do you think I should have the thread moved to the main Q&A forum ?
Thanks
The cable is fine the kernel isn't you will most likely have to change the phones kernel to enable a few other host otg options.
Thanks for your help.
Is there a way to enumerate the modules implemented in the kernel without rooting ?
I really thought stock kernel had the mouse / keyboard hid profiles...
Thanks again.
Sent from my GT-I9100 using xda app-developers app

USB OTG

Hello guys I just want ask that what means usb otg?
Sent from my GT-I8150 using xda premium
Let me answer this question the last time, please link to this post if you see this question anywhere else...
USB OTG is a possibility to connect USB devices to the phone
USB OTG = hardware support + software support
our phone DOES NOT HAVE a hardware chip required for this so all kernel, ROM etc modifications are useless
we will never have USB OTG!
actually our chip can't direct power from the phone to the intended usb device, that's y usb OTG can't work on our phone
BUT a dedicated dev at xda has found a way to make it work for other chips that has our same problem through some tweaks and providing an external power supply for the usb devices
SO unless that dev starts working on our chip, we won't have OTG
for the original question, OTG : on the go i.e. u can blug a flash memory or a mouse or a keyboard (or wtvr u like) to ur phone through ur usb
press thanks if i help you

OTG Cables and HOV

My buddy gave me what I assume to ba a cheap OTG cable and when I Try to use a mouse to scroll on screen it's no bueno.....any suggestions or maybe phone doesn't support it? Kernel issue though doubtful? Thanks to ANY responses
You have power source support???.....cuz One v doesn't support power to USB otg.....
Sent from my HTC One V using xda premium
handryg555 said:
You have power source support???.....cuz One v doesn't support power to USB otg.....
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
Thanks I didn't know this........ thought I was crazy or just a cheap otg cable.......
The right kernal for otg to work
if i wanted to use custom kernal that supports the use of otg and exacting how to flash-install the virgin moble cdma primo c..and what r the dangers of doing this..and is there a easier way to do all this.? i'm only after the use of OTG for some games..
aaronrw said:
Thanks I didn't know this........ thought I was crazy or just a cheap otg cable.......
Click to expand...
Click to collapse
Dude there's always thanks button.....
Sent from my HTC One V using xda premium
handryg555 said:
Dude there's always thanks button.....
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
All out for the day I guess. Seriously:what:
sentfromybrain
I'm trying to get USB Host mode working on my CDMA HTC One V (PrimoC) too. I've read that the GSM version of the HTC One V (PrimoU) supports USB Host Mode with the Titanium-KISS kernel, but unfortunately there is not a CDMA version of that kernel. I'm trying the SuperSick kernel on my PrimoC but haven't had any luck with USB Host Mode yet.
The first thing to do is make sure you have the right cable setup. From what I've researched, you need a setup like in this thread:
http://forum.xda-developers.com/showthread.php?t=1820375
The USB Y cable approach sounds likeliest to work. They have two USB Type A male connectors (the type that plugs into a computer USB port) on one end and either a USB Type A female connector or a USB Type B/Mini-B male connector on the other end. These sometimes come with external USB hard drives that need more power than one USB port can provide. You plug the main Type A male connector into your USB OTG adapter and plug the second Type A male connector into a power source like the charger that comes with the HTC One V. You connect the other end of the cable to your device (mouse / keyboard / hub / etc). As far as I know, the power pins on all the connectors on such a cable are all connected together (+ to +, - to -) so that power flows from your external power source into the phone and your connected device.
There is also mention of using USB hubs that are externally powered. Supposedly some of these also supply power back to the phone, which I'm guessing is necessary but I'm not sure. None of the powered hubs I have seem to power the source USB connection, and actually have an internal diode that probably prevents this from being possible without modification.
Of course, you still need to have a kernel with USB Host Mode support.
Apparently there is a subtle terminology difference between "USB OTG" and "USB Host Mode", mainly with regards to the fact that the HTC One V doesn't output power to the USB power pins as far as I know. See:
http://forum.xda-developers.com/showthread.php?t=1771135
lanigera said:
Supposedly some of these also supply power back to the phone, which I'm guessing is necessary but I'm not sure.
Click to expand...
Click to collapse
If you have such a hub it will make the y-cable unneccessary
to allow charging of your HOV while using USB host mode
To make USB devices work you also need to load the required
kernel modules e.g. HID, mass storage, ....
Depends on the kernel creator if it includes those into the kernel or
as separate modules
For my PrimoU kernels you will find here http://forum.xda-developers.com/showpost.php?p=28599248&postcount=2
some scripts that will load the required kernel modules.
You MUST do this before attaching the USB host cable
maxwen said:
For my PrimoU kernels you will find here http://forum.xda-developers.com/showpost.php?p=28599248&postcount=2
some scripts that will load the required kernel modules.
You MUST do this before attaching the USB host cable
Click to expand...
Click to collapse
I'm starting to wish I had bought a PrimoU instead of a PrimoC so I could just use your kernel.
I looked at your USB scripts, and I think something may be slightly different / missing in the kernel I am using (latest SickKernel) which prevents them from working for me.
I mounted /sys/kernel/debug/ and it seems I have some an msm_otg driver loaded, but there is no "/sys/kernel/debug/msm_otg/mode" control file, just two other control files.
There is a read/write "/sys/kernel/debug/msm_otg/aca" which says "disabled" that I can set to "enabled". But, I still get an empty "/sys/bus/usb/devices/" directory when I plug in my hub.
There is also a read-only "/sys/kernel/debug/msm_otg/chg_type" that says "USB_SDP_CHARGER" when my hub is plugged in and "INVALID_CHARGER" when nothing is attached.
The usbhid.ko, usb-storage.ko, and hid-topseed.ko kernel modules (which I assume depend on msm_otg working) are nowhere to be found, so I'm guessing their functionality is either built into the kernel or not included yet.
I'm tempted to try compiling & modifying the kernel source myself, but I can't until I upgrade my computer.

Second USB device

I tried connecting a USB keyboard using an USB OTG cable, but I didn't get it to work. The other USB port is in use by my external harddrive.
Is there a possibility to make the keyboard work?
Can immagine more people want to add a second USB device to their OUYA...
Dropshots said:
I tried connecting a USB keyboard using an USB OTG cable, but I didn't get it to work. The other USB port is in use by my external harddrive.
Is there a possibility to make the keyboard work?
Can immagine more people want to add a second USB device to their OUYA...
Click to expand...
Click to collapse
You'll need to buy a USB HUB (Get a powered one to future proof all your USB needs, you can get a USB 2.0 Hub pretty cheap). This will allow you to hook up at least 3 USB's to the OUYA. The Micro USB won't work for things such as hard drives or HID devices.
In the future, please use the search function before posting as this has been talked about in many other posts.
Dropshots said:
I tried connecting a USB keyboard using an USB OTG cable, but I didn't get it to work. The other USB port is in use by my external harddrive.
Is there a possibility to make the keyboard work?
Can immagine more people want to add a second USB device to their OUYA...
Click to expand...
Click to collapse
I have a 4-port hub and it works fine connecting 1 storage and 3 other usb devices
I had this issue where only one harddrive could be used and If you have a harddrive with 2 partitions ouya wont mount it. Luckily I found an app called usbotghelper which does all the above I mentioned plus read and write and ext3 support. I wish it would get submitted to the ouya store so I could use the paid version that will mount on startup.

Categories

Resources