Skip to content

Broken pipe on newest SWS  #3

@mikewagnercmp

Description

@mikewagnercmp

Hello!
TRying to use this onstep python library to connect my mount to another piece of equipment - Running into a bit of a problem. On an older version of the SWS - I believe it was probably Main or the last release, the onstep python lib worked mostly alright.

However, now I am running into a consistent easily reproduced broken socket error, using SWS 2.06e and onstep 10.16a (also on regular onstep)

Basically to recreate - fire up the menu script, it connects, then use 'r' for report. First report works, then gets a SLW, then gets a broken pipe.

I am also getting consistent broken pipes in using this library as part of another project - i can get it to connect, but after a while, I get broken pipes.

onstep-python git:(master) ✗ ./examples/menu.py
Host 192.168.1.26 , Port 9998
OnStep Version: 10.16a
i. Initialize - sets Coordinates, UTC offset, Date/Time
h. Return to Home position
r. Report mount status
a. 1 Star Align
s. Slew to a star
sz. Slew to Alt/Azm
dt. Drift Test - Test internal drift
ba. Batch Align - upload 9 alignment points
st. Stress test - repeat long slews. Useful for testing driver/motor heating.
pa. Refine Polar Alignment
bl. Tune Backlash
d. Dump Status
x. Exit
Enter your selection -> r
Date: 07/03/23 Time: 11:12:30 UTC +05:00 Lat: +4138 Long: +08109 LST: 05:33:37
Time Stat Mnt-Time RA DEC Alt Azm
12:12:30 TRK 11:12:30 11:32:04 +9000:00 +4138:00 000*00:00
12:12:40 SLW
Traceback (most recent call last):
File "/Users/mikewagner/Projects/onstep-python/./examples/menu.py", line 67, in
func()
File "/Users/mikewagner/Projects/onstep-python/examples/report.py", line 24, in report
scope_tm = config.scope.get_time()
File "/Users/mikewagner/Projects/onstep-python/lx200/onstep.py", line 434, in get_time
self.scope.send(':' + cmd + '#')
File "/Users/mikewagner/Projects/onstep-python/lx200/sock.py", line 41, in send
self.sock.sendall(msg.encode('utf-8'))
BrokenPipeError: [Errno 32] Broken pipe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions