Last modified by Mengting Qiu on 2023/12/14 11:15

From version 163.1
edited by Mengting Qiu
on 2023/12/11 11:54
Change comment: There is no comment for this version
To version 166.1
edited by Mengting Qiu
on 2023/12/11 15:25
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -311,7 +311,19 @@
311 311  
312 312   Actual sampling distance values.
313 313  
314 +**Example:**
314 314  
316 +**AT+DOL=1,500,244,**(% style="color:red" %)0(%%)**,120  **
317 +
318 +The distance is detected every 120ms.
319 +
320 +When the actual detection value is within the range of [244mm,500mm], the data is uploaded in the normal TDC time.
321 +
322 +When the actual detection value is outside the range of [244mm,500mm], the uplink data will be immediately alerted.
323 +
324 +If payload is: 0708H: distance = 0708H = 1800 mm
325 +
326 +
315 315  (% style="color:blue" %)**Upper limit:**
316 316  
317 317  The upper limit of the threshold cannot exceed 2000mm.
... ... @@ -328,13 +328,65 @@
328 328  
329 329  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:600px" %)
330 330  |(% style="background-color:#4f81bd; color:white; width:70px" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white; width:40px" %)**2**|(% style="background-color:#4f81bd; color:white; width:130px" %)**1**|(% style="background-color:#4f81bd; color:white; width:130px" %)**4**|(% style="background-color:#4f81bd; color:white; width:70px" %)**2**|(% style="background-color:#4f81bd; color:white; width:70px" %)**2**
331 -|(% style="width:91px" %)Value|(% style="width:41px" %)BAT|(% style="width:176px" %)MOD+Alarm+Do+Limit flag|(% style="width:176px" %)Distance Limit Alarm count|(% style="width:100px" %)Upper limit|(% style="width:119px" %)Lower limit
343 +|(% style="width:91px" %)Value|(% style="width:41px" %)BAT|(% style="width:176px" %)MOD+Alarm+Do+Limit flag|(% style="width:176px" %)Distance limit alarm count|(% style="width:100px" %)Upper limit|(% style="width:119px" %)Lower limit
332 332  
333 333  [[image:image-20231209173457-5.png||height="277" width="1098"]]
334 334  
347 +(% style="color:blue" %)**MOD & Alarm & Do & Limit flag:**
335 335  
349 +(% style="color:red" %)**MOD:**
336 336  
351 +**Example: ** (0x60>>6) & 0x3f =1
337 337  
353 +**0x01:**  Regularly detect distance and report.
354 +**0x02: ** Uninterrupted measurement (external power supply).
355 +
356 +(% style="color:red" %)**Alarm:**
357 +
358 +When the detection distance exceeds the limit, the alarm flag is set to 1.
359 +
360 +(% style="color:red" %)**Do:**
361 +
362 +When the distance exceeds the set threshold, pull the Do pin high.
363 +
364 +(% style="color:red" %)**Limit flag:**
365 +
366 +Mode for setting threshold: **0~~3**
367 +
368 +**0:** does not use upper and lower limits
369 +
370 +**1:** Use upper and lower limits
371 +
372 +**2:** Less than the upper limit
373 +
374 +**3: **Greater than the lower limit
375 +
376 +
377 +(% style="color:blue" %)**Distance limit alarm count:**
378 +
379 +People or objects are collected and counted within a limited distance.
380 +
381 +The detection of a stationary person or object at each sampling time will be repeated three times, and the fourth sampling count will be added by 1.
382 +
383 +**Example:**
384 +
385 +**AT+DOL=1,500,244,**(% style="color:red" %)1(%%)**,120   **
386 +
387 +People or objects passing within the distance range of [244mm,500mm] are detected and counted every 120ms.
388 +
389 +If payload is: 0x56H, interrupt count =0x56H =86
390 +
391 +
392 +(% style="color:blue" %)**Upper limit:**
393 +
394 +The upper limit of the threshold cannot exceed 2000mm.
395 +
396 +
397 +(% style="color:blue" %)**Lower limit:**
398 +
399 +The lower limit of the threshold cannot be less than 3mm.
400 +
401 +
338 338  == 2.4 Decode payload in The Things Network ==
339 339  
340 340  
... ... @@ -553,7 +553,8 @@
553 553  )))
554 554  |(% style="width:172px" %)AT+ DOL =1,1800,100,0,400|(% style="width:279px" %)Set only the upper and lower thresholds|(% style="width:118px" %)OK
555 555  
556 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
620 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
621 +|=(% style="width: 162px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 193px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 155px;background-color:#4F81BD;color:white" %) Parameter
557 557  |(% rowspan="11" style="color:blue; width:120px" %)(((
558 558  
559 559  
... ... @@ -566,14 +566,12 @@
566 566  
567 567  
568 568  
569 -**AT+DOL=5,1800,0,0,400**
634 +**AT+DOL=1,1800,3,0,400**
570 570  )))|(% rowspan="4" style="width:240px" %)(((
571 571  
572 572  
573 573  
574 574  
575 -
576 -
577 577  The first bit sets the limit mode
578 578  )))|(% style="width:150px" %)0: Do not use upper and lower limits
579 579  |(% style="width:251px" %)1: Use upper and lower limits
... ... @@ -599,18 +599,19 @@
599 599  
600 600  * Example 1: Downlink Payload: 070107080064000190  **~-~-->**  AT+MOD=1,1800,100,0,400
601 601  
602 -* Example 2: Downlink Payload: 070200000064000190  **~-~-->**  AT+MOD=2,1800100,0,400
665 +* Example 2: Downlink Payload: 070200000064000190  **~-~-->**  AT+MOD=2,1800,100,0,400
603 603  
604 604  * Example 3: Downlink Payload: 070300000064000190  **~-~-->**  AT+MOD=3,0,100,0,400
605 605  
669 +(% style="color:Red" %)**Note: The over-limit alarm is applied to MOD1 and MOD2.**
606 606  
607 -(% style="color:Red" %)**Note: The over-limit alarm the over-limit alarm.** (%%)For example:
671 +**For example:**
608 608  
609 609  * **AT+MOD=1**
610 610  
611 - **AT+DOL=1,500,244,**(% style="color:blue" %)0(%%)**,300**
675 + **AT+DOL=1,500,244,**(% style="color:blue" %)0(%%)**,300**
612 612  
613 -Send data according to the normal TDC time. If the mode limit is exceeded, the alarm flag is 1:
677 +Send data according to the normal TDC time. If the mode limit is exceeded, the alarm flag is set to 1:
614 614  
615 615  [[image:image-20231211113204-2.png||height="292" width="1093"]]
616 616  
... ... @@ -618,7 +618,7 @@
618 618  
619 619   **AT+DOL=1,500,244,**(% style="color:blue" %)0(%%)**,300**
620 620  
621 -If the mode limit is exceeded, the data is immediately uplink and the alarm flag is 1:
685 +If the mode limit is exceeded, the data is immediately uplink and the alarm flag is set to 1:
622 622  
623 623  [[image:image-20231211114932-3.png||height="277" width="1248"]]
624 624