yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] zeb crs:
Thisd is the schematics for the Samsung USb kit:

Pin

1 - GND

2 - GND

16 - GND

30 - GND

6- VCC ACCESSORY- To caps + C1,C2,C3 (C3 is not populated)

4 - D- USB pin 2

3 - D+ USB pin 3

14 - named DEC on pcb not connected to anything

13 - USB ID - connected to GND via 20 K resistor R1

www.r-888.com/Bilder/IMG_20110827_153847.jpg

www.r-888.com/Bilder/IMG_20110827_153859.jpg

Added a small dc/dc to it from an emergency mobile charger

www.r-888.com/Bilder/IMG_20110827_155622.jpg

www.r-888.com/Bilder/IMG_20110827_155629.jpg
[Galaxy Tab  Android Development] punkgeek:
That's great. Have you tried out my kernel yet? I can build a Heimdall image for you if that would help. (However your os image would need to be Froyo until someone ports my changes to a newer kernel).

Before you added the mod I presume that they were hooking the VCC acc to pin one of the USB connector? On monday I'll play with the somewhat dangerous idea of changing the LDO setpoint of LDO8 in software to see if VCC_ACC changes levels then slowly try ramping up to 5V on that pin (I sure hope that LDO _only_ goes to USB :) ).
[Galaxy Tab  Android Development] zeb crs:
No, I have not tried it yet. I will try tonight. I just have to flash some froyo based fw on it. A Heimdall or preferrably odin image would be helpful or even a cwm.

I just disconnected 3,3 from the tab and put the dc/dc between the tab and usb connector.

If it doesn't work with ramping up the LDo to 5 volts I can make a simple pcb to solder the connector straight to it on one side with dc/dc and an USB connector on the end. I would personnaly like to have the USB angled 90 degrees from the connector.
[Galaxy Tab  Android Development] TarjeiB:
Stupid question maybe, but isn't 3.3v also considered an acceptable USB voltage? For some reason I seem to recall a lot of my devices being marked 3.3v.
[Galaxy Tab  Android Development] dizgustipated:
Can u please let me know if it works?

As I am thinking about adding it to my kernel, but wont (yet) if it doesn't.

I don't have the the tools, or if I am to be truthfull, the desire, to try it.

but have no problem adding it for others.

Cheers
[Galaxy Tab  Android Development] zeb crs:
As soon as I get a version of this kernel to test as i am no programmer :-) I will test this. I have 2 versions of this hw on the desk here now. One with step up to 5 volts and one without.

I really like the idea of being able to turn it on and off via software instead of setting the hw port correctly with resistors.

That gives the opportunity to combine this with charger and audio output as well. At least that is what I need to use this in my car. That is a modified original car holder to give both charge and audio. This will also support my usb hdd in the car so I have access to my music collection there.
[Galaxy Tab  Android Development] dahas:
Solder:

ground (black) to pin 1

green (D+) to pin 3

white (D-) to pin 4

red (+5V) to pin 6

and 20K resistor between pins 13 and 15

This is the DIY for galaxy tab 10.1 and work with usb key.

here is the link for what they do http://www.galaxytabs.com/2011/07/diy-usb-host-for-galaxy-tab-10-1/ and here is usb pin out http://xdaforums.com/showpost.php?p=14612129&postcount=1
[Galaxy Tab  Android Development] punkgeek:
Sounds good - though to get this working on the 7" I'll need to play with LDO settings to ramp up the voltage on pin 6. I'll try this this weekend.
[Galaxy Tab  Android Development] dahas:
is any chance to use a new kernel like 2.6.35.7? this is the most used kernel in 2.3.3 android in this way you can post kernel module if is not any changes in kernel code.

There is some programs who let you load modules w/o knowlage of what that means :) at the boot time.

I use Overcome Kratos now on galaxy tab. I have also Galaxy S I9000.

S II have such module loaded on last stock kernel.
[Galaxy Tab  Android Development] LuckOne79:
Wow, perfect news ... Maybe we can get this in Overcome and/or other roms ... Will do some talk :D :eek:
[Galaxy Tab  Android Development] punkgeek:
It would be easy to port this change to a newer kernel (I originally developed it against a kernel used by Spacemoose for Honeycomb).

