| The research of this issue is derived from the scientific subject “Development of Shortwave Integrated Simulation Equipment”.And its purpose is to design a kind of equipment which can test “HF frequency selection and link establishment system” indoors.The Shortwave Integrated Simulation Equipment is divided into two parts: Shortwave integrated analog equipment host and host computer.Shortwave integrated analog equipment host is composed of control board and channel simulation board,the core of the control board is an ARM chip,under its control,the channel simulation board can complete the analog channel on and off control and noise processing.Host computer installed windows operating system,and using MFC for graphical user interface development.Shortwave integrated analog equipment host and host computer connected through the network port.The graphical user interface is an auxiliary part of the system.The workload of this paper is mainly focused on the programming of shortwave integrated analog equipment host.The software of the short-wave integrated analogue device is divided into six modules according to the function: initialization module,control port command processing module,host computer information processing module,timer function module,signal sampling processing module and audio plus noise module.This paper first studies the basic working mode and working process of the short-wave automatic frequency selection system.Then,it analyzes the structure of the basic hardware and software of the short-wave integrated simulation equipment and makes a brief introduction of the user interface of the host computer;This paper focuses on the programming of shortwave integrated analog equipment.In the program,the initialization module is designed to complete the initialization of the hardware and software and the synchronization with the host compute,data synchronization process is designed to ensure that the system will work properly after the restart of any part of the system.The timer task function module learns from the embedded real-time operating system,realizes the function of accomplishing multiple timer software tasks with only one timer,and ensures the accuracy.The real-time requirement of the control port command processing module is high,so it is designed for two parts--the lower part and the upper part,to ensure that the real-time task can be processed in time.The lower part mainly completes the recognition and registration of the command,and the upper part complete the process of the command.The system receives the various orders from the host computer to adjust their work status,for this demand,we designed a communication information format specifically,in order to facilitate the design.the module is divided into upper and lower parts too.In the signal sampling and processing module the signal is sampled and evaluated,this paper compared two different signal sampling mode,and chose the short sampling mode for the system.The audio plus noise module utilizes the signal strength of the signal sampling processing module to match the PGA amplifier chip and the amplification processing of the digital signal source to realize the control of the noise intensity of 0.1d B.Every step in the programming process has been tested to ensure that they are working properly.Finally,the overall function of the system was tested,The test results are compared with commercial shortwave channel simulators and get a consistent results,the system achieve the initial design requirements. |