Real‐Time Software‐Defined Adaptive MIMO Visible Light Communications

Visiblelight communications (VLC) based onlight-emitting diodes (LEDs) merges lighting and data communications in applications of Internet-of-Things and 5G networks. How-ever, phosphor-based white LED has a limited linear dynamic range and limited modula- tion bandwidth. In practical indoor mobile communications, complex channel conditions change dynamically in real-time, and line of sight (LOS) links may be blocked by obstruc- tions. We propose a real-time software-defined adaptive multi-input multi-output (MIMO) VLC system, that both modulation formats (QPSK,16-QAM,64-QAM, 256QAM) and MIMO reconfigurations (Spatial Diversity and Spatial Multiplexing) are dynamically adapted tothe changingchannel conditions, forenhancingbothlinkreliabilityand spectral efficiency. Real-time and software defined digital signal processing (DSP) are implemented by Field Programmable Gate Array (FPGA) based Universal Software Radio Peripheral (USRP) devices. We theoretically analysed and experimentally evaluated nonlinear electri-cal-optical properties and modulation characteristics of white LEDs. We demonstrated a real-time Single-Carrier 256-Quadrature Amplitude Modulation (QAM) 2 (cid:1) 2 MIMO VLC, achieving 1.81% averaged error vector magnitude (EVM), 2 (cid:1) 10 -5 bit error rate (BER) after 2 m indoor transmission. As an obstacle moved across LOS links, real-time software-defined adaptive MIMO VLC system enhanced average error-free spectral efficiency of 12 b/s/Hz. This will provide high throughputs for robust links in mobile shadowing environments.


