內容簡介
物聯網技術及其實驗介紹了物聯網的核心技術,並給出對應的實驗。物聯網技術及其實驗分為12 章,包括:物聯網基礎理論、RFID 基礎、RFID 讀寫功能、RFID 標籤防衝突識別、2.4GHz RFID 系統讀取標籤信息實驗、物聯網節點外設控制、基於物聯網的數據無線收發及遠程控制、感測器基本功能、RFID 系統接入蜂窩網路實驗、物聯網嵌入式軟體開發、物聯網在智慧型家居和智慧農業的開發案例等。深入淺出地介紹了工作原理、實驗設備與環境、實驗內容、實驗步驟以及預習和實驗報告要求。讀者通過閱讀和參與實驗得以體驗與學習物聯網關鍵技術,同時每個實驗也可以延伸為研究開發平台。物聯網技術及其實驗還有配套的實驗和開發設備。
圖書目錄
目 錄
前言
第 1 章 物聯網基礎理論··························································································· 1
1.1 引言 ·············································································································· 1
1.2 物聯網的定義 ······························································································ 1
1.2.1 政府等機構對物聯網的定義 ···································································· 1
1.2.2 物聯網與其他網路之間的關係 ································································· 2
1.3 物聯網的發展 ······························································································ 3
1.3.1 歷史 ····································································································· 3
1.3.2 發展現狀 ······························································································· 3
1.4 物聯網的架構 ······························································································ 5
1.4.1 感知層 ·································································································· 5
1.4.2 網路層 ·································································································· 5
1.4.3 套用層 ·································································································· 6
1.5 物聯網的主要技術 ······················································································· 6
1.5.1 感測器技術 ··························································································· 6
1.5.2 編碼技術 ······························································································· 7
1.5.3 標識技術 ······························································································· 7
1.5.4 解析技術 ······························································································· 9
1.5.5 短距離無線傳輸技術 ·············································································· 9
1.5.6 安全技術 ····························································································· 10
1.6 物聯網的套用 ···························································································· 11
1.6.1 智慧型家居 ····························································································· 12
1.6.2 智慧型交通 ····························································································· 12
1.6.3 供應鏈物流管理 ··················································································· 13
1.6.4 未來超市 ····························································································· 14
1.6.5 安全監控 ····························································································· 15
1.6.6 工業控制 ····························································································· 15
1.6.7 軍事套用 ····························································································· 15
1.7 物聯網的未來展望 16
1.8 思考題 ········································································································ 16
第 2 章 RFID 基礎及其實驗··················································································· 17
2.1 引言 ············································································································ 17
2.2 RFID 基本原理 ·························································································· 17
2.2.1 概述 ··································································································· 17
2.2.2 工作原理 ····························································································· 17
2.2.3 系統組成 ····························································································· 18
2.2.4 頻率 ··································································································· 19
2.2.5 標準體系 ····························································································· 21
2.3 915MHz RFID 基本操作實驗 ···································································· 23
2.3.1 實驗目的 ····························································································· 23
2.3.2 實驗原理 ····························································································· 24
2.3.3 實驗設備與軟體環境 ············································································ 28
2.3.4 實驗內容與步驟 ··················································································· 28
2.3.5 實驗預習要求 ······················································································ 34
2.3.6 實驗報告要求 ······················································································ 34
2.3.7 思考題 ································································································ 34
2.4 13.56MHz RFID 基本操作及其實驗·························································· 35
2.4.1 實驗目的 ····························································································· 35
2.4.2 實驗原理 ····························································································· 35
2.4.3 實驗設備與軟體環境 ············································································ 38
2.4.4 實驗內容與步驟 ··················································································· 38
2.4.5 實驗預習要求 ······················································································ 43
2.4.6 實驗報告要求 ······················································································ 43
2.4.7 實驗思考題 ························································································· 43
第 3 章 RFID 讀寫功能及其實驗 ··········································································· 44
3.1 915MHz RFID 基本讀取實驗 ···································································· 44
3.1.1 實驗目的 ····························································································· 44
3.1.2 實驗原理 ····························································································· 44
3.1.3 實驗設備與軟體環境 ············································································ 49
3.1.4 實驗內容與步驟 ··················································································· 49
3.1.5 實驗預習要求 ······················································································ 54
3.1.6 實驗報告要求 ······················································································ 54
3.1.7 實驗思考題 · 55
3.2 915MHz RFID 讀寫操作及其實驗····························································· 55
3.2.1 實驗目的 ····························································································· 55
3.2.2 實驗原理 ····························································································· 55
3.2.3 實驗設備與軟體環境 ············································································ 60
3.2.4 實驗內容與步驟 ··················································································· 60
3.2.5 實驗預習要求 ······················································································ 75
3.2.6 實驗報告要求 ······················································································ 75
3.2.7 實驗思考題 ························································································· 76
第 4 章 RFID 標籤防衝突識別及其實驗 ······························································· 77
4.1 引言 ············································································································ 77
4.2 工作原理 ···································································································· 77
4.2.1 基於 ALOHA 的防衝突算法 ·································································· 77
4.2.2 二進制樹搜尋法 ··················································································· 81
4.2.3 標籤識別模式 ······················································································ 82
4.2.4 命令定義 ····························································································· 82
4.3 實驗設備與軟體環境 ················································································· 85
4.4 實驗內容與步驟························································································· 86
4.4.1 實驗內容 ····························································································· 86
4.4.2 實驗步驟 ····························································································· 86
4.5 實驗預習要求 ···························································································· 93
4.6 實驗報告要求 ···························································································· 93
4.7 實驗思考題 ································································································ 93
第 5 章 2.4GHz RFID 系統讀取標籤信息實驗 ····················································· 94
5.1 實驗目的 ···································································································· 94
5.2 實驗原理 ···································································································· 94
5.2.1 基本工作原理 ······················································································ 94
5.2.2 通信接口 ····························································································· 96
5.2.3 指令格式 ····························································································· 96
5.2.4 讀取標籤信息命令定義 ········································································· 97
5.3 實驗設備與軟體環境 ················································································· 97
5.4 實驗內容與步驟························································································· 98
5.4.1 實驗內容 ····························································································· 98
5.4.2 實驗步驟 · 98
5.6 實驗報告要求 ·························································································· 104
5.7 實驗思考題 ······························································································ 104
第 6 章 物聯網節點外設控制及其實驗································································ 105
6.1 引言 ·········································································································· 105
6.2 工作原理 ·································································································· 105
6.2.1 ZigBee 技術簡介 ················································································ 105
6.2.2 ZigBee 技術特點 ················································································ 106
6.2.3 ZigBee 模組工作流程·········································································· 107
6.2.4 ZigBee 模組串口通信的函式 ································································ 107
6.2.5 定時器原理和基本函式 ······································································· 109
6.2.6 LED 的控制函式 ················································································ 111
6.2.7 按鍵監控函式 ···················································································· 111
6.2.8 顯示屏顯示方法 ················································································· 112
6.3 實驗設備與軟體環境 ··············································································· 116
6.4 實驗內容與步驟······················································································· 116
6.4.1 實驗程式燒寫 ···················································································· 116
6.4.2 實驗設定 ··························································································· 116
6.4.3 串口實驗 ··························································································· 117
6.4.4 定時器實驗 ······················································································· 117
6.4.5 LED 實驗 ·························································································· 117
6.4.6 按鍵實驗 ··························································································· 119
6.4.7 顯示屏實驗 ······················································································· 119
6.5 預習要求 ·································································································· 119
6.6 實驗報告要求 ·························································································· 120
6.7 思考題 ······································································································ 120
第 7 章 基於物聯網的數據無線收發及遠程控制實驗 ········································· 121
7.1 引言 ·········································································································· 121
7.2 工作原理 ·································································································· 121
7.2.1 ZigBee 協定的訊息格式及幀格式 ························································· 121
7.2.2 定址及定址方式 ················································································· 122
7.2.3 主從節點無線傳輸數據的機制 ····························································· 122
7.2.4 物聯網主從節點無線數據收發軟體程式 ················································ 124
7.3 實驗設備與軟體環境 · 127
7.4 實驗內容與步驟 ·· 127
7.4.1 實驗啟動 ··························································································· 127
7.4.2 串口設定 ··························································································· 128
7.4.3 啟動主節點 ······················································································· 129
7.4.4 加入從節點 ······················································································· 129
7.4.5 傳送數據 ··························································································· 130
7.4.6 主節點指令廣播 ················································································· 132
7.5 預習要求 ·································································································· 133
7.6 實驗報告要求 ·························································································· 133
7.7 思考題 ······································································································ 133
第 8 章 感測器基本功能及其實驗 ······································································· 134
8.1 通用感測器基本功能及其實驗································································ 134
8.1.1 引言 ································································································· 134
8.1.2 基本原理 ··························································································· 134
8.1.3 實驗設備與軟體環境 ·········································································· 139
8.1.4 實驗內容和步驟 ················································································· 139
8.1.5 預習要求 ··························································································· 142
8.1.6 實驗報告要求 ···················································································· 142
8.1.7 思考題 ······························································································ 142
8.2 醫用感測器基本功能及其實驗································································ 142
8.2.1 引言 ································································································· 142
8.2.2 基本原理 ··························································································· 142
8.2.3 實驗設備與軟體環境 ·········································································· 144
8.2.4 實驗內容和步驟 ················································································· 144
8.2.5 預習要求 ··························································································· 146
8.2.6 實驗報告要求 ···················································································· 146
8.2.7 思考題 ······························································································ 146
第 9 章 RFID 系統接入蜂窩網路實驗 ································································· 147
9.1 引言 ·········································································································· 147
9.2 基本原理 ·································································································· 147
9.2.1 移動通信網路簡介·············································································· 147
9.2.2 GSM 中 AT 指令簡介 ········································································· 148
9.2.3 RFID 閱讀器的控制與使用 ·································································· 150
9.2.4 利用GSM 模組傳送簡訊 · 150
9.2.5 SBC2440 嵌入式開發板 151
9.3 實驗設備與軟體環境 ··············································································· 153
9.4 實驗內容與步驟······················································································· 153
9.5 預習要求 ·································································································· 157
9.6 實驗報告要求 ·························································································· 157
9.7 實驗思考題 ······························································································ 157
第 10 章 物聯網嵌入式軟體開發及其實驗 ·························································· 158
10.1 引言 ········································································································ 158
10.2 工作原理 ································································································ 158
10.2.1 開發流程······················································································· 158
10.2.2 數據收發實驗源碼剖析 ··································································· 169
10.3 實驗設備與軟體環境 ············································································· 179
10.4 實驗內容與步驟 ····················································································· 179
10.4.1 安裝軟體······················································································· 179
10.4.2 打開工程檔案並編譯程式································································ 180
10.4.3 燒寫程式······················································································· 180
10.4.4 運行平台······················································································· 180
10.5 預習要求 ································································································ 180
10.6 實驗報告要求························································································· 180
10.7 思考題 ···································································································· 180
第 11 章 物聯網在智慧型家居方面的綜合開發案例 ·············································· 181
11.1 引言 ········································································································ 181
11.2 實驗流程 ································································································ 182
11.3 基本原理 ································································································ 183
11.3.1 主節點與從節點之間的數據收發······················································ 183
11.3.2 主節點與 PC 之間的數據收發 ·························································· 183
11.3.3 從節點的自動控制與回響································································ 183
11.4 實驗設備與軟體環境 ············································································· 183
11.5 實驗內容與步驟 ····················································································· 184
11.5.1 下載程式······················································································· 184
11.5.2 建立網路······················································································· 185
11.5.3 主節點顯示從節點的信息································································ 185
11.5.4 實驗軟體操作 ················································································ 185
11.6 預習要求 196
11.7 實驗報告要求 196
11.8 思考題 ···································································································· 196
第 12 章 物聯網在智慧農業方面的綜合開發案例 ·············································· 197
12.1 引言 ········································································································ 197
12.2 實驗流程 ································································································ 198
12.3 基本原理 ································································································ 199
12.3.1 主節點與從節點之間的數據收發······················································ 199
12.3.2 主節點與嵌入式開發板之間的數據收發 ············································ 199
12.4 實驗設備與軟體環境 ············································································· 199
12.5 實驗內容與步驟 ····················································································· 199
12.5.1 下載程式······················································································· 199
12.5.2 建立網路······················································································· 200
12.5.3 實驗軟體操作 ················································································ 200
12.6 預習要求 ································································································ 203
12.7 實驗報告要求························································································· 203
12.8 實驗思考題 ···························································································· 203
參考文獻·················································································································· 204