International Journal of Advanced Network, Monitoring and Controls Volume 03, No.04, 2018 92 Application of AGC Technology in Software Radio Wu Hejing East University of Heilongjiang 150086 e-mail: wuhejing15@163.com Abstract—The characteristics of software radio are flexibility, openness, scalability. The hardware platform of software radio should be a general platform. This paper discusses automatic gain control(AGC) technology in software radio receiver and introduces an AGC algorithm applicable for DSP implement. This algorithm is tested in matlab and simulation results are provided. Keywords-Software Radio; Characteristics; AGC; Matlab I. INTRODUCTION At present, software radio technology is widely used in wireless communication, its basic idea is to use hardware as the basic platform of wireless communication. The A/D sampling data of signals are processed by various algorithms, and various communication functions are realized by means of software. This paper discusses the automatic gain control (AGC) algorithm in software radio. The function of AGC is to automatically adjust the gain of the amplifier according to the strength of the input signal received. Keep the output signal basically unchanged when the input signal changes in strength. An efficient AGC scheme suitable for DSP operation is proposed, which has fast convergence and accurate steady-state response characteristics. Moreover, it is simple to implement and can satisfy the needs of software radio system very well. II. CHARACTERISTICS OF SOFTWARE RADIO (1) flexibility. Software radio can be achieved by adding software modules. It's easy to add new features. It can communicate with any other radio station and act as radio frequency relay of other radio stations. (2) openness. Software radio adopts a standardized and modular structure. Its hardware can be updated or expanded with the development of devices and technologies. (3) scalability. Software radio can be upgraded by loading new software. III. ARCHITECTURE OF SOFTWARE RADIO Software radio architecture is the concrete design structure torealize the concept of software radio. It includes hardware, software and interface protocol. The design content must take into account the current situation and long-term development of wireless communication technology. Really unifies each standard. The structure of ideal software radio is mainly composed of antenna, RF front end, broadband A/D-D/A soft converter, General and special digital signal processors and various software components. The antenna of software radio generally covers a wide frequency band. For example, 1MHZ-2GHZ requires that the characteristics of each frequency band be uniform. To meet the needs of various businesses. The RF front-end mainly completes the tasks of up-conversion, filtering, power amplification and so on. Receiving realizes filtering, amplification, down conversion, and other functions. After digitizing the analog signal, the processing task is completely completed by the DSP software. In order to reduce the processing pressure of general AGC, A/D converter is usually used to transmit digital signals. After special digital signal processing devices, Reducing data flow rate, After the signal is changed to baseband, the data is controlled. DOI: 10.21307/ijanmc-2019-027 International Journal of Advanced Network, Monitoring and Controls Volume 03, No.04, 2018 93 IV. SOFTWARE AND HARDWARE PLATFORM OF SOFTWARE RADIO The hardware platform of software radio should be a general platform. It may not have the highest efficiency for a particular communication system. But its openness and scalability enable it to adapt to a variety of wireless communication systems. And it can be flexible to add, subtract and modify. First, The hardware structure of software radio designed by people is basically a streaming structure. This structure is similar to the logical structure of wireless communication system. So its efficiency is higher. However, Because the direct coupling of each module in this structure is too close, There is a problem of pulling the trigger and moving the whole situation. Based on this situation, Bus architecture has been proposed. The bus structure has good openness. It is an ideal choice to realize software radio. There are many bus standards for industrial control bus. For example, ISA, PCI, EISA, VEM and so on. ISA bus and VME bus are widely used in current digital signal processing and industrial control. VEM bus has more advantages than ISA bus. The data of ISA bus is 16 bits. The address bus is 24 bits. Address space 16MB. Its bus bandwidth is only a few MHz. The data width of VME bus is 32 bits. There are 32 address lines. The address space is 4GB. The bus bandwidth is tens of MHz. VEM bus is designed for multi-processor system. The ISA bus is a single processor bus. So VME bus is often used in software radio. Software radio operates in the so-called "software bus" mode. Its software structure consists of software modules with standard interfaces. Each software module defines different application functions. The integrated operation can be achieved by inserting the bus. Realize the complete communication function. The integrated operation mode of "Software Bus" requires the unification of software interface standards. Improve software openness and reusability. Realize online software sharing in multiple environments. Applications based on JAVA technology can work on various platform systems. JAVA only needs to be written once. It can run anywhere. It is easy to implement function expansion and module embedding. It can realize the rapid opening of new business. JAVA plays an important role in realizing software reusability. V. PRINCIPLE OF AUTOMATIC GAIN CONTROL BY SOFTWARE The block diagram of the principle of automatic gain control is shown in Figure 1.The IF sampling signal x(n) is amplified by a controllable gain amplifier. The gain is A (n).The output signal y(n)= A(n)x(n),Calculate the logarithmic value of the level of signal y(n).Compared with reference level log(R),An error level e(n) is generated. The gain of the amplifier is continuously adjusted by negative feedback with e(n).The output log (y (n) is gradually approached to the reference level log (R) until the circuit reaches equilibrium. The parameter alpha controls the adjustment time of AGC circuit, which is a constant related to time. The logarithmic and exponential operation of signal level in circuit is to make the constant of adjusting time of control circuit independent of input level. The mathematical analysis of the block diagram is as follows: Figure 1. AGC algorithm implementation principle1 International Journal of Advanced Network, Monitoring and Controls Volume 03, No.04, 2018 94 The recurrence formula of magnification factor is as follows: aRnxanAnxnARanAnA  ])(1)[(])()([)()1( When the amplitude after passing through the IF amplifier is less than R, )()( nxnAR  as positive, The amplification factor increases. )(ny increases, Similarly, when the magnitude is greater than R, )()( nxnAR  as negative. The magnification decreases. )(ny reduce, thus small signal amplification can be realized. Large signal attenuation, the signal is controlled within a certain range. Suppose the input signal is )()( ncunx  aRacnAnA  ]1)[()1( )(])1(1[)( nuac c R nA n  The gain after reaching a fixed state is c R ,Time constant is ac 1 The schematic diagram of AGC's second scheme is as follows: Figure 2. AGC algorithm implementation principle2 The recursive formula is: }])()(log{}[log{)}(log{)}1(log{ nxnARanAnA  In order to make the response time faster, Before comparing with the comparative value R, The output value of the amplifier )()()( nxnAny  is logarithmic before comparison. When the magnitude is less than R, })()(log{ nxnA is less than }log{ R .Therefore, })()(log{}log{ nxnAR  is positive. The magnification becomes larger, Thus, the small signal is enlarged. When the magnitude is greater than R, })()(log{ nxnA is larger than }log{ R , therefore })()(log{}log{ nxnAR  is negative, The amplification factor )(nA decreases, thus the attenuation of large signal is realized. Through the above algorithm, the small signal is enlarged, Large signal attenuation. Suppose the input signal is )()( ncunx  ,have }/log{]1)}[(log{)}1(log{ RcaanAnA  International Journal of Advanced Network, Monitoring and Controls Volume 03, No.04, 2018 95 )(])1(1}[log{)}(log{ nua R c nA n  As can be seen from the above formula, The gain of the stabilized signal is c R ,The time constant is approximately equal to a 1 VI. SIMULATION RESULTS The AGC algorithm is implemented by matlab. Two AGC algorithms are added to the demodulation of a narrowband QPSK signal. By observing and comparing the AGC output signals, The two schemes are proved to be completely feasible. The magnification becomes larger, Thus, the small signal is enlarged. When the magnitude is greater than R, })()(log{ nxnA is larger than }log{ R , therefore })()(log{}log{ nxnAR  is negative, The amplification factor )(nA decreases, thus the attenuation of large signal is realized.Through the above algorithm,The simulation results of two AGC schemes are shown in Fig. 3 and Fig. 4 respectively. Figure 3. The simulation results of AGC algorithm when the input signal of the first AGC scheme change 0 1000 2000 3000 4000 5000 6000 7000 8000 -5 -4 -3 -2 -1 0 1 2 3 4 5 0 1000 2000 3000 4000 5000 6000 7000 8000 -30 -25 -20 -15 -10 -5 0 5 10 15 0 1000 2000 3000 4000 5000 6000 7000 8000 0 1 2 3 4 5 6 7 International Journal of Advanced Network, Monitoring and Controls Volume 03, No.04, 2018 96 Figure 4. The simulation results of AGC algorithm when the input signal of the second AGC scheme changes VII. CONCLUDING REMARKS Since the introduction of software radio,its brand-new software value concept solves the problem of wireless standard interoperability.,Then it triggered a worldwide research climax. Software radio receivers, Whether the signal amplitude is stable or not will affect the timing synchronization and phase synchronization recovery of the receiver. This will determine whether the signal can be received with high quality, so automatic gain control (AGC) is applied to the input signal. High quality signal reception can be achieved. These two AGC schemes have fast convergence and accurate steady-state response characteristics, and the algorithm is simple.It is convenient for software radio system to be realized by DSP. REFERENCE [1] Research on the Practical Course "Software Radio System Design and Verification" [J]. DuanRui, Chen Zhuming, Zou Lin. Experimental Science and Technology. 2016 (06) [2] Research on SOPC-based Software Radio System [J]. Yang Zhengyu, Li Bing. Microcomputer and Application. 2010 (01) [3] Application Research of Radar System Based on Software Radio Technology [J]. Liu Xiaoping. Information and Computer (Theoretical Edition). 2018 (21) [4] Application of Software Radio Technology in FM Transmitter Design [J]. Sandik.Digital Communication World. 2017 (02) [5] Application of Software Radio Technology in Ship Communication [J]. Wang Huan. Strait Science and Technology and Industry. 2017 (09) [6] Application and Development of Software Radio Technology [J]. Wang Hongbo. Computer Programming Skills and Maintenance. 2016 (19) 0 1000 2000 3000 4000 5000 6000 7000 8000 -5 -4 -3 -2 -1 0 1 2 3 4 5 0 1000 2000 3000 4000 5000 6000 7000 8000 -40 -30 -20 -10 0 10 20 30 0 1000 2000 3000 4000 5000 6000 7000 8000 0 1 2 3 4 5 6 7 8 9 Fig. a Fig. b