Introduction
The world growth in wireless mobile data traffic has led to the development of new technologies for high capacity and energy-efficient wireless communication systems. This fact results in an increasing throughput requirement from the next generation mobile communication networks (5G), which are expected to address several critical challenges, such as broadband capacity, spectral efficiency, power efficiency, quality of services, and mobility coverage. Visible light communication (VLC) system has been accepted as part of the 802.15.7 task group and proposed as a supplement technology in 5G networks standards. VLC based on light-emitting diodes (LEDs) merge lighting and data communications in applications due to their energy efficiency, spectral efficiency, security, and reliability [1]. The white light LEDs have advantages of long lifetime, energy-efficient, and environmental friendliness. VLC using lighting LEDs could provide many advantages, such as no electromagnetic interference (EMI), integration with indoor lighting, available worldwide, and unlicensed bandwidth [2]. The VLC application shown in Figure 1 is relevant to aerospace, automotive, healthcare industries, 5G networks, wireless personal area networks (WPANs), Internet-of-Things, and ad-hoc networks, as it focuses on the development of radio frequency (RF)-interference-free high-bandwidth communication networks using white light LEDs.
The commercial white light LED utilized for general lighting is mostly based on a blue LED chip covered by a phosphor layer rather than red-green-red (RGB) LEDs, as phosphor white LEDs have much lower complexity and cost. However, phosphor-LEDs have limited modulation bandwidth due to the phosphorescent components. Several modulation bandwidth extension technologies have been investigated, such as optical blue filtering, analogue equalizer, and digital equalization [3]. However, optical filtering of blue light causes large optical intensity loss and decreases visible light transmission range. The capacity of the VLC system under the limited bandwidth can be enhanced by using high spectrally efficient modulation formats, such as orthogonal frequency-division multiplexing (OFDM) [4], Nyquist single-carrier modulation, and carrier-less amplitude and phase (CAP) modulation [5]. Using bit-and power-loading techniques, OFDM can maximize the transmission capacity under the constraint bit error rate (BER). However, high peak-to-average-power ratio (PAPR) of OFDM signal is the crucial challenge for the limited linear dynamic range of white LEDs and nonlinear modulation characteristics in the VLC system [6,7]. Implementation of real-time CAP systems requires relatively high speed and high-resolution analog to digital converter (ADC), which suffers from high sampling jitter sensitivity. Quadrature amplitude modulation (QAM) architectures have tolerances to nonlinear distortions and sampling jitter. Despite the complexity of adding analog multipliers, QAM systems reduce the sampling rate and resolution requirements of A/Ds for real-time applications.
Moreover, LED-based VLC naturally constitutes a multi-input multi-output (MIMO) system, as large numbers of lighting lamps made up of multiple LEDs are provided by indoor illumination systems [8]. MIMO transmission techniques can be classified by spatial diversity, spatial multiplexing, and spatial modulation. Note that 4 Â 9 spatial multiplex MIMO VLC using 16-QAM OFDM is demonstrated at 250 Mb/s per channel over 1 m range [9]. And 4 Â 4 spatial multiplex MIMO VLC using OOK modulation achieved a data rate of 50 Mb/s over 2 m [10]. Also, 2 Â 2 MIMO VLC using 4-QAM Nyquist single-carrier with frequency domain equalization is demonstrated at 500 Mb/s in 40-cm transmission distance [11]. A wide filed-of-view receiver using fisheye lens is proposed in the spatial-diversity MIMO VLC system [12,13].
However, most MIMO VLC systems currently manifest the fixed MIMO technology, static channel condition estimation, and offline signal processing. In fact, complex channel conditions are expected to be changed dramatically, and spectral efficiency must be optimized adaptively in practical indoor wireless mobile communications [14,15]. For example, the MIMO VLC system using fixed spatial multiplexing will suffer link interruption, once any sub-channel condition becomes degraded [16,17]. Real-time data processing on field programmable gate arrays (FPGAs) based software-defined device can build a fully real-time reconfigurable and an adaptive optical wireless system by upgrading the software [18,19]. The network architecture should also be designed to support the adaptive MIMO schemes with distributed smart antenna systems [20,21]. Thus, a real-time adaptive MIMO optical wireless system is necessary to deal with the dynamic complex channel conditions and enhance the robust mobility and link reliability in future wireless mobile networks.
In this chapter, we propose an adaptive MIMO VLC solution that both modulation schemas and MIMO schemas are dynamically adapted to the changing channel conditions for enhancing error performance and spectral efficiency. We experimentally demonstrate a real-time software-defined single-carrier M-QAM MIMO VLC system by using link adaptation of spatial multiplexing and spatial diversity. The VLC transceivers use independent phosphor-white LEDs and PIN photodetectors without blue filtering. We theoretically analyze and experimentally evaluate nonlinear electrical-optical properties and nonlinear modulation characteristics of white LEDs in the VLC system. LED nonlinear modulation characteristics reveal that the optimized LED drive current that corresponds to minimum BER increases with an increase in data rate. We explore FPGA-based universal software radio peripheral devices for real-time digital signal processing. Software-defined implantation of MIMO VLC can enable an adaptive and reconfigurable communication system without hardware changes. We measured the error vector magnitude (EVM), bit error rate (BER), and spectral efficiency performance for singlecarried M-QAM MIMO VLC using spatial diversity and spatial multiplexing. Results show that spatial diversity MIMO VLC improves error performance at the cost of spectral efficiency that spatial multiplexing should enhance. With an obstacle moving across line-of-sight (LOS) links, the average error-free spectral efficiency of adaptive 2 Â 2 MIMO VLC achieved 12 b/s/ Hz over 2 m indoor dynamic transmission after an obstruction. Real-time software-defined adaptive MIMO VLC will enhance spectral efficiency and link reliability in a mobile environment with shadowing.

Nonlinear modulation characteristics of white LED in VLC system
Nonlinear modulation characteristics and limited linear dynamic range of white LEDs are dependent on drive currents, which determine VLC system performance. The static nonlinear LED transfer functions for voltage or optical power to current conversion [22] take into account just clipping effects or continuous-gradient nonlinearity [6]. Moreover, the approximating polynomial model of LED nonlinearity is only valid for small modulation frequencies [6]. Thus, we theoretically analyze a complete nonlinear modulation model based on rate equation [7] and experimentally evaluate the effect of LED drive current on nonlinear modulation characteristics of VLC system [23].

