yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] emilio280301:
I'm trying to install this app, the app is ok but i'm getting an error when installing instmod the joydev.ko, later i'll try it another time. thanks for your help
[Galaxy S I9000 Android Development] sztupy:
I believe you don't have to insmod the joydev, as it's already compiled in the kernel.
[Galaxy S I9000 Android Development] jenablinsky:
Thanks. I have installed a kernel with usb host already implemented ..
[Galaxy S I9000 Android Development] m4ssnet:
can you update the main post, about the question that we can use an external usb power battery ?

The right specs is 7V/(X) min how mha ?

There is already some example ebay works ? :rolleyes:

Thanks for this awesome mod, I'll try it with Nikon DSLR.

edit:

Or a simple USB hub, with a mini-USB connector and a Y-cable, and some USB power source (in this case the upstream powering works out of the box). You will need a decent usb power source though (5V/750mA at least)

Sorry, was already in the post !! LoL

Trying it
[Galaxy S I9000 Android Development] PsychoTribe:
I have OTG Nokia cable fixed for SGS, Y cable and a usb 2.0 hub. Im powering the Y cable from my pc usb port. On OTG mode and usb host driver (usb2) with disable charger ticked i get in Connected USB devices the hub and a flash drive connected to the hub but nothing in Connected mass storage devices so i cant mount it. Same thing with a card reader and a SD card on it. Some one had an idea for fixing this?

Edit: Forgot to mention it - im on Onecosmic's ICS R4.
[Galaxy S I9000 Android Development] sztupy:
Can you post me a dmesg log?
[Galaxy S I9000 Android Development] PsychoTribe:
Thats what ive got. Not sure that i did it correctly.
[Galaxy S I9000 Android Development] sztupy:
Something's definitely wrong. I think it doesn't like your hub.
[Galaxy S I9000 Android Development] Jeroemaster:
When I connect my 16GB USB stick it can't connect.

I've also tried an USB mouse and that's recognizes (most times) and after I reset the device (in second tab) it works (most times).

dmesg is from USB stick

btw, I have made a Y-cable myself with 1× usb female and 2× usb male (one with only power wires connected).
[Galaxy S I9000 Android Development] PsychoTribe:
Here is a log when i try to use it on my card reader without using the hub (my Y cable is with mini usb - same as on the card reader usb port so i dont need the hub) but the same problem persist. It apear in usb devices but not in mass storage devices and cant mount it that way :/

Tnx in advance.

Edit: Just tried that with a external HDD Seagate 500GB without the usb hub - Y cable mini usb directly to the HDD. Same thing happen. It knows what is connected, it list it in the connected usb devices but cant mount.

Edit 2: Is it normal that i need to tick the "Disable charger" to see the devices connected at all (that not give me the ability to mount them, just to see them listed in the "Connected USB devices")
[Galaxy S I9000 Android Development] sztupy:
Maybe some kind of power issue then. My actual problem is that according to the logs the device didn't even recognize anything, while you say it's actually shown in the app...
[Galaxy S I9000 Android Development] PsychoTribe:
OK. I'll try alternate power source, becouse now i'm using pc usb to power the things. I will let you know what happened then. Thanks for your time.
[Galaxy S I9000 Android Development] PsychoTribe:
This is another try. This time is with a USB Hub with own power source and im connecting extHDD, usb flash drive and a card reader with a card in it. The same thing happened as before. This time i think i managed to make the log right and its shows the devices ive connected but again no go with the mounting option. :/
[Galaxy S I9000 Android Development] Broeser:
If i connect galaxy with stock cable to usb hub that is connect to pc, my phone can found a USB drive?
[Galaxy S I9000 Android Development] jgaviota:
Have you seen this?

http://kerneltrap.org/mailarchive/linux-kernel/2010/8/31/4613580
[Galaxy S I9000 Android Development] saumilm:
Hi

Is USB Host Mode available in CM 7.1 yet?

Thx
[Galaxy S I9000 Android Development] The1Shark:
Do I need a power source for USB mass storage device ?

I am trying to connect a usb mass storage device to the phone using OTG feature.

I took a standard USB cable ( Micro type B to Type A ) and added a plug which has a standard-A receptacle on both sides. (see attached pics).

then I connected the usb mass storage device but got nothing.

Actually dmesg is saying : "root hub is not present , usb host mode is not active or not available"

I'm probably doing something wrong here but what ?

I'm using Nexus S rooted ICS stock with Matr1x kernel v15.5 and I'm using USB host controller app v0.42 which was recommended here.

So what am I doing wrong ?