Can you point me at a source repo for Kratos?
[Galaxy Tab  Android Development] dahas:
Source is here

https://github.com/alterbridge86

But can find more info on website and or specified webpage of overcome.

http://xdaforums.com/showthread.php?t=1205990

http://www.teamovercome.net

I have a carkit accesories and i open it today to see what it have to let know the tab is connected car home accesories and more can be powered from any usb port w/o put that red cros over battery.

I find something who worth to open it:

1. have full connector with all pins sold on pcb (true i need a good hand to make some changes)

2. can hide some small parts isnside can put a second connector for let say micro usb and access him from outside with usb data or HOST option using a micro switch to change mode of usb port.

3. with this a have 3 in 1. USB charger and extra power if i need to connect a external usb hdd or other device who eat more power (original connector mode), at second usb can give power w/o firs usb connected and have data in/out and low power with charger, and last mode usb host (lower power w/o original power pluged) or full power with original power connected.

I will post the picture of pcb and rest of parts from car kit (Samsung original).
[Galaxy Tab  Android Development] dahas:
Here is all pic of pcb

Picture 1

Picture 2

Picture 3

Picture 4

Picture 5

Picture 6

Picture 7

Picture 8
[Galaxy Tab  Android Development] dahas:
This is very interesting info :) i sow the pin 13 had 2 resistors 1 of 1.5K and another 4.5k that make 6k conected to the ground. This when is plug to tab make the tab see car home accesories.

The +Vcc for power come to ping 7 and 8 (i dint check to 8 but im positive to 7) I look on the usb cable who come with tab and he have pins on 3,4,7,8,15,16 and 30

This table i got it from 30 pin to serial post who use a 200K trimmer and set it for 150K to work as serial (enable serial lines) maybe the answer come from corect resistance put on pin 13 to get 5V that make more easy to use a trimmer to get the proper value to set it on usb host.

For tab 10.1 he use 20K and work to start up a usb stick but not a usb HDD.

This is the table of resistances from kernel in arch/arm/mach-s5pv210/include/mach/fsa9480_i2c.h

Code:

typedef enum