Nonlinear electrical-optical characteristics of white LED
LEDs are nonlinear devices such as the series resistance and capacitance depend strongly on the bias current. A nonlinear resistor represents the I-V characteristic of the LED by the Shockley equation [24].
where k is the Boltzmann's constant, q is the electron charge, T is the junction temperature, n is the diode ideality factor, and v d is the junction voltage. The factor n is approximately 2 for an InGaN LED. I 0 is the reverse saturation current [24].
However, the LED nonlinear I-V characteristic needs to be modified in order to take into account parasitic resistances. A series resistance can be caused by excessive contact resistance or by the resistance of the neutral regions [24]. The equivalent circuit for the transient behavior of LED is shown in Figure 2. Considering the nonlinear series resistances R s and parallel resistance R p of LED, the I-V characteristic of a forward-biased p-n junction diode . For devices with a high parallel resistance (Rp ! ∞), the diode I-V characteristic can be written as For Rp ! ∞ and Rs ! 0, this equation reduces to the Shockley equation.
We measured electrical-optical properties of LED chips. Figure 3(a) shows experimental and theoretical relationship between drive current I against forward voltage v for a single LED. The measured LED bias current I against the junction voltage v d characteristic well matches the theoretical nonlinear I-v d model. Figure 3(b) shows relationship between optical power and forward voltage for a single LED. LED optical power get cut off below the threshold of 10 mA @ 2.7 V, increased within a linear dynamic range of 600 mV around bias point of 450 mA @ 3.3 V, finally saturated and decreased beyond 1100 mA @ 3.7 V. This is because nonlinear thermal effects appear to reduce the internal quantum efficiency and electrical to optical conversion efficiency. Thus, the LED drive current and linear dynamical range should be optimally designed to avoid nonlinear distortions in output optical power and degradations in VLC performance [7]. Figure 4 shows LED bias current and output optical power against forward voltage for two parallel-connected and series-connected LED chips. It can be seen that the nonlinear region of parallel-connected LED chips fluctuates dramatically above 3000 mA @ 3.5 V due to the larger forward current thermal effect, whereas the linear modulation dynamic range of the seriesconnected LED chips increases to 1200 mV around the optimal DC-bias point 370 mA @ 6.4V due to the improved impedance. Thus, series-connected LED chips can enhance the linear dynamic range.
We evaluated VLC transceiver system response at the frequency of 10 MHz along the distance of 1 m. Using the same transmitter signal amplitude of 100 mV, we measured the receive signal amplitude for different LED DC-bias power levels. Figure 5 shows the effect of LED forward voltage and current on the AC signal system response for two and three series-connected LED chips. It is shown that the received signal and system response fluctuate to decline gradually with the increase of LED DC-bias current and voltage, because high DC power will lead to a nonlinear thermal effect that saturated output optical power and degraded AC signal amplitude. As compared, a larger number of series-connected LED chips can mitigate the nonlinear fluctuation of system response.

LED modulation bandwidth due to carrier lifetime
The differential carrier lifetimes in InGaN-based LEDs can be described by the simple ABC model. This rate equation model considers that the current through the device is made up of three contributions: a nonradiative current I A due to Shockley-Read-Hall (SRH) recombination at defect sites, a current I B due to radiative recombination of electrons and holes, and an Auger current I C due to cubic nonradiative recombination [25]. The total current is thus where I is the operation current, q is the elementary charge, s and d are the device area and total thickness of the quantum wells (QWs), N is the carrier density, A, B, and C are the coefficients of Shockley-Read-Hall (SRH), radiative recombination and Auger nonradiative recombination.
Under small-signal modulation conditions, the luminescence decay is mono-exponential with the differential time constant [26]. The differential lifetime is then given by the derivative of the recombination rate with respect to carrier density 1=τ In the case that linear and quadratic terms dominate the recombination rate, the simplified expression between carrier lifetime and bias current can be derived by 1=τ 2 s ¼ A 2 þ 4BI=qV. Thus, the LED electrical-optical 3-dB bandwidth [23] related to the differential lifetime can be obtained

LED modulation bandwidth due to space-charge capacitance
The common feature of LED is that the large junction over the entire wafer presents a spacecharge capacitance of the junction in parallel with the diffusion capacitance of carrier lifetime. Figure 2 shows the equivalent circuit for the transient behavior of LED. In addition to the diffusion capacitance C d of carrier lifetime, there is the space-charge capacitance Cs of the depletion layer. The space-charge capacitance [27] is given by c 0 is the zero-bias capacitance per unit area, Ø is the barrier voltage, and the exponent m is 1/2. The LED resistance R s in the equivalent circuit accounts for the series resistance of the bulk material and the contact resistances. Thus, the time constant due to the space-charge capacitance [23] is given by The electrical-optical 3-dB bandwidth related to space-charge capacitance can be obtained

Nonlinear modulation bandwidth of white LED
Considering the nonlinear electrical-optical characteristics of LED, substituting Eq. (1) into Eq. (4), the total LED rise time due to carrier spontaneous lifetime and space-charge capacitance [23] can be defined by The total equivalent electrical-optical 3-dB bandwidth due to the differential lifetime and space-charge capacitance can be expressed by the LED bias current We measured the optical spectrum of different phosphor white LED chips (Osram Ostar) as shown in Figure 6. It can be seen that a commercial warm white LED (CWLED) contains only 10% blue component of the overall emitted power, while the emitted ultra-white LED light (UWLED) consists of 41% blue component and less slow yellow component from the phosphor. As the modulation bandwidth of blue light is higher than that of yellow component, the ultra-white LED (UWLED) can be used to improve the modulation bandwidth efficiency [7].
The effect of LED DC-bias current on electrical-optical-electrical (EOE) channel frequency response of the VLC transceiver is shown in Figure 7. The magnitude of the channel frequency response is measured by a network analyzer. It can be seen that the magnitude of frequency response reduced when bias current is less than 100 mA due to clipping of the lower peaks at the turn on point. For small frequency signals less than 10 MHz, VLC system frequency response magnitudes reduce as LED bias currents increase, due to nonlinear intensity saturation at large currents. However, for high frequency signals in Figure 7(b), the system response improves with the increasing DC bias current due to higher optical power detected at the receiver [7].
The comparison of experimental and theoretical relationship between 3-dB bandwidth of the VLC system and LED bias current is shown in Figure 8. It is found that the 3-dB bandwidth of the VLC system increases with LED bias current, because the bandwidth due to carrier lifetime fs in Eq. (3) increases significantly with carrier density and driving current. Furthermore, the LED bandwidth saturates and approaches to 7 MHz when DC bias current is larger than 250 mA, because the bandwidth due to space-charge capacitance f c in Eq. (4) reduces apparently with bias current. It is shown that results of experimental measurement of LED bias currentrelated equivalent bandwidth well match the theoretical results in Eq. (6). Since the receiver itself has a relatively large bandwidth (photodetector 150 MHz, amplifier 1 GHz), the system bandwidth (7 MHz) is limited by the LED module.
As the blue filtering introduces high optical power attenuation, we extend LED modulation bandwidth without blue filtering. The magnitude of the channel frequency response was measured by a network analyzer. A first-order equalizer that consists of a capacitor in parallel with a resistor (R ¼ 1 kΩ, C ¼ 30 pF) is developed to enhance the system bandwidth. Figure 9 presents the frequency response of the equalizer and the corresponding equalized VLC transceiver system. It can be seen that the optimized analogue equalizer can extend the bandwidth of the VLC transceiver from 7 to 40 MHz.   amplified the photocurrent signal, which bandwidth was extended by a first-order analogue postequalizer [16]. The received electrical signal was amplified and then connected to a digital oscilloscope (HP 4396B) and a bit error rate tester (BERT).
A pseudorandom binary sequence (PRBS)-10 OOK-NRZ data stream with a peak-to-peak voltage swing of 2.5 V is used to modulate a single LED light. Figure 11 shows the relationship between the measured bit-error-rate (BER) performance and the date rate of the equalized VLC system for different DC bias currents. It can be seen that the maximum date rate at DC bias current of 510 mA can achieve 60 Mbps for a BER threshold of 10 À3 . In contrast, BER performance degraded obviously for both a low DC bias current of 200 mA and a high DC bias current of 680 mA.
The effect of LED DC bias current on VLC BER performance for different data rates is illustrated in Figure 12. For a BER threshold of 10 À3 , the maximum date rate of 60 Mbps can be achieved at 510 mA bias current. The smaller bias currents less than 100 mA increased the BER at low data rates (20 and 32 Mbps). The DC bias current that corresponds to minimal BER value is used to identify the optimum bias point, where the LED is operating in a linear region with less probability of clipping the signal peaks. The high BER observed at the large bias current more than 200 mA is mainly due to the nonlinear thermal effect and the clipping of the upper peak at the maximum output optical power [7]. For high data rates (40 and 60 Mbps), BER decreases to the minimum value with an increase in LED bias current. This is because relatively high levels of optical power are required to overcome the received signal-to-noise penalty at a high data rate. Therefore, the optimized DC-bias current of an LED driver that corresponds to minimum BER increases gradually with an increase in the data rate. The modulation bandwidth can be enhanced by reducing parasitic resistances and capacitances of LED, or carrier sweep-out of the active region. This can help in controlling the dimmable illumination brightness of white LEDs to match the modulation speed and improve system performance.  where f c is the carrier frequency, I(t) and Q(t) are the modulating signals of in phase and quadrature components. The received signal is a linear combination of all x j , and the MIMO channel model can be represented as [16] y where n is the sum of thermal noise and ambient shot light noise with zero mean and a variance σ 2 , and the noise power spectral density is N 0 . It is assumed that N t data symbols x 1 , x 2 , …, x Nt are chosen randomly, equally likely and independently to form an input data vector where A is a given modulation constellation. Each Tx transmits independent symbols of the same power: <xx * > ¼ P t /N t .I, where P t is the total Tx power, I is the identity matrix, <> and * denote the expectation and Hermitian conjugation, respectively. The received signal vector is denoted by y ¼ ½y 1 , y 2 , …, y Nr T . Notation H denotes an N t Â N r channel matrix, in which h nm is the real nonnegative coefficient between the nth receiver and the mth transmitter.
Channel gain of an indoor VLC LOS link is determined by [28] with ψ is the angle of incidence with respect to the nth receiver axis, and ϕ is the angle of emergence with respect to the mth transmitter axis. d nm is the distance between mth transmitter and nth receiver. Ψ is the field-of-view (FOV) of the receiver, A is the detector area, and k ¼ Àln 2/ln(cos(ϕ 1/2 )), in which ϕ 1/2 is the half power angle of the transmitter.
The MIMO system has first to estimate channel estimation coefficients between Tx and Rx, to de-multiplex signals and retrieve transmitted data. We periodically inserted training sequences of binary phase shift keying signals in front of the data streams to obtain the channel estimation matrix. Each row of the two-dimensional (2D) array contains two training sequences, one from each transmitter [16].
Zero-forcing (ZF) is the simplest method to estimate the transmitted data, that invert H and multiply it with the received vector [29]: However, if H is rank deficient, matrix inversion cannot be performed. The noise vector n will lead to noise amplification for low values of H. Thus, the pseudo inverse of H can be used by [16]: where H* is the conjugated transpose of H. Using the pseudo inverse zero-forcing, the demultiplexing and postequalization can be simultaneously realized for an estimate of x.
The adaptive MIMO is mainly based on the approximated expression for the average bit error rate (BER) of M-ary QAM symbols and channel capacity of the MIMO system. An approximate expression of average bit error probability of M-ary square QAM can be obtained by where γ is the received signal to noise ratio (SNR) per symbol, and erfc(x) is the complementary error function. The analytical error-probability bound for an AWGN SISO channel with M-QAM modulation is given by [30] Assuming that signals from individual LEDs are independently equipowered, and a channel matrix is perfectly known to the receiver [29], spectral efficiency of MIMO channels is obtained by where N m ¼ minðN t , N r Þ, λ ≜ λ 2 1 , …, λ 2 Nm h i T is eigenvalue vector of HH Ã , kk denotes the Frobenius norm, kHk 2 ¼

