yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] rydzu:
So this means it is possible to connect keyborad & mouse at the same time to SGS and get it to work ?

Second question is how to check if usb hub (active) gives power upstream?
[Galaxy S I9000 Android Development] Galane:
I've been looking to see if there's USB OTG support for the Samsung Epic 4G (not touch) but despite including -touch many searches (including the one for this forum) insist I must have really meant to search for the Epic 4G Touch. :P

So yea or nay on OTG for the Epic 4G?

Dunno what I would do with the capability other than plug in an external drive for movies.
[Galaxy S I9000 Android Development] hedpe:
long time no chat, sztupy! I disappeared while I got my hands on a SGSII. I managed to get one on eBay, and then I accidentally bricked it (the hard-brick kind, not the soft-brick). Anyway, it's fixed now.

I rebuilt the kernel with my necessary wireless kernel modules. I got a USB OTG cable, which the SGSII recognizes, then I plug in wireless device:

<3>[ 726.011657] usb 1-1: device v0411 p017f is not supported
<6>[ 726.012054] usb 1-1: New USB device found, idVendor=0411, idProduct=017f
<6>[ 726.012145] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
<6>[ 726.012268] usb 1-1: Product: (CEWL 1)
<6>[ 726.012329] usb 1-1: Manufacturer: BUFFALO
<6>[ 726.012390] usb 1-1: SerialNumber: 12345
<6>[ 726.021087] usb 1-1: ath9k_htc: Firmware htc_7010.fw requested
<6>[ 726.173889] usb 1-1: ath9k_htc: Transferred FW: htc_7010.fw, size: 72992
<6>[ 726.241180] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 45 credits
<6>[ 727.044067] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.3
<7>[ 727.044158] ath: EEPROM regdomain: 0x6a
<7>[ 727.044219] ath: EEPROM indicates we should expect a direct regpair map
<7>[ 727.044342] ath: Country alpha2 being used: 00
<7>[ 727.044403] ath: Regpair used: 0x6a
<6>[ 727.064666] ieee80211 phy1: Atheros AR9280 Rev:2

What this shows is that the SGSII successfully transfers the firmware to the card, unlike the USB S3C host driver put together by Kevin H and yourself for the Nexus S. Again, when I try with the S3C host driver it fails with the error:

<6>[ 708.731705] usb 1-1.1: New USB device found, idVendor=0411, idProduct=017f
<6>[ 708.731906] usb 1-1.1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
<6>[ 708.732230] usb 1-1.1: Product: (CEWL 1)
<6>[ 708.732404] usb 1-1.1: Manufacturer: BUFFALO
<6>[ 708.732766] usb 1-1.1: SerialNumber: 12345
<7>[ 708.735538] usb 1-1.1: usb_probe_device
<7>[ 708.735742] usb 1-1.1: configuration #1 chosen from 1 choice
<7>[ 708.736253] usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
<7>[ 708.738142] usbserial_generic 1-1.1:1.0: usb_probe_interface
<7>[ 708.738474] usbserial_generic 1-1.1:1.0: usb_probe_interface - got id
<7>[ 708.738912] ath9k_htc 1-1.1:1.0: usb_probe_interface
<7>[ 708.739241] ath9k_htc 1-1.1:1.0: usb_probe_interface - got id
<3>[ 708.999596] otg_err: in s5pc110_otghcd_urb_dequeue()::00508
<3>[ 709.000670] => fail to cancel_transfer()
<7>[ 709.002489] usb 1-1.1: hcd_unlink_urb d2f7c780 fail -1
<7>[ 709.004372] usb 1-1.1: khubd timed out on ep0out len=0/4096
<3>[ 709.005181] usb 1-1.1: ath9k_htc: Firmware - htc_7010.fw download failed
<4>[ 709.012208] ath9k_htc: probe of 1-1.1:1.0 failed with error -22

Would you be willing to help me debug this now that we know it works on the SGSII? I tried to get a response from Kevin H via e-mail, where you were CC'ed, but he never responded.

What is the right thing to do to debug this? Would usbmon on both help?
[Galaxy S I9000 Android Development] sztupy:
Well, there are some differences, like on the SGSII your device connects to 1-1, but on the SGS it connects to 1-1.1, and on the SGS there is also an usbserial probe.