Thanks in advance

the1shark
[Galaxy S I9000 Android Development] sztupy:
The attached pictures are too low-resolution for me. Btw. you have to probably use the "auto-host" mode. You also need external power.
[Galaxy S I9000 Android Development] The1Shark:
I am sorry my mistake, I re attached them.

Anyhow, I tried the auto-host mode, I also tried to connect the same method a hard drive which has it's own power with no luck..

Thanks in advance,

the1shark
[Galaxy S I9000 Android Development] Szighy:
Is a 360 wired controller working? did anybody try?
[Galaxy S I9000 Android Development] PsychoTribe:
Ok i tried with a separate power source with the Y cable and the result is the same. With or without the hub. I think it is not problem with the power. Any suggestions?

Tnx in advance!
[Galaxy S I9000 Android Development] sztupy:
It does work on ICS. There is also a topic on the Nexus S forum on how to use it and with which application it is compatible
[Galaxy S I9000 Android Development] Szighy:
ohhh...thx...i will try to find it...

Megtaláltam :D
[Galaxy S I9000 Android Development] The1Shark:
And when you do find it , please provide a link because I couldn't find it ..
[Galaxy S I9000 Android Development] Szighy:
http://xdaforums.com/showthread.php?t=1466958

here you go, not too much comments yet but i'm sure more and more people will be interested in this...

Copied from the other thread,posted by me, just to be sure if my idea/logic is good:

"hm...i'm gonna try it, so, i didn't understand the diagram show in the OP (from the dropbox link, i'm not too good in this), but would it work, if i use a USB Hub, connect the hub to the phone, a usb charger to the hub, and also the receiver?"

so i understood that the joystick would not get the power from the phone, could it get from the hub?
[Galaxy S I9000 Android Development] developersdevelopers:
For those of you that will be connecting external hard drives/thumb drives to your phone now, I suggest you check out "File Widget" from the Market (https://market.android.com/details?id=pato.filewidget&hl=en).

With this app, you can place widgets on your homescreen that will directly open to a specific folder. I find it more convenient than opening up my file manager (e.g. Root explorer) and navigating to the correct directory every time I mount something.

Right now, I have a widget which opens /mnt/sdcard/ehdd.
[Galaxy S I9000 Android Development] jamesd256:
Ok, got all my bits and bobs, just need to decide which rom.

These are the options I'm aware of:

Simplicity JVU

Teamhacksung CM9 ICS

...probably some other JVU roms

I'm looking for a stable and complete every day rom, so I'm leaning towards Simplicity. Any comments or suggestions?

Thanks.

Edit: come to think of it, I really hope there is a voodoo kernel which can be patched with this update soon, if it hasn't already happened, because I'm a big fan of voodoo sound.
[Galaxy S I9000 Android Development] AgentFour20:
I've tried mounting a flash drive with no success.

Running ICS Passion and Glitch14 kernel . Control app states S3C Drivers found , Root hub present , OTG connected but no mount points appear in USB tab .

Setup is USB male of y cable to PC USB port for power > flash drive in female USB of y cable > USB male of y cable to OTG > OTG to phone
[Galaxy S I9000 Android Development] sztupy:
AFAIK most custom roms that have USB OTG built in also have a lot of other built-in functions, like voodoo sound. Glitch and Teufel's CM9 kernel are some of them. I switched to ICS a month ago and only looked back to gingerbread to test the JVU build of this kernel.
[Galaxy S I9000 Android Development] sztupy:
Is the drive found in the "Connected USB devices" part?
[Galaxy S I9000 Android Development] AgentFour20:
I'm not sure I'll have to check when I get home .
[Galaxy S I9000 Android Development] PsychoTribe:
Ive tried and my dslr camera but did not have any luck. The result is same to that i described before and similar to this on AgentFour20. Sztupy please let me know if you have any clue for that problem. Im not a dev but i'll help with what i can.
[Galaxy S I9000 Android Development] frauhottelmann:
Try switching to Team Hacksung CM9?! :)
[Galaxy S I9000 Android Development] jamesd256:
Ok, I went with Teamhacksung's CM9 B15 with DerTeufel's kernel. You're right, it's great!

Back on topic, my initial attempts using the driver in host mode with all the necessary gender changers and the y-cable have proved extremely intermittent.

During an hour's messing around, I got it to enumerate a memory stick just once out of many attempts, and the USB2 hub just once. As soon as I plugged the memory stick in the hub, it enumerated, and showed up for a second, before a stream of messages in dmesg about over current protection came up. I was powering from a PC USB port. After this, a reboot of the phone was needed to restore basic USB functionality (mass storage in client mode for example).