Visible Light Communications
For a given BER tgt , the maximum spectral efficiency can be obtained by The adaptive MIMO system can be defined by the constrained optimization problem. max MIMO, si, Pi subject to Eq. (17) expresses the optimization strategy that maximizing the spectral efficiency by adapting the MIMO scheme, transmit rate s i and power P i in each subchannel. Eq. (18) shows that the average total transmit power cannot exceed P t , and Eq. (19) requires that at any instant the BER in any subchannel must remain below a predetermined target level BER tgt . We consider more practical discrete rate systems in Eq. (20), where we restrict the available constellation size M i to a finite set of integers instead of any nonnegative real values. In particular, we use only square QAMs as the available component modulation schemes; i.e., Based on the conditions of MIMO channel estimations, we can adapt the MIMO schemes in Eq. (21) such as spatial multiplexing (SM) and spatial diversity (SD) to maximize the achievable spectral efficiency. Eq. (22) is the nonnegative constraint on power and rate.The expectation over λ in Eq. (17) implies that we assume the random process λ is ergodic. These enable the MIMO adaptation in the time domain and spatial domain. Figure 13 presents a block diagram and experimental setup of this 2 Â 2 M-QAM adaptive MIMO VLC system. The random binary data is generated in Labview and would be first split into two parallel streams, one for each transmitter (TX) channel. We develop adaptive MIMO modes control modules, which can adjust the optimal modulation formats and MIMO schemes to maximize the spectral efficiency and error performance according to the real-time MIMO channel conditions. We adaptively choose one of MIMO technologies: spatial diversity (SD) and spatial multiplexing (SM). SD MIMO transmits the same data stream in each Tx to Data streams are transmitted from the host computer to USRP X310 using 10G SFPþ Ethernet interfaces. The complex QAM streams are upconverted after digital to analog conversion (DAC), and generate the real analogue RF signals. The analogue transmitter front end superimposed the amplified output signal onto LED bias current using a bias tee. The phosphorescent white LED (Osram OSTAR) with four chips provided 520-lm luminous flux with a 120 opening angle at 700 mA current. An aspheric lens collimated LED light propagation along line-of-sight direction. A high-speed PIN photodetector captured LED light by an aspheric convex lens. A low noise transimpedance amplifier (TIA) amplified the photocurrent signal, which bandwidth was extended by a first-order analogue postequalizer.

