Wiki source code of How to set the transmit time interval -- LoRaWAN End node
Last modified by Kilight Cao on 2025/06/12 14:27
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **~ Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | |||
6 | |||
7 | |||
8 | = **1. Introduction** = | ||
9 | |||
10 | |||
11 | This chapter describes how to set Transmit Time Interval. | ||
12 | |||
13 | |||
14 | = **2. Set Transmit Time Interval** = | ||
15 | |||
16 | |||
17 | TDC can be controlled by Downlink Payload. | ||
18 | |||
19 | ((( | ||
20 | **For example**: AT+TDC=0x258=600s ** ; Payload: **01 00 02 58 TDC=600s The time interval is represented by hexadecimal conversion to decimal. | ||
21 | ))) | ||
22 | |||
23 | [[image:image-20220527085044-1.png]] | ||
24 | |||
25 | |||
26 | If the payload=0100003C, it means set the END Node's TDC to 0x00003C=60(S), 3C (HEX) = 60 (decimal),while type code is 01. | ||
27 | |||
28 | **Payload: **01 00 00 1E TDC=30s Payload: 01 00 00 3C TDC=60s | ||
29 | |||
30 | |||
31 | == **2.1 Example Downlink payload setting in TTN:** == | ||
32 | |||
33 | [[image:image-20221110143023-2.png||height="632" width="808"]] | ||
34 | |||
35 | |||
36 | == **2.1 Example of set the Transmit Time Interval using Bluetooth:** == | ||
37 | |||
38 | |||
39 | TDC can be controlled by Bluetooth. | ||
40 | |||
41 | (% style="color:red" %)**Note: This feature is only available on devices that support Bluetooth sensors.** | ||
42 | |||
43 | |||
44 | Here list the models that support BLE and the method to activate BLE function. | ||
45 | |||
46 | (% style="color:blue" %)**Models:**(%%)** **All models with -LB, -LS , -NB, -NS, -CB, -CS suffix | ||
47 | |||
48 | (% style="color:blue" %)**BLE Activate Method:** | ||
49 | |||
50 | Device is battery power type and BLE will be only activate on below case: | ||
51 | |||
52 | * Press button to send an uplink | ||
53 | |||
54 | * Press button to active device. | ||
55 | |||
56 | * Device Power on or reset. | ||
57 | |||
58 | If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode. | ||
59 | |||
60 | Download link of dragino mobile app: **[[Mobile_APP>>url:https://www.dropbox.com/scl/fo/gyscmfn1s03oz3n8rif8w/AJW7JoMQsQ56dtlls2SNf9c?rlkey=3q2cxwriyzh26vuairx01yebc&e=1&st=be5jv92w&dl=0]]** | ||
61 | |||
62 | Google Play Store: **[[DeviceTool.app>>url:https://play.google.com/store/apps/details?id=com.teyi.device.tool.app]]** | ||
63 | |||
64 | |||
65 | For more detailed steps on how to use the dragino mobile app, please refer to the following link: **[[BLE Bluetooth Remote Configure - DRAGINO>>url:https://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]]** | ||
66 | |||
67 | (% style="color:blue" %)**AT Command: AT+TDC** | ||
68 | |||
69 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:727.222px" %) | ||
70 | |(% style="background-color:#4f81bd; color:white; width:165px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:227px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:329px" %)**Response** | ||
71 | |(% style="width:165px" %)AT+TDC=?|(% style="width:227px" %)Show current transmit Interval|(% style="width:329px" %)30000((( | ||
72 | OK | ||
73 | |||
74 | the interval is 30000ms = 30s | ||
75 | ))) | ||
76 | |(% style="width:165px" %)AT+TDC=60000|(% style="width:227px" %)Set Transmit Interval|(% style="width:329px" %)OK((( | ||
77 | Set transmit interval to 60000ms = 60 seconds | ||
78 | ))) | ||
79 | |||
80 | For example, to change the packet sending interval to 12s, use the AT command: AT+TDC=12000 | ||
81 | |||
82 | [[image:1749708439295-260.png||height="742" width="334"]] | ||
83 | |||
84 | |||
85 | = **3. Downlink Method** = | ||
86 | |||
87 | |||
88 | See use note for different serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) | ||
89 | |||
90 |