<
From version < 53.42 >
edited by Xiaoling
on 2023/08/02 15:21
To version < 53.28 >
edited by Xiaoling
on 2023/08/02 14:57
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -21,6 +21,7 @@
21 21  |China Mobile| | |
22 22  
23 23  
24 +
24 24  == 2.1 1NCE SIM Card. ==
25 25  
26 26  
... ... @@ -125,6 +125,7 @@
125 125  * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password>
126 126  
127 127  
129 +
128 128  ==== 3.3.2.2 Publish Data to ThingSpeak Channel ====
129 129  
130 130  
... ... @@ -165,6 +165,7 @@
165 165  
166 166  * (% style="color:blue" %)**AT+SUBTOPIC=<YOUR_CHANNEL_ID>**
167 167  
170 +
168 168  ==== 3.3.3.2 Uplink Examples ====
169 169  
170 170  
... ... @@ -229,7 +229,7 @@
229 229  
230 230  == 3.4 Datacake ==
231 231  
232 -=== 3.4.1 Define Product ===
235 +== 3.4.1 Define Product ==
233 233  
234 234  
235 235  Firstly, we need to set the MQTT mode to datacake, and we need to run(% style="color:blue" %)** AT+PRO=3,2**(%%). This command is set to datacake. After running the command, the device automatically sets the server address, port.
... ... @@ -236,7 +236,7 @@
236 236  
237 237  By chosing to add the device under a (% style="color:blue" %)**"New Product"**(%%) you are required to give a name for this product. You can name it something like (% style="color:blue" %)**"My First MQTT Product"**.
238 238  
239 -[[image:image-20230802112413-14.png||height="1095" width="1302"]]
242 +[[image:image-20230802112413-14.png]]
240 240  
241 241  
242 242  === 3.4.2 Create Device ===
... ... @@ -244,7 +244,7 @@
244 244  
245 245  In the second step you have to define the device which should be added to the product.
246 246  
247 -[[image:image-20230802112413-15.png||height="859" width="1290"]]
250 +[[image:image-20230802112413-15.png]]
248 248  
249 249  Enter a name here (such as "My First MQTT Device") and complete the creation of the device by clicking on the (% style="color:blue" %)**"Next"**(%%) button.
250 250  
... ... @@ -256,15 +256,15 @@
256 256  
257 257  You will then see a device view with an empty dashboard. Now, the first thing we want to do is navigate to the Device configuration. To do this, use the tab bar and click on (% style="color:blue" %)**"Configuration"**.
258 258  
259 -[[image:image-20230802112413-16.png||height="495" width="1310"]]
262 +[[image:image-20230802112413-16.png]]
260 260  
261 -[[image:image-20230802112413-17.png||height="741" width="1303"]]
264 +[[image:image-20230802112413-17.png]]
262 262  
263 263  To create a first database field, please click on the (% style="color:blue" %)**"Add Field"**(%%) button as marked in the screenshot above.
264 264  
265 265  This will open another modal asking for some required input for your first field.
266 266  
267 -[[image:image-20230802112413-18.png||height="878" width="1305"]]
270 +[[image:image-20230802112413-18.png]]
268 268  
269 269  [[image:image-20230802112413-19.png]]
270 270  
... ... @@ -284,14 +284,13 @@
284 284  
285 285  (% style="color:blue" %)**MQTT Client-ID**
286 286  
287 -The Datacake Broker manages the client IDs internally. You do not need to worry about a client ID. If your client optionally supports the specification of a client ID, please leave this 
288 -specification blank. Your client then creates a randomly generated ID.
290 +The Datacake Broker manages the client IDs internally. You do not need to worry about a client ID. If your client optionally supports the specification of a client ID, please leave this specification blank. Your client then creates a randomly generated ID.
289 289  
290 -* (% style="color:blue" %)**AT+CLIENT=“Any value”**
292 +(% style="color:blue" %)**AT+CLIENT=“Any value”**
291 291  
292 -* (% style="color:blue" %)**AT+UNAME=Token**
294 +(% style="color:blue" %)**AT+UNAME=Token**
293 293  
294 -* (% style="color:blue" %)**AT+PWD=Token**
296 +(% style="color:blue" %)**AT+PWD=Token**
295 295  
296 296  [[image:image-20230802112413-21.png]]
297 297  
... ... @@ -301,8 +301,10 @@
301 301  
302 302  (% style="color:blue" %)**Subscribe**
303 303  
304 -Data is published according to the following structure: (% style="color:blue" %)**dtck~/~//**(%%)** **
306 +Data is published according to the following structure:
305 305  
308 +dtck~/~//
309 +
306 306  Subscribe to topics using this structure to receive messages via MQTT when readings (via API or MQTT) arrive in the Datacake Cloud. Messages are published whenever there is a change to a corresponding database field.
307 307  
308 308  
... ... @@ -329,8 +329,10 @@
329 329  
330 330  To upload data into the Datacake Cloud and into a specific device, you publish the data to the respective topic structure.
331 331  
332 -Due to the nature of MQTT, the topic prefix differs as follows: (% style="color:blue" %)**dtck-pub~/~//**
336 +Due to the nature of MQTT, the topic prefix differs as follows:
333 333  
338 +dtck-pub~/~//
339 +
334 334  (% style="color:blue" %)**example:**
335 335  
336 336  AT+SUBTOPIC=dtck/nbmattest/936c0db6-e9a5-4353-9fdb-3f63c8bfce7e/Temperature
... ... @@ -350,10 +350,8 @@
350 350  
351 351  === 3.5.1 Configure Node-Red ===
352 352  
353 -
354 354  [[image:image-20230802112413-29.png]]
355 355  
356 -
357 357  [[image:image-20230802112413-30.png]]
358 358  
359 359  
... ... @@ -366,7 +366,7 @@
366 366  === 3.5.3 Configure NB-IoT Sensors ===
367 367  
368 368  
369 -* (% style="color:blue" %)**AT+PRO=3,0(hex format) or 3,5(json format)**(%%)    ~/~/  Set to mqtt Server and  Payload
373 +* (% style="color:blue" %)**AT+PRO=3,0(hex format) or 3,5(json format)**(%%)    ~/~/Set to mqtt Server and  Payload
370 370  
371 371  * (% style="color:blue" %)**AT+CLIENT=any value**
372 372  
... ... @@ -378,7 +378,6 @@
378 378  
379 379  * (% style="color:blue" %)**AT+SUBTOPIC=any value**
380 380  
381 -
382 382  == 3.6 ThingsBoard.Cloud (via MQTT) ==
383 383  
384 384  === 3.6.1 Configure ThingsBoard ===
... ... @@ -385,7 +385,6 @@
385 385  
386 386  ==== 3.6.1.1 Create Device ====
387 387  
388 -
389 389  Create a New Device in [[ThingsBoard>>url:https://thingsboard.cloud/]].
390 390  
391 391  [[image:image-20230802112413-32.png]]
... ... @@ -393,14 +393,13 @@
393 393  
394 394  ==== 3.6.1.2 Create Uplink & Downlink Converter ====
395 395  
396 -
397 397  (% style="color:blue" %)**Uplink Converter**
398 398  
399 399  The purpose of the decoder function is to parse the incoming data and metadata to a format that ThingsBoard can consume. deviceName and deviceType are required, while attributes and telemetry are optional. Attributes and telemetry are flat key-value objects. Nested objects are not supported.
400 400  
401 -To create an uplink converter go to the (% style="color:blue" %)**Integrations center**(%%) -> (% style="color:blue" %)**Data converters**(%%) page and click (% style="color:blue" %)**“plus”** (%%)button. Name it (% style="color:blue" %)**“MQTT Uplink Converter”**(%%) and select type (% style="color:blue" %)"**Uplink"**(%%). Use debug mode for now.
402 +To create an uplink converter go to the Integrations center -> Data converters page and click “plus” button. Name it “MQTT Uplink Converter” and select type Uplink. Use debug mode for now.
402 402  
403 -[[image:image-20230802112413-33.png||height="732" width="1302"]]
404 +[[image:image-20230802112413-33.png]]
404 404  
405 405  
406 406  (% style="color:blue" %)**Downlink Converter**
... ... @@ -407,7 +407,7 @@
407 407  
408 408  The Downlink converter transforming outgoing RPC message and then the Integration sends it to external MQTT broke
409 409  
410 -[[image:image-20230802112413-34.png||height="734" width="1305"]]
411 +[[image:image-20230802112413-34.png]]
411 411  
412 412  (% style="color:red" %)**Note:Our device payload is already human readable data. Therefore, users do not need to write decoders. Simply create by default.**
413 413  
... ... @@ -415,30 +415,28 @@
415 415  ==== 3.6.1.3 MQTT Integration Setup ====
416 416  
417 417  
418 -Go to the **Integrations center** -> **Integrations page** and click **“plus”** icon to add a new integration. Name it (% style="color:blue" %)**“MQTT Integration”**(%%), select type (% style="color:blue" %)**MQTT**;
419 +Go to the Integrations center -> Integrations page and click **“plus”** icon to add a new integration. Name it “MQTT Integration”, select type MQTT;
419 419  
420 -[[image:image-20230802112413-35.png||height="738" width="1312"]]
421 +[[image:image-20230802112413-35.png]]
421 421  
422 -
423 423  * The next steps is to add the recently created uplink and downlink converters;
424 424  
425 -[[image:image-20230802112413-36.png||height="736" width="1308"]]
425 +[[image:image-20230802112413-36.png]]
426 426  
427 -[[image:image-20230802112413-37.png||height="735" width="1307"]]
427 +[[image:image-20230802112413-37.png]]
428 428  
429 -
430 430  (% style="color:blue" %)**Add a topic filter:**
431 431  
431 +
432 432  tb/mqtt-integration-tutorial/sensors~/~/temperature ~-~-> Temperature 固定的? 对的。
433 433  
434 434  You can also select an MQTT QoS level. We use MQTT QoS level 0 (At most once) by default;
435 435  
436 -[[image:image-20230802112413-38.png||height="731" width="1300"]]
436 +[[image:image-20230802112413-38.png]]
437 437  
438 438  
439 439  === 3.6.2 Simulate with MQTT.fx ===
440 440  
441 -
442 442  [[image:image-20230802112413-39.png]]
443 443  
444 444  [[image:image-20230802112413-40.png]]
... ... @@ -500,18 +500,16 @@
500 500  
501 501  * (% style="color:blue" %)**Client ID: “Any value”**
502 502  
503 -On the section User credentials, set the following information: (这边加一个截图)
502 +On the section User credentials, set the following information:(这边加一个截图)
504 504  
505 -* (% style="color:blue" %)**User Name: “Any value”**  (%%) ~/~/  Tago validates your user by the token only
504 +* **User Name: “Any value”**  Tago validates your user by the token only
506 506  
507 -* (% style="color:blue" %)**Password: “Your device token”**
506 +* **Password: “Your device token”**
508 508  
509 -* (% style="color:blue" %)**PUBTOPIC: “Any value”**
508 +* **PUBTOPIC: “Any value”**
510 510  
511 -* (% style="color:blue" %)**SUBTOPIC: “Any value”**
510 +* **SUBTOPIC: “Any value”**
512 512  
513 -
514 -
515 515  === 3.7.2 Simulate with MQTT.fx ===
516 516  
517 517  
... ... @@ -519,7 +519,7 @@
519 519  
520 520  [[image:image-20230802112413-48.png]]
521 521  
522 -Users can run the (% style="color:blue" %)**AT+PRO=3,5**(%%) command, and the payload will be converted to **JSON format**.
519 +Users can run the AT+PRO=3,5 command, and the payload will be converted to JSON format.
523 523  
524 524  [[image:image-20230802112413-49.png]]
525 525  
... ... @@ -549,7 +549,7 @@
549 549  
550 550  * (% style="color:blue" %)**Client ID: “Any value”**
551 551  
552 -* (% style="color:blue" %)**User Name: “Any value”** (%%) ~/~/ Tago validates your user by the token only
549 +* (% style="color:blue" %)**User Name: “Any value”** (%%) Tago validates your user by the token only
553 553  
554 554  * (% style="color:blue" %)**Password: “Your device token”**
555 555  
... ... @@ -560,3 +560,4 @@
560 560  [[image:image-20230802112413-52.png]]
561 561  
562 562  
560 +
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0