Experimental setup of adaptive MIMO VLC system
Subsequently, we routed the received signals from each receiver to an RX channel of USRP X310. USRP X310 is a scalable software-defined radio (SDR) platform for designing and deploying the next generation wireless communication system. The hardware architecture integrates two daughterboard slots covering DC-6 GHz with up to 120 MS/s of baseband bandwidth, 200 MS/s ADC, and 800 MS/s DAC, and dual high-speed SFP(þ) interface ports for 1/10 Gigabit Ethernet. We set 10 MHz baseband bandwidth due to the limited sampling rate of daughterboard and analog to digital conversion (ADC). A large user-programmable Kintex-7 FPGA in a convenient desktop provides best-in-class real-time hardware performance [16].
Training sequences are acquired for synchronization and channel estimation, after downconverting to baseband and down sampling by a matched filter. With removing CP, the received data streams are processed in an MIMO de-multiplexer. The final streams are then passed through a QAM demodulator to recover original binary streams. Based on the channel estimation conditions, the adaptive MIMO mode selection module will calculate and select the corresponding optimum modes including modulation formats and MIMO schemes. We then update the three-bit binary code for adaptive MIMO modes and feedback the adaptive mode code to the transmitter by using RF uplink. In Labview, we measured and analyzed the constellation diagram, EVM, BER, and spectral efficiency performance for adaptive M-QAM MIMO VLC system.

