没有合适的资源?快使用搜索试试~ 我知道了~
首页Practical Contiki-NG--2018
Practical Contiki-NG--2018
需积分: 9 13 下载量 68 浏览量
更新于2023-03-16
评论 1
收藏 11.33MB PDF 举报
What You’ll Learn Prepare and set up Contiki-NG development Review the basics of the Contiki-NG platform to build Wireless Sensor Networks (WSN) Develop your own Contiki-NG program Perform sensing and actuating on the Contiki-NG platform Implement a middleware for Contiki-NG motes Build a simple IoT program using the Contiki-NG environment
资源详情
资源评论
资源推荐
Practical Contiki-NG: Programming for Wireless Sensor Networks
ISBN-13 (pbk): 978-1-4842-3407-5 ISBN-13 (electronic): 978-1-4842-3408-2
https://doi.org/10.1007/978-1-4842-3408-2
Library of Congress Control Number: 2018947346
Copyright © 2018 by Agus Kurniawan
is work is subject to copyright. All rights are reserved by the Publisher, whether the whole or
part of the material is concerned, specically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microlms or in any other physical way,
and transmission or information storage and retrieval, electronic adaptation, computer software,
or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos,
and images only in an editorial fashion and to the benet of the trademark owner, with no
intention of infringement of the trademark.
e use in this publication of trade names, trademarks, service marks, and similar terms, even if
they are not identied as such, is not to be taken as an expression of opinion as to whether or not
they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal
responsibility for any errors or omissions that may be made. e publisher makes no warranty,
express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Natalie Pao
Development Editor: James Markham
Coordinating Editor: Jessica Vakili
Cover designed by eStudioCalamar
Cover image designed by Freepik (www.freepik.com)
Distributed to the book trade worldwide by Springer Science+Business Media NewYork,
233 Spring Street, 6th Floor, NewYork, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
email orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a
California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc
(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please email rights@apress.com, or visit http://www.apress.
com/rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our Print
and eBook Bulk Sales web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available
to readers on GitHub via the book’s product page, located at www.apress.com/978-1-4842-3407-5.
For more detailed information, please visit http://www.apress.com/source-code.
Printed on acid-free paper
AgusKurniawan
Depok, Jawa Barat, Indonesia
www.allitebooks.com
iii
About the Author ���������������������������������������������������������������������������������ix
About the Technical Reviewer �������������������������������������������������������������xi
Acknowledgments �����������������������������������������������������������������������������xiii
Introduction ����������������������������������������������������������������������������������������xv
Table of Contents
Chapter 1: Introduction to Wireless Sensor Networks ������������������������1
Introduction toWireless Sensor Networks ������������������������������������������������������������2
Introduction toContiki OS �������������������������������������������������������������������������������������4
Reviewing WSN Hardware forContiki �������������������������������������������������������������������6
MICAz ��������������������������������������������������������������������������������������������������������������7
Mica2 ���������������������������������������������������������������������������������������������������������������7
TelosB ��������������������������������������������������������������������������������������������������������������8
Iris��������������������������������������������������������������������������������������������������������������������9
Custom TinyOS Motes ������������������������������������������������������������������������������������10
Z1 Platform ���������������������������������������������������������������������������������������������������� 11
Contiki-NG ARM-based Boards ���������������������������������������������������������������������� 12
Introducing Contiki-NG ����������������������������������������������������������������������������������������13
Set UpDevelopment Environment forContiki ����������������������������������������������������� 13
Instant Contiki �����������������������������������������������������������������������������������������������13
Manual Installation ����������������������������������������������������������������������������������������18
Set UpContiki-NG Development Environment �����������������������������������������������19
Connect WSN Hardware toComputer �����������������������������������������������������������������22
Contiki andRaspberry Pi �������������������������������������������������������������������������������������25
www.allitebooks.com
iv
Hello World Application forContiki ����������������������������������������������������������������������26
Explanation ���������������������������������������������������������������������������������������������������� 28
Contiki Simulator ������������������������������������������������������������������������������������������������35
Setting Up ������������������������������������������������������������������������������������������������������ 36
Running Contiki Application ���������������������������������������������������������������������������37
Debugging Contiki Application ����������������������������������������������������������������������������44
Hardware Debugger ��������������������������������������������������������������������������������������44
LED Indicators �����������������������������������������������������������������������������������������������45
Debugging Using Contiki Simulator ��������������������������������������������������������������� 45
The Contiki printf( ) Function��������������������������������������������������������������������������45
Summary�������������������������������������������������������������������������������������������������������������46
Chapter 2: Basic Contiki-NG Programming ����������������������������������������47
Contiki-NG Programming Model �������������������������������������������������������������������������47
Contiki-NG Basic Syntax �������������������������������������������������������������������������������������49
Creating aProject ������������������������������������������������������������������������������������������ 49
Contiki-NG Basic Programming Language ����������������������������������������������������50
Review Protothreads ������������������������������������������������������������������������������������������� 52
Extending theContiki-NG Library ������������������������������������������������������������������������55
Contiki-NG Demo: Threading App ������������������������������������������������������������������������ 57
Contiki-NG Coding Conventions ��������������������������������������������������������������������������61
Demo: Build Contiki-NG Application �������������������������������������������������������������������� 61
Summary�������������������������������������������������������������������������������������������������������������66
Chapter 3: Concurrency ����������������������������������������������������������������������67
Introduction toConcurrency ��������������������������������������������������������������������������������67
Concurrency Approach inContiki-NG ������������������������������������������������������������������ 68
Introducing Contiki-NG Processes ����������������������������������������������������������������������69
Working withTimers ������������������������������������������������������������������������������������������� 72
Table of ConTenTsTable of ConTenTs
www.allitebooks.com
剩余303页未读,继续阅读
白鸽-小蛋
- 粉丝: 10
- 资源: 167
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 数据结构1800题含完整答案详解.doc
- 医疗企业薪酬系统设计与管理方案.pptx
- 界面与表面技术界面理论与表面技术要点PPT学习教案.pptx
- Java集合排序及java集合类详解(Collection、List、Map、Set)讲解.pdf
- 网页浏览器的开发 (2).pdf
- 路由器原理与设计讲稿6-交换网络.pptx
- 火电厂锅炉过热汽温控制系统设计.doc
- 企业识别CIS系统手册[收集].pdf
- 物业管理基础知识.pptx
- 第4章财务预测.pptx
- 《集成电路工艺设计及器件特性分析》——实验教学计算机仿真系.pptx
- 局域网内共享文件提示没有访问权限的问题借鉴.pdf
- 第5章网络营销策略.pptx
- 固井质量测井原理PPT教案.pptx
- 毕业实习总结6篇.doc
- UGNX建模基础篇草图模块PPT学习教案.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0