Changes for page MQTT Forward Instruction
Last modified by Kilight Cao on 2024/08/31 16:26
Change comment:
Renamed back-links.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Kilight1 +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 ... ... @@ -15,7 +15,7 @@ 15 15 This MQTT forward instruction is for below devices: 16 16 17 17 * Firmware Version > LG02_LG08-5.3.1580178039 [[Firmware Download>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 18 -* LG01N, OLG01N ((% style="color:red" %)**Warning**(%%): LG01-P LG01-S use another instruction: [[MQTT for LG01-P/LG01S>>doc:Through MQTT to upload data.WebHome]]) 19 +* LG01N, OLG01N ((% style="color:red" %)**Warning**(%%): LG01-P LG01-S use another instruction: [[MQTT for LG01-P/LG01S>>doc:Main.Through MQTT to upload data.WebHome]]) 19 19 * LG02, OLG02 20 20 * LG308, DLOS8 21 21 * LPS8 ... ... @@ -23,6 +23,7 @@ 23 23 * MS14 series if installed with the same firmware. (in this case, the MQTT forward will work , but no LoRa support) 24 24 25 25 27 + 26 26 = 2. Firmware Change Log for MQTT feature = 27 27 28 28 ... ... @@ -34,6 +34,7 @@ 34 34 ** Initiate version 35 35 36 36 39 + 37 37 = 3. MQTT forward operating principle = 38 38 39 39 ... ... @@ -45,6 +45,7 @@ 45 45 * **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. 46 46 * **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. 47 47 51 + 48 48 [[image:image-20220527133547-1.png]] 49 49 50 50 General MQTT structure ... ... @@ -57,6 +57,7 @@ 57 57 In this MQTT forward feature, the key point is how the gateway process the sensor data. 58 58 59 59 64 + 60 60 === 3.2.1 Upstream === 61 61 62 62 ... ... @@ -82,6 +82,8 @@ 82 82 83 83 ((( 84 84 90 + 91 + 85 85 ))) 86 86 87 87 === 3.2.2 Downstream === ... ... @@ -91,6 +91,8 @@ 91 91 92 92 ((( 93 93 Below are the data flow for downstream. 101 + 102 + 94 94 ))) 95 95 96 96 [[image:image-20220527134038-3.png]] ... ... @@ -121,6 +121,7 @@ 121 121 * HOSTNAME: Device Hostname 122 122 123 123 133 + 124 124 === 3.3.2 -m message macro === 125 125 126 126 ... ... @@ -131,6 +131,7 @@ 131 131 * JSON: Convert META to json format. 132 132 133 133 144 + 134 134 === 3.3.3 Example for Macro === 135 135 136 136 ... ... @@ -294,6 +294,7 @@ 294 294 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/]]. 295 295 296 296 308 + 297 297 == 4.2 Simulate via MQTT.fx utility == 298 298 299 299 ... ... @@ -466,6 +466,7 @@ 466 466 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. 467 467 468 468 481 + 469 469 === 4.5.1 Use LoRa Raw protocol for communication ~-~- For LG01/LG02 === 470 470 471 471 ... ... @@ -491,6 +491,7 @@ 491 491 * Downstream: Listening broadcast message from gateway, and print it in console. 492 492 * The LoRa parameter settings in Arduino should match the LoRa settings in gateway, as below: 493 493 507 + 494 494 [[image:image-20220527140354-18.png]] 495 495 496 496 LoRa Parameter should match ... ... @@ -620,6 +620,7 @@ 620 620 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. 621 621 622 622 637 + 623 623 = 6. How to ask for Support = 624 624 625 625