[Q] USB Host OTG Hack? - Samsung Infuse 4G

Would it be possible to hack the infuse to support USB OTG? The SGS II is already factory supported and I was wondering if there was any way to implement that feature into the infuse for the use of external memory, USB keyboards/mice/headsets, etc. I also know that someone already hacked the Nexus One to support this. Also, would the HDMI out tell us if its supported (Since the phone is sending an image to a TV screen?)

Nothing at all?

Just wanted to give this a nudge up towards the top. Is this something that could be added via rom/kernel or does it have to be supported in hardware? Really interested in if this is possible given the recent release of DSLR Controller.

Do have any other first-gen SGS phones been modded to support it?
If so, it might be possible to get these mods implemented in our kernels - point me to a kernel for a first-gen SGS phone (NOT an SGSII) with this capability and I'll look at it.
Our hardware is fairly similar to the original SGS series, so a lot of things that work on those phones will work on ours. The SGSII is VERY different so backporting features like this is unlikely due to lack of hardware support.

Entropy512 said:
Do have any other first-gen SGS phones been modded to support it?
If so, it might be possible to get these mods implemented in our kernels - point me to a kernel for a first-gen SGS phone (NOT an SGSII) with this capability and I'll look at it.
Our hardware is fairly similar to the original SGS series, so a lot of things that work on those phones will work on ours. The SGSII is VERY different so backporting features like this is unlikely due to lack of hardware support.
Click to expand...
Click to collapse
Thanks for the reply. I'll keep an eye out and see if support gets added to any of the SGS phones, sadly for right now all I know of is support on the SGS2 and possibly on the Nexus S.

dotpkmdot said:
Thanks for the reply. I'll keep an eye out and see if support gets added to any of the SGS phones, sadly for right now all I know of is support on the SGS2 and possibly on the Nexus S.
Click to expand...
Click to collapse
Nexus S hacks MIGHT be bringable to our phones - but far less likely than GS phones.

USB OTG mode is initiated by shorting USB pins 4 and 5. The phone can do it hardware wise. It's a matter of having the drivers for the accessory connected.
You don't just "have" OTG capabilities... It's a matter of what devices you support.
This would not be something which would occur at the device level. The hardware is connected to the phone, the phone runs Linux. Linux handles connections of the devices. Grab kernel modules from Linux for OTG devices.

If thats the case it would seem odd that so many developers work towards adding the support to phones.
The SGS2 doesn't have drivers built in to support connecting to canon DSLR's yet its the only phone at this point to officially support it... because it supports USB Host OTG mode.
AdamOutler said:
USB OTG mode is initiated by shorting USB pins 4 and 5. The phone can do it hardware wise. It's a matter of having the drivers for the accessory connected.
You don't just "have" OTG capabilities... It's a matter of what devices you support.
This would not be something which would occur at the device level. The hardware is connected to the phone, the phone runs Linux. Linux handles connections of the devices. Grab kernel modules from Linux for OTG devices.
Click to expand...
Click to collapse

dotpkmdot said:
If thats the case it would seem odd that so many developers work towards adding the support to phones.
The SGS2 doesn't have drivers built in to support connecting to canon DSLR's yet its the only phone at this point to officially support it... because it supports USB Host OTG mode.
Click to expand...
Click to collapse
Check out the GalaxyS hack pack for the USB chip. I can verify that the kernel knows when something OTG is connected. It brings up UART messages and you can see it in dmesg.

here you go... here's the relevant dmesg output from my device right now.
Code:
<4>[11037.766990] fsa9480_interrupt
<4>[11037.767292] [FSA9480] FSA9480_ReadIntRegister
<6>[11037.815966] ldo38_control : turn ON LDO3 and LDO8 (cur_stat=0, req=1)
<4>[11037.816113] [otg_clock_enable] clk_enable(otg_clock) OK.
<4>[11037.829314] FSA9480_ProcessDevice function!!!!
<4>[11037.829428] [FSA9480]FSA INTR = dev1 : 0x80, dev2 : 0x0 , Attach : 0x1
<4>[11037.829528] USB OTG

