Changes for page Connect Devices to ThingsEye
Last modified by Hera Guo on 2025/02/18 09:29
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 16 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,8 +7,8 @@ 7 7 8 8 = 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. 11 11 11 + 12 12 = 2. UDP Procotol ~-~- Directly Connection = 13 13 14 14 == 2.1 UDP Interface == ... ... @@ -20,6 +20,7 @@ 20 20 21 21 Please contact ThingsEye team for detail how to forward data to client. 22 22 23 + 23 23 == 2.2 Test UDP Interface via Socket Tool == 24 24 25 25 Download the UDP Test Tool from: [[https:~~/~~/sourceforge.net/projects/sockettest/ >>https://sourceforge.net/projects/sockettest/]]. Run this tool, and input the server address and UDP port as below and click send. ... ... @@ -36,6 +36,7 @@ 36 36 37 37 We can see the message arrives, but it shows ERROR because the message doesn't follow with the UDP Server format. 38 38 40 + 39 39 == 2.3 Test with Dragino NB device == 40 40 41 41 === 2.3.1 Configure NB-IoT End Node === ... ... @@ -42,12 +42,13 @@ 42 42 43 43 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 44 44 45 -* Set to use ThingsEye UDP server: **AT+SERVADDR=server1.thingseye.io,1156 0**47 +* Set to use ThingsEye UDP server: **AT+SERVADDR=server1.thingseye.io,11562** 46 46 * Use UDP Uplink & Json protocol:** AT+PRO=2,5** 47 47 * Equip with a NB-IoT SIM Card to access to NB-IoT Network. 48 48 49 49 The S31-NB's cellular module has the IMEI: **863663062789483** 50 50 53 + 51 51 === 2.3.2 Check Uplink Data === 52 52 53 53 Re-activate the S31-NB, and we can see it in the debug window: ... ... @@ -54,6 +54,7 @@ 54 54 55 55 [[image:1728378218744-800.png||height="431" width="1003"]] 56 56 60 + 57 57 === 2.3.3 Auto-Create Device === 58 58 59 59 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. ... ... @@ -65,14 +65,13 @@ 65 65 66 66 **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.** 67 67 72 + 73 + 68 68 = 3. Connect to The Things Stack = 69 69 70 70 == 3.1 Network Structure == 71 71 72 -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. 73 73 74 -[[image:1732679444539-853.jpg||height="388" width="1452"]] 75 - 76 76 == 3.2 Creat Integration for The Things Stack. == 77 77 78 78 (% class="lead" %) ... ... @@ -133,23 +133,17 @@ 133 133 134 134 * **How to connect chirpstack to Thingseye by way of MQTT? The following tutorial will show you** 135 135 136 -== 4.1 NetworkStructure==139 +== 4.1 Thingseye adds MQTT integration == 137 137 138 -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. 139 - 140 -[[image:1732679647697-982.jpg||height="399" width="1492"]] 141 - 142 -== 4.2 Thingseye adds MQTT integration == 143 - 144 144 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"; 145 145 146 -[[image:图片1.png]] 143 +[[image:图片1.png||height="655" width="1320"]] 147 147 148 -== 4. 3Add an uplink and downlink data converter ==145 +== 4.2 Add an uplink and downlink data converter == 149 149 150 150 In the function decoder field, specify the script to parse and transform the data. 151 151 152 -[[image:图片2.png]] 149 +[[image:图片2.png||height="653" width="1315"]] 153 153 154 154 * **Uplink——JavaScript:** 155 155 ... ... @@ -231,7 +231,7 @@ 231 231 232 232 return result; 233 233 234 -[[image:图片3.png]] 231 +[[image:图片3.png||height="657" width="1324"]] 235 235 236 236 * **Dowblink——JavaScript:** 237 237 ... ... @@ -281,7 +281,7 @@ 281 281 282 282 return result; 283 283 284 -== 4. 4Configure the connection ==281 +== 4.3 Configure the connection == 285 285 286 286 Generate MQTT certificate integrated on chirpstack 287 287 ... ... @@ -289,9 +289,9 @@ 289 289 290 290 They correspond to the CA certificate file, Certificate file, and Private key file on thingseye 291 291 292 -[[image:图片4.png]] 289 +[[image:图片4.png||height="669" width="1348"]] 293 293 294 -[[image:图片5.png||height="6 30" width="1269"]]291 +[[image:图片5.png||height="669" width="1348"]] 295 295 296 296 * Copy the contents of the certificates and paste them into the linked file below, a total of three certificates are required 297 297 ... ... @@ -307,25 +307,24 @@ 307 307 308 308 Upload the certificate and key file 309 309 310 -[[image:图片6.png]] 307 +[[image:图片6.png||height="672" width="1353"]] 311 311 312 -[[image:图片7.png]] 309 +[[image:图片7.png||height="671" width="1352"]] 313 313 314 314 The default for Topic is: 315 315 316 316 application/**chirpstack application id**/device/+/event/up 317 317 318 -[[image:图片8.png]] 315 +[[image:图片8.png||height="673" width="1356"]] 319 319 317 +[[image:1732500689044-955.png]] 320 320 321 -(% class="wikigeneratedid" %) 322 -[[image:屏幕截图 2024-11-25 095805.png||height="374" width="1272"]] 319 +== 4.4 Check the connection == 323 323 324 - == 4.5 Check the connection==321 +[[image:图片9.png||height="718" width="1446"]] 325 325 326 -[[image:图片 9.png]]323 +[[image:图片10.png||height="711" width="1432"]] 327 327 328 -[[image:图片10.png]] 329 329 330 330 = 5. Check Data Uplink Log = 331 331
- 1732678750938-753.jpg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -173.5 KB - Content
- 1732679080974-799.jpg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -176.4 KB - Content
- 1732679444539-853.jpg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -180.5 KB - Content
- 1732679647697-982.jpg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -179.2 KB - Content
- 图片1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -123.1 KB - Content
- 图片10.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -173.4 KB - Content
- 图片2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -163.3 KB - Content
- 图片3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -124.8 KB - Content
- 图片4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -68.8 KB - Content
- 图片5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -98.5 KB - Content
- 图片6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -136.5 KB - Content
- 图片7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -143.5 KB - Content
- 图片8.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -151.0 KB - Content
- 图片9.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -134.6 KB - Content
- 屏幕截图 2024-11-25 095805.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -45.7 KB - Content
- 屏幕截图 2024-11-27 113616.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.hera - Size
-
... ... @@ -1,1 +1,0 @@ 1 -117.5 KB - Content