Changes for page MQTT Forward Instruction
Last modified by Kilight Cao on 2024/08/31 16:26
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,8 +22,6 @@ 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 25 - 26 - 27 27 = 2. Firmware Change Log for MQTT feature = 28 28 29 29 ... ... @@ -34,8 +34,6 @@ 34 34 * LG02_LG08-5.3.1580178039 35 35 ** Initiate version 36 36 37 - 38 - 39 39 = 3. MQTT forward operating principle = 40 40 41 41 ... ... @@ -45,15 +45,13 @@ 45 45 Below shows the network structure for MQTT forwarding. 46 46 47 47 * **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. 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 .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, 49 49 50 - 51 51 [[image:image-20220527133547-1.png]] 52 52 53 53 General MQTT structure 54 54 55 55 56 - 57 57 == 3.2 How sensor data is forwarded == 58 58 59 59 ... ... @@ -62,13 +62,10 @@ 62 62 63 63 === 3.2.1 Upstream === 64 64 65 - 66 66 Assume there are two sensor nodes, their ID are Node1 ID: 6734 , Node2 ID: 7456. In the remote MQTT broker there are two topics: Topic1: /channel/765800, Topic2: /channel/367860. We can set up in the gateway to map Node1 to Topic1 and Node2 to Topic2. So when there is a sensor data from Node1, the gateway will forward the data to Topic1, when there is sensor data from Node2, the gateway will forward to Topic2. 67 67 68 68 ((( 69 69 The data flow works as below diagram. 70 - 71 - 72 72 ))) 73 73 74 74 [[image:image-20220527134000-2.png]] ... ... @@ -101,7 +101,6 @@ 101 101 Downstream path 102 102 103 103 104 - 105 105 == 3.3 Macro Definition == 106 106 107 107 ... ... @@ -110,7 +110,6 @@ 110 110 ((( 111 111 Currently the (% style="color:#4f81bd" %)**-t (topic)**(%%) and (% style="color:#4f81bd" %)**-m (message)**(%%) support Macros. 112 112 113 - 114 114 115 115 ))) 116 116 ... ... @@ -124,7 +124,6 @@ 124 124 * HOSTNAME: Device Hostname 125 125 126 126 127 - 128 128 === 3.3.2 -m message macro === 129 129 130 130 ... ... @@ -135,7 +135,6 @@ 135 135 * JSON: Convert META to json format. 136 136 137 137 138 - 139 139 === 3.3.3 Example for Macro === 140 140 141 141 ... ... @@ -330,7 +330,6 @@ 330 330 331 331 == 4.3 Simulate via Dragino Command Line == 332 332 333 - 334 334 For first try of MQTT connection, simulate via command line is recommend, there are many servers / connection type for MQTT. They are using different connection parameters. Simulating the connection via command line will help us rapidly connect to server and debug. 335 335 336 336 In the Dragino Gateway, we use [[mosquitto client>>url:https://mosquitto.org/]] for MQTT connection. ... ... @@ -359,10 +359,8 @@ 359 359 mosquitto_sub 360 360 361 361 362 - 363 363 == 4.4 Configure Dragino UI for MQTT connection == 364 364 365 - 366 366 This chapter are step by step to show to configure the Dragino Menu for MQTT auto connection. 367 367 368 368 ((( ... ... @@ -527,11 +527,11 @@ 527 527 When use test this feature, please use the version higher then : (% style="color:#4f81bd" %)**LG02_LG08~-~-build-v5.4.1593400722-20200629-1120**(%%), in this version, the upload format is changed and readable, which is easier for integration. 528 528 529 529 530 -(% style="color:b lue" %)**Video Instruction**(%%): (% style="color:blue" %)[[https:~~/~~/youtu.be/qJTY441-t90>>url:https://youtu.be/qJTY441-t90]]514 +(% style="color:#4f81bd" %)**Video Instruction**(%%): (% style="color:blue" %)[[https:~~/~~/youtu.be/qJTY441-t90>>url:https://youtu.be/qJTY441-t90]] 531 531 ))) 532 532 533 533 ((( 534 -(% style="color:blue" %)**Step 1**(%%): Refer [[Communicate with ABP End Node>>Communicate with ABP End Node without LoRaWAN Network Server --- LG308]] to know how to set up LG308 to work with LoRaWAN End node. 518 +(% style="color:blued" %)**Step 1**(%%): Refer [[Communicate with ABP End Node>>Communicate with ABP End Node without LoRaWAN Network Server --- LG308]] to know how to set up LG308 to work with LoRaWAN End node. 535 535 ))) 536 536 537 537 (((