自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(37)
  • 资源 (3)
  • 收藏
  • 关注

原创 解决 Could not build wheels for pandas, which is required to install pyproject.toml-based projects

最近在学习李沐老师的深度学习的课程,在安装 d2l 时,遇到了问题:ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects由于我忘记截错误的图了,在论坛里找了别人的错误截图贴过来:网上找了好多办法,有说 3.10 降到 3.9,有说 conda 删掉 d2l 重装的,有说网上下载 pandas 编译好的 wheel 直接替换的。尝试了都无法解决。不过最后

2023-03-16 21:47:45 59899 33

原创 CSS背景颜色设置透明度的两种方法(8位hex和rgba)

目录一、 6位HEX转RGBA二、8位HEX在写微信小程序的时候,有个需求是按背景颜色background-color要设透明度0.85,让背景图片background-image透一点出来,而且background-color的值是后端传过来的动态数据,背景颜色动态改变,UI同学给的数据全是6位HEX,需要我自己设置透明度。设置透明度首先会想到用opacity,但 opacity 会把被设置的元素及其子元素同时设置为同一个透明度,我需要子元素不透明,opacity就不能用了。接下来讲两个实际可用性比

2020-06-05 15:37:31 26152

原创 uniapp实现带过渡动画的手风琴折叠样式

目录最终效果一、无过渡动画的手风琴二、有过渡动画的手风琴1. 不能再用v-if或v-show2. 用:class动态绑定样式3. 子元素也要设置transition最终效果UI同学让做一个带过渡动画的手风琴折叠效果,点击一个元素展开,其他已展开元素自动收缩,每次最多只有一个元素展开,这是最终效果:接下来讲我用css实现的思路一、无过渡动画的手风琴首先,uniapp做无过渡动画的最容易做了,因为Vue里只要用v-if或v-show来控制,判断index是否是当前的子组件就好了。因为我用了组件,我想

2020-05-14 02:16:00 12730 9

原创 小程序云函数更新数组的指定位置元素

