yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] sztupy:
If it doesn't work on your computer it won't work with the phone for sure.
[Galaxy S I9000 Android Development] tiuk:
Same, i used crappy dollar store extension cables. I think it didn't work because the conductors were tiny, pretty sure someone else posted about that and found it worked when they used quality cables.
[Galaxy S I9000 Android Development] golanster:
hi

after searching the web some more for diy y cable i understood my problem and fixed my y cable.

now everything works great, external hdd, card reader and it even "see" my canon camera

great work!!!!
[Galaxy S I9000 Android Development] rjumawan:
So what do i need to make my external hd work?and where could i find these parts.
[Galaxy S I9000 Android Development] DerTeufel1980:
hi,

i tried to add your usb_host driver to cm7 kernel (based on fugu mod, linux 3.08).

i took the patches from this place: https://github.com/sztupy/samsung_kernel_galaxys_gb/commits/

after appliing the first one, everything was fine, no errors during compiling.

the update to build 5 is making trouble. i had to patch s5pc110_batterie.c and s5pc110_batterie.h by hand.

now i am still getting errors during compile.

you can see it here: http://pastebin.com/dHpiFi5L

would be great, if you could give me a hint, where i have to look for solving these issues.
[Galaxy S I9000 Android Development] sztupy:
For 3.x kernels you have to use the follwing git: https://github.com/sztupy/samsung-kernel-aries

The other one is for stock gingerbread (kernel 2.6.x) and based on the official samsung source.

A lot has changed (including the USB host kernel interface) between 2.6 and 3.0 that's why you probably get the errors
[Galaxy S I9000 Android Development] DerTeufel1980:
It's a bit complicated I think. The kernel is most 3.08, but it was upgradet from 2.6.35, so some parts still are at this point.

I tried the ICS patches before, but most of them failed. This is why I took the other one.

Edit : can't paste my git link. It is at:

Github derteufel. My last pushes are to the branch I am talking about.

Sent from my I9000 running Android 4.03
[Galaxy S I9000 Android Development] sztupy:
I assume you mean this one: https://github.com/galaxys-cm7miui-kernel/ICS-kernel-SGS/tree/neo3_cm7_t4

Is there a reason why you are using this instead of the other kernel? The "some parts are still at this point" doesn't really sound too good in case of this kernel.

But here are some guidelines I used when I did the initial porting between the teamhacsung's aries (3.0.8) on which development started, to the official herring (3.0.8) and the official aries (2.6.x) code:

1. Use the patches from the herring branch. The patches there are clean and don't contain much of the testing stuff I made. They are also for 3.0.8 kernels:

https://github.com/sztupy/samsung-kernel-herring/commit/537eeb71c941bd8d9956411106618a98b8a84bbf

https://github.com/sztupy/samsung-kernel-herring/commit/bdca0848ad10e244ab98168d015c73d7268bcf78

You have to change all references from herring to aries though.

2. Start from a clean kernel (that has no usb otg support yet)

3. Copy the whole s3c-otg and dwc directories from the herring branch.

4. For the other files check the changes and apply them by hand. You can simply open the files in an editor and copy/paste the lines from github. The biggest changeset is in the s3c_udc_otg.c file, which contains a lot of new lines, but fortunately they don't care about whether you have a kernel with the old usb interface structs, or the new one.

5. Apply the changes from the other ones. They are usually only minimal line additions, and/or only some ifdefs

6. For the power management support, the s5pc110_battery.c file was actually different in all three branches. Check all three sources (official kernel, teamhacksungs kernel and the herring kernel) to find which one is the closest to the kernel you are using. You can also skip porting the s5pc110_battery.c file, but you will miss the "turn off charger" feature, which is useful in a few cases.

You can also upload your actual working copy somewhere and I'll take a look. I won't promise to look at it instantly though, I have too much else to do atm.

Viel Glück!
[Galaxy S I9000 Android Development] jerilmg:
usb host PROBLM

Am using ics one cosmic rom.My phone does not respond when the external usb connected.

USB host controller vertion number 0.44

s3c usb host driver found

drivers avilable:s3c high speed,s3c low speed /full speed:dwc

actual driver:s3c high speed

actual operation mode:OTG

Actual cable state:OTG USB cable connected

actual operation state :Host mode using s3c

high speed usb2 driver

can charger be disabled yes

is charger disabled:no

root hub present,USB HOst mode is active

PLS HELP ME.....
[Galaxy S I9000 Android Development] vpx:
I have only USB Host Controller 0.42..., but are you sure you have correct cables ?

