Changes for page SDI-12-LB/LS -- SDI-12 to LoRaWAN Converter User Manual
Last modified by Xiaoling on 2025/04/25 08:58
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 3 removed)
Details
- Page properties
-
- Content
-
... ... @@ -244,7 +244,7 @@ 244 244 User need to configure SDI-12-LB to communicate with SDI-12 sensors otherwise the uplink payload will only include a few bytes. 245 245 246 246 247 -=== 2.3.1 Basic SDI-12 debug command === 247 +=== 2.3.1 Basic SDI-12 debug command === 248 248 249 249 250 250 User can run some basic SDI-12 command to debug the connection to the SDI-12 sensor. These commands can be sent via AT Command or LoRaWAN downlink command. ... ... @@ -419,38 +419,34 @@ 419 419 [[image:image-20230201092355-16.png]] 420 420 421 421 422 - [[image:image-20230201092355-17.png||height="426" width="1135"]]422 +[[image:image-20230201092355-17.png||height="426" width="1135"]] 423 423 424 +1. 425 +11. 426 +111. Convert ASCII to String 424 424 425 - 426 - 427 -=== 2.3.3 Convert ASCII to String === 428 - 429 - 430 430 This command is used to convert between ASCII and String format. 431 431 430 + 432 432 AT+CONVFORM ( Max length: 80 bytes) 433 433 433 +Example: 434 434 435 - **Example:**435 +1)AT+CONVFORM=0,string Convert String from String to ASCII 436 436 437 - 1) AT+CONVFORM=0, stringonvertString fromStringto ASCII437 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]] 438 438 439 -[[image:1675214845056-885.png]] 440 440 440 +2)AT+CONVFORM=1,ASCII Convert ASCII to String. 441 441 442 - 2) AT+CONVFORM=1, ASCII ConvertASCIItoString.442 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]] 443 443 444 -[[image:1675214856590-846.png]] 445 445 446 446 446 +1. 447 +11. 448 +111. Define periodically SDI-12 commands and uplink. 447 447 448 - 449 - 450 - 451 -=== 2.3.4 Define periodically SDI-12 commands and uplink. === 452 - 453 - 454 454 AT+COMMANDx & AT+DATACUTx 455 455 456 456 User can define max 15 SDI-12 Commands (AT+COMMAND1 ~~ AT+COMMANDF). On each uplink period (TDC time, default 20 minutes), SDI-12-LB will send these SDI-12 commands and wait for return from SDI-12 sensors. SDI-12-LB will then combine these returns and uplink via LoRaWAN. ... ... @@ -460,21 +460,21 @@ 460 460 461 461 **AT+COMMANDx=var1,var2,var3,var4.** 462 462 463 - **var1**: SDI-12 command , for example: 0RC0!459 +var1: SDI-12 command , for example: 0RC0! 464 464 465 - **var2**: Wait timeout for return. (unit: second)461 +var2: Wait timeout for return. (unit: second) 466 466 467 - **var3**: Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0!463 +var3: Whether to send //addrD0!// to get return after var2 timeout. 0: Don’t Send //addrD0!//; 1: Send //addrD0!//. 468 468 469 - **var4**: validation check for return. If return invalid, SDI-12-LB will resend this command. Max 2 retries.465 +var4: validation check for return. If return invalid, SDI-12-LB will resend this command. Max 2 retries. 470 470 471 - **0**No validation check;467 +0 No validation check; 472 472 473 - **1**Check if return chars are printable char(0x20 ~~ 0x7E);469 +1 Check if return chars are printable char(0x20 ~~ 0x7E); 474 474 475 - **2**Check if there is return from SDI-12 sensor471 +2 Check if there is return from SDI-12 sensor 476 476 477 - **3**Check if return pass CRC check ( SDI-12 command var1 must include CRC request);473 +3 Check if return pass CRC check ( SDI-12 command var1 must include CRC request); 478 478 479 479 480 480 Each AT+COMMANDx is followed by a **AT+DATACUT** command. AT+DATACUT command is used to take the useful string from the SDI-12 sensor so the final payload will have the minimum length to uplink. ... ... @@ -482,15 +482,14 @@ 482 482 483 483 **AT+DATACUTx** : This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 484 484 485 -(% border="1" style="background-color:#f7faff; width:436px" %) 486 -|(% style="width:433px" %)((( 481 +|((( 487 487 AT+DATACUTx=a,b,c 488 488 489 - **a**:484 +a: length for the return of AT+COMMAND 490 490 491 - **b**:486 +b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections. 492 492 493 - **c**:488 +c: define the position for valid value. 494 494 ))) 495 495 496 496 For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895” ,. Below AT+DATACUT1 will get different result to combine payload:
- 1675214845056-885.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -20.4 KB - Content
- 1675214856590-846.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -18.6 KB - Content
- image-20230201094129-18.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -12.8 KB - Content