云开发文档里写的方式是如果更新第1个就写字段名为’array.0’。如:但是我想更新一个数组的第i个元素(存的是对象)的key属性,i为参数,我目前使用了模版字符串`array.${i}.key`和字符串拼接‘array.’+i+’.key’,这两种方法都不行。在看到这篇教程的第一个解决办法之后,我找到了解决思路!用$位置占位符:exports.main = async(event, c...

2019-09-06 17:50:17 4739

原创 微信公众平台登陆小程序后,在 开发-开发者工具 下,找不到 腾讯云

新版的微信公众平台在 “开发”-“开发者工具”下面只有“腾讯位置服务”,并没有大家所说的腾讯云,没法开通腾讯云服务。根据官方所说是把入口隐藏起来了。我找了好久终于找到怎么开通了:先去腾讯云官网注册/登录,登录后左上角选择云产品>开发者工具>微信小程序:进入腾讯云的微信小程序控制平台,会显示你还未关联微信公众平台账号,点进去关联你要开发的小程序的账号就给你的小程序...

2019-03-27 07:17:37 3010 1

原创 学习微信小程序开发框架之脚本语言WXS

此贴为学习9 小时搞定微信小程序开发 的笔记。 文档:WXS · 小程序WXS(WeiXin Script)是小程序的一套脚本语言。结合 WXML,可以构建出页面视图的结构和内容。一般使用WXS做过滤处理,或者计算处理。WXS其实就是对JavaScript脚本语言的上层做了一些封装和限制。注意:WXS的运行环境和其他 javascript 代码是隔离的,WXS中不能调用其他 javasc...

2018-04-23 01:35:33 1609

原创 学习微信小程序开发框架之了解JavaScript

此贴为学习9 小时搞定微信小程序开发 的笔记 推荐书籍: 《JavaScript高级程序设计》 《JavaScript权威指南》 JavaScript是一种轻量的、解释型的、面向对象的头等函数语言,是一种动态的基于原型和多范式的脚本语言,支持面向对象、命令式和函数式的编程风格。轻量是在入门Javascript时觉得这门语言没有其他语言那么重;解释型是语言在运行时,机器...

2018-04-22 22:10:30 12418 1

原创 学习微信小程序WXSS与CSS的不同

此贴为学习9 小时搞定微信小程序开发 的笔记 文档:WXSS · 小程序WXSS和CSS类似,不过在CSS的基础上做了一些补充和修改。相同点width:设置元素宽度。 height:设置元素高度。 position:设置元素定位方式。 color:设置元素内文本的颜色。 border:设置元素的边框样式。 …WXSS的补充和修改1. 尺寸单位rpxrpx是...

2018-04-19 01:01:45 12724

原创 学习微信小程序WXML之模板、引用

此贴为学习9 小时搞定微信小程序开发 的笔记 文档:模板 · 小程序、引用 · 小程序1.模板:使用template标签可以模板中定义自己的代码片段<!-- index.wxml --><template name="tempItem"> <view> <view>收件人:{{name}}</view>...

2018-04-18 01:21:59 4347

原创 学习微信小程序WXML之条件渲染

此贴为学习9 小时搞定微信小程序开发 的笔记 文档:条件渲染 · 小程序这是一个解决今天吃什么这一大难题的一小段代码。<!--index.wxml --><view>今天吃什么?</view><view wx:if="{{condition === 1}}"> 饺子</view><view wx:el..

2018-04-16 21:18:42 4544

原创 学习微信小程序WXML之列表渲染

此贴为学习9 小时搞定微信小程序开发 的笔记 文档列表渲染 · 小程序<!-- index.wxml--><view> <block wx:for="{{items}}" wx:for-item="item" wx:key="index"> <view>{{index}}:{{item.name}}&a

2018-04-16 20:45:51 14698 1

原创 学习微信小程序WXML之数据绑定

文档:数据绑定 · 小程序 此贴为学习9 小时搞定微信小程序开发 的笔记数据绑定使用两个花括号。绑定文本内容<!--index.wxml--><view> <text>{{message}}</text></view>//index.jsPage({ data:{ m...

2018-04-16 15:11:16 2528

原创 node.js学习笔记--API之buffer

注:此博客是在学习进击Node.js基础(二)这门课程时的学习笔记,感谢Scott老师的课程。buffer在nodejs里处理二进制数据,因为js字符串是以UTF-8存储的,处理二进制的能力很弱。而网络层对请求和响应的处理都是二进制的,所以nodejs就有buffer这个接口作为专门存放二进制数据的缓存区,并提供了一些方法可对缓存区的数据进行处理。buffer在nodejs里是可以全局访问的,...

2018-03-20 21:55:43 376

原创 node.js学习笔记--HTTP之request请求

注:此博客是在学习进击Node.js基础(一)这门课程时的学习笔记,感谢Scott老师的课程。var http = require('http')var querystring = require('querystring') //这个库可以把对象序列化var postData = querystring.stringify({ 'content':'来测试一下评论的代码~',...

2018-03-20 21:44:52 2184

原创 node.js学习笔记--HTTP之request请求

注:此博客是在学习进击Node.js基础(一)这门课程时的学习笔记,感谢Scott老师的课程。var http = require('http')var querystring = require('querystring') //这个库可以把对象序列化var postData = querystring.stringify({ 'content':'来测试一下评论的代码~',...

2018-03-20 21:44:43 2820

原创 node.js学习笔记--HTTP之Promise重写小爬虫

注:此博客是在学习进击Node.js基础(一)这门课程时的学习笔记,感谢Scott老师的课程。一、使用Promise处理异步、嵌套1. 用传统的回调来按顺序执行小球动画<!doctype><html><head> <title>Promise animation</title> <style&...

2018-03-20 20:55:12 471

原创 node.js学习笔记--HTTP之小爬虫

注:此博客是在学习进击Node.js基础(一)这门课程时的学习笔记,感谢Scott老师的课程。一、开启HTTP请求var http = require('http') //调用http模块http .createServer(function(req, res){ //res是response响应,req是request请求 res.writ...

2018-03-20 20:32:49 313

原创 node.js学习笔记--HTTP之事件监听

注:此博客是在学习进击Node.js基础(一)这门课程时的学习笔记,感谢Scott老师的课程。node.js不像html有什么冒泡之类的事件标签,node里只有event一大类事件模块event事件模块var EventEmitter = require('events').EventEmittervar life = new EventEmitter() //创建一个Ev...

2018-03-20 20:15:20 1508

原创 node.js学习笔记--HTTP之了解上下文

注:此博客是在学习进击Node.js基础(一)这门课程时的学习笔记,感谢Scott老师的课程。一、this上下文的理解this通常指向了当前函数的拥有者。以下是三种用法1. 在对象里的函数的thisvar pet = { words: 'lalala', speak: function() { console.log(this.words) console.log(this === p...

2018-03-20 19:38:51 738

转载 MATLAB神经网络训练结果各参数解释

最上面的图形显示的是神经网络的结构图,可知有2个隐层第二部分显示的是训练算法,这里为学习率自适应的梯度下降BP算法;误差指标为MSE第三部分显示训练进度:Epoch:训练次数;在其右边显示的是最大的训练次数,可以设定,上面例子中设为300;而进度条中显示的是实际训练的次数,上面例子中实际训练次数为146次。Time:训练时间,也就是本次训练中,使用的时间Pe

2017-12-12 20:27:13 18951

原创 数据挖掘-公开数据集的合集

AWS (Amazon Web Server) Public datasets 亚马逊公用数据集 :过去,查找、下载、自定义和分析卫星图像或基因组数据等大型数据集需要几个小时或几天的时间。当数据在 AWS 上公开提供后,任何人都可以分析任意数量的数据,而无需自行下载或存储这些数据。包括:地理空间和环境数据集、基因组和生命科学数据集、机器学习数据集、监管和统计数据。BigML : BigML提供一个

2017-07-29 02:37:38 8503

原创 word批量删除中英文间的多个空格

我在网上查到的windows快捷键大全,但是分行做的不好,如下图,看着很不舒服,想重新排版一下,但是其中有单个空格、多个空格、字母、汉字、数字,所以需要批量替换。1. 先打开word的替换功能框,点击“更多”,在“特殊格式”下可以选择想要替换的通配符。(参考word替换妙用:批量去除多余空格、空行、换行 )2. 首先,因为整个文本有几十页,单空格和多空格交替间隔,用

2017-05-17 16:23:08 6347

原创 实现归并排序MergeSort的非递归动画演示

用java实现了动画演示归并排序MergeSort的非递归算法归并排序的非递归算法实现的算法部分学习了 归并排序三种实现方法(递归、非递归和自然合并排序) 摘片段如下: 1) 基本思想: 将数组中的相邻元素两两配对。用Merge()函数将他们排序,构成n/2组长度为2的排序好的子数组段,然后再将他们合并成长度为4的子数组段,如此继续下去,直至整个数组排好序

2017-04-29 19:19:10 2438

原创 阿里云ECS云服务器 ASP建站 遇到的问题汇总

1. 主要步骤在:阿里云ECS建站(1.1)2. 云服务器上的各种配置看: ASP网站及数据库如何在win10本地测试3. 把本地写好的代码传上云服务器:怎样往阿里云服务器传文件4. 安装Dreamweaver,因为DW的安装包安装时要登录验证,绕不过去,所以把本地C:\Program Files (x86)\Adobe下装的Adobe Dreamweaver CS6整个文件压

2017-03-05 02:38:23 1782

原创 对动态网站收集的注册信息进行处理

这篇blog是接着上篇 第一个动态网站的心得–细数建站跳过的坑! 写的,主要是对网站的云服务器上的access数据库导出来的数据进行处理加工。数据类型和内容access数据库userinfo的info表格下,一共有以下六个字段:number : 序列号; 自动编号;主键id: 学号;短文本;不为空name: 姓名;短文本;不为空mail: 电子邮箱;短文本;不为空cluster: 专业大类

2016-09-06 00:57:17 642

原创 第一个动态网站的心得--细数建站跳过的坑!

第一个动态网站的心得–细数建站跳过的坑!这是我第一次接到外快任务,也是第一次做动态网站!是为我的熟人–我们学校的数学社做一个新社员线上报名系统,由于需要在开学的百团大战前交付使用,从找到我给需求,到完成、测试可使用,一共不到10天时间,所以时间紧,过程也是异常波折,不过还好最后完成了。还是数学社的大家信任我,给我这次机会去各种试错,各种跳坑再爬起来!不过这次做了以后,发现自己远没有原来自认为的那么厉

2016-09-04 21:02:26 2427

转载 用ASP连接读写ACCESS数据库实例(转)

(一)   数据库的选择:有许多的数据库你可以选择,SQL SERVER、ACCESS(*.mdb)、EXCEL(*.xls)、FOXPRO(*.dbf)甚至普通的文本文件(*.txt)都可以达到存储数据的功能。那么到底选择什么数据库最合适呢?其中SQLSERVER是服务器级的,足以应付每天上万次的访问量。对于非服务器级的数据库建议使用ACCESS97。因为:(

2016-08-28 23:44:23 19361

原创 ASP网站及数据库如何在win10本地测试

改自原文(原文使用的是老版windows,很多操作都改变了)1.配置IIS   在“控制面板”中“启动“程序”项,随后切换到“启用或关闭Windows功能”界面并勾选“Internet Information Services(IIS)”,打开缩略框,在此勾选“FTP服务器”、“Web管理工具”、“万维网服务”三项,勾选这三项下的所有选项(如果不懂选的话)。确定后单击“确定”按钮,随后IIS就会

2016-08-28 14:45:41 11139 2

原创 python scapy2.3 在windows上的安装

1. 下载scapy 2以上的版本:下载地址: http://secdev.org/projects/scapy/2. Scapy v2的说明:Scapy发展自类Unix系统,并且在类Unix平台上运行的更好。但是上一个版本创造性的可以支持windows了。所以你可以使用几乎所有Scapy的功能在你的windows机器上。 注意:如果你从Scapy-win v1.2.0.2 升级至Scapy v

2016-07-15 21:10:45 10978

原创 SyntaxError: Non-ASCII character '\xef' in file 错误解决

在测试SDIoT的python代码时,老是出现一个问题:命令行里出现这个错误:SyntaxError: Non-ASCII character '\xef' in file 原因:Python的默认编码文件是用的ASCII码,你将文件存成了UTF-8也没用解决办法:在文件开头加入 # -*- coding: UTF-8 -*-    或者 #coding=utf-8 就

2016-07-15 18:03:25 27023

原创 安全协议SDIoT的日常测试工作(1)

配置python因为SDIoT协议的原代码使用的是python2.6,而我本机用的是python3,所以打算2和3共存使用:下载python2.6改环境变量: 属性 高级系统设置 环境变量 更改“系统变量”的“Path” Path里加上python2.6的路径,加完之后关于python的一共就有四个系统变量:C:\Users\Administrator\AppData\Local\Pr

2016-07-10 23:14:58 698

原创 PRISM概率模型检测器初使用--骰子模型(改进版)

PRISM-probabilistic model checker概率模型检测器骰子模型 The dieexample 与马尔科夫链有关 -目录PRISM-probabilistic model checker概率模型检测器PRISM code代码解释操作解释- Exploring the model in PRISM 用PRISM探索模型- Model checking with

2016-06-23 14:27:07 2037 1

转载 什么是P问题、NP问题和NPC问题

   这或许是众多OIer最大的误区之一。    你会经常看到网上出现“这怎么做,这不是NP问题吗”、“这个只有搜了,这已经被证明是NP问题了”之类的话。你要知道,大多数人此时所说的NP问题其实都是指的NPC问题。他们没有搞清楚NP问题和NPC问题的概念。NP问题并不是那种“只有搜才行”的问题,NPC问题才是。好,行了,基本上这个误解已经被澄清了。下面的内容都是在讲什么是P问题,什么是

2016-05-06 18:23:04 341

原创 kali linux进行arp欺骗和dos攻击

Wireshark的arp欺骗: (1)Wireshark arp数据包分析:http://www.icharm.me/【wireshark】arp数据包分析.html (2)Wireshark arp数据包分层结构:http://www.icharm.me/【wireshark】数据包分层结构.html (3)arp协议介绍:http://www.icharm.me/【wireshar

2016-04-28 02:27:09 5298

原创 prism model check 的环境安装设置

prism model check 目前只支持32位的windows,当然linux和OS是32和64位都可以。下载地址:http://www.prismmodelchecker.org/download.php 所以想要在64位的系统下运行prism就必须设置32位的java环境。1. 我先把prism下载下来,在装之前左键点击安装图标-->属性-->兼容性-->勾选“以兼容模式运行

2016-03-25 23:32:59 2286

原创 PRISM概率模型检测器初使用(2)--嵌入式控制系统模型

PRISM—probabilistic model checker概率模型检测器嵌入式控制系统模型 Theembedded control system http://www.prismmodelchecker.org/casestudies/embedded.php  与连续时间马尔科夫链有关 模型说明系统说明:

2016-03-13 22:34:49 4239 2

原创 PRISM概率模型检测器初使用--骰子模型

PRISM—probabilistic model checker概率模型检测器骰子模型 The dieexamplehttp://www.prismmodelchecker.org/tutorial/die.php  与马尔科夫链有关PRISM code:dtmc moduledie

2016-03-12 21:43:46 4777

The Internet of Things

The Internet of Things 英文原版书,适合入门物联网。目录: 1 Demystifying the IoT Paradigm....................................................................................1 Why the IoT Is Strategically Sound.................................................................................... 2 IoT Leads to Smarter Computing.................................................................................. 2 IoT Delivers Smarter Environments .............................................................................. 3 IoT Prescribes the Shift toward People IT...................................................................... 4 Te Brewing and Blossoming Trends in IT Space ............................................................... 4 Te Key Drivers for the IoT Discipline.......................................................................... 4 Everything Gets Service-Enabled ................................................................................... 5 Big Data Becomes Big Insights ...................................................................................... 5 Envisioning Software-Defned Clouds ........................................................................... 6 Te Diversity of IoT Data Sources................................................................................. 6 Te Technology Space.................................................................................................... 7 Te Process Space .......................................................................................................... 7 Infrastructure Space....................................................................................................... 7 Architecture Space ......................................................................................................... 7 Envisioning the Internet of Tings Era............................................................................... 8 Deeper Digitization toward Smart Objects or Sentient Materials................................... 8 Te Connected Devices ................................................................................................. 9 Adaptive Applications.................................................................................................. 10 Illustrating the Device-to-Device/Machine-to-Machine Integration Concept................... 10 Te Popular M2M Applications .................................................................................. 11 Smart Energy............................................................................................................... 11 Smart Health Care....................................................................................................... 11 Smart Home Security .................................................................................................. 11 Smart Cargo Handling ................................................................................................ 12 Smart Trafc Management........................................................................................... 12 Smart Inventory and Replenishment Management ...................................................... 12 Smart Cash Payment ................................................................................................... 12 Smart Tracking ............................................................................................................ 12 Smart Displays............................................................................................................. 12 www.allitebooks.comvi ◾ Contents Smarter Manufacturing ............................................................................................... 13 Smart Asset Management ............................................................................................ 13 Smarter Retailing......................................................................................................... 14 Explaining the Aspect of Device-to-Cloud (D2C) Integration.......................................... 14 Clouds Infrastructures for Next-Generation Device Applications................................. 15 Cloud Infrastructures for IoT Data Analytics............................................................... 15 Cloud Infrastructures for Smartphone Services ............................................................ 16 Te Emergence of the IoT Platform as a Service (PaaS).................................................... 16 Device Management.................................................................................................... 16 Te Real-Time Analytics of IoT Big Data.................................................................... 16 Integration with Enterprise Systems............................................................................. 17 Digging into the Cloud-to-Cloud (C2C) Integration Paradigm ....................................... 17 An IoT Application Scenario ....................................................................................... 18 Describing the Sensor-to-Cloud Integration Concept ...................................................... 19 Storage ........................................................................................................................ 20 Azure IoT Hub Device Management ............................................................................... 20 Homeland Security and the Sensor Cloud ................................................................... 22 Te Prominent IoT Realization Technologies ................................................................... 23 Te IoT: Te Key Application Domains........................................................................... 24 Te IoT Challenges and the Research Domains........................................................... 26 Te Research Domains ................................................................................................ 27 Te Emerging IoT Flavors................................................................................................ 27 Te Industrial Internet of Tings (IIoT) ...................................................................... 28 Consumer Internet of Tings (CIoT) .......................................................................... 31 Social Internet of Tings (SIoT) .................................................................................. 32 Semantic Internet of Tings (SIoT) ............................................................................. 33 Why Semantics for the Interoperable IoT.................................................................... 35 Cognitive Internet of Tings (CIoT) ........................................................................... 36 Envisioning Cognitive IoT .......................................................................................... 36 Conclusion....................................................................................................................... 37 Bibliography .................................................................................................................... 38 2 Realization of IoT Ecosystem Using Wireless Technologies.........................................39 Introduction..................................................................................................................... 40 Architecture for IoT Using Mobile Devices...................................................................... 41 Mobile Technologies for Supporting IoT Ecosystem......................................................... 43 5G Technology ............................................................................................................ 43 Software-Defned Networking ..................................................................................... 43 Network Functions Virtualization ............................................................................... 44 5G Architecture........................................................................................................... 46 Ultra Wide Band Technology ...................................................................................... 46 How UWB Works .................................................................................................. 47 ISO 18000 7 DASH7.................................................................................................. 47 Near Field Communication Technology ...................................................................... 48 Energy Harvesting for Power Conservation in the IoT System ......................................... 49 Architecture of an Energy Harvesting Terminal for a Wireless Sensor Network ......... 50 Mobile Application Development Platforms .................................................................... 51 www.allitebooks.comContents ◾ vii Mobile Use Cases for IoT................................................................................................. 53 Low Power Wide Area Networking Technologies .............................................................53 LPWAN Network Topologies ...................................................................................... 55 Direct Device Connectivity Topology of LPWAN................................................... 55 Indirect Device Connectivity through a LPWAN Gateway ..................................... 56 Sigfox .......................................................................................................................... 56 Binary Phase Shift Keying....................................................................................... 57 Weightless ................................................................................................................... 57 Weightless-P ........................................................................................................... 57 Weightless-N .......................................................................................................... 57 Weightless-W .......................................................................................................... 58 NWave ........................................................................................................................ 58 Ingenu......................................................................................................................... 58 Random Phase Multiple Access............................................................................... 58 LoRa ........................................................................................................................... 59 Conclusion....................................................................................................................... 59 Bibliography .................................................................................................................... 60 3 Infrastructure and Service Discovery Protocols for the IoT Ecosystem .......................61 Introduction..................................................................................................................... 62 Layered Architecture for IoT............................................................................................ 62 Objects Layer .............................................................................................................. 63 Object Abstraction Layer............................................................................................. 63 Service Management Layer .......................................................................................... 63 Application Layer ........................................................................................................ 63 Business Layer ............................................................................................................. 64 Protocol Architecture of IoT ............................................................................................ 64 Infrastructure Protocols.................................................................................................... 64 Routing Protocol ......................................................................................................... 64 IEEE 802.15.4 ............................................................................................................ 66 IPv6 over Low-Power Wireless Personal Area Networks ............................................... 68 Network Architecture of 6LoWPAN....................................................................... 68 Protocol Stack of 6LoWPAN .................................................................................. 70 Bluetooth Low Energy................................................................................................. 71 Generic Attribute Profle......................................................................................... 72 Attribute Protocol ................................................................................................... 72 Security Manager Protocol ...................................................................................... 72 EPCglobal ................................................................................................................... 73 Long Term Evolution-Advanced .................................................................................. 73 Z-Wave........................................................................................................................ 75 Components of Z-Wave Network ........................................................................... 75 ZigBee......................................................................................................................... 76 Device or Service Discovery for IoT ................................................................................. 77 Bluetooth Beacons....................................................................................................... 77 Wi-Fi Aware ................................................................................................................ 77 Physical Web ............................................................................................................... 78 Open Hybrid............................................................................................................... 78 www.allitebooks.comviii ◾ Contents Shazam........................................................................................................................ 78 Chirp........................................................................................................................... 78 How Chirp Works .................................................................................................. 79 Protocols for IoT Service Discovery.................................................................................. 79 multicast Domain Name System (mDNS)................................................................... 79 DNS Service Discovery ............................................................................................... 80 Universal Plug and Play ............................................................................................... 81 Prominent IoT Service Discovery Products Available in the Market ................................. 82 Bonjour....................................................................................................................... 82 Consul......................................................................................................................... 83 Basic Architecture of Consul ................................................................................... 83 AllJoyn ........................................................................................................................ 83 Conclusion....................................................................................................................... 84 References ........................................................................................................................ 84 4 Te Integration Technologies and Tools for IoT Environments ................................85 Introduction..................................................................................................................... 86 IoT Communication Protocol Requirements............................................................... 87 Te IoT Portion for Smarter Enterprises and Environments............................................. 88 Te Growing Importance of the IoT Paradigm............................................................ 88 Te Meteoric Rise of Device Ecosystem....................................................................... 88 Te Dazzling Growth of Operational and Transactional Systems ................................. 89 Deeper and Decisive Data Analytics ............................................................................ 89 Te Emergence of Pioneering Analytics (Generic as well as Specifc) ........................... 90 State-of-the-Art Data Science Tools ............................................................................. 90 Sensor and Actuator Networks ......................................................................................... 91 Sensor-to-Cloud Integration........................................................................................ 93 Te IoT Device Integration Concepts, Standards, and Implementations .......................... 95 Machine-to-Machine Communication ........................................................................ 95 Service Oriented Device Architecture for Device Integration....................................... 96 An Illuminating Use Case............................................................................................ 97 Device Profle for Web Services.................................................................................... 97 About the DPWSim Development Toolkit ............................................................. 99 Te Reference Architecture for Smarter Hospitals ................................................. 100 Messaging Methods: Pub or Sub and Point-to-Point ............................................. 100 Node.DPWS: Efcient Web Services for the IoT .................................................. 101 Te Open Service Gateway Initiative Standard .......................................................... 102 Scalability ............................................................................................................. 103 Robustness............................................................................................................ 103 Remote OSGi ....................................................................................................... 104 Eclipse Kura.......................................................................................................... 104 openHAB ............................................................................................................. 105 Te REST Paradigm.................................................................................................. 106 Te Device Connectivity via the OPC Standard ........................................................ 106 Te Device Integration Protocols and Middleware ......................................................... 107 Message Queue Telemetry Transport.......................................................................... 108 Extensible Messaging and Presence Protocol .............................................................. 110 www.allitebooks.comContents ◾ ix ejabberd..................................................................................................................... 110 Data Distribution Bus ............................................................................................... 111 Advanced Message Queuing Protocol ........................................................................ 112 Constrained Application Protocol.............................................................................. 114 Te Protocol Landscape for IoT ..................................................................................... 116 Conclusion..................................................................................................................... 117 Bibliography .................................................................................................................. 117 5 Te Enablement Platforms for IoT Applications and Analytics.................................119 Describing the IoT Journey............................................................................................ 120 Te IoT Building Blocks ................................................................................................ 121 Digitized Entities and Connected Devices ................................................................. 121 IoT or Sensor Data Gateway...................................................................................... 121 Application Enablement Platforms ............................................................................ 122 Data Analytics Platforms ........................................................................................... 122 Knowledge Discovery and Dissemination.................................................................. 122 Storage, Backup, and Archival ................................................................................... 122 Cognitive Clouds....................................................................................................... 123 Te Major Players in the IoT Space ........................................................................... 123 A Few Enthralling IoT Use Cases................................................................................... 124 IoT Application Enablement Platforms.......................................................................... 125 Characterizing IoT or Machine-to-Machine Application Platforms................................ 125 IoT AEPs—Te Architectural Building-Blocks............................................................... 128 IoT and M2M Sensor Data Platform by AerCloud.................................................... 129 TingWorx IoT AEP ................................................................................................. 130 ORBCOMM IoT Platform....................................................................................... 131 Azure IoT Hub .............................................................................................................. 132 Amazon Web Service IoT Platform ................................................................................ 132 Te Axeda IoT Platform................................................................................................. 133 Te IoT Data Analytics Platforms .................................................................................. 134 IBM Watson IoT Platform ........................................................................................ 135 ParStream IoT Analytics Platform.............................................................................. 136 Vitria IoT Analytics Platform .................................................................................... 137 Pentaho IoT Analytics Platform................................................................................. 137 Splunk Software for IoT Data.................................................................................... 138 Guavus IoT Analytics Platform ...................................................................................... 139 Virdata IoT Analytics Platform.................................................................................. 140 Te IoT Data Virtualization Platforms........................................................................... 141 Te Key Capabilities Data Virtualization Delivers.......................................................... 142 IoT Data Visualization Platform .................................................................................... 142 Car Counter .............................................................................................................. 144 Te IoT Edge Data Analytics ......................................................................................... 144 Key Features and Highlights for Developers .............................................................. 145 Conclusion..................................................................................................................... 146 Te IoT Analytics Platforms—Te Links ....................................................................... 146 www.allitebooks.comx ◾ Contents 6 Te Next-Generation Clouds for IoT Applications and Analytics .............................149 Introduction................................................................................................................... 150 Reflecting the Cloud Journey ......................................................................................... 151 About Technology Choice ......................................................................................... 151 Software-Defned Clouds for IoT .............................................................................. 151 Te Enigma of Commoditization .............................................................................. 152 About the Cloud Technology ......................................................................................... 153 Te Cloud Service Ecosystem......................................................................................... 154 Te Key Motivations for Cloud-Enabled Environments................................................. 155 A Look at Cloud-Inspired Enterprise Transformations ................................................... 156 Te Emergence of Cloud Environments .................................................................... 156 Energy Optimization................................................................................................. 157 IoT and Cloud-Inspired Smarter Environments ............................................................. 158 Smarter Environments............................................................................................... 158 Smarter Homes.......................................................................................................... 159 Smarter Grids ............................................................................................................ 161 IoT and Cloud for Smarter Cities.............................................................................. 161 Sensor-Cloud Integration for Smarter Cities.............................................................. 162 Social and Sensor Data Fusion in Cloud.................................................................... 162 Smarter Health Care.................................................................................................. 163 Cloud-Inspired Smarter Health Care Services............................................................ 164 Te Era of Hybrid Clouds.............................................................................................. 165 Envisioning Federated Clouds........................................................................................ 165 Cloud Federation Approaches.................................................................................... 166 Special-Purpose Clouds.................................................................................................. 167 Device Clouds ........................................................................................................... 168 Te Emergence of Edge/Fog Clouds............................................................................... 170 Te Compelling Use Cases for Next-Gen Edge Clouds.............................................. 171 Use Cases—Te Computation and Actionable Insights ............................................. 171 Te Storage Use Cases ............................................................................................... 172 Data Dissemination................................................................................................... 173 Mobile-Edge Computing (MEC) .............................................................................. 173 Edge Analytics-Enabled Smarter Trafc Systems ........................................................ 174 Te Architectural Components of the Smarter Trafc System......................................... 174 Tending toward Software-Defned Clouds...................................................................... 175 Te Building Blocks of Software-Defned Clouds........................................................... 177 Software-Defned Networking (SDN) ....................................................................... 177 Te Key Motivations for SDN................................................................................... 178 Te Need of SDN for the Cloud ............................................................................... 179 Software-Defned Storage (SDS) .................................................................................... 180 Cloud-Based Big Data Storage................................................................................... 181 Te Key Characteristics of Software-Defned Storage................................................. 182 Te Onset of Cognitive Clouds...................................................................................... 182 Conclusion..................................................................................................................... 183 References ...................................................................................................................... 183Contents ◾ xi 7 Describing the Emerging Field of IoT Data Analytics...............................................185 Introduction................................................................................................................... 186 Te Principal Steps toward Knowledge Discovery and Dissemination ............................ 187 Te Rewarding Repercussions of the Data Explosion ..................................................... 188 Describing Big Data Analytics........................................................................................ 188 Te Strategic Importance of Big Data Analytics ............................................................. 189 Big Data Analytics: Te Prominent Use Cases................................................................ 191 Customer Satisfaction Analysis .................................................................................. 191 Market Sentiment Analysis ........................................................................................ 191 Epidemic Analysis...................................................................................................... 192 Using Big Data Analytics in Health Care................................................................... 192 Machine Data Analytics by Splunk............................................................................ 193 Real-Time and Streaming Analytics................................................................................ 196 Expounding the IoT Data Analytics Domain................................................................. 199 Te Key Drivers for IoT Data Analytics ......................................................................... 199 Te Key Movements and Motivations of IoT Data......................................................... 200 Te Emergence of Edge Clouds for Real-Time Insights.................................................. 201 Deep Diving and Digging into Edge Analytics............................................................... 202 Te Renowned Edge Analytics Use Cases....................................................................... 203 Smart Water System................................................................................................... 203 Smarter Grid ............................................................................................................. 203 Smarter Homes and Buildings ................................................................................... 203 Smarter Retailing....................................................................................................... 204 Self-Maintaining Trains ............................................................................................. 204 Smarter Mines ........................................................................................................... 204 Device Integration..................................................................................................... 204 Smarter Trafc Systems.............................................................................................. 204 Te Architectural Components of the Smarter Trafc System......................................... 205 Te Key Capabilities of Next-Generation IoT Data Analytics Platforms......................... 207 Te Key Capabilities.................................................................................................. 208 Te Prime Modules of IoT Data Analytics Platforms ..................................................... 209 Te Reference Architecture for IoT Data Analytics Platform.......................................... 209 Te Renowned Use Cases for IoT Data Analytics........................................................... 211 Connected Cars......................................................................................................... 211 Te Data Analytics Locations .................................................................................... 212 Why Have Cloud-Based IoT Data Analytics?................................................................. 213 Te Distinct Capabilities of IoT Data Analytics Platforms ............................................. 214 Conclusion..................................................................................................................... 216 Bibliography .................................................................................................................. 216 8 Expounding the Edge/Fog Computing Paradigm......................................................217 Introduction................................................................................................................... 218 Te Introduction of Fog/Edge Computing..................................................................... 219 Fog versus Edge Computing...................................................................................... 220 Illustrating the Game-Changing IoT Journey................................................................. 221 It Is All About the Extreme and Deeper Connectivity................................................ 221xii ◾ Contents Te Humongous Volumes of IoT Data...................................................................... 223 Major IoT Data Types ............................................................................................... 224 Measurement Data .................................................................................................... 224 Event Data ................................................................................................................ 224 Interaction and Transaction Data............................................................................... 224 Diagnostics Data ....................................................................................................... 224 Describing the Fog Computing-Like Concepts .............................................................. 225 Local/Proximate Clouds ............................................................................................ 225 Cloudlet Facilities...................................................................................................... 225 Why Cloudlet-Like Arrangement Is Mandated?......................................................... 226 Mobile Edge Computing (MEC)............................................................................... 226 Mobile Cloud Computing (MCC) ............................................................................ 227 Te Use Cases of Fog/Edge Computing ......................................................................... 227 Smart Homes ............................................................................................................ 228 Smart Grids............................................................................................................... 228 Wireless Sensor and Actuator Networks..................................................................... 228 Smart Vehicles ........................................................................................................... 229 Smarter Security ........................................................................................................ 229 Smart Buildings......................................................................................................... 229 IoT and Cyber-Physical Systems................................................................................ 230 Software-Defned Networking ................................................................................... 230 Why Is Fog Computing Crucial for the Envisaged IoT Success?..................................... 230 Weeding Out Irrelevant Data at the Source ............................................................... 231 Real-Time IoT Data Analytics ................................................................................... 231 Instantaneous Response............................................................................................. 231 Resource-Constrained Sensors Behind Fog Devices ................................................... 231 IoT Data Security...................................................................................................... 231 Te Formation of Edge Clouds.................................................................................. 232 Building Composite Applications .............................................................................. 232 Policy-Based Fog Devices........................................................................................... 232 Delving into Fog/Edge Analytics.................................................................................... 233 Te Greatness of Edge Data....................................................................................... 233 Edge Analytics: Te Prominent Use Cases...................................................................... 234 IoT Sensor Data Monitoring and Analysis................................................................. 234 Remote Monitoring and Analysis of Oil and Gas Operations .................................... 234 Smarter Cities............................................................................................................ 235 Smart Retailers .......................................................................................................... 235 Smart Automobiles.................................................................................................... 235 Smart Manufacturing ................................................................................................ 236 Facilities and Asset Management ............................................................................... 237 Carving Out Edge Clouds for Edge Analytics ................................................................ 237 Deep Diving and Digging into the Aspect of Edge Analytics.......................................... 238 Introducing Integrated Fog Computing Platforms ......................................................... 239 Te OSGi Standard for Building Device Management Frameworks........................... 240 Te Eclipse Kura—An IoT Device Management and Analytics Platform ....................... 241 Everyware Software Framework...................................................................................... 242 Apache Quarks .......................................................................................................... 243Contents ◾ xiii Predixion Software..................................................................................................... 243 Te Solair Smart Gateway.......................................................................................... 244 Te Solair Platform—IoT Devices: Te Integration Options.......................................... 245 Direct Collection....................................................................................................... 245 Mobile Bridge............................................................................................................ 245 Smart Gateway .......................................................................................................... 245 Altiux Innovations.......................................................................................................... 246 ParStream Edge Analytics Appliance .............................................................................. 246 Dell Edge Gateway 5000 Series...................................................................................... 246 Conclusion..................................................................................................................... 247 Bibliography .................................................................................................................. 247 9 Envisioning Futuristic Smart Airports Using IoT Integration...................................249 Introduction................................................................................................................... 250 Airport Infrastructure..................................................................................................... 251 Airport 1.0 ................................................................................................................ 252 Airport 2.0 ................................................................................................................ 253 Personal Technology/Processes for Passengers ................................................................. 253 Mobile Applications for Air Travel Passengers ............................................................ 253 Technology/Processes to Streamline Passenger Journey................................................... 254 Interactive Displays and Bill Boards in Airports......................................................... 254 Technology/Processes to Enhance Passenger Experience ................................................. 254 Interactive Surfaces.................................................................................................... 254 Processes for Increased Leisure Experience...................................................................... 255 Finnish Sauna at Helsinki Airport ............................................................................. 255 Free Sightseeing Tour at Changi Airport, Singapore................................................... 255 Free Cooking Classes at Paris Orly Airport ................................................................ 256 Traditional Culture Workshops at Incheon International Airport, South Korea ......... 256 Airport 3.0............................................................................................................ 256 Mobile Devices in Airports............................................................................................. 257 Social Media Applications in Airports ............................................................................ 259 Source: Amadeus Survey ................................................................................................ 260 Mobile Applications for Airports.................................................................................... 261 Mobile Technologies ...................................................................................................... 262 Quick Response Codes in Airports for Mobile Check-In ........................................... 262 Near Field Communication ........................................................................................... 263 Telepresence................................................................................................................... 264 Wireless Broadband........................................................................................................ 264 RFID/Sensors ................................................................................................................ 264 Biometric Passports ................................................................................................... 264 Other Biometric Applications in Airports....................................................................... 265 RFID-Based Tracking of Baggage in Airports ................................................................. 265 Beacons for Airports....................................................................................................... 266 Applications of Beacons for Airports .............................................................................. 267 Tracking Passenger Location ...................................................................................... 267 Triggering Mobile Boarding Passes............................................................................. 267 Navigating the Airport............................................................................................... 267xiv ◾ Contents Promotions at Retail Outlets in Airports.................................................................... 267 Baggage Reclaim........................................................................................................ 267 Wearable Technology ..................................................................................................... 268 Benefts of Wearable Devices ..................................................................................... 269 Use Cases of Wearables for Airports........................................................................... 269 Passenger Baggage Tracking ....................................................................................... 270 Operational Efciencies of Airports .......................................................................... 270 Other Supporting Technologies for Smart Airports ........................................................ 270 Cloud Computing.......................................................................................................... 270 Big Data and Predictive Analytics................................................................................... 271 Conclusion..................................................................................................................... 271 References ...................................................................................................................... 272 10 Envisioning Smart Health Care Systems in a Connected World ................................273 Introduction................................................................................................................... 274 Clinical Care.................................................................................................................. 275 Remote Monitoring ....................................................................................................... 275 Other Interesting Use Cases of IoT ................................................................................ 276 Enabling Technologies which Make IoT in Health Care Possible ................................... 279 Challenges in the IoT Health Care Sector ...................................................................... 279 Future Trends for IoT in Health Care............................................................................. 280 Ingestible Sensor........................................................................................................ 280 Digital Medicine........................................................................................................ 281 Mobile Apps in Health Care Sector................................................................................ 282 Cloud and Big Data Analytics in the Health Care Sector................................................ 282 Cloud Services in Health Care Sector............................................................................. 283 Electronic Storage of Medical Records ....................................................................... 283 Ofce Productivity Solutions..................................................................................... 284 Health Information Exchange.................................................................................... 284 Collaboration Solution for Physicians........................................................................ 285 Clinical Information System...................................................................................... 285 Big Data Analytics in the Health Care Sector ............................................................ 285 Support Research in Genomics and Other Health Care Projects................................ 286 Transform Data from Information............................................................................. 288 Use of Explanatory Analytics by Predixion Software .................................................. 288 Use of Big Data by Health Fidelity ............................................................................ 288 Supporting Self Care.................................................................................................. 289 Supporting Self Care with Ginger.io .......................................................................... 289 Support for Providers................................................................................................. 289 Increase Awareness..................................................................................................... 291 Sproxil Uses Big Data to Identify Counterfeit Drugs ................................................. 291 Sickweather LLC Uses Social Media to Track Disease Outbreaks ............................... 291 Pool Data to Build a Better Ecosystem....................................................................... 291 Conclusion..................................................................................................................... 292 References ...................................................................................................................... 292Contents ◾ xv 11 Smart Use Cases of IoT .............................................................................................293 Introduction................................................................................................................... 294 Governance Use Cases.................................................................................................... 294 Ubiquitous Connectivity................................................................................................ 295 Omnipresent Devices..................................................................................................... 296 Collaboration Platforms................................................................................................. 296 Cloud Computing.......................................................................................................... 296 Open Standards and Service-Oriented Architecture (SOA) ............................................ 296 Geospatial Platforms ...................................................................................................... 297 Neogeography in Smart Cities........................................................................................ 297 Internet of Tings (IoT)................................................................................................. 297 Advanced Analytics ........................................................................................................ 298 Open Access to Public Data ........................................................................................... 298 Digitally Controlled Devices .......................................................................................... 299 Social Media Networking............................................................................................... 299 Strategic Governance Framework for the Implementation of Smart Cities...................... 299 City Objectives .............................................................................................................. 300 City Indicators ............................................................................................................... 300 City Components .......................................................................................................... 300 City Content.................................................................................................................. 301 Smart Industrial Use Cases of IoT.................................................................................. 301 Smart Lighting for Energy Conservation........................................................................ 304 Smart Lighting Approaches ....................................................................................... 304 Wireless Lighting Control Systems ............................................................................ 306 Smart Transportation Systems ........................................................................................ 308 Electric Vehicles (EVs)............................................................................................... 309 Smarter Vehicles ........................................................................................................ 309 Te Technological Implications on Vehicles ............................................................... 310 Insights-Driven Connected Vehicles .......................................................................... 310 Vehicle-to-Vehicle Connectivity................................................................................. 311 Vehicle-to-Cloud Connectivity .................................................................................. 311 Vehicle Connectivity Platforms, Tools, and Applications ........................................... 312 Use Cases of Technology-Inspired Vehicles ................................................................ 313 An Assortment of Vehicle-Centric Applications ......................................................... 313 Knowledge Services ................................................................................................... 313 Big Data Analytics for Smarter Transports ................................................................. 314 Te Approaches for Smarter Transportation............................................................... 315 Predict Demand and Optimizing Capacity, Assets, and Infrastructure ....................... 315 Improve the End-to-End Experience for Travelers...................................................... 316 Increase Operational Efciency While Reducing Environmental Impact ................... 316 Ensure Safety and Security......................................................................................... 316 Intelligent Transport Systems (ITS) ........................................................................... 317 Connected Cars ............................................................................................................. 317 Consumer Use Cases of IoT........................................................................................... 318xvi ◾ Contents Smart Homes/Buildings ................................................................................................. 319 Te Key Drivers for Smarter Homes and Buildings.................................................... 319 Te Prominent Use Cases of Smarter Homes and Buildings ...................................... 319 Smarter Homes and Building Elements ..................................................................... 320 Smarter Home/Buildings Capabilities........................................................................ 322 Role of Building Automation Systems in Smarter Homes and Buildings ........................ 323 Smarter Homes—Middleware Platforms........................................................................ 324 Smarter Home Frameworks............................................................................................ 326 Smart Education Systems Using Wearable Devices......................................................... 327 Conclusion..................................................................................................................... 328 Reference ....................................................................................................................... 328 12 Security Management of an IoT Ecosystem...............................................................329 Introduction................................................................................................................... 329 Security Requirements of an IoT Infrastructure.............................................................. 330 Confdentiality, Integrity, and Availability Triad......................................................... 330 Confdentiality...................................................................................................... 330 Integrity................................................................................................................ 331 Availability............................................................................................................ 331 Authentication, Authorization, and Audit Trial (AAA) Framework................................. 331 Authentication........................................................................................................... 331 Authorization ............................................................................................................ 332 Audit Trial ................................................................................................................. 332 Defense-in-Depth .......................................................................................................... 332 Trusted Computing Base (TCB)................................................................................ 332 Encryption ................................................................................................................ 333 Security Concerns of Cloud Platforms ........................................................................... 333 Virtual Machine Segmentation....................................................................................... 334 Database Segmentation .................................................................................................. 335 VM Introspection .......................................................................................................... 335 Distributed Denial of Service (DDoS)............................................................................ 335 Imperva SecureSphere Web Application Firewall to Prevent DDoS Attacks ............... 336 Virtual Machine/Hypervisor-Based Security Treats ...................................................... 337 Unauthorized Alteration of Virtual Machine Image Files ........................................... 337 VM Teft .................................................................................................................. 338 Inter-VM Attacks ...................................................................................................... 338 Instant-On Gaps........................................................................................................ 339 Hyperjacking............................................................................................................. 339 Security Treats of Big Data........................................................................................... 340 Distributed Programming Frameworks...................................................................... 341 Use of NoSQL Databases .......................................................................................... 341 Storage Tiering .......................................................................................................... 341 Data Source Validation.............................................................................................. 341 Privacy Concerns....................................................................................................... 342 Requirements of Security Management Framework for Big Data ................................... 342 Agile Scale-Out Infrastructure ................................................................................... 343 Security Analytics ...................................................................................................... 343Contents ◾ xvii Treat Monitoring and Intelligence ........................................................................... 344 Security Treats in Smartphones................................................................................ 344 Security Solutions for Mobile Devices............................................................................ 345 Security Concerns in IoT Components .......................................................................... 346 Security Measures for IoT Platforms/Devices ................................................................. 347 Secure Booting .......................................................................................................... 347 Mandatory Access Control Mechanisms .................................................................... 347 Device Authentication for Networks.......................................................................... 347 Device-Specifc Firewalls............................................................................................ 347 Controlled Mechanism to Ensure Application of Security Patches and Upgrades......... 347 Security Treats in Different Use Cases of IoT ............................................................... 348 Security Treats in Smart Transportation Systems...................................................... 348 Security Treats in Smart Grids and Other IoT-Based Infrastructure Components..........349 Conclusion..................................................................................................................... 350 Bibliography .................................................................................................................. 350

2018-01-09

Learning Internet of Things

Learning Internet of Things 英文原版书,物联网入门介绍书。目录: Chapter 1: Preparing our IoT Projects 11 Creating the sensor project 12 Preparing Raspberry Pi 13 Clayster libraries 14 Hardware 15 Interacting with our hardware 16 Interfacing the hardware 17 Internal representation of sensor values 18 Persisting data 18 External representation of sensor values 19 Exporting sensor data 19 Creating the actuator project 22 Hardware 22 Interfacing the hardware 23 Creating a controller 24 Representing sensor values 25 Parsing sensor data 25 Calculating control states 26 Creating a camera 27 Hardware 27 Accessing the serial port on Raspberry Pi 29 Interfacing the hardware 29 Creating persistent default settings 30 Adding conigurable properties 30 Persisting the settings 31 Working with the current settings 32 www.allitebooks.comTable of Contents [ ii ] Initializing the camera 32 Summary 33 Chapter 2: The HTTP Protocol 35 HTTP basics 36 Adding HTTP support to the sensor 38 Setting up an HTTP server on the sensor 39 Setting up an HTTPS server on the sensor 41 Adding a root menu 42 Displaying measured information in an HTML page 44 Generating graphics dynamically 46 Creating sensor data resources 51 Interpreting the readout request 52 Testing our data export 53 User authentication 53 Adding events for enhanced network performance 54 Adding HTTP support to the actuator 54 Creating the web services resource 55 Accessing individual outputs 56 Collective access to outputs 57 Accessing the alarm output 57 Using the test form 58 Accessing WSDL 59 Using the REST web service interface 59 Adding HTTP support to the controller 60 Subscribing to events 60 Creating the control thread 62 Controlling the actuator 63 Summary 64 Chapter 3: The UPnP Protocol 65 Introducing UPnP 65 Providing a service architecture 66 Documenting device and service capabilities 66 Creating a device description document 67 Choosing a device type 68 Being friendly 69 Providing the device with an identity 69 Adding icons 69 Adding references to services 70 Topping off with a URL to a web presentation page 71Table of Contents [ iii ] Creating the service description document 71 Adding actions 72 Adding state variables 72 Adding a unique device name 73 Providing a web interface 73 Creating a UPnP interface 74 Registering UPnP resources 75 Replacing placeholders 76 Adding support for SSDP 77 Notifying the network 78 Responding to searches 79 Implementing the Still Image service 81 Initializing evented state variables 81 Providing web service properties 82 Adding service properties 83 Adding actions 83 Using our camera 84 Setting up UPnP 84 Discovering devices and services 85 Subscribing to events 86 Receiving events 86 Executing actions 87 Summary 88 Chapter 4: The CoAP Protocol 89 Making HTTP binary 90 Finding development tools 91 Adding CoAP to our sensor 91 Deining our irst CoAP resources 92 Manually triggering an event notiication 93 Registering data readout resources 94 Returning XML 95 Returning JSON 96 Returning plain text 96 Discovering CoAP resources 97 Testing our CoAP resources 98 Adding CoAP to our actuator 98 Deining simple control resources 99 Parsing the URL in CoAP 100 Controlling the output using CoAP 101Table of Contents [ iv ] Using CoAP in our controller 102 Monitoring observable resources 102 Receiving notiications 103 Performing control actions 104 Summary 105 Chapter 5: The MQTT Protocol 107 Publishing and subscribing 108 Adding MQTT support to the sensor 110 Controlling the thread life cycle 110 Flagging signiicant events 111 Connecting to the MQTT server 112 Publishing the content 113 Adding MQTT support to the actuator 115 Initializing the topic content 115 Subscribing to topics 115 Receiving the published content 116 Decoding and parsing content 117 Adding MQTT support to the controller 118 Handling events from the sensor 118 Decoding and parsing sensor values 119 Subscribing to sensor events 120 Controlling the actuator 120 Controlling the LED output 120 Controlling the alarm output 121 Summary 123 Chapter 6: The XMPP Protocol 125 XMPP basics 126 Federating for global scalability 126 Providing a global identity 127 Authorizing communication 128 Sensing online presence 128 Using XML 129 Communication patterns 129 Extending XMPP 130 Connecting to a server 131 Provisioning for added security 132 Adding XMPP support to a thing 133 Connecting to the XMPP network 133Table of Contents [ v ] Monitoring connection state events 134 Notifying your friends 135 Handling HTTP requests over XMPP 135 Providing an additional layer of security 136 The basics of provisioning 136 Initializing the Thing Registry interface 138 Registering a thing 139 Updating a public thing 140 Claiming a thing 140 Removing a thing from the registry 140 Disowning a thing 141 Initializing the provisioning server interface 142 Handling friendship recommendations 142 Handling requests to unfriend somebody 143 Searching for a provisioning server 143 Providing registry information 145 Maintaining a connection 145 Negotiating friendships 146 Handling presence subscription requests 147 Continuing interrupted negotiations 148 Adding XMPP support to the sensor 149 Adding a sensor server interface 149 Updating event subscriptions 149 Publishing contracts 150 Adding XMPP support to the actuator 151 Adding a controller server interface 151 Adding XMPP support to the camera 152 Adding XMPP support to the controller 153 Setting up a sensor client interface 153 Subscribing to sensor data 153 Handling incoming sensor data 154 Setting up a controller client interface 155 Setting up a camera client interface 157 Fetching the camera image over XMPP 157 Identifying peer capabilities 158 Reacting to peer presence 159 Detecting rule changes 160 Connecting it all together 161 Summary 162Table of Contents [ vi ] Chapter 7: Using an IoT Service Platform 163 Selecting an IoT platform 164 The Clayster platform 164 Downloading the Clayster platform 164 Creating a service project 165 Adding references 165 Making a Clayster module 166 Executing the service 167 Using a package manifest 167 Executing from Visual Studio 168 Coniguring the Clayster system 168 Using the management tool 169 Browsing data sources 170 Interfacing our devices using XMPP 171 Creating a class for our sensor 172 Finding the best class 172 Subscribing to sensor data 173 Interpreting incoming sensor data 174 Creating a class for our actuator 175 Customizing control operations 175 Creating a class for our camera 176 Creating our control application 176 Understanding rendering 177 Deining the application class 178 Initializing the controller 178 Adding control rules 179 Understanding application references 180 Deining brielets 180 Displaying a gauge 181 Displaying a binary signal 182 Pushing updates to the client 184 Completing the application 185 Coniguring the application 186 Viewing the 10-foot interface application 186 Summary 188 Chapter 8: Creating Protocol Gateways 189 Understanding protocol bridging 190 Using an abstraction model 191 The basics of the Clayster abstraction model 193 Understanding editable data sources 193Table of Contents [ vii ] Understanding editable objects 194 Using common data sources 195 Overriding key properties and methods 196 Controlling structure 196 Publishing properties 197 Publishing commands 197 Handling communication with devices 197 Reading devices 198 Coniguring devices 198 Understanding the CoAP gateway architecture 198 Summary 200 Chapter 9: Security and Interoperability 201 Understanding the risks 201 Reinventing the wheel, but an inverted one 202 Knowing your neighbor 203 Modes of attack 203 Denial of Service 203 Guessing the credentials 204 Getting access to stored credentials 204 Man in the middle 205 Snifing network communication 205 Port scanning and web crawling 206 Search features and wildcards 207 Breaking ciphers 207 Tools for achieving security 208 Virtual Private Networks 208 X.509 certiicates and encryption 209 Authentication of identities 209 Usernames and passwords 210 Using message brokers and provisioning servers 211 Centralization versus decentralization 211 The need for interoperability 212 Solves complexity 212 Reduces cost 212 Allows new kinds of services and reuse of devices 213 Combining security and interoperability 213 Summary 214

2018-01-09

algorithm design 的课后答案

algorithm desgin: foundation, analysis and Internet examples的英文版课后答案

2016-04-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除