I have an application where one Teensy 3.5 (main module) communicates with a Teensy 4.0 (remote module) over a 10 meter wire.
This wire carries the TX and RX signals from Teensy 3.5 Serial6 to Teensy 4.0 Serial1, GND and 12V that powers the remote. The 12V line goes to a step-down to convert to 5V that powers the remote Teensy. In the middle of the wire, there is a male and female 4-pin connector plug which allows for quick connections and disconnections of the modules.
Everything was working fine, and the communication between the Teensies was working flawlessly. While performing some testing on the part of the code that detects disconnections between the two modules and tries to reestablish the communication, I had to simulate a physical disconnection between the modules, and did it simply disconnecting the before-mentioned plug a few times (with both teensies powered). I did this a couple of times before the Teensy 4.0 Serial1 suddenly stopped communicating. While troubleshooting the issue, I detected that Serial1 died and that the multimeter detects a short between pin 0 (RX) and GND.
I then replaced the Teensy 4.0 for a new one and repeated the procedures. The exact same thing happened: after a couple of connections and disconnections of the plug, Serial1 of Teensy 4.0 died with same symptoms (short circuit between RX and GND while powered off). I could not find any explanations for this so far, as the circuit works normally and for a long time while everything is connected, but kills the Teensy 4.0 serial after a few disconnects. All the rest of the circuit continues to work fine. Even the Teensy 4.0 continues to work, blink, print characters on the USB serial, etc after having the Serial1 damaged.
Do anyone have an idea of what could be happening? Is there any easy way to protect the Teensy 4.0 serial lines to prevent this from happening again?
This wire carries the TX and RX signals from Teensy 3.5 Serial6 to Teensy 4.0 Serial1, GND and 12V that powers the remote. The 12V line goes to a step-down to convert to 5V that powers the remote Teensy. In the middle of the wire, there is a male and female 4-pin connector plug which allows for quick connections and disconnections of the modules.
Everything was working fine, and the communication between the Teensies was working flawlessly. While performing some testing on the part of the code that detects disconnections between the two modules and tries to reestablish the communication, I had to simulate a physical disconnection between the modules, and did it simply disconnecting the before-mentioned plug a few times (with both teensies powered). I did this a couple of times before the Teensy 4.0 Serial1 suddenly stopped communicating. While troubleshooting the issue, I detected that Serial1 died and that the multimeter detects a short between pin 0 (RX) and GND.
I then replaced the Teensy 4.0 for a new one and repeated the procedures. The exact same thing happened: after a couple of connections and disconnections of the plug, Serial1 of Teensy 4.0 died with same symptoms (short circuit between RX and GND while powered off). I could not find any explanations for this so far, as the circuit works normally and for a long time while everything is connected, but kills the Teensy 4.0 serial after a few disconnects. All the rest of the circuit continues to work fine. Even the Teensy 4.0 continues to work, blink, print characters on the USB serial, etc after having the Serial1 damaged.
Do anyone have an idea of what could be happening? Is there any easy way to protect the Teensy 4.0 serial lines to prevent this from happening again?