Changes for page Connect Devices to ThingsEye
Last modified by Alec Chen on 2025/11/26 17:10
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -14,39 +14,52 @@ 14 14 This instructions will show you how to connect a device that has been registered to the server to the Thingseye platform. 15 15 16 16 17 -= (% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)2. UDP Protocol – Direct Connection(%%) = 17 +(% _mstvisible="1" %) 18 += (% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)2. UDP Procotol——直接连接(%%) = 18 18 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. 20 +(% _mstvisible="1" %) 21 +== (% _msthash="754" _msttexthash="8267792" _mstvisible="2" %)2.1 UDP接口(%%) == 23 23 24 -(% _msthash="755" _msttexthash="40707030" _mstvisible="2" %)For detailed information on how to forward data to clients, please contact the ThingsEye team. 23 +(% _mstvisible="1" %) 24 +* 服务器地址:server1.thingseye.io 25 +* 端口:11560 25 25 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. 27 +(% _msthash="751" _msttexthash="151236319" _mstvisible="1" %) 28 +发送到上方UDP接口的数据不会直接进入客户端数据库。 27 27 30 +(% _msthash="750" _msttexthash="169541242" _mstvisible="1" %) 31 +如需详细了解如何将数据转发给客户,请联系ThingsEye团队。 28 28 29 29 (% _mstvisible="1" %) 30 - ----34 +(% _msthash="749" _msttexthash="321726288" _mstvisible="2" %)**注意:目前 UDP 连接需要端口转发,连接前请联系 ThingsEye 团队告知他们您设备的 IMEI。** 31 31 32 -== (% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)2.2 Testing with Dragino NB Device(%%) == 33 33 34 -=== (% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)2.2.1 Configuring the NB-IoT End Node(%%) === 37 +(% _mstvisible="1" %) 38 +---- 35 35 36 -(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)The device here is an S31-NB, and it has been configured as follows: 40 +(% _mstvisible="1" %) 41 +== (% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)2.2 使用Dragino NB装置的测试(%%) == 37 37 38 -(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)**Set to use the ThingsEye UDP server: AT+SERVADDR=server1.thingseye.io,11560** 43 +(% _mstvisible="1" %) 44 +=== (% _msthash="747" _msttexthash="11644464" _mstvisible="2" %)2.2.1 配置NB-IoT End Node(%%) === 39 39 40 -(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)**Use UDP uplink and JSON protocol: AT+PRO=2,5** 46 +(% _msthash="746" _msttexthash="126369737" _mstvisible="1" %) 47 +这里的设备是(% _istranslated="1" %)**[[S31-NB>>https://www.dragino.com/products/temperature-humidity-sensor/item/288-s31-nb-s31b-nb.html||_istranslated="1"]]**(%%):并且已经在下面配置了 41 41 42 -(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)Equipped with an NB-IoT card to access the NB-IoT network. 49 +(% _mstvisible="1" %) 50 +* 设置为使用 ThingsEye UDP 服务器:(% _istranslated="1" %)**AT+SERVADDR=server1.thingseye.io,11560** 51 +* 使用 UDP 上行链路和 JSON 协议:(% _istranslated="1" %)**AT+PRO=2,5** 52 +* 配备NB-IoT卡以接入NB-IoT网络。 43 43 44 -(% _msthash="748" _msttexthash="55449407" _mstvisible="2" %)The S31-NB's cellular module IMEI is: 863663062789483 54 +(% _msthash="742" _msttexthash="52789451" _mstvisible="1" %) 55 +S31-NB的蜂窝模块为IMEI:(% _istranslated="1" %)**863663062789483** 45 45 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 57 +(% _mstvisible="1" %) 58 +=== (% _msthash="741" _msttexthash="30173117" _mstvisible="2" %)2.2.2 检查上行数据(%%) === 49 49 60 +(% _msthash="740" _msttexthash="22249344" _mstvisible="1" %) 61 +开启调试模组 62 + 50 50 (% _mstvisible="1" %) 51 51 (% _mstvisible="3" %)[[image:1758762334133-608.png||_mstalt="294801" _msthash="584" _mstvisible="5" height="494" width="1003"]] 52 52 ... ... @@ -54,7 +54,7 @@ 54 54 ---- 55 55 56 56 (% _msthash="739" _msttexthash="156775723" _mstvisible="1" %) 57 - After reactivating theS31-NB, we can see it in the debug window:70 +重新激活S31-NB,我们可以在调试窗口中看到它: 58 58 59 59 (% _mstvisible="1" %) 60 60 (% _mstvisible="3" %)[[image:1758762371290-726.png||_mstalt="296088" _msthash="586" _mstvisible="5" height="528" width="1005"]] ... ... @@ -62,11 +62,15 @@ 62 62 (% _mstvisible="1" %) 63 63 (% _mstvisible="3" %)[[image:1728378218744-800.png||_mstalt="295269" _msthash="588" _mstvisible="5" height="431" width="1003"]] 64 64 78 +(% _mstvisible="1" %) 65 65 ---- 66 66 67 - ===2.2.4 Automatic DeviceCreation68 - Thedefaulttenant UDPserver is already configuredto decode Dragino-NB/-CB NB-IoT nodes. Therefore,each end nodesends datatotheserver. Thetenant will automatically create deviceson theserver. ===81 +(% _mstvisible="1" %) 82 +=== (% _msthash="738" _msttexthash="29837379" _mstvisible="2" %)2.2.4 自动创建设备(%%) === 69 69 84 +(% _msthash="737" _msttexthash="810829929" _mstvisible="1" %) 85 +默认(% _istranslated="1" %)**的租户UDP服务器**(%%)已经配置好解码Dragino -NB / -CB NB-IoT节点。所以每个端节点都会向服务器发送数据。租户会自动在服务器上创建设备。 86 + 70 70 (% _mstvisible="1" %) 71 71 (% _mstvisible="3" %)[[image:1728378968101-683.png||_mstalt="297154" _msthash="590" _mstvisible="5" height="210" width="1005"]] 72 72 ... ... @@ -92,7 +92,7 @@ 92 92 (% _mstvisible="1" %) 93 93 == (% _msthash="733" _msttexthash="1191008" _mstvisible="2" %)3.2 Creat Integration for The Things Stack.(%%) == 94 94 95 -(% class="lead"_msthash="732" _msttexthash="255775" _mstvisible="1" %)112 +(% _msthash="732" _msttexthash="255775" _mstvisible="1" class="lead" %) 96 96 Add Integration 97 97 98 98 (% _mstvisible="1" %) ... ... @@ -99,7 +99,7 @@ 99 99 (% _mstvisible="3" %)[[image:1728535775119-971.png||_mstalt="297661" _msthash="596" _mstvisible="5" height="423" width="1007"]] 100 100 101 101 102 -(% class="lead"_msthash="731" _msttexthash="448994" _mstvisible="1" %)119 +(% _msthash="731" _msttexthash="448994" _mstvisible="1" class="lead" %) 103 103 Choose Connection Type 104 104 105 105 (% _mstvisible="1" %) ... ... @@ -106,7 +106,7 @@ 106 106 (% _mstvisible="3" %)[[image:1728535857345-950.png||_mstalt="297154" _msthash="598" _mstvisible="5" height="257" width="403"]] 107 107 108 108 109 -(% class="lead"_msthash="730" _msttexthash="762996" _mstvisible="1" %)126 +(% _msthash="730" _msttexthash="762996" _mstvisible="1" class="lead" %) 110 110 Input Uplink Data Converter Code 111 111 112 112 (% _mstvisible="1" %) ... ... @@ -116,7 +116,7 @@ 116 116 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]] 117 117 118 118 119 -(% class="lead"_msthash="728" _msttexthash="532480" _mstvisible="1" %)136 +(% _msthash="728" _msttexthash="532480" _mstvisible="1" class="lead" %) 120 120 Input Downlink Converter 121 121 122 122 (% _mstvisible="1" %) ... ... @@ -126,7 +126,7 @@ 126 126 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]] 127 127 128 128 129 -(% class="lead"_msthash="726" _msttexthash="1724853" _mstvisible="1" %)146 +(% _msthash="726" _msttexthash="1724853" _mstvisible="1" class="lead" %) 130 130 Set up Connection to The Things Network application 131 131 132 132 (% _mstvisible="1" %) ... ... @@ -134,7 +134,7 @@ 134 134 135 135 136 136 137 -(% class="lead"_msthash="725" _msttexthash="851097" _mstvisible="1" %)154 +(% _msthash="725" _msttexthash="851097" _mstvisible="1" class="lead" %) 138 138 Test Connection & Add iIntegration 139 139 140 140 (% _mstvisible="1" %) ... ... @@ -459,7 +459,7 @@ 459 459 (% _mstvisible="3" %)[[image:图片8.png||_mstalt="5132205" _msthash="630" _mstvisible="5" height="508" width="1024"]] 460 460 461 461 462 -(% class="wikigeneratedid" _mstvisible="1"%)479 +(% _mstvisible="1" class="wikigeneratedid" %) 463 463 (% _mstvisible="3" %)[[image:屏幕截图 2024-11-25 095805.png||_mstalt="10831028" _msthash="632" _mstvisible="5" height="301" width="1024"]] 464 464 465 465 (% _mstvisible="1" %)