4.75
4.8 | 4 ratings Rate this file 49 Downloads (last 30 days) File Size: 12.3 KB File ID: #36258 Version: 1.0
image thumbnail

Modulation & Demodulation in Zigbee

by

Jitesh (view profile)

 

This Model has covered most of the physical layer blocks which is used in Zigbee Protocol.

| Watch this File

File Information
Description

In the transmitter, spreading is done using a PN Sequence at chip rate of 2 Mcps and then the spreaded bits are modulated using OQPSK modulator. In the receiver side, OQPSK demodulation is done first,then the spreaded bits are despreaded using the delayed version of PN chip sequence. The delay in transmitted and received bits is 4us.

Required Products Communications System Toolbox
Simulink
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (15)
26 Jun 2015 abhishek

Thank u Sir for previous suggesion...
many paper i have seen that they will use MSK modulation insteed of OQPSK ..when i am putting MSk in place of OQPSK block ...the simulation will work but the input is not equal to output.....is their is problem in tranport delay........
My 2nd que to u sir....why u are taking 4e-6 in delay block or is it because zigbee input is 250kbps .....or their is any calulation or this delay or can be calulated using any simulink block.....???

Comment only
23 Jun 2015 Jitesh

Jitesh (view profile)

@Lorik
The delay in samples is done to match bits from receiver and transmitter. The delay should have been 4us. The simulation delay due to the blocks was smaller than 4 us. Hence the output buffer is delayed.

@abhishek
As you have seen the model, i have not stored the received bits in any variable. So i don't a command from m-file will work. I suggest you to use block in simulink which uses the same equation as bertool command does.

Comment only
22 Jun 2015 abhishek

Jitesh sir.....firstly thank u for this model my que.is--
how we draw the graph between EbN0 vs BER.....this graph is very important for performance analysis of any wireless comm. system.....this graph can be drown by writting BERTOOL command on command window.....but when i am simulating this file on bertool not show this graph.....please help me ....

01 Oct 2014 Lorik

Lorik (view profile)

Dear Jitesh,

In the receiver, can you please explain to me why you are delaying by 2 samples after the output buffer?

Thank you.
L.

14 Apr 2014 Jitesh

Jitesh (view profile)

@suryatapa Analag data cannot be given directly to this model. You have to sample it and give it in digital format as this model is working on baseband layer.

@Abiodun First the input data stream is scrambled using the PN sequence at 2Mcps. To scramble, I have converted the bits into bipolar format and then converted it back to unipolar as OQPSK modulator doesnt take bipolar bits as input.

The reverse will followed at receiver. To compare the sequence perfectly, I have added a transport delay block for PN sequence. This is only the physical layer mapping of Zigbee. Is there anything you didnt understand, tell me.

Comment only
14 Apr 2014 Abiodun

@ Jitesh, nice work you'v done here. please can you offer a brief explanation of the work flow of the model. i will appreciate you.

@ suryatapa, i think one can make use of the -from file- tool box under 'sources' in simulink library.

Comment only
10 Mar 2014 suryatapa

how to input some analog data instead of the random generator to the model?

Comment only
09 Jan 2013 Mujahid

Good work...

08 Jan 2013 Jitesh

Jitesh (view profile)

@Zeeshan & @Mujahid
The 'Assemble 4 bits' block is the same buffer block. I have renamed it in my model for understanding the flow of model. The model runs in R2011a version and higher versions. You can use a normal buffer block of MATLAB version you have instead of 'Assemble 4 bits' block if it isn't working. Just make the buffer output size 4 in the parameter block and rest as it is. I am sure it will work.

Comment only
08 Jan 2013 Zeeshan

I am reeving this error while running the ZigBee module, please help.

Error in 'Zigbee/Transmitter/Assemble 4 bits': This proxy block was inserted in the model because a block of type 'Buffer' could not be located during model load. Updating or simulating a model containing such a proxy block is not permitted

Comment only
05 Jan 2013 Mujahid

what is main purpose of Proxy block in receiver and how can we change it with other things?
same for Disassemble Packet in receiver?
Can you explain it Jitesh....
Thanks for support..

Comment only
27 Nov 2012 Jitesh

Jitesh (view profile)

@Anisur
You can double click the Zigbee Transmitter Block and receiver block to view the internal structure..

Comment only
27 Nov 2012 Anisur

Anisur (view profile)

How the transmitter and receiver are designed ?
I can't find such block for this simulation.
Where it's located?

09 May 2012 Jitesh

Jitesh (view profile)

@Francisco
The 'assemble 4 bits' block is same as buffer block in simulink library with output buffer size as 4 . There might be a change in your simulation settings.
This model works on MATLAB 7.12 .

Comment only
09 May 2012 Francisco Paisana

I don't know why but the "assemble 4 bits" block in the transmitter and the dissamble packet in the reception isn't recognized.

Anyone knows how to solve this?

Comment only

Contact us