yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Accessories] camo.b:
7805 should deliver a constant 5 volt and the galaxy should use a standard micro usb not sure why it wouldnt work....you definatly outputting a constant 5v @1amp with your solar setup....i have had some older phones that would charge on under 1amp say 500ma to 800ma not sure my galaxy note would think it requires a min 1amp charger.and im not sure you can force them to accept charge with a resistor on a micro usb like you can with a galaxy tab....try turning the sammy phone off and charge it with your setup and see if it will light up.
[Galaxy S I9000 Accessories] PREMOLIKES:
It has a 4 pin micro usb charger pin ,so definitely it does something with the data pins.
[Galaxy S I9000 Accessories] camo.b:
Shouldnt it be 5 pin....4 pin is fine for just power (5v +/-) and data (d+/-)that should get you charging and data sync working.ive just made a batch of chargers that are similar (7805s and just power +/-connected) but i have some for desk dock and one for cardock and one for otg usb.all use the 5th pin for acc id via a resistor or just to ground for otg.have you got your micro plug body connected to ground?

---------- Post added at 01:28 PM ---------- Previous post was at 01:25 PM ----------

Actually my car and desk docks use data +/-for audio out.but the straight car charger i built does not use the data pins just 5v+/-and the plug body as a second ground
[Galaxy S I9000 Accessories] PREMOLIKES:
The gnd is not connected to body.
[Galaxy S I9000 Accessories] camo.b:
On yours?i cant recall if its even suppose to be but im usually working with sheilded cable so ive always got a 2nd ground that i connect.
[Galaxy S I9000 Accessories] PREMOLIKES:
it's a hard task to measure the resistance on those data pins ,,somehow measured it.I seems shorted.
[Galaxy S I9000 Accessories] camo.b:
Is that shorted on the device end or the charger end?ive got a htc hd2 charger that use to trip my note into car mode for that to happen it usually requires a resistor on pin 5...not sure if it was a combo of dirty charger or funny micro usb cord....apart from data sync d+/- arnt nessacery for anything to do with charging...with the addition of a resistor you can get mabee mhl (hdmi out ) or audio out over d+/- depending on the model.
[Galaxy S I9000 Accessories] PREMOLIKES:
It worked.Just the data pins shorted.
[Galaxy S I9000 Accessories] camo.b:
Excellent.
[Galaxy S I9000 Accessories] PREMOLIKES:
I think need a zener and a transistor to cut off charging when fully charged.
[Galaxy S I9000 Accessories] Reb00tas:
What trigger car mode on gs4 ?
[Galaxy S I9000 Accessories] ildar_prophet:
Guys, thanks for the thread.

Can anyone please give an idea where to get the resistance values for Galaxy Tab 30pin case (I have P1000 model)? I guess that pin 13 (ACCESSORY_ID) should be used for the purpose.

Most of all I need the JIG value.

Thanks a lot.
[Galaxy S I9000 Accessories] ildar_prophet:
Looks like the GalaxyTab 7 (P1000) has the same usb switch FSA9480UCX. But does that mean that resistance values are the same? AFAIK for OTG mode SGT uses 20kOhm, while I9000 value is 0 Ohm. Anybody a hint?
[Galaxy S I9000 Accessories] otezun:
I doubt it is 0 kOhm.

I tried some stuff with the s5690, which is known to have no Jig at the moment. I found out that it is switched on if a resistor with 220 kOhm is used - the voltage must be

exactly

1.115 Volt [exactly. Note more, not less].

Can anybody tell me the usual VOLTAGE for a jig? kOhms are nice, but I think voltage is the way to go.

