dell-charger-emulator icon indicating copy to clipboard operation
dell-charger-emulator copied to clipboard

UART Schematic: Pullup needed?

Open mihaigalos opened this issue 3 years ago • 6 comments

Hi, not sure the schematic in its current form would work:

TXD --------|<|----*-------- ID
                   |
RXD ----------------

GND ------------------------ GND

Seems TXD is at least missing a pullup on the anode (assuming the diode polarity is correct), since when you want to send, you would drive the pin low and open/close the diode:

                        VCC 
                        _|_
                       |  |
                       |__|
                        |
TXD --------|<|----*----*--- ID
                   |
RXD ----------------

GND ------------------------ GND

mihaigalos avatar Feb 24 '22 18:02 mihaigalos

Yes. I can confirm that pullup resistor is needed 4,7Kohm. Without it it reads data but incorrect.

20220421_202910

lgolebio avatar Apr 21 '22 18:04 lgolebio

read correct , but write fail dell univ

rahmajayagrs avatar Sep 16 '22 00:09 rahmajayagrs

@rahmajayagrs, so the conclusion is that it only works without the pullup?

mihaigalos avatar Sep 16 '22 05:09 mihaigalos

with or without pullUp still can read but can't write, i am using ch341A

rahmajayagrs avatar Sep 16 '22 09:09 rahmajayagrs

@rahmajayagrs the value of the pullup is important, as is the maximum baud rate. Try using a lower baudrate (i.e. 9600) and a resistor value of 4.7K.

Also, double check your wiring.

mihaigalos avatar Sep 19 '22 06:09 mihaigalos

Here I was able to read EEPROM contents of original 130W Dell charger and also of emulated EEPROM but only with 4.7k pullup. No speed change was needed. My USB adapter had FTDI chip in it.

Didn't try to reprogram emulated EEPROM that way since Dell XPS 9530 I was testing recognized emulated charger properly. Programming was done in place on digispark attiny85 board, using TL866II Plus with SOIC8 clip. Fuse bits set the same way as in project Makefile.

The bad news is that emulation software doesn't work reliably. Very often dell doesn't detect the charger :/ Don't know why.

arekm avatar Jul 10 '24 17:07 arekm