Currently I have a lot of other projects running, so I don't think I can help right now.
[Galaxy S I9000 Android Development] hedpe:
thanks for the response. I'll see what I can do. G'luck with your other projects
[Galaxy S I9000 Android Development] NDeaz:
They are suitable to make a usb host?

http://www.ebay.com/itm/OTG-USB-Host-Cable-Adapter-for-Samsung-Galaxy-S2-i9100-SGS2-/280884535558?pt=UK_MobilePhones_MobilePhoneAccesories_MobilePhoneDataCables_JN&hash=item416605e106

http://www.ebay.com/itm/Mini-USB-3-0-4-Port-Hub-5Gbps-Power-Adapter-Cable-NEW-/120881341198?pt=US_USB_Cables_Hubs_Adapters&hash=item1c2516e30e

http://www.ebay.com/itm/Microdisk-U..._USB_Cables_Hubs_Adapters&hash=item2a1dce235e

http://www.ebay.com/itm/Microdisk-USB2-0-Y-Cable-2-A-Male-to-Mini-B-5Pin-Male-Model-U5-/180888675166?pt=US_USB_Cables_Hubs_Adapters&hash=item2a1dce235e

Thanks.
[Galaxy S I9000 Android Development] wojtaz131:
Hi.

I have actually connected HDD 1TB WD with 220v + otg cable + i9000 CM9 Devil Kernel. It doesn't works. Set to OTG MODE. OTG cable is working, checked on i9100. What I do bad?

Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
[Galaxy S I9000 Android Development] fartlec:
i'm not sure why, but i'm not able to make it work with devil and semaphore. i'm using latest glitch (you'll find it in one of the latest pages, the developer hasn't upadated the first page) and it works for hd, keyboard and mouse
[Galaxy S I9000 Android Development] Stevethegreat:
Some of us have managed to get hold of large batteries for our SGS phones (in my case even "larger" than SGS 3's battery capacity) so if the phone was somehow able to also function as the power source for our OTG needs it would have virtually no effect to our battery life.

So if I may ask, is it physical/engineering the problem that causes this OTG hack to require external power or "logistic" (i.e. the fact that the phone "normally" have a small battery)? If it is the 2nd is this someting that can or will be fixed on the future? Because -if yes- it would be pretty good news, it would make OTG, on the Galaxy S, usable for the most part...

Thanks for your great effort, regardless.
[Galaxy S I9000 Android Development] FadeFx:
Physical, the needed connections are not there.

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

tapatalked from vizio vTab1008
[Galaxy S I9000 Android Development] wojtaz131:
Hi.

I have got stupid question. If I connecf usb y cable + 5v charger + simple pendrive or disk hdd I need debug in adb wirelless? I don't do this and maybe this doesnt works...

Wysyłane z mojego GT-I9000 za pomocą Tapatalk 2
[Galaxy S I9000 Android Development] humberos:
Galaxy Tab P1000

Hey @sztupy!

I ported USB Host mode to Galaxy Tab P1000 models.

But the power management is different on sysfs.

The path for Galaxy Tab is:

/sys/devices/platform/sec_battery/power_supply/battery/disable_charger

Please, can you update your application?

Greetings from Brazil!
[Galaxy S I9000 Android Development] ewingr:
Does the setup to use this REQUIRE the use of a hub?

I am attempting to usethe host mode via Devil Kernel, .079. I am using an OTG cable to USB to Camera. Not working.

I do get DSLR controller to work via my ASUS tablet, and no hub used.
[Galaxy S I9000 Android Development] frauhottelmann:
I am just gonna quote here...

This is not an Asus tablet...
[Galaxy S I9000 Android Development] ewingr:
Yes, I know it is not an ASUS, and I read that post before posting my question.

But I do know that others have posted are able to use SGS phones without a hub, although i don't know what kernel or ROM they are using.
[Galaxy S I9000 Android Development] sztupy:
Read the first few posts about how to connect to devices without using a HUB, and about the drawbacks of not using a HUB.
[Galaxy S I9000 Android Development] sztupy:
Especially useful is this image:
[Galaxy S I9000 Android Development] ewingr:
Thanks, sztupy...I'll head that direction now.
[Galaxy S I9000 Android Development] motorrad:
Hi sztupy

Can You update Kernel Driver for

I9000XXJW4_I9000OXAJW4_XEU

for Galaxy S GT-I9000 Please ?

Many THX for former Versions.

:cowboy:
[Galaxy S I9000 Android Development] sztupy:
Kernel source hasn't changed for official GBs, so there is no need for a new build.
[Galaxy S I9000 Android Development] humberos:
Hey @sztupy!

Can you help us (Galaxy Tab users) with power management?

https://github.com/humberos/android...mmit/23379fcda3f5f791278c6106063d4dad97132c9e

I really appreciate your work!

Thank you!
[Galaxy S I9000 Android Development] Rahlp:
Still no chance to get direct power to OTG?
[Galaxy S I9000 Android Development] motorrad:
Flashed V 5 but got a Bootloop with rooted I9000XXJW4_I9000OXAJW4_XEU Version
[Galaxy S I9000 Android Development] robo-d:
This works in AOKP ROM?
[Galaxy S I9000 Android Development] vpx:
I think so, I tried not the newest AOKP, but some older version and everything works OK, but functionality depends on kernel. I prefer Semaphore kernel with precompiled dirvers of USB mouse or X-pad(touch them in kernel config app - Semaphore).
[Galaxy S I9000 Android Development] robo-d:
Ok, thanks! :)
[Galaxy S I9000 Android Development] lillejord:
And word on actual USB Host API support? I have an program I want to use (ANT USB Service) that requires the API to work. USB Host Controller identifies the ANT+ USB stick properly, but the driver/software need the API to work.
[Galaxy S I9000 Android Development] sztupy:
It's actually simple:

