Difference between revisions of "Edge Sense LoRa GW Solution"
(.) |
(.) |
||
| Line 41: | Line 41: | ||
| + | |||
| + | = Config File = | ||
| + | |||
| + | <span style="font-size:medium;">You can execute "<span style="color:#0000FF;">sudo vi /usr/local/EdgeSense/LoRaMgt_ryx/settings.ini</span>" command in Ubuntu terminal to modify config.</span> | ||
| + | |||
| + | <span style="font-size:medium;">Once config is changed , please execute "<span style="color:#0000FF;">sudo systemctl restart LoRaMgt_ryx.service</span>" to restart service in order to apply new setting.</span> | ||
| + | |||
| + | {| border="1" cellspacing="1" cellpadding="1" style="width:500px;" | ||
| + | |- | ||
| + | | | ||
| + | <span style="font-size:medium;">[gateway]<br/>SerialPort=/dev/ttyUSB0<br/>node_num=2<br/>polling_rate=20</span> | ||
| + | |||
| + | <span style="font-size:medium;">[rf]<br/>band=TW<br/>hostaddr=1<br/>networkid=0<br/>crfop1=15<br/>crfop2=15</span><br/><br/><span style="font-size:medium;">[node-1]<br/>addr=8<br/>nodetype=1</span> | ||
| + | |||
| + | <span style="font-size:medium;">[node-2]<br/>addr=69<br/>nodetype=1</span> | ||
| + | |||
| + | |} | ||
| + | |||
| + | <span style="font-size:medium;">SerialPort</span> | ||
| + | |||
| + | *<span style="font-size:medium;">Assign uart device for Reyax pcie LoRa module</span> | ||
| + | |||
| + | <span style="font-size:medium;">node_num</span> | ||
| + | |||
| + | *<span style="font-size:medium;">Support maxinum 64 nodes</span> | ||
| + | |||
| + | <span style="font-size:medium;">polling_rate</span> | ||
| + | |||
| + | *<span style="font-size: 15.6px;">range from 5 to 3600 second, default value is 20 second</span> | ||
| + | *<span style="font-size: 15.6px;">If setting is greater than maximum value or is less than minimum value, it will use default value.</span> | ||
| + | |||
| + | <span style="font-size:medium;">band</span> | ||
| + | |||
| + | *<span style="font-size:medium;">option : </span> | ||
| + | **<span style="font-size:medium;">'''TW''' - for Taiwan</span> | ||
| + | **<span style="font-size:medium;">'''JP''' - for Japan</span> | ||
| + | **<span style="font-size:medium;">'''KR''' - for Korea</span> | ||
| + | **<span style="font-size:medium;">'''US''' - for US</span> | ||
| + | |||
| + | <span style="font-size:medium;">hostaddr</span> | ||
| + | |||
| + | *<span style="font-size:medium;">Assign address for LoRa Host (LoRa pcie module inside gateway)</span> | ||
| + | |||
| + | <span style="font-size:medium;">networkid</span> | ||
| + | |||
| + | *<span style="font-size:medium;">Network ID, default is 0, range from 0 to 16</span> | ||
| + | *<span style="color:#FF0000;"><span style="font-size:medium;">NOTE:In firmware RYLRxxP_V0.1.22, range from 0 to 5</span></span> | ||
| + | |||
| + | <span style="font-size:medium;">crfop1 / crfop2</span> | ||
| + | |||
| + | *<span style="font-size:medium;">LoRa module power , range from 0 to 15 dBm</span> | ||
| + | |||
| + | <span style="font-size:medium;">addr:</span> | ||
| + | |||
| + | *<span style="font-size:medium;">address for LoRa Node.</span> | ||
| + | |||
| + | <span style="font-size:medium;">notetype:</span> | ||
| + | |||
| + | *<span style="font-size:medium;">nodetype=1 : temperature + humidity + output x 5 + adc</span> | ||
| + | *<span style="font-size:medium;">nodetype=2 : temperature + humidity + co2</span> | ||
= Tools = | = Tools = | ||
Revision as of 09:11, 16 August 2018
Contents
Introduction
An IoT total solution, mainly composed of UTX-3117 gateway/EIS-D210 gateway, RYLR89D Lora demo board and WISE-PaaS.
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)
node type #2
Sensor:Temperature , Humidity , CO2
(NOTE:SW 1.0.0 support CO2 , but CO2 sensor not yet testing)
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)
Release Note
ReyaxSol 1.0.1-rc1 (for Ubuntu 16.04) (Not yet testing)
- Support 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
ReyaxSol 1.0.0 (for Ubuntu 16.04)
- Support 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
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] [rf] [node-2] |
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
- nodetype=2 : temperature + humidity + co2
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
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
Download
- This demo script is available at Reyax-atcmd-demo.bash.tar.gz
- Download the file and upload it to Ubuntu. (Execute "wget http://ess-wiki.advantech.com.tw/wiki/images/4/4b/Reyax-atcmd-demo.bash.tar.gz" in terminal)
- Uncompress the file with command "tar zxfv Reyax-atcmd-demo.bash.tar.gz" , then reyax-atcmd-demo.bash will be ready to use.
Usage
- In Ubuntu Desktop , open two terminals.
- Terminal 1 (Left) , run "sudo cat /dev/ttyUSB0"
- Terminal 2 (Right) , run "sudo ./reyax-atcmd-demo.bash"

- You can enter your choice in the right terminal to issue AT command
- Message from AT Command RX will be shown in the left terminal.
- If you want to change node address , press 0 to enter new node's address.

