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,6 +22,8 @@ 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 + 25 25 = 2. Firmware Change Log for MQTT feature = 26 26 27 27 ... ... @@ -32,6 +32,8 @@ 32 32 * LG02_LG08-5.3.1580178039 33 33 ** Initiate version 34 34 37 + 38 + 35 35 = 3. MQTT forward operating principle = 36 36 37 37 ... ... @@ -41,13 +41,15 @@ 41 41 Below shows the network structure for MQTT forwarding. 42 42 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 -* **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 ,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. 45 45 50 + 46 46 [[image:image-20220527133547-1.png]] 47 47 48 48 General MQTT structure 49 49 50 50 56 + 51 51 == 3.2 How sensor data is forwarded == 52 52 53 53 ... ... @@ -56,10 +56,13 @@ 56 56 57 57 === 3.2.1 Upstream === 58 58 65 + 59 59 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. 60 60 61 61 ((( 62 62 The data flow works as below diagram. 70 + 71 + 63 63 ))) 64 64 65 65 [[image:image-20220527134000-2.png]] ... ... @@ -92,6 +92,7 @@ 92 92 Downstream path 93 93 94 94 104 + 95 95 == 3.3 Macro Definition == 96 96 97 97 ... ... @@ -100,6 +100,7 @@ 100 100 ((( 101 101 Currently the (% style="color:#4f81bd" %)**-t (topic)**(%%) and (% style="color:#4f81bd" %)**-m (message)**(%%) support Macros. 102 102 113 + 103 103 104 104 ))) 105 105 ... ... @@ -113,6 +113,7 @@ 113 113 * HOSTNAME: Device Hostname 114 114 115 115 127 + 116 116 === 3.3.2 -m message macro === 117 117 118 118 ... ... @@ -123,6 +123,7 @@ 123 123 * JSON: Convert META to json format. 124 124 125 125 138 + 126 126 === 3.3.3 Example for Macro === 127 127 128 128 ... ... @@ -317,6 +317,7 @@ 317 317 318 318 == 4.3 Simulate via Dragino Command Line == 319 319 333 + 320 320 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. 321 321 322 322 In the Dragino Gateway, we use [[mosquitto client>>url:https://mosquitto.org/]] for MQTT connection. ... ... @@ -345,8 +345,10 @@ 345 345 mosquitto_sub 346 346 347 347 362 + 348 348 == 4.4 Configure Dragino UI for MQTT connection == 349 349 365 + 350 350 This chapter are step by step to show to configure the Dragino Menu for MQTT auto connection. 351 351 352 352 ((( ... ... @@ -511,11 +511,11 @@ 511 511 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. 512 512 513 513 514 -(% style="color: #4f81bd" %)**Video Instruction**(%%): (% style="color:blue" %)[[https:~~/~~/youtu.be/qJTY441-t90>>url:https://youtu.be/qJTY441-t90]]530 +(% style="color:blue" %)**Video Instruction**(%%): (% style="color:blue" %)[[https:~~/~~/youtu.be/qJTY441-t90>>url:https://youtu.be/qJTY441-t90]] 515 515 ))) 516 516 517 517 ((( 518 -(% style="color:blue d" %)**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.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. 519 519 ))) 520 520 521 521 (((