Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[KERNEL][ICS-CM9 or JVU] USB Host mode (OTG) driver for SGS i9000 [BUILD 5]

OP sztupy

26th February 2012, 06:02 PM   |  #371  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 857
 
1,059 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Quote:
Originally Posted by vishal.l

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 ");
}

mice and keyboards are blacklisted by Android, so you can't access through USB_SERVICE
The Following User Says Thank You to sztupy For This Useful Post: [ View ]
26th February 2012, 06:03 PM   |  #372  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 857
 
1,059 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Quote:
Originally Posted by coooolboyz

Wow! So you are really looking in to it! Thats good news!

But why do we need additional cables for this?

I need them for development
The Following User Says Thank You to sztupy For This Useful Post: [ View ]
26th February 2012, 07:22 PM   |  #373  
Zeduaz's Avatar
Senior Member
Flag Karlovy Vary
Thanks Meter: 50
 
256 posts
Join Date:Joined: Sep 2011
More
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
Last edited by Zeduaz; 26th February 2012 at 08:47 PM.
26th February 2012, 10:01 PM   |  #374  
Member
Flag Timisoara
Thanks Meter: 35
 
66 posts
Join Date:Joined: Dec 2009
More
read the first post
For darky rom use CFRoot kernel for JVU with usb host support.

Sent from my GT-I9000 using Tapatalk
Last edited by caravagio; 26th February 2012 at 10:03 PM.
26th February 2012, 11:08 PM   |  #375  
Member
Flag London
Thanks Meter: 8
 
40 posts
Join Date:Joined: Jun 2010
More
Quote:
Originally Posted by 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

Nice!! :)
27th February 2012, 05:17 AM   |  #376  
salmanghiyas's Avatar
Senior Member
Thanks Meter: 42
 
367 posts
Join Date:Joined: Jul 2011
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 ... ?
Attached Thumbnails
Click image for larger version

Name:	kingstonG3_8GB_1__45320_zoom.jpg
Views:	66
Size:	14.8 KB
ID:	921584   Click image for larger version

Name:	micro-usb-otg-cable.png
Views:	70
Size:	68.5 KB
ID:	921585  
27th February 2012, 05:31 AM   |  #377  
Junior Member
Flag Mumbai
Thanks Meter: 0
 
14 posts
Join Date:Joined: Feb 2012
Question
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 ----------

Quote:
Originally Posted by sztupy

mice and keyboards are blacklisted by Android, so you can't access through USB_SERVICE



But mouse and USB pen drive also not detected by USB_SEVICES
27th February 2012, 06:46 AM   |  #378  
salmanghiyas's Avatar
Senior Member
Thanks Meter: 42
 
367 posts
Join Date:Joined: Jul 2011
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"


?????
Last edited by salmanghiyas; 27th February 2012 at 06:50 AM.
27th February 2012, 07:55 AM   |  #379  
Member
Thanks Meter: 4
 
42 posts
Join Date:Joined: Jun 2007
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.

Sent from my GT-I9000 using Tapatalk
27th February 2012, 08:04 AM   |  #380  
salmanghiyas's Avatar
Senior Member
Thanks Meter: 42
 
367 posts
Join Date:Joined: Jul 2011
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 !!!!!!!!!

Post Reply Subscribe to Thread

Tags
host, ics, kernel, usb
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes