My problem is that in step 4 (connect the second time) the Arduino seems to "reset" --> pin 13 is disabled
Is this the standard behavior?
And is there a chance to change it?
But, the simplest solution is to stop opening and closing the serial port. Your app should open the port ONCE, and leave it open until it ends. When it ends, it can close the port.
I would like to be able to restart the "host" computer in the meantime. So that is only my "last resort"
So, all the other peripherals connected to the computer currently continue operating without interruption while you reboot your computer, and the Arduino should do the same.I have my doubts about THAT.