For example, at 300 kOhm, the s5690 has 1.428 V more or less ( I don't have that precise measuring instruments ). The Volts on that device must be pretty damn accurate. So if somebody could update the first table post and add voltages, I'd be very thankful.

Already searched for a table of Ohm to Voltage ratio on a I9000 or similar device, but did not find anything.
[Galaxy S I9000 Accessories] KrameX:
Hi!

what is the file in that these resistors value are stored in android system?
[Galaxy S I9000 Accessories] luemmel76:
Me too, wher can i find these file with the resistor values for my S4 I9505 and my camera EK-GC100?

Greets

Luemmel76
[Galaxy S I9000 Accessories] eliyarjan:
xxx

View attachment logcat.zip
[Galaxy S I9000 Accessories] ildar_prophet:
Guys, I strongly doubt you can find the values anywhere in a system. Normally you can read it in the (hardware) datasheet for the USB switch IC. Some people also found values in kernel sources.

What is that?
[Galaxy S I9000 Accessories] darkspr1te:
GT-N7100

Hi All,

Confirmed, the Jig value of 300k works on GT-N7100 Note II(2). Download mode works.

darkspr1te
[Galaxy S I9000 Accessories] radioalarm:
Hi. Can these resistor values be combined with each other, to achieve dual mode operation?

I have Galaxy S2 and original car dock, which correctly turns on car mode on phone. The resistor is in dock itself, not on cable. Now I want to add MHL connection, at the same time keeping car mode. MHL works fine, when connected directly without car dock, but plugging everything in one chain enables only car mode:

HDMI-mUSB_cable_5pin---car_dock---phone
[Galaxy S I9000 Accessories] darkspr1te:
No, each value triggers that one mode, be careful about injecting power when the device is a output power mode, something could get fried.

darkspr1te
[Galaxy S I9000 Accessories] radioalarm:
Is there any way to force MHL mode by software, without using resistors?
[Galaxy S I9000 Accessories] darkspr1te:
There would be no point as the mhl output would not reach the usb, it would go nowhere.
[Galaxy S I9000 Accessories] billa:
Looks like the resistor(s) are actually inside the AnyWay box, instead of the usb-c plug.

https://dl.xda-developers.com/4/2/4/1/3/3/7/pinout_full.png?key=FEPnWw8fm06h-Z8QD8tmzw&ts=1517095578

As you can see in the pinout diagram, line CC is connected to the DB25 header which in turn connected to the box.

So, if anyone has the AnyWay box, the usb-c test cable, and an ohm meter they can simply measure the resistance between ground and pin 23 of the DB25 header. This way we could replicate a test cable without the expensive test jig.

I have played around with the "standard" test resistor values (300k, 523k, 619k etc) between line CC and Gnd, but wasn't able to get any results, not even download mode using a 300k resistor which works on all micro-usb phones. Either usb-c is using different values or there's something else we're missing here.

However, an interesting observation I've made, is that when flashed with combination firmware, the phone accepts most of these low level uart/modem test commands through the usb-c modem port (not the usb-serial port!) via a standard terminal (sometimes they need to be sent a couple of time for it to take, and also dialed *#0*# for test mode):

AT+DEVROOTK=1,0

AT+GMM (Model number)

AT+HWINDICK (CPID S7 and newer)

AT+MSLSECUR=1,0

AT+PRECONFG=1,0

AT+SW=1,0

AT+VERSNAME=1,0

AT+AIRPLANEVALUE

AT+BATGETLEVEL?

AT+CIMI

AT+DEVCONINFO (Long info)

AT+FACTORST (Warning: Forces a factory reset!)

AT+FUS? (DL mode)

AT+GSN - IMEI

AT+IMEINUM

AT+SERIALNO

AT+SIZECHECK (Storage info)

AT+SIZECHECK=1,0 (Storage info)

AT+SVCIFPGM=1,1 (Short Info)

AT+SWDLMODE

AT+SWVER=1,0

AT+SWVERSION=1,0

AT+SYSSCOPE=1,0

AT+WPROTECT=1,0

Read commands:

AT+<command> - read

AT+<command>? - read

AT+<command>=1,0 - read

For example:

AT+PRECONFG=1,0 - reads CSC config

Write commands:

AT+<command>=2,<info> - write

For example:

AT+PRECONFG=2,XAS - writes CSC config

Hope someone steps up to the plate, and gives us the correct resistor value between CC and GND on usb-c :)

Thanks in advance.
[Galaxy S I9000 Accessories] radurus:
It seems a static topic.

Any idea anybody regarding to the resistor list for a usb-c?