{

RID_USB_OTG_MODE, /* 0 0 0 0 0 GND USB OTG Mode */

RID_AUD_SEND_END_BTN, /* 0 0 0 0 1 2K Audio Send_End Button*/

RID_AUD_REMOTE_S1_BTN, /* 0 0 0 1 0 2.604K Audio Remote S1 Button */

RID_AUD_REMOTE_S2_BTN, /* 0 0 0 1 1 3.208K Audio Remote S2 Button */

RID_AUD_REMOTE_S3_BTN, /* 0 0 1 0 0 4.014K Audio Remote S3 Button */

RID_AUD_REMOTE_S4_BTN, /* 0 0 1 0 1 4.82K Audio Remote S4 Button */

RID_AUD_REMOTE_S5_BTN, /* 0 0 1 1 0 6.03K Audio Remote S5 Button */

RID_AUD_REMOTE_S6_BTN, /* 0 0 1 1 1 8.03K Audio Remote S6 Button */

RID_AUD_REMOTE_S7_BTN, /* 0 1 0 0 0 10.03K Audio Remote S7 Button */

RID_AUD_REMOTE_S8_BTN, /* 0 1 0 0 1 12.03K Audio Remote S8 Button */

RID_AUD_REMOTE_S9_BTN, /* 0 1 0 1 0 14.46K Audio Remote S9 Button */

RID_AUD_REMOTE_S10_BTN, /* 0 1 0 1 1 17.26K Audio Remote S10 Button */

RID_AUD_REMOTE_S11_BTN, /* 0 1 1 0 0 20.5K Audio Remote S11 Button */

RID_AUD_REMOTE_S12_BTN, /* 0 1 1 0 1 24.07K Audio Remote S12 Button */

RID_RESERVED_1, /* 0 1 1 1 0 28.7K Reserved Accessory #1 */

RID_RESERVED_2, /* 0 1 1 1 1 34K Reserved Accessory #2 */

RID_RESERVED_3, /* 1 0 0 0 0 40.2K Reserved Accessory #3 */

RID_RESERVED_4, /* 1 0 0 0 1 49.9K Reserved Accessory #4 */

RID_RESERVED_5, /* 1 0 0 1 0 64.9K Reserved Accessory #5 */

RID_AUD_DEV_TY_2, /* 1 0 0 1 1 80.07K Audio Device Type 2 */

RID_PHONE_PWD_DEV, /* 1 0 1 0 0 102K Phone Powered Device */

RID_TTY_CONVERTER, /* 1 0 1 0 1 121K TTY Converter */

RID_UART_CABLE, /* 1 0 1 1 0 150K UART Cable */

RID_CEA936A_TY_1, /* 1 0 1 1 1 200K CEA936A Type-1 Charger(1) */

RID_FM_BOOT_OFF_USB, /* 1 1 0 0 0 255K Factory Mode Boot OFF-USB */

RID_FM_BOOT_ON_USB, /* 1 1 0 0 1 301K Factory Mode Boot ON-USB */

RID_AUD_VDO_CABLE, /* 1 1 0 1 0 365K Audio/Video Cable */

RID_CEA936A_TY_2, /* 1 1 0 1 1 442K CEA936A Type-2 Charger(1) */

RID_FM_BOOT_OFF_UART, /* 1 1 1 0 0 523K Factory Mode Boot OFF-UART */

RID_FM_BOOT_ON_UART, /* 1 1 1 0 1 619K Factory Mode Boot ON-UART */

RID_AUD_DEV_TY_1_REMOTE, /* 1 1 1 1 0 1000.07K Audio Device Type 1 with Remote(1) */

RID_AUD_DEV_TY_1_SEND = RID_AUD_DEV_TY_1_REMOTE , /* 1 1 1 1 0 1002K Audio Device Type 1 / Only Send-End(2) */

RID_USB_MODE, /* 1 1 1 1 1 Open USB Mode, Dedicated Charger or Accessory Detach */

RID_MAX

}FSA9480_RID_ENUM_TYPE;
[Galaxy Tab  Android Development] zeb crs:
I have installed Froyo P1000XWJMK now but I have problems installing the zimage file I got on this with Odin. It just crashes during flashing.

What is the "easy" way to change the kernel then?

ARRGHH!!! Stupid protected bootloader.......... Been at Ginger too long and had forgoten all about the protected bootloaders...:-)
[Galaxy Tab  Android Development] zeb crs:
Hmm, I can't get this to work. I installed the kernel now.

I lost 3g.. But I also lost access to most programs as well including market.

I tried downloading a terminal emu via web interface but now I do not have enough space to install it !

Have to wait for some Ginger kernel to try this out later on then.Just makes things so much easier :-)
[Galaxy Tab  Android Development] dahas:
What have this with USB? and the other post? Please watch wher you post and for what too. Thanks
[Galaxy Tab  Android Development] dahas:
USB Power

Dedicated charger mode:

A simple USB charger should short the 2 data lines together. The device will then not attempt to transmit or receive data, but can draw up to 1.8A, if the supply can provide it.

USB voltage:

Supplied voltage by a host or a powered hub ports is between 4.75 V and 5.25 V. Maximum voltage drop for bus-powered hubs is 0.35 V from its host or hub to the hubs output port. All hubs and functions must be able to send configuration data at 4.4 V, but only low-power functions need to be working at this voltage. Normal operational voltage for functions is minimum 4.75 V.

On galaxy tab P1000 battery lvl is lower than 4.75 so for power up something and to work at full speed need external power supply like usb self powered hub.
[Galaxy Tab  Android Development] zeb crs:
Hey, dude, Ever heard about dc/dc converters? it is a couple of them inside it.

The USb host port on the go standard was never meant to charge otther thing at all. It is meant to power devices as usb stick, keyboard, mice and stuff like that. I f You need more power than than You should always use a powered hub. Powered hub's are normally limited to 500mA's for each ports as well. Most dedicated chargers run at 5,1volts or up t 5,3 volts ( at least those we have tested) There is no "standard" how to set up the devices for fast charge when on external charger. The tab can draw up to 2100mAh when connected to a dedicated charger.
[Galaxy Tab  Android Development] zeb crs:
If You would bother to read the other posts here You would see we are testing kernels. To test a Froyo kernel You would nee Froyo modem and system too.

