0% found this document useful (0 votes)
271 views46 pages

Lora

This document provides an agenda and instructions for a training course on setting up a LoRaWAN network using various hardware and software components. The agenda includes setting up a Gemtek gateway, Mosquitto MQTT broker, Node-Red, sensor boards, and configuring the S76S LoRa module. Instructions are provided on gateway and broker configuration, importing Node-Red flows, sensor board firmware, and commands for configuring the S76S LoRa module. Version information and data workflows are also outlined.

Uploaded by

tmr legend
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
271 views46 pages

Lora

This document provides an agenda and instructions for a training course on setting up a LoRaWAN network using various hardware and software components. The agenda includes setting up a Gemtek gateway, Mosquitto MQTT broker, Node-Red, sensor boards, and configuring the S76S LoRa module. Instructions are provided on gateway and broker configuration, importing Node-Red flows, sensor board firmware, and commands for configuring the S76S LoRa module. Version information and data workflows are also outlined.

Uploaded by

tmr legend
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 46

Acsip

LoRaWAN (S76S)
Training Course

An IoT Solution Company

-
Confidential 2017/11/
An IoT Solution Company
Agenda
 Gemtek Gateway Setup

 Mosquitto Setup

 NodeRed Setup

 SmartBlocks Introduction

 How Smart

 LoRaWAN Architecture

 S76S Setup

 Sensor Board Firmware

 Q&A
-
Confidential An IoT Solution Company
範例系統及軟體版本規格

PC OS:Windows 7 x64
Node-Red:v9.0.0 x64
Arduino:1.6.11 x32
Sensor Board FW:1.1.4
Mosquitto:1.4.14 x32

-
Confidential An IoT Solution Company
Gemtek Gateway Setup
# Login : 192.168.88.1

Gateway IP

admin

-
Confidential An IoT Solution Company
Gemtek Gateway Setup
# Network Server :

Forwarder

-
Confidential An IoT Solution Company
Mosquitto Setup
# Install Mosquitto :

 Download pthreads-w32-2-9-1-
release.zip

UnZip and copy : \Pre-


ftp://sourceware.org/pub/pthreads-win32
built.2\dll\x86\pthreadVCE2.dll
 Download Win32 OpenSSL v1.0.2k Light
Insatll Win32 OpenSSL
Copy libeay32.dll & ssleay32.dll
https://slproweb.com/products/Win32OpenSSL.html
-
Confidential An IoT Solution Company
Mosquitto Setup
# Install Mosquitto :

 Download and Install :


mosquitto-1.4.11-install-win32.exe

https://mosquitto.org/download/
 Copy libeay32.dll & ssleay32.dll & pthreadVC2.dll
& pthreadVCE2.dll to c:\ mosquitto

-
Confidential An IoT Solution Company
Mosquitto Setup
# Mosquitto .Conf Setup :

192.168.88.1
73

-
Confidential An IoT Solution Company
Mosquitto Setup
# Start Mosquitto :
C:\mosquitto>mosquitto --help
mosquitto version 1.4.11 (build date 20/02/2017 23:24:29.40)

mosquitto is an MQTT v3.1.1/v3.1 broker.

Usage: mosquitto [-c config_file] [-d] [-h] [-p port]

-c : specify the broker config file.


-d : put the broker into the background after starting.
-h : display this help.
-p : start the broker listening on the specified port.
Not recommended in conjunction with the -c option.
-v : verbose mode - enable all logging types. This overrides
any logging options given in the config file.

See http://mosquitto.org/ for more information.

C:\mosquitto>mosquitto

-
Confidential An IoT Solution Company
Mosquitto Setup
# Data Workflow :
192.168.88.1

-
Confidential An IoT Solution Company
Mosquitto Subscriber
# Uplink (UL) Command :

-
Confidential An IoT Solution Company
Mosquitto Subscriber
# Uplink (UL) Done :

-
Confidential An IoT Solution Company
Mosquitto Publisher
# Downlink (DL) Command :

