yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy SL i9003] dhiru1602:
I found something really interesting a few minutes ago. Actually most of the devices doesn't have their OTG ID pin connected, so the devices doesn't know if the cable is actually a Micro USB Data cable or an OTG cable. Incase of Galaxy SL, I have been assuming the same, until I have enabled logging for the FSA9480 USB controlled and I have found that the device indeed detects OTG cable when it is connected. The dmesg proves this.

While digging into the code, I have realized that the OTG implementation for the FSA9480 is broken. It is incomplete, and so is the same for the UART. There are just dummy logging messages with no actual effect. I was also able to realize that this device doesn't support a Car Dock (?), however it has capabilities of Audio out through the USB.

As for the modules that everyone is so much arguing about, they could be compiled by enabling few configs in the defconfig. I have got them built into the kernel directly. Modules are utter pain.

https://github.com/teamhacksung/and...mmit/ad534fd10eccc296256ffc732fa89acfba38c337

Seems we need to work on the FSA usb driver to enable OTG or UART (?). The dmesg shows the "USB OTG" log entry when a standard Micro USB OTG Host Cable is connected, as triggered from https://github.com/teamhacksung/and...g-2.6.35.7/drivers/usb/otg/fsa9480_i2c.c#L461
[Samsung Galaxy SL i9003] crk1995:
What does this indicates dhiru?

Have you made a kernel with the possibility of usb otg.???

And thanks for this work around.

Seems we are close to these features.

Will it be difficult or a bit easier to implement these features since you have investigated the cause?
[Samsung Galaxy SL i9003] hillbeast:
No need to fix the UART function. It's working fine as it is. It's just the OTG functionality isn't implemented fully. Take a look at other devices with this switch chip for ideas on how to fix it. There are many for instance the Galaxy S, the Galaxy 3, and I think the GS2 also use the same chip, albeit just revisions of each other.
[Samsung Galaxy SL i9003] vishal24387:
so you mean to say that UART is working fine but we need to find a way swich to host mode??? Also can u tell us that will our chip get burned when external power supply is connected?? Because I read in nook color tablet otg development thread that device chip can be burned if there is reverse current is flowing through otg wire because of current flowing from external power source & current given by device itself.
[Samsung Galaxy SL i9003] dhiru1602:
Chip damage chances are quite high. I already told you this..
[Samsung Galaxy SL i9003] vishal24387:
I know that buddy. But I am confused because our device dont supply any power to external device so I think there will not be any reverse current due to which our chip will burn. Then why still there is chance of burning chip...??? May be I am wrong.
[Samsung Galaxy SL i9003] Skander1998:
When they get it working, they'll know the exact chances.

No need to know everything at this stage.
[Samsung Galaxy SL i9003] dhiru1602:
Made few more commits to add support for OTG Cable detection.

https://github.com/teamhacksung/and...mmit/39625253e2580eaee908aa65ed43e03af8ce278a

These are for the board and config to enable OTG support toggle.

https://github.com/teamhacksung/and...mmit/f4d4dca90a2419572306cd3d821d375030536d77

https://github.com/teamhacksung/and...mmit/9c60569137436f4af64d8c22e002b82d00275e8f

There seems to be some problem with the VBUS. I have no clue what is causing it. When I connect the OTG Cable, the mode is changed to a_wait and then to a_wait_vrise. This suggests that the device is waiting for the vbus to come up, but due to some reason, it doesn't.

Will need more investigation.
[Samsung Galaxy SL i9003] labsin:
Maybe interesting to look at this:

https://github.com/Quarx2k/jordan-kernel

The defy got a kernel-bypass (2nt-boot) with baseband. It's the same chipset.

Maybe interesting to talk to Quarx2k and so about this.

Some more info and developers you can find here: http://xdaforums.com/showthread.php?t=1908687

If you ask something (dev-like) there you prob get a response.

Thing these (and the optimus black) are the devices with the same chipset with the most development.
[Samsung Galaxy SL i9003] devasenan200:
Pls take a look on to this,may be it will help in development ..www.xdaforums.com/showthread.php?p=36996407#post36996407
[Samsung Galaxy SL i9003] mdaamir1989:
Hi There ,

No need to quote the entire post and this is a very old thread which has been bumped many times :) Currently our devs are busy in Kernel 3.0 . So once everything is working on 3.0 they l look into this if its useful. :good:
[Samsung Galaxy SL i9003] devasenan200:
Ya...ok.....:)
[Samsung Galaxy SL i9003] ronhoover88:
The guys who do the kernel work can do it...they'll have to adjust volts!!
[Samsung Galaxy SL i9003] gaurav2912:
good progress with the otg

