ESP32-S3 usb connection issues

Greetings!
i have the esp32-s3-wroom-1 module installed on my pcb and its powered fine via 3.3v and all. The pins 19 and 20 are connected to the d- and d+ of usb plug for communication but here is the problem, when i plug it in my pc it does connect but after about 5 seconds it disconnects and then makes the disconnecting sound every 3 seconds without the reconnecting sound in between. the lines go straight from usb to pads except they go trough a 0 ohm jumper resistor and are connected to a tvs array. when i use multimeter to mesure the voltage on the digital lines, each time it disconnects, voltage drops to around 1.5-2v then comes right back up just like a spike of some sort. My only unexplored route is the gpio3 which is used to set the jtag, it is used to connect to something else but is left floating at startup. the voltage on the digital lines is also at 3v ( aint it supposed to be at 5v?)

here are the things i tried:
-changing usb port (pc side)
-disconnecting reset and boot buttons all together
-removing tvs array
-looked for short on sbus (none)

none of these worked

thanks for your help

I have no clue what you ar doing. You will need to post Tools/Auto Format code in ^^^ CODE tags, also if there is any output messages. Then a hand drawn diagram of the hardware, and of course a description about what you expect, and what is actually happening.

why would i need to put it in code format? there is no code involved as well as no error message because i simply cannot connect to the pc (at least long enough to transmit or receive anything) as for the hardware i can provide a reference picture from another project that has the same setup for it as for what is happening, i have no idea thats why im asking here.

Where is the Arduino in that diagram?

It’s not an Arduino, it’s an esp32-s3-wroom module and it’s to the left, as for the gpio3 well it’s not connected to anything during startup so not necessary in the diagram just know that it is floating

Ok, now that we have some documentation, maybe a hardware expert can figure out what you are trying to do.

i have an interesting find, i tried to check tvs again using multimeter in continuity mode and there is none but when i have the probes of the multimeter on the ground and on one of the didgital lines, it stops disconnecting. I dont really know how that makes sense to be honest.

It may mean ALL your grounds are not tied together.

i just verified with continuity test and they are, but lets say i missed one, how does that affect the usb?

they're connected with a ground plane so its not like i didnt do a trace, the ground connected to esp32 is the same as the one for the tvs array and for the supply and battery

Hmm, in any case, post #7 is trying to tell you something, I don't know what but I also don't know what a TVS or TVS array are.

they're diodes that prevent ESD

Never heard of such a thing, what happens if you remove them?

Maybe I am misunderstanding. Yesterday I plugged a wall wart (ungrounded) into the wall, connected the 5 wire USB Micro-B cable into my latest project and it works. In normal use the two (+5V , G) power leads/pins are used, and in software upload we add in the other 3 although one appears to be unused and the other two are serial.
That describes probably thousands of projects, is there something special about yours?

stays the same, so its not the tvs itself that is the problem, i tried to connect the d- pin to ground with a resistor to simulate multimeter but doesnt work same for jumper, is there a way to imitate the multimeter?

i dont understand what you just said

there is about 2.2kohm or resistance between the d- and ground pin

i removed the tvs and it still does it but each time it disconnects the multimeter sees a short and the multimeter bypass doesnt work. i checked the connections and when not powered up/disconnecting, there is no short so i dont know whats going on

Perhaps I am misunderstanding so let me tell you what I think your 'circuit' is.
The circuit is a 4 wire USB Micro-B cable plugged into an ESP32. You have opened up the cable in order to attach some diodes to the +5V line and both data lines.
In other words identical to me using a phone charger plugged into an ESP32. Is that right, or is this something different?

yes thats right, 4 wire cable going into usb socket which then feeds it into the esp32 d- and d+ pins