Results and discussion
In order to achieve adaptive MIMO visible light communication for indoor lighting environment, we first evaluate efficient estimation approaches to acquire the real-time channel conditions. Then we measured and compared the error performance and spectral efficiency of M-QAM MIMO VLC systems using spatial diversity and spatial multiplexing, respectively. Based on the adaptive MIMO mode selection criteria in terms of channel estimation, we demonstrated the adaptive real-time software-defined MIMO VLC along with different distance. Figure 14(a) shows the captured waveforms and resulting IQ symbols of RX1 and RX2 for 64-QAM spatial diversity MIMO VLC. From this figure, we can find the crosstalk and phase offset between these two RXs, which require MIMO processing in the DSP. The constellation plots show the signals received by the two Rx NI USRP transceivers.

Real-time single-carrier QAM MIMO visible light communication
We recover 2D array of symbols by postequalization with channel estimations and convert them into the proper 1D array of symbols by performing max ratio combining (MRC) as shown in Figure 6(b).  respectively. This reconstructed constellation shows that MIMO system works properly.
We then demonstrate spatial multiplexing MIMO VLC by transmitting different data streams. Figure 15(a) shows four received I and Q waveforms from each of the two Rx antennas after downsampling and postequalization, which are combined together by MIMO de-multiplexing to recover the MIMO RX symbols IQ graph in Figure 15(b). From Figure 14(c)-(e), we can find that all the 64-QAM IQ symbol waveforms have been successfully reconstructed in the spatial multiplexing MIMO VLC system. Furthermore, we measured high-order modulation performance for 256-QAM spatial multiplexing MIMO VLC, which constellation diagrams are depicted in Figure 16. The results show clear constellations and error free transmission in 256-QAM spatial multiplex 2 Â 2 MIMO VLC with EVM 1.81%, BER 2 Â 10 À5 and data rate 160 Mbps along 2 m. Figure 17 shows comparison of BER versus signal power of a 64-QAM 2 Â 2 MIMO VLC transmission. Compared with spatial multiplexing, the spatial diversity MIMO VLC system can enhance about 3-dB array gain in BER performance, as the array gain in spatial diversity MIMO VLC improves the received signal strength.

4.2.
Software-defined MIMO VLC using link adaptation of spatial diversity and spatial multiplexing Figure 18 shows the measured EVM and channel response estimation against signal power for 2 Â 2 MIMO 4-QAM VLC using spatial multiplexing and spatial diversity. For large symbol streams T, such that T ≫ N, where N is the number of unique modulation symbols, channel SNR can be obtained from EVM as SNR ≈ 1/EVM 2 . As shown in Figure 10, EVM of SM and SD MIMO VLC decreases correspondingly with an increase of signal power. As EVM approaches to small value of 2%, both EVMs become saturated due to the limited symbols streams. It is clear that EVM of spatial diversity system has a power gain of about 3 dB compared to the spatial multiplexing due to the antenna array gain. Channel SNR estimation from the measured EVM is dependent on the symbol number, constellation size, and MIMO processing. On the other hand, we obtain channel SNR directly from a channel response estimation matrix, where λ i is eigenvalue of channel estimation matrix H. As Figure 10 shows, each subchannel eigenvalue of channel estimation has a linear relationship with signal power. Furthermore, original channel estimation matrix is similar for both spatial diversity and spatial multiplexing MIMO. Thus, we can acquire real-time subchannel SNRs from eigenvalues of channel estimation matrix regardless of MIMO schemes and modulation formats.
BER performance of 4-16-64-256 QAM 2 Â 2 MIMO VLC using spatial multiplexing and spatial diversity is shown in Figure 19, where dots are experimental measurements and lines are theoretical results. The results show that BER decreases significantly to 10 À7 as SNR grows with a linear dynamic range. Moreover, no nonlinear distortion occurs at high signal power by using single-carrier M-QAM modulation for the 2 Â 2 MIMO VLC system. We can see that BER of spatial diversity system has about 3-dB SNR gain compared to the spatial multiplexing, as the array gain in spatial diversity MIMO VLC improves the received signal strength. It is clear that the experimental measurements well match the theoretical results, which verify    We can see that the spatial multiplexing system has about 3 dB gain in spectral efficiency compared with spatial diversity due to multiplexing gain of SM. These bandwidth efficiency enhancements are at the scarification of the degraded error performance. The experimental measurements well match the theoretical results, which verify channel SNR estimation and of spectral efficiency of M-QAM MIMO VLC. Thus, we can establish the adaptive MIMO mode criteria in terms of singular value of channel matrix to maximize the spectral efficiency.
Based on the established adaptive MIMO mode criteria in terms of channel estimation as shown in Figure 21, we demonstrate the real-time adaptive MIMO VLC system to maximize spectral efficiency under target BER threshold. BER performance and spectral efficiency against link distance for adaptive M-QAM MIMO VLC are depicted in Figures 22 and 23     VLC enhances the average spectral efficiency to 12 b/s/Hz over 2.2 m distance. Thus, it is necessary to explore the optimal combination of spatial multiplexing and spatial diversity for adaptive MIMO VLC to improve spectral efficiency and BER performance for indoor lighting environment.

