Changes for page wiki_test
Last modified by Mengting Qiu on 2024/09/05 17:35
From version 89.1
edited by Mengting Qiu
on 2023/09/20 17:50
on 2023/09/20 17:50
Change comment:
Uploaded new attachment "image-20230920175015-3.png", version {1}
To version 93.3
edited by Mengting Qiu
on 2023/09/21 11:31
on 2023/09/21 11:31
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -311,14 +311,17 @@ 311 311 312 312 This is the General Json Format. As below: 313 313 314 -(% style="color:#4472c4" %)**{"IMEI":866207053 462762,"temperature":29.2,"humidity":54.2,"battery":3.27,"signal":24,"Model":DDS45-NB, "1":{28.2,48.3,2023/08/10 08:00:37},"2":{28.1,49.1,2023/08/10 07:57:37},"3":{28.1,48.5,2023/08/10 07:54:37},"4":{28.2,48.6,2023/08/10 07:51:37},"5":{28.1,48.9,2023/08/10 07:48:37},"6":{28.2,48.8,2023/08/10 07:45:37},"7":{28.2,48.8,2023/08/10 07:42:37},"8":{28.0,48.8,2023/08/10 07:39:37}}**314 +(% style="color:#4472c4" %)**{"IMEI":"866207058378443","Model":"DDS45-NB","distance":217,"battery":3.54,"signal":24,"1":{221,2023/09/20 09:47:01},"2":{0,2023/09/20 09:15:04},"3":{0,2023/09/20 09:00:04},"4":{0,2023/09/20 08:45:03},"5":{0,2023/09/20 08:30:03},"6":{0,2023/09/20 08:15:03},"7":{0,2023/09/20 08:00:04},"8":{0,2023/09/20 07:45:04}}** 315 315 316 316 317 +[[image:image-20230920175015-3.png||height="613" width="890"]] 318 + 319 + 317 317 (% style="color:red" %)**Notice, from above payload:** 318 318 319 -* Temperature ,Humidity ,Battery & Signal are the value at uplink time.322 +* Distance , Battery & Signal are the value at uplink time. 320 320 321 -* Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right): Temperature,Humidity,Sampling time.324 +* Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right): Distance, Sampling time. 322 322 323 323 === 2.2.2 HEX format Payload(Type~=0) === 324 324 ... ... @@ -327,12 +327,12 @@ 327 327 328 328 (% style="color:#4472c4" %)**f8662070583784430b640dda15010003a4650abc400000650ab8180000650ab4940000650ab10f0000650aad8b0000650aaa070000650aa6840000650aa3000000650a9308** 329 329 330 -[[image:image-20230920172200-1.png||height="19 8" width="1085"]]333 +[[image:image-20230920172200-1.png||height="191" width="1047"]] 331 331 332 332 333 333 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data. 334 334 335 -[[image:image-20230920173352-2.png||height=" 700" width="1012"]]338 +[[image:image-20230920173352-2.png||height="636" width="919"]] 336 336 337 337 338 338 (% style="color:blue" %)**Version:** ... ... @@ -389,15 +389,17 @@ 389 389 === 2.2.4 ThingSpeak Payload(Type~=1) === 390 390 391 391 392 -This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~ 4are:395 +This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~3 are: 393 393 394 - Temperature,Humidity,Battery & Signal. This payload type only valid for ThingsSpeak Platform397 +Distance, Battery & Signal. This payload type only valid for ThingsSpeak Platform 395 395 396 396 As below: 397 397 398 -(% style="color:#4472c4" %)**field1= 27.9&field2=49.9&field3=3.23&field4=28**401 +(% style="color:#4472c4" %)**field1=Distance value&field2=Battery value&field3=Singal value** 399 399 403 +[[image:image-20230921104741-1.png||height="565" width="826"]] 400 400 405 + 401 401 == 2.3 Uplink Payload == 402 402 403 403 ... ... @@ -406,20 +406,19 @@ 406 406 ))) 407 407 408 408 ((( 409 -Uplink payload includes in total 8bytes.414 +Uplink payload includes in total 21 bytes. 410 410 ))) 411 411 412 412 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 413 -|=(% style="width: 95px; background-color:#4F81BD;color:white" %)Size(bytes)|=(% style="width: 61px; background-color:#4F81BD;color:white" %)2|=(% style="background-color:#4F81BD;color:white" %)2|=(% style="background-color:#4F81BD;color:white" %)1|=(% style="background-color:#4F81BD;color:white" %)2|=(% style="background-color:#4F81BD;color:white" %)1 414 -|(% style="width:95px" %)Value|(% style="width:61px" %)[[BAT>>||anchor="H2.3.1A0BatteryInfo"]]|((( 415 -[[Distance>>||anchor="H2.3.2A0Distance"]] 416 -(unit: mm) 417 -)))|[[Digital Interrupt (Optional)>>||anchor="H2.3.3A0InterruptPin"]]|((( 418 -[[Temperature (Optional)>>||anchor="H2.3.4A0DS18B20Temperaturesensor"]] 419 -)))|[[Sensor Flag>>||anchor="H2.3.5A0SensorFlag"]] 418 +|=(% style="width: 95px; background-color:#4F81BD;color:white" %)Size(bytes)|=(% style="width: 61px; background-color:#4F81BD;color:white" %)8|=(% style="width: 61px; background-color:#4F81BD;color:white" %)2|=(% style="background-color:#4F81BD;color:white" %)2|=(% style="background-color:#4F81BD;color:white" %)1|=(% style="background-color: rgb(79, 129, 189); color: white; width: 49px;" %)1|=(% style="background-color: rgb(79, 129, 189); color: white; width: 79px;" %)1|=(% style="background-color:#4F81BD;color:white" %)2|=(% style="background-color:#4F81BD;color:white" %)4 419 +|(% style="width:95px" %)Value|(% style="width:61px" %)f+IMEI|(% style="width:61px" %)Ver|(% style="width:61px" %)[[BAT>>||anchor="H2.3.1A0BatteryInfo"]]|(% style="width:61px" %)((( 420 +Singal 420 420 421 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/DDS20-LB_LoRaWAN_Ultrasonic_Liquid_Level_Sensor_User_Manual/WebHome/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20230702135733.png?width=964&height=215&rev=1.1||alt="微信截图_20230702135733.png"]] 422 +Strength 423 +)))|(% style="width:49px" %)Mod|(% style="width:79px" %)[[Digital Interrupt >>||anchor="H2.3.2A0Interrupt"]]|(% style="width:61px" %)[[Distance>>||anchor="H2.3.3A0Distance"]](unit: mm)|(% style="width:61px" %)Timestamp 422 422 425 +(% class="wikigeneratedid" %) 426 +=== === 423 423 424 424 === 2.3.1 Battery Info === 425 425 ... ... @@ -431,26 +431,9 @@ 431 431 Ex2: 0x0B49 = 2889mV 432 432 433 433 434 -=== 2.3.2 Distance ===438 +=== 2.3.2 Interrupt === 435 435 436 436 437 -((( 438 -Get the distance. Flat object range 30mm - 4500mm. 439 -))) 440 - 441 -((( 442 -For example, if the data you get from the register is **0x0B 0x05**, the distance between the sensor and the measured object is(% style="color:#4472c4" %)** ** 443 - 444 -(% style="color:blue" %)**0B05(H) = 2821 (D) = 2821 mm.** 445 -))) 446 - 447 -* If the sensor value is 0x0000, it means system doesn't detect ultrasonic sensor. 448 - 449 -* If the sensor value lower than 0x001E (30mm), the sensor value will be 0x00. 450 - 451 -=== 2.3.3 Interrupt Pin === 452 - 453 - 454 454 This data field shows if this packet is generated by interrupt or not. 455 455 456 456 **Example:** ... ... @@ -460,28 +460,24 @@ 460 460 0x01: Interrupt Uplink Packet. 461 461 462 462 463 -=== 2.3. 4DS18B20 Temperaturesensor===450 +=== 2.3.3 Distance === 464 464 465 465 466 -This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature. 453 +((( 454 +Get the distance. Flat object range 30mm - 4500mm. 455 +))) 467 467 468 -**Example**: 457 +((( 458 +For example, if the data you get from the register is **0x0B 0x05**, the distance between the sensor and the measured object is(% style="color:#4472c4" %)** ** 469 469 470 -If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree 460 +(% style="color:blue" %)**0B05(H) = 2821 (D) = 2821 mm.** 461 +))) 471 471 472 -If payloadis:FF3FH : (FF3F & FC00==1),temp=(FF3FH - 65536)/10 = -19.3degrees.463 +* If the sensor value is 0x0000, it means system doesn't detect ultrasonic sensor. 473 473 465 +* If the sensor value lower than 0x001E (30mm), the sensor value will be 0x00. 474 474 475 -=== 2.3.5 Sensor Flag === 476 - 477 - 478 478 ((( 479 -0x01: Detect Ultrasonic Sensor 480 -))) 481 - 482 -((( 483 -0x00: No Ultrasonic Sensor 484 - 485 485 486 486 ))) 487 487 ... ... @@ -500,7 +500,7 @@ 500 500 == 2.5 Multi-Samplings and One uplink == 501 501 502 502 503 -To save battery life, DDS45-NB will sample t emperature& humidity data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by:486 +To save battery life, DDS45-NB will sample Distance data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by: 504 504 505 505 * (% style="color:#037691" %)**AT+TR=900** (%%) ~/~/ The unit is seconds, and the default is to record data once every 900 seconds (15 minutes, the minimum can be set to 180 seconds) 506 506
- image-20230921104741-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ting - Size
-
... ... @@ -1,0 +1,1 @@ 1 +74.2 KB - Content