I am interested for activating dock mode (car or home) on a smartphone.
[Galaxy S I9000 Accessories] ildar_prophet:
in the OP ?
[Galaxy S I9000 Accessories] Zibri:
Just for information, all values can be found on FSA9480 datasheet:

The FSA9480 is a USB port accessory detector and

switch. The FSA9480 is fully controlled using I2C and

enables USB data, stereo and mono audio, video,

microphone, and UART data to use a common

connector port. It is designed for compatibility with CEA-

936-A car kit adapters, USB 2.0 signaling, and USB

OTG (on-the-go). The architecture is designed to allow

audio signals to swing below ground so a common USB

and headphone jack can be used for personal media

players and portable peripheral devices.

https://media.digikey.com/pdf/Data Sheets/Fairchild PDFs/FSA9480.pdf

Note: on page 13 there are some other values I don't quite understand.

Can someone have a look?
[Galaxy S I9000 Accessories] ildar_prophet:
Fairchild can write whatever descriptions they like. The true usage of them depends on the bootloader by Samsung.

And thanks for the datasheet. I should have guessed myself.
[Galaxy S I9000 Accessories] Richthofen:
This BD is for I9000B (because it is more specific than the one for I9000), so please ignore the TV tuner ;)

Even the BD shows VPS_L & VPS_R as NC, they are connected to Wolfson WM8994 directly.

JIG signal goes to AP PMIC (MAX8998), and it just to tells it to power up.
[Galaxy S I9000 Accessories] TheBeano:
Thanks so much, I am going to look into getting the serial working.
[Galaxy S I9000 Accessories] krazykidd:
pardon my nubbiness, but would this also work to trigger download mode in other phones aside from the vibrant?
[Galaxy S I9000 Accessories] TheBeano:
In theory it should work on any of the Galaxy S range. There are other Samsung phones that use similar USB switching chips, e.g. the GT-S8500, but I am less sure about them, you would need to dig into their open source code to check.
[Galaxy S I9000 Accessories] Richthofen:
GT-I5800, GT-P1000 (with proper connector), GT-S8500 works fine atleast.
[Galaxy S I9000 Accessories] TheBeano:
I made some progress with the UART on the USB port: I got a kernel boot log off it (attached). This is with resistor value 619K (RID_FM_BOOT_ON_UART).

To hook this up you need a USB-to-2.8V or 3.3V serial adapter. I'm using the Seeedstudio UARTSB v2.1, just because I already had one. Their latest version 3.0 UartSBee is here and should also work. You can't use a USB-to-RS232 serial adapter, the voltages are all wrong. See this article for links to other suitable adapters:

http://www.instructables.com/id/Android-G1-Serial-Cable/

The hookup goes:

MicroUSB pin 2 (D-) -> UARTSB RXD

MicroUSB pin 3 (D+) -> UARTSB TXD

MicroUSB pin 5 (GND) -> UARTSB GND

MicroUSB pin 4/5 (ID/GND) -> 619K resistor

If you're using the UARTSB set the VCC switch to 3.3V. If you're using a TTL level board don't hook up the TXD to USB pin 3 as the voltage is too high, leave it disconnected or use a voltage divider to drop the voltage.

On your PC run a terminal program like Teraterm, select the UARTSB serial port and set the baud rate to 115200.

Switch the phone off, wait for it to shut down completely, then plug in the dongle. Like the USB jig version it switches the phone on automatically, then you should see the boot log in the terminal program.

The phone boots normally with this resistor value, that is it doesn't go into download mode. Its only use seems to be to turn on the serial output, as it doesn't appear without this resistor in place. The other UART resistor value, RID_FM_BOOT_OFF_UART, does exactly the same thing including switching the phone on.

The boot log is probably not a lot of use for most people but if you can't repair your phone it may give you some insight as to why it isn't booting. Also it could be handy for ROM developers.
[Galaxy S I9000 Accessories] TheBeano:
Oh the 619K value makes it think it's docked (and triggers Google Car Home) where the 523K doesn't, so maybe that's the OFF vs ON difference.

