<
From version < 102.1 >
edited by Kilight Cao
on 2025/01/09 15:27
To version < 104.1
edited by Kilight Cao
on 2025/01/14 10:25
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -26,6 +26,7 @@
26 26  
27 27  We will create a gateway management platform for you.Once created we will give you a platform and you will need to enter a password and then your gateway management platform will be created.
28 28  
29 +[[image:image-20250109152734-1.png||height="530" width="1331"]]
29 29  
30 30  == 1.2 Configure gateway ==
31 31  
... ... @@ -90,87 +90,10 @@
90 90  
91 91  
92 92  
93 -= 2.  Monitor Gateway via ThingsSpeak =
94 94  
95 += 2.  Remote Access via Remote.it. =
95 95  
96 -This introduction shows how to use a script to monitor the gateway. The video link for this instruction is: [[https:~~/~~/youtu.be/8PieIwfSF_g>>url:https://youtu.be/8PieIwfSF_g]]
97 97  
98 -
99 -[[image:image-20220531155018-18.png]]
100 -
101 -
102 -== 2.1  Steps ==
103 -
104 -
105 -* Create account in ThingsSpeak and creat channel.
106 -
107 -* Download script from dragino site and move it to properly directory
108 -
109 -(% class="box infomessage" %)
110 -(((
111 -root@dragino-1baf44:~~# wget [[http:~~/~~/www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/monitor_gateway.sh>>url:http://www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/monitor_gateway.sh]]
112 -Downloading '[[http:~~/~~/www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/monitor_gateway.sh'>>url:http://www.dragino.com/downloads/downloads/LoRa_Gateway/LPS8/Firmware/customized_script/monitor_gateway.sh']]
113 -Connecting to 162.241.22.11:80
114 -Writing to 'monitor_gateway.sh'
115 -monitor_gateway.sh   100% |~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~**|  1860   0:00:00 ETA
116 -Download completed (1860 bytes)
117 -root@dragino-1baf44:~~# chmod +x monitor_gateway.sh;mv monitor_gateway.sh /usr/bin/
118 -root@dragino-1baf44:~~#
119 -root@dragino-1baf44:~~#
120 -)))
121 -
122 -
123 -
124 -* change the script monitor_gateway.sh with properly users setting:
125 -
126 -(% class="box infomessage" %)
127 -(((
128 -USER='xxxxx'             # user name in your thinkspeak ~-~-> Profile
129 -PASS='xxxxx'     #MQTT_API_KEY in your thinkspeak ~-~-> Profile
130 -CHAN_ID='xxxx'    #Channel ID   of the channel for this gateway
131 -CHAN_KEY='xxxxx'   #Channel Write API  of the channel for this gateway
132 -)))
133 -
134 -
135 -
136 -* run (% style="color:blue" %)**/usr/bin/monitor_gateway.sh**(%%) to test if upload is good.
137 -
138 -* Add monitor_gateway.sh to cron work (% style="color:blue" %)**/etc/crontabs/root**(%%) to make this script runs perdiocally, below is an example to update every 20 minutes
139 -
140 -(% class="box infomessage" %)
141 -(((
142 -# For details see man 4 crontabs
143 -# Example of job definition:
144 -# .~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- minute (0 - 59)
145 -# | .~-~-~-~-~-~-~-~-~-~-~-~-- hour (0 - 23)
146 -# | | .~-~-~-~-~-~-~-~-~-~- day of month (1 - 31)
147 -# | | | .~-~-~-~-~-~-- month (1 - 12) OR jan,feb,mar,apr ...
148 -# | | | | .~-~-~-~- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
149 -# | | | | |
150 -# * * * * * user-name command to be executed
151 -#*/10 * * * *  checklog
152 -~* 23 * * *  /etc/init.d/auto_update start
153 -*/20 * * * *  /usr/bin/monitor_gateway.sh     
154 -)))
155 -
156 -* Reboot device.
157 -
158 -== 2.2  Monitor Public IP ==
159 -
160 -
161 -The monitor_gateway.sh has been updated to upload the public ip of the device as well.
162 -
163 -User can find the public ip in field7, the chart is not able to show the complete public ip, user can check that in the export.
164 -
165 -
166 -[[image:image-20220531145559-2.png||height="658" width="1233"]]
167 -
168 -Find Public IP
169 -
170 -
171 -= 3.  Remote Access via Remote.it. =
172 -
173 -
174 174  Remote.it for remote access is available in the latest Dragino firmware for gateway. For security concern, the remote.it only available base on end user demand.
175 175  
176 176  
... ... @@ -217,7 +217,7 @@
217 217  [[image:image-20220725115720-2.png||height="658" width="900"]]
218 218  
219 219  
220 -== 3.1  How to save the registered remote after the gateway's firmware update. ==
144 +== 2.1  How to save the registered remote after the gateway's firmware update. ==
221 221  
222 222  
223 223  Before version [[lgw~~-~~-build-v5.4.1668240318-20221112-1606>>http://repo.dragino.com/release/miscellaneous/remoteit/dragino-lgw--v5.4.1668240318-squashfs-sysupgrade.bin]], once the gateway firmware is upgraded the remote configuration is gone.
... ... @@ -250,7 +250,7 @@
250 250  [[image:image-20221112162547-3.png]]
251 251  
252 252  
253 -== 3.2  How to register hp0d with Remote.it ==
177 +== 2.2  How to register hp0d with Remote.it ==
254 254  
255 255  
256 256  (% style="color:blue" %)**Prerequisites:**
... ... @@ -290,7 +290,7 @@
290 290  [[image:image-20220815173958-4.jpeg||height="580" width="964"]]
291 291  
292 292  
293 -== 3.3 How to register the gateway with Remote.it via SSH Access for Linux console ==
217 +== 2.3 How to register the gateway with Remote.it via SSH Access for Linux console ==
294 294  
295 295  
296 296  (% style="color:blue" %)**Prerequisites:**
... ... @@ -332,7 +332,7 @@
332 332  [[image:image-20230320112057-6.png||height="603" width="1135"]]
333 333  
334 334  
335 -== 3.4  Trouble Shooting ==
259 +== 2.4  Trouble Shooting ==
336 336  
337 337  
338 338  === **1. What should users do when gateway Remote.it installation fails** ===
... ... @@ -355,7 +355,7 @@
355 355  (% style="color:blue" %)**Step 3:**(%%) Follow the [[Remoteit user instruction for Dragino Gateway>>https://www.remote.it/getting-started/dragino]] steps to reconfigure
356 356  
357 357  
358 -= 4.  RSSH Introduction =
282 += 3.  RSSH Introduction =
359 359  
360 360  
361 361  Reverse SSH for remote access is available in the latest Dragino firmware for gateway. For security concern, the RSSH only available base on end user demand.
... ... @@ -381,7 +381,7 @@
381 381  * LIG16
382 382  * MS14 series if installed with the same firmware.
383 383  
384 -== 4.1  End User Guide to use SSH access ==
308 +== 3.1  End User Guide to use SSH access ==
385 385  
386 386  
387 387  Go to this the Reverse SSH page as below:
... ... @@ -404,7 +404,7 @@
404 404  After doing above, please download and mail the public keys to Dragino support and wait for our mail for the valid host port. Input the valid host port got from our support and click connect so we can remote access to your gateway.
405 405  
406 406  
407 -== 4.2  Set Up RSSH Server ==
331 +== 3.2  Set Up RSSH Server ==
408 408  
409 409  
410 410  Advance administrator can config a SSH server to provide support their end user themselves., Steps as below
... ... @@ -538,7 +538,7 @@
538 538  {{{ check: sudo ls /home/xxxxx/.ssh/authorizedkey}}}
539 539  
540 540  
541 -== 4.3  How does user get the gateway to connect to a user's private server ==
465 +== 3.3  How does user get the gateway to connect to a user's private server ==
542 542  
543 543  
544 544  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0