Adaptive software-defined MIMO VLC after a mobile obstruction
Based on the established adaptive MIMO mode criteria in terms of channel estimation matrix, we demonstrate the real-time adaptive MIMO VLC system to maximize spectral efficiency under target BER threshold, after propagation beyond an obstruction. An obstacle with a diameter of 4.5 cm placed in the middle of transmission distance of 218 cm obstructs the lineof-sight light waves from two LEDs separated by 5 cm. We marked the central line between the two LEDs as a reference position at 0 cm. The obstacle was translated across the line-of-sight transmission direction from À65 to 65 cm, with dynamical obstruction range of 135 cm.
With the obstacle moving across LOS links, we measured the channel response of subchannels in Figure 24, and compared the error performance and spectral efficiency of adaptive M-QAM MIMO VLC with traditional MIMO VLC as shown in Figures 25 and 26. The fixed 64-QAM MIMO VLC using spatial diversity and spatial multiplexing are introduced for comparison. Insets show the corresponding constellations of adaptive MIMO modes. The initial mode is SM-64 (spatial multiplex 64-QAM). As we can see in the figures, as the obstacle moved across LOS from À65 to 65 cm, the adaptive MIMO modes change to SM-256, SM-64 and SD-256 adaptively with BER less than 10 À3 . Results show that adaptive MIMO VLC can overcome these losses by the blockage, thus recover the clear constellation diagrams after propagation   beyond the obstruction. Adaptive MIMO VLC enhanced the average error-free spectral efficiency to 12 b/s/Hz over 2-m indoor transmission with an obstruction, compared with 7.7 b/s/ Hz for SM-64 and 6 b/s/Hz for SD-64. The adaptive MIMO VLC will enhance spectral efficiency and error performance in a real-time combined lighting and communication environment such as transmission power distribution, environmental blockage, and shadowing.

Conclusion
In this chapter, we experimentally demonstrate real-time software-defined multiple-input multiple-output (MIMO) visible light communication (VLC) system employing link adaptation of spatial multiplexing and spatial diversity. Real-time MIMO signal processing is implemented by using the field programmable gate array (FPGA)-based universal software radio peripheral (USRP) devices. Software-defined implantation of MIMO VLC can assist in enabling an adaptive and reconfigurable communication system without hardware changes. We propose the adaptive MIMO solution that both modulation schemas and MIMO schemas are dynamically adapted to the changing channel conditions for enhancing the error performance and spectral efficiency. The average error-free spectral efficiency of adaptive 2 Â 2 MIMO VLC achieved 12 b/s/Hz over 2 m indoor dynamic transmission. The adaptive MIMO VLC will enhance performance in a real-time combined lighting and communication environment such as transmission power distribution, beam forming, communication range, environmental blockage, and shadowing.