Here's a photo of the setup, just because I'm amazed it's so tidy.
[Galaxy S I9000 Accessories] TheBeano:
The three-button hotkeys are active while this is going on so you can get a log of going into download and recovery mode (not very interesting).

Download mode:

--- (PBL and SBL start snipped) ---
keypad_scan: key value ----------------->= 0x50
CONFIG_ARIES_REV:48 , CONFIG_ARIES_REV03:48
keypad_scan: handler name = usb download

==> Welcome to ARIES!
==> Entering usb download mode..
DISPLAY_PATH_SEL[MDNIE 0x1]is on
MDNIE setting Init start!!
vsync interrupt is off
video interrupt is off
[fb0] turn on
MDNIE setting Init end!!

Recovery mode:

keypad_scan: key value ----------------->= 0x60
CONFIG_ARIES_REV:48 , CONFIG_ARIES_REV03:48
aries_process_platform: final s1 booting mode = 0
DISPLAY_PATH_SEL[MDNIE 0x1]is on
MDNIE setting Init start!!
vsync interrupt is off
video interrupt is off
[fb0] turn on
MDNIE setting Init end!!

Autoboot (0 seconds) in progress, press any key to stop
get_debug_level current debug level is 0x574f4c44.
get_debug_level current debug level is 0x574f4c44.
boot_kernel: Debug Level Low
FOTA Check Bit
Read BML page=, NumPgs=
FOTA Check Bit (0xffffffff)
Load Partion idx = (6)
..............................done
Kernel read success from kernel partition no.6, idx.6.
setting param.serialnr=0x******** 0x********
setting param.board_rev=0x30
setting param.cmdline=bootmode=2 console=ttySAC2,115200 loglevel=4

Starting kernel at 0x32000000...
[Galaxy S I9000 Accessories] TheBeano:
If you hook up the TXD line to D+ on the port, and hammer the return key in the terminal program while it's booting, you get this:

Autoboot (0 seconds) in progress, press any key to stop Autoboot aborted..
SBL> help
Following commands are supported:
* setenv
* saveenv
* printenv
* help
* reset
* boot
* kernel
* format
* open
* close
* erasepart
* eraseall
* loadkernel
* showpart
* addpart
* delpart
* savepart
* nkernel
* nramdisk
* nandread
* nandwrite
* usb
* mmctest
* keyread
* usb_read
* usb_write
* fuelgauge
* pmic_read
* pmic_write
To get commands help, Type "help <command>"
SBL>

Looks handy. :)
[Galaxy S I9000 Accessories] vinclar:
If the phone is fully bricked with this maybe you can fix it? Would be nice!
[Galaxy S I9000 Accessories] TheBeano:
It's part of the SBL so if the phone is black-screen bricked (no SBL) it won't help.

Needless to say I have no idea what most of these commands do and a lot of them look lethal so experiment at your own risk. :)
[Galaxy S I9000 Accessories] vinclar:
Lol, no need to kill my phone, but if someone with a fullybricked phone or a jtag user and tries it can report what this does.

