Edge Sense LoRa GW Solution

From ESS-WIKI
Revision as of 10:34, 17 October 2018 by Sam35.lin (talk | contribs) (.)
Jump to: navigation, search

Introduction

An IoT total solution, mainly composed of UTX-3117 gateway/EIS-D210 gateway, RYLR89D Lora demo board and WISE-PaaS.

Topology:

LoRaMgt ryx topylogy.jpg

Gateway Support Lists

Support Node

node type #1
Sensor:Temperature , Humidity , LED x 5 , ADC , Relay x 4 , Input x 4
(NOTE:SW 1.0.0 only support Temperature , Humidity , LED x 5 , ADC)
(NOTE:Relay x 4, Input x4 need to running SW 1.0.1-rc1 above, but not yet testing)

RTENOTITLE


node type #2
Sensor:Temperature , Humidity , CO2
(NOTE:SW 1.0.0 support CO2 , but CO2 sensor not yet testing)

RTENOTITLE

node type #3
Sensor:GPS
(NOTE:This node type and GPS sensor need to running SW 1.0.1-rc1 above, but not yet testing)

RTENOTITLE


Release Note

LoRaMgt_ryx 1.0.1-rc1 (for Ubuntu 16.04) (Not yet testing)

  • Support Minipcie LoRa module firmware Version RYLRxxP_V0.1.28
  • Support LoRa nodetype#1 firmware version: RYLRxx6_V0.1.20 + RYLRxxE_V0.1.11 (for I/O board)
  • Support LoRa nodetype#2 firmware version: RYLRxx2_V0.1.20
  • Support LoRa nodetype#3 firmware version: RYLRxxS_V0.1.20
  • Support sensor: Input x 4 , Relay x 4 , GPS
  • LoRaMgt_ryx install package : \\eossfs\EdgeSense\Project\ReyaxSolution\Release\LoRaMgt_ryx-1.0.1-rc1-Ubuntu_16.04-x86_64.run
  • RMM Agent install package: \\eossfs\EdgeSense\Project\ReyaxSolution\Release\rmmagent-Ubuntu 16.04.4 LTS x86_64-3.3.23.8242.run

LoRaMgt_ryx 1.0.0 (for Ubuntu 16.04)

  • Support Minipcie LoRa module firmware Version RYLRxxP_V0.1.22
  • Support LoRa nodetype#1 firmware version: RYLRxx6_V0.1.13 + RYLRxxE_V0.1.7.hex (for I/O board)
  • Support LoRa nodetype#2 firmware version: RYLRxx2_V0.1.13
  • Support sensor: Temperature , Humidity , LED x 5 , ADC, CO2
  • Support maxinum 4 nodes
  • Support RMM 3.3
  • Command line monitor tools
  • LoRaMgt_ryx install package : \\eossfs\EdgeSense\Project\ReyaxSolution\Release\LoRaMgt_ryx-1.0.0-Ubuntu_16.04-x86_64.run
  • RMM Agent install package: \\eossfs\EdgeSense\Project\ReyaxSolution\Release\rmmagent-Ubuntu 16.04.4 LTS x86_64-3.3.23.8242.run


Install Steps

  1. Install OS - Ubuntu 16.04.4 (ubuntu-16.04.4-desktop-amd64.iso)
  2. Copy RMM Agent install package (ex: rmmagent-Ubuntu 16.04.4 LTS x86_64-3.3.23.8242.run) to gateway.
  3. Copy LoRaMgt_ryx install package (ex: LoRaMgt_ryx-1.0.0-Ubuntu_16.04-x86_64.run) to gateway.
  4. Execute "sudo chmod +x LoRaMgt_ryx-1.0.0-Ubuntu_16.04-x86_64.run".
  5. Execute "sudo ./LoRaMgt_ryx-1.0.0-Ubuntu_16.04-x86_64.run" to install.
  6. Execute "sudo chmod +x rmmagent-Ubuntu 16.04.4 LTS x86_64-3.3.23.8242.run".
  7. Execute "sudo ./rmmagent-Ubuntu 16.04.4 LTS x86_64-3.3.23.8242.run" to install RMM Agent.

Then, it will be installed in gateway.

Installation consist of

  • Install configure file to /usr/local/EdgeSense/LoRaMgt_ryx/settings.ini
  • Install LoRa Management for Reyax
  • Install RMM agent for RMM 3.3
  • Install MQTT broker
  • Install Node.js
  • Install other library dependencies
  • Install Reyax_AT_Command_Demo_Script

After installation, service will be autorun.

NOTE: Please wire the gateway to Internet with Network cable before install, it is necessary to install the dependencies. 

Uninstall Steps

Execute "sudo /usr/local/EdgeSense/LoRaMgt_ryx/uninstall.bash" in terminal.
Execute "sudo /usr/local/AgentService/uninstall.sh" in terminal to uninstall RMM Agent.

Config File

You can execute "sudo vi /usr/local/EdgeSense/LoRaMgt_ryx/settings.ini" command in Ubuntu terminal to modify config.

Once config is changed , please execute "sudo systemctl restart LoRaMgt_ryx.service" to restart service in order to apply new setting.

[gateway]
SerialPort=/dev/ttyUSB0
node_num=2
polling_rate=20

[rf]
band=TW
hostaddr=1
networkid=0
crfop1=15
crfop2=15


[node-1]
addr=8
nodetype=1

[node-2]
addr=69
nodetype=1

SerialPort

  • Assign uart device for Reyax pcie LoRa module

node_num

  • Support maxinum 64 nodes

polling_rate

  • range from 5 to 3600 second, default value is 20 second
  • If setting is greater than maximum value or is less than minimum value, it will use default value.

band

  • option : 
    • TW  - for Taiwan
    • JP - for Japan
    • KR - for Korea
    • US - for US

hostaddr

  • Assign address for LoRa Host (LoRa pcie module inside gateway)

networkid

  • Network ID, default is 0, range from 0 to 16
  • NOTE:In firmware RYLRxxP_V0.1.22, range from 0 to 5

crfop1 / crfop2

  • LoRa module power , range from 0 to 15 dBm

addr:

  • address for LoRa Node.

notetype:

  • nodetype=1 : temperature + humidity + output x 5 + adc + relay x 4 + input x 4
  • nodetype=2 : temperature + humidity + co2
  • nodetype=3 : GPS

Tools

Check version

In Linux, execute command:
$ cat /usr/local/EdgeSense/LoRaMgt_ryx/version
1.0.0

Monitor Tools

reyaxmon is a monitor tool that it will show RF setting , gateway setting and sensor value from LoRa nodes.

Execute following commands to launch reyaxmon tools.
$ cd /usr/local/EdgeSense/LoRaMgt_ryx
$ sudo ./reyaxmon

RTENOTITLE

Reyax AT Command Demo Script

This demo script is a simple bash script, aim to provide a preliminary understanding about Reyax At Command.

Script version : 0.3-beta

Support Reyax firmware version : RYLRxxP_V0.1.22

Support Lora Proprietary Command Set : V0.97

Download

Usage

  1. In Ubuntu Desktop , open two terminals.
  2. Terminal 1 (Left) , run "sudo cat /dev/ttyUSB0"
  3. Terminal 2 (Right) , run "sudo ./reyax-atcmd-demo.bash"
    RTENOTITLE
  4. You can enter your choice in the right terminal to issue AT command
  5. Message from AT Command RX will be shown in the left terminal.
  6. If you want to change node address , press 0 to enter new node's address.