vishal i really hope this work man, ur persistence will pay up

i wish we can get tv-out for our phone too

i'm a dud when it comes to programming but a question for all the experts out there, just as we can see some light at the end of the tunnel for the otg.......is it really possible to get the tv-out working for our phones too ??
[Samsung Galaxy SL i9003] vishal24387:
low power issue is related to kernal I think. Because I charged bateery fully even though the same problem is there. Kernal things are totally out of my knowledge. Hope Amit or Skin will look into this.
[Samsung Galaxy SL i9003] arindammanidas:
Yes TV-Out is a definite possibility for our phones... Just wait for a modified kernel to show up... things are looking bright :D

Please THANK ME if my post helped you :D:)
[Samsung Galaxy SL i9003] arindammanidas:
You're right man... as ronhoover88 said its kernel related... maybe u can PM the kernel guys ;):D... The strategy would be to program the system to enter some sort of OTG mode where it increases the output voltage of its usb port, whenever an OTG cable is connected. Thanks for taking the pains to test it out man!!! Live Long & Prosper... :)

Please THANK ME if my post helped you :D:)
[Samsung Galaxy SL i9003] vivekkalady:
Vishal, You got the s2 cable?? Are you testing with Modded cable or normal cable??

if you got the s2 cable test it with external power.ie seperate power for the pendrive so that no need for power supply from the phone.this is not a good idea to carry seperate power to everywhere we go.but testing is needed if it works

my cable is on the way
[Samsung Galaxy SL i9003] vishal24387:
actually i have used nokia otg cable. Its working is same as s2 cable only there is difference in shape (see page 2 where i have given info about it). With help of dotted metal metal rod i have given proper shape to it. Now its perfectly fitting in our phone. Actually u & I both missed reading doomlord's whole post. He has mentioned that he has used his own custom kernal which includes a file (dont remember name) which support for usb otg.

Anyway if external power supply we have to give then what device should I use???
[Samsung Galaxy SL i9003] vivekkalady:
I have an External harddisk.It has 2 usb in which one usb can be used for external power and other act as normal USB for power & data transfer.So I can test if the problem is with power only or power & kernel
[Samsung Galaxy SL i9003] vishal24387:
I think is problem is with mainly kernal. Because a single pen drive requires very much less power. So i dont think its related to power. Just wait I will upload terminal emulator screenshot.

Scrrensot attatched.
[Samsung Galaxy SL i9003] vivekkalady:
@vishal cable Modded???

There is a line called USBOTG in the attached screenshot

What does it mean??

Module or kernel message??
[Samsung Galaxy SL i9003] vivekkalady:
Skin compiled the overclocked version from source given by ronhoover right??

So it will have the USB files as vishal said.it means kernel suppots USB OTG
[Samsung Galaxy SL i9003] vishal24387:
Actually modules we are using are made by Amit. Skin has made only oc kernal which doesnt include usb otg files. I really dont have knowledge what is meaning of these lines in screenshot. May be doomlord will help us.

In doomlord's post he has said that if we are facing problem after dmesg command then we should take log.txt file. Can u explain me those instructios??? I will send this files to doomlord.
[Samsung Galaxy SL i9003] vivekkalady:
Thid dmesg is the log

You have to copy the contents to a text file

I dont know the command but You can copy manually from command prompt using adb shell