The last dmesg log was with no device attached. Here's with a USB Flash drive attached.
Here's one with a flash drive plugged into my little test setup.
Code:
<4>[12679.047442] maxim_vac_connect: disconnect status skip
<4>[12679.210991] fsa9480_interrupt
<4>[12679.211262] [FSA9480] FSA9480_ReadIntRegister
<6>[12679.266909] ldo38_control : turn ON LDO3 and LDO8 (cur_stat=0, req=1)
<4>[12679.267071] [otg_clock_enable] clk_enable(otg_clock) OK.
<4>[12679.280247] FSA9480_ProcessDevice function!!!!
<4>[12679.280375] [FSA9480]FSA INTR = dev1 : 0x80, dev2 : 0x0 , Attach : 0x1
<4>[12679.280476] USB OTG
<4>[12682.348957] [email protected] Total=32768bytes PrdSz=2048 #Prds=4, dmaEnd 0x4f168000
<7>[12682.442657] touch_led_control: 1
<4>[12682.929923] xrun: occurred buffer xrun[0]
<7>[12685.436920] touch_led_control: 2
<4>[12690.544885] [TSP] TA NON-Detect!!!
<6>[12690.559635] [BAT]:Vol=3893, Temp=330, SOC=63, Lv=63, ST=0, TT=0, CS=0, CE=0, RC=0, FC=0, Hlth=1, DS=0x800, VF=590
it does not create any new devices.

Right now USB host is not compiled in the kernel at all, so I'd expect this.
That's why I was asking if someone had found an example of a first-gen SGS with USB Host/OTG support compiled in. With an example kernel's defconfig and source I can analyze, it shouldn't be TOO hard to port that functionality to our device.
The current state is: FSA9480 tells the kernel that an OTG device is connected, kernel says "I dunno what that is. I'll give up and do nothing."

Usb otg through micro dongle
I think you people should try for this. I think it will work for ur device.
www.tombom.co.uk/blog/?p=124

vishal24387 said:
I think you people should try for this. I think it will work for ur device.
www.tombom.co.uk/blog/?p=124
Click to expand...
Click to collapse
No, it won't. See the posts above - there are software components missing.
Again - if someone can point me to an example of a kernel where host mode is working on a first-gen GalaxyS device, I'll try to port it over. I'm not going to try and backport anything from a GSII.
Convincing the FSA9480 to signal host mode is only a tiny piece of the puzzle - see HDMI on Rogers Gingerbread as an example.

would these help entropy?
http://forum.xda-developers.com/showthread.php?t=1450298
http://forum.xda-developers.com/showthread.php?t=1468531

this is an old thread. but things have changed since then. its been successfully integrated into the galaxy s and nexus s. hopefully it will result in a port since its atleast plausible now.

been awhile since this has been looked at, was wondering if anyone had any luck with this, would be greatly appreciated if i got any kind of response

Related

access files from usb cable?

any apps out there for android phones that allow you to attach storage device to your phone to access files?
example
plug a external harddrive into the usb port of my android phone and access the files on the hd
yes i know this will need an adaptor
This would require host-mode for the USB port. I understand that someone got it (sorta) working on Nexus One. There was a discussion about whether G1 can even do it as it requires some HW support as well. No one knows for sure and no one with the skills has chosen to invest the time finding out.
GinoAMelone said:
This would require host-mode for the USB port. I understand that someone got it (sorta) working on Nexus One. There was a discussion about whether G1 can even do it as it requires some HW support as well. No one knows for sure and no one with the skills has chosen to invest the time finding out.
Click to expand...
Click to collapse
Necro-bump, wanted to know if there was anything new on this front. I know that tablets with Android OS and such will keep coming to compete with the iPad with its USB connectivity kit, so it makes sense that sooner or later, Android OS seems like it will want to consider heading in this route.
Here is the older hack that shows it is pretty simple for anyone with basic soldering skills to enable USB OTG host mode on certain android devices and could be adapted I'm sure for other android devices:
http://hackaday.com/2010/02/10/usb-host-mode-for-droid/
The main problem is that Android does not have much support for USB hosting (yet, I bet that its surely coming). The TI OMAP platform (hmm, Droid X?) already has linux host USB drivers made. A talented programmer could use these to write a Kernal mode support to insert into a custom ROM or let root users install an app from the market to interface with USB devices. This way users could connect USB to SPDIF DACs and adapters to use mass storage devices like external usb keys or hard drives. Even possibly a normal keyboard/game controller/screen printer/webcam if your crazy enough. Too good to be true?
Here is a start on the project which has gotten some impressive progress: http://groups.google.com/group/android-kernel/browse_thread/thread/c8471573d7553331/0b0887947678ff87
Someone may actually be making progress on this. See here: http://forum.xda-developers.com/showthread.php?t=794643
Amazing! Thanks.
sent via Droid X