Thanks for sharing the knowledge
[Galaxy S I9000 Accessories] hms666:
I get .621 on 2M scale with a cheap multimeter and the sdm resistor in cardock has 77D (619K) printed on it.
[Galaxy S I9000 Accessories] TheBeano:
Thanks, that's confirmed then.
[Galaxy S I9000 Accessories] SkOrPn:
Anyone know what value resistor triggers recovery mode? I have entered into download mode via the 301k resistor, but the graph in the OP does not make it clear in laymens terms, lol. Is it the 255k resistor that triggers recovery mode?
[Galaxy S I9000 Accessories] TheBeano:
No, it does turn the phone on without the power button, but it just boots up normally.
[Galaxy S I9000 Accessories] SkOrPn:
Ahh Ok, so what resistor would call up recovery mode, if any? Surely they didnt leave that mode out or did they?
[Galaxy S I9000 Accessories] TheBeano:
I don't know, it seems clear that a lot of the names in the OP don't correspond to the actual function in this phone (e.g. RID_FM_BOOT_ON_UART is really car dock mode) so there are a lot of values to try. They don't strictly need a value for recovery mode since if you have download mode you can flash a kernel with recovery mode fairly easily, so they may have just left it out altogether.
[Galaxy S I9000 Accessories] SkOrPn:
Ok, the reason I ask is because I was thinking of manufacturing a single cable with a multi-position switch that would get me Download Mode, Recovery Mode and Straight through to the computers USB pins all in one shot, so I would not have to remove the cable (JIG) from the computer. I hate with a passion trying to push the buttons just right and so do my fingers lol. I will try every value resistor I have at my disposal to see what happens. thanks again...
[Galaxy S I9000 Accessories] BruceElliott:
I doubt that Recovery is accessible by this method, because Recovery is much higher-level, requiring elements of the OS, including a memory map. In contrast, Download is executed by the SBL at boot time, before the OS loads.
[Galaxy S I9000 Accessories] TheBeano:
Well the SBL can launch recovery mode based on the VolUp-Home-Power hotkey (when enabled) so it could decide to launch recovery based on another trigger like the resistor value. Or someone could patch it to do that I guess (risky!).
[Galaxy S I9000 Accessories] jutezak:
I am wondering about the serial console. I saw the commands saveenv and prinenv and was wondering of those with a broken internal SD could use it to switch to external SD for the main phone storage. Or is that something that would just be normally flashed into part on OneNand (I suppose the kernel does not live on eMMC/internal SD but on the OneNand storage).

This could also benefit those with working internal storage, as external cards might be faster than the internal storage.
[Galaxy S I9000 Accessories] drhowardfine:
FWIW, I tried the Home Dock mode with the 133K resistor across pins 4 & 5.

It worked, and launched the Desk Home App.

I looked at the USB data lines with a scope, hoping to find L & R audio on them, but NO joy.

So it appears all the dock will do is charge the phone and start the Desk Home App. I'm surprised Samsung made no provision for audio out for a simple speaker dock. (Video would have been nice too, but I don't see how they'd do it with only 2 available pins)

I assume the car dock mode will have the same results - only charge and launch an app. Maybe I'll get a chance to try next week.
[Galaxy S I9000 Accessories] Pietplezier:
Is there more fun with resistors i can do? got the download jig working, but i like to make more with other functions.
[Galaxy S I9000 Accessories] marvinhemstock:
great stuff guys it a bit like amature radio in my shack soldering up the pins on a radio for blue tooth, digi modes ect
[Galaxy S I9000 Accessories] Pietplezier:
Wich options did you use?
[Galaxy S I9000 Accessories] jonagpa:
Alright I need help, this is over my head but I think with someones advice I should be able to do this.

I am trying to launch the dock app automatically with my Custom dock (look at my signature) I have tried putting 1k ohms across pin 4 and 5 (i actually had to use 10 100 ohms resistors in series) with no results, I also used a 330r ohm resistor with no luck ether. I have the samsung fascinate verizon version.

I used a micro sd cable I had laying around, I cut the cable (all 5 wires) and exposed the black cable (pin 5) and the uninsulated cable (pin 4) and then attached the resistors like I explained before. Am I doing something wrong?
[Galaxy S I9000 Accessories] TheBeano:
Go into adb shell and use the dmesg command to view the kernel log. When you plug in the micro USB plug you should get messages in the kernel log like this:

<4>[167019.723280] [FSA9480] FSA9480_ProcessDevice (dev1 : 0x0, dev2 : 0x40)

<4>[167019.723295] AudioVideo

<4>[167019.723303] FSA9480_enable_spk

<6>[167019.723313] set_dock_state : 0X1

<4>[167019.723380] FSA9480_Enable_SPK

Note this is with Froyo, if you don't have Froyo yet it may not work.
[Galaxy S I9000 Accessories] Nirvana388:
I find that rather strange as both the official docks have a 3.5mm out, and only connect to the phone via usb, at least from what I can see in the pictures.
[Galaxy S I9000 Accessories] jonagpa:
I am still on 2.1, I did what you said and I get a lot of stuff back the log must have at least 100 things. I copied and pasted this on to note pad and tried searching for the word dock with no results, also tried searching audiovideo with same results.