I won't bother sending bug reports or dmesg stuff for now unless you really want, but I'm sure all my cables are fine, so host mode seems a little unstable at least for me.

I've ordered my OTG cable now, so hopefully things will be better once I do as I'm told rather than wire twisting.
[Galaxy S I9000 Android Development] Thunder22:
I keep getting USB otghostdata as an error when trying otg please help
[Galaxy S I9000 Android Development] wwortel:
quality of the cabling is essential

the chain is as strong as the weakest link and problems you find with the USB Host function may be caused by the cabling.

The external power supply may provide a perfect 5V and have sufficient capacity to ánd charge the phone, ánd power the usb host circuitry in the phone, ánd power the usb device(s) you want to connect.

But many usb cables look nice optically but carry no copper in their wiring. The 5V then do not make it where it is needed due to to much resistance.

Got best results here by using 3 USB plugs, two male/one female, with just a short length, say 10 cm, of the original cabling and interconnected the way as explained in the beginning this thread. I added a small 10 uF tantalum 10V electrolytic capacitor over the 5V at the interconnect point of the 3 cables to bypass any noise on the 5V. You cannot expect the hardware and software to do their thing while being supplied a noisy and much less than 5V DC.
[Galaxy S I9000 Android Development] tXX:
Simple self built cable works perfectly for me

I managed to build a very simple and not in any way trustworthy looking cable by cutting the original Samsung USB-Cable and a USB-extension cable in two peaces each and connecting the four wires of the female half of the USB-extension cable and the Samsung USB-cable. Furthermore I found a 5V 1A power supply and connected it's red and black wire to the red and black wires of my self-built cable. This is what is looks like:

I tested a 16GB Memory stick, a USB-Mouse, a USB-Keyboard and a SD-Card reader. The keyboard kicks my phone in the nuts and makes it reboot instantly which is OK because it's probably broken, all other devices work perfectly well. I have to activate host mode manually, though. OTG doesn't seem to notice the cable. So all in all: Big thanks to sztupy man, I love this function!

Regards

tXX
[Galaxy S I9000 Android Development] pl4cid:
Is there any usage where i dont need external power source?

DSLR Controller needs external power, does it?

Anyway nice idea, but for me not suitable if a power source is needed..
[Galaxy S I9000 Android Development] vpx:
Hello,

I have some experience for people, who would like to try USB OTG on Galaxy S.

I hope it helps somebody to HAVE FUN with USB OTG on SGS.

I found USB Y cable (with mini USB), which was enclosed with my hard drive

1) I tried Axago USB 2.0 Brick Hub, but it was blinking (reseting) all the time. I tried plug USB Flash into USB Hub, with no luck. Only once it seemed to work correctly, but after one second USB Hub ad USB flash drive disappeared. I tried USB Battery powerpack(output 1A), or 220V USB charger (1.2A), but with the same results.

2) so i bought USB Wiretek Y cable for 2-3 bucks, with USB female instead of mini USB male. I plugged USB Flash drive into female and everything started to go well.

3) plugging DSLR Canon EOS 40d into the same Wiretek Y Cable also working fine.

There was problem with DSLR Controller app(show alert, that no compatible camera was found), but I searched in original Chainfire thread and found, that you have to try turn on DSLR Controller App and DSLR Camera in the same time. Then everything works fine.

4) tried to connect USB mouse and connect with RDP to my servers ! Everything works EXCELLENT !

5) tried to connect Anyconnect Wireless mouse (I plug tiny USB receiver into USB Y cable(female)) and IT WORKS without any aditional drivers or stuff.

All the time I used Monkey Powerpack for USB devices and Nokia CA-157 (with edges cuted) USB OTG cable, CM9 and Semaphore 0.7.1 kernel on SGS

Does anybody tried original USB OTG Cable for SGSII on SGS ?
[Galaxy S I9000 Android Development] PsychoTribe:
Ok, finaly i succeed :) On Onecosmic's ICS 4.1 i tested other kernels - semaphor 0.7.5 and Devil 1.0 BFS. On both the USB OTG worked but on semaphor almost every time i mount a device the phone reboot it self and i found that wifi tethering is not working. On other hand devil kernel had no problem with tethering and the usb otg works without reboots (but i think it cause some hangs). So far the devices i tested with usb otg was :

2 flash drives - one of then not working the other one works

External USB HDD - found and have an option to mount but it gives an error on mounting

Usb card reader - works so far with SD card in it

