Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -213,19 +213,19 @@ 213 213 |(% style="width:124px;background-color:#4F81BD;color:white" %)DDS20-NB|(% style="width:91px" %)distance|(% style="width:102px" %)Battery|(% style="width:159px" %)RSSI|(% style="width:153px" %) |(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 214 214 |(% style="width:124px;background-color:#4F81BD;color:white" %)DDS45-NB|(% style="width:91px" %)distance|(% style="width:102px" %)Battery|(% style="width:159px" %)RSSI|(% style="width:153px" %) |(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 215 215 |(% style="width:124px;background-color:#4F81BD;color:white" %)DDS75-NB|(% style="width:91px" %)distance|(% style="width:102px" %)Battery|(% style="width:159px" %)RSSI|(% style="width:153px" %) |(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 216 -|(% style="width:124px;background-color:#4F81BD;color:white" %)NMDS120-NB|(% style="width:91px" %)distance|(% style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(%colspan="1" style="width:153px" %) |(%colspan="1" style="width:152px" %) |(%colspan="1" style="width:148px" %) |(%colspan="1" style="width:164px" %) |(%colspan="1" style="width:152px" %) |(%colspan="1" style="width:66px" %) |(%colspan="1" style="width:66px" %)217 -|(% colspan="1"rowspan="1" style="width:124px" %)SPH01-NB|(%colspan="1" rowspan="1" style="width:91px" %)ph|(%colspan="1" rowspan="1" style="width:102px" %)Temperature|(%colspan="1" rowspan="1" style="width:159px" %)Battery|(%colspan="1" rowspan="1" style="width:153px" %)RSSI|(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:148px" %) |(%colspan="1" rowspan="1" style="width:164px" %) |(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %)218 -|(% colspan="1" rowspan="1" style="width:124px" %)NLM01-NB|(%colspan="1" rowspan="1" style="width:91px" %)Humidity|(%colspan="1" rowspan="1" style="width:102px" %)Temperature|(%colspan="1" rowspan="1" style="width:159px" %)Battery|(%colspan="1" rowspan="1" style="width:153px" %)RSSI|(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:148px" %) |(%colspan="1" rowspan="1" style="width:164px" %) |(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:66px" %) |(%colspan="1" rowspan="1" style="width:66px" %)219 -|(% colspan="1" rowspan="1" style="width:124px" %)NMDS200-NB|(%colspan="1" rowspan="1" style="width:91px" %)distance1|(%colspan="1" rowspan="1" style="width:102px" %)distance2|(%colspan="1" rowspan="1" style="width:159px" %)Battery|(%colspan="1" rowspan="1" style="width:153px" %)RSSI|(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:148px" %) |(%colspan="1" rowspan="1" style="width:164px" %) |(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:66px" %) |(%colspan="1" rowspan="1" style="width:66px" %)220 -|(% colspan="1" rowspan="1" style="width:124px" %)CPN01-NB|(%colspan="1" rowspan="1" style="width:91px" %)alarm|(%colspan="1" rowspan="1" style="width:102px" %)count|(%colspan="1" rowspan="1" style="width:159px" %)door open duration|(%colspan="1" rowspan="1" style="width:153px" %)calc flag|(%colspan="1" rowspan="1" style="width:152px" %)Battery|(%colspan="1" rowspan="1" style="width:148px" %)RSSI|(%colspan="1" rowspan="1" style="width:164px" %) |(%colspan="1" rowspan="1" style="width:152px" %) |(%colspan="1" rowspan="1" style="width:66px" %) |(%colspan="1" rowspan="1" style="width:66px" %)221 -|(% colspan="1" rowspan="1" style="width:124px" %)DS03A-NB|(% colspan="1" rowspan="1" style="width:91px" %)level|(% colspan="1" rowspan="1" style="width:102px" %)alarm|(% colspan="1" rowspan="1" style="width:159px" %)pb14door open num|(% colspan="1" rowspan="1" style="width:153px" %)pb14 last open time|(% colspan="1" rowspan="1" style="width:152px" %)pb15 level status|(% colspan="1" rowspan="1" style="width:148px" %)pb15 alarm status|(% colspan="1" rowspan="1" style="width:164px" %)pb15 door open num|(% colspan="1" rowspan="1" style="width:152px" %)pb15 last open time|(% colspan="1" rowspan="1" style="width:66px" %)Battery|(% colspan="1" rowspan="1" style="width:66px" %)RSSI 222 -|(% colspan="1" rowspan="1" style="width:124px" %)SN50V3-NB|(% colspan="1" rowspan="1" style="width:91px" %) |(% colspan="1" rowspan="1" style="width:102px" %) |(% colspan="1" rowspan="1" style="width:159px" %) |(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 223 -|(% colspan="1" rowspan="1" style="width:124px" %)mod1|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)Battery|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" rowspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" rowspan="1" style="width:148px" %)adc0|(% colspan="1" rowspan="1" style="width:164px" %)Temperature |(% colspan="1" rowspan="1" style="width:152px" %)Humidity|(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 224 -|(% colspan="1" style="width:124px" %)mod2|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" style="width:148px" %)adc0|(% colspan="1" style="width:164px" %)distance|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 225 -|(% colspan="1" style="width:124px" %)mod3|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)adc0|(% colspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" style="width:148px" %)adc1|(% colspan="1" style="width:164px" %)Temperature|(% colspan="1" style="width:152px" %)Humidity|(% colspan="1" style="width:66px" %)adc4|(% colspan="1" style="width:66px" %) 226 -|(% colspan="1" style="width:124px" %)mod4|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)adc0|(% colspan="1" style="width:148px" %)exit_state/input PA4|(% colspan="1" style="width:164px" %)DS18B20 Temp2|(% colspan="1" style="width:152px" %)DS18B20 Temp3|(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 227 -|(% colspan="1" style="width:124px" %)mod5|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)adc0|(% colspan="1" style="width:148px" %)exit_state/input PA4|(% colspan="1" style="width:164px" %)Weight|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 228 -|(% colspan="1" style="width:124px" %)mod6|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)count|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:148px" %) |(% colspan="1" style="width:164px" %) |(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 216 +|(% style="width:124px;background-color:#4F81BD;color:white" %)NMDS120-NB|(% style="width:91px" %)distance|(% style="width:102px" %)Battery|(% style="width:159px" %)RSSI|(% style="width:153px" %) |(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 217 +|(% rowspan="1" style="width:124px;background-color:#4F81BD;color:white" %)SPH01-NB|(% style="width:91px" %)ph|(% style="width:102px" %)Temperature|(% style="width:159px" %)Battery|(% style="width:153px" %)RSSI|(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 218 +|(% style="width:124px;background-color:#4F81BD;color:white" %)NLM01-NB|(% style="width:91px" %)Humidity|(% style="width:102px" %)Temperature|(% style="width:159px" %)Battery|(% style="width:153px" %)RSSI|(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 219 +|(% style="width:124px;background-color:#4F81BD;color:white" %)NMDS200-NB|(% style="width:91px" %)distance1|(% style="width:102px" %)distance2|(% style="width:159px" %)Battery|(% style="width:153px" %)RSSI|(% style="width:152px" %) |(% style="width:148px" %) |(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 220 +|(% style="width:124px;background-color:#4F81BD;color:white" %)CPN01-NB|(% style="width:91px" %)alarm|(% style="width:102px" %)count|(% style="width:159px" %)door open duration|(% style="width:153px" %)calc flag|(% style="width:152px" %)Battery|(% style="width:148px" %)RSSI|(% style="width:164px" %) |(% style="width:152px" %) |(% style="width:66px" %) |(% style="width:66px" %) 221 +|(% colspan="1" rowspan="1" style="width:124px;background-color:#4F81BD;color:white" %)DS03A-NB|(% colspan="1" rowspan="1" style="width:91px" %)level|(% colspan="1" rowspan="1" style="width:102px" %)alarm|(% colspan="1" rowspan="1" style="width:159px" %)pb14door open num|(% colspan="1" rowspan="1" style="width:153px" %)pb14 last open time|(% colspan="1" rowspan="1" style="width:152px" %)pb15 level status|(% colspan="1" rowspan="1" style="width:148px" %)pb15 alarm status|(% colspan="1" rowspan="1" style="width:164px" %)pb15 door open num|(% colspan="1" rowspan="1" style="width:152px" %)pb15 last open time|(% colspan="1" rowspan="1" style="width:66px" %)Battery|(% colspan="1" rowspan="1" style="width:66px" %)RSSI 222 +|(% colspan="1" rowspan="1" style="width:124px;background-color:#4F81BD;color:white" %)SN50V3-NB|(% colspan="1" rowspan="1" style="width:91px" %) |(% colspan="1" rowspan="1" style="width:102px" %) |(% colspan="1" rowspan="1" style="width:159px" %) |(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 223 +|(% colspan="1" rowspan="1" style="width:124px;background-color:#4F81BD;color:white" %)mod1|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)Battery|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" rowspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" rowspan="1" style="width:148px" %)adc0|(% colspan="1" rowspan="1" style="width:164px" %)Temperature |(% colspan="1" rowspan="1" style="width:152px" %)Humidity|(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 224 +|(% colspan="1" style="width:124px;background-color:#4F81BD;color:white" %)mod2|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" style="width:148px" %)adc0|(% colspan="1" style="width:164px" %)distance|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 225 +|(% colspan="1" style="width:124px;background-color:#4F81BD;color:white" %)mod3|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)adc0|(% colspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" style="width:148px" %)adc1|(% colspan="1" style="width:164px" %)Temperature|(% colspan="1" style="width:152px" %)Humidity|(% colspan="1" style="width:66px" %)adc4|(% colspan="1" style="width:66px" %) 226 +|(% colspan="1" style="width:124px;background-color:#4F81BD;color:white" %)mod4|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)adc0|(% colspan="1" style="width:148px" %)exit_state/input PA4|(% colspan="1" style="width:164px" %)DS18B20 Temp2|(% colspan="1" style="width:152px" %)DS18B20 Temp3|(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 227 +|(% colspan="1" style="width:124px;background-color:#4F81BD;color:white" %)mod5|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" style="width:152px" %)adc0|(% colspan="1" style="width:148px" %)exit_state/input PA4|(% colspan="1" style="width:164px" %)Weight|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 228 +|(% colspan="1" style="width:124px;background-color:#4F81BD;color:white" %)mod6|(% colspan="1" style="width:91px" %)mod|(% colspan="1" style="width:102px" %)Battery|(% colspan="1" style="width:159px" %)RSSI|(% colspan="1" style="width:153px" %)count|(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:148px" %) |(% colspan="1" style="width:164px" %) |(% colspan="1" style="width:152px" %) |(% colspan="1" style="width:66px" %) |(% colspan="1" style="width:66px" %) 229 229 230 230 231 231 ... ... @@ -237,12 +237,14 @@ 237 237 Firstly, we need to set the MQTT mode to datacake, and we need to run** AT+PRO=3,2**. This command is set to datacake. After running the command, the device automatically sets the server address, port. 238 238 239 239 240 -By chosing to add the device under a **"New Product"** you are required to give a name for this product. You can name it something like "My First MQTT Product". 240 +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 "My First MQTT Product". 241 241 242 242 [[image:image-20230802112413-14.png]] 243 243 244 -== 1.2 Create Device == 245 245 245 +=== 3.4.2 Create Device === 246 + 247 + 246 246 In the second step you have to define the device which should be added to the product. 247 247 248 248 [[image:image-20230802112413-15.png]] ... ... @@ -250,8 +250,9 @@ 250 250 Enter a name here (such as "My First MQTT Device") and complete the creation of the device by clicking on the "Next" button. 251 251 252 252 253 -== 1.3 Create Database Fields ==255 +=== 3.4.3 Create Database Fields === 254 254 257 + 255 255 After creating the device, it is listed in the table of the fleet view. Now open the device by clicking on the entry in the list. 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 "Configuration". ... ... @@ -268,8 +268,10 @@ 268 268 269 269 [[image:image-20230802112413-19.png]] 270 270 271 -== 1.4 Set up Broker == 272 272 275 +=== 3.4.4 Set up Broker === 276 + 277 + 273 273 The broker is running on mqtt.datacake.co on ports 1883 and 8883. Port 1883 is unsecured and should not be used in production environments. Port 8883 uses a CA signed server certificate. 274 274 275 275 You will need an access token to log into the Datacake MQTT Broker. You can use your own personal token or create a token explicitly for individual devices or groups of devices. ... ... @@ -280,23 +280,24 @@ 280 280 281 281 [[image:image-20230802112413-20.png]] 282 282 283 -MQTT Client-ID 288 +(% style="color:blue" %)**MQTT Client-ID** 284 284 285 285 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. 286 286 287 -AT+CLIENT=“Any value” 292 +(% style="color:blue" %)**AT+CLIENT=“Any value”** 288 288 289 -AT+UNAME=Token 294 +(% style="color:blue" %)**AT+UNAME=Token** 290 290 291 -AT+PWD=Token 296 +(% style="color:blue" %)**AT+PWD=Token** 292 292 293 293 [[image:image-20230802112413-21.png]] 294 294 295 295 296 -== 1.6Create your first Subscription ==301 +=== 3.4.5 Create your first Subscription === 297 297 298 -Subscribe 299 299 304 +(% style="color:blue" %)**Subscribe** 305 + 300 300 Data is published according to the following structure: 301 301 302 302 dtck~/~// ... ... @@ -313,16 +313,18 @@ 313 313 [[image:image-20230802112413-24.png]] 314 314 315 315 316 -example: 322 +(% style="color:blue" %)**example:** 317 317 318 318 AT+PUBTOPIC=dtck-pub/nbmattest/936c0db6-e9a5-4353-9fdb-3f63c8bfce7e/Temperature 319 319 320 320 [[image:image-20230802112413-25.png]] 321 321 322 -== 1.7 Define Publish Topic == 323 323 324 -Publish 329 +=== 3.4.6 Define Publish Topic === 325 325 331 + 332 +(% style="color:blue" %)**Publish** 333 + 326 326 To upload data into the Datacake Cloud and into a specific device, you publish the data to the respective topic structure. 327 327 328 328 Due to the nature of MQTT, the topic prefix differs as follows: ... ... @@ -329,12 +329,14 @@ 329 329 330 330 dtck-pub~/~// 331 331 332 -example: 340 +(% style="color:blue" %)**example:** 333 333 334 334 AT+SUBTOPIC=dtck/nbmattest/936c0db6-e9a5-4353-9fdb-3f63c8bfce7e/Temperature 335 335 336 -== 1.8 upload data == 337 337 345 +=== 3.4.7 upload data === 346 + 347 + 338 338 [[image:image-20230802112413-26.png]] 339 339 340 340 [[image:image-20230802112413-27.png]] ... ... @@ -341,34 +341,41 @@ 341 341 342 342 [[image:image-20230802112413-28.png]] 343 343 344 -= = 345 345 346 -= 5. Node-Red (via MQTT) =355 +== 3.5 Node-Red (via MQTT) == 347 347 357 +=== 3.5.1 Configure Node-Red === 348 348 349 -== 1.1 Configure Node-Red == 350 - 351 351 [[image:image-20230802112413-29.png]] 352 352 353 353 [[image:image-20230802112413-30.png]] 354 354 355 -== 1.2 Simulate Connection ==363 +=== 3.5.2 Simulate Connection === 356 356 365 + 357 357 [[image:image-20230802112413-31.png]] 358 358 359 -== 1.3 Configure NB-IoT Sensors == 360 360 361 -* AT+PRO=3,0(hex format) or 3,5(json format) ~/~/Set to mqtt Server and Payload 362 -* AT+CLIENT=any value 363 -* AT+UNAME=any value 364 -* AT+PWD=any value 365 -* AT+PUBTOPIC=any value 366 -* AT+SUBTOPIC=any value 369 +=== 3.5.3 Configure NB-IoT Sensors === 367 367 368 -= 6. ThingsBoard.Cloud (via MQTT) = 369 369 370 -= =1.1ConfigureThingsBoard==372 +* (% style="color:blue" %)**AT+PRO=3,0(hex format) or 3,5(json format)**(%%) ~/~/Set to mqtt Server and Payload 371 371 374 +* (% style="color:blue" %)**AT+CLIENT=any value**(%%) 375 + 376 +* (% style="color:blue" %)**AT+UNAME=any value**(%%) 377 + 378 +* (% style="color:blue" %)**AT+PWD=any value**(%%) 379 + 380 +* (% style="color:blue" %)**AT+PUBTOPIC=any value**(%%) 381 + 382 +* (% style="color:blue" %)**AT+SUBTOPIC=any value**(%%) 383 + 384 + 385 +== 3.6 ThingsBoard.Cloud (via MQTT) == 386 + 387 +=== 3.6.1 Configure ThingsBoard === 388 + 372 372 === 1.1.1 Create Device === 373 373 374 374 Create a New Device in [[ThingsBoard>>url:https://thingsboard.cloud/]].