<
From version < 49.1 >
edited by Kilight Cao
on 2022/07/29 11:38
To version < 49.2 >
edited by Xiaoling
on 2022/08/09 16:18
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Kilight
1 +XWiki.Xiaoling
Content
... ... @@ -9,6 +9,7 @@
9 9  Dragino LoRa/LoRaWAN gateway support MQTT forwarding. It can forward the sensor data from LoRa network to MQTT server , and vice verse.
10 10  
11 11  
12 +
12 12  == 1.1  Support Devices ==
13 13  
14 14  
... ... @@ -22,6 +22,9 @@
22 22  * LIG16
23 23  * MS14 series if installed with the same firmware. (in this case, the MQTT forward will work , but no LoRa support)
24 24  
26 +
27 +
28 +
25 25  = 2.  Firmware Change Log for MQTT feature =
26 26  
27 27  
... ... @@ -32,6 +32,9 @@
32 32  * LG02_LG08-5.3.1580178039
33 33  ** Initiate version
34 34  
39 +
40 +
41 +
35 35  = 3.  MQTT forward operating principle =
36 36  
37 37  
... ... @@ -43,6 +43,8 @@
43 43  * **For Uplink:**  The sensor sends data to LoRa Gateway via LoRa wireless, The gateway will process these data and forward to remote MQTT Broker via Internet.
44 44  * **For Downlink:** The gateway subscribe a topic in the MQTT broker, when there is update on the topic, the gateway will know and broadcast the data to Local LoRa network.
45 45  
53 +
54 +
46 46  [[image:image-20220527133547-1.png]]
47 47  
48 48  General MQTT structure
... ... @@ -55,6 +55,7 @@
55 55  In this MQTT forward feature, the key point is how the gateway process the sensor data.
56 56  
57 57  
67 +
58 58  === 3.2.1  Upstream ===
59 59  
60 60  
... ... @@ -80,6 +80,8 @@
80 80  
81 81  (((
82 82  
93 +
94 +
83 83  )))
84 84  
85 85  === 3.2.2  Downstream ===
... ... @@ -89,6 +89,8 @@
89 89  
90 90  (((
91 91  Below are the data flow for downstream.
104 +
105 +
92 92  )))
93 93  
94 94  [[image:image-20220527134038-3.png]]
... ... @@ -118,6 +118,9 @@
118 118  * USERNAME: User ID (-u)
119 119  * HOSTNAME: Device Hostname
120 120  
135 +
136 +
137 +
121 121  === 3.3.2  -m message macro ===
122 122  
123 123  
... ... @@ -127,6 +127,9 @@
127 127  * META: Completely sensor data with time stamp and rssi
128 128  * JSON: Convert META to json format.
129 129  
147 +
148 +
149 +
130 130  === 3.3.3  Example for Macro ===
131 131  
132 132  
... ... @@ -290,6 +290,7 @@
290 290  This section is an example to show how to set up LG01-N to communicate with a MQTT server. The MQTT server is a simple utility set up in a local PC. Note: User can set up same server via [[this instruction>>url:http://www.steves-internet-guide.com/install-mosquitto-broker/]].
291 291  
292 292  
313 +
293 293  == 4.2  Simulate via MQTT.fx utility ==
294 294  
295 295  
... ... @@ -462,6 +462,7 @@
462 462  In above section, we have configured the UI to support MQTT upstream and downstream. We can simulate via Linux command. In this section, we will guide how to communicate with remote LoRa End Node for upstream and downstream.
463 463  
464 464  
486 +
465 465  === 4.5.1  Use LoRa Raw protocol for communication ~-~- For LG01/LG02 ===
466 466  
467 467  
... ... @@ -487,6 +487,8 @@
487 487  * Downstream: Listening broadcast message from gateway, and print it in console.
488 488  * The LoRa parameter settings in Arduino should match the LoRa settings in gateway, as below:
489 489  
512 +
513 +
490 490  [[image:image-20220527140354-18.png]]
491 491  
492 492  LoRa Parameter should match
... ... @@ -616,6 +616,7 @@
616 616  User can login the gateway's console and run (% style="color:#4f81bd" %)**logread -f**(%%). It will shows the output when there is packet arrive.User can see if it is correct.
617 617  
618 618  
643 +
619 619  = 6.  How to ask for Support =
620 620  
621 621  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0