Usb wireless mouse - not detected
[Galaxy S I9000 Android Development] jamesd256:
EDIT: I didn't read the above properly. I tried Semaphore, despite PsychoTribe's problems.

With Devil, I tried in host mode, and had very patchy results. I then got my OTG cable, and results were still patchy. Sztupy's app was unstable, slow and prone to crashing the phone, I couldn't change to OTG mode until after about 3 force kills, and even then, while I could enumerate devices, I couldn't mount or use them.

Over to Semaphore, everything is fine and stable so far. Tested devices:

o Canon 550D - Enumerates, haven't tried flying DSLR controller yet, will buy.

o Mouse - No need to change to USB 1.1 mode in the driver - works great, and instantly. Functions very nicely - even the mouse wheel. Doesn't enumerate when any USB 2.0 devices are plugged in too, as expected.

o Two different Micro SD readers - both mounted and functioned fine

o A Behringer UCA202 Dac - enumerates as CODEC / USB Audio

It still seems to be important to observe the right order of connecting things, but things look very promising.

Donation as promised.
[Galaxy S I9000 Android Development] drvector:
You said that you can attach Behringer UCA202 Dac, so You can listen to music with that DAC connected?
[Galaxy S I9000 Android Development] anukilimanoor:
I'm on CM9 BUILD 16, to get USB host mode (OTG) which kernel should I flash... And is there any extra App needed...

I have an OTG cable. after installing the proper kernel will it be able to connect USB mass storage, mouse, keyboard etc...
[Galaxy S I9000 Android Development] Jens1969:
Do you have the rest of what is needed also? If not: please read the OP. Having all cables and stuff, I'd say this kernel will do. Just wait till someone reports back here. There is a kernel by Devil, that is quite up to date with TeamHackSung repository. But please look in the appropriate thread for support.
[Galaxy S I9000 Android Development] jamesd256:
Short answer: No.

Long answer: if you could, it wouldn't really have any mainstream uses. Just a bit of fun for people who like to hack about for the hell of it.

But this is an area of interest of mine, so I'll explore the options with you :) Probably not what you had in mind, and maybe I'll never get round to hacking about with this stuff, but you never know.

First, I need to study the dmesg output further to see what the kernel actually did with it. In theory what this means is that if the kernel was patched with a driver which supports this hardware, or already includes one, at least it might be possible to write a native (Linux) binary that runs from the console and accesses the device. You should probably be able to compile an existing console audio player for ARM if you're lucky.

There's a good chance this could be made to work. If you went ahead and got some kind of X11 running stably on the device, you might even be able to run standard GUI Linux audio players through an external DAC. Of course, with no X11 framebuffer available, you would either need to have a VNC server/client arrangement, or get one of those USB -> VGA adapters working, which has been done before by the crazy German (sorry crazy German).

For all I know, it may be possible to write an android application that uses the hardware once its driver is loaded. This would depend on how far support goes in the NDK for low level access to exernal DSP devices. This is more of a long shot.

Stuff to explore.
[Galaxy S I9000 Android Development] Romonster:
Will there ever be ntfs support?

Even if read only, that would be awesome.
[Galaxy S I9000 Android Development] anukilimanoor:
Mate I read the OP and Im aware of all those cables and stuff.

My qstn is. Is it possible to connect USB Storage, Mouse, Keyboard directly with OTG cable... I think in SGS2 it is possible. check this video

[YOUTUBE]8_BOLd8T3o8[/YOUTUBE]
[Galaxy S I9000 Android Development] sztupy:
Yes there will
[Galaxy S I9000 Android Development] jamesd256:
I'm sure Jens was trying to help. I have read your posts, and honestly, if you have read the necessary information in the thread, I have no idea what your question is.

I'm not saying this to annoy you or tell you off, but it really does sound like you need to do some more reading of the thread. Sorry.
[Galaxy S I9000 Android Development] Jens1969:
OK. Got your point. Right now you need an external power supply.
[Galaxy S I9000 Android Development] anukilimanoor:
Thank you mate...
[Galaxy S I9000 Android Development] jamesd256:
Having tested everyhing successfully with power from a PC USB slot, I have done some more testing with a battery box.

How do I know you need external power? Because I read the second sentence in the very first post of this thread. Cunning! :P

Anyway, it was a different story with the battery box unfortunately. It's obviously a fickle thing, because the battery box measures the same 5V as the PC USB port, and powers my USB lava lamp with equal brightness. I would have thought it would be a cleaner power source too.

Unfortunately, nothing enumerates, and I get a never ending loop of messages in dmesg including:

