I’m looking for a way to capture debug logs across device sleep cycles and reset cycles.
I am trying to identify a bug in my code that seems to happen after several reset cycles over a long period of time. The problem I am encountering is that PuTTY hangs and won’t reconnect when my Electron resets or goes through a sleep cycle.
I found this other post with a custom python script that supposedly can reconnect, but I don’t know Python and would prefer to continue using PuTTY if possible:
Is it possible to make PuTTY automatically re-establish a lost serial connection? If not, is there an easier way than the python script the above post?
My other thought was perhaps sandwiching another microcontroller between my PC and my Electron that would intercept the Electron debug messages and re-transmit them to the PC, so that the serial connection is always up. Would this be the easiest?