Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,248 Members 37,687 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
sztupy
Old
#371  
sztupy's Avatar
Recognized Developer - OP
Thanks Meter 856
Posts: 1,054
Join Date: Dec 2008
Location: London

 
DONATE TO ME
Quote:
Originally Posted by vishal.l View Post
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: [ Click to Expand ]
 
sztupy
Old
#372  
sztupy's Avatar
Recognized Developer - OP
Thanks Meter 856
Posts: 1,054
Join Date: Dec 2008
Location: London

 
DONATE TO ME
Quote:
Originally Posted by coooolboyz View Post
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: [ Click to Expand ]
 
Zeduaz
Old
(Last edited by Zeduaz; 26th February 2012 at 07:47 PM.)
#373  
Zeduaz's Avatar
Senior Member
Thanks Meter 50
Posts: 256
Join Date: Sep 2011
Location: Karlovy Vary
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
 
caravagio
Old
(Last edited by caravagio; 26th February 2012 at 09:03 PM.)
#374  
Member
Thanks Meter 35
Posts: 65
Join Date: Dec 2009
Location: Timisoara
read the first post
For darky rom use CFRoot kernel for JVU with usb host support.

Sent from my GT-I9000 using Tapatalk
 
coooolboyz
Old
#375  
Member
Thanks Meter 8
Posts: 40
Join Date: Jun 2010
Location: London
Quote:
Originally Posted by Zeduaz View Post
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!! :)
 
salmanghiyas
Old
#376  
salmanghiyas's Avatar
Senior Member
Thanks Meter 43
Posts: 367
Join Date: Jul 2011
Default 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  
 
vishal.l
Old
#377  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Feb 2012
Location: Mumbai
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 View Post
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
 
salmanghiyas
Old
(Last edited by salmanghiyas; 27th February 2012 at 05:50 AM.)
#378  
salmanghiyas's Avatar
Senior Member
Thanks Meter 43
Posts: 367
Join Date: Jul 2011
Default 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"


?????
 
vpx
Old
#379  
Member
Thanks Meter 4
Posts: 38
Join Date: 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
 
salmanghiyas
Old
#380  
salmanghiyas's Avatar
Senior Member
Thanks Meter 43
Posts: 367
Join Date: 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 !!!!!!!!!

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

Advanced Search
Display Modes