zigbee wireless networks and · pdf filezigbee wireless networks and transceivers shahin...

Download ZigBee Wireless Networks and  · PDF fileZigBee Wireless Networks and Transceivers Shahin Farahani AMSTERDAM •BOSTON HEIDELBERG LONDON NEW YORK •OXFORD PARIS •

If you can't read please download the document

Upload: lamdat

Post on 27-Feb-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • ZigBee Wireless Networks and Transceivers

  • This page intentionally left blank

  • ZigBee Wireless Networks and Transceivers

    Shahin Farahani

    AMSTERDAM BOSTON HEIDELBERG LONDONNEW YORK OXFORD PARIS SAN DIEGO

    SAN FRANCISCO SINGAPORE SYDNEY TOKYONewnes is an imprint of Elsevier

  • Newnes is an imprint of Elsevier 30 Corporate Drive, Suite 400, Burlington, MA 01803, USA Linacre House, Jordan Hill, Oxford OX2 8DP, UK

    Copyright 2008, Elsevier Ltd. All rights reserved.

    Exception: Certain materials contained herein are reprinted with the permission of Microchip Technology Incorporated. No further reprints or reproductions may be made of said materials without Microchip Technology Inc.s prior written consent.

    No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise,without the prior written permission of the publisher.

    Permissions may be sought directly from Elseviers Science & Technology Rights Department in Oxford, UK: phone: ( 1 44) 1865 843830, fax: ( 1 44) 1865 853333, E-mail: [email protected] . You may also complete your request online via the Elsevier homepage ( http://www.elsevier.com ), by selecting Support & Contact then Copyright and Permission and then Obtaining Permissions.

    Recognizing the importance of preserving what has been written, Elsevier prints its books on acid-free paper whenever possible.

    Library of Congress Cataloging-in-Publication Data Application submitted.

    British Library Cataloguing-in-Publication Data A catalogue record for this book is available from the British Library.

    ISBN: 978-0-7506-8393-7

    For information on all Newnes publications visit our Web site at: www.books.elsevier.com

    08 09 10 11 12 13 10 9 8 7 6 5 4 3 2 1

    Printed in the United States of America.

  • To my family

  • This page intentionally left blank

  • www.newnespress.com

    Contents

    Foreword ..................................................................................................... xv Preface .......................................................................................................xviiAbbreviations ......................................................................................................... xxi

    Chapter 1 ZigBee Basics .............................................................................. 1 1.1 What Is ZigBee? .........................................................................................................11.2 ZigBee versus Bluetooth and IEEE 802.11 ................................................................21.3 Short-Range Wireless Networking Classes ................................................................31.4 The Relationship Between ZigBee and IEEE 802.15.4 Standards .............................41.5 Frequencies of Operation and Data Rates ...................................................................61.6 Interoperability ............................................................................................................81.7 Device Types ...............................................................................................................91.8 Device Roles ...............................................................................................................91.9 ZigBee Networking Topologies ................................................................................101.10 ZigBee and IEEE 802.15.4 Communication Basics .................................................12

    1.10.1 CSMA-CA ..................................................................................................121.10.2 Beacon-Enabled vs. Nonbeacon Networking .............................................131.10.3 Data Transfer Methods ...............................................................................131.10.4 Data Verification .........................................................................................151.10.5 Addressing ..................................................................................................15

    1.11 Association and Disassociation .................................................................................161.12 Binding ......................................................................................................................161.13 ZigBee Self-Forming and Self-Healing Characteristics ...........................................161.14 ZigBee and IEEE 802.15.4 Networking Layer Functions ........................................17

    1.14.1 PHY Layer ..................................................................................................171.14.2 MAC Layer .................................................................................................191.14.3 The NWK Layer .........................................................................................211.14.4 The APL Layer ...........................................................................................221.14.5 Security .......................................................................................................22

  • www.newnespress.com

    1.15 The ZigBee Gateway ................................................................................................231.16 ZigBee Metaphor ......................................................................................................23References ..........................................................................................................................23

    Chapter 2 ZigBee/IEEE 802.15.4 Networking Examples ............................... 252.1 Home Automation .....................................................................................................25

    2.1.1 Security Systems ...........................................................................................252.1.2 Meter-Reading Systems ................................................................................262.1.3 Irrigation Systems .........................................................................................272.1.4 Light Control Systems ..................................................................................272.1.5 Multizone HVAC Systems ............................................................................28

    2.2 Consumer Electronics: Remote Control ...................................................................292.3 Industrial Automation ...............................................................................................29

    2.3.1 Asset Management and Personnel Tracking .................................................292.3.2 Livestock Tracking........................................................................................30

    2.4 Healthcare .................................................................................................................312.5 Other Applications ....................................................................................................32

    2.5.1 Hotel Guest Room Access ............................................................................322.5.2 Fire Extinguishers .........................................................................................32

    References ..........................................................................................................................32

    Chapter 3 ZigBee and IEEE 802.15.4 Protocol Layers .................................. 333.1 ZigBee and IEEE 802.15.4 Networking Layers .......................................................333.2 The IEEE 802.15.4 PHY Specifications ...................................................................34

    3.2.1 Channel Assignments ...................................................................................343.2.2 Energy Detection ..........................................................................................363.2.3 Carrier Sense .................................................................................................363.2.4 Link Quality Indicator ..................................................................................373.2.5 Clear Channel Assessment ............................................................................373.2.6 The PHY Constants and Attributes ...............................................................383.2.7 PHY Services ................................................................................................393.2.8 The Service Primitives ..................................................................................423.2.9 PHY Packet Format ......................................................................................443.2.10 Summary of the PHY Layer Responsibilities ...............................................46

    3.3 IEEE 802.15.4 MAC Layer .......................................................................................473.3.1 Beacon-Enabled Operation and Superframe Structure .................................483.3.2 The Interframe Spacing ................................................................................513.3.3 CSMA-CA ....................................................................................................523.3.4 MAC Services ...............................................................................................563.3.5 The MAC Frame Format ...............................................................................683.3.6 The MAC Promiscuous Mode of Operation ................................................