I am not sure why you wanted me to do this, I guess I could post the result here but I am not sure is it may contain something I should not share. Let me know what you think, thanks

I also searched set, found a lot of suff but nothing that looked to set an app or the dock, I did find this and it caught my attention

<4>[28312.346082] [TL](set_tool_launcher_setting): TOOL_LAUNCHER_STATE: 1
[Galaxy S I9000 Accessories] TheBeano:
Search for FSA9480, these are messages from the USB switch chip that detects resistors on the ID pin and connects the USB socket to various things.

If you have rooted the phone you can do "su" from the adb shell prompt and then "dmesg -c" to clear the log, then plug the USB plug in.
[Galaxy S I9000 Accessories] jonagpa:
Did that and this is what I found after searching for FSA9480

these 2 I found together

<4>[56279.087054] [FSA9480]FSA INTR = dev1 : 0x4, dev2 : 0x0, Attach : 0x1

<4>[56279.087068] [FSA9480_Enable_AP_USB] Enable AP USB

THis one I found further down

<7>[56279.120401] fsa9480 I2C Codec 7-0025: legacy resume

how should I proceed from here?
[Galaxy S I9000 Accessories] Merlin_reloaded:
There are some Captivate ROMs that let the Captivate play audio out through the dock output. It is highly dependent on the ROM though.

If we could probe the traces on the dock's PCB itself, that would be a better shot at learning more about the switching process.
[Galaxy S I9000 Accessories] jonagpa:
Anyone else know what I should do next?
[Galaxy S I9000 Accessories] TheBeano:
These are the values that you get when you plug in USB without a resistor (dev1=0x4, dev2=0x0), so it is not detecting a resistor on the ID pin. Something could be wrong with your plug wiring.
[Galaxy S I9000 Accessories] jonagpa:
well, I guess I have been doing this all wrong. I was under the impression that by just putting a resistor on pin 4 and 5 the app would be called. i am not actually plugged into anything while I am trying resistors. So I need to build that board you had in one of your pics with the variable resistor?
[Galaxy S I9000 Accessories] TheBeano:
If you're getting that event in the log without anything else connected to the plug other than the resistors then you are on the right pins, but either the resistor value is wrong, the connection isn't steady or you aren't holding the resistor onto the pins for long enough (needs at least two seconds of solid contact). It should work fine without anything else connected to the plug other than the resistor(s). It's definitely easier to experiment with the Sparkfun breakout board and a variable resistor and soldered or breadboard connections.
[Galaxy S I9000 Accessories] TheBeano:
Some notes about the UART:

The UART device is /dev/ttySAC2 but you need to create a device node for it as described in this file from the kernel source:

Documentation/arm/Samsung-S3C24XX/Overview.txt

So use this command (root required):

mknod ttySAC2 c 204 66

The UART is switched between the MODEM (radio) and PDA (CPU) by the device /sys/devices/virtual/sec/switch/uart_sel

You can see what the current state is with this command:

cat /sys/class/sec/switch/uart_sel
[UART Switch] Current UART owner = PDA

You can change the state with:

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

You can tell when it's connected to MODEM because it will respond to AT commands, e.g.

ATI0
Manufacturer: SAMSUNG

Model: I9000

Revision: I9000XXJPP

IMEI: ***************

The baud rate is set to 115200 at boot time, I don't know how to change it as yet.
[Galaxy S I9000 Accessories] Pietplezier:
will the Home Dock mode work with 1K ?
[Galaxy S I9000 Accessories] robe42:
going a bit offtopic on this q.

Is this 301k resistor samsung specific, or is it in any way built into the base of android-phones and could work with htc-phones aswell? have anyone tried it?

asking becuase i only find posts about this in samsung-parts of the forum, and it could solve a few bricked htc-phones across the world. not mine though, it isnt bricked...yet.
[Galaxy S I9000 Accessories] TheBeano:
It is specific to Samsung. You could look through the device driver source code of other phones and look for a similar switching arrangement though, but I imagine the guys that did the bootloader unlock for HTC have done that already.