Yea when I disconnect then reconnect cable it works for a few seconds then disconnects againThe first thing I would check is the cable.
Ok will try thanksNot sure why, this happened to me. I put my phone in airplane mode and it fixed the issue. Maybe it will work for you