Download presentation
Presentation is loading. Please wait.
1
ZigBee Data Depackager
Group members: Cheng Peng and Patrice Umenne Supervisor: Bengt Oelmann
2
Introduction ZigBee is a new wireless protocol that works well in
sensors, remote monitoring and portable electronics Uses a low data rate of 250 kbps Long battery life due to low data rate
3
Introduction
4
Protocol overview The four main frames used for communication in the IEEE standard are: Beacon Frame Acknowledgement Frame MAC Command Frame Data Frame
5
Beacon Frame
6
Acknowledgment Frame
7
MAC Command Frame
8
Data Frame
9
System Structure Overall Block Microprocessor Baseband
Acknowledge Request RTR RTS ZigBee Data Depackager Baseband Decoder Microprocessor 8 bits address 8 bits data
11
State flow diagram Asynchronous reset Counter1, CRC initialized
RTS Ready to Send Signal Tested for incoming data Counter 1 incremented in loop until sixth byte Sixth byte is frame length A crc_reg_initialize =1, counter1_rst = 1, counter1_en = 1 r_w = 1 B counter1_en = 1, r_w = 1, comparator1_en = 1 rts = 1 ? N Y C counter1_en = 1, comparator1_en = 1, rtr = 1, counter1_trigg = 1, r_w = 1 C1 counter1_en = 1, comparator1_en = 1, r_w = 1 C2 counter1_en = 1, comparator1_en = 1, r_w = 1 N comparator1_output = 1? Y
12
State flow diagram Frame length Byte written to address 128
Counter2 initialized with Frame value RTS signal tested Counter2 decremented in loop to address the RAM on Every new byte Each byte written to RAM Each Byte enters CRC Counter2 Tested to have addressed ”0” Location D multiplexer_select_address = 01, address_loc = , r_w = 1 D1 multiplexer_select_address = 01, counter2_en = 1, counter2_initialize = 1, r_w = 0 rts = 1? Y E counter2_en = 1, counter2_trigg = 1, crc_reg_en = 1, rtr = 1, r_w =1 E1 counter2_en = 1, crc_reg_en = 1, crc_reg_trigg = 0, r_w=1 E2 counter2_en = 1, crc_reg_en = 1, crc_reg_trigg = 1 F r_w = 1, crc_reg_en = 1, counter2_en = 1 counter2_output = 0? N N Y rts = 1? Y
13
State flow diagram CRC Checksum Low Byte Written to RAM location 129
r_w= 1, crc_reg_en = 1, latch_in_h = 1, latch_in_l = 1 CRC Checksum Low Byte Written to RAM location 129 CRC High Byte written to location 130 r_w = 1, latch_out_l = 1, multiplexer_select_data = 10, address_loc = , multiplexer_select__address = 01 H r_w=1, multiplexer_select_data =10, address_loc= , multiplexer_select__address =01 H1 multiplexer_select_data =10, address_loc= , multiplexer_select__address =01 H2 r_w=1, latch_out_h=1, multiplexer_select_data =01, address_loc= , multiplexer_select__address =01 I r_w=1, multiplexer_select_data =01, address_loc= , multiplexer_select__address =01 I1 multiplexer_select_data =01, address_loc= , multiplexer_select__address =01 I2
14
State flow diagram Microprocessor sends request which is tested
Acknowledgement to read reply Continous read cycle until unique address to status register informs controller to exit read cycle to First state multiplexer_select__address =10, r_w=1 request = 1? N Y r_w=1, multiplexer_select__address =10, ack=1 exam_microprocessor = 0? N Y
15
Testbench Simulation Wave Diagrams
16
Testbench Simulation
17
Testbench Sim
18
Testbench Sim
19
Testbench Sim
20
System Verification Input data Output data 10001101 00000101 01100101
Address Data ← CRC high byte ← CRC low byte frame length → ← frame length
21
CRC Verification Input data Output data 10001101 00000101 01100101
Address Data ← CRC high byte ← CRC low byte frame length → ← frame length app. high byte → app. low byte →
22
Conclusion and Future Work
The depackager receives byte data, stores and calculates an error checksum. Then allows the Microprocessor to read stored data. Future Work would involve coding the processor to read Frame data, process Frame contents and extract data payload to sensor nodes
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.