Last modified by Xiaoling on 2025/07/16 11:58

From version 135.2
edited by Mengting Qiu
on 2025/01/17 19:42
Change comment: There is no comment for this version
To version 136.1
edited by Mengting Qiu
on 2025/01/17 19:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -50,7 +50,7 @@
50 50  * AT Commands to change parameters
51 51  * Downlink to change configure
52 52  * 8500mAh Li/SOCl2 Battery (SE0X-NB)
53 -* Solar panel + 3000mAh Li-ion battery (CSE0X-NS)
53 +* Solar panel + 3000mAh Li-ion battery (SE0X-NS)
54 54  * Nano SIM card slot for NB-IoT SIM
55 55  
56 56  (% style="color:blue" %)**Common DC Characteristics:**
... ... @@ -454,117 +454,268 @@
454 454  [[image:image-20240604155827-5.png||height="563" width="870"]]
455 455  
456 456  
457 -== 2.3 Test Uplink and Change Update Interval ==
457 += 3. Configure S31x-CB =
458 458  
459 +== 3.1 Configure Methods ==
459 459  
460 -By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%)
461 461  
462 -User can use below commands to change the (% style="color:blue" %)**uplink interval**.
462 +S31x-CB supports below configure method:
463 463  
464 -(% style="color:#037691" %)**AT+TDC=7200 ** (%%) ~/~/ Set Update Interval to 7200s
464 +* AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
465 465  
466 -User can also push the button for more than 1 seconds to activate an uplink.
466 +* AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
467 467  
468 +== ​​​3.2  Serial Access Password ==
468 468  
469 -== 2.4 Trggier an uplink by external interrupt ==
470 470  
471 +After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
471 471  
472 -SE0X-NB/NS has an external trigger interrupt function. Users can use the GPIO_EXIT pin to trigger the upload of data packets.
473 +The label on the box of the node will print the initial password: AT+PIN=**xxxxxx**, and directly use the six-digit password to access the AT instruction window.
473 473  
474 -(% style="color:blue" %)**AT command:**
475 +[[image:image-20240826183249-1.png]]
475 475  
476 -* (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
477 477  
478 -* (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt
478 +If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), -CB nodes only support lowercase letters.
479 479  
480 -* (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
480 +[[image:image-20240826183254-2.png]]
481 481  
482 -* (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
483 483  
484 -* (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
483 +(% style="color:red" %)**Note: After entering the command, you need to add a line break, and you can also set automatic line breaks in the Bluetooth tool or UART connection tool.**
485 485  
486 -== 2.5 Clock logging (Since firmware version v1.2.1) ==
485 +[[image:image-20240826183302-3.png]]
487 487  
488 488  
489 -Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.
488 +== 3.3 AT Commands Set ==
490 490  
491 -We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.
492 492  
493 -* (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+CLOCKLOG=a,b,c,d(%%)**
491 +AT+<CMD>?  : Help on <CMD>
494 494  
495 -(% style="color:#037691" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
493 +AT+<CMD>         : Run <CMD>
496 496  
497 -(% style="color:#037691" %)**b: **(%%)Specify First sampling start second: range **(0 ~~ 3599, 65535)   ** ~/~/ (% style="color:red" %)**Note:**(%%)** **If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.
495 +AT+<CMD>=<value> : Set the value
498 498  
499 -(% style="color:#037691" %)**c:**(%%)** **Specify the sampling interval: range **(0 ~~ 255 minutes)**
497 +AT+<CMD>= : Get the value
500 500  
501 -(% style="color:#037691" %)**d:**(%%)** **How many entries should be uplink on every TDC **(max 32)**
502 502  
503 -(% style="color:red" %)**Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0**
500 +(% style="color:blue" %)**General Commands**      
504 504  
505 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SPH01-NB_NB-IoT_Soil_pH_Sensor_User_Manual/WebHome/image-20240315141254-1.png?rev=1.1||alt="image-20240315141254-1.png"]]
502 +AT+MODEL : Get module information
506 506  
507 -**Example:**
504 +ATZ : Trig a reset of the MCU
508 508  
509 -**AT+CLOCKLOG=1,65535,1,5**
506 +AT+CFGMOD : Working mode selection
510 510  
511 -After the node sends the first packet, data is recorded to the memory at intervals of 1 minute. For each TDC uplink, the uplink load will include: battery information + the last 5 memory records (payload + timestamp).
508 +AT+DEUI : Get or set the Device ID
512 512  
513 -[[image:image-20240315160632-1.png||height="603" width="1270"]]
510 +AT+CFG : Print all settings
514 514  
515 -(% style="color:red" %)**Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.**
512 +AT+SERVADDR: Get or Set the Server address
516 516  
514 +AT+TDC : Get or set the application data transmission interval in s
517 517  
518 -* (% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x0A(%%)**
516 +AT+INTMOD : Get or Set the trigger interrupt mode (0:input,1:falling or rising,2:falling,3:rising)
519 519  
520 -Format: Command Code (0x0A) followed by 5 bytes.
518 +AT+APN : Get or set the APN
521 521  
522 -* **Example 1**: Downlink Payload:** 0A01FFFF0F08**  ~/~/ Set SHT record time: AT+CLOCKLOG=1,65535,15,8
523 -* **Example 1**: Downlink Payload:** 0A0104B00F08**  ~/~/ Set SHT record time: AT+CLOCKLOG=1,1200,15,8
520 +AT+5VT : Get or Set extend the time of 5V power
524 524  
525 -(% style="color:red" %)**Note: When entering the downlink payload, there must be no Spaces between bytes.**
522 +AT+PRO : Get or Set usage agreement (1:COAP,2:UDP,3:MQTT,4:TCP)
526 526  
524 +AT+RXDL : Get or Set the receiving time
527 527  
528 -== 2.6 Example Query saved historical records ==
526 +AT+EXT : Get or Set Count value
529 529  
528 +AT+SHTEMP:Get or Set alarm of shtemp
530 530  
531 -* (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+CDP(%%)**
530 +AT+SHHUM:Get or Set alarm of shthum
532 532  
533 -This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.
532 +AT+GETSENSORVALUE : Returns the current sensor measurement
534 534  
535 -[[image:image-20240605085514-1.png||height="669" width="909"]]
534 +AT+DNSCFG : Get or Set DNS Server
536 536  
536 +AT+CSQTIME : Get or Set the time to join the network
537 537  
538 -== 2.7 Uplink log query ==
538 +AT+GDNS : Get or Set the DNS
539 539  
540 +AT+SLEEP : Get or Set the sleep mode
540 540  
541 -* (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+GETLOG(%%)**
542 +AT+IPTYPE : Set the IPv4 or IPv6
542 542  
543 -This command can be used to query upstream logs of data packets.
544 +AT+QSW : Power on and power off BG95 module
544 544  
545 -[[image:image-20240605085603-2.png||height="673" width="911"]]
546 +AT+CLOCKLOG: Get or set SHT record time
546 546  
548 +AT+QBAND: Get or set Frequency Band
547 547  
548 -== 2.8 Scheduled domain name resolution ==
550 +AT+IOTMOD: Configure Network Category to be Searched for under LTE RAT
549 549  
552 +AT+DOWNTE: Get or set the conversion between the standard version and 1T version downlinks
550 550  
551 -This command is used to set up scheduled domain name resolution
552 552  
555 +(% style="color:blue" %)**MQTT Management**
556 +
557 +AT+CLIENT : Get or Set the MQTT clientID
558 +
559 +AT+UNAME : Get or Set the MQTT Username
560 +
561 +AT+PWD : Get or Set the MQTT password
562 +
563 +AT+PUBTOPIC: Get or set MQTT publishing topic
564 +
565 +AT+SUBTOPIC: Get or set MQTT subscription topic
566 +
567 +AT+MQOS : Set the QoS level of MQTT
568 +
569 +AT+TLSMOD : Get or Set the TLS mode
570 +
571 +
572 +(% style="color:blue" %)**COAP Management**
573 +
574 +AT+URI1: Get or set CoAP option 1
575 +
576 +AT+URI2: Get or set CoAP option 2
577 +
578 +AT+URI3: Get or set CoAP option 3
579 +
580 +AT+URI4: Get or set CoAP option 4
581 +
582 +AT+URI5: Get or set CoAP option 5
583 +
584 +AT+URI6: Get or set CoAP option 6
585 +
586 +AT+URI7: Get or set CoAP option 7
587 +
588 +AT+URI8: Get or set CoAP option 8
589 +
590 +
591 +(% style="color:blue" %)**GPS**
592 +
593 +AT+GNSST : Extend the time to turn on GNSS
594 +
595 +AT+GPS : Turn off and on GPS
596 +
597 +AT+GTDC : Get or set GPS positioning interval in units of h
598 +
599 +
600 +(% style="color:blue" %)**Information**          
601 +
602 +AT+FDR1 : Reset parameters to factory default values except for passwords
603 +
604 +AT+FDR : Reset Parameters to Factory Default
605 +
606 +AT+PWORD : Get or set the System password
607 +
608 +AT+LDATA : Get the last upload data
609 +
610 +AT+CDP : Read or Clear cached data
611 +
612 +AT+PDTA: Print the sector data from start page to stop page
613 +
614 +AT+PLDTA: Print the last few sets of data
615 +
616 +AT+CLRDTA: Clear the storage, record position back to 1st
617 +
618 +AT+GETLOG : Print serial port logs
619 +
620 +
621 +== 3.4 Test Uplink and Change Update Interval ==
622 +
623 +
624 +By default, Sensor will send uplinks **every 2 hours.**
625 +
626 +User can use below commands to change the uplink interval.
627 +
628 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+TDC** (%%)
629 +
630 +Example: AT+TDC=7200  ~/~/ Set Update Interval to 7200 seconds
631 +
632 +(% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x01**
633 +
634 +Format: Command Code (0x01) followed by 3 bytes.
635 +
636 +Example:  12 hours= 43200 seconds  43200(D)=0xA8C0(H)
637 +
638 + Downlink Payload: **01 00 A8 C0**  ~/~/ AT+TDC=43200, Set Update Interval to 12 hours.
639 +
640 +(% style="color:red" %)**Note: User can also push the button for more than 1 second to activate an uplink.**
641 +
642 +
643 +== 3.5 Set the receiving time ==
644 +
645 +
646 +Feature: Extend the receiving time
647 +
648 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+RXDL**
649 +
650 +Example: AT+RXDL=1000  ~/~/ Set the receiving time delay to 1000ms
651 +
652 +(% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x03**
653 +
654 +Format: Command Code (0x03) followed by 3 bytes.
655 +
656 +Example:  Downlink Payload: **03 00 03 E8     **~/~/ AT+RXDL=1000
657 +
658 +
659 +== 3.6 Reset ==
660 +
661 +
662 +Feature: Trig a reset of the MCU.
663 +
664 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**ATZ**
665 +
666 +(% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x04FF**
667 +
668 +
669 +== 3.7 +5V ==
670 +
671 +
672 +Feature: Set extend the time of 5V power.
673 +
674 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+5VT**
675 +
676 +Example: AT+5VT=2000  ~/~/ Set extend the time of 5V power to 2000 ms
677 +
678 +(% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x05**
679 +
680 +Format: Command Code (0x05) followed by 3 bytes.
681 +
682 +Example:  Downlink Payload: **05 00 07 D0    **~/~/ AT+5VT=2000
683 +
684 +
685 +== 3.8 Trigger an uplink by external interrupt ==
686 +
687 +
688 +S31x-CB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets.
689 +
553 553  (% style="color:blue" %)**AT command:**
554 554  
555 -* (% style="color:#037691" %)**AT+DNSTOMER=XX**(%%)**  **~/~/ Unit: hour
692 +* (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
556 556  
557 -After setting this command, domain name resolution will be performed regularly.
694 +* (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt
558 558  
696 +* (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
559 559  
560 -== 2.9 Set the QoS level ==
698 +* (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
561 561  
700 +* (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
562 562  
702 +(% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x06**
703 +
704 +Format: Command Code (0x06) followed by 3 bytes.
705 +
706 +Example1:  Downlink Payload: **06 00 00 01    **~/~/ AT+INTMOD=1
707 +
708 +Example2:  Downlink Payload: **06 00 00 03    **~/~/ AT+INTMOD=3
709 +
710 +
711 +== 3.9 Set the QoS level ==
712 +
713 +
563 563  This command is used to set the QoS level of **MQTT**.
564 564  
565 565  (% style="color:blue" %)**AT command:**
566 566  
567 -* (% style="color:#037691" %)**AT+MQOS=xx **(%%)** **~/~/ 0~~2
718 +* (% style="color:#037691" %)**AT+MQOS=xx**(%%)**   **~/~/ 0~~2
568 568  
569 569  (% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x07(%%)**
570 570  
... ... @@ -575,444 +575,462 @@
575 575  **Ex2:** Downlink payload: **0x0701**  ~/~/ AT+MQOS=1
576 576  
577 577  
578 -== 2.10 Set the downlink debugging mode(Since firmware v1.1.0) ==
729 +== 3.10 Clock logging ==
579 579  
580 580  
581 -Feature: Set the conversion between the standard version and 1T version downlinks.
732 +Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.
582 582  
583 -(% style="color:blue" %)**AT command: AT+DOWNTE**
734 +We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.
584 584  
585 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
586 -|=(% style="width: 138px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 229px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation**
587 -|(% style="width:134px" %)AT+DOWNTE=?|(% style="width:143px" %)Get current Settings|(% style="width:229px" %)(((
588 -0,0  (default)
589 -OK
590 -)))
591 -|(% colspan="1" rowspan="2" style="width:134px" %)(((
592 -
736 +(% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+CLOCKLOG=a,b,c,d(%%)**
593 593  
738 +(% style="color:#037691" %)**a: **(%%)**0:** Disable Clock logging.  ** 1: **Enable Clock Logging
594 594  
740 +(% style="color:#037691" %)**b:**(%%)** **Specify First sampling start second: range **(0 ~~ 3599, 65535)   ** ~/~/  (% style="color:red" %)**Note: **(%%)If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.
595 595  
596 -AT+DOWNTE=a,b
597 -)))|(% style="width:143px" %)**a**: Set the conversion between the downlink of the standard version and 1T version|(% style="width:229px" %)(((
598 -**0**: Set the downlink of the standard version.
599 -**1**: Set the downlink of the 1T version(ThingsEye platform)
600 -)))
601 -|(% style="width:143px" %)**b**: Enable/Disable downlink debugging|(% style="width:229px" %)(((
602 -**0**: Disable downlink debugging mode.
603 -**1**: Enable downlink debugging mode, users can see the original downlink reception.
604 -)))
742 +(% style="color:#037691" %)**c: **(%%)Specify the sampling interval: range **(0 ~~ 255 minutes)**
605 605  
744 +(% style="color:#037691" %)**d:**(%%)** **How many entries should be uplink on every TDC **(max 32)**
745 +
746 +(% style="color:red" %)**Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0**
747 +
748 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SPH01-NB_NB-IoT_Soil_pH_Sensor_User_Manual/WebHome/image-20240315141254-1.png?rev=1.1||alt="image-20240315141254-1.png"]]
749 +
606 606  **Example:**
607 607  
608 -* AT+DOWNTE=0,1  ~/~/ Set to standard version downlink, and enable downlink debugging.
609 -* AT+DOWNTE=1,1  ~/~/ Set to 1T version downlink, and enable downlink debugging.
752 +**AT+CLOCKLOG=1,65535,1,5**
610 610  
611 -(% style="color:blue" %)**Downlink Command:  **
754 +After the node sends the first packet, data is recorded to the memory at intervals of 1 minute. For each TDC uplink, the uplink load will include: battery information + the last 5 memory records (payload + timestamp).
612 612  
613 -No downlink commands for feature
756 +(% class="wikigeneratedid" %)
757 +[[image:image-20240620104257-1.png||height="676" width="1264"]]
614 614  
759 +(% class="wikigeneratedid" %)
760 +(% style="color:red" %)**Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.**
615 615  
616 -== 2.11 Domain name resolution settings(Since firmware v1.1.0) ==
762 +(% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x08(%%)**
617 617  
764 +Format: Command Code (0x08) followed by 5 bytes.
618 618  
619 -Feature: Set dynamic domain name resolution IP.
766 +* **Example 1**: Downlink Payload:** 08 01 FFFF 0F 08**  ~/~/ Set SHT record time: AT+CLOCKLOG=1,65535,15,8
767 +* **Example 2**: Downlink Payload:** 08 01 04B0 0F 08**  ~/~/ Set SHT record time: AT+CLOCKLOG=1,1200,15,8
620 620  
621 -(% style="color:blue" %)**AT command: AT+BKDNS**
769 +(% style="color:red" %)**Note: When entering the downlink payload, there must be no Spaces between bytes.**
622 622  
623 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
624 -|=(% style="width: 138px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 229px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation**
625 -|(% style="width:134px" %)(((
626 -AT+BKDNS=?
627 -)))|(% style="width:143px" %)Get current Settings|(% style="width:606px" %)(((
628 -0,0,NULL  (default)
629 -OK
630 -)))
631 -|(% colspan="1" rowspan="3" style="width:134px" %)(((
632 -
633 633  
772 +== 3.11 Set the TLS mode ==
634 634  
635 635  
775 +Refer to this link ([[MQTT Connection to send data to Tago.io>>http://wiki.dragino.com/xwiki/bin/view/Main/General%20Manual%20for%20-CB%20%2C%20-CS%20models/#H3.7Tago.io28viaMQTT29]])to use the TLS mode.
636 636  
777 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+TLSMOD**
637 637  
779 +**Example 1: ** AT+TLSMOD=0,0  ~/~/ Disable TLS Mode.
638 638  
781 +**Example 2:**  AT+TLSMOD=1,0  ~/~/ No authentication
639 639  
783 + AT+TLSMOD=1,1  ~/~/ Perform server authentication
640 640  
785 + AT+TLSMOD=1,2  ~/~/ Perform server and client authentication if requested by the remote server
641 641  
787 +(% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x09(%%)**
642 642  
643 -AT+BKDNS=a,b,c
644 -)))|(% style="width:143px" %)(((
645 -**a**: Enable/Disable dynamic domain name resolution.
646 -)))|(% style="width:606px" %)**1**: Disable dynamic domain name update. The ip address will be saved after the domain name is resolved, if the next domain name resolution fails, the last saved ip address will be used.
647 -**2**: Enable dynamic domain name update. The ip address will be saved after domain name resolution, if the next domain name resolution fails, the last saved ip address will be used, and the domain name resolution will be updated regularly according to the time set by the customer.
648 -|(% style="width:143px" %)**b**: Set the time to update the domain name resolution at regular intervals.|(% style="width:606px" %)(((
649 -Unit: hour
650 -)))
651 -|(% style="width:143px" %)(((
652 -**c**: Set the IP address manually.
653 -)))|(% style="width:606px" %)(((
654 -The format is the same as AT+SERVADDR.
655 -If domain name resolution fails, this ip address will be used directly, if domain name resolution succeeds, parameter c will be updated to the successfully resolved IP address.
656 -)))
789 +Format: Command Code (0x09) followed by 2 bytes.
657 657  
658 -**Example:**
791 +Example1:  Downlink Payload: **09 00 00    **~/~/ AT+TLSMOD=0,0
659 659  
660 -* AT+BKDNS=1,0  ~/~/ Dynamic domain name resolution is disabled.
661 -* AT+BKDNS=2,1  ~/~/ The dynamic domain name resolution function is enabled and the automatic update time is set to 1 hour.
662 -* AT+BKDNS=2,4,3.69.98.183,1883  ~/~/ The dynamic domain name resolution function is enabled and the automatic update time is set to 4 hour, and manually set the ip address, if the domain name failed to resolve, it will directly use this ip to communicate. When the next domain name resolution is successful, it will be updated to the ip address of the successful resolution.
793 +Example2:  Downlink Payload: **09 01 02    **~/~/ AT+TLSMOD=1,2
663 663  
664 -(% style="color:blue" %)**Downlink Command:  **
665 665  
666 -No downlink commands for feature
796 +== 3.12 Set GNSS open time ==
667 667  
668 668  
669 -= 3. Configure SE0X-NB/NS =
799 +Extend the time to turn on GNSS. The automatic GPS location time is extended when the node is activated.
670 670  
671 -== 3.1 Configure Methods ==
801 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+GNSST**
672 672  
803 +Example: AT+GNSST=30  ~/~/ Set the GPS positioning time to 30 seconds
673 673  
674 -SE0X-NB/NS supports below configure method:
805 +(% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x10(%%)**
675 675  
676 -* AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
807 +Format: Command Code (0x10) followed by 2 bytes.
677 677  
678 -* AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.4UARTConnectionforRS485-BLbasemotherboard]].
809 +Example:  Downlink Payload: **10 00 1E    **~/~/ AT+GNSST=30
679 679  
680 -== 3.2  Serial Access Password ==
681 681  
812 +== 3.13 Turn on/off GPS ==
682 682  
683 -After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
684 684  
685 -The label on the box of the node will print the initial password: AT+PIN=**xxxxxx**, and directly use the six-digit password to access the AT instruction window.
815 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+GPS **
686 686  
687 -[[image:image-20240826170129-1.png]]
817 +**Ex1:  **AT+GPS=0  ~/~/ Turn off GPS
688 688  
819 +**Ex2:  **AT+GPS=1  ~/~/ Turn on GPS
689 689  
690 -If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), NB nodes only support lowercase letters.
821 +(% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x11(%%)**
691 691  
692 -[[image:image-20240826170135-2.png]]
823 +Format: Command Code (0x11) followed by 1 byte.
693 693  
825 +Example:  Downlink Payload: **11 01   **~/~/ AT+GPS=1
694 694  
695 -(% style="color:red" %)**Note: After entering the command, you need to add a line break, and you can also set automatic line breaks in the Bluetooth tool or UART connection tool.**
696 696  
697 -[[image:image-20240826170142-3.png]]
828 +== 3.14 Set GPS positioning interval ==
698 698  
699 699  
700 -== 3.3 AT Commands Set ==
831 +Feature: Set GPS positioning interval (unit: hour).
701 701  
833 +When GPS is enabled, the node automatically locates and uplinks each time it passes **GTDC time** after activation.
702 702  
703 -AT+<CMD>?        : Help on <CMD>
835 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+GTDC**
704 704  
705 -AT+<CMD>         : Run <CMD>
837 +Example: AT+GTDC=24  ~/~/ Set the GPS positioning interval to 24h.
706 706  
707 -AT+<CMD>=<value> : Set the value
839 +(% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x12(%%)**
708 708  
709 -AT+<CMD>=?       : Get the value
841 +Format: Command Code (0x12) followed by 3 bytes.
710 710  
843 +Example: 24 hours:  24(D)=0x18(H)
711 711  
712 -(% style="color:blue" %)**General Commands**      
845 + Downlink Payload: **12 00 00 18   **~/~/ AT+GTDC=24
713 713  
714 -AT                    : Attention       
715 715  
716 -AT?  : Short Help     
848 +== 3.15 Set the search network time ==
717 717  
718 -ATZ  : MCU Reset    
719 719  
720 -AT+TDC  : Application Data Transmission Interval
851 +Feature: Get or Set the time to join the network(unit: minutes).
721 721  
722 -AT+CFG  : Print all configurations
853 +(% style="color:blue" %)**AT Command: **(% style="color:#037691" %)**AT+CSQTIME**
723 723  
724 -AT+CFGMOD           : Working mode selection
855 +Example: AT+CSQTIME=10  ~/~/ Set the search time to 10 minutes.
725 725  
726 -AT+DEUI  : Get or set the Device ID
857 +(% style="color:blue" %)**Downlink command:**(%%)** (% style="color:#037691" %)0x13(%%)**
727 727  
728 -AT+INTMOD            : Set the trigger interrupt mode
859 +Format: Command Code (0x13) followed by 1 byte.
729 729  
730 -AT+5VT           : Set extend the time of 5V power  
861 +Example Downlink Payload: **13 0A   **~/~/ AT+CSQTIME=10
731 731  
732 -AT+PRO          : Choose agreement
733 733  
734 -AT+RXDL  : Extend the sending and receiving time
864 +== 3.16 Humidity and Temperature alarm function ==
735 735  
736 -AT+DNSCFG  : Get or Set DNS Server
737 737  
738 -AT+GETSENSORVALUE   : Returns the current sensor measurement
867 +On each sampling define by AT+CLOCKLOG=1,65535,(% style="color:red" %)**15**(%%),8 ( default 15 minutes), when the value exceed the range, it will trigger an Alarm and immediately sends a uplink.
739 739  
740 -AT+NOUD  : Get or Set the number of data to be uploaded
869 +(% style="color:blue" %)**AT Command:**
741 741  
742 -AT+CDP     : Read or Clear cached data
871 +(% style="color:#037691" %)**AT+ SHTEMP=min,max**
743 743  
744 -AT+SERVADDR Server Address
873 +SHTTEMP must be -40 to 125.
745 745  
875 +Example: AT+ SHTEMP=20,30  ~/~/ Alarm when temperature lower than 20 or higher than 30
746 746  
747 -(% style="color:blue" %)**MQTT Management**
877 +(% style="color:#037691" %)**AT+ SHHUM=min,max**
748 748  
749 -AT+CLIENT               : Get or Set MQTT client
879 +Example: AT+ SHHUM=50,80  ~/~/ Alarm when humidity lower than 50 or higher than 80.
750 750  
751 -AT+UNAME              : Get or Set MQTT Username
752 752  
753 -AT+PWD                  : Get or Set MQTT password
882 +(% style="color:blue" %)**Downlink Commands: **(% style="color:#037691" %)**0x0A**
754 754  
755 -AT+PUBTOPIC  : Get or Set MQTT publish topic
884 +Format: Command Code (0x0A) followed by 4 bytes.
756 756  
757 -AT+SUBTOPIC  : Get or Set MQTT subscription topic
886 +The first and second bytes following the function code are the minimum and maximum value of **SHTEMP**, and the third and fourth bytes are the minimum and maximum value of **SHHUM**.
758 758  
888 +* **Example 1**: Downlink Payload:** 0A 14 1E 32 50**  ~/~/ AT+ SHTEMP=20,30 & AT+ SHHUM=50,80
889 +* **Example 2**: Downlink Payload:** 0A 00 00 00 00      ** ~/~/ disable temperature and humidity alarm.
759 759  
760 -(% style="color:blue" %)**Information**          
891 +For **negative payload temperature**, calculate it as follows: **65536+ temperature = FFaa**, the value is **aa**.
761 761  
762 -AT+FDR  : Factory Data Reset
893 +* **Example**:  -40℃: 65536+(-40)=65496(D)=FFD8(H), Therefore, select a numerical representation of D8 as -40 for the downlink payload.
763 763  
764 -AT+PWORD  : Serial Access Password
895 +(% style="color:red" %)**Notice:**
765 765  
766 -AT+LDATA  : Get the last upload data
897 +* To disable Alarm, user can set min and max to same value , such as (% style="color:#037691" %)**AT+SHTEMP=0,0 and AT+SHHUM=50,50**
898 +* If user only want to send only min or max, user can set the alarm to a value that device won't reach. For example: (% style="color:#037691" %)**AT+SHTEMP=-40,0**(%%)(Alarm above 0 degrees Celsius).
767 767  
768 -AT+CDP  : Read or Clear cached data
900 +== 3.17 Set the IPv4 or IPv6 ==
769 769  
770 770  
771 -= 4. Battery & Power Consumption =
903 +This command is used to set IP version.
772 772  
905 +(% style="color:blue" %)**AT command:**
773 773  
774 -SE0X-NB/NS use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
907 +* (% style="color:#037691; font-weight:bold" %)**AT+IPTYPE**(% style="color:#037691" %)**=1**(%%)**      **~/~/ IPv4
908 +* (% style="color:#037691; font-weight:bold" %)**AT+IPTYPE**(% style="color:#037691" %)**=2**(%%)**      **~/~/ IPv6
775 775  
776 -[[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
910 +== 3.18 Configure Network Category to be Searched for under LTE RAT. ==
777 777  
778 778  
779 -= 5. Firmware update =
913 +(% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+IOTMOD=xx(%%)**
780 780  
915 +(% style="color:#037691" %)**xx:**(%%)  **0:** eMTC
781 781  
782 -User can change device firmware to::
917 + **1:** NB-IoT
783 783  
784 -* Update with new features.
919 + **2:** eMTC and NB-IoT
785 785  
786 -* Fix bugs.
787 787  
788 -Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/4pmvwgzq98bb87wdoxcbt/ACwDyV32MOsviECJbqAFWQs?rlkey=hna0r2dkbodvqihvzt7ix4vtm&st=wwlz42xa&dl=0]]**
922 +== 3.19 Factory data reset ==
789 789  
790 -Methods to Update Firmware:
791 791  
792 -* (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
925 +Two different restore factory Settings configurations.
793 793  
794 -* Update through UART TTL interface **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
927 +(% style="color:blue" %)**AT command:**
795 795  
796 -(((
797 -
798 -)))
929 +* (% style="color:#037691; font-weight:bold" %)**AT+FDR**(%%)**       **~/~/ Reset Parameters to Factory Default.
930 +* (% style="color:#037691; font-weight:bold" %)**AT+FDR1**(%%)**     **~/~/ Reset parameters to factory default values **except for passwords**.
799 799  
800 -= 3. Configure SE0X-NB/NS =
932 +== 3.20 Set CoAP option ==
801 801  
802 -== 3.1 Configure Methods ==
803 803  
935 +Feature: Set CoAP option, follow this link to set up the CoaP protocol.
804 804  
805 -SE0X-NB/NS supports below configure method:
937 +(% style="color:blue" %)**AT command: **(% style="color:#037691; font-weight:bold" %)**AT+URI1~~AT+URI8**
806 806  
807 -* AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
939 +(% style="color:#037691; font-weight:bold" %)**AT+URI1=11,"i"         **(%%)~/~/ "i/" indicates that the endpoint supports observation mode. In -CB products, fixed  setting AT+URI1=11,"i"
808 808  
809 -* AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
941 +(% style="color:#037691; font-weight:bold" %)**AT+URI2=11,"CoAP endpoint URl"   **(%%)~/~/ 11 is a fixed parameter.
810 810  
811 -* LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
943 +**Example: ** i/13a35fbe-9515-6e55-36e8-081fb6aacf86
812 812  
813 -== 3.2 General Commands ==
945 +AT+URI1=11,"i"
814 814  
947 +AT+URI2=11,"13a35fbe-9515-6e55-36e8-081fb6aacf86"
815 815  
816 -These commands are to configure:
949 +~-~-> If multiple groups of CoAP endpoint urls:
817 817  
818 -* General system settings like: uplink interval.
951 +AT+URI3=11,"i"
819 819  
820 -* LoRaWAN protocol & radio related command.
953 +AT+URI4=11,"CoAP endpoint URl"
821 821  
822 -They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
823 823  
824 -[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/]]
956 +== 3.21 Power on / power off BG95 module ==
825 825  
826 826  
827 -== 3.3 Commands special design for SE0X-NB/NS ==
959 +This command is used to power on and power off BG95 module.
828 828  
961 +* (% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+QSW**
829 829  
830 -These commands only valid for SE0X-NB/NS, as below:
963 +The module is powered on after the command is sent for the first time, and powered off after the command is sent again.
831 831  
965 +[[image:image-20240619155719-1.png||height="644" width="811"]]
832 832  
833 -=== 3.3.1 Set Transmit Interval Time ===
834 834  
968 +== 3.22 Example Query saved historical records ==
835 835  
836 -(((
837 -Feature: Change LoRaWAN End Node Transmit Interval.
838 -)))
839 839  
840 -(((
841 -(% style="color:blue" %)**AT Command: AT+TDC**
842 -)))
971 +* (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+CDP(%%)**
843 843  
844 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
845 -|=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response**
846 -|(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
847 -30000
848 -OK
849 -the interval is 30000ms = 30s
850 -)))
851 -|(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
852 -OK
853 -Set transmit interval to 60000ms = 60 seconds
854 -)))
973 +This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.
855 855  
856 -(((
857 -(% style="color:blue" %)**Downlink Command: 0x01**
858 -)))
975 +(% class="wikigeneratedid" %)
976 +[[image:image-20240619163800-2.png||height="642" width="826"]]
859 859  
860 -(((
861 -Format: Command Code (0x01) followed by 3 bytes time value.
862 -)))
863 863  
864 -(((
865 -If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
866 -)))
979 +== 3.23 Uplink log query ==
867 867  
868 -* (((
869 -Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
870 -)))
871 871  
872 -* (((
873 -Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
982 +* (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+GETLOG(%%)**
874 874  
984 +This command can be used to query upstream logs of data packets.
875 875  
876 -
877 -)))
986 +[[image:image-20240619163835-3.png||height="637" width="827"]]
878 878  
879 -=== 3.3.2 Quit AT Command ===
880 880  
989 +== 3.24 Print last few data entries ==
881 881  
882 -Feature: Quit AT Command mode, so user needs to input the password again before using AT Commands.
883 883  
884 -(% style="color:blue" %)**AT Command: AT+DISAT**
992 +Feature: Print the last few data entries
885 885  
886 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:452px" %)
887 -|=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 198px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 99px;background-color:#4F81BD;color:white" %)**Response**
888 -|(% style="width:155px" %)AT+DISAT|(% style="width:198px" %)Quit AT Commands mode|(% style="width:96px" %)OK
994 +(% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+PLDTA**
889 889  
890 -(% style="color:blue" %)**Downlink Command:**
996 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
997 +|=(% style="width: 168px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 342px; background-color: rgb(79, 129, 189); color: white;" %)**4 bytes**
998 +|(% style="width:148px" %)AT+PLDTA=5
999 +Print last 5 entries|(% style="width:169px" %)(((
1000 +Stop Tx events when read sensor data
891 891  
892 -No downlink command for this feature.
1002 +1 24/9/20 23:31:37 temp=29.4 hum=70.4
893 893  
1004 +2 24/9/20 23:46:33 temp=29.4 hum=71.2
894 894  
895 -=== 3.3.3 Set Interrupt Mode ===
1006 +3 24/9/21 00:01:33 temp=29.4 hum=71.0
896 896  
1008 +4 24/9/21 00:16:47 temp=29.5 hum=71.3
897 897  
898 -Feature, Set Interrupt mode for GPIO_EXTI of pin.
1010 +5 24/9/21 00:31:33 temp=27.5 hum=68.0
899 899  
900 -When AT+INTMOD=0 is set, GPIO_EXTI is used as a digital input port.
1012 +Start Tx events
901 901  
902 -(% style="color:blue" %)**AT Command: AT+INTMOD**
903 903  
904 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
905 -|=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
906 -|(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
907 -0
908 908  OK
909 -the mode is 0 =Disable Interrupt
910 910  )))
911 -|(% style="width:154px" %)AT+INTMOD=2|(% style="width:196px" %)(((
912 -Set Transmit Interval
913 -0. (Disable Interrupt),
914 -~1. (Trigger by rising and falling edge)
915 -2. (Trigger by falling edge)
916 -3. (Trigger by rising edge)
917 -)))|(% style="width:157px" %)OK
918 918  
919 -(% style="color:blue" %)**Downlink Command: 0x06**
1018 +(% style="color:blue" %)**Downlink Command: **
920 920  
921 -Format: Command Code (0x06) followed by 3 bytes.
1020 +No downlink commands for feature
922 922  
923 -This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
924 924  
925 -* Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
1023 +== 3.25 Print data entries base on page ==
926 926  
927 -* Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
928 928  
929 -=== 3.3.4 Set Power Output Duration ===
1026 +Feature: Print the sector data from start page to stop page.
930 930  
1028 +(% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+PDTA**
931 931  
932 -Control the output duration 5V . Before each sampling, device will
1030 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1031 +|=(% style="width: 168px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 342px; background-color: rgb(79, 129, 189); color: white;" %)**4 bytes**
1032 +|(% style="width:148px" %)AT+PDTA=1,1
1033 +Print page 1 to 1|(% style="width:169px" %)(((
1034 +Stop Tx events when read sensor data
933 933  
934 -~1. first enable the power output to external sensor,
1036 +8028B00 24/9/20 10:31:33 temp=25.3 hum=60.0
935 935  
936 -2. keep it on as per duration, read sensor value and construct uplink payload
1038 +8028B08 24/9/20 10:46:33 temp=25.3 hum=59.0
937 937  
938 -3. final, close the power output.
1040 +8028B10 24/9/20 11:01:33 temp=25.1 hum=59.3
939 939  
940 -(% style="color:blue" %)**AT Command: AT+5VT**
1042 +8028B18 24/9/20 11:16:33 temp=25.0 hum=60.7
941 941  
942 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
943 -|=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
944 -|(% style="width:154px" %)AT+5VT=?|(% style="width:196px" %)Show 5V open time.|(% style="width:157px" %)0 (default)
945 -OK
946 -|(% style="width:154px" %)AT+5VT=500|(% style="width:196px" %)Close after a delay of 1000 milliseconds.|(% style="width:157px" %)OK
1044 +8028B20 24/9/20 11:31:33 temp=24.9 hum=61.4
947 947  
948 -(% style="color:blue" %)**Downlink Command: 0x07**
1046 +8028B28 24/9/20 11:46:33 temp=24.7 hum=60.6
949 949  
950 -Format: Command Code (0x07) followed by 2 bytes.
1048 +8028B30 24/9/20 12:01:33 temp=24.8 hum=60.8
951 951  
952 -The first and second bytes are the time to turn on.
1050 +8028B38 24/9/20 12:16:33 temp=24.6 hum=61.0
953 953  
954 -* Example 1: Downlink Payload: 070000  **~-~-->**  AT+5VT=0
1052 +8028B40 24/9/20 12:31:33 temp=24.5 hum=60.8
955 955  
956 -* Example 2: Downlink Payload: 0701F4  **~-~-->**  AT+5VT=500
1054 +8028B48 24/9/20 12:46:33 temp=24.6 hum=60.5
957 957  
958 -=== 3.3.5 Setting the sensor address ===
1056 +8028B50 24/9/20 13:01:33 temp=25.1 hum=60.5
959 959  
1058 +8028B58 24/9/20 13:16:33 temp=26.4 hum=61.3
960 960  
961 -Function:Change the sensor address to 0x01, 0x02, 0x03, 0x04
1060 +8028B60 24/9/20 13:31:33 temp=27.0 hum=61.9
962 962  
963 -(% style="color:red" %)**(Note:When setting the address of the sensor, you need to connect the device individually for each one, and when modifying the address, you can't connect more than one sensor at the same time, otherwise it will be impossible to modify it, and when modifying it, you need to connect the yellow wire to VDD, and after modifying it, you need to disconnect it.)**
1062 +8028B68 24/9/20 13:46:33 temp=27.4 hum=62.3
964 964  
965 -(% style="color:blue" %)**AT Command: AT+MADD**
1064 +8028B70 24/9/20 14:01:33 temp=27.6 hum=62.6
966 966  
967 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
968 -|=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
969 -|(% style="width:154px" %)AT+MADD=1|(% style="width:196px" %)Set sensor address to 01|(% style="width:157px" %)(((
970 -Successfully modified sensor address to 0x01
1066 +8028B78 24/9/20 14:16:33 temp=27.8 hum=63.4
971 971  
1068 +Start Tx events
972 972  
973 973  OK
974 974  )))
975 -|(% style="width:154px" %)AT+MADD=2|(% style="width:196px" %)Set sensor address to 02|(% style="width:157px" %)(((
976 -Successfully modified sensor address to 0x02
977 977  
1073 +(% style="color:blue" %)**Downlink Command: **
978 978  
1075 +No downlink commands for feature
1076 +
1077 +
1078 +== 3.26 Clear Flash Record ==
1079 +
1080 +
1081 +Feature: Clear flash storage for data log feature.
1082 +
1083 +(% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+CLRTDA**
1084 +
1085 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1086 +|=(% style="width: 160px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 130px; background-color: rgb(79, 129, 189); color: white;" %)**Function**|=(% style="width: 220px; background-color: rgb(79, 129, 189); color: white;" %)**Response**
1087 +|(% style="width:160px" %)AT+CLRDTA |(% style="width:130px" %)(((
1088 +Clear date record
1089 +)))|(% style="width:213px" %)(((
1090 +Stop Tx events,Please wait for the erase to complete
1091 +
1092 +Clear all stored sensor data...
1093 +
1094 +Start Tx events
1095 +
979 979  OK
980 980  )))
981 981  
982 -(% style="color:blue" %)**Downlink Command:**
1099 +(% style="color:blue" %)**Downlink Command:  **(% style="color:#037691" %)**0x32**
983 983  
984 -No downlink command for this feature.
1101 +* Example: 0x32 00   ~/~/  Same as AT+CLRDTA
985 985  
1103 +== 3.27 Working mode selection(Since firmware V1.0.4) ==
986 986  
987 -=== 3.3.6 Get or Set the sensor mode ===
988 988  
1106 +Feature: Set interrupt mode or count mode (PB15 pin).
989 989  
990 -Function: Set default mode or original mode
1108 +(% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+CFGMOD**
991 991  
1110 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:470px" %)
1111 +|=(% style="width: 191px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 279px; background-color: rgb(79, 129, 189); color: white;" %)**Function**
1112 +|(% style="width:191px" %)AT+CFGMOD=1|(% style="width:277px" %)(((
1113 +Interrupt mode (default mode)
1114 +)))
1115 +|(% style="width:191px" %)AT+CFGMOD=2|(% style="width:277px" %)count mode
992 992  
993 -(% style="color:blue" %)**AT Command: AT+MOD**
1117 +(% style="color:blue" %)**Downlink Command:  **(% style="color:#037691" %)**0x02**
994 994  
995 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
996 -|=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
997 -|(% style="width:154px" %)AT+MOD=0|(% style="width:196px" %)Set the operating mode to the default mode|(% style="width:157px" %)(((
1119 +* Downlink command: 02 01  ~/~/ Equal to AT+CFGMOD=1
1120 +* Downlink command: 02 02  ~/~/ Equal to AT+CFGMOD=2
1121 +
1122 +== 3.28 Set Count value(Since firmware V1.0.4) ==
1123 +
1124 +
1125 +Feature: Set the count value of PB15.
1126 +
1127 +(% style="color:blue" %)**AT command: **(% style="color:#037691" %)**AT+EXT**
1128 +
1129 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:470px" %)
1130 +|=(% style="width: 157px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 211px; background-color: rgb(79, 129, 189); color: white;" %)**Function**|=(% style="width: 102px; background-color: rgb(79, 129, 189); color: white;" %)**Response**
1131 +|(% style="width:157px" %)AT+EXT=?|(% style="width:211px" %)Show current count value.|(% style="width:110px" %)(((
1132 +0  (default)
1133 +
998 998  OK
999 999  )))
1000 -|(% style="width:154px" %)AT+MOD=1|(% style="width:196px" %)Setting the operating mode to the original mode|(% style="width:157px" %)(((
1001 -
1136 +|(% style="width:157px" %)AT+EXT=100|(% style="width:211px" %)Set the count value to 100.|(% style="width:110px" %)OK
1002 1002  
1138 +(% style="color:blue" %)**Downlink Command:  **(% style="color:#037691" %)**0x0B**
1139 +
1140 +Format: Command Code (0x0B) followed by 4 bytes.
1141 +
1142 +* Downlink command: 0B 00 00 00 00  ~/~/ Set the count value to 0
1143 +* Downlink command: 0B 00 00 00 64  ~/~/ Set the count value to 100
1144 +
1145 +== 3.29 Set the downlink debugging mode ==
1146 +
1147 +
1148 +Feature: Set the conversion between the standard version and 1T version downlinks.
1149 +
1150 +(% style="color:blue" %)**AT command: AT+DOWNTE**
1151 +
1152 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1153 +|=(% style="width: 134px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 233px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation**
1154 +|(% style="width:134px" %)AT+DOWNTE=?|(% style="width:143px" %)Get current Settings|(% style="width:229px" %)(((
1155 +0,0  (default)
1156 +
1003 1003  OK
1004 1004  )))
1159 +|(% colspan="1" rowspan="2" style="width:134px" %)(((
1160 +
1005 1005  
1006 -(% style="color:blue" %)**Downlink Command: 0x07**
1007 1007  
1008 -Format: Command Code (0x0A) followed by 1 bytes.
1009 1009  
1010 -The second byte is the mode selection.
1164 +AT+DOWNTE=a,b
1165 +)))|(% style="width:143px" %)**a**: Set the conversion between the downlink of the standard version and 1T version|(% style="width:229px" %)(((
1166 +**0**: Set the downlink of the standard version.
1167 +**1**: Set the downlink of the 1T version(ThingsEye platform)
1168 +)))
1169 +|(% style="width:143px" %)**b**: Enable/Disable downlink debugging|(% style="width:229px" %)(((
1170 +**0**: Disable downlink debugging mode.
1171 +**1**: Enable downlink debugging mode, users can see the original downlink reception.
1172 +)))
1011 1011  
1012 -* Example 1: Downlink Payload: 0A00  **~-~-->**  AT+MOD=0
1174 +**Example:**
1013 1013  
1014 -* Example 2: Downlink Payload: 0A01  **~-~-->**  AT+MOD=1
1176 +* AT+DOWNTE=0,1  ~/~/ Set to standard version downlink, and enable downlink debugging.
1177 +* AT+DOWNTE=1,1  ~/~/ Set to 1T version downlink, and enable downlink debugging.
1015 1015  
1179 +(% style="color:blue" %)**Downlink Command:  **
1180 +
1181 +No downlink commands for feature
1182 +
1183 +
1184 +
1016 1016  = 4. Battery & Power Consumption =
1017 1017  
1018 1018  
... ... @@ -1021,26 +1021,27 @@
1021 1021  [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
1022 1022  
1023 1023  
1024 -= 5. OTA Firmware update =
1193 += 5. Firmware update =
1025 1025  
1026 1026  
1027 -(% class="wikigeneratedid" %)
1028 -User can change firmware SE0X-NB/NS to:
1196 +User can change device firmware to::
1029 1029  
1030 -* Change Frequency band/ region.
1031 -
1032 1032  * Update with new features.
1033 1033  
1034 1034  * Fix bugs.
1035 1035  
1036 -Firmware and changelog can be downloaded from : [[**Firmware download link**>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/ADhr1fTfOsSPltOrth0eMRg/LoRaWAN%20End%20Node/SE0X-LB?rlkey=ojjcsw927eaow01dgooldq3nu&subfolder_nav_tracking=1&dl=0]]
1202 +Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/4pmvwgzq98bb87wdoxcbt/ACwDyV32MOsviECJbqAFWQs?rlkey=hna0r2dkbodvqihvzt7ix4vtm&st=wwlz42xa&dl=0]]**
1037 1037  
1038 1038  Methods to Update Firmware:
1039 1039  
1040 -* (Recommanded way) OTA firmware update via wireless:   [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]
1206 +* (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
1041 1041  
1042 -* Update through UART TTL interface. **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
1208 +* Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
1043 1043  
1210 +(((
1211 +
1212 +)))
1213 +
1044 1044  = 6. FAQ =
1045 1045  
1046 1046  == 6.1 AT Commands input doesn't work ==