yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] mike2nl:
Thank You Sebastian for the advise.

Will take a look at it, after i have ordered the cable by a local dealer.

Will report back...

BTW: this is a must have for us flashers and modders

---------- Post added at 08:21 PM ---------- Previous post was at 08:19 PM ----------

This is the best way on linux and unix too. There is no problem in the es file explorer with that, so long you are rooted ;)
[HTC Sensation] TamCore:
OpenSensation will get support for this. Mountpoint will be /mnt/usbdisk (see this commit). Kernel changes will be included in next nightly, but they need to be tested (currently don't have the required cables..)
[HTC Sensation] heavy_metal_man:
is the open sensation kernel compatiable with the cm10 beta? (please excuse me if that is stupid :o) if not how would we approach getting a aosp kernel that can do this? aside from hope :p
[HTC Sensation] TamCore:
It should. But the OS kernel is not available as a standalone zip. I'll release my updated AOSP kernel later (based on the newly released 3.0.40, hopefully with the required USB-OTG changes). Currently compiling it. Release will be announced via twitter.
[HTC Sensation] heavy_metal_man:
once you have it compiled would it be possible for others to make a install zip? i really appreciate you help making this aosp and sebastianFM for making this work for sense! you guys rock :cool:
[HTC Sensation] TamCore:
http://twitter.com/TamCore/status/233648265332146178
[HTC Sensation] heavy_metal_man:
downloaded already, just wasnt sure if it was flashable :) thanks so much. going to test on cm10 now :good:
[HTC Sensation] SebastianFM:
Changing mounting directory is the easiest part.

I didn't find yet why system doesn't add notification to notifications window after connecting USB Hub or USB mass storage device. I'm looking through log from Samsung Galaxy S II and I'm trying to compare AOSP source code with disassembled system.
[HTC Sensation] heavy_metal_man:
just so i dont hijack this thread i am going to post my cm10 results in the general section :) thanks again guys!

thread here
[HTC Sensation] redoano:
Will samsung s2's OTG cable fit into Sensation's ? I noticed that nokia n8's (or other) OTG cable is different. It is called micro a, while ours called micro b.
[HTC Sensation] jazzzzzzz:
Yes galaxy s2 otg cable will work fine... Nokia n8 cable is also the same but we have to shape it using file or something to insert correctly...

But buy cable from some reliable stores or check cable by inserting it in an s2... In s2 it will be shown in the notification that cable have been connected
[HTC Sensation] jazzzzzzz:
There is some problem with mounting ntfs hardisk.... When hardisk is connected it shows blank sdcard and I mount the hardisk by the command in the first Page... Then the files are showed in the folder properly.... When I navigate to different folders it is reading well.... But I cannot open any type of files its saying that file is not acceptable but there is no problem with fat32 drives
[HTC Sensation] XxXPachaXxX:
Android API Claims support can be added with the file etc/permissions/android.harware.usb.host.xml (rw-r-r)

So the framework and apps can "manage" otg features.

The file can be founded here:

http://code.google.com/p/ics-nexus-...ermissions/android.hardware.usb.host.xml?r=18
[HTC Sensation] superevans:
ROM

Does it work with TouchCream2.1 ROM ?
[HTC Sensation] TamCore:
Thanks, will add this in OpenSensation :)

Is the USB Accessory (android.hardware.usb.accessory.xml) stuff interesting for us?
[HTC Sensation] SebastianFM:
Yes, but it is only related to installed apps, not system framework or system apps.

I compared disassembled system from HTC Sensation ROM and Samsung Galaxy S II ROM, especially code related to showing notifications after connecting USB peripheral. HTC ROM isn't yet fully adapted to support USB mass storage devices. Some functions aren't implemented.
[HTC Sensation] Daka020:
Help !!!!

pleasee helpp!!

i have org cable, stick 4gb and DArkForest sensation ics 6.5.0 rom on my Sensation