[Q] Sensation USB Host Feature

I know that USB Host is a Honeycomb feature, but it seems that Samsung has somehow ported it to Gingerbread for the GS2. Does anyone know if any of the Sensation ROMs will ever be able to support USB host?
Btw, this is taken from the DSLR Controller post (http://forum.xda-developers.com/showpost.php?p=16497326&postcount=257), but the package we would need is android.hardware.usb.host.
I'm interested in getting USB Host mode too for that very purpose. Hope it happens soon.
Hello,
any progres with USB host on HTC sensation?
I probably must kill my self becouse i bought sensationg betwean Samsung S2 with default USB support
Stupid nokia N8 support usb HOST....
I try google some posibilites but i didnt find anything
Thx alot Martin
If the t-mobile version of the galaxy s2(aka Hercules) can do it, then we should for we share the same class of SoC(the MSM8260 vs the APQ8060), the only difference being the APQ is without a Qualcom modem. Also they both support USB OTG according to the Qualcomm specs for the Gen 3 Snapdragons. Now we just need someone to port it over.
I found arcticle when Somebody aply usb host support tu HTC DHD
Included:
new kernel
2 new modules
and probably some new "software" for using it.
Could someone be interested in developing the usb host features?? If I had the technical competences, I would develop it...but I don't know how to do it!!
If someone it's interested in it, I could donate something
Thank you
would be very nice to have such option. just perfect to copy something from one's flash stick.
When i had xperia neo, a person(a gr8 person) ported the modules into xperia 2011 series- Doomlord
Some developer should contact him
Sent from my htc Sensation 4G using XDA App
this would be of interest to me, I'm guessing we just need one or two kernel modules, and an app to load/unload them
i'm intrested too, is there news ?
USB Host mode would actually the one feature missing to make ICS perfect
I am very interested in this feature too, but can't find any solutions :/
And there is any progress? The USB Host Diagnostics v1.2 says me only NO
works on ICS?
stevocz said:
works on ICS?
Click to expand...
Click to collapse
So far not... We need devs
Sent from my HTC Sensation XE with Beats Audio using Tapatalk
OTG USB on HTC MAGIC
I found this (Sorry i cannot post a link so you have to search for >> USB Host Mode on HTC Dream << on Blogspot) It is a step by step howto recompile a kernel with USB Host Support. Iwill try it on my old G1. But first I need a adapter or better a schematic for diy, so i can test if it works.
Greetings Hubert
tried today bricked kernel, which is supposed to have usb host... usb host diagnostics said no... and the device wasnt recognised...
Yesterday i got a USB cable with OTG.
Is this cable will be good?
http://allegro.pl/kabel-usb-micro-b-usb-2-0-katowy-90st-otg-i2151082743.html
------
The cable does not work at all. I can not even install the program USB Host Controller (e.g.). I ask because in HD2 had to connect the external power supply.
alien44 said:
Yesterday i got a USB cable with OTG.
Is this cable will be good?
http://allegro.pl/kabel-usb-micro-b-usb-2-0-katowy-90st-otg-i2151082743.html
------
The cable does not work at all. I can not even install the program USB Host Controller (e.g.). I ask because in HD2 had to connect the external power supply.
Click to expand...
Click to collapse
the cable itself is ok, but since we don't have otg working yet it won't work. If we ever get otg working i don't know if you have to power every device, a lot of devices will need power like external hdd's.
google nexus one & desire
Hey guys,
wasn't there news that ICS would have quite a few usb drives implemented.
Anyway, I know there was a big fuss about usb host mode in the google nexus one section and since they were one of the first to get ics working, maybe somebody from there could help out. Like from the top of my head leedroid, or somebody like him.
Can't post any links sorry.

[Q] Optimus 3D and usb host ?

there is a chance to make usb host functionality on our amazing phones ?
Omap 4430 board support 2x usb 2.0 ports on their full functionality.
It has to be supported by software. HoneyComb support it, and for sure ICS will support it. For the time being, either we ask LG to support it, or a developer may do the job, but I think we won't get it before we get ICS.
you can not do anything to have this ''usb host'' functional?
would be really helpful .....
I want usb host too.I hope this feature will be added on cm9

[DEV][TESTERS REQUIRED]USB-OTG for i9001

Hey peeps,i saw that the Desire HD has USB-OTG mod,so it might be possible to apply that patch over here.
Anybody willing to test?It requires the specific cable for testing!
NOTE-It might burn your motherboard due to excessive voltage/power!
Reply below..........
sakindia123 said:
Hey peeps,i saw that the Desire HD has USB-OTG mod,so it might be possible to apply that patch over here.
Anybody willing to test?It requires the specific cable for testing!
NOTE-It might burn your motherboard due to excessive voltage/power!
Reply below..........
Click to expand...
Click to collapse
Why we dont look at ICS porting, many other phones are doing it and succeded...Do you plan or thinking of porting to I9001?.
Check this out
negative ........it's impossible to port w/o a phone!
and the attachehed build.prop,from which phone?aosp build......
sakindia123 said:
negative ........it's impossible to port w/o a phone!
and the attachehed build.prop,from which phone?aosp build......
Click to expand...
Click to collapse
samsung Vibrant
http://www.youtube.com/watch?v=1xAokQUcE5k
rayiskon said:
http://www.youtube.com/watch?v=1xAokQUcE5k
Click to expand...
Click to collapse
it works for i9001?
Nice. In my opinion, working USB devices on I9001 it's only little time period
hurmmm.... i dont think so...
Hello
I have usb otg cable and i could test
Kalemucu said:
Hello
I have usb otg cable and i could test
Click to expand...
Click to collapse
sure......i will make kernel with USB-Host after Christams
I could test it too.
szpon said:
I could test it too.
Click to expand...
Click to collapse
i might make the kernel one of these days
Stay tuned
Hi, this idea sounds great! Unfortunately I am (still) too big a noob to try this (as you can see, I just joined this forum).
I was wondering if there is a way to connect a usb peripheral (especially a USB-keyboard) and make the Galaxy S Plus i9001 function as a USB-host.
arotius said:
Hi, this idea sounds great! Unfortunately I am (still) too big a noob to try this (as you can see, I just joined this forum).
I was wondering if there is a way to connect a usb peripheral (especially a USB-keyboard) and make the Galaxy S Plus i9001 function as a USB-host.
Click to expand...
Click to collapse
Well,u cud burn your motherboard
I was also thinking abt TV-OUT,has any device with MSM8255 got TV-OUT?
sakindia123 said:
Well,u cud burn your motherboard
I was also thinking abt TV-OUT,has any device with MSM8255 got TV-OUT?
Click to expand...
Click to collapse
You mean hdmi out?
Sgs+ has MSM8255T same as xperia arc s, which has an hdmi out.
Sent from my GT-I9001 using XDA App
szpon said:
You mean hdmi out?
Sgs+ has MSM8255T same as xperia arc s, which has an hdmi out.
Sent from my GT-I9001 using XDA App
Click to expand...
Click to collapse
any phones which didnt have tv-out by company,and devs did it?
If the arc s has (mini) hdmi out, this port is directly connected with the chipboard. You'll see that every msm8255-related board has hdmi connection possibilities when you look on the specification plan / roadmap of qualcomm about this board. It's impossible to use the mini usb port -> usb -> hdmi, by any usb to hdmi converter. There's windows, mac or linux based software needed for output in hdmi.
The sgs, sgs + (and possibly the i9003 as well) got a tv out trough the 3.5 mm jack. There was a thread about it a couple of months ago, since samsung made it impossible to connect it with a universal cable. Samsung changed the connector slightly to force people to buy the official samsung cables for this.
Sent from my GT-I9001 using XDA App
wietwiet said:
If the arc s has (mini) hdmi out, this port is directly connected with the chipboard. You'll see that every msm8255-related board has hdmi connection possibilities when you look on the specification plan / roadmap of qualcomm about this board. It's impossible to use the mini usb port -> usb -> hdmi, by any usb to hdmi converter. There's windows, mac or linux based software needed for output in hdmi.
The sgs, sgs + (and possibly the i9003 as well) got a tv out trough the 3.5 mm jack. There was a thread about it a couple of months ago, since samsung made it impossible to connect it with a universal cable. Samsung changed the connector slightly to force people to buy the official samsung cables for this.
Sent from my GT-I9001 using XDA App
Click to expand...
Click to collapse
Tnx for the info
Does such a cable exist?or one has to be shaped for the i9001?
sakindia123 said:
Tnx for the info
Does such a cable exist?or one has to be shaped for the i9001?
Click to expand...
Click to collapse
You mean the 3.5 mm to video connectors (3 colors analog connector, I forgot how they're called...)? Samsung should be selling those cables, but I havent searched for them. Camcorders of about ten years back often use them, however they wont work with galaxy s phones, since they made the connection proprietaire...
Getting the mini hdmi output connector on the msm8255 board is impossible of course (or someone should be willing to be soldering a mini hdmi connector on its phone )
Sent from my GT-I9001 using XDA App
if it is possible to build a kernel with usbotg support it should also be possible to make the sgs+ compatible with the car/deskdock
since chrismas i have a original samsung car dock, but as many others i have problems with charging/connecting.
i know the trick with "connecting slowly/half". it works, but this is not very comfortable.
isnt it possible to have a lock in the i9000 files to get the sgs+ compatible.
as far as i know samsung used the ID-Pin (no.4) in the micro usb connector to identify car or desk dock, as it is discribed in the official usb battery charging spec 1.2 ***.usb.org/developers/devclass_docs/BCv1.2.zip
the identification is a simple resistance messuament
and the 3 nominal values are 124k, 68k, 36.5k as discribed on page 56.
so maybe somebody can have a lock in the i9000 files and search for so called AccessoryChargerAdaptor detection (ACA dock).
or maybe someone knows an other way to get the sgs+ charging correctly in the car dock. (audio out isnt important)

Kernel Hacking Bounty

Kernel hackers on XDA
I may have a lucrative project for you. My company is looking for someone to help us hack the kernel for an off brand tablet chip. We are in the market for a low cost tablet solution but need it to support USB host and 3g which the low end tablet chipsets do not currently support.
We are discussing put together a fairly large bounty for this project but in the meantime I would love to get XDA's thoughts on what a project like this would take as far as time and what the probability of success.
Please feel free to respond or pm me for further details.
We would need to know specs. Device. OS. Any available source code. Stuff like that before we could even guess at an ETA
Sent from my Droid2Global using Tapatalk
atc3030 said:
We would need to know specs. Device. OS. Any available source code. Stuff like that before we could even guess at an ETA
Sent from my Droid2Global using Tapatalk
Click to expand...
Click to collapse
So that is part of the problem. There are multiple options for each.
The basics are we are looking at a Android 3.2 or 4.0 tablet with a rockchip or boxchip processor and at least one usb/micro usb port.
In the meantime we have been looking at using a Archos G9 tablet but have been unable to figure out how to get the device to print and charge from the single micro usb port. It appears the micro usb port cannot charge from host mode (unless there is some sort of internal setting we are missing). Instead we have looked at switching the usb mode via software. The problem is although the device is rooted we do not appear to have the ability to change files in the sys folder.
It is my understanding that were we able to change files in the sys folder we would be able to change the usb mode by:
# echo b_peripheral > /sys/devices/platform/musb_hdrc/mode
# echo a_host > /sys/devices/platform/musb_hdrc/mode
Any help would be greatly appreciated.
I recommend using a a500 tablet. It has USB host. You can get them cheap on eBay.
mattrb said:
I recommend using a a500 tablet. It has USB host. You can get them cheap on eBay.
Click to expand...
Click to collapse
Unfortunately I also need 3g and I haven't found the a501s for anywhere near as low a prices as the Archos w/3g.

Categories

Resources