"over current condition is changed"

and

hub 1-0:1.0:debounce:port 1: total 100ms stable 100ms stable status 0x0
[Galaxy S I9000 Android Development] veilside10:
will it work with this cable and adapter? Or do i need a cable where it says OTG and a USB Hub?
[Galaxy S I9000 Android Development] frauhottelmann:
Works for me :)
[Galaxy S I9000 Android Development] jamesd256:
@veilside10, don't forget to choose Host mode, but you probably knew that.

I had no such luck getting a non-OTG cabling set up working, but it probably depends on the quality of the cables.

It can also depend on the power source and kernel as I have found out.
[Galaxy S I9000 Android Development] veilside10:
Thank you guys, i ll order them right now :)
[Galaxy S I9000 Android Development] pg2150:
great work sztupy :)

it work great with me on card reader but in flash disk or any hard disk the mount button is not showing ?
[Galaxy S I9000 Android Development] HugePotato:
Hello guys,

I have a problem, I made myself an OTG cable(which holds quite firmly) and I use my laptop USB port as external power. Everything I plug into phone(with Host mode on) is recognized(it includes 4 pendrives and 1 memory reader) but there is no option to mount them :/

I made OTG from Samsung original cable and female usb(I got no doubt its ok). Tell me if I did anything wrong please.

My SGS is running onecosmic 4.1 with Platypus(it has USB host drivers).

EDIT: Would changing ROM make a difference?
[Galaxy S I9000 Android Development] Szighy:
ok, i got an idea, i couldn't find an OTG cable, so, what if i have a usb hub, i'll power it from my pc, i insert the joystick in the hub, and the stock samsung usb cable in the hub...will it recognize? or the OTG cable is a must have?

Do I have any chance to work or is it completely wrong?
[Galaxy S I9000 Android Development] jamesd256:
I had a similar problem before I switched kernels from Devil to Semaphore, but not exactly. I did see a pen drive with no mount button once, but in Devil I would press mount and it wouldn't do anything.

It might be worth trying a different kernel. You don't have to ditch your whole rom to do this.
[Galaxy S I9000 Android Development] HugePotato:
I will definitely try it in the evening. I don't have time at the moment. Thank you for the suggestion :)

EDIT: Thank you man, Semaphore works great, everything is working :) (And SGS speed is way better now). Got only one question, I won't propably use it anyway, but is there a way to "click" menu button from mouse itself? I only found it possible to use "search button" on my Logitech Mouse as "back button". But there is no option to use "home" nor "menu" buttons :/ At least pendrives are working correctly :)
[Galaxy S I9000 Android Development] xenden1987:
Hi all, Could it work on a galaxy s plus?

Scorpion processor, Adreno 205 GPU, Qualcomm MSM8255T Snapdragon
[Galaxy S I9000 Android Development] FadeFx:
I think it was discussed earlier, it can not be ported as the USB controller is different.

--------------------------

tapatalked from vizio vtab1008
[Galaxy S I9000 Android Development] sztupy:
No, this is only for Exynos Hummingbird S5PV210 processors
[Galaxy S I9000 Android Development] Syntaxer:
Hi guys, please can I use OTG cable from SGS2 i9100 ?

this one?

Thanks
[Galaxy S I9000 Android Development] sztupy:
yes you can
[Galaxy S I9000 Android Development] humberos:
Hey @sztupy!

First, thanks to your hard work!

Do you know any Y cable with 30pin connector?

I ported the BUILD 5 to Galaxy Tab P1000 (without power management yet).

Cheers!
[Galaxy S I9000 Android Development] sztupy:
Not really. You can use a setup like this:

http://sven.killig.de/android/N1/2.2/usb_host/IMG_0001_1.JPG

(Note that the Y cable is connected to both ends of a powered hub)
[Galaxy S I9000 Android Development] golanster:
hi

first let me say thanks for all the hard work

second, i have read thrugh this thread front and back and tried everything but nothing works for me

i have an otg cable, a y cable(that i have made myself) and a 5v and a 6v charger

i'm on cm9 b16 with devil 1.1 kernel

i use a usb2 card reader connect it to the y cable and then to the power supply, i start the usb host app and set to host or otg connect to the phone and nothing

what can be wrong?

i made the y cable very short cause i have read that some times the wires are thin and dosnt support the 5v all the way

i have tryed glitch and semaphore and original kernel(from here b5) still no luck

can anyone help?

i have tried to connect the card reader to my computer and found out that it doesnt recognise the usb device. so probably its my home made y cable fault