<
From version < 47.1 >
edited by Xiaoling
on 2022/07/14 16:22
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
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  
... ... @@ -24,6 +24,7 @@
24 24  
25 25  
26 26  
28 +
27 27  = 2.  Firmware Change Log for MQTT feature =
28 28  
29 29  
... ... @@ -36,6 +36,7 @@
36 36  
37 37  
38 38  
41 +
39 39  = 3.  MQTT forward operating principle =
40 40  
41 41  
... ... @@ -48,6 +48,7 @@
48 48  * **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.
49 49  
50 50  
54 +
51 51  [[image:image-20220527133547-1.png]]
52 52  
53 53  General MQTT structure
... ... @@ -60,6 +60,7 @@
60 60  In this MQTT forward feature, the key point is how the gateway process the sensor data.
61 61  
62 62  
67 +
63 63  === 3.2.1  Upstream ===
64 64  
65 65  
... ... @@ -85,6 +85,8 @@
85 85  
86 86  (((
87 87  
93 +
94 +
88 88  )))
89 89  
90 90  === 3.2.2  Downstream ===
... ... @@ -94,6 +94,8 @@
94 94  
95 95  (((
96 96  Below are the data flow for downstream.
104 +
105 +
97 97  )))
98 98  
99 99  [[image:image-20220527134038-3.png]]
... ... @@ -125,6 +125,7 @@
125 125  
126 126  
127 127  
137 +
128 128  === 3.3.2  -m message macro ===
129 129  
130 130  
... ... @@ -136,6 +136,7 @@
136 136  
137 137  
138 138  
149 +
139 139  === 3.3.3  Example for Macro ===
140 140  
141 141  
... ... @@ -299,6 +299,7 @@
299 299  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/]].
300 300  
301 301  
313 +
302 302  == 4.2  Simulate via MQTT.fx utility ==
303 303  
304 304  
... ... @@ -471,6 +471,7 @@
471 471  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.
472 472  
473 473  
486 +
474 474  === 4.5.1  Use LoRa Raw protocol for communication ~-~- For LG01/LG02 ===
475 475  
476 476  
... ... @@ -496,6 +496,8 @@
496 496  * Downstream: Listening broadcast message from gateway, and print it in console.
497 497  * The LoRa parameter settings in Arduino should match the LoRa settings in gateway, as below:
498 498  
512 +
513 +
499 499  [[image:image-20220527140354-18.png]]
500 500  
501 501  LoRa Parameter should match
... ... @@ -604,7 +604,7 @@
604 604  
605 605  (% class="box infomessage" %)
606 606  (((
607 -**mosquitto_pub -h 10.130.2.192 -p 1883 -t dragino-1d25dc/ -m "260211D,time,txt,hello,20,1,SF12,923300000,2 > /var/iot/push/test"**
622 +**mosquitto_pub -h 10.130.2.192 -p 1883 -t dragino-1d25dc/ -m "260211D,time,txt,hello,20,1,SF12,923300000,2"**
608 608  )))
609 609  
610 610  Or use [[MQTT.fx>>https://mqttfx.jensd.de/index.php/download]]
... ... @@ -625,6 +625,7 @@
625 625  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.
626 626  
627 627  
643 +
628 628  = 6.  How to ask for Support =
629 629  
630 630  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0