| Astronomical telescope has always been an indispensable part of astronomical observation.In the hundreds of years of astronomical observation history,astronomical telescopes have been constantly updated and developed.The development trend of large-scale and networking of modern astronomical telescopes and the rise of maintenance costs caused by the remote location of observatories make the demand for automation of the whole telescope control system higher and higher.In order to meet the observation and control needs,a set of telescope remote control software with good robustness and scalability is needed.The telescope remote control software used in modern astronomical telescopes usually implements a distributed control structure based on message oriented middleware technology,which divides the complex control requirements into different components,and the components communicate with each other through message oriented middleware.The common message middleware interface models of astronomical telescope control system include ORB(object request broker),DDS(data distribution service),socket based custom protocol and MQ(message queue).Among them,CORBA(Common Object Request Broker Architecture)and OpenDDS(open data distribution service)based on interfaces such as ORB and DDS have many technical characteristics,complex structure and are not convenient for small-scale development.RTS2(remote telecommunications system 2nd version)system components based on socket custom protocol have high coupling and poor scalability.The ZeroMQ protocol based on MQ has advantages.in performance,resource occupation,ease of use and so on.Therefore,the author’s laboratory independently developed the telescope remote autonomous control system racs2(remote autonomous control system 2nd version)based on zeromq protocol,which ensures the high-performance operation of the bottom layer through the construction of modern C++language.At the same time,it provides developers and users with a simple and easy-to-use Python language interface.The decentralized design principle and automatic component discovery mechanism also make the secondary development of the whole system efficient,robust and scalable.The basic framework of RACS2 system provides a good foundation for telescope remote observation and control,but the system itself lacks observation function module and observation process design,which is difficult to be applied to the astronomical telescope observation and control project.Therefore,the author’s laboratory independently developed the telescope remote autonomous control system RACS2 based on ZeroMQ protocol,which ensures the low-level high-performance operation through the construction of modern C++language.At the same time,it provides developers and users with a simple and easy-to-use Python language interface.The decentralized design principle and automatic component discovery mechanism make the secondary development efficiency of the whole framework very high,with strong robustness and scalability.Based on the RACS2 system,this paper improves and expands its three-tier structure,and designs and implements the telescope remote observation control software for different telescopes.In the device control layer,two device component development modes are designed and implemented for different telescopes:1.Devices are controlled by the IOC software of EPICS framework,and then the device components are generated by the protocol bridging module of RACS2.2 Inheriting the C++interface and python interface of RACS2 to directly develop device components.In the observation control layer,this paper improves the task management component and task execution component of RACS2,designs and develops the log management component,completes the log recording,storage and visualization,and establishes a set of observation control process model based on the above service components.In the service interface layer,this paper designs and develops a user-friendly web control interface and the corresponding web back-end server.For the continuous development of software,this paper deploys a set of anomaly monitoring platform and designs an integrated development scheme.Facing the requirements of deploying DATs telescope in Antarctica,this paper designs the Tshell component in the service interface layer to provide the control interface to the graphical interface.In the observation control layer,the whole set of software can complete the fully automatic observation by transforming the task management component.Facing the changeable observation requirements of debris observation telescope,a variety of observation task templates are designed in the observation control layer,and the networking interface design between nodes is given according to the observation requirements of debris global joint measurement network.For the high-precision tracking requirements of laser ground station telescope,the closed-loop feedback tracking control of target coarse tracking and accurate tracking is completed in the telescope equipment component,and the pointing model is made and applied.To sum up,this paper completes the design and implementation of telescope remote observation control software based on RACS2 system.In different telescope control application scenarios,the software provides different solutions to meet the observation needs,reflecting the robustness and scalability of the software.The successful delivery and long-term use verification of dats telescope and debris observation telescope also prove the reliability of the software. |