24
IoT with LoRa experience sharing Institute of Information Science, Academia Sinica Network Research Lab Research assistant Hu-Cheng, Lee

20161227 Taipei Smart IOT Innovation Lab workshop

Embed Size (px)

Citation preview

Page 1: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa experience sharing Institute of Information Science, Academia SinicaNetwork Research Lab

Research assistantHu-Cheng, Lee

Page 2: 20161227 Taipei Smart IOT Innovation Lab workshop

Airbox

Wearable Device

Location Aware Sensor System

Page 3: 20161227 Taipei Smart IOT Innovation Lab workshop

Airbox

Wearable Device

Location Aware Sensor System

Page 4: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Airbox• Realtime ambient

sensing include -

- Temperature & Humidity

- PM2.5

• Smart & Healthy city

• Environmental educationLet’s hack!

Page 5: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Airbox + LoRa

GNDVINSDA

ALT SCL

pin 2 GND

pin 1 5V

pin 4 Rx

pin 5 TxTx

Rx

5v3v3SDASCLGND

SHT 31Temperature & Humidity

PMS 5003PM2.5

LoRap.s Original temperature & humidity sensor is HTS221

Page 6: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

About LoRa• LoRa

- Long rage communication (LoRa) - Low Power Wide Area Network (LPWAN) - Low bit rate connected object - Limited in 11 bytes / min (in this case, Gemtek LoRa module)

• Our data- Temperature & Humidity - PM2.5 & PM10

- GPS - App ID

• Bitwise operation

Page 7: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Fit them into 11 bytesTransmit attribute App_ID (Temperature value +

20) x 10Humidity value x 10 PM2.5 PM10 - PM2.5 Lat + 90 Lon + 180 fix/num

Recording range 0~15 -20 ~ 82.3 0 ~ 102.3 0 ~ 2047 0 ~ 255 -90 ~ 90 -180 ~ 180 0 ~ 14

Transmit value

0~15 0 ~ 1023 0 ~ 1023 0 ~ 2047 0 ~ 255 D: 0 ~ 180 (8 bits) D: 0 ~ 360 (9 bits) 0 ~ 15

M: 0 ~ 59 (6 bits) M: 0 ~ 59 (6 bits)

S: 0 ~ 59 (6 bits) S: 0 ~ 59 (6 bits)

Bits # 4 bits 10 bits 10 bits 11 bits 8 bits 20 bits 21 bits 4 bits

P.S PM10 = PM2.5 + (PM10 - PM2.5) DMS format DMS format 15: Fake

GPS

App_id Temperature Humidity PM2.5 PM10 offset Latitude Longitude fix #

Bit slot

Page 8: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Arduino sample

Open source

Page 9: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

LoRaBitMap( )

variable preprocess

bitwise operation

AT command, launch your data!

Page 10: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Get the data• Prepare your MQTT info. (ex.)

- "host": "SERVER IP",

- "port": 80,

- "topic": "client/700000000/700000000-GIOT-MAKER",

- "clientId": "700000000-generic-service",

- "username": "700000000",

- "password": “PASSWORD"

• $ mosquitto_sub -h <Server_IP> -p 80 -t client/700000000/700000000-GIOT-MAKER -I 700000000-generic-service -u 700000000 -P <PASSWORD>

Page 11: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Get the dataRECV:

{

"id" : "e18a47a2-9c3c-4157-b61a-5131e34e6813", // Unique index for this message

"macAddr" : "04000011", // Module ID

"data" : "1459268303", // Your Data

"buff" : "2016-05-09T09:18:56.310Z", // LoRa Gateway receive timestamp

"recv" : "2016-05-09T09:18:55.000Z", // Cloud server receive timestamp

"extra" : { // Lora Gateway which receive your data

"gwip" : "192.168.1.110", // Lora Gateway Wan IP

"gwid" : “00001c497b48db94", // Lora Gateway ID

"repeater" : "00000000ffffffff", // Lora Repeater ID, if bypass

"systype" : 4, // System ID for indicating service area

"rssi" : -94, // RSSI when this frame is into Gateway

"snr" : 93 // SNR when this frame is into Gateway

}

Page 12: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Get the dataooxx Reverse itooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

ooxx

Handle duplicate

Page 13: 20161227 Taipei Smart IOT Innovation Lab workshop

Airbox

Wearable Device

Location Aware Sensor System

Page 14: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Heat-stress sensing

• Personal heat-stress sensing device

• Realtime ambient sensing include

- Temperature & Humidity

- Air pressure

- GPS

Page 15: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Heat-stress sensing

GPSGPS antenna

BME280Environment Tmp., Hmd. & Prs.

Tmp. - Temperature (℃) Hmd. - Humidity (RH%) Prs. - Air pressure (hPa)

2000 mAh

LinkIt ONEMainboard

LoRa module

BatteryData transmission

Page 16: 20161227 Taipei Smart IOT Innovation Lab workshop

Airbox

Wearable Device

Location Aware Sensor System

Page 18: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

System

Page 19: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Stations

Page 20: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

IDW diagram

http://nrl.iis.sinica.edu.tw/LASS/GIS/IDW/2016/11/4 7-10:00 CST

Page 21: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

IDW+IDW+IDW+……• Date

• Dec 21, 17:30~23:30

• Location

• Northern Taiwan

• Rate

• 1 IDW / 5mins

Page 22: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

Partners

Page 23: 20161227 Taipei Smart IOT Innovation Lab workshop

IoT with LoRa

LASS WWDC• Location:NCTU Guangfu Campus

• Date: summer in 2017

• Follow us on Facebook

Page 24: 20161227 Taipei Smart IOT Innovation Lab workshop

Thank you