1. Download this file: http://code.google.com/p/ics-nexus-...ermissions/android.hardware.usb.host.xml?r=18

2. Put it inside /etc/permissions (or /system/etc/permissions)

3. Reboot

Done. Now you have usb api support.
[Galaxy S I9000 Android Development] aaprocks:
Hi there,

I've been desperately trying to get through this! I have got with myself all the necessary hardware (The OTG cable, externally powered USB hub with upstream power power support), have the OTG app, busybox installed

I'm running the Devil Kernel 3.1.1 on ICS 4.0.4 by TeamNyx for Galaxy S GT I9000

Now the thing is:

Every time I set up everything, it says, root hub present, usb host mode is active. actual cable state says otg cable, it shows s3c usb host driver found, i have the operation mode set as otg mode

Now that, everything seems to be ok but i am not able to get my pendrive/hard drive detected (both in fat32)

Could some one please help me with where am I going wrong?

P.S. the otg cable works fine with SII

edit: when I try to stop the usb charging, it does not stop even on selecting the option!
[Galaxy S I9000 Android Development] NDeaz:
Hello, I tried to use the charger 5v 500mA, the phone lags terribly.

Here's my question: is all right for 1A?

Sorry for my bad English.

Thanks.
[Galaxy S I9000 Android Development] Cruonit:
Wow:

SGS + 3.5mm TV-Out RCA + OTG (keyboard/mouse) + TeamViewer == a remote PC(Thin client). Just looking for a good android IDE to do development on my phone :)

keep on the good work
[Galaxy S I9000 Android Development] sztupy:
yep, 1A is still within limits
[Galaxy S I9000 Android Development] puneetbhagat:
Awesome.. that's really marvelous work you've done.

Thanks

SGS I9000 Tapatalked
[Galaxy S I9000 Android Development] DarknessWarrior:
ok, so i've searched and i haven't found anything: is there any way to mount s NTFS HDD on my i9000?

i tried with UHC but it said "MOUNT: INVALID ARGUMENT"

this is a really cool feature, but it's kinda useless for me if i can't mount NTFS as all my USB sticks and extHDDs are NTFS because of FAT32's single file size limit.
[Galaxy S I9000 Android Development] anonymusneo:
Hi

i had usb host mode and did exactly how u said , but still i cant access USB .

I have attacked screenshots

fone - samsung galaxy s i9000

ROM - Doc's Master ICS V12

kernel - icy Glitch 3.1.10

if i use OTG mode or any other mode it says "USB Host mode not active or not available!"

thankx in advance

screenshots are here

http://xdaforums.com/showthread.php?t=1468531&page=14

---------- Post added at 12:37 PM ---------- Previous post was at 11:38 AM ----------

latter i tried kernel from here "http://android.sztupy.hu/usbhub.html"

build 5 for SGS CM9

im still getting the same thing , it is not working
[Galaxy S I9000 Android Development] NDeaz:
Hi, why my devices work when the power

goes from the computer, and if from usb

charging (5V 1A), then it does not work?

Thanks.
[Galaxy S I9000 Android Development] Brignoud:
Me too have all setted up correctly and it says, root hub present, usb host mode is active. actual cable state says otg cable, it shows s3c usb host driver found

But, with semaphore kernel 2.06s and Paranoid 2.10 never get pendrive active on with my i9000.

Does anybody?
[Galaxy S I9000 Android Development] Cruonit:
Any plans to release an CM10 version ...
[Galaxy S I9000 Android Development] nommy:
DerTeufel has added the driver to his HellyBean kernel. Works like a charm on latest HellyBean rom (it is based on CM10) :good:
[Galaxy S I9000 Android Development] muktheo:
would give tutor sir..?bcz now Im on HB too and usb host still not read..im using usb host controller app..
[Galaxy S I9000 Android Development] nommy:
It works great on my i9000 with HB. How is your hardware setup? If you use a Y-cable, try to interchange the two big male USB connectors (the one that goes to power supply with the one that goes to your OTG cable) this did the trick for me.

Also try to connect in this order:

1. connect only OTG cable to phone, start USB Host Controller app. Phone should be in host mode and cable should be detected.

2. connect Y-cable to power supply.

3. connect Y-cable to device (eg. hdd or USB-stick).

4. connect Y-cable to OTG cable.
[Galaxy S I9000 Android Development] Jens1969:
If you have thoroughly read the OP, please ignore this. If not...

Everything is well explained in the OP and 2nd post. Make sure you have the needed equipment: Especially some power supply has to be included.
[Galaxy S I9000 Android Development] Brignoud:
Nommy, yours informtions here and on HB Thread are clear but, could you take a picture of your equipment and post it?
[Galaxy S I9000 Android Development] nommy:
Here we go:

another tip: in some rare cases, my hdd does not get detected, then it helps, to switch to client mode and back to OTG mode in the Host Controller app.
[Galaxy S I9000 Android Development] SamHaLeKe:
...........

---------- Post added at 04:29 PM ---------- Previous post was at 04:28 PM ----------

Hi nommy,

Can you please give me the product name of the external USB power supply you use (a link would do fine).

Thanks
[Galaxy S I9000 Android Development] nommy:
It's a "Wicked Chili" USB battery. I got it from Amazon. Batterys like this also come from other manufacturers.
[Galaxy S I9000 Android Development] waleed794:
SHW M110S

Hey stzupy it would be nice if you port this kernel for korean galaxy s (Anycall Galaxy S SHW M110S)
[Galaxy S I9000 Android Development] Galane:
Can this be made to work on the Epic 4G?
[Galaxy S I9000 Android Development] veilside10:
hey guys, i had your nice mod at CM9, but i changed to CM10. Will there be support for CM10 soon? I really would appreciate. Thanks
[Galaxy S I9000 Android Development] dafunkydan:
Wow what a great work! Applause! :good::good:

Tomorrow Night im startin my backpack-tour, and wanted to manage the pictures on my canon powershot directly with the phone.

the last days i tried to collect everything together - and now it seems theres only one step missing. can you give me please a quick short hint? i think everything is set up right, and only one little tickle or somethings missing :mad:

In USB Host Controller I set the Operation mode to OTG, everything else is left as it is.

Now, my Canon appears in the USB-Tab as "Connected USB device" - Heureka!

But (of course) i cant access the disk, as it isnt connected as "mass storage". on pc it is.

How do i get it to work that i can mount the canon / the sd-card as mass storage?

Thank you so much in advance for any help!!
[Galaxy S I9000 Android Development] pooria.nobahari:
Thanks alot

But there is a problem for me.the permission.

the permission is for computer.so i cant open an media file from my flash.and i just can open my flash with root explorer.

the permission of the folder (for example ehdd) is rwx------.but original permission is ---rwxr-x which is the android permission.

is there any solution?
[Galaxy S I9000 Android Development] benoitb85:
Supported file systems

What file systems are supported for the external HDD ? I guess FAT32 is supported, what about ext3 and ext4 ? It depends on the kernel ?
[Galaxy S I9000 Android Development] pooria.nobahari:
No answer?Nobody have solution?
[Galaxy S I9000 Android Development] sztupy:
Can't root explorer change permissions?
[Galaxy S I9000 Android Development] pooria.nobahari:
No. Can't it be because of hub?i use Y cable and Hub. can you help me?
[Galaxy S I9000 Android Development] dukuletz:
Hello, i'm using CM 10 nighty now and i want to try out this OTG feature.

I'm wondering if anyway this will works using an portable battery? I have a portable battery pack Sanyo KBC-L2S, this thing output for each USB port 500 mA.

I saw that the developer recommend at least 750 mA.

Anyone tried with 500 mA?

I'm interested in reading an USB stick, that's all.
[Galaxy S I9000 Android Development] sztupy:
Should be enough. Disabling the charger will help though.
[Galaxy S I9000 Android Development] dukuletz:
Thanks! I will buy all the cables it needs now and come back with a review!
[Galaxy S I9000 Android Development] dukuletz:
I'm back. So i bought cables and try the OTG function and it works with my USB Flashdrive..yey!!! :D

But I'am having trouble to make it works with mouse or keyboards or any other devices. They are regconized by USB Host Controller app, but they don't do anything.

I have the app set on Auto-host mode, using an external power of 1A (2 USB in parallel). And i don't have an USB hub, just connect the device direct to OTG cable.

And my ROM is CM 10 JB 9.Nov.2012 nighty + Semaphore 2.5.0s with huge memory pach.

Any ideas why is not working?
[Galaxy S I9000 Android Development] xDDE:
Sd card is not mounting to /mnt/sdcard

Hello.

I have installed CWM Kernel Update (build 5 galaxy s mtd/cm9, based on teamhacksung's ICS Build 14: http://android.sztupy.hu/dl/usbhost/kernel_usbhost_build5_cm9galaxysmtd.zip).

Previously my internal sd card was mounting to /mnt/sdcard. After kernel update sd card became to mount to /mnt/emmc. So no one application can't see sd card and data which is located there.

My device is Samsung Galaxy S i9000, Android 4.0.4, CyanogenMod 9.1.0-galaxysmtd (Aug 28, 2012).

Please, help me if someone faced similar problem.
[Galaxy S I9000 Android Development] robo-d:
This work in JB? (Elite Rom)

Thanks!
[Galaxy S I9000 Android Development] ZenInsight:
I am on CM9 nightly for Galaxy S Epic Sprint first gen. Which one do I want. the build 5 GalaxS MTD one sen.t me into a boot loop and I had to Odin my way out. Recommendations?
[Galaxy S I9000 Android Development] ZenInsight:
For Samsung Epic 4G users. Testing this here:

http://xdaforums.com/showthread.php?p=34602903#
[Galaxy S I9000 Android Development] wapcamer:
Hi,

great job so far :)

I tried to flash it on my CM10 nexus S, but the phone wouldn't boot and stays stuck at the Google Logo.

No big deal, I could simply reflash my older kernel and it is fine again.

I just miss the usb-host feature and would love see it one day on the phone for my RawVision app.

Thanks a lot and keep up the great work.

Cheers
[Galaxy S I9000 Android Development] devasenan200:
Can u pls port it to galaxy sl I9003....we will be vry thankful to u....

---------- Post added at 09:02 PM ---------- Previous post was at 09:00 PM ----------

Here is the development thread..pls look on to this....www.xdaforums.com/showthread.php?t=1244744
[Galaxy S I9000 Android Development] ZenInsight:
Of course...dumb question. Can I try this on my Sprint Samsung Epic 4G? I'm using the Cyanogen ICS ROM right now.
[Galaxy S I9000 Android Development] __Miguel_:
Can't list or mount USB devices

Hi there, guys.

I hope you can help me out here. I just got myself a single-connector (male micro-B to female A) OTG cable (finally, it took forever for a cable like that to appear on my country). My main use will be with an N7 (where it's working perfectly), but I'd also be able to use it with my i9000.

I come here from the SlimBean 4.2.1 thread (I'm currently using RC1, standard Semaphore kernel), by recommendation, to see if I'm missing something that prevents me from using OTG.

For troubleshooting purposes, I must say I have already got the USB Host Controller app. So far, I've managed to make the phone recognize it has drivers available (S3C high-speed and low-speed, plus DWC), that the cable connected to it is in fact OTG capable, and realize the root hub is present (that one took a reboot, for some reason) and that USB host mode is active. Also, I'm connecting the OTG cable to a 7-port powered hub (yes, I have checked the power supply), where I connect the USB devices.

Sadly though, the phone doesn't seem to be able to list connected USB devices, no matter which operation mode or host driver I choose, and that's my problem, because not only can't I list them, I also can't mount anything.

Is there anything I might be missing? Thanks in advance for any help!

Miguel
[Galaxy S I9000 Android Development] fefuzzo:
I have the same problem...how i can resolve??? :( now i'm using cyanAOSP rom (android 4.2.1) with semaphore kernel...
[Galaxy S I9000 Android Development] palimpa:
Are your USB devices, which you try to mount, formatted with FAT32 ? My USB-Sticks are formatted with FAT32 and they are listed and I can mount them. Currently I`m using Mackey ROM 2.4.5 with Mackay kernel 0.236. The Mackay kernel 0.236 has USB OTG support, but you can use any Kernel for this ROM which has USB OTG support and mount FAT32 USB Sticks or FAT32 HDDs, if you use an external power source.

I also used other 4.2.1 Custom ROMs and different kernels with USB OTG support and never had any problems to mount FAT32 USB Sticks.
[Galaxy S I9000 Android Development] __Miguel_:
That was one of the first things I checked out, since I know Linux doesn't do too well with NTFS, even when there are drivers available. Turns out, it was properly formatted in FAT32.

I have a bigger problem, though: it's not only the mass storage devices that aren't showing up in the list: I can't even enumerate USB devices, meaning not even the USB hub shows up in the list of devices.

I'm guessing I'll probably need to switch kernels and try it out. It will have to wait until SlimBean reaches RC3 or final, though, right now it's a bit of a bumpy ride with RC2.

Thanks for the input, btw!

Miguel
[Galaxy S I9000 Android Development] _Legend0:
Sorry for maybe not-related post but

as long as none helped me, I'm placing here my problem : http://xdaforums.com/showthread.php?p=36189775#post36189775

and sorry for my bad english.
[Galaxy S I9000 Android Development] Galane:
Try a different USB hub or leave out the hub and just use a USB cable with the extra type A plug for power. If you're using a Y cable to power the hub, make sure you have the connector with the data lines connected to the USB OTG cable.

Some of those Y cables have the same thickness of cable for the power only connector, can be hard to tell which end is power only.
[Galaxy S I9000 Android Development] __Miguel_:
Sadly, I only have one powered USB hub available (the hub has its own power supply; and yes, both it and the switch are on). And no extra Y cables, either :( Getting hold of a simple OTG cable was hard enough, I don't think I would be able to get a powered Y OTG cable in my country, and my soldering (and general handcraft) skills suck so much it's laughable.

I've read somewhere that sometimes some OTG cables work for some devices, and others not so much. That might be the case here, in which case I won't even worry anymore, since the OTG cable was originally intended for my N7 and the SGS would have been a bonus.

Thanks!

Miguel
[Galaxy S I9000 Android Development] Vlad-33:
Hi, i'm running cyanogenmod 10.1 (Android 4.2.1). As i have understand, there's no kernel build for this android version.

My questions:

1) Are there any patches those i can apply to CM kernel source to enable USB host support?

2) Why not to send these patches to upstream?

Thank you.