yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Accessories] Force@997:
Hi there,

I have made an adapter which simply connected PIN 4 and 5 with a 365K Resister, the Home Dock mode launched, it works for my Galaxy S2 as well.

But I found a problem, after I have unplugged the adapter, the phone still keeping in Home Dock mode, even I crossed the dock app.

Every time when I pressed the Home key, the Home Dock app screen displays automically, unless I restart my mobile.

Does anyone know what mistakes occured, and any solution could solved it ?

Million thanks.
[Galaxy S I9000 Accessories] pspilot:
I had that problem twice, when I experimented with the car dock mode. It seems, the SGS2 stops polling that pin 4 from time to time, syncing isn't possible either then. For me, a reboot cured the problem every time, I have no better solution.
[Galaxy S I9000 Accessories] tiuk:
I've never had that problem with my captivate.

You can reset dock status with tasker, if you want to turn off car mode without rebooting.
[Galaxy S I9000 Accessories] pspilot:
Well, when I had my 'fun-with-resistors'-session, I'd probably switches the mode 100 times, in-out, in-out, in-out ... :). Even if it shouldn't harm, I had no problems to 'clean' the phone after it generally with a restart.
[Galaxy S I9000 Accessories] tiuk:
Just don't do what I did: stuck a bare micro usb connector in the phone and touched the resistor to the pins manually. Later learned that I couldn't connect to my phone anymore with adb, odin, etc. must have accidentally bridged something and fried the controller.
[Galaxy S I9000 Accessories] dejfson:
Guys,

I can confirm the power supply behaviour with the Samsung Galaxy Tab 10.1 as well.

1) when using the proprietary USB cable and plug it into the USB hub, the device goes into low-current charging mode. This is in android 3.0 indicated by red cross over the flash indicator shown in the right bottom corner where android shows the battery indicator

2) when using the same proprietary cable and plug it into charging module, which came with gtab, fast charge is activated, and the red cross over the battery flash disappears. This charger is rated 5Vdc/2A

Measuring the USB female on the charging module one can find, that D+ and D- are short circuited.

So I'm going to test it on my SGS. Just prepare a small car charger which forces the phone to use full charge. Then I run GPS/Wifi/Bluetooth/3G and have a look how long the phone will hold. I have however an unpleasant feeling, that the charging process will be stopped due to excessive heat during charging the battery.... will see.

d.
[Galaxy S I9000 Accessories] tiuk:
Read the posts between pspilot and myself above. Trust me, it works.

Sent from Captivate, CM7.1, Glitch.
[Galaxy S I9000 Accessories] Wodge80:
Humming noise through audio in dock mode

I wired up a cable in home dock mode with a 365K resistor which triggers well on my SG S2, with 3.5mm Audio out connected to pins 2 and 3, with ground to pin 5 which is shared with power ground and resistor bridge (which bridges to pin 4).

The Home dock mode triggers however I have noticed a low humming noise through my audio output when speakers attached and music is NOT playing. This seems to stop when music IS playing on my device.

Does anyone have any advice on how I can fix this? Am I getting interference from the power source? :confused:

FYI, My wiring is:

Pin 1 = +5VDC

Pin 2 = Audio out L

Pin 3 = Audio out R

Pin 4 = sense (365K resister bridged to pin 5)

Pin 5 = GND for +5VDC, Audio GND and resistor GND
[Galaxy S I9000 Accessories] tiuk:
Note that I am only a hobbyist when it comes to electronics, anything I say is based purely on observation and bits and pieces of stuff I've picked up along the way.

My first thought is that your issue may be resolved by use of a ferrite bead to act as a interference filter. I'm sure you've seen these before, they're common on USB cables, power adapters, etc. You can read about them here: http://en.wikipedia.org/wiki/Ferrite_bead

What I'm not sure about is if using one for all the wires that go to your USB connector would help, or if it would be better to use it just for power and ground (or just audio, for that matter). Hopefully someone more qualified can answer that. I'd also be interested in learning how to handle this best as I've also made Home and Car dock cables and intend to add the audio pins when I get the chance (we didn't have the information about audio via USB, nor support to be able to use it in CM7 at the time that I made them).

Sent from Captivate, CM7.1, Glitch.
[Galaxy S I9000 Accessories] Wodge80:
Thank you tiuk,

I'm actually an amateur when it comes to electronics so have been experimenting a bit from what I've read in these threads! :-P

I guess there is going to be an issue in providing a separate ground for the audio left and right. Perhaps ground can be provided from the usb plug connector itself for the audio? I'll need to try when I some more cables.