DevAddr
-
Confidential An IoT Solution Company
Mosquitto Publisher
# Downlink (DL) Done :

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Install

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Run Node.js command prompt
npm install -g --unsafe-perm node-red

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Run Node.js command prompt
Execute dashboard Command

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : run Node.js command prompt
Execute node-red –v

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Import Node-Red sample code

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Import Node-Red sample code

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Import Node-Red sample code

-
Confidential An IoT Solution Company
Node-Red Setup
# NodeRed Setup : Modify Node Properties

-
Confidential An IoT Solution Company
Node-Red Setup
# Dashboard Demo : 127.0.0.1:1880/ui/#/0

-
Confidential An IoT Solution Company
SmartBlocks Introduction
# Hardware Combination : Board Stack

-
Confidential An IoT Solution Company
SmartBlocks Introduction
# Hardware Combination : Board Communication
Sensor Board
S76S Lora MCU:ATmega328p
UART 1

Model Function description Interf addr


Name ace ess
SHT30 Humidity and Temperature I²C 0x45
Sensor
MC3060 3-Axis Accelerometer I²C 0x6C

-
Confidential An IoT Solution Company
SmartBlocks Introduction
# Hardware Combination : LoRa Board Pinout

UART1 UART1
Vin GND SWCLK SWDIO BOOT 0
RTS CTS

-
Confidential An IoT Solution Company
SmartBlock Introduction
# Hardware Combination : Sensor Board Pinout

-
Confidential An IoT Solution Company
SmartBlocks Introduction
# Hardware Combination : Power Board Pinout

Red LED Green LED


(Changer) (Power-On)

-
Confidential An IoT Solution Company
SmartBlocks Introduction
# Software Setup : Data Flow

-
Confidential An IoT Solution Company
How Smart

1. 節省 RF 開發的時間
2. 軟體彈性
3. 硬體延伸性

-
Confidential An IoT Solution Company
LoRaWAN Architecture
# Ecosystem :

Server

-
Confidential An IoT Solution Company
LoRaWAN Architecture
# End-Device Activation :

 Over-The-Air Activation (OTAA)

 Activation By Personalization (ABP)

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# Set CH0 ~ CH15 Frequency
=> Must be the same as Gateway Frequency Plan

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# Get Gateway Frequency Plan :

Channel List

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# Set CH8 ~ CH15 DR Range

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# Set CH8 ~ CH15 Status ON

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# Check CH0 ~ Ch15 Status Command :
mac get_ch_status X & mac get_ch_para X

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# ABP Setup ( DevAddr 、 NwkSKey 、 AppSKey )
=> Must be the same as Gateway ABP Table

-
Confidential An IoT Solution Company
S76S Setup – Command Set
# OTAA Setup ( AppEUI 、 DevEUI 、 AppKey )
=> Must be the same as Gateway OTAA Table

-
Confidential An IoT Solution Company
Sensor Board Firmware
Import library for fist time verify

-
Confidential An IoT Solution Company
Sensor Board Firmware
Arduino Firmware:Setup

-
Confidential An IoT Solution Company
Sensor Board Firmware
Arduino Firmware:Loop

-
Confidential An IoT Solution Company
Sensor Board Firmware
Arduino Firmware:Send Tx Command

-
Confidential An IoT Solution Company
Sensor Board Firmware
# # Software Setup : Firmware Update
WorkFlow:
1. Setup ISP
2. Configuring as “Acsip UNO Board”
3. Configuring ISP with your Device(Sensor Board)
4. Programming
5. Verify your ino(Firmware)

詳細內容請參考 :
.\SmartBlocks_DevKit_Package(S76S)_V1.1.4\SmartBlocks_DevKit_Package(S7
6S)_V1.1.4\Docs\SensorBoard\Arduino_ICSP _Update_ FW.pdf

-
Confidential An IoT Solution Company
Sensor Board Firmware

-
Confidential An IoT Solution Company
Q&A

-
Confidential An IoT Solution Company

You might also like