how i must to configure my phone to use that otg ?? plZZz
[HTC Sensation] XxXPachaXxX:
I'm using a self powered battery usb hub with 4xAAA battery 600mah (onlite usb hub):

I've disabled auto mount (vold.fstab) and i'm using chainfire's stickmount app. all works fine.

Working: logitech mouses and microsoft keyboard+mouse.

Not working: ps3 pad and other pads
[HTC Sensation] MMoodyB:
Wonder if we need to ask for Sensation support in USB/BT Joystick Center ?

There is a test apk you can download here :

http://poke64738.iphpbb3.com/forum/...f27/usb-bt-joystick-center-test-app-t322.html

I would try it myself but I need to pick up a powered usb hub first.
[HTC Sensation] V1k70r:
If anyone could get this working somehow it would be great! Awesome work so far Sebastian.
[HTC Sensation] adamhun94:
First, this is so EPIC!

I will get a new Sensation next wait, and I want to try this OTG.

I have a queastion: if I do the 2nd method, I can connect my HDD. But, if I want to connect my pendrive, I need a converter.

Can I convert that male miniUSB into female USB?
[HTC Sensation] alien44:
[YOUTUBE]Rr4qLGbPmCg[/YOUTUBE]
[HTC Sensation] adamhun94:
Hmm nice! Where do you get that Y cable?
[HTC Sensation] alien44:
In computer store in my town ;) 15 zł - its about 4,00 euro
[HTC Sensation] adamhun94:
Thanks ;)

I hope that I will find one in Hungary too :D
[HTC Sensation] alien44:
ebay:

1LINK

2LINK
[HTC Sensation] adamhun94:
I found the white, but I wasn't sure that it would be good.
[HTC Sensation] luis4ever:
My PS3 controller is working without any app. I just connected and start to map buttons. Just make sure you press PS Button to start after you connect it. Also i have connected the HUB to Power
[HTC Sensation] XxXPachaXxX:
Are u sure? without any app? and how have u mapped the buttons? if i press ps button the pad starts the bluetooth interface...

EDIT: is your pad original? it's wired or wireless?
[HTC Sensation] luis4ever:
It's the one that comes with the PS3. and i said i mapped the buttons to play with the emulators. After i connect the DS3 to HUB the leds are blinking and if i press PS the leds stop and i can move the phone with the PS3. I will try to make a video to show you.
[HTC Sensation] redoano:
that'll be cool because i'm suffering from the same problem :(
[HTC Sensation] mike2nl:
BTW.

I use the Sgt10.1 3g with latest italian 4.0.4 ics. OTG is working naturally in that version.

If that can help Sensation in which way ever, then ask and I help out.

Cable will arrive on tuesday...
[HTC Sensation] SebastianFM:
I bought Micro USB Host OTG Cable With USB power on eBay. I don't have it yet but I'm sure this will work, it's standard USB OTG Adapter with additional USB power connector.
[HTC Sensation] jonbz:
So it's a hardware restriction that we won't be able to use some low-power devices (such as usb-sticks) without external power source?
[HTC Sensation] heavy_metal_man:
Has anyone had this functional on aokp yet?
[HTC Sensation] TamCore:
You need an aosp kernel which supports usb otg. You can try mine, but it doesn't come with a modified vold.fstab, so you might need to mount manually.
[HTC Sensation] typci:
Would it be possible to get both HDMI and USB-OTG working at the same time? Maybe if you had a micro-usb splitter (micro-usb male --> 2x micro-usb female cable)?

I know you can plug in multiple USB devices into one port (via adapter) on android devices, but with the HDMI also being usb, I don't know if the bandwidth is high enough or there might be other problems. Can think of any hardware or software limitations that might cause problems?
[HTC Sensation] MMoodyB:
Is it ok to use the same command that SebastianFM listed in the first post, but just with 'usb' changed to 'usbdisk' ? :

su

mkdir /sdcard/usbdisk

mount -t vfat -o rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,d mask=0702 /dev/block/sda1 /mnt/sdcard/usbdisk
[HTC Sensation] redoano:
I made my own cable, the same as this :D I will post how i made it later
[HTC Sensation] bazji:
Amazing looking forward to see how you made this
[HTC Sensation] gallardo5:
I was thinking about making my own cable too;) but I`m not sure, which cable is the power one. could you just tell what colour does power wire have?:) thanks;)
[HTC Sensation] bazji:
Would this cable do guys. I already have a USB otg cable but not one I can use for power.

http://pages.ebay.com/link/?nav=item.view&id=330765947484

Regards

Barry
[HTC Sensation] gallardo5:
sorry mate, but how are you going to connect anything to it? it doesn`t have a female USB socket;)