I also like your idea about the ferrite bead. I'll need to give that one a go!
[Galaxy S I9000 Accessories] tiuk:
You could try tying the audio ground to the shield, no idea what the result would be. I'm tempted to see if there is continuity between the phone's USB connector shield and that of the 3.5mm jack. After frying my last captivate's USB controller i'm a little gun shy, though.

Sent from Captivate, CM7.1, Glitch.
[Galaxy S I9000 Accessories] EldonP:
I haven't experimented with the audio on my SGS but I have a few thoughts. I've noticed that the headphone jack starts to hiss before and after playing audio which is then switched off. It seems to me that the DAC is actually powered up/down as needed which I'm guessing is the source of your noise, IE when the DAC is switched off the phone end of the USB cable is essentially an open circuit making it more prone to picking up noise.

I like Tiuk's idea of the bead, and I think you are doing the right thing by grounding both your left and right signals to the 0V lead. Generally the USB shield is tied to the 0V wire at some point in the phone but when designing signal conductors, you want to keep your shield and your 0V (which in this case is also your signal ground) separate and only tie all your grounds/shields at common ground point. If you tie the shield and 0V wire you might create a ground loop which could cause signal noise and potentially damage equipment. (You probably won't make one or if you did it probably wouldn't be an issue but then why open yourself up to more potential problems.)

Out of curiosity, do you still get noise from the amp/speakers when the USB cable is unplugged from the phone? Is the USB charging current coming from the amplifier's power supply or a separate wall wart? If they are separate, are both power supplies tying the USB shield to ground?

Edit: To clarify, the designers of the phone will tie the ground and shield. You shouldn't be doing it anywhere.
[Galaxy S I9000 Accessories] tiuk:
Good points, thanks.

Sent from Captivate, CM7.1, Glitch.
[Galaxy S I9000 Accessories] Dark Lam0r:
Nice Work

Hey Guys,

thank you for the whole information collected here.

Im working to build an IRdroid-Adapter (please google for more information cuz i may not post a link) that fits just under the phone (like a gum cover)

But im wondering if theres a way to get some energy out of the phone. Your first table describes the 102k value as a "phone powered device" while the second table says "do not use".

So will there be a way to get only some mA out of the USB to drive a LED?

My absolute favourite would be power+audio out but i think i must keep dreaming for this ^^
[Galaxy S I9000 Accessories] TheBeano:
No-one has yet found a way to get power out of the USB port. None of the resistor values result in 5V output appearing, and the path to do this doesn't seem to be hooked up in the available schematics. So sorry, you are probably stuck with an external battery or power source.

It is possible to take the audio output signal and convert it to DC to get some power, but I don't know if that would be enough to run an IR transmitter.
[Galaxy S I9000 Accessories] pay.c:
I know this thread is years old now, but still I hope this helps others: Just wire up the USB as OTG mode (wire GND and ID directly - "0 ohm resistor"). In OTG mode, the phone will deliver power via the +5V line / GND (no matter whether something is connected or not).
[Galaxy S I9000 Accessories] script0r1309:
Thanks a lot for this information :)
[Galaxy S I9000 Accessories] TheBeano:
Have you actually tested this on the I9000? I tried it but nothing happened. What firmware were you using?
[Galaxy S I9000 Accessories] pspilot:
It works. If nothing happens, your cable is wrong. You should see the phone shortly saying 'USB Connector connected' in the status bar (or similar, I see it in German language :)). And that happens just by shorting the key pin to ground, no device has to be connected really. It puts the phone's USB to host mode, which routes 5V to the V+ pin. It's needed for the logical connection of any device, that's why it's supplied unconditioned first. But beware, the current is limited (probably) to 100mA.
[Galaxy S I9000 Accessories] TheBeano:
Which firmware are you using though? Are you sure you're talking about the I9000 and not the SGS2? If this really does work on the I9000 please post the full details to the USB Host mode (OTG) driver for SGS i9000 thread as they are currently having to use external power with OTG cables.
[Galaxy S I9000 Accessories] pspilot:
Oops sorry, I confused the i9000 with the i9100. I have no idea about the support of the OTG feature on the i9000. Of course pay.c's hint only works on devices, that support OTG mode at all.
[Galaxy S I9000 Accessories] androidder:
Thanks for the thread , i now know how the docking systems work :)
[Galaxy S I9000 Accessories] fylim:
Hi, I got a griffin power jolt duo capable of charging devices up to 2amps. However charging the phone still seems at normal rate compared to wall charger. Any ideas on how to trick the phone to charge quicker?
[Galaxy S I9000 Accessories] tiuk:
Either modify your cable or an extension by bridging the DATA+ and DATA- pins (pins 2 & 3, middle two on the USB	A connector). You can also cut the cable and solder the green and white wires (verify that your cable uses the standard wire colors). This makes the phone register the cable as connected to a charger and will allow it to draw more than 500ma of current.

