在船载卫星通信系统中,天线控制系统通过串口连接上位机,由上位机控制天线对星,再将数据回送PC上的控制监测软件界面来控制及采集处理保存数据,实现对天线对星情况和天线姿态的观测和调整,以便快速准确对星。文中以设计图形界面为起点,具体阐述了利用C++语言和MFC设计PC端利用USB端口实现天线串口数据采集的多线程人机交互界面,并使用GDI绘图函数在PC界面上实现同步准确的关键参数时间变化图的真实再现。其中关键参数包括自动增益控制(AGC)、天线姿态等,以及采用Access数据库来保存数据记录,以备查询和评估。结果表明,该软件符合实际标准且运行稳定,并能反映天线、船和卫星的实时状态数据和动作图像。目前已广泛应用于船载"动中通"卫星通信系统的监控和测试,并且获得了良好的界面交互环境。
In the ship carrier satellite communication system,the antenna control system is connected to the PC via serial port,the PC controls antenna on satellite,the data is sent to PC monitor and control software interface again to control,acquire and process data storage,realizing the observation and adjustment for antenna on satellite and antenna attitude to quickly and accurately to the star. Taking the design of graphical interface as a starting point,expound multi thread human- computer interface implemented by using C + + language and M FC to design PC end using USB port antenna serial data acquisition,and use GDI drawing functions in the PC interface to achieve a true representation of the accurate synchronization of the key parameters time variation diagrams. The key parameters includes Automatic Gain Control( AGC),antenna attitude and so on,and uses the Access database to save data records,to prepare for the query and evaluating. The results showthat the software is consistent with the actual standard and can run stably,and can reflect the real- time status data and motion picture of antenna,ship and satellite. At present,it has been widely used in the monitoring and testing of the satellite communication system,and the good interface interaction environment is obtained.