untested code to get serial port status and log reconnected to actual serial port in ProTimer