Edit: Wait, just realized you said compared to a wall charger). If the phone already registers it as such, don't bother modifying your cable because the battery pack already bridges the pins. Your phone is already charging as fast as it deems safe, unless your battery is overheating.

Sent from Captivate, teamhacksung ICS.
[Galaxy S I9000 Accessories] fylim:
OK let me clarify. When I use standard USB cable with the griffin car charger, checking battery in settings shows USB charging. It charges slowly. Usually have waze n internet radio app running. It fact slower than the discharge rate and thus actually not charging.

Then when I charge using the original wall charger that came with the phone, battery setting shows AC charging and it seems to b charging much quicker.

So my original question is how do I get the phone to draw more current during USB charging since the griffin in rated at 2 amps like during AC charging if there is actually a diff. The previous car charger I had only rated 500mah.

Tq
[Galaxy S I9000 Accessories] tiuk:
Okay, my mistake, i thought you were taking about a battery, not a car charger. In any case, it doesn't matter in this situation.

Since your problem is that the phone registers it as USB instead of AC, go with what i originally posted and bridge the data pins. I use a modified cable with my car charger.
[Galaxy S I9000 Accessories] fylim:
Tq very much. Let me try your suggestion.

Edit: voila! It works. Now showing AC charging!
[Galaxy S I9000 Accessories] tiuk:
Good to hear. After learning of this i modified a bunch of chargers and hubs to have charging ports by bridging the pins on the PCB so i can use any unmodified cable.
[Galaxy S I9000 Accessories] fylim:
Very good idea. You should have told me earlier hahah ;) Will go do that soon. Many thanks again!
[Galaxy S I9000 Accessories] tiuk:
I suggested the cable first since I didn't know how much soldering experience you had ;) it's good to have a modified cable to use with unmodified ports, though.
[Galaxy S I9000 Accessories] eTechUncut:
can someone please tell me which watt i should use. 1/8 1/4 1/2 ??? i have a few micro usb tips laying around and im considering making a homemade dock and jig. thanks.
[Galaxy S I9000 Accessories] mikereidis:
I never noticed this thread until now. :)

As far as I can see, the smallest resistor value is 2000 ohms. (2K)

If maximum voltage was 5 volts, then max current is 5v/2000 ohms = 2.5 milli-amps.

Power is current x voltage, so 2.5 ma x 5v = 12.5 milliwatts = 0.0125 watts.

So that's 1/80th of a watt. 1/8 watt gives 10x safety factor. Actual wattage likely much less, especially for the higher resistance values.
[Galaxy S I9000 Accessories] eTechUncut:
thanks for the info. i didnt want to burn out my device with a higher watt. i guess i will loop 3 100k 1/8w + 1 1k 1/8 to make a jig.
[Galaxy S I9000 Accessories] pyruse:
TTY Converter mode and UART voltage levels

Hi,

I've been reading this thread with interest since I need to use a Galaxy S as a general purpose UART interface.

What I'd like to do is have an app running on the Galaxy which allows be to send and receive data over a UART using the USB connection. I'm quite happy to write the app and do whatever kernel tweaks are needed to do this; don't need help with that bit.

I've seen how to put the device into Factory boot mode using different resistances between pins 4 and 5 of the USB connector.

Does anyone know what, if anything, the 'TTY converter' and 'UART cable' modes do? Are those useful?

Also, what is the voltage level when the phone is put in UART mode? Is it 3v3?

Any help appreciated.

Thanks
[Galaxy S I9000 Accessories] TheBeano:
Yes, it is 3v3, see post 26 of this thread, and this thread.
[Galaxy S I9000 Accessories] NoOneBR:
There is any way to have DATA and AUDIO OUT over MicroUSB?
[Galaxy S I9000 Accessories] pspilot:
No, not at the same time. For sophisticated smartphones with lots of features that micro-USB is just stupid. All funktions in the phone and you don't get them out ...
[Galaxy S I9000 Accessories] rib0n:
UART mode

Hi! After modding USB port to behave as UART, is it possible to use this port for custom data and not just for debug output? For instance, I would like to open ttySAC2 port with putty and enter some text which would then be transferred to my PC.
[Galaxy S I9000 Accessories] TheBeano:
Yes the ttySAC2 port works fine. In some configurations the serial port that's connected to the USB pins gets switched to the MODEM after boot and you need to switch it back, like this (from a terminal command line on the phone):

echo PDA > /sys/class/sec/switch/uart_sel

echo hi>/dev/ttySAC2 (you should see "hi" on a connected serial terminal).
[Galaxy S I9000 Accessories] rib0n:
Thanks, that is great to know! Imagine the possibilities having access to serial port on the phone...
[Galaxy S I9000 Accessories] NoOneBR:
And you know if there is a way to transform a Car Dock (which have audio-out over micro-USB) into a normal USB cable (which have data over mirco-USB)? If yes, I have to mod the hardware or there is a software which can handle it!?
[Galaxy S I9000 Accessories] pspilot:
Well this is a bit complicated :). Basically all that switching is done by software, but not any software. It's the firmware that takes care of the switching depending on the resistor connected to the keypin. So, if you manage to override that anyhow (probably in the kernel), most likely it would be possible to output anything on the 2 data lines - audio or USB-data. Unless you can't tweak that, you need to connect the right resistor to the key pin. That's regarding the switching.

But since the car cradle is hardwiring the 2 data lines into a 3,5mm audio plug that's another hardware problem. You needed to rewire that into a proper USB connector. Can all be done but is a pain in the neck :).
[Galaxy S I9000 Accessories] Pietplezier:
Is there a resistor to just normal boot the galaxy s? so from phone off -> Jig with resistor (??K) and just boot.
[Galaxy S I9000 Accessories] rib0n:
OK, now I have this thing working. I have modified the Serial port API sample to open /dev/ttySAC2 port so I can communicate with PC. When I enter text on my phone, it is displayed correctly on the PC but when I enter text on the PC, I get console response (#) from my phone. This is not always, sometimes the text displays correctly on the phone. So how can I disable console response?

Edit1: setconsole /dev/null doesn't help

Edit2: O_NOCTTY parameter doesn't help

Edit3: @Pietplezier: with 150K resistor and +5V vcc and GND connected, the phone powers on from power off mode when I connect the cable. I have 2.6.35.7 XWJVZ kernel.
[Galaxy S I9000 Accessories] chraso:
hi guys

what is "Factory Mode Boot ON-UART"? same as download mode?
[Galaxy S I9000 Accessories] Marcenzeichen:
My Galaxy S thinks my car charger is a normal USB-Port. What resistor do I need to get it recognised as an "normal" charger to use its 1200mA. tia.
[Galaxy S I9000 Accessories] fafler:
Hi. I can't find a similar thread for the I9100, so i'm trying my luck here.

I want to enable OTG on the I9100 and still charge the phone. According to table 6.5 and 5.3 in this pdf file i need to place a 124 k resistor between pin 4 and 5 to enter the right mode. Can anyone confirm this? It seems awfully close to the 121 k used for TTY converter on the I9000, but could that be because the I9000 wasn't really designed to be OTG compliant?

Any help on this matter would be much appreciated.
[Galaxy S I9000 Accessories] CNLiberal:
I just finished building a car audio dock cable thanks to a few posts here on XDA. I have an I777 GalaxyS2 from AT&T. I want to run WiFi tether, BlueTooth, and GPS w/ Google Nav, and Auto-Brightness simultaneously and have the phone charge. Currently, I can't do it. The phone seems to be losing charge. Am I reading this thread correctly, and seeing that it isn't possible due to the draw of all those apps/functions? I have a 1A adapter in the car, so it should be getting enough power. Thanks!
[Galaxy S I9000 Accessories] SanityPreservation:
uboot vs. hboot

Hello all. I am apologizing in advance, I am a real noob at this and not really on topic or the correct device but I came here after searching uboot bootloader on the net and noone else seems to know what it is or anything about its capabilities.

OK, here goes.

An HTC Sensation phone bought online has UBoot Ver. : 2010.06 bootloader on it (most likely a fake or a clone) and my questions are:

-is it possible to replace uboot with another bootloader such as hboot ?

-what can be done with this uboot ? is it able to flash files ?

-is it able to recieve commands via adb and fastboot so I can replace any .img I want?

Thanks in advance.
[Galaxy S I9000 Accessories] E:V:A:
You are confused and didn't read the specifications very carefully (and neither did I). But the specifications say that the 124K value is used between D+ and D-. The values you compare to 121K is between GND and ID_CON!

In addition there are some requirements on the presence of a VBUS...
[Galaxy S I9000 Accessories] kasinatorHH:
hi folks,

I wonder if somebody was able to use the resistor combinations RID_AUD_REMOTE_S*_BTN to control some of the standard MP3 players on Galaxy S2.

Second is does somebody tried to apply the corresponding voltage values with a DAC.

I'm asking because I think of making a Bridge between my Car-CAN.BUS and the RID-Pin to be able to control the S2 via the Steering Wheel Switches. All I would then need is a 4-5 pin micro translating the Steering Wheel Messages into DAC-Values in car/dock Mode.

That would be cool:

Just stick the USB-Cable into the mounted S2, Car-Audio goes into AUX-Mode (automatic) and shuffling through the MP3 collection without taking hands of the Steering Wheel while the S2 is charged.

What do you think about that?

Regards

Kasinator
[Galaxy S I9000 Accessories] CNLiberal:
Any music app out there would have to be programmed to "listen" for the remote signals. None out there do that (as far as I know). This is simply because this is a Samsung only remote. Because Android hardware is so fragmented, no manufacturer can come out with something that will work with all devices (Like in the Apple world). It's a shame, but whaddayagonnado.
[Galaxy S I9000 Accessories] tiuk:
Would a loud audio file played through the headphone port be enough to drive an LED? If so, would any components other than the LED and headphone connector be required?
[Galaxy S I9000 Accessories] kasinatorHH:
Voltage on headphone out could be sufficient to drive LED but that is depending on the Uf Voltage of the certain LED that is mostly color dependant.

But: actual smartphone do sensing what load is attached to the output: Line-Out / headphones have different impedances. So the phones might adapt drive strength and maybe equalizer setting. Can't predict how the Smartphone will perform.

Usually the headphone outputs should be short-circuit protected so you shouldn't be able to destroy something by attaching LED. But do it at your own risk.

Just try it :D.
[Galaxy S I9000 Accessories] jp.esteban:
Are these the same resistor values to use with a Galaxy Note?
[Galaxy S I9000 Accessories] proggg:
Worked very fine.

Thanks for your fine work :)
[Galaxy S I9000 Accessories] Frank2:
Car dock mode (619k):

