Changes for page DMT01

Last modified by Xiaoling on 2025/08/16 17:21

From version 55.2
edited by Mengting Qiu
on 2025/08/05 08:36
Change comment: There is no comment for this version
To version 49.1
edited by Mengting Qiu
on 2025/08/04 18:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -189,6 +189,21 @@
189 189  )))
190 190  
191 191  
192 +== 2.2  How it works? ==
193 +
194 +(((
195 +(((
196 +
197 +)))
198 +
199 +The DMT01 is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the DMT01. It will automatically join the network via OTAA and start to send the sensor value.
200 +
201 +(((
202 +On each uplink, DMT01 will get the temperature from the sensor and send it to the server.
203 +)))
204 +)))
205 +
206 +
192 192  == 2.3 ​Quick guide to connect to LoRaWAN server (OTAA) ==
193 193  
194 194  
... ... @@ -335,7 +335,8 @@
335 335  
336 336  
337 337  
338 -==== (% style="color:#4472c4" %)**Unit timestamp**(%%) ====
353 +(% class="wikigeneratedid" id="HUnittimestamp" %)
354 +(% style="color:#4472c4" %)**Unit timestamp**
339 339  
340 340  Unit TimeStamp Example: 689085D7(H) = 1754301911(D)
341 341  
... ... @@ -342,9 +342,10 @@
342 342  Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]])to get the time.
343 343  
344 344  
345 -==== (% style="color:#4472c4" %)**DevMode**(%%) ====
361 +(% class="wikigeneratedid" id="HDevMode" %)
362 +(% style="color:#4472c4" %)**DevMode**
346 346  
347 -**Example**
364 +Example:
348 348  
349 349  If payload is 0x01: BLE_LoRa
350 350  
... ... @@ -353,143 +353,71 @@
353 353  If payload is 0x03: BLE
354 354  
355 355  
356 -==== (% style="color:#4472c4" %)**MACaddr**(%%) ====
373 +(% class="wikigeneratedid" id="HMACaddr" %)
374 +(% style="color:#4472c4" %)**MACaddr**
357 357  
358 -**Example**:
376 +Example:
359 359  
360 360  If the payload is C12309250F1A, the MACaddr is C12309250F1A
361 361  
362 362  
363 -==== (% style="color:#4472c4" %)**ProbeBat**(%%) ====
381 +(% class="wikigeneratedid" id="HProbeBat" %)
382 +(% style="color:#4472c4" %)**ProbeBat**
364 364  
365 365  **Example:**
366 366  
367 -If payload is 0x64 = 100%
386 +If payload & 0x01 = 0x01  **~-~->** This is an Alarm Message.It means that the temperature and humidity exceed the alarm value or trigger an interrupt.
368 368  
388 +If payload & 0x01 = 0x00  **~-~->** This is a normal uplink message, no alarm.
369 369  
370 -==== (% style="color:#4472c4" %)**BoxBat**(%%) ====
390 +If payload & 0x80>>7 = 0x01  **~-~->** The PA8 is low level.
371 371  
372 -**Example:**
392 +If payload & 0x80>>7 =0x00  **~-~->** The PA8 is high level.
373 373  
374 -If payload is 0x46 = 70%
394 +If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message.
375 375  
396 +If payload >> 2 = 0x31  **~-~->**  means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#HPolltheAlarmsettings:]] for detail.
376 376  
377 -==== (% style="color:#4472c4" %)**Food temperature**(%%) ====
378 378  
379 -Because the food temperature data is a little-endian sequence, the order of the front and back bytes needs to be swapped during decoding.
399 +(% class="wikigeneratedid" id="HBoxBat" %)
400 +(% style="color:#4472c4" %)**BoxBat**
380 380  
381 -**Example**:
402 +Sensor Battery Level.
382 382  
383 -If payload is: D300H = 00D3H, temp = 00D3H /10 = 21.1 degree
404 +Ex1: 0x0B45 = 2885mV
384 384  
385 -If payload is: 3FFFH  = FF3F , temp = (FF3FH - 65536)/10 = -19.3 degrees.
406 +Ex2: 0x0B49 = 2889mV
386 386  
387 387  
388 -==== (% style="color:#4472c4" %)**Ambient temperature**(%%) ====
409 +(% style="color:#4472c4" %)**Food temperature**
389 389  
390 -Because the food temperature data is a little-endian sequence, the order of the front and back bytes needs to be swapped during decoding.
391 -
392 392  **Example**:
393 393  
394 -If payload is: D200H = 00D2H, temp = 00D2H /10 = 21.0 degree
413 +If payload is: 0105H (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
395 395  
396 -If payload is: 3FFFH  = FF3F , temp = (FF3FH - 65536)/10 = -19.3 degrees.
415 +If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
397 397  
417 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
398 398  
399 399  
400 -== 2.4 Bluetoothe Broadcast Payload ==
420 +(% style="color:#4472c4" %)**Ambient temperature**
401 401  
402 -=== 2.4.1 How to use the scanning tool ===
403 -
404 -
405 -
406 -
407 -=== 2.4.2 Data Analysis ===
408 -
409 -Scan and obtain DMT01 device broadcast data through a third-party mobile phone app (such as nRF Connect)
410 -
411 -Example:
412 -
413 -Note: The following data is obtained through the **nRF Connect tool**.
414 -
415 -[[image:1754305290140-806.jpg||height="680" width="432"]]
416 -
417 -
418 -If the scanned payload is 0x0201060609444D5430310EFF  **01C12309250F1AD100CD006446   **0512E001E001
419 -
420 -(% style="color:red" %)**Note**(%%):
421 -
422 -* The first 12 bytes in the payload are the Bluetooth packet header data and do not need to be decoded.
423 -* The last 6 bytes in the payload are the Bluetooth packet trailer data and do not need to be decoded.
424 -
425 -So the payload is:**01C12309250F1AD100CD006446**
426 -
427 -
428 -==== (% style="color:#4472c4" %)**Bluetooth data packet frame header**(%%) ====
429 -
430 -Example: 0x0201060609444D5430310EFF
431 -
432 -
433 -==== (% style="color:#4472c4" %)**DevMode**(%%) ====
434 -
435 -**Example**:
436 -
437 -If payload is 0x01: BLE_LoRa
438 -
439 -If payload is 0x02: LoRa
440 -
441 -If payload is 0x03: BLE
442 -
443 -
444 -==== (% style="color:#4472c4" %)**MACaddr**(%%) ====
445 -
446 446  **Example**:
447 447  
448 -If the payload is C12309250F1A, the MACaddr is C12309250F1A
424 +If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
449 449  
426 +If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
450 450  
451 -==== (% style="color:#4472c4" %)**ProbeBat**(%%) ====
428 +(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
452 452  
453 -**Example:**
454 454  
455 -If payload is 0x64 = 100%
456 456  
432 +== 2.4 Bluetoothe Broadcast Payload ==
457 457  
458 -==== (% style="color:#4472c4" %)**BoxBat**(%%) ====
459 459  
460 -**Example:**
461 461  
462 -If payload is 0x46 = 70%
463 463  
464 464  
465 -==== (% style="color:#4472c4" %)**Food temperature**(%%) ====
466 -
467 -Because the food temperature data is a little-endian sequence, the order of the front and back bytes needs to be swapped during decoding.
468 -
469 -**Example**:
470 -
471 -If payload is: D300H = 00D3H, temp = 00D3H /10 = 21.1 degree
472 -
473 -If payload is: 3FFFH  = FF3F , temp = (FF3FH - 65536)/10 = -19.3 degrees.
474 -
475 -
476 -==== (% style="color:#4472c4" %)**Ambient temperature**(%%) ====
477 -
478 -Because the food temperature data is a little-endian sequence, the order of the front and back bytes needs to be swapped during decoding.
479 -
480 -**Example**:
481 -
482 -If payload is: D200H = 00D2H, temp = 00D2H /10 = 21.0 degree
483 -
484 -If payload is: 3FFFH  = FF3F , temp = (FF3FH - 65536)/10 = -19.3 degrees.
485 -
486 -
487 -==== (% style="color:#4472c4" %)**Bluetooth data packet frame tail**(%%) ====
488 -
489 -Example: 0x0512E001E001
490 -
491 -
492 -
493 493  = 3. Configure DMT01  ~-~- 需要修改 =
494 494  
495 495  == 3.1 Configure Methods ==
1754305091443-355.jpg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -408.8 KB
Content
1754305290140-806.jpg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.ting
Size
... ... @@ -1,1 +1,0 @@
1 -133.1 KB
Content