<
From version < 16.1 >
edited by Dilisi S
on 2025/03/03 02:45
To version < 21.1 >
edited by Dilisi S
on 2025/03/04 04:23
>
Change comment: Mar 3 edits - part 3

Summary

Details

Page properties
Content
... ... @@ -8,9 +8,11 @@
8 8  
9 9  = Introduction =
10 10  
11 -This document guides you on integrating Dragino -NB and -CB series devices with ThingsBoard. For this guide, we use ThingsBoard Cloud, which is one of the ThingsBoard versions that allows you to try it for free.
11 +This document guides you on integrating Dragino **-NB** and **-CB** series devices data with ThingsBoard. For this guide, we use ThingsBoard Cloud, which is one of the ThingsBoard versions that allows you to try it for free.
12 12  
13 +The **NB series** devices end with the suffix **-NB**, and the **CB series** devices end with the suffix **-CB**. For example, **S31B-NB** is an **NB device**, and **S31-CB** is a **CB device**.
13 13  
15 +
14 14  = Add New Device =
15 15  
16 16  In the left navigation, click **Entities** and then click **Devices**.
... ... @@ -19,7 +19,7 @@
19 19  [[image:ThingsBoard-Device.png]]
20 20  
21 21  
22 -On the **Devices**page, click on the ‘**+**’ button, and then click on the **Add new device**from the dropdown menu.
24 +On the **Devices **page, click on the ‘**+**’ button, and then click on the **Add new device **from the dropdown menu.
23 23  
24 24  
25 25  [[image:ThingsBoard-add-new-device.png||height="279" width="500"]]
... ... @@ -28,24 +28,26 @@
28 28  
29 29  = Data Converters =
30 30  
33 +In **ThingsBoard**, **Data Converters** are components used to transform incoming or outgoing data between different formats, typically to convert raw telemetry data from devices into a structured format that ThingsBoard can understand, or vice versa.
31 31  
35 +
32 32  == Uplink ==
33 33  
34 -In the left navigation, click Integrations center, and then click Data converters.
38 +In the left navigation, click **Integrations center**, and then click **Data converters**.
35 35  
36 36  
37 37  [[image:ThingsBoard-Data-Converters.png]]
38 38  
39 39  
40 -On the Data converters page, click on the ‘+’ button, and then click on the Create new converter from the dropdown menu.
44 +On the **Data converters** page, click on the ‘+’ button, and then click on the **Create new converter** from the dropdown menu.
41 41  
42 42  
43 43  [[image:ThingsBoard-new-data-converter.png||height="282" width="500"]]
44 44  
45 45  
46 -The Add data converter window will appear. Name it ‘**UDP Uplink Converter NB/CB**’ and select the Type as Uplink.
50 +The **Add data converter** window will appear. Name it ‘**UDP Uplink Converter NB/CB**’ and select the Type as **Uplink**.
47 47  
48 -Click on the JavaScript button. Now copy and paste the following script to the Decoder function section:
52 +Click on the **JavaScript** button. Now copy and paste the following script to the **Decoder function** section:
49 49  
50 50  {{code language="JavaScript"}}
51 51  //Version: 0.1
... ... @@ -170,26 +170,29 @@
170 170  
171 171  {{/code}}
172 172  
173 -Click on the Add button.
177 +Click on the **Add** button.
174 174  
175 175  
176 176  [[image:ThingsBoard-add-data-converter-uplink.png||width="500"]]
177 177  
178 178  
179 -The uplink data converter is added to ThingsBoard and appears on the Data Converters page
183 +The uplink data converter is added to ThingsBoard and is listed on the **Data Converters** page.
180 180  
181 181  
186 +[[image:Data-converter-list-uplink-only.png]]
187 +
188 +
182 182  == Downlink ==
183 183  
184 -On the Data converters page, click on the ‘+’ button, and then click on the Create new converter from the dropdown menu.
191 +On the **Data converters** page, click on the ‘**+**’ button, and then click on the **Create new converter** from the dropdown menu.
185 185  
186 186  
187 187  [[image:ThingsBoard-new-data-converter.png||height="282" width="500"]]
188 188  
189 189  
190 -The **Add data converter**window will appear. Name it ‘**UDP Downlink Converter NB/CB**’ and select the Type as **Downlink**.
197 +The **Add data converter** window will appear. Name it ‘**UDP Downlink Converter NB/CB**’ and select the Type as **Downlink**.
191 191  
192 -Click on the **JavaScript**button. Now copy and paste the following script to the **Encoder function**section:
199 +Click on the **JavaScript** button. Now copy and paste the following script to the **Encoder function **section:
193 193  
194 194  
195 195  {{code language="JavaScript"}}
... ... @@ -228,20 +228,28 @@
228 228  [[image:ThingsBoard-add-data-converter-downlink.png||height="532" width="500"]]
229 229  
230 230  
238 +The downlink data converter is added to ThingsBoard and is listed on the **Data Converters** page.
239 +
240 +
241 +[[image:Data-converter-list.png]]
242 +
243 +
231 231  = Add Integration =
232 232  
233 -In the left navigation, click Integrations center, and then click Integrations.
246 +In the left navigation, click **Integrations center**, and then click **Integrations**.
234 234  
235 -On the Integrations page, click on the +button.
248 +On the **Integrations** page, click on the '**+**' button.
236 236  
237 237  
238 238  [[image:ThingsBoard-add-integration.png]]
239 239  
240 240  
241 -The Add integration window appears.
254 +The **Add integration** window appears.
242 242  
243 243  In the Add Integration window, configure the following settings:
244 244  
258 +
259 +
245 245  **Basic settings:**
246 246  
247 247  * **Integration type**: UDP
... ... @@ -255,8 +255,8 @@
255 255  
256 256  **Uplink data converter:**
257 257  
258 -* Click on the **Select existing**button.
259 -* Uplink data converter: Select **UDP Uplink Converter NB/CB**from the dropdown list.
273 +* Click on the **Select existing** button.
274 +* **Uplink data converter**: Select **UDP Uplink Converter NB/CB **from the dropdown list.
260 260  
261 261  Click **Next** button.
262 262  
... ... @@ -266,10 +266,9 @@
266 266  
267 267  **Downlink data converter:**
268 268  
269 -* Click on the **Select existing**button.
270 -* Downlink data converter: Select **UDP Downlink Converter NB/CB**from the dropdown list.
284 +* Click on the **Select existing** button.
285 +* **Downlink data converter**: Select **UDP Downlink Converter NB/CB **from the dropdown list.
271 271  
272 -
273 273  Click **Next** button.
274 274  
275 275  
... ... @@ -278,15 +278,11 @@
278 278  
279 279  **Connection:**
280 280  
281 -**Port**: 11582
295 +* **Port**: 11582
296 +* **Size of the buffer for inbound socket (in KB)**: 64
297 +* **Cache Size**: 10000000
298 +* **Cache time to live in minutes**: 1440
282 282  
283 -**Size of the buffer for inbound socket (in KB)**: 64
284 -
285 -**Cache Size**: 10000000
286 -
287 -**Cache time to live in minutes**: 1440
288 -
289 -
290 290  Copy the two keys, **Integration key** and **Integration secret** into a text editor, as you will need them in the section ‘xxxxx’.
291 291  
292 292  Click on the **Add** button.
Data-converter-list-uplink-only.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pradeeka
Size
... ... @@ -1,0 +1,1 @@
1 +128.6 KB
Content
Data-converter-list.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pradeeka
Size
... ... @@ -1,0 +1,1 @@
1 +128.6 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0