Antenna in package (AiP) is a technology that can realize the fabrication of low-cost, high-performance and small size antenna, and has a wide range of applications in mobile communication and other fields. The development trend of wave control system is large-scale and distributed system, miniaturization and integration of single entity, high reliability and low cost. Based on Ka phased array AIP antenna technology, this paper introduces the wave control principle and software and hardware design of the wave control system in detail, and realizes the miniaturization and easy expansion of the control system. According to the specific requirements of the system for beam scheduling, the phase shifter of each channel is controlled accurately and quickly, and the corresponding phase shifter is sent to the corresponding channel phase shifter in real time to realize the electronic scanning of the antenna beam. The design of the broadcast control system is miniaturized, integrated, high reliability and low cost. This solution adopts a highly integrated and scalable sub-array design scheme, the number of beams reaches 4, and the integration density reaches 6.25mm2/ unit/beam. The beam switching time is less than 100us, which meets the application scenario of high-speed beam switching.