Changes for page Connect Devices to ThingsEye
Last modified by Alec Chen on 2025/11/26 17:10
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 8 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. hera1 +XWiki.Alec - Content
-
... ... @@ -1,333 +1,490 @@ 1 +(% _mstvisible="1" %) 1 1 2 2 3 -**Table of Contents:** 4 +(% _mstvisible="1" %) 5 +(% _msthash="777" _msttexthash="303537" _mstvisible="2" %)**Table of Contents:** 4 4 5 5 {{toc/}} 6 6 7 7 8 -= 1. Overview = 10 +(% _mstvisible="1" %) 11 += (% _msthash="757" _msttexthash="149552" _mstvisible="2" %)1. Overview(%%) = 9 9 10 -The instructions in this chapter will show you how to connect a device that has been registered to the server to the Thingseye platform. 13 +(% _msthash="756" _msttexthash="7978490" _mstvisible="1" %) 14 +This instructions will show you how to connect a device that has been registered to the server to the Thingseye platform. 11 11 12 -The network diagram below illustrates the connection between the devices and The Things Stack, as well as how the data can be integrated with the ThingsEye IoT platform. 13 13 14 - [[image:1732679080974-799.jpg||height="444"width="1660"]]17 += (% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)2. UDP Protocol – Direct Connection(%%) = 15 15 16 -= 2. UDP Procotol ~-~- Directly Connection = 19 +(% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)2.1 UDP Interface 20 +**Server Address: server1.thingseye.io 21 +Port: 11560** 22 +Data sent to the above UDP interface will not directly enter the client's database. 17 17 18 -== 2 .1UDPInterface==24 +(% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)For detailed information on how to forward data to clients, please contact the ThingsEye team. 19 19 20 -* Server Address: server1.thingseye.io 21 -* Port: 11562 26 +(% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)Note: Currently, UDP connections require port forwarding. Please contact the ThingsEye team before connecting and provide them with your device's IMEI. 22 22 23 -The data sent to above UDP interface will not go directly to client's database. 24 24 25 -Please contact ThingsEye team for detail how to forward data to client. 29 +(% _mstvisible="1" %) 30 +---- 26 26 32 +== (% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)2.2 Testing with Dragino NB Device(%%) == 27 27 28 -== 2.2TestUDP InterfaceviaSocket Tool==34 +=== (% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)2.2.1 Configuring the NB-IoT End Node(%%) === 29 29 30 - Downloadthe UDP TestTool from: [[https:~~/~~/sourceforge.net/projects/sockettest/>>https://sourceforge.net/projects/sockettest/]].Run thistool, and inputtheserveraddress andUDP portasbelowand clicksend.36 +(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)The device here is an S31-NB, and it has been configured as follows: 31 31 32 - [[image:1728566363151-470.png]]38 +(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)**Set to use the ThingsEye UDP server: AT+SERVADDR=server1.thingseye.io,11560** 33 33 34 - Inserverside,Tenant Administrator can checkthisinTenantUDP Serverlocation.40 +(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)**Use UDP uplink and JSON protocol: AT+PRO=2,5** 35 35 36 - [[image:1728362834430-749.png||height="510" width="1667"]]42 +(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)Equipped with an NB-IoT card to access the NB-IoT network. 37 37 38 - Clickandseethedebuginfo asbelow:44 +(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)The S31-NB's cellular module IMEI is: 863663062789483 39 39 40 -[[image:1728363020699-203.png]] 46 +(% class="wikigeneratedid" _mstvisible="1" id="H2.2.268C067E54E0A884C6570636E" %) 47 +(% _msthash="741" _msttexthash="30173117" _mstvisible="2" %)2.2.2 Check Uplink Data 48 +Enable Debug Module 41 41 42 -We can see the message arrives, but it shows ERROR because the message doesn't follow with the UDP Server format. 50 +(% _mstvisible="1" %) 51 +(% _mstvisible="3" %)[[image:1758762334133-608.png||_mstalt="294801" _msthash="584" _mstvisible="5" height="494" width="1003"]] 43 43 53 +(% _mstvisible="1" %) 54 +---- 44 44 45 -== 2.3 Test with Dragino NB device == 56 +(% _msthash="739" _msttexthash="156775723" _mstvisible="1" %) 57 +After reactivating the S31-NB, we can see it in the debug window: 46 46 47 -=== 2.3.1 Configure NB-IoT End Node === 59 +(% _mstvisible="1" %) 60 +(% _mstvisible="3" %)[[image:1758762371290-726.png||_mstalt="296088" _msthash="586" _mstvisible="5" height="528" width="1005"]] 48 48 49 -Device here is **[[S31-NB>>https://www.dragino.com/products/temperature-humidity-sensor/item/288-s31-nb-s31b-nb.html]]** : and have been configure below 62 +(% _mstvisible="1" %) 63 +(% _mstvisible="3" %)[[image:1728378218744-800.png||_mstalt="295269" _msthash="588" _mstvisible="5" height="431" width="1003"]] 50 50 51 -* Set to use ThingsEye UDP server: **AT+SERVADDR=server1.thingseye.io,11562** 52 -* Use UDP Uplink & Json protocol:** AT+PRO=2,5** 53 -* Equip with a NB-IoT SIM Card to access to NB-IoT Network. 65 +---- 54 54 55 - TheS31-NB'scellularmodulehastheIMEI: **863663062789483**67 +=== 2.2.2 Automatic Device Creation === 56 56 69 +(% class="wikigeneratedid" %) 70 +The default tenant UDP server is already configured to decode Dragino-NB/-CB NB-IoT nodes. Therefore, each end node sends data to the server. The tenant will automatically create devices on the server. 57 57 58 -=== 2.3.2 Check Uplink Data === 72 +(% _mstvisible="1" %) 73 +(% _mstvisible="3" %)[[image:1728378968101-683.png||_mstalt="297154" _msthash="590" _mstvisible="5" height="210" width="1005"]] 59 59 60 -Re-activate the S31-NB, and we can see it in the debug window: 75 +(% _mstvisible="1" %) 76 +(% _mstvisible="3" %)[[image:1728379050044-764.png||_mstalt="295282" _msthash="592" _mstvisible="5" height="326" width="1009"]] 61 61 62 -[[image:1728378218744-800.png||height="431" width="1003"]] 63 63 79 +(% _mstvisible="1" %) 80 +---- 64 64 65 -=== 2.3.3 Auto-Create Device === 82 +(% _mstvisible="1" %) 83 += (% _msthash="736" _msttexthash="622947" _mstvisible="2" %)3. Connect to The Things Stack(%%) = 66 66 67 -The default **Tenant UDP Server** has already been configured to decode the Dragino -NB / -CB NB-IoT node. So once each end node sends a data to server. Tenant will auto create the device in the server. 85 +(% _mstvisible="1" %) 86 +== (% _msthash="735" _msttexthash="410280" _mstvisible="2" %)3.1 Network Structure(%%) == 68 68 69 -[[image:1728378968101-683.png||height="273" width="1307"]] 88 +(% _msthash="734" _msttexthash="14835652" _mstvisible="1" %) 89 +The network diagram below illustrates the connection between the devices and The Things Stack, as well as how the data can be integrated with the ThingsEye IoT platform. 70 70 71 -[[image:1728379050044-764.png||height="424" width="1312"]] 91 +(% _mstvisible="1" %) 92 +(% _mstvisible="3" %)[[image:1732679444539-853.jpg||_mstalt="296933" _msthash="594" _mstvisible="5" height="388" width="1452"]] 72 72 94 +(% _mstvisible="1" %) 95 +== (% _msthash="733" _msttexthash="1191008" _mstvisible="2" %)3.2 Creat Integration for The Things Stack.(%%) == 73 73 74 -**So we have this device in the Tenant Device List. The next step will be how to use these value to make a nice dashboard for user's application.** 75 - 76 -= 3. Connect to The Things Stack = 77 - 78 -== 3.1 Network Structure == 79 - 80 - 81 -== 3.2 Creat Integration for The Things Stack. == 82 - 83 -(% class="lead" %) 97 +(% class="lead" _msthash="732" _msttexthash="255775" _mstvisible="1" %) 84 84 Add Integration 85 85 86 -[[image:1728535775119-971.png||height="456" width="1087"]] 100 +(% _mstvisible="1" %) 101 +(% _mstvisible="3" %)[[image:1728535775119-971.png||_mstalt="297661" _msthash="596" _mstvisible="5" height="423" width="1007"]] 87 87 88 88 89 -(% class="lead" %) 104 +(% class="lead" _msthash="731" _msttexthash="448994" _mstvisible="1" %) 90 90 Choose Connection Type 91 91 92 -[[image:1728535857345-950.png]] 107 +(% _mstvisible="1" %) 108 +(% _mstvisible="3" %)[[image:1728535857345-950.png||_mstalt="297154" _msthash="598" _mstvisible="5" height="257" width="403"]] 93 93 94 94 95 -(% class="lead" %) 111 +(% class="lead" _msthash="730" _msttexthash="762996" _mstvisible="1" %) 96 96 Input Uplink Data Converter Code 97 97 98 -[[image:1728535941851-388.png||height="466" width="398"]] 114 +(% _mstvisible="1" %) 115 +(% _mstvisible="3" %)[[image:1728535941851-388.png||_mstalt="297856" _msthash="600" _mstvisible="5" height="466" width="398"]] 99 99 117 +(% _msthash="729" _msttexthash="16454490" _mstvisible="1" %) 100 100 Demo JavaScript Code: [[https:~~/~~/raw.githubusercontent.com/ThingsEye-io/te-platform/refs/heads/main/Data%20Converters/The_Things_Network_MQTT_Uplink_Converter.js >>https://raw.githubusercontent.com/ThingsEye-io/te-platform/refs/heads/main/Data%20Converters/The_Things_Network_MQTT_Uplink_Converter.js]] 101 101 102 102 103 -(% class="lead" %) 121 +(% class="lead" _msthash="728" _msttexthash="532480" _mstvisible="1" %) 104 104 Input Downlink Converter 105 105 106 -[[image:1728536142721-488.png||height="470" width="407"]] 124 +(% _mstvisible="1" %) 125 +(% _mstvisible="3" %)[[image:1728536142721-488.png||_mstalt="296127" _msthash="602" _mstvisible="5" height="470" width="407"]] 107 107 127 +(% _msthash="727" _msttexthash="19064695" _mstvisible="1" %) 108 108 Example Javascript Code as below: [[https:~~/~~/raw.githubusercontent.com/ThingsEye-io/te-platform/refs/heads/main/Data%20Converters/The_Things_Network_MQTT_Downlink_Converter.js>>https://raw.githubusercontent.com/ThingsEye-io/te-platform/refs/heads/main/Data%20Converters/The_Things_Network_MQTT_Downlink_Converter.js]] 109 109 110 110 111 -(% class="lead" %) 131 +(% class="lead" _msthash="726" _msttexthash="1724853" _mstvisible="1" %) 112 112 Set up Connection to The Things Network application 113 113 114 -[[image:1728536305503-380.png||height="510" width="1206"]] 134 +(% _mstvisible="1" %) 135 +(% _mstvisible="3" %)[[image:1728536305503-380.png||_mstalt="293254" _msthash="604" _mstvisible="5" height="431" width="1019"]] 115 115 116 116 117 117 118 -(% class="lead" %) 139 +(% class="lead" _msthash="725" _msttexthash="851097" _mstvisible="1" %) 119 119 Test Connection & Add iIntegration 120 120 121 -[[image:1728536374214-962.png]] 142 +(% _mstvisible="1" %) 143 +(% _mstvisible="3" %)[[image:1728536374214-962.png||_mstalt="295893" _msthash="606" _mstvisible="5" height="380" width="1024"]] 122 122 145 +(% _msthash="724" _msttexthash="1177579" _mstvisible="1" %) 123 123 After add , we can see the integration here: 124 124 125 -[[image:1728536420275-153.png||height="208" width="1404"]] 148 +(% _mstvisible="1" %) 149 +(% _mstvisible="3" %)[[image:1728536420275-153.png||_mstalt="293748" _msthash="608" _mstvisible="5" height="152" width="1026"]] 126 126 127 127 128 -== 3.3 Test Uplink == 152 +(% _mstvisible="1" %) 153 +== (% _msthash="723" _msttexthash="213447" _mstvisible="2" %)3.3 Test Uplink(%%) == 129 129 155 +(% _msthash="722" _msttexthash="7855835" _mstvisible="1" %) 130 130 We can use Simulate Uplink to simulate an uplink in the things stack. Then we should be able to see the message in ThingsEye 131 131 132 -[[image:1728536524638-768.png||height="493" width="1071"]] 158 +(% _mstvisible="1" %) 159 +(% _mstvisible="3" %)[[image:1728536524638-768.png||_mstalt="298870" _msthash="610" _mstvisible="5" height="473" width="1028"]] 133 133 134 134 135 -[[image:1728536541040-814.png]] 162 +(% _mstvisible="1" %) 163 +(% _mstvisible="3" %)[[image:1728536541040-814.png||_mstalt="293215" _msthash="612" _mstvisible="5" height="424" width="1026"]] 136 136 137 -= 4.Connect chirpstack to Thingseye by way of MQTT = 138 138 139 -* **How to connect chirpstack to Thingseye by way of MQTT? The following tutorial will show you** 166 +(% _mstvisible="1" %) 167 +---- 140 140 141 -== 4.1 Thingseye adds MQTT integration == 169 +(% _mstvisible="1" %) 170 += (% _msthash="721" _msttexthash="1472211" _mstvisible="2" %)4.Connect chirpstack to Thingseye by way of MQTT(%%) = 142 142 172 +(% _mstvisible="1" %) 173 +* (% _msthash="720" _msttexthash="4693741" _mstvisible="3" %)**How to connect chirpstack to Thingseye by way of MQTT? The following tutorial will show you** 174 + 175 +(% _mstvisible="1" %) 176 +== (% _msthash="719" _msttexthash="410371" _mstvisible="2" %)4.1 Network Structure(%%) == 177 + 178 +(% _msthash="718" _msttexthash="14117480" _mstvisible="1" %) 179 +The network diagram below illustrates the connection between the devices andchirpstack, as well as how the data can be integrated with the ThingsEye IoT platform. 180 + 181 +(% _mstvisible="1" %) 182 +(% _mstvisible="3" %)[[image:1732679647697-982.jpg||_mstalt="299884" _msthash="614" _mstvisible="5" height="399" width="1492"]] 183 + 184 +(% _mstvisible="1" %) 185 +== (% _msthash="717" _msttexthash="897286" _mstvisible="2" %)4.2 Thingseye adds MQTT integration(%%) == 186 + 187 +(% _msthash="716" _msttexthash="15186782" _mstvisible="1" %) 143 143 Go to the Integrations page in the Integrations center section. Click the plus button to start adding a new integration. Select the type "MQTT" integration and click "Next"; 144 144 145 -[[image:图片1.png]] 190 +(% _mstvisible="1" %) 191 +(% _mstvisible="3" %)[[image:1758762634175-353.png||_mstalt="295893" _msthash="616" _mstvisible="5" height="783" width="1020"]] 146 146 147 -== 4.2 Add an uplink and downlink data converter == 193 +(% _mstvisible="1" %) 194 +== (% _msthash="715" _msttexthash="1329445" _mstvisible="2" %)4.3 Add an uplink and downlink data converter(%%) == 148 148 149 -In the function decoder field, specify the script to parse and transform the data. 196 +(% _msthash="714" _msttexthash="4516408" _mstvisible="1" %) 197 +In the function decoder field, specify the uplink script to parse and transform the data. 150 150 151 -[[image:图片2.png]] 199 +(% _mstvisible="1" %) 200 +(% _mstvisible="3" %)[[image:1758763061703-634.png||_mstalt="294671" _msthash="618" _mstvisible="5" height="783" width="1020"]] 152 152 153 -* **Uplink——JavaScript:** 202 +(% _mstvisible="1" %) 203 +* (% _msthash="713" _msttexthash="24445408" _mstvisible="3" %)**Uplink——JavaScript:** 154 154 205 +(% _msthash="712" _msttexthash="792233" _mstvisible="1" %) 155 155 var data = decodeToJson(payload); 156 156 208 +(% _msthash="711" _msttexthash="1379794" _mstvisible="1" %) 157 157 var deviceName = data.deviceInfo.deviceName; 158 158 211 +(% _msthash="710" _msttexthash="1079247" _mstvisible="1" %) 159 159 var deviceType = data.applicationName; 160 160 214 +(% _msthash="709" _msttexthash="909376" _mstvisible="1" %) 161 161 var devEui = data.deviceInfo.devEui 162 162 217 +(% _msthash="708" _msttexthash="861510" _mstvisible="1" %) 163 163 var label = data.deviceInfo.devEui 164 164 220 +(% _msthash="707" _msttexthash="195442" _mstvisible="1" %) 165 165 var model = {}; 166 166 223 +(% _msthash="706" _msttexthash="435448" _mstvisible="1" %) 167 167 var data2 = data.object; 168 168 226 +(% _msthash="705" _msttexthash="326274" _mstvisible="1" %) 169 169 var flg = data.fPort 170 170 229 +(% _msthash="704" _msttexthash="380965" _mstvisible="1" %) 171 171 for (var key in data2) { 172 172 232 +(% _msthash="703" _msttexthash="43058977" _mstvisible="1" %) 173 173 ~/~/ 将属性名存入新对象中 174 174 235 +(% _msthash="702" _msttexthash="475553" _mstvisible="1" %) 175 175 model[key] = data2[key]; 176 176 238 +(% _mstvisible="1" %) 177 177 } 178 178 241 +(% _msthash="701" _msttexthash="757653" _mstvisible="1" %) 179 179 ~/~/var obj = {"devid":deviceName} 180 180 244 +(% _msthash="700" _msttexthash="183287" _mstvisible="1" %) 181 181 var result = { 182 182 247 +(% _msthash="699" _msttexthash="473265" _mstvisible="1" %) 183 183 deviceName: deviceName, 184 184 250 +(% _msthash="698" _msttexthash="489918" _mstvisible="1" %) 185 185 deviceType: deviceType, 186 186 253 +(% _msthash="697" _msttexthash="297271" _mstvisible="1" %) 187 187 telemetry: model, 188 188 256 +(% _msthash="696" _msttexthash="446498" _mstvisible="1" %) 189 189 groupName: "Case Study", 190 190 259 +(% _msthash="695" _msttexthash="217633" _mstvisible="1" %) 191 191 ~/~/label:label, 192 192 262 +(% _msthash="694" _msttexthash="685984" _mstvisible="1" %) 193 193 attributes:{"devEui":devEui, 194 194 265 +(% _msthash="693" _msttexthash="386308" _mstvisible="1" %) 195 195 ~/~/"timevalue":"test", 196 196 268 +(% _msthash="692" _msttexthash="551772" _mstvisible="1" %) 197 197 "inactivityTimeout":1260000 198 198 271 +(% _msthash="691" _msttexthash="894530" _mstvisible="1" %) 199 199 ~/~/ "High_humidity_alarm":"not set", 200 200 274 +(% _msthash="690" _msttexthash="1052753" _mstvisible="1" %) 201 201 ~/~/ "High_temperature_alarm":"not set", 202 202 277 +(% _msthash="689" _msttexthash="848783" _mstvisible="1" %) 203 203 ~/~/ "Low_humidity_alarm":"not set", 204 204 280 +(% _msthash="688" _msttexthash="1002833" _mstvisible="1" %) 205 205 ~/~/ "Low_temperature_alarm":"not set", 206 206 283 +(% _msthash="687" _msttexthash="773682" _mstvisible="1" %) 207 207 ~/~/ "Low_voltage_alarm":"not set" 208 208 286 +(% _msthash="686" _msttexthash="2381015" _mstvisible="1" %) 209 209 ~/~/"customerName": "Civionic Engineering & Consulting (2014) Inc." 210 210 289 +(% _mstvisible="1" %) 211 211 } 212 212 292 +(% _mstvisible="1" %) 213 213 }; 214 214 295 +(% _msthash="685" _msttexthash="937586" _mstvisible="1" %) 215 215 function decodeToString(payload) { 216 216 298 +(% _msthash="684" _msttexthash="1818154" _mstvisible="1" %) 217 217 return String.fromCharCode.apply(String, payload); 218 218 301 +(% _mstvisible="1" %) 219 219 } 220 220 304 +(% _msthash="683" _msttexthash="834496" _mstvisible="1" %) 221 221 function decodeToJson(payload) { 222 222 307 +(% _msthash="682" _msttexthash="850616" _mstvisible="1" %) 223 223 var str = decodeToString(payload); 224 224 310 +(% _msthash="681" _msttexthash="512044" _mstvisible="1" %) 225 225 var data = JSON.parse(str); 226 226 313 +(% _msthash="680" _msttexthash="173511" _mstvisible="1" %) 227 227 return data; 228 228 316 +(% _mstvisible="1" %) 229 229 } 230 230 319 +(% _msthash="679" _msttexthash="233116" _mstvisible="1" %) 231 231 return result; 232 232 233 -[[image:图片3.png]] 322 +(% _mstvisible="1" %) 323 +---- 234 234 235 -* **Dowblink——JavaScript:** 325 +(% _msthash="678" _msttexthash="4743882" _mstvisible="1" %) 326 +In the function decoder field, specify the downlink script to parse and transform the data. 236 236 328 +(% _mstvisible="1" %) 329 +(% _mstvisible="3" %)[[image:1758763019466-819.png||_mstalt="298311" _msthash="620" _mstvisible="5" height="787" width="1022"]] 330 + 331 +(% _mstvisible="1" %) 332 +* (% _msthash="677" _msttexthash="26632970" _mstvisible="3" %)**Dowblink——JavaScript:** 333 + 334 +(% _msthash="676" _msttexthash="2052284" _mstvisible="1" %) 237 237 ~/~/ Encode downlink data from incoming Rule Engine message 238 238 337 +(% _msthash="675" _msttexthash="1638546" _mstvisible="1" %) 239 239 ~/~/ msg - JSON message payload downlink message json 240 240 340 +(% _msthash="674" _msttexthash="3854773" _mstvisible="1" %) 241 241 ~/~/ msgType - type of message, for ex. 'ATTRIBUTES_UPDATED', 'POST_TELEMETRY_REQUEST', etc. 242 242 343 +(% _msthash="673" _msttexthash="3368742" _mstvisible="1" %) 243 243 ~/~/ metadata - list of key-value pairs with additional data about the message 244 244 346 +(% _msthash="672" _msttexthash="8087157" _mstvisible="1" %) 245 245 ~/~/ integrationMetadata - list of key-value pairs with additional data defined in Integration executing this converter 246 246 349 +(% _msthash="671" _msttexthash="199069" _mstvisible="1" %) 247 247 ~/~/ /~*~* Encoder ~*~*/ 248 248 352 +(% _msthash="670" _msttexthash="455715" _mstvisible="1" %) 249 249 ~/~/var data = {"value":99}; 250 250 355 +(% _msthash="669" _msttexthash="1757431" _mstvisible="1" %) 251 251 ~/~/ ~/~/ Process data from incoming message and metadata 252 252 358 +(% _msthash="668" _msttexthash="1852279" _mstvisible="1" %) 253 253 ~/~/ data.tempFreq = msg.temperatureUploadFrequency; 254 254 361 +(% _msthash="667" _msttexthash="1572038" _mstvisible="1" %) 255 255 ~/~/ data.humFreq = msg.humidityUploadFrequency; 256 256 364 +(% _msthash="666" _msttexthash="2049957" _mstvisible="1" %) 257 257 ~/~/ data.devSerialNumber = metadata['ss_serialNumber']; 258 258 367 +(% _msthash="665" _msttexthash="1576731" _mstvisible="1" %) 259 259 ~/~/ ~/~/ Result object with encoded downlink payload 260 260 370 +(% _msthash="664" _msttexthash="183287" _mstvisible="1" %) 261 261 var result = { 262 262 373 +(% _msthash="663" _msttexthash="2331082" _mstvisible="1" %) 263 263 ~/~/ downlink data content type: JSON, TEXT or BINARY (base64 format) 264 264 376 +(% _msthash="662" _msttexthash="322049" _mstvisible="1" %) 265 265 contentType: "TEXT", 266 266 379 +(% _msthash="661" _msttexthash="249210" _mstvisible="1" %) 267 267 ~/~/ downlink data 268 268 382 +(% _msthash="660" _msttexthash="1524952" _mstvisible="1" %) 269 269 data: msg.shared_value ,~/~/JSON.stringify(data), 270 270 385 +(% _msthash="659" _msttexthash="2147704" _mstvisible="1" %) 271 271 ~/~/ Optional metadata object presented in key/value format 272 272 388 +(% _msthash="658" _msttexthash="150189" _mstvisible="1" %) 273 273 metadata: { 274 274 391 +(% _msthash="657" _msttexthash="1241370" _mstvisible="1" %) 275 275 topic: '/test/down/'+metadata.deviceName 276 276 394 +(% _mstvisible="1" %) 277 277 } 278 278 397 +(% _mstvisible="1" %) 279 279 }; 280 280 400 +(% _msthash="656" _msttexthash="233116" _mstvisible="1" %) 281 281 return result; 282 282 283 -== 4.3 Configure the connection == 403 +(% _mstvisible="1" %) 404 +---- 284 284 406 +(% _mstvisible="1" %) 407 +== (% _msthash="655" _msttexthash="640094" _mstvisible="2" %)4.4 Configure the connection(%%) == 408 + 409 +(% _msthash="654" _msttexthash="1780675" _mstvisible="1" %) 285 285 Generate MQTT certificate integrated on chirpstack 286 286 412 +(% _msthash="653" _msttexthash="3723447" _mstvisible="1" %) 287 287 Chirpstack generates CA certificate, TLS certificate, and TLS key respectively 288 288 415 +(% _msthash="652" _msttexthash="5123092" _mstvisible="1" %) 289 289 They correspond to the CA certificate file, Certificate file, and Private key file on thingseye 290 290 291 -[[image:图片4.png]] 418 +(% _mstvisible="1" %) 419 +(% _mstvisible="3" %)[[image:图片4.png||_mstalt="5131737" _msthash="622" _mstvisible="5" height="504" width="1016"]] 292 292 293 -[[image:图片5.png||height="630" width="1269"]] 421 +(% _mstvisible="1" %) 422 +(% _mstvisible="3" %)[[image:图片5.png||_mstalt="5131854" _msthash="624" _mstvisible="5" height="505" width="1017"]] 294 294 424 +(% _mstvisible="1" %) 295 295 * Copy the contents of the certificates and paste them into the linked file below, a total of three certificates are required 296 296 297 -**Integrated Certificate File demo Download Address:** 427 +(% _mstvisible="1" %) 428 +(% _msthash="650" _msttexthash="44967858" _mstvisible="2" %)**Integrated Certificate File demo Download Address:** 298 298 299 -[[https:~~/~~/github.com/ThingsEye-io/te-platform/tree/main/chirpstack>>https://github.com/ThingsEye-io/te-platform/tree/main/chirpstack]] 430 +(% _mstvisible="1" %) 431 +[[https:~~/~~/github.com/ThingsEye-io/te-platform/tree/main/chirpstack>>https://github.com/ThingsEye-io/te-platform/tree/main/chirpstack||_msthash="649" _msttexthash="3132909" _mstvisible="2"]] 300 300 433 +(% _msthash="648" _msttexthash="4037631" _mstvisible="1" %) 301 301 Enter the server address Host: lns1.thingseye.io on the Connection configuration 302 302 436 +(% _msthash="647" _msttexthash="93873" _mstvisible="1" %) 303 303 Port: 8883 304 304 439 +(% _msthash="646" _msttexthash="380666" _mstvisible="1" %) 305 305 Credentials type: PEM 306 306 442 +(% _msthash="645" _msttexthash="880399" _mstvisible="1" %) 307 307 Upload the certificate and key file 308 308 309 -[[image:图片6.png]] 445 +(% _mstvisible="1" %) 446 +(% _mstvisible="3" %)[[image:图片6.png||_mstalt="5131971" _msthash="626" _mstvisible="5" height="509" width="1026"]] 310 310 311 -[[image:图片7.png]] 448 +(% _mstvisible="1" %) 449 +(% _mstvisible="3" %)[[image:图片7.png||_mstalt="5132088" _msthash="628" _mstvisible="5" height="509" width="1025"]] 312 312 451 +(% _mstvisible="1" %) 452 +---- 453 + 454 +(% _msthash="644" _msttexthash="472992" _mstvisible="1" %) 313 313 The default for Topic is: 314 314 457 +(% _msthash="643" _msttexthash="2223559" _mstvisible="1" %) 315 315 application/**chirpstack application id**/device/+/event/up 316 316 317 -[[image:图片8.png]] 460 +(% _mstvisible="1" %) 461 +(% _mstvisible="3" %)[[image:图片8.png||_mstalt="5132205" _msthash="630" _mstvisible="5" height="508" width="1024"]] 318 318 319 319 320 -(% class="wikigeneratedid" %) 321 -[[image:屏幕截图 2024-11-25 095805.png||height="3 74" width="1272"]]464 +(% class="wikigeneratedid" _mstvisible="1" %) 465 +(% _mstvisible="3" %)[[image:屏幕截图 2024-11-25 095805.png||_mstalt="10831028" _msthash="632" _mstvisible="5" height="301" width="1024"]] 322 322 323 -== 4.4 Check the connection == 467 +(% _mstvisible="1" %) 468 +---- 324 324 325 -[[image:图片9.png]] 470 +(% _mstvisible="1" %) 471 +== (% _msthash="642" _msttexthash="471978" _mstvisible="2" %)4.5 Check the connection(%%) == 326 326 327 -[[image:图片10.png]] 473 +(% _mstvisible="1" %) 474 +(% _mstvisible="3" %)[[image:图片9.png||_mstalt="5132322" _msthash="634" _mstvisible="5" height="509" width="1025"]] 328 328 329 -= 5. Check Data Uplink Log = 476 +(% _mstvisible="1" %) 477 +(% _mstvisible="3" %)[[image:图片10.png||_mstalt="5142449" _msthash="636" _mstvisible="5" height="509" width="1026"]] 330 330 479 + 480 +(% _mstvisible="1" %) 481 +---- 482 + 483 +(% _mstvisible="1" %) 484 += (% _msthash="641" _msttexthash="418145" _mstvisible="2" %)5. Check Data Uplink Log(%%) = 485 + 486 +(% _msthash="640" _msttexthash="1422681" _mstvisible="1" %) 331 331 User can check the devices log in Intergration. 332 332 333 -[[image:1729562069134-315.png||height="587" width="723"]] 489 +(% _mstvisible="1" %) 490 +(% _mstvisible="3" %)[[image:1729562069134-315.png||_mstalt="294190" _msthash="638" _mstvisible="5" height="587" width="723"]]
- 1732679444539-853.jpg
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +180.5 KB - Content
- 1732679647697-982.jpg
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +179.2 KB - Content
- 1758762334133-608.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +161.4 KB - Content
- 1758762371290-726.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +215.2 KB - Content
- 1758762634175-353.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +213.8 KB - Content
- 1758762919291-489.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +209.4 KB - Content
- 1758763019466-819.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +227.9 KB - Content
- 1758763061703-634.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.hera - Size
-
... ... @@ -1,0 +1,1 @@ 1 +222.0 KB - Content