for the applications which uses ZigBee technology. According to IEEE 802.15.4 following Specifications are required. Data rate Number of channels Operating frequency Channel spacing Spread spectrum Chip rate Modulation 250 kbps 16 2.4GHz 5 MHz Direct Sequence
Spread
Spectrum 2 Mega chips per second. OQPSK with Half sine pulse
shaping
Data rate is 250kbps, because ZigBee uses at low data rate, DSSS provides anti jamming capabilities, OQPSK with Half sine pulse shaping to provide phase continuity so that there will be no phase changes in transmitted output which help us to save power. By taking this as advantage, an efficient power amplifier design is possible in the realization of hardware. OQPSK provide a delay of half a bit period in inphase channel and same amount of delay is introduced at the receiver to get back original data.
Page 1
Page 2
R.V. College of Engineering Bangalore-560059 Chapter-2 LITERATURE SURVEY 2.1 About ZigBee
ZigBee standard consists of a whole suite of specifications designed specifically for wireless networked sensors and controllers. The physical(PHY) and medium access control (MAC) layers are standardized by the IEEE 802.15 wireless personal area network (WPAN) working group under the designation of 802.15.4 [4]. The standard mainly aims at low cost, low data rate and low power wireless network. The higher layers are specified by the ZigBee Alliance [5], which is an industry alliance consisting of a full spectrum of companies, ranging from ZigBee chip providers to solution providers. Compared to other wireless communication technologies, ZigBee is designed specifically for providing wireless networking capability for batterypowered, low-cost, low capability sensor and controller nodes, typically powered only by an eight-bit microcontroller. The ZigBee technology is designed to provide a simple and low-cost wireless communication and networking solution for low-data rate and low power consumption applications, such as home monitoring and automation, environmental monitoring, industry controls, and emerging low-rate wireless sensor applications[7].
The 868MHz band is used in Europe for a number of applications, including short range wireless networking. The 915MHz and 2.4GHz bands are part of industrial, scientific and medical (ISM) frequency bands. The 915MHz frequency band is used mainly in North America,
Page 3
The Table-1 given above provides additional details regarding the ways in which these three frequency bands are used in IEEE 802.15.4 standard [3]. IEEE 802.15.4 requires that if a transceiver supports 868MHz band, it must support 915MHz band as well, and vice versa. Therefore, the two bands are bundled together as the 868/915MHz frequency bands of operations. IEEE 802.15.4 has one mandatory and two optional specifications for the 868/915MHz bands. The mandatory requirements are simpler to implement but yield low data rates (20Kbps and 40Kbps, respectively). If a user chooses to implement the optional modes of operation, IEEE 802.15.4 still requires that it accommodate the low data rate mandatory operation in the 868/915MHz bands as well A 2.4GHz transceiver may support 868/915MHz bands, but it is not required by IEEE 802.15.4. There is room for only a single channel in the 868MHz band.
Page 4
Page 5
2.5 Offset Quadrature Phase Shift Keying(OQPSK) Department of Telecommunication & P G Studies
Page 6
The constellation plot shown in Figure 3.11 above includes all possible phase transitions that can arise in the generation of a QPSK signal ( [7], [9], [10] ). From the QPSK waveform, we observe the following. 1. The carrier phase changes by 1800 whenever both the inphase and Quadrature components of QPSK signal changes the sign. This situation occured when the input binary sequence switches from dibit 01 to dibit 10. 2. The carrier phase changes by 900 whenever the inphase or Quadrature components changes sign. This situation occurs when the input bit sequence switches from dibit 10 to dibit 00, during which the inphase component changes sign, whereas the Quadrature component is unchanged. 3. The carrier phase is unchanged when neither the inphase component nor the Quadrature component changes sign. This situation occurs when dibit 10 is transmitted in two successive symbol intervals. Situation 1 and, to a much lesser extent, situation 2 can be of a particular concern when
Page 7
Figure 2.5.1: Output after adding delay in the quadrature arm of OQPSK
Page 8
Despite the delay T/2 applied to the basis function 2(t) in equation 2.5.1 , compared to the equation in QPSK, the offset QPSK has exactly same probability of symbol error in an AWGN channel as QPSK. The equivalence in noise performance between these phase shift keying schemes assumes the use of coherent detection. The reason for the equivalence is that statistical independence of the inphase and Quadrature components applies to both QPSK and OQPSK. We may therefore say that error probability in the inphase and Quadrature components applies to both QPSK and offset QPSK. We may therefore say that the error probability in the inphase or Quadrature channel of a coherent offset QPSK receiver is still equal to . Hence this formula erfc(E/No)applies equally well to the offset QPSK.
Page 9
Page 10
Page 11
Page 12
Fig 3.2.1: Receiver BLOCK DIAGRAM The received signal is passes through AWGN channel
Step by step procedure to implement ZigBee receiver using Simulink is presented below.
Page 13
Page 14
Page 15
Figure 4.1.1: Generation of inphase and quadraturephase data Here we have arbitrarily assumed that in every case the active edge of the clock waveforms is the downward edge i.e., negative triggering. We know that T-flip flop toggles its output if the input is 1. Here let the toggle flip-flop is driven by a clock waveform whose period is the bit time Tb. The toggle flip-flop generates an even clock waveform and an odd waveform. These clocks have bit period 2Tb. The active edge of one of the clocks and the active edge of the other are separated by the bit time Tb. Let the bit stream b(t), which is applied as the data input to both type-D flip flops, one driven by the odd and the other is driven by the even clock waveform. The flipflops register alternate bits in the bit stream b(t) and hold each such registered bit for two bit intervals, that is for a time 2Tb[8]. If there are input bit sequence numbered 1,2,3,4 etc., then the bit stream bo(t) registers bit 1 and holds that bit for time 2Tb and next it registers bit 3 for time 2Tb and next bit 5 for 2Tb, etc. The even bit stream be(t) holds, for times 2Tb each , it results the alternate bits numbered 2,4,6 etc. The clock signal used for the flip-flops is shown in the From this clock, two clocks are generated using T flip-flop. These two clocks are complement to each other. The period is double to that of original clock signal. These are called as inphase clock and Quadrature clock[8].
Page 16
Page 17
Fig 5.1.1: input bit stream 5.1.2 Symbol generation The 250Kbps input data is mapped into a symbol, making the symbol rate 62.5Kilo symbols per second, because here we use 4bits in one symbol, therefore it generate one symbol at every 16sec. symbol 0 and symbol 1 are as shown in figure 5.1.2.
Fig 5.1.2: Symbol 0 and 1 5.1.3 PN sequence for performing DSSS The Pseudo Noise code is generated from a PN sequence generator. This is shown below with data rate of 2Mbps. That means each bit in the PN sequence is having a time period of 0.5 s as shown in figure 5.1.3.
Page 18
Page 19
Figure 6.1.1: clock 6.1.2 Even clock The clock signal used for the flip-flops is shown in the figure above. From this clock, two clocks are generated using T flip-flop. These two clocks are complement to each other. The period is double to that of original clock signal. These are called as inphase clock and Quadrature clock.
Page 20
Figure: 6.1.3 Odd clock 6.1.4 Inphase data The DSSS signal has a data rate of 2Mbps. The inphase data and Quadrature data after serial to parallel conversion are shown in Figure 6.1.4 and Figure 6.1.5.They are having a data rate of 1Mbps. By doing this, we can transmit two bits at a time and hence bandwidth efficiency improved.
Figure: 6.1.4 Inphase data 6.1.5 Quadrature data Below is the quadrature data after serial to parallel conversion obtained at the complemented output of D flip-flop, these both inphase and quadraturephase data are used to modulate high frequency carrier of 2.4Ghz after sine pulse shaping.
Page 21
Figure 6.1.5 Quadrature data 6.2 Pulse shaping Following the separation of two bit streams, the two signals are pulse shaped through a half sine wave. Here this sine wave has a time period of 2s. These Inphase and Quadrature signals after half sine pulse shaping are shown in Figure 6.2.1and Figure 6.2.2 respectively. This is nothing but performing BPSK at inphase and quadrature data. 6.2.1 Pulse shaped inphase data Here Inphase data from D-flip-flop is multiply with sine wave of frequency 500khz to pulse shaped square wave into a sine wave as shown in below figure for inphase data to avoid any ISI in the channel.
Figure 6.2.1 pulse shaped inphase data 6.2.2 Pulse shaped quadrature data Similarly quadrature data is multiplied with cosine signal with frequency 500 kHz to pulse shaped it as sine to avoid ISI in the channel. Below figure illustrate the quadrature pulse shaped signal.
Page 22
Figure 6.2.2 pulse shaped quadrature data 6.3 Modulation with high frequency Carrier Following the pulse shaping, the two signals are multiplied with a 2.4GHz high frequency carrier signal for doing modulation. The inphase signal and Quadrature signal after modulation are shown in Figure 6.3.1 and Figure 6.3.2 6.3.1 Inphase data after modulation Here inphase sine pulsed data are used to modulate the high frequency signal of 2.4G Hz. Signal after modulation is as shown in figure 6.3.1.
Figure 6.3.1 Inphase data after modulation 6.3.2 Quadrature data after modulation Similarly quadrature phase data after sine pulse are used to modulate high frequency signal of 2.4G Hz signal. Signal after modulation is as shown in the figure below.
Page 23
Fig 7.1: Received signal after passing through AWGN 7.2 Frequency down conversion
The outputs of both inphase and Quadrature signals after multiplying with recovered carriers is shown in Figure 7.2.1and Figure 7.2.2 respectively. 7.2.1 inphase signal after multiplying with carriers
Below is the inphase signal after multiply with recovered carrier, and it is used to perform frequency down conversion.
Page 25
Figure: 7.2.1 inphase signal after multiplying with carriers 7.2.2 Quadrature signal after multiplying with carriers
Figure 7.2.2 Quadrature signal after multiplying with carriers 7.3 Low pass filtering The resultant signals containing both the high frequency harmonics and baseband signal components. Separate the baseband signal components form high frequency harmonics by passing through a low pass filter. These signals are passed through a 3rd order Butterworth low pass filter having cut-off frequency of 500 KHz for extracting only baseband data. Outputs after low pass filtering are shown in Figure 7.3.1 and Figure 7.3.2.
7.3.1 LPF inphase Output After frequency down conversion, signal obtained is passes through low pass filter
Page 26
Figure 7.3.1 LPF inphase output 7.3.2 LPF quadrature output Similarly Quadrature data is after frequency down conversion, signal is filtered with a LPF of frequency 500khz.Signal obtained is as shown in figure below.
Figure 7.3.2 LPF quadrature output 7.4 Sampling Next, this baseband output is passed through a sample and hold circuit for sampling of base band signal. The sample period used for sampling is 2s. This sampled output at both inphase and Quadrature demodulators are shown in Figure 7.4.1 and Figure 7.4.2 respectively. 7.4.1 Output of sampler inphase Inphase data after Low Pass filtering is Sampled using Zero-order hold circuit from
Page 27
Figure 7.4.1 Output of sampler inphase 7.4.2 Output of sampler quadrature Similarly quadrarure signal after filtering is sampled and thus obtained data is used to detect the original data followed by comparison.
Figure 7.4.2 Output of sampler quadrature 7.5 Comparison This sampled data is passed through a comparator, for deciding whether the transmitted bit is 1 or 0. Set the threshold for comparator as 0. The comparator output at both inphase and Quadrature demodulators are shown in Figure 7.5.1 and Figure 7.5.2 respectively. Here we have used greater than zero condition.
Fig 7.5.2: Output of comparator quadrature Next, introduce a delay of one bit period at the Quadrature demodulator output. If the delay introduced in the transmitter at inphase side, resultant signal is as shown below.
Page 29
Page 30
Fig 8.1: reconstructed DSSS signal Observing above signal for the delay by comparing with DSSS at transmitter, we provide same amount of delay to the PN sequence to dispread the recovered DSSS signal. PN sequence data.
Page 31
Fig 8.2: reconstructed symbol 8.3 Symbol to bit Conversion After symbol to bit conversion, reconstructed bit stream as shown below.
Fig 8.3: Reconstructed bit stream The output bit stream shown in Figure 1and the input bit stream shown in Figure 8.3 are same except a small amount of delay (2.5s).
Page 32
Fig 9.1.1: input message bit stream We cannot predict the changes in the inphase and quadrature signal. By reducing the sample period, we can observe the final transmitted output of ZigBee transmitter is shown in Figure 9.2. So we increase the increase the time period to observe it correctly. 9.2 Transmitted signal
Page 33
Fig 9.2.2 Transmitted signal after passing through AWGN channel The transmitted signal is passed through a AWGN channel. The noisy version of the transmitted signal at the input of receiver is shown in Figure below. 9.3 reconstructed message bit stream The output bit stream shown in Figure 1and the input bit stream shown in Figure 28 are same except a small amount of delay (2.5s).
Page 34
Page 35
Page 36
Page 37
Bibliography
[1]. Maryam Alnuaimi, Mohamed Boulmalf, Farag Sallabi and Abderrahmane Lakas Khaled Shuaid, "Performance Evaluation of IEEE 802.15.4: Experimental and simulation Results," Journal of Communications, vol. 2, pp. 29-37, June 2007. [2].K. Shuaib and I. Jawhar M. Alnuaimi, "Performance Evaluation of IEEE 802.15.4 Physical Layer Using Matlab/Simulink," in Innovations in information technology, Nov 2006., pp. 1-5. [3].Farahani Shashin, ZigBee wireless networks and Transceivers. Amsterdam, USA: Newnes publications, 2008 [4].Simon Haykin, Communication Systems, 4th ed. NewYork, USA: John wiley , 2001. [5].ZigBee Aliance. (2006, December) ZigBee Specification. [6].Chi-Chun Huang, Jian-Ming Huang, Chih-Yi Chang and Chih-Peng Li ChuaChin Wang, "ZigBee 868/915-MHz Modulator/Demodulator for Wireless Personal Area Network," IEEE transactions on Very Large Scale Integration(VLSI) systems, vol. 46, pp. 936-939, July 2008. [7].Dayan Adionel Guimaraes, Digital Transmission: A Simulation-Aided Introduction with VisSim/Comm. NewYork, USA: Springer, 2009. [8].Theodore S Rappaport, Wireless Communications, Principles & Practice. New Jersey, USA: Prentice Hall publications, 2002. [9].Herbert Taub and Donald L Schilling, Principles of Communication systems,
Page 38
Communications and Networking Conference, 2007, pp. 2393-2398. [13]. Amoroso F and Kivett J, "Simplified MSK Signaling Technique,"
IEEE transactions on communications, vol. 25, no. 4, pp. 433-441, April 1977. [14]. Nam-Jin Oh and Sang-Gug Lee, "Building a 2.4-GHZ radio transceiver
using IEEE 802.15.4," Circuits and Devices Magazine, IEEE, vol. 21, no. 6, pp. 43-51, Jan - Feb 2006. [15]. Aarno Prssinen, Direct conversion receivers in wideband systems.
Page 39
Page 40
Page 41
Page 42
Page 43
Page 44
Page 45
Page 46
Page 47
Page 48
Page 49
Page 50
Page 51
Page 52
Page 53
Page 54
Page 55