No problem with Galaxy Note 1, but the new Galaxy Note 2 isn't switching to car mode and there is no charging! When I remove the 619k-resistor the Note 2 is charging in the car dock (but of course no car mode).

What is the correct resistor for the Note 2?
[Galaxy S I9000 Accessories] TheBeano:
The source code for the GT-N7100 isn't out yet, there might be a clue in there. Or it could just be a bug.
[Galaxy S I9000 Accessories] Frank2:
The source code is out now!

http://opensource.samsung.com/index.jsp;jsessionid=37676DF4AA1B9E1E50E961550010F957
[Galaxy S I9000 Accessories] TheBeano:
Thanks, I had a quick look and they no longer use the FSA9480 chip for the USB interface, instead it looks like they use the MAX77693 chip, same as the Galaxy SIII. There is a resistor table for cable detection in the code that has the same values for the car dock etc.:

ADC_DOCK_VOL_DN	= 0x0a, /* 0x01010 14.46K ohm */
ADC_DOCK_VOL_UP	= 0x0b, /* 0x01011 17.26K ohm */
ADC_DOCK_PLAY_PAUSE_KEY = 0x0d,
ADC_SMARTDOCK	= 0x10, /* 0x10000 40.2K ohm */
ADC_AUDIODOCK	= 0x12, /* 0x10010 64.9K ohm */
ADC_CEA936ATYPE1_CHG	= 0x17,	/* 0x10111 200K ohm */
ADC_JIG_USB_OFF	= 0x18, /* 0x11000 255K ohm */
ADC_JIG_USB_ON	= 0x19, /* 0x11001 301K ohm */
ADC_DESKDOCK	= 0x1a, /* 0x11010 365K ohm */
ADC_CEA936ATYPE2_CHG	= 0x1b, /* 0x11011 442K ohm */
ADC_JIG_UART_OFF	= 0x1c, /* 0x11100 523K ohm */
ADC_JIG_UART_ON	= 0x1d, /* 0x11101 619K ohm */
ADC_CARDOCK	= 0x1d, /* 0x11101 619K ohm */
#if defined(CONFIG_MUIC_DET_JACK)
ADC_EARJACK	= 0x1e, /* 0x11110 1000 or 1002 ohm */

But there are a lot of conditional compile settings e.g.

#if !defined(CONFIG_MUIC_MAX77693_SUPPORT_CAR_DOCK)

So they may have compiled it without this activated for the Note 2. Possibly the SGS III forums have more info?
[Galaxy S I9000 Accessories] Frank2:
The S3 works in car dock mode with 619k resistor.