Last modified by Karry Zhuang on 2025/07/03 11:59

From version 145.2
edited by Karry Zhuang
on 2024/05/06 17:31
Change comment: There is no comment for this version
To version 148.1
edited by Karry Zhuang
on 2024/05/06 17:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -509,11 +509,32 @@
509 509  
510 510  = 4. Configure AIS Sensor using AT commands =
511 511  
512 -== 4.1 System Management Commands ==
512 +== 4.1 Configure Methods ==
513 513  
514 -=== 4.1.1 Change Uplink Interval ===
515 515  
515 + configure method:
516 516  
517 +* AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
518 +* 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]].
519 +* LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
520 +
521 +== 4.2 General Commands ==
522 +
523 +
524 +These commands are to configure:
525 +
526 +* General system settings like: uplink interval.
527 +* LoRaWAN protocol & radio related command.
528 +
529 +They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
530 +
531 +[[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/]]
532 +
533 +== 4.3 Commands special design for AIS Sensor ==
534 +
535 +=== 4.3.1 Change Uplink Interval ===
536 +
537 +
517 517  Feature: Change LoRaWAN End Node Transmit Interval.
518 518  
519 519  
... ... @@ -546,7 +546,7 @@
546 546  
547 547  (% style="display:none" %) (%%)
548 548  
549 -== 4.1.2 Request the server to send an ACK ==
570 +== 4.3.2 Request the server to send an ACK ==
550 550  
551 551  
552 552  (% style="color:blue" %)**AT Command: AT+PNACKMD**
... ... @@ -568,7 +568,7 @@
568 568  0x34 00  ~/~/Same As AT+PNACKMD=0
569 569  
570 570  
571 -=== 4.1.3 Set Interrupt Mode ===
592 +=== 4.3.3 Set Interrupt Mode ===
572 572  
573 573  
574 574  Feature, Set Interrupt mode for GPIO_EXIT.
... ... @@ -604,3 +604,36 @@
604 604  * Example 1: Downlink Payload: 06000000  **~-~-->**  AT+INTMOD1=0
605 605  * Example 2: Downlink Payload: 06000003  **~-~-->**  AT+INTMOD1=3
606 606  * Example 3: Downlink Payload: 06000102  **~-~-->**  AT+INTMOD2=2
628 +
629 +=== ===
630 +
631 +=== 4.3.4 Clock logging (Since firmware version v1.2.1) ===
632 +
633 +
634 +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.
635 +
636 +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.
637 +
638 +* (% style="color:blue" %)**AT Command:**(%%)** (% style="color:#037691" %)AT+CLOCKLOG=a,b,c,d(%%)**
639 +
640 +(% style="color:#037691" %)**a: **(%%)**0:** Disable Clock logging.  ** 1: **Enable Clock Logging
641 +
642 +(% 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.
643 +
644 +(% style="color:#037691" %)**c: **(%%)Specify the sampling interval: range **(0 ~~ 255 minutes)**
645 +
646 +(% style="color:#037691" %)**d:**(%%)How many entries should be uplink on every TDC **(max 32)**
647 +
648 +[[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"]]
649 +
650 +**Example:**
651 +
652 +**AT+CLOCKLOG=1,65535,1,5**
653 +
654 +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).
655 +
656 +(% class="wikigeneratedid" %)
657 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/TS01-NB_NB-IoT_Tilting_Sensor_User_Manual/WebHome/image-20240316163501-1.png?width=1064&height=517&rev=1.1||alt="image-20240316163501-1.png"]]
658 +
659 +(% class="wikigeneratedid" %)
660 +(% 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.**