Page 1
TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY IT4735 Internet of Things and Applications Giảng viên: TS. Phạm Ngọc Hưng Viện Công nghệ Thông tin và Truyền thông hungpn@soict.hust.edu.vn
TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI HANOI UNIVERSITY OF SCIENCE AND TECHNOLOGY IT4735 Internet of Things and Applications Giảng viên: TS. Phạm Ngọc Hưng Viện Công nghệ Thông tin và Truyền thông hungpn@soict.hust.edu.vn
Nội dung ▪ Chương 1. Tổng quan về IoT ▪ Chương 2. Hệ thống IoT và các công nghệ ▪ Chương 3. Lập trình IoT ▪ Chương 4. An toàn và Bảo mật IoT ▪ Chương 5. Xây dựng ứng dụng IoT IT4735 – IoT and Applications 2
Chương 2. Hệ thống IoT và các công nghệ ▪ 2.1. Kiến trúc hệ thống IoT ▪ 2.2. Truyền thông trong IoT ▪ 2.3. Các giao thức truyền thông cho IoT ▪ 2.4. Nền tảng đám mây IoT IT4735 – IoT and Applications 3
2.1. Kiến trúc hệ thống IoT Kiến trúc tổng quan của hệ thống IoT Present and Future Architectures of IoT Source: https://www.researchgate.net/publication/333909259_A_Survey_on_IoT_Security_Application_Are as_Security_Threats_and_Solution_Architectures
Truyền thông trong IoT ▪ NFC and RFID ▪ Low-Energy Bluetooth ▪ Low-Energy Wireless ▪ Radio Protocols ▪ LTE-A ▪ WiFi-Direct (P2P) IT4735 – IoT and Applications 7
Truyền thông trong IoT ▪ RFID (Radio-frequency identification) https://www.youtube.com/watch?v=MAA9JpGraoU Frequency: 120–150 kHz (LF), 13.56 MHz (HF), 433 MHz (UHF), 865-868 MHz (Europe)902-928 MHz (North America) UHF, 2450-5800 MHz (microwave), 3.1– 10 GHz (microwave) Range: 10cm to 200m Examples: Road tolls, Building Access, Inventory IT4735 – IoT and Applications 8
Truyền thông trong IoT ▪ NFC (Near-Field Communications) Frequency: 13.56 MHz Range: < 0.2 m Examples: Smart Wallets/Cards, Action Tags, Access Control IT4735 – IoT and Applications 9
Truyền thông trong IoT ▪ Bluetooth Frequency: 2.4GHz Range: 1-100m Examples: Hands-free headsets, key dongles, fitness trackers IT4735 – IoT and Applications 10
Truyền thông trong IoT ▪ WiFi Frequency: 2.4 GHz, 3.6 GHz and 4.9/5.0 GHz bands. Range: Common range is up to 100m but can be extended. Applications: Routers, Tablets, etc More: https://www.postscapes.com/internet-of-things-technologies/ IT4735 – IoT and Applications 11
Truyền thông trong IoT ▪ GSM (Global System for Mobile communications) Frequency: Europe: 900MHz & 1.8GHz, US: 1.9GHz & 850MHz, Full List can be found here. Data Rate: 9.6 kbps Examples: Cell phones, M2M, smart meter, asset tracking More: https://www.postscapes.com/internet-of-things-technologies/ IT4735 – IoT and Applications 12
Truyền thông trong IoT Additional: ▪ 3G ▪ 4G LTE ▪ ANT ▪ Dash7 ▪ Ethernet Backbone: IPv4, IPv6, TCP/UDP ▪ GPRS ▪ PLC / Powerline ▪ QR Codes, EPC ▪ WiMax ▪ X-10 ▪ 802.15.4 ▪ Z-Wave ▪ Zigbee More: https://www.postscapes.com/internet-of-things-technologies/ IT4735 – IoT and Applications 13
Các giao thức truyền thông • CoAP (Constrained Application Protocol) • MQTT (Message Queue Telemetry Transport) • RESTful HTTP (Representational State Transfer) • XMPP (Extensible Messaging and Presence Protocol) https://www.postscapes.com/internet-of-things-technologies/
Ví dụ ứng dụng sử dụng HTTP Smart Locker Project Server back-end & Web front-end Application on Android device Lockers controller Controller (ATmega2560) Locker RFID tag reader
Ví dụ trao đổi dữ liệu HTTP request ▪ Sử dụng thư viện trên Android public String requestUserInfor(String devId, String qrDevId, String qrCode, int timeout){ String result = ""; try { String urlApi = "https://203.171.20.94:8080/api/AccessControl/GetUserInfor"; URL url = new URL(urlApi); HttpURLConnecton conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("POST"); conn.setConnectTimeout(timeout); conn.setReadTimeout(timeout); conn.setRequestProperty("Content-Type", "application/json; charset=utf-8"); IT4735 – IoT and Applications 19
Ví dụ trao đổi dữ liệu HTTP request ▪ Sử dụng thư viện trên Android public String requestUserInfor(String devId, String qrDevId, String qrCode, int timeout){ ... OutputStream os = conn.getOutputStream(); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "UTF-8")); JSONObject jsonObj = new JSONObject(); try { jsonObj.accumulate("deviceId", devId); jsonObj.accumulate("qrCodeId", qrDevId); jsonObj.accumulate("qrCodeValue", qrCode); } catch (JSONException e) { e.printStackTrace(); } writer.write(jsonObj.toString()); writer.flush(); writer.close(); os.close(); conn.connect(); IT4735 – IoT and Applications 20
Affichage des 20 premières pages. Téléchargez le document pour le voir en entier.
Aucun commentaire pour le moment. Soyez le premier !
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !