望远镜自主观测软件是自主控制天文望远镜技术中的重要组成部分,也是当前天文技术研究的一个热点.开源的RTS2是目前非常流行的望远镜自主观测的软件系统,但RTS2中提供的Web控制仅是一个演示,功能相对简单,也不具备实时性.随着HTML5和WebSocket技术的发展,在深入分析RTS2源码的基础上,实现了RTS2服务器端的WebSocket支持,利用HTML5的WebSocket技术完成了一个望远镜实时监控Web终端系统原型,为远程控制与状态实时监控提供了一个简单、方便的平台,为后续研究工作打下了良好的基础.
For a modem automated astronomical telescope its autonomous-control software system is one of the most important parts. Currently, research of autonomous-control software is becoming rather active. The RTS2, which is an open-source software system, has been used for many small-aperture astronomical telescopes. However, the subsystem for web control implemented in the RTS2 is too simple to include many useful functions such as real-time development of the HTML5 and the control and system-information WebSocket technology, we study display. By taking advantage of the implementing a server-side WebSocket protocol in the RTS2 based on an in-depth analysis of the RTS2 source codes. By using the HTML5 and WebSocket technology we have developed a prototype subsystem for web control via real-time monitoring. Our study results in a simple and convenient platform for remote control and real-time monitoring of automated astronomical telescopes, and it lays a sound foundation for relevant future research.