Have you tried refresh on the page (on your screenshot) ? Or maybe old USB stick (USB 1.1), there are problems with these legacy devices.
[Galaxy S I9000 Android Development] Vogie:
I made OTG and i don't have USB Charger right now, is it possible to use Computer USB as USB Charger ?
[Galaxy S I9000 Android Development] sztupy:
Yes. And for testing it's sometimes better as the USB port of a computer is usually more stable than a simple charger.
[Galaxy S I9000 Android Development] Vogie:
I used Nokia usb cable to make OTG and now device (mouse) has power (mouse light is ON) but in USB tab i found noting :-/

is that for Nokia product ?

it's Info tab:

S3C USB Host driver found!

Drivers available: S3C High-speed; S3C Low-speed/Full-Sspeed; DWC;

Actual driver: S3C High-speed

Actual operation mode: OTG

Actual cable state: Standard USB cable connected

Actual operation state: Client mode

Can charger be disabled: Yes

Is charger disabled: No

Root hub is not present, USB Host mode not active or not available!
[Galaxy S I9000 Android Development] vpx:
I think you have to select OTG mode in Settings tab of USB Host Control
[Galaxy S I9000 Android Development] Vogie:
I did,

10char
[Galaxy S I9000 Android Development] sztupy:
It says:

"Actual cable state: Standard USB cable connected"

So it doesn't recognize your cable as an OTG cable. Use auto-host mode instead of OTG
[Galaxy S I9000 Android Development] jamesd256:
Yes. In fact, this is the only way it works for me. A battery box, which I have used in the past to power USB devices does not work.

It has been mentioned that at least with a PC USB port you will have no worries about sufficient current availability, as you can draw 1A or so.
[Galaxy S I9000 Android Development] Vogie:
Not changed :-/

I attached cable photo. I made a male-to-male usb cable too. on head to connect to source of Power and another head to connect to OTG (Down female in photo).

What are u think? is it Wrong way ?

I'm on AOKP Build 23 - beta 2.02
[Galaxy S I9000 Android Development] danba:
"USB audio in Android progress

Just for note, it works! I recently added self-compiled snd-usb-audio modules to allwinner based tablet. Found corresponding /dev/snd/* devices. Hard part is to add switch to USB audio to java, if there are no full alsa support in ROM. If alsa used, I need only edit /etc/asound.conf ;-)"

http://xdaforums.com/showthread.php?p=22280857#post22280857

His instructions for enabling USB audio on the Ainol Novo 7 tablet:

http://www.slatedroid.com/topic/29289-usb-audio-cards-support-drivers-and-libs/
[Galaxy S I9000 Android Development] tiuk:
Not trying to condescend, just wondering about possible uses. What would one use a USB sound device for? Seeing as the phone already has audio input and output interfaces.
[Galaxy S I9000 Android Development] danba:
A higher dimensions music!

Impressions of a guy upgrading his PC rig

from

PC > PC sound card Creative XFI Xtreme Music (i.e. not a stock PC card!) > headphone Audio-Technica ATH-AD700

to

PC > USB DAC/amp FiiO E17 > headphone Audio- Technica ATH-AD700:

"Anyway, I got on to a lot of forums and found HeadFi (Yes, say goodbye to your wallet!). Never fully understood the world of Dac's and Amp's I started my research!

I searched the forum's and felt there was a few people in the same position as me who were feeling unsure about an alternative to PC sound card's, so I decide to the plunge!

Yes I could have grabbed an Asus ST/STX or Creative Tit HD but I wanted to go a different direction, so I went with the Fiio E17.

Conclusion: Done the whole unboxing and setup that everyone has probably seen, plugged her in to the computer and ran it through her paces!

I listen to various music from Classical, Rock, Pop, electronic, using mainly FLAC files.

Sound quality compared to the Xtreme Music was overall a big improvement!

The sound was full and warm! I immediately felt like I was listening to (what I describe as) a high end Hifi system!

It's very reassuring as I come from a Creative product to something totally different as in the Fiio and be in awe about what I'm hearing.

The Fiio sounds like a professional athlete compared to say an amateur running a marathon, well paced full of energy and doing what it loves doing, where as the Creative was more like a weekend warrior!"

http://www.head-fi.org/t/587912/fiio-e17-alpen-first-impression-final-thought/1800#post_8175638

About external USB DAC/Amp

A digital audio system is composed of:

http://a1.sphotos.ak.fbcdn.net/hpho...824090522_1410232016_33249063_365914518_n.jpg

. A storage module: Music is stored in file as a series of bits 0 & 1 with different encoding formats (MP3, WAV, FLAC…).

. A player: The player decodes the bits 0 & 1 to PCM digital audio signals.

. A DAC (Digital to Analog Converter): The DAC converts the PCM digital audio signals to the original analog audio signals.

. An amplifier: The amplifier amplifies the analog audio signals.

. A speaker: The speaker restitutes the music.

Like a PC or a Mac, an Android phone is a digital audio system.

http://a4.sphotos.ak.fbcdn.net/hpho...824530533_1410232016_33249064_602805578_n.jpg

Hopefully, an Android phone running on a kernel with a USB audio driver, like a PC or a Mac, can output the PCM digital audio stream to an external standard USB DAC & amplifier & headphone, much more efficient than the internal DAC & amplifier & speakerphone.

http://a5.sphotos.ak.fbcdn.net/hpho...23650511_1410232016_33249061_1036262226_n.jpg

extracted from the official request to Google for enabling USB audio:

http://code.google.com/p/android/is...rs&colspec=ID Type Status Owner Summary Stars
[Galaxy S I9000 Android Development] Nexz:
Miui

Can any1 write a script that automates the patching for any JVU kernel ?

Problem is, theres no USB-Host Kernel avaible for MIUI :(
[Galaxy S I9000 Android Development] FadeFx:
Since when has miui a jvu kernel? Usually cm7 kernels should work as miui is based on cm7.

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

tapatalked from GalaxyS
[Galaxy S I9000 Android Development] Nexz:
Well is there a USB-Host Kernel for CM7?
[Galaxy S I9000 Android Development] Kino87:
Any news on the possibility to power devices directly from the phone? In my opinion until we don't get that function this will always be a nice but very limited hack with little use in real life situations. That or someone could try to make a cable/adapter with integrated batteries (speaking of which... I could try to make it :P I'll let you know if I get to anything usable)
[Galaxy S I9000 Android Development] sztupy:
It's more or less possible to do it on allwinner tablets as the built-in audio chip on them works more or less just like an usb audio device. The driver could be backported from them, to allow generic USB audio to work. Probably one only needs to create a new hardware lib, and it should work.
[Galaxy S I9000 Android Development] sztupy:
I'm still waiting for some special cables and adapters to start working on this. I can't promise anything though.
[Galaxy S I9000 Android Development] vishal.l:
Usb host mode

I am developing application to detect my printer by NOVO 7 Paladin(Android 4.0).

By USB HOST CONTROLLER application(which is available in market) the printer/mouse/keyboard is detected. But in my application(Written in java) these devices are not detected

With the reference of below link this application is developed

developer.android.com/guide/topics/usb/host.html

My Code Sample

mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE);

HashMap<String, UsbDevice> foundDevices = mUsbManager.getDeviceList();

Iterator<UsbDevice> iterator = foundDevices.values().iterator();

if (foundDevices.size()>0)

{String old = textv.getText().toString();

textv.setText(old +" foundDevices ");

}
[Galaxy S I9000 Android Development] coooolboyz:
Wow! So you are really looking in to it! Thats good news! :)

But why do we need additional cables for this? :confused:
[Galaxy S I9000 Android Development] FadeFx:
I guess those cables will only be needed for development.

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

tapatalked from GalaxyS
[Galaxy S I9000 Android Development] salmanghiyas:
hello all ...

today i bought this USB OTG Cable ... attached is the pic ...

to connect USB Data Storage to my SGS GT-i9000 directly ....

but unfortunately its not working ... i read the forums abt it ... and they say that there are few custom kernels which support OTG they are for ICS and GB ...

currently i am running DarkyROM JVQ ver.10.2.2

KERNEL - Darkcore_2.9.3 JVQ

need help in this .. want to know what shud i do to make it work .. which custom should i install ??

thnks in advance
[Galaxy S I9000 Android Development] sztupy:
mice and keyboards are blacklisted by Android, so you can't access through USB_SERVICE
[Galaxy S I9000 Android Development] sztupy:
I need them for development
[Galaxy S I9000 Android Development] Zeduaz:
you are absolutely great man!!! My mice is working, usb storage is working... tomorow ill try to test some keyboard ;-) im on i9000 with ICSSGS rc4.2 and your kernel... good job!

Here is video: http://youtu.be/hHdKLT6bj0U
[Galaxy S I9000 Android Development] caravagio:
read the first post

For darky rom use CFRoot kernel for JVU with usb host support.
[Galaxy S I9000 Android Development] coooolboyz:
Nice!! :-)
[Galaxy S I9000 Android Development] salmanghiyas:
One Question

so what i got is ... we cannot connect a USB Data Storage device to our phone WITHOUT an external power source ??

ok .. so ...

i have this Kingston USB Datatraveler G3 8GB

and this USB OTG Cable

so even if i Install the SAID kernel .. without an external power source this USB storage device will not work or detect on my i9000 directly ??

i have to have an external power source ? to connect this USB to my phone as well ??

if yes .. then my question is .. yesterday to check this cable i went to my friends place .. he has Samsung GALAXY S2 .. i connected this USB through the same cable and it detected .. i was like .. OMG ... how ... ?
[Galaxy S I9000 Android Development] vishal.l:
But mouse and USB pen drive also not detected by USB_SEVICES

---------- Post added at 05:31 AM ---------- Previous post was at 05:30 AM ----------

But mouse and USB pen drive also not detected by USB_SEVICES
[Galaxy S I9000 Android Development] salmanghiyas:
WHY ?

why can an SGS2 connects USB devices directly through an USB OTG cable WITHOUT any extra power source ?

and why We cant ? SGS i9000 users ?

when we have the same OS running ? same USB jack as well ...

is it because of the processor ?

that we have a "Hummingbird 1 GHz Cortex-A8"

and SGS2 has "Exynos Dual-core 1.2 GHz Cortex-A9"

?????
[Galaxy S I9000 Android Development] vpx:
Yes, this is not possible due to lack of some features of USB chipset in SGS I9000. But trust me, it is limiting, but when you want use OTG for example with 2.5 USB HDD, external source is an advantage and mandatory, because of hdd's power consumption.
[Galaxy S I9000 Android Development] salmanghiyas:
hmmm .. so lets have a Vote to start ...

to have the TRUE USB HOST KERNEL which works WITHOUT any external power source ( for atleast USB Data Storage devies )

---------- Post added at 12:04 PM ---------- Previous post was at 12:03 PM ----------

HAIL sztupy :D !!!!!!!!!
[Galaxy S I9000 Android Development] tiuk:
It's not like the requirement for a power source is arbitrary.
[Galaxy S I9000 Android Development] Zeduaz:
I thing that the main reason is here:

This is SGS2 usb: http://www.techrepublic.com/photos/cracking-open-the-samsung-galaxy-s-ii-sprint-epic-4g-touch/6305124?seq=56

This is SGS usb: http://i2.squidoocdn.com/resize/squidoo_images/590/draft_lens15090051module131170061photo_2_1288951663GSPCB2.jpg

Im not a some electrician but there are very big diferences between these two devices in usb conection to motherboard so there is some modification in SGS2 that it can give power to external flash memory, but not for big things like external hdd atc....

im only trying to know why SGS2 can give power and SGS cant...
[Galaxy S I9000 Android Development] FadeFx:
Guys, give sztupy the time to find out if he can manage it. I am pretty sure there is nothing you can tell him about this he doesn't know yet (except you are an experienced embedded devices developer or have in depth technical knowledge about the sgs because you are a Samsung hardware developer ore something) . I also think he already as a bit of an idea how it could work, but needs to do some experimenting to sort it out. Thats why he ordered a special set of cables. If u really want to help consider a donation. Also a vote is no help at all, this wont do anything except to show that you have no idea of what happens on xda.

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

tapatalked from vizio vtab1008
[Galaxy S I9000 Android Development] spyder_pirate:
because they are different phones! so stop comparing and complaining. and no need for your vote, everyone wants that feature but for now we can just be thankful that sztupy is sharing his works.
[Galaxy S I9000 Android Development] salmanghiyas:
Why ? do u have a problem with that ? i would prefer u to stfu ...

i know sztupy did a wonderful work .. and i already thanked him .. and i always do coz he's a gem in dev's ... and dont jump into threads which u dont know abt mate ...

pieace
[Galaxy S I9000 Android Development] siky_dude:
Just stop your yapping and go to sleep.
[Galaxy S I9000 Android Development] toimintoim:
i vote that salmanghiyas will be granted the douchebag of the year award
[Galaxy S I9000 Android Development] -ReaL-:
It works with my 160Gb External HDD!!! Amazing!
[Galaxy S I9000 Android Development] radiohead_apple:
great job

really lookin' forward to have this on JVU

thanks in advance ;)
[Galaxy S I9000 Android Development] BradleyR2010:
great job sztupy looking forward to test it jsut need to find a cheap cable :)
[Galaxy S I9000 Android Development] caravagio:
Great work! Amazing and unthinkable one year ago!
[Galaxy S I9000 Android Development] jamesd256:
Any chance this would work? :

http://zyger.blogspot.com/2011/05/usb-otg-create-your-own-cable.html
[Galaxy S I9000 Android Development] AdamOutler:
sztupy there is a large set of registers which can be triggered by the kernel in the FSA92xx chip... The FSA92xx is the chip which senses resistance like short for OTG or 301kohms for Download Mode. This set of registers controls all parameters. there is a "Switch I/O Voltage" which looks interesting.. "All other pins" is 5V.

I have set them off once before and lit an LED very brightly by accident.

If you'd like to contact me via PM or google talk, I can work with you and test things via UART in order to attempt to get the USB 5V working. I can set these registers manually.

I very much want to get my Arduino ADK working so I can do cool stuff with the Host controller. Lets work this thing out. Maybe you can help get this mod spread to the Captivate as well :)

Attached to this post is the FSA92xx full documentation : http://xdaforums.com/attachment.php?attachmentid=861878&stc=1&d=1326863728
[Galaxy S I9000 Android Development] AdamOutler:
no. on our phones, OTG mode is triggered by shorting pins 4 and 5.
[Galaxy S I9000 Android Development] delokaver:
LOVE YOU MATE ... SOOOO MUCH ...

You take my dream came thruu .......

these what was I am dreaming all the night to have our SGS working with OTG
[Galaxy S I9000 Android Development] coooolboyz:
So does it mean that it is possible to achieve true USB OTG [i.e., without the need of powered USB HUB] on SGS?

It would be good to have this!! From the specs for SGS' motherboard it does seem to support true OTG. And with the ability to read from an NTFS formatted drive, the possibilities are limitless!! We will hit truly unlimited storage on this phone!
[Galaxy S I9000 Android Development] sztupy:
It would, but you don't actualy need to connect 4-5 pins together, it's just for auto-detection. My code has support for "simple" inverted cables using "auto-host" mode (which will trigger host mode for every type of cable plugged-in)
[Galaxy S I9000 Android Development] sztupy:
Thanks to the info! I'll definitely look into it. I was also thinking of getting a simple LED to light up. I also looked at the host controller of the SGS2 which is definitely the same. Someone with an SGS2 might help me checking whether it supports USB 1.x devices (OHCI mode), or not. (I don't care whether they are actually working, just need to know whether they get enumerated or not)
[Galaxy S I9000 Android Development] sztupy:
Yep, that would me an that. Although I don't know how much power we'll get out of it (for example it might not be enough to power an external, "powerless" hard drive. But even a small power should be enough to get usb devices work, that have their own power (like large external hard drives with separate power supply or digital cameras)
[Galaxy S I9000 Android Development] sztupy:
I think that link said the same:

"Crack open a micro USB connector and connect 4th (extra pin) and 5th (ground pin) pins."

Although you don't actually need to, it's just for auto-detection for phones that have otg support by default.
[Galaxy S I9000 Android Development] sztupy:
Just built a Captivate version: http://xdaforums.com/showthread.php?t=1452098
[Galaxy S I9000 Android Development] fylim:
Please build one for OneCosmic platypus kernel pls .....
[Galaxy S I9000 Android Development] hkfan:
can you please build one for vibrant passion Rom.
[Galaxy S I9000 Android Development] siky_dude:
Read the OP.

ask onecosmic to include the change.
[Galaxy S I9000 Android Development] sancho1234:
sztupy!

GRATULÁLOK! :)
[Galaxy S I9000 Android Development] stratosk:
Thanks for this sztupy! Great work!

I just released a test version of Semaphore kernel patched with your sources and waiting for feedback. :)
[Galaxy S I9000 Android Development] Epic_VS:
Hopefully this will be ported to the Nexus S. I am so excited. I will finally get expandable memory on the phone. Will the USB port be able to power a low powered usb device like a flash drive? :D:D:D

Edit-answered in faq
[Galaxy S I9000 Android Development] siky_dude:
LOOOLLL
[Galaxy S I9000 Android Development] Zeduaz:
I know that mice and keyboard are blacklisted by android but i must ask... i saw working keyboard on sgs2 and also on my SGS is mice working very good... is somehow possible to port keyboard driver to our device? Or is some way how to use normal usb keyboard by usb host? Thank You for advice :-)
[Galaxy S I9000 Android Development] developersdevelopers:
Maybe try out a different keyboard. My wireless mouse and keyboard set which uses a single USB dongle for both, works fine (at the same time). It is the Logitech MK320.
[Galaxy S I9000 Android Development] Zeduaz:
I dont tested for this time wireless keyboard and mice. I will today do that. I tested only devices with usb cable ;-) thank u for advice :-) So if i connect them does driver recognize wireless controler without problem?
[Galaxy S I9000 Android Development] sztupy:
Yes, keyboards and mice should work fine. The blacklisting I wrote is only for userspace drivers, eg. you cannot create an USB Host Android Application that reads/write HID data from keyboards and mice