I dont have pc access now.search google for the correct command to copy from dmesg to log file
[Samsung Galaxy SL i9003] vishal24387:
The original post of doomlord contains those instructions. He has mention in 'TROUBLESHOOT' part at the end of original post. Can u please explain me that???
[Samsung Galaxy SL i9003] :
If you followed all the instruction and you are still getting some errors, you should post the dmesg.log which is found in you sdcard...so that doomlord can rectify the error...
[Samsung Galaxy SL i9003] :
I tried it with my friends sgs 2 cable...it us not working..also I am out of my computer for some weeks and hence I will not be able to do anything else. :-(
[Samsung Galaxy SL i9003] bajju123:
what if we use a external hard disk which comes with a power adapter ?

there shud b no power issue then .
[Samsung Galaxy SL i9003] vishal24387:
problem is not only with power but also with kernal (i think).

Guys here is the log file of terminal emulator. If anybody to understand what is meaning of its contents then I think we will know exact error.

In last few lines there are words USB OTG which means I think cable is working properly as usb otg cable.
[Samsung Galaxy SL i9003] amit.bagaria:
Need testers.

I have managed to compile the kernel with OTG. But the sad part is I do not have proper cables to test it out. So anyone having proper cable, can PM me for the PDA with OTG support.
[Samsung Galaxy SL i9003] ronhoover88:
Amit it would be better if you pm it to vishal or even better you post it here saying for developers only or for testing only
[Samsung Galaxy SL i9003] vishal24387:
Amit you are like santaclause. U can pm me the file. I have necessary files. Can u tell me that is this kernal has something different than modules that u had pm me??
[Samsung Galaxy SL i9003] amit.bagaria:
Just PMed you. Please check.

Changes from last time:

My stable version of OC kernel

Kernel support for OTG

Mouse and Keyboard support added.
[Samsung Galaxy SL i9003] :
Get it to me also, I will get the cable within this evening (maybe)..
[Samsung Galaxy SL i9003] vishal24387:
Amit very imp queastion that this usb otg pda file has cf root inbuilt with stable oc version??? If it is then it would be great combination.
[Samsung Galaxy SL i9003] :
Let us primarily test the usb otg...then we will see about the cf root and all..
[Samsung Galaxy SL i9003] amit.bagaria:
As you wish :) CF-Root is included. Check your PM.
[Samsung Galaxy SL i9003] vishal24387:
oh really thanx Amit. I will give you feedback as quickly as i will finish my testing.
[Samsung Galaxy SL i9003] xGiox:
hey man glad to see you back,first that oc kernel is overcloced to? and also is it realy stable and if it is can you relese it to public(no need for otg part yet just that oc would be cool.
[Samsung Galaxy SL i9003] vivekkalady:
Please send the files to me also.

thanks
[Samsung Galaxy SL i9003] vishal24387:
have u got ur cables???
[Samsung Galaxy SL i9003] vivekkalady:
Not yet

but I will not have PC access when I get the files

So I think i have to flash with new kernel before I get the Cables

So please PM the Files
[Samsung Galaxy SL i9003] :
I got the cables. But power is off in my area. I was downloading the pda file and I think was almost done before the cut off...I will tell you the results when the per comes back... Sad that per went if ask of a sudden. argh:-(
[Samsung Galaxy SL i9003] vishal24387:
With custom kernal version of amit i am not able to use otg version. Rohan u also please try usb stick,usb mouse with power source. I used only usb stick.
[Samsung Galaxy SL i9003] :
Ok. Tried with the keyboard, does not work. And I tried a thumb drive, it was plugged in for about 2 hours and my phone began to heat up. The barry also drained from 100 to 2 in these two hours. I don't have a usb mouse and hence I can't test it :-(
[Samsung Galaxy SL i9003] vishal24387:
NEW KERNAL USB OTG LOG for Amit

Here is log file of new kernal that u had pm me Amit. Please check it.

@ rohan

it may due to unstable oc version. I flashed back to skin's stable cf root. I advice u that never connect usb drives for longer time which require more power. It can harm motherboard due to overheating.
[Samsung Galaxy SL i9003] :
I, knew it but by mistake put it. Even I reverted to skin's stable cf.root version..
[Samsung Galaxy SL i9003] vishal24387:
Rohan can u test any pen drive with some external power source??? Amit told me that he has studied log & he said that our phone is not giving power to pen drive. So he suggested that we should use external power source. Please reply.
[Samsung Galaxy SL i9003] vivekkalady:
I have the power supplying cable but no OTG cable(S2) .Tried with normal cable ,Not Working.
[Samsung Galaxy SL i9003] bala242:
keep try guys.in s2 in sdcard folder like usb_storage crate manuly and try it
[Samsung Galaxy SL i9003] vivekkalady:
Manual Mounting is not necessary

an application is available for Mounting
[Samsung Galaxy SL i9003] :
I well try with a hard disk of external power source .. I have asked my friend for a hard dish...
[Samsung Galaxy SL i9003] vishal24387:
i will suggest not to try hard disk as its file system is ntfs which is mostly not supported by usb otg. Try with pen drive as most of the pen drives has fat32 file system which is supported by usb otg.

@ vivek

can u tell me what type of external power source should i use give power to a pen drive??? I am not getting any idea about that.
[Samsung Galaxy SL i9003] :
Pen Drive and external power? I dont think you will find one. I am trying to find a keyboard with a external power. Basically, meant for wireless keyboard for Wii, I saw a keyboard which has a external power source and a USB slot. I have no idea whether it will work or not. The thing is costing nearly Rs.2999 and I dont mind buying it if it is worth it...Tell me what should I do..Pick or drop?
[Samsung Galaxy SL i9003] vishal24387:
3000 rs??? thats too much costly. I will suggest that u should try by taking it from friends. If it works then it worth to buy. I think u try with hard disk also. At least what output we will get from we will see.
[Samsung Galaxy SL i9003] dancegirl:
So cool! I love it!
[Samsung Galaxy SL i9003] vivekkalady:
2 AA battery can be used to power up the pendrive

The red wire is positive

The black wire is negative(ground)
[Samsung Galaxy SL i9003] vishal24387:
sorry bro but can u upload a photo of actual.connections so that i can get exact idea. Already i am in market. U just tell me what exact battery & wires i have to buy???
[Samsung Galaxy SL i9003] vivekkalady:
Normal clock battery

Normal wire (available in packets of 5 or 6 colors)

2 battery holder

Normal usb cable which is to be ripped apart fo the connecting battery

Soldering iron(as you know)

Sorry i dont have access to pc
[Samsung Galaxy SL i9003] :
Will try this. Or atleast tell my friend's to try it. But, One more thing I noticed. My friend has the same phone and i flashed the PDA in his phone as he does not uses it much. After some time, say 50-60 tries, he claimed to have seen a folder in the SD card and media scan running continuously. He used a 250 GB Buffalo HDD with external power supply...I did not see it through my eyes, but, i dont think he maybe lying...as he is quite serious with this developement!
[Samsung Galaxy SL i9003] vishal24387:
R u really serious??? please please can u check personally? If it is working then it will be revolutionay mod.
[Samsung Galaxy SL i9003] bajju123:
hey try this one ..

http://www.tombom.co.uk/blog/?p=124

this is for droid which uses the same board .. they got keyboard working itseems ..
[Samsung Galaxy SL i9003] vishal24387:
thanx bro but problem is not cable. Problem is power supply. We have to give power supply to keymord or.mouse through external power supply. I requested rohan to check it. Hope he will come up with positive result.
[Samsung Galaxy SL i9003] bajju123:
cant we adjust the volts ?

skin had oc'd the kernel so i guess he can adjust the voltage too..
[Samsung Galaxy SL i9003] vishal24387:
Skin is busy with betterment of cf root. Amit is working on this mod with all his full efforts (thanks to him).
[Samsung Galaxy SL i9003] :
But, I think we can beg skin to work on this thing. We already have a stable cf root but not even a beta usb otg :-(
[Samsung Galaxy SL i9003] vishal24387:
Actually skin was busy with some different stuffs. I requested many times but he had not shown interest (i will not blame him). Because he was busy with CWM & also there was no source code.available at that time. So i requested Amit. But i still confess that both amit & skin are superb developers ready to help us any time. But if u want then I will again request him.

Have u checked ur friend's phone please???
[Samsung Galaxy SL i9003] bajju123:
i guess we need to work together ..

enuf of themes and and all stuff coz we dont need to really care how the UI luks..

if we can get the tv out and usb otg den we ll b having a better phone !

if only we can ask skin some tutorial on how he overclockd the kernel den we mi8 get to something..
[Samsung Galaxy SL i9003] :
About my friend's phone...There is no difference at all..IDK how he saw the difference. BTW, I tried the external power source thing..it did not help...I am now switching to the stable CF-root version,but, my friend's phone is ready for testing and stuff...
[Samsung Galaxy SL i9003] vishal24387:
exactly my feelings. But unfortunately very few people are interested in this stuff. So only if people get interested in this then ultimately people start to develope features.
[Samsung Galaxy SL i9003] bajju123:
yes .. we need to start a grp kind of a thing in fb or somethin wer we can share work .

to b frank usb otg is not dat possible but tv out sure does seem to b possible !
[Samsung Galaxy SL i9003] vishal24387:
oh so sad...!!! Thanx for ur efforts. I just want to know that what connection u did??Which device u tested??? Anyway can u send amit log file to amit so that he can study it???
[Samsung Galaxy SL i9003] gaurav2912:
how about modding a USB Y-Cable to suit our needs.........

I dont have the know how, but i really think modding the cable is a possibility here
[Samsung Galaxy SL i9003] gaurav2912:
How about using the USB Y-Cable and the USB Female to Female convertor.

1) The mini usb goes into the phone

2) The main USB socket in the Y-Cable connects to a usb pen drive through the female to female convertor

3) The other USB socket in the Y-Cable connects to a power source.

My two cents.......worth a try i'd say
[Samsung Galaxy SL i9003] :
The keyboard thing what i stated earlier. I will try to get the log file. That guy is working on something else. I don't have an idea if he re-flashed his Fw..I will get yout the log ASAP...
[Samsung Galaxy SL i9003] :
Results As Of Now (Updated at 2124hrs HRS)

USB Keyboard, USB pendrive, USB HDD- Not working with both Vivek's and Amit's guide

USB Pendrive used-> Transcend 32 GB,4 GB Pendrive and Cruzer 4 Gb pendrive.

USB HDD used-> Seagate 250 GB HDD, 250 GB Buffalo HDD With External Power.

USB keyboard-> Some local wireless keyboard for Wii with ext. power and USB

I have also tried all the above mentioned gadgets with external power source as described by Vivek. I did not do this for Seagate HDD.
[Samsung Galaxy SL i9003] vishal24387:
why dont you try keybord mouse & manly hdd which has fat32 system?? Working keybord is mostly difficult.
[Samsung Galaxy SL i9003] :
The problem is I dont have a USB mouse. And all my friends, use a wireless mouse or a Bluetooth mouse. I used a HDD with fat32 system. Also, I formatted it twice and added only 2 MP3 files in it. But,Still the device is not recognized!
[Samsung Galaxy SL i9003] vivekkalady:
@bangalorerohan

USB OTG with the sgs2 cable not working ???
[Samsung Galaxy SL i9003] vishal24387:
Otg cable works. Only the kernal is not working for usb otg..!!! Amit said that he will look more into it to work it. Have u got any reply from doomlord???
[Samsung Galaxy SL i9003] DooMLoRD:
hello guys i have used this USB-OTG cable:

http://cgi.ebay.in/ws/eBayISAPI.dll?ViewItem&item=270795892973&ssPageName=ADME:X:AAQ:IN:1123

works for my Xperia Arc & SGS2
[Samsung Galaxy SL i9003] :
I also have the same cable. I got it with my neighbour's sgs 2. He has currently given it to me for development... But still it us not working. the cable works on his phone but not on mine.
[Samsung Galaxy SL i9003] DooMLoRD:
@vishal24387

from the dmesg u sent me, there seems to be some problem with power management... the following error is recurring:

Powerdomain (usbhost_pwrdm) didn't enter target state 0
Could not enter target state in pm_suspend

though i am not 100% sure if this is the main/only reason...

can u post the kernel config file u are using for testing USB-OTG? config file can be sometime pulled from /proc/config.gz or the kernel dev can himself post it :)