When trying to install the Froyo USB ENABLED kernel I had problems with this.

:eek:
[Galaxy Tab  Android Development] dahas:
Sorry but i have home a 10 port usb powerd by 2A and can get 2A from hin on any port if is the proper cable who can drain that.

dont have resistor on power line to limit the curent for each port. Just a fuse on power line. Putting a 2 resistors on data line betwen + and - can get 2A for tab and power indicator to show chargin.

Sorry about your post nothing related with previous 5-7 post (didnt count) and to see the link betwen compiling a kernel and usb job :).

Be more clear about you do some dont know ever what means compile kernel or what is that for.

About the Galaxy tab 10.1 do you think they have a DC/DC convertor to power up a usb stick or other device on low power (100mA?).

I finish my wiring the 30pin port now just have to get the proper module to can see a usb stick.
[Galaxy Tab  Android Development] zeb crs:
On the 10.1 they probably get the usb power from a dc/DC. (since the battery is 3,7 volts they have too :-) )

The P1000 still possibly has the correct voltage. There is a programmable LDO on the power output for the USB port on it as well. The registers has still not been explored fully. The problem is it is dangerous to play to much with registers for the LDO's as You can end up with overvolting something and burn it.

The LDO on the 10.1 should give out in the 300mA class I would guess as a lot of usb sticks consumes around that.
[Galaxy Tab  Android Development] punkgeek:
Using the samsung adapter

Hi ya'll,

So I've figured out how to get 5V from the SGT to the target device (without needing an external supply). The SMB136 power adapter in the SGT has this feature http://www.summitmicro.com/prod_select/summary/SMB136/SMB136.htm. Does anyone have the datasheet for this part? I'd need to know how to turn on the host mode supply that is listed in the block diagram.
[Galaxy Tab  Android Development] rainbow ng:
Is it possible to use the p7500 usb adaptor on p1000?

I have just pur hase one usb adaptor for p1000 from samsung. Would anyone kindly show me how to put the p1000 usb controller function on or put the script to the tab, thank you!
[Galaxy Tab  Android Development] Geletis:
So it will work!

I always thought the voltage was there. (I never believed that Samsung would have promised a camera kit if the SGT was physically incapable of sending 5V).

No I don't have the data sheet, but that page indicates that Summit will make it available if you contact them.
[Galaxy Tab  Android Development] alexander81:
some news??
[Galaxy Tab  Android Development] dahas:
Good news bad news.

Here is the list of components of what is made Galaxy Tab GT-1000.

http://www2.electronicproducts.com/Galaxy_Tab_Gt_P1000_-whatsinside-101.aspx

On list I sow a LM2757 who is also capable to provide 5V from battery which is on the list and used. I guess for chargin flash Led. I guessing is the same way he can pull up from 3.3V to 5v and deliver 200mA.

Here is data sheet.

http://www.national.com/ds/LM/LM2757.pdf

I have done my DYI from car holder.

1. Can use it like was made no extra cable (use resistors from pcb as was made)

2. I can use in car mode and to charge and connect it as usb disk to my car (no need to use bt for play mp3 nor audio cable)

3. I can use it as usb host (missing driver) and charging from cable of car holder or from car usb. (used with 20K on ping 13 and ground)

4. I try to use for home stand where to get power from usb hub and data.

Dont know which to be Video Out or something else (12K resistor)

List of resitor i got

20K ohm - USB Host (USB OTG)

7.25K ohm - Car Dock (I found it inside a orginal Samsung ECS-V980 car dock, without sound jack, only power)

12K ohm - Video Out (only P1000)

4,3K ohm - HDMI dock only if plug audio out cable
[Galaxy Tab  Android Development] grumpy.medic:
USB Thumbdrive?

Realizing that this question is redundant... I just want to make sure before I buy a Galaxy Tab that this does what I want/need.

After flashing this new kernel, will I be able to simply plug in a/any usb thumb or flash drive and access it?

