An electronic device 1 for electrically connecting and disconnecting, based on a command signal CMD, a first device terminal 11 and a second device terminal 12 is described. The device 1 comprises at least one main electronic switch M1, an electrical pre-charge circuit 2 and a measurement, command and diagnosis module 3. The main electronic switch M1 has a first electrical terminal D1 connected to the first device terminal 11, a second electrical terminal S1 connected to the second terminal of the device 12, and a main driving terminal G1. The main electronic switch M1 is configured to take, based on a driving signal DRV, depending on the command signal CMD and on an enabling signal ENB, a closed condition or an open condition, wherein the first electrical terminal D1 is respectively connected to or disconnected from the second electrical terminal S1. The pre-charge electrical circuit 2 is connected between said first 11 and second device terminal 12, and comprises at least one impedance element 21 and at