edit : "This 3-foot USB A to Micro B Y-Cable provides 2 USB 'A' Male connectors and 1 USB 'micro 'B' Male connector, providing the ideal solution for supporting the additional power required by some micro USB external hard drives connected to the standard USB ports provided by most computers."

it`s for an external HDD whit micro USB socket which needs a power of 2 USBs on PC;)
[HTC Sensation] bazji:
Lol too many beers tonight and not even.read it.

Regards

Barry
[HTC Sensation] redoano:
As this is not the thread for cables, but Sebastian's kernel's OTG capabilities, i've just posted a new guide thread for the cable here ;)
[HTC Sensation] MMoodyB:
Priceless Computing sell an externally powered 4 port usb hub that works fine with the Sensation & an OTG cable, as I bought one today. They have 2 types in stock - the one I bought is just a bit bigger than a matchbox & glossly black with 3 ports on the front & 1 on the side.

Pc World, just across from them, sell an externally powered 4 port usb hub by Logik which is cheaper, but it refuses to work with the Sensation even though it works fine in my pc.
[HTC Sensation] luis4ever:
This is how i have it working:
[HTC Sensation] redoano:
Just connect ps3 controller, the 4 lights will blink once. Then press the PS button once. Now it should be working. I tested it with Virtua Tennis and works fine and i can use it in menu.

The only problem for me is the lack of TouchEmulation to play many games such as N.O.V.A, Fifa, Real Soccer and so. Sixaxis Controller app has a great Touch Emulation mode, but it only works with bluetooth controllers. I mailed to DancinPixelStudios to courage them on supporting USB controllers :) Does anyone know any app supports touch emulation?
[HTC Sensation] gallardo5:
try USB/BT Joystick Center https://play.google.com/store/apps/...51bGwsMSwyLDEsImNvbS5wb2tlNjQ3MzgudXNiam95Il0. ;) with touch addon it SHOULD work;)
[HTC Sensation] luis4ever:
https://play.google.com/store/apps/details?id=com.poke64738.usbjoy&hl=en + Joy2touch Add on
[HTC Sensation] tessut:
USB/BT Control center is not working on my sensation

-.-
[HTC Sensation] redoano:
Same here.. no usb device found it says. Does it really work on someone's sensation?

Edit : Yesterday I mailed to Dancingpixelstudios about Sixaxis Controller app. It has a great touch emulation mode (I played many games with it) but only supports Bluetooth controllers.. As we use a wired connection, i suggested them supporting USB controllers, too.. Here's their answer:

Thanks for your suggestion. I have previously been reluctant to add USB support given that it gives native gamepad support without the app, and most users with root are able to use the app via bluetooth, but you make a good point that many HTC users are not able to use the app via bluetooth. I will certainly look at adding this feature to the app in a future release, but it could be some weeks before I get around to this feature.

Regards,

Earl
[HTC Sensation] jazzzzzzz:
I think some battery calibration issues are arising when using otg... I was using wireless keyboard and mouse by usb otg in viper 1.1 it shows that phone is charging... I continued usage for around 3 hours and battery was draining but still show its charging... When it reached 20% I removed otg and phone goes off and was not turning on.... When connecting charger the led was blinking and after 5 minutes it started and shows 60%.. I don't know how that happen in this small time... I am in stock battery...
[HTC Sensation] MMoodyB:
Please Note - I have only tried this on ViperS v1.1.0 - I have not tested it on other roms yet

Follow the steps in the last post in this thread to get your joypad to show up properly :

http://poke64738.iphpbb3.com/forum/...usb-host-api-support-to-your-device-t103.html

( Remember to change the file permissions to rw-r--r-- before rebooting )

Install & run USB Host Diagnostics:

Then download & install this to see if it picks up your joypad :

http://poke64738.iphpbb3.com/forum/...tusb-joystick-analyzer-und-quot-apk-t119.html

And then this to make sure it works :

http://poke64738.iphpbb3.com/forum/...f27/usb-bt-joystick-center-test-app-t322.html

I have asked the developer of USB/BT Joystick Center to add support for the Sensation, which he says he has done today, so we'll need to wait on it hitting the Market as it doesn't even show up for me under ViperS 1.1.0.

Please Note - I have only tried this on ViperS v1.1.0 - I have not tested it on other roms yet
[HTC Sensation] redoano:
Good news. I'm trying it now. It might be enough for me until sixaxis controller supports USB host mode. Thanks
[HTC Sensation] MMoodyB:
For documentation, dont use the in-app help as it's set to display in landscape, even when in portrait, so you wont see it all on the Sensation screen. Use the links below to read it online :

USB/BT Joystick Center Main Help :

http://poke64738.iphpbb3.com/forum/...-joystick-center-main-help-from-app-t139.html

USB/BT Joystick Center Driver Help :

http://poke64738.iphpbb3.com/forum/...oystick-center-driver-help-from-app-t140.html

USB/BT Joystick2Touch Help :

http://poke64738.iphpbb3.com/forum/...tick2touch-addon-main-help-from-app-t141.html

Download the Joystick2Touch addon here ( freely available ) :

http://poke64738.iphpbb3.com/forum/...t-f27/usb-bt-joystick2touch-addon-3-t321.html

Just be aware that the placements of buttons,etc.. in the touch addon is off / isn't perfect yet, so will take a bit of trial & error. Possibly to do with the Sensation screen size / DPI maybe?

I'll ask the developer to see if he can do anything about it.
[HTC Sensation] redoano:
Thanks for your efforts and help mate :good: I'm on vipers 1.0.1 and cannot get it working with the steps above. Created the xml file, checked permissions etc. But neither usb host diagnostics nor the other apps can detect the controller. Controller works fine in navigating menu or games with controller support (virtua tennis, shadowgun etc. ) Will flash vipers 1.1.0 now and try again. I'll start over the process to be sure that i'm doing nothing wrong..

---------- Post added at 04:14 PM ---------- Previous post was at 03:16 PM ----------

USB Host diagnostics screen all says "yes" but only device detected is "no".. 3rd party apps says "rooted" on my phone, yours says "full". I cannot understand what i am doing wrong..

PS: Installed ViperS 1.1.0 and SebastianFM's kernel, too.
[HTC Sensation] MMoodyB:
Let me know how it goes, as mine has stopped working after a reboot. Trying to figure out why.

---------- Post added at 05:26 PM ---------- Previous post was at 05:14 PM ----------

I'm not sure as I just flashed ViperS 1.1.0, booted into it & let it settle, installed the apps & added the xml to /etc/permissions/, rebooted to recovery, flashed SebastianFM's kernel, rebooted & it was working.

Played around with USB/BT Joystick Center & the Joystick2Touch addon for around an hour or two, I then had to restart my phone & it's now no longer working.

Tried clearing cache & dalvik to see if that would help but no difference.

I'm going to redo it all from scratch & take a note of every step. I can't record it unfortunately as I don't have a camera other than the one on my phone.
[HTC Sensation] MMoodyB:
Right, somehow I got it working again. How exactly I'm not 100% sure really, but I need sleep first.

I think it might have been because I rebooted with the usb otg cable+usb hub+joypad connected to the Sensation.

I'll doublecheck this again in the morning when I waken up.

Here's some screens from various apps to prove, to myself more than anything, that I didn't dream it all up :)

P.S the device id & name is different because I was using a PS2 pad connected to a PS2>USB converter, whereas I'm now using my £10 Speedlink pad :
[HTC Sensation] MMoodyB:
Right, I've confirmed that no USB diagnostic app or USB/BT Joystick Center will see my joypad if I reboot / start up my phone with the otg cable+hub not connected.

If I boot / restart my phone with the otg cable+hub already connected to it, once I plug in my joypad to the hub it is then seen by the USB diagnostic apps & USB/BT Joystick Center.

I've no idea if this is a kernel bug, rom/os bug, a problem with my otg cable or my usb hub though.

Sebastian, is there anything I can do to help track down the cause of this?
[HTC Sensation] redoano:
Thanks mate. Now i'm going to start over, first will flash vipers1.1 then will create xml file, then flash sebastians kernel and try again if it works. Also i will try a different controller.
[HTC Sensation] MMoodyB:
If you don't get it working, reboot your phone with the otg cable+hub attached. Once the rom has loaded, plug in your controller to the hub.

It should then work fine as I've just tested it just now with OpenSensation+Tamcore's latest kernel, which includes SebastianFM's USB OTG.
[HTC Sensation] redoano:
Yess Thanks :) I was going crazy until tried rebooting with OTG cable connected (but not the controller) This is the only way to get it working now :) This way it works fine. But I'm not sure ,too if this is a kernel bug or rom related. Will go on testing to understand.
[HTC Sensation] MMoodyB:
The Joy2Touch addon for USB/BT Joystick Center isn't working properly at the moment though :(

The button / joystick placement is offset from where you touch on-screen :

This is slightly annoying in games that split the screen - i.e left side for movement & right side for aiming, etc...

I think I'll create a new thread just for USB/BT Joystick Center discussion to save cluttering up this one here.
[HTC Sensation] mykar3z99:
oh my god... its amazing & cool..:good:
[HTC Sensation] frapeti:
Real On The Go

maybe the power supply could be replaced with this one?
[HTC Sensation] thegoldfishvn:
Hello Sebas! Could you please explain more about the mounting and unmounting code for noob users like me.

> I cannot connect my Hard disk on ARHD 6.7.2

> But it mounted to usb directory automatically in a CM9 ROM. But in CM9 rom, I faced with problem force close that someone mentioned before and also can not unmont it as your guide. And from the time I connect the hard disk to my phone. I can not use phone storage card to connect phone with PC anymore. When I press "turn on storage card" it keep loading and my PC can not detect storage card anymore. I seems that something wrong with unmount. Could you give some advise?
[HTC Sensation] janis_LV:
Good job Sebastian! I should receive my USB Y cable in my mail box any day soon now! :)

Meanwhile, I was wondering if anybody could test for support of Canon DSLR cameras. I've been using DSLR Controller (from CHAINFIRE on Google Play) for a while now on my Galaxy SII and I was wondering if it would be possible to run it on my HTC Sensation too. For testing one could use the Remote Release app from Chainfire, which is free!

I would be grateful if anybody could test this and post the results here!

Thanks!
[HTC Sensation] luis4ever:
If the output is at least 5V and 1A it will work without issues.
[HTC Sensation] tessut:
Yes it works ^^
[HTC Sensation] janis_LV:
Thank you tessut! This will help a lot!
[HTC Sensation] Ocaryx:
I have :

- OTG Cable connected to phone

- USB Hub with External Power and has a Micro USB to USB Cable which i use the USB part to connect it to OTG Cable )

- SANDISK 16GB Flash Memory connected to HUB (i copied some movies and pictures in the memory)

- ROMs that i tried : ARHD 6.7.1 , InsetCoin 6.0.0 , Team Venom 1.0.1

i think all the things are set right , but when i connect the otg to the phone nothing happens , nothing is in sdcard/usb folder that i created

i used ls /dev/block command and it doesn't show any sda ...

When i connect the OTG phone LED must be Orange and charging right ? nothing happens here , no led and no charging when i connect otg cable and other things connected to it .

i'm confused here .

is it OTG cable problem ?

is it the Micro USB to USB cable that i use to connect the HUB to OTG ?

or is it something in my phone ? i tried 3 roms , clean install . none worked .
[HTC Sensation] MMoodyB:
Try restarting your phone with the usb otg cable connected to it, and your usb hub connected to the otg cable.

Then plug your flash drive into the hub once the os has loaded.
[HTC Sensation] Ocaryx:
i read all the pages in this thread , so i did this too but didn't work .

the main question is LED should turn Orange and phone starts to Charge when i connect hub and OTG or not ?

cause in my phone this doesn't happen .

how can I be sure that my OTG cable is fine ? i don't have any other phone to test the OTG cable that i bought yesterday .
[HTC Sensation] vinit91:
not working on my ViperS 1.1.0

and with Overclocked kernel (v1.5.2)

:(
[HTC Sensation] vinit91:
I am using this cable..!!!
[HTC Sensation] barqqlsky89:
Hello Sebastian!

Can I connect USB stick to Sensation using this cable?

http://www.unitek-products.com/en/product_detail.php?id=142
[HTC Sensation] redoano:
Same here.. useless for me now.. Waiting for sixaxis controller app to support wired devices..
[HTC Sensation] MMoodyB:
I've tried OpenSensation, ViperS, AOKP, ARHD & a rooted stock HTC rom. The same issue is present in all of them.

Going to try the Jellybean AOKP/CM10 builds next to see if there's any difference.

If it's still the same then the issue is either with the USB/BT Joy2Touch app or the touchscreen driver I think, as the resolution is reported as " x=11/1012, y=6/940 " in the Joy2Touch test log.
[HTC Sensation] alien44:
There is write: "- No external power required for 2.5” HDD Enclosure", but I think Yes, You can use this cable, but this is unsuitable, becouse You must have a ex power supply with "USB out calbe" or usb extension cable (anyway, one more additional cable). I think, the best way is USB Y cable like on my video, then You can plug in, everything You want, or this proposed by sebastianFM :)

PS: U nas ten kabel (z mojego filmiku) kosztuje 11 zł ;)
[HTC Sensation] MMoodyB:
No difference in CM10. Same problems.

I've posted on the developers forum, so I'll try & get a camera to record a video of the issue & see what he says.
[HTC Sensation] choroy:
Tell us if it works to buy one
[HTC Sensation] barqqlsky89:
I mean that I plug the charger into a male USB and stick to female USB? Theoretically, there is an external voltage source.
[HTC Sensation] Ocaryx:
everything connected like in the picture below but when i connect the flash memory nothing happens . nothing in sdcard/usb/

i tried rebooting and then connecting flash memory after phone booted completely but that didn't worked too .

flashed 3 different roms : ARHD 6.7.2 , InsertCoin 6.0 and Viper 1.0.1 same result on all roms . i did factory reset too , i even changed my sdcard to make sure nothing exist on my phone from other kernels or other roms .

anyone had my problem ? anyone knows if i'm doing anything wrong ?

i tested all the cables and the hub they are all working separately but no luck when i connect the OTG to the phone :(
[HTC Sensation] bazji:
Do you have external power ? It won't work just connected to the phone.

Regards

Barry
[HTC Sensation] Ocaryx:
Yeah , D-Link USB Hub is connected to external power , as you can see in the picture the hub and flash memory both turned on and OTG cable works in Samsung S3 .

I can't figure out the problem ...
[HTC Sensation] calsonic3280:
Working on Elegancia rom

Thanks :good:
[HTC Sensation] luis4ever:
Your OTG Cable is the one that is not working. Why?

-Most GS3 accesories don't work on any other devices. So i suggest to buy a OTG Cable made for S2.

-There isn't current going to the phone. As you see, Led is not turning on.