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)
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,34 +419,38 @@ 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 427 427 428 - This command is used to convert between ASCII and String format.425 + 429 429 427 +=== 2.3.3 Convert ASCII to String === 430 430 429 + 430 +This command is used to convert between ASCII and String format. 431 + 431 431 AT+CONVFORM ( Max length: 80 bytes) 432 432 433 -Example: 434 434 435 - 1)AT+CONVFORM=0,string Convert String fromString to ASCII435 +**Example:** 436 436 437 - [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]]437 +1) AT+CONVFORM=0, string Convert String from String to ASCII 438 438 439 +[[image:1675214845056-885.png]] 439 439 440 -2)AT+CONVFORM=1,ASCII Convert ASCII to String. 441 441 442 - [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]]442 +2) AT+CONVFORM=1, ASCII Convert ASCII to String. 443 443 444 +[[image:1675214856590-846.png]] 444 444 445 445 446 -1. 447 -11. 448 -111. Define periodically SDI-12 commands and uplink. 449 449 448 + 449 + 450 + 451 +=== 2.3.4 Define periodically SDI-12 commands and uplink. === 452 + 453 + 450 450 AT+COMMANDx & AT+DATACUTx 451 451 452 452 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. ... ... @@ -456,21 +456,21 @@ 456 456 457 457 **AT+COMMANDx=var1,var2,var3,var4.** 458 458 459 -var1: SDI-12 command , for example: 0RC0! 463 +**var1**: SDI-12 command , for example: 0RC0! 460 460 461 -var2: Wait timeout for return. (unit: second) 465 +**var2**: Wait timeout for return. (unit: second) 462 462 463 -var3: Whether to send //addrD0!// to get return after var2 timeout. 0: Don ’t Send //addrD0!//; 1: Send //addrD0!//.467 +**var3**: Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. 464 464 465 -var4: validation check for return. If return invalid, SDI-12-LB will resend this command. Max 2 retries. 469 +**var4**: validation check for return. If return invalid, SDI-12-LB will resend this command. Max 2 retries. 466 466 467 -0 471 +**0 ** No validation check; 468 468 469 -1 Check if return chars are printable char(0x20 ~~ 0x7E); 473 +**1** Check if return chars are printable char(0x20 ~~ 0x7E); 470 470 471 -2 Check if there is return from SDI-12 sensor 475 +**2** Check if there is return from SDI-12 sensor 472 472 473 -3 Check if return pass CRC check ( SDI-12 command var1 must include CRC request); 477 +**3** Check if return pass CRC check ( SDI-12 command var1 must include CRC request); 474 474 475 475 476 476 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. ... ... @@ -478,14 +478,15 @@ 478 478 479 479 **AT+DATACUTx** : This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 480 480 481 -|((( 485 +(% border="1" style="background-color:#f7faff; width:436px" %) 486 +|(% style="width:433px" %)((( 482 482 AT+DATACUTx=a,b,c 483 483 484 -a: length for the return of AT+COMMAND 489 +**a**: length for the return of AT+COMMAND 485 485 486 -b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections. 491 +**b**: 1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections. 487 487 488 -c: define the position for valid value. 493 +**c**: define the position for valid value. 489 489 ))) 490 490 491 491 For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895” ,. Below AT+DATACUT1 will get different result to combine payload: