Last modified by Hera Guo on 2025/09/25 09:23

From version 21.1
edited by Hera Guo
on 2025/02/18 09:29
Change comment: There is no comment for this version
To version 22.1
edited by Hera Guo
on 2025/09/25 09:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -7,8 +7,9 @@
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.
10 +This instructions will show you how to connect a device that has been registered to the server to the Thingseye platform.
11 11  
12 +
12 12  = 2. UDP Procotol  ~-~- Directly Connection =
13 13  
14 14  == 2.1 UDP Interface ==
... ... @@ -22,26 +22,13 @@
22 22  
23 23  **Note:Currently udp connections require port forwarding, please contact the ThingsEye team to inform them of your device's IMEI before connecting.**
24 24  
25 -== 2.2 Test UDP Interface via Socket Tool ==
26 26  
27 -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.
27 +----
28 28  
29 -[[image:1728566363151-470.png]]
29 +== 2.2 Test with Dragino NB device ==
30 30  
31 -In server side, Tenant Administrator can check this in Tenant UDP Server location.
31 +=== 2.2.1 Configure NB-IoT End Node ===
32 32  
33 -[[image:1728362834430-749.png||height="510" width="1667"]]
34 -
35 -Click and see the debug info as below:
36 -
37 -[[image:1728363020699-203.png]]
38 -
39 -We can see the message arrives, but it shows ERROR because the message doesn't follow with the UDP Server format.
40 -
41 -== 2.3 Test with Dragino NB device ==
42 -
43 -=== 2.3.1 Configure NB-IoT End Node ===
44 -
45 45  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
46 46  
47 47  * Set to use ThingsEye UDP server: **AT+SERVADDR=server1.thingseye.io,11560**
... ... @@ -50,19 +50,30 @@
50 50  
51 51  The S31-NB's cellular module has the IMEI: **863663062789483**
52 52  
53 -=== 2.3.2 Check Uplink Data ===
41 +=== 2.2.2 Check Uplink Data ===
54 54  
43 +Turn on debug mod
44 +
45 +[[image:1758762334133-608.png||height="494" width="1003"]]
46 +
47 +----
48 +
55 55  Re-activate the S31-NB, and we can see it in the debug window:
56 56  
57 -[[image:1728378218744-800.png||height="431" width="1003"]]
51 +[[image:1758762371290-726.png||height="528" width="1005"]]
58 58  
53 +[[image:1728378218744-800.png||_mstalt="295269" height="431" width="1003"]]
54 +
55 +
56 +----
57 +
59 59  === 2.3.3 Auto-Create Device ===
60 60  
61 61  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.
62 62  
63 -[[image:1728378968101-683.png||height="273" width="1307"]]
62 +[[image:1728378968101-683.png||_mstalt="297154" height="210" width="1005"]]
64 64  
65 -[[image:1728379050044-764.png||height="424" width="1312"]]
64 +[[image:1728379050044-764.png||_mstalt="295282" height="326" width="1009"]]
66 66  
67 67  
68 68  **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.**
... ... @@ -73,7 +73,7 @@
73 73  
74 74  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.
75 75  
76 -[[image:1732679444539-853.jpg||height="388" width="1452"]]
75 +[[image:1732679444539-853.jpg||_mstalt="296933" height="388" width="1452"]]
77 77  
78 78  == 3.2 Creat Integration for The Things Stack. ==
79 79  
... ... @@ -80,19 +80,19 @@
80 80  (% class="lead" %)
81 81  Add Integration
82 82  
83 -[[image:1728535775119-971.png||height="456" width="1087"]]
82 +[[image:1728535775119-971.png||_mstalt="297661" height="456" width="1087"]]
84 84  
85 85  
86 86  (% class="lead" %)
87 87  Choose Connection Type
88 88  
89 -[[image:1728535857345-950.png]]
88 +[[image:1728535857345-950.png||_mstalt="297154"]]
90 90  
91 91  
92 92  (% class="lead" %)
93 93  Input Uplink Data Converter Code
94 94  
95 -[[image:1728535941851-388.png||height="466" width="398"]]
94 +[[image:1728535941851-388.png||_mstalt="297856" height="466" width="398"]]
96 96  
97 97  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]]
98 98  
... ... @@ -100,7 +100,7 @@
100 100  (% class="lead" %)
101 101  Input Downlink Converter
102 102  
103 -[[image:1728536142721-488.png||height="470" width="407"]]
102 +[[image:1728536142721-488.png||_mstalt="296127" height="470" width="407"]]
104 104  
105 105  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]]
106 106  
... ... @@ -108,7 +108,7 @@
108 108  (% class="lead" %)
109 109  Set up Connection to The Things Network application
110 110  
111 -[[image:1728536305503-380.png||height="510" width="1206"]]
110 +[[image:1728536305503-380.png||_mstalt="293254" height="510" width="1206"]]
112 112  
113 113  
114 114  
... ... @@ -115,11 +115,11 @@
115 115  (% class="lead" %)
116 116  Test Connection & Add iIntegration
117 117  
118 -[[image:1728536374214-962.png]]
117 +[[image:1728536374214-962.png||_mstalt="295893"]]
119 119  
120 120  After add , we can see the integration here:
121 121  
122 -[[image:1728536420275-153.png||height="208" width="1404"]]
121 +[[image:1728536420275-153.png||_mstalt="293748" height="208" width="1404"]]
123 123  
124 124  
125 125  == 3.3 Test Uplink ==
... ... @@ -126,10 +126,10 @@
126 126  
127 127  We can use Simulate Uplink to simulate an uplink in the things stack. Then we should be able to see the message in ThingsEye
128 128  
129 -[[image:1728536524638-768.png||height="493" width="1071"]]
128 +[[image:1728536524638-768.png||_mstalt="298870" height="493" width="1071"]]
130 130  
131 131  
132 -[[image:1728536541040-814.png]]
131 +[[image:1728536541040-814.png||_mstalt="293215"]]
133 133  
134 134  = 4.Connect chirpstack to Thingseye by way of MQTT =
135 135  
... ... @@ -139,19 +139,19 @@
139 139  
140 140  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.
141 141  
142 -[[image:1732679647697-982.jpg||height="399" width="1492"]]
141 +[[image:1732679647697-982.jpg||_mstalt="299884" height="399" width="1492"]]
143 143  
144 144  == 4.2 Thingseye adds MQTT integration ==
145 145  
146 146  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";
147 147  
148 -[[image:图片1.png]]
147 +[[image:1758762634175-353.png]]
149 149  
150 150  == 4.3 Add an uplink and downlink data converter ==
151 151  
152 152  In the function decoder field, specify the script to parse and transform the data.
153 153  
154 -[[image:图片2.png]]
153 +[[image:图片2.png||_mstalt="5131503"]]
155 155  
156 156  * **Uplink——JavaScript:**
157 157  
... ... @@ -233,7 +233,7 @@
233 233  
234 234  return result;
235 235  
236 -[[image:图片3.png]]
235 +[[image:图片3.png||_mstalt="5131620"]]
237 237  
238 238  * **Dowblink——JavaScript:**
239 239  
... ... @@ -291,9 +291,9 @@
291 291  
292 292  They correspond to the CA certificate file, Certificate file, and Private key file on thingseye
293 293  
294 -[[image:图片4.png]]
293 +[[image:图片4.png||_mstalt="5131737"]]
295 295  
296 -[[image:图片5.png||height="630" width="1269"]]
295 +[[image:图片5.png||_mstalt="5131854" height="630" width="1269"]]
297 297  
298 298  * Copy the contents of the certificates and paste them into the linked file below, a total of three certificates are required
299 299  
... ... @@ -309,28 +309,28 @@
309 309  
310 310  Upload the certificate and key file
311 311  
312 -[[image:图片6.png]]
311 +[[image:图片6.png||_mstalt="5131971"]]
313 313  
314 -[[image:图片7.png]]
313 +[[image:图片7.png||_mstalt="5132088"]]
315 315  
316 316  The default for Topic is:
317 317  
318 318  application/**chirpstack application id**/device/+/event/up
319 319  
320 -[[image:图片8.png]]
319 +[[image:图片8.png||_mstalt="5132205"]]
321 321  
322 322  
323 323  (% class="wikigeneratedid" %)
324 -[[image:屏幕截图 2024-11-25 095805.png||height="374" width="1272"]]
323 +[[image:屏幕截图 2024-11-25 095805.png||_mstalt="10831028" height="374" width="1272"]]
325 325  
326 326  == 4.5 Check the connection ==
327 327  
328 -[[image:图片9.png]]
327 +[[image:图片9.png||_mstalt="5132322"]]
329 329  
330 -[[image:图片10.png]]
329 +[[image:图片10.png||_mstalt="5142449"]]
331 331  
332 332  = 5. Check Data Uplink Log =
333 333  
334 334  User can check the devices log in Intergration.
335 335  
336 -[[image:1729562069134-315.png||height="587" width="723"]]
335 +[[image:1729562069134-315.png||_mstalt="294190" height="587" width="723"]]
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