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

From version 162.1
edited by Mengting Qiu
on 2023/12/11 11:49
Change comment: Uploaded new attachment "image-20231211114932-3.png", version {1}
To version 164.1
edited by Mengting Qiu
on 2023/12/11 15:10
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.
... ... @@ -324,17 +324,69 @@
324 324  
325 325  * **Set the person or object count mode: AT+DOL=1,500,244,**(% style="color:red" %)1(%%)**,120**
326 326  
327 -Continuous measurement, detect and count people or things passing by in distance limit mode.
339 +Continuous measurement, detect and count people or things passing by in distance limit mode. Uplink Payload totals 11 bytes.
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  
... ... @@ -602,7 +602,30 @@
602 602  * Example 2: Downlink Payload: 070200000064000190  **~-~-->**  AT+MOD=2,1800100,0,400
603 603  
604 604  * Example 3: Downlink Payload: 070300000064000190  **~-~-->**  AT+MOD=3,0,100,0,400
669 +*
605 605  
671 +(% style="color:Red" %)**Note: The over-limit alarm is applied to MOD1 and MOD2.** (%%)For example:
672 +
673 +* **AT+MOD=1**
674 +
675 + **AT+DOL=1,500,244,**(% style="color:blue" %)0(%%)**,300**
676 +
677 +Send data according to the normal TDC time. If the mode limit is exceeded, the alarm flag is set to 1:
678 +
679 +[[image:image-20231211113204-2.png||height="292" width="1093"]]
680 +
681 +* **AT+MOD=2  **
682 +
683 + **AT+DOL=1,500,244,**(% style="color:blue" %)0(%%)**,300**
684 +
685 +If the mode limit is exceeded, the data is immediately uplink and the alarm flag is set to 1:
686 +
687 +[[image:image-20231211114932-3.png||height="277" width="1248"]]
688 +
689 +
690 +
691 +
692 +
606 606  = 4. Battery & Power Consumption =
607 607  
608 608