I am looking for an alternative to my netbook to do deaddrops and if this is indeed the case, it would be wonderful.

Please let me know and apologies for asking a most likely "duh" question.
[Galaxy Tab  Android Development] mdalacu:
Buy Acer A500 if you want usb host the easy way.
[Galaxy Tab  Android Development] TheGrammarFreak:
Chrz br0. :rolleyes:
[Galaxy Tab  Android Development] sonic74:
The Samsung Galaxy S II i9100 has powered OTG out of the box, but I have some problems using it. It's based on an Exynos 4210 but shares the same s3c-otg driver. How do the bugs you fixed surface? Is it worth that I try to port them to its kernel tree?
[Galaxy Tab  Android Development] grumpy.medic:
Well... I considered the A500 but don't want another Acer device.

Went to Fry's this week to get my hands on a Toshiba Thrive, appears to work with USB as long as it is not formatted for NTFS... but I am sure there is a work around for that as well.

So that being said, I still would like to know if the Galaxy Tab has usb host support with this kernel or not.

~cheers
[Galaxy Tab  Android Development] theduke89:
stop spamming about other devices.

Said that...is this topic dead?
[Galaxy Tab  Android Development] Anaemia:
Hi,

I'm a newbie for galaxy tab P1010

may i ask......how to install the kernal ?????

Thanks :)
[Galaxy Tab  Android Development] theduke89:
Wrong Topic. Read carefully other topics before writing in the first one you read the word kernel. You can flash a kernel F.E. chainfire's one through ODin BUT BEFORE READ CAREFULLY AND READ AGAIN the third topic: ROOT GUIDE. You will learn everything you need not to BRICK your tab.
[Galaxy Tab  Android Development] ariver:
any progress...?

So it seem like there is no progress in this thread any more. Did anyone manage to make usb host work or are we all stuck without?

I do agree that a gingerbread kernel would be most interesting/usefull. So aren't there anyone here that could make that happen?

Never mind the power supply issue that is easilly fixed. The main thing is the usb functionallity.
[Galaxy Tab  Android Development] Lilien:
+1

It would be the the icing on the cake to have the usb-device (e..g. usb-flash drive) powered by the Tab, but it is still possible to use a powered hub.

Would it help to start a bounty on the usb host mode support?

Regards, Juergen
[Galaxy Tab  Android Development] Technomancer:
It wouldn't. What would help is a good kernel dev who knows how to do it.

The OTG code is there in Froyo kernel but it was ripped out in Gingerbread kernel. And it is probably not trivial to add it back. Although this Galaxy S2 source may be helpful.
[Galaxy Tab  Android Development] punkgeek:
Alas - I was in Africa for the last month. My fixes should port fairly painlessly to another kernel (I only did the work against EA24 because that what I needed for my application).

If someone has a modern kernel/ROM that they like and fulfills the following requirements, I don't mind porting these patches myself. The kernel/ROM would need the following:

Support for CDMA tabs (that's what I use)

A github site so I can build from source, apply my patches then do a push.

If someone can post a link to such a kernel, let me know and I'll prop my changes.
[Galaxy Tab  Android Development] dongle:
Would be very welcome for those of us not so blessed with the software skills. Please......
[Galaxy Tab  Android Development] agc93:
Sorry to seem pushy, but is there any development underway on integrating these changes onto a) a Gingerbread kernel or b) GSM tabs or even better, both?

I'm a GSM 2.3.3 user, so I'm not a lot of help, sorry..
[Galaxy Tab  Android Development] lardman:
I was just looking through the kernel source and wondered whether anyone has checked whether the following enables otg host mode on a Gingerbread Tab (you need to be root)?

echo "DHOST" > /sys/bus/i2c/drivers/fsa9480/7-0025/switch

I've lost my gender changer otherwise I'd try myself (stick standard Tab cable into gender changer then into powered hub).

I've got a gender changer on order so will test myself in a couple of days if no-one beats me to it.
[Galaxy Tab  Android Development] gorelshv:
Don't forget to report back ;)
[Galaxy Tab  Android Development] lardman:
Adaptor finally turned up.

