AstroHuntsman / huntsman-pocs

POCS on the Huntsman Telescope
MIT License
7 stars 8 forks source link

Astromechanics intermittent disconnection #501

Closed Physarah closed 3 years ago

Physarah commented 3 years ago

Seems to only happen with jetson4? We know this astromech has a history of dodgy cables. Can this error be handled in a better way? Not sure.

I 07-06 10:53:01.535 Autofocus status on Astromechanics Focuser (XXXXXX) on /dev/ttyUSB0: {'is_finished': False, 'completed_positions': 1, 'total_positions': 11} E 07-06 10:53:04.197 _thread.ExceptHookArgs(exc_type=<class 'serial.serialutil.SerialException'>, exc_value=SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)'), exc_traceback=<traceback object at 0x7f77fc8d80>, thread=<Thread(Thread-9, started daemon 546995954144)>) I 07-06 11:02:50.143 Moving filterwheel to r_band for autofocusing on Astromechanics Focuser (XXXXXX) on /dev/ttyUSB0. E 07-06 11:02:50.149 Unable to apply focus position offset on ZWO Filter Wheel (1) [Camera: 192.168.80.204]: error(5, 'Input/output error') I 07-06 11:02:50.152 Moving ZWO Filter Wheel (1) [Camera: 192.168.80.204] to position 4 (r_band) I 07-06 11:02:52.702 Taking dark frame before autofocus on Astromechanics Focuser (XXXXXX) on /dev/ttyUSB0. W 07-06 11:02:52.708 No focus offset found for blank filter. I 07-06 11:02:52.713 Moving ZWO Filter Wheel (1) [Camera: 192.168.80.204] to position 1 (blank) I 07-06 11:03:03.577 Autofocus status on Astromechanics Focuser (XXXXXX) on /dev/ttyUSB0: {'is_finished': False, 'completed_positions': 0, 'total_positions': 11} E 07-06 11:03:03.580 _thread.ExceptHookArgs(exc_type=<class 'termios.error'>, exc_value=error(5, 'Input/output error'), exc_traceback=<traceback object at 0x7f7c06dac0>, thread=<Thread(Thread-19, started daemon 546995954144)>)

Physarah commented 3 years ago

Replication of #493