EDIT:

i am attaching the kernel configs i use in my kernel... may be it can help u...

one config is for main kernel (which enabled usb-otg support); the other config is for creating the modules from the base kernel...

u can also check my kernel sources:

https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9
[Samsung Galaxy SL i9003] vishal24387:
I am requesting all developers especially people who are expert in kernal plz look into this. Doomlord is one of the famous recognised developer of xda developer forum. I insisted doomlord to help us & he is really ready to help us.

So plz guys at least now take this usb otg developement seriously. Dont take my passion in wrong way. I am just trying to make our phone best with best features. I will give every every info which is imp in this. Actually i dont have necessary knowledge related to kernal. Thats why I am requesting for help.
[Samsung Galaxy SL i9003] manrock111:
I'm with you bro.

Purchasing otg 2marrow in hope that dev will do something.
[Samsung Galaxy SL i9003] vishal24387:
Thanx manrock. I really feel bad that only 3-4 people are looking for this feature to get done work. I think we have now great themes, some great mods like cwm, cf root. But now we should look in some other features also which in some other forums developers are really working seriously on it.
[Samsung Galaxy SL i9003] manrock111:
Absolutely....

With available tweaks I can wait cm7 or miui but otg + tv out is just awesome.

So sad our i9003 scene "God" Skin has 0.0% interest in otg due lack of cable but I hope someone will do something.
[Samsung Galaxy SL i9003] ronhoover88:
Are you kiddin i prefer USB OTG to OC....oc would bake our phone...hope skin or amit help us to get USB OTG!!
[Samsung Galaxy SL i9003] vishal24387:
Right now I want only usb otg to get work done. OC is not that much necessary bcoz with available cf root & tweaks phone.runs smoothly. Do u have some.knowledge related to kernal ???
[Samsung Galaxy SL i9003] joealley:
+1 on this, i guess not many are aware of this yet. But once this will be implemented, i'm pretty sure that many would definitely appreciate the work of the developers for this. :)
[Samsung Galaxy SL i9003] ronhoover88:
Unfortunately i have no knowledge of linux...
[Samsung Galaxy SL i9003] :
Hmm.... oc v/s usb otg v/s tv_out. The battle is on. Three development at a time..that us cool. But I think usb otg deserves more.

Bringing this thread on topic, I got a usb mouse today. Also, my friend have it an external power source with a big battery. This method failed. I retried some random clicks and some big movements. The lack if a cursor irritated me. But, the experiment failed.