I had a quick go but doesn't look like anything happens (looking at dmesg) - the powered hub shows no connection from the bus, so presumably there is something else that needs to be switched on, or some other way of doing it.

I'll have a look at the Froyo patches when I get a spare minute or two and see what else they do.
[Galaxy Tab  Android Development] rustyshack3:
There is probably more to it than just using a gender changer. I believe, from reading in the past, that there is another connection made that acts sort of like a jumper to set OTG. Granted that reading was for other hardware, but I assume the Tab is going to be similar. This is what separates mini-A from mini-B and mini-AB (other than the obvious connector differences).

I've tried using the adapter from the Tab 10.1 and get some info in DMESG when I connect it, but it's not enough information for me to build a node from. This is using a stock GB kernel. You should probably try with one of those adapters instead of just using a gender changer. It would be nice if it were that simple though. Anxiously waiting.

Edit:

For some reason your last post wasnt showing up. Looks like we are on the same page now.
[Galaxy Tab  Android Development] lardman:
Afaiu Attach Detection Protocol is used (http://en.wikipedia.org/wiki/USB_On-The-Go#Protocols) to automatically switch the chipset mode, however one can normally do away with this and explicitly tell the kernel to switch mode, which is what I was hoping the sysfs entry was doing. I didn't look too hard though, so I may well have missed something else/other than has to be done.

I suppose it depends whether that particular adaptor is recognised by the kernel, I'll have to take a look at the kernel source for the 10.1 tab and compare how the 30pin connector code handles things. I might get a chance this week, but no promises, lots of other stuff to do (like attempting to persuade the Pandaboard user-space OpenGL-ES libs to talk through our kernel driver, oh and work ;) )

Cool :)
[Galaxy Tab  Android Development] CLShortFuse:
Any chance you can upload your Sprint kernel? Am I right to assume the kernel is not the modem, so it may be flashed to Verizon device too?

I have a T-Mobile, Verizon, and Sprint one.

I'm working with a car sound shop trying to build a dock to put Galaxy Tabs in a couple cars. We have charging alright, but I would need the modified kernel.
[Galaxy Tab  Android Development] ZhuraYuk:
Can you make some kernel patch in zip CWM format?
[Galaxy Tab  Android Development] sztupy:
I ported these changes to Galaxy S (i9000), so they are definitley working, and good for other similar handsets.
[Galaxy Tab  Android Development] Lilien:
Wow, great work!

So finally there is the proof that OTG/host-mode is possible with a recent kernel, thanks!
[Galaxy Tab  Android Development] espionage724:
Hmm, so I'm a bit confused as to what this could be used for. I looked around and I saw on Page 2:

So, does that basically mean you can make a USB hub connector of some sort, plug it into the SGT, and then use USB devices, the such being a keyboard or mouse?
[Galaxy Tab  Android Development] TheGrammarFreak:
Yeah.

In the Tab's current configuration it acts as a slave USB device. The computer's in control. With USB host the Tab gets the ability to act as the master device, and while you can't force your PC into slave mode you can use its USB peripherals with the Tab (with an adapter).
[Galaxy Tab  Android Development] {Diemex}:
What was the problem with the sgt. Why hasnt anyone merged the changes with a recent kernel? Is it because it doesnt work or is it just that noone has taken the time to do it?
[Galaxy Tab  Android Development] zeb crs:
It seems that the HW in the P1000 only gives 3.3 volts out when in OTG mode. The last time I worked on this I used a dcdc I found on ebay to get 5 volts from the 30 pin port. I got the U_SB initialised but there was no good OS support then. Now I have sold my P1000 a long time ago but I still have the dev stuff in the drawer.
[Galaxy Tab  Android Development] mahan21:
will I be able to use this with my galaxy tab p1000 http://images.excheap.com/imagecache/OTG-Connection-Kit---SD-Card-Reader-for-6879310310.jpg
[Galaxy Tab  Android Development] the_kwa:
No, I have the verizon version (sch-i800) and that same adaptor. I wouldn't work.

The only way to get USB host on the 7" tabs is a y-cable and plugging into the wall. I never took the time to make all that because it defeats the purpose.