Last modified by Hera Guo on 2025/02/18 09:29

From version 11.1
edited by Chxy
on 2024/10/14 23:49
Change comment: There is no comment for this version
To version 2.1
edited by Chxy
on 2024/10/08 16:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -5,16 +5,12 @@
5 5  {{toc/}}
6 6  
7 7  
8 -= 1. Overview =
9 -
10 -
11 -
12 12  = 2. UDP Procotol  ~-~- Directly Connection =
13 13  
14 14  == 2.1 UDP Interface ==
15 15  
16 16  * Server Address: server1.thingseye.io
17 -* Port: 11562
13 +* Port: 11560
18 18  
19 19  The data sent to above UDP interface will not go directly to client's database.
20 20  
... ... @@ -25,7 +25,7 @@
25 25  
26 26  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 27  
28 -[[image:1728566363151-470.png]]
24 +[[image:1728362612869-443.png||height="454" width="540"]]
29 29  
30 30  In server side, Tenant Administrator can check this in Tenant UDP Server location.
31 31  
... ... @@ -38,96 +38,5 @@
38 38  We can see the message arrives, but it shows ERROR because the message doesn't follow with the UDP Server format.
39 39  
40 40  
41 -== 2.3 Test with Dragino NB device ==
42 42  
43 -=== 2.3.1 Configure NB-IoT End Node ===
44 -
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 -
47 -* Set to use ThingsEye UDP server: **AT+SERVADDR=server1.thingseye.io,11560**
48 -* Use UDP Uplink & Json protocol:** AT+PRO=2,5**
49 -* Equip with a NB-IoT SIM Card to access to NB-IoT Network.
50 -
51 -The S31-NB's cellular module has the IMEI: **863663062789483**
52 -
53 -
54 -=== 2.3.2 Check Uplink Data ===
55 -
56 -Re-activate the S31-NB, and we can see it in the debug window:
57 -
58 -[[image:1728378218744-800.png||height="431" width="1003"]]
59 -
60 -
61 -=== 2.3.3 Auto-Create Device ===
62 -
63 -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.
64 -
65 -[[image:1728378968101-683.png||height="273" width="1307"]]
66 -
67 -[[image:1728379050044-764.png||height="424" width="1312"]]
68 -
69 -
70 -**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.**
71 -
72 -
73 -
74 -= 3.  Connect to The Things Stack =
75 -
76 -== 3.1 Network Structure ==
77 -
78 -
79 -== 3.2 Creat Integration for The Things Stack. ==
80 -
81 -(% class="lead" %)
82 -Add Integration
83 -
84 -[[image:1728535775119-971.png||height="456" width="1087"]]
85 -
86 -
87 -(% class="lead" %)
88 -Choose Connection Type
89 -
90 -[[image:1728535857345-950.png]]
91 -
92 -
93 -(% class="lead" %)
94 -Input Uplink Data Converter Code
95 -
96 -[[image:1728535941851-388.png||height="466" width="398"]]
97 -
98 -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]]
99 -
100 -
101 -(% class="lead" %)
102 -Input Downlink Converter
103 -
104 -[[image:1728536142721-488.png||height="470" width="407"]]
105 -
106 -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]]
107 -
108 -
109 -(% class="lead" %)
110 -Set up Connection to The Things Network application
111 -
112 -[[image:1728536305503-380.png||height="510" width="1206"]]
113 -
114 -
115 -
116 -(% class="lead" %)
117 -Test Connection & Add iIntegration
118 -
119 -[[image:1728536374214-962.png]]
120 -
121 -After add , we can see the integration here:
122 -
123 -[[image:1728536420275-153.png||height="208" width="1404"]]
124 -
125 -
126 -== 3.3 Test Uplink ==
127 -
128 -We can use Simulate Uplink to simulate an uplink in the things stack. Then we should be able to see the message in ThingsEye
129 -
130 -[[image:1728536524638-768.png||height="493" width="1071"]]
131 -
132 -
133 -[[image:1728536541040-814.png]]
38 +
1728378195043-766.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -146.8 KB
Content
1728378218744-800.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -104.9 KB
Content
1728378968101-683.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -37.2 KB
Content
1728379050044-764.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -97.6 KB
Content
1728535775119-971.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -84.1 KB
Content
1728535857345-950.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -29.4 KB
Content
1728535941851-388.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -50.3 KB
Content
1728536142721-488.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -55.5 KB
Content
1728536305503-380.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -135.2 KB
Content
1728536374214-962.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -11.8 KB
Content
1728536420275-153.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -35.3 KB
Content
1728536524638-768.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -46.6 KB
Content
1728536541040-814.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -29.0 KB
Content
1728566363151-470.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.EdwinChen
Size
... ... @@ -1,1 +1,0 @@
1 -61.9 KB
Content