Hide last authors
Xiaoling 19.3 1 **Table of Contents: **
Xiaoling 16.2 2
Edwin Chen 1.1 3 {{toc/}}
4
Xiaoling 16.2 5
6
7
Xiaoling 19.3 8 = 1. Overview =
Edwin Chen 1.1 9
Xiaoling 6.1 10 (((
Xiaoling 19.2 11
12
Edwin Chen 1.1 13 Shipped LT-22222-L is base on LoRaWAN protocol. We also develop a open source Point to Point LoRa protocol for LT-22222-L. The source code and hex file can be found at:
Xiaoling 6.1 14 )))
Edwin Chen 1.1 15
Xiaoling 6.1 16 (((
Edwin Chen 1.1 17 [[Point to Point Software for LT-22222-L>>https://github.com/dragino/LT-22222-L]].
Xiaoling 6.1 18 )))
Edwin Chen 1.1 19
20
Xiaoling 19.3 21 = 2. Features for this firmware =
Edwin Chen 1.1 22
Xiaoling 19.3 23 == 2.1  Point To Point ==
Xiaoling 4.2 24
Xiaoling 19.3 25 === 2.1.1 Overview ===
Xiaoling 8.1 26
Xiaoling 15.4 27
Xiaoling 8.2 28 [[image:image-20220602111219-1.png||height="472" width="972"]]
Xiaoling 4.2 29
30
Xiaoling 19.3 31 === 2.2.2 Configure ===
Xiaoling 4.2 32
Xiaoling 15.3 33
Xiaoling 19.3 34 (% border="1" style="background-color:#f7faff; color:black; width:360px" %)
35 |=(% style="width: 179px;" %)**A's configuration**|=(% style="width: 177px;" %)**B's configuration**
36 |(% style="width:179px" %)AT+GROUPMOD=0|(% style="width:177px" %)AT+GROUPMOD=0
37 |(% style="width:179px" %)AT+TXCHS=868700000|(% style="width:177px" %)AT+TXCHS=869000000
38 |(% style="width:179px" %)AT+RXCHS=869000000|(% style="width:177px" %)AT+RXCHS=868700000
39 |(% style="width:179px" %)AT+TRIG1=2,50|(% style="width:177px" %)AT+TRIG1=2,50
40 |(% style="width:179px" %)AT+TRIG2=2,50|(% style="width:177px" %)AT+TRIG2=2,50
41 |(% style="width:179px" %)AT+DI1TODO1=2|(% style="width:177px" %)AT+DI1TODO1=2
42 |(% style="width:179px" %)AT+DI1TORO1=2|(% style="width:177px" %)AT+DI1TORO1=2
43 |(% style="width:179px" %)AT+DI2TODO2=2 |(% style="width:177px" %)AT+DI2TODO2=2
44 |(% style="width:179px" %)AT+DI2TORO2=2|(% style="width:177px" %)AT+DI2TORO2=2
Xiaoling 4.2 45
Xiaoling 19.2 46
47
Xiaoling 19.3 48 === 2.2.3 Serial port display ===
Xiaoling 12.2 49
Xiaoling 15.2 50
Xiaoling 12.2 51 (% class="wikigeneratedid" %)
Xiaoling 4.2 52 [[image:image-20220602111219-2.png]]
53
54
Xiaoling 12.2 55 (% class="wikigeneratedid" %)
Xiaoling 4.2 56 [[image:image-20220602111219-3.png]]
57
Xiaoling 19.2 58
Xiaoling 12.2 59 (% class="wikigeneratedid" %)
60 If the sender does not get the ACK reply from the receiver, it will retransmit up to 4 times, each interval is 6 seconds, and the UplinkCounter of the retransmission will not increase.
61
62
Xiaoling 19.4 63 == 2.2  Point To Mult-Point ==
Xiaoling 12.2 64
Xiaoling 19.3 65 === 2.2.1 Overview ===
Xiaoling 12.2 66
67
Xiaoling 15.2 68 [[image:1654152390874-192.png]]
Xiaoling 12.2 69
70
Xiaoling 19.3 71 === 2.2.2  Configure ===
Xiaoling 15.2 72
73
Xiaoling 19.2 74 (% style="color:blue" %)**Configuration of the TX group:**
Xiaoling 15.2 75
76 AT+GROUPMOD=0,2
77
78 AT+TXCHS=868700000
79
80 AT+RXCHS=869000000
81
82 AT+TRIG1=2,50
83
84 AT+TRIG2=2,50
85
86 AT+DI1TODO1=1
87
88 AT+DI1TORO1=1
89
90 AT+DI2TODO2=1
91
92 AT+DI2TORO2=1
93
94
Xiaoling 19.2 95 (% style="color:blue" %)**Configuration for RX group number 1:**
Xiaoling 15.2 96
97 AT+GROUPMOD=1,1
98
99 AT+TXCHS=869000000
100
101 AT+RXCHS=868700000
102
103
Xiaoling 19.2 104 (% style="color:blue" %)**Configuration for RX group number 2:**
Xiaoling 15.2 105
106 AT+GROUPMOD=1,2
107
108 AT+TXCHS=869000000
109
110 AT+RXCHS=868700000
111
112
Xiaoling 19.3 113 === 2.2.3 Serial port display ===
Xiaoling 15.2 114
115
116 [[image:image-20220602144747-1.png]]
117
118
119 [[image:image-20220602144747-2.png]]
120
Xiaoling 19.3 121
Xiaoling 8.9 122 (((
Xiaoling 15.2 123 If the TX group does not receive all the ACK replies from the RX group, it will retransmit up to 4 times, each time interval is 30 seconds, and the retransmission UplinkCounter will not increase.
Xiaoling 8.9 124 )))
Xiaoling 4.2 125
Xiaoling 8.2 126
Xiaoling 19.3 127 == 2.3 AT command ==
Xiaoling 8.2 128
129
Xiaoling 11.3 130 (((
Xiaoling 8.6 131 (% style="color:#037691" %)**ATZ** (%%)**: ** Trig a reset of the MCU
Xiaoling 11.3 132 )))
Xiaoling 8.2 133
Xiaoling 11.3 134 (((
Xiaoling 8.6 135 (% style="color:#037691" %)**AT+FDR** (%%)**:**  Reset Parameters to Factory Default, Keys Reserve
Xiaoling 11.3 136 )))
Xiaoling 8.2 137
Xiaoling 11.3 138 (((
Xiaoling 8.6 139 (% style="color:#037691" %)**AT+FCU** (%%)**:**  Get or Set the Frame Counter Uplink
Xiaoling 11.3 140 )))
Xiaoling 8.2 141
Xiaoling 11.3 142 (((
Xiaoling 8.6 143 (% style="color:#037691" %)**AT+FCD** (%%)**:**  Get or Set the Frame Counter Downlink
Xiaoling 11.3 144 )))
Xiaoling 8.2 145
Xiaoling 11.3 146 (((
Xiaoling 8.6 147 (% style="color:#037691" %)**AT+TXP** (%%)**:**  Get or Set the transmit power, the maximum is 20dBm (default is 14dBm)
Xiaoling 11.3 148 )))
Xiaoling 8.2 149
Xiaoling 11.3 150 (((
Xiaoling 8.8 151 (% style="color:#037691" %)**AT+SYNC** (%%)**:**  Get or Set the Sync word [1:0x34,0:0x12] (default is 1)
Xiaoling 11.3 152 )))
Xiaoling 8.2 153
Xiaoling 11.3 154 (((
Xiaoling 8.7 155 (% style="color:#037691" %)**AT+PMB** (%%)**:    **Get or Set the preamble (default:8)
Xiaoling 11.3 156 )))
Xiaoling 8.2 157
Xiaoling 11.3 158 (((
Xiaoling 8.6 159 (% style="color:#037691" %)**AT+TXCHS **(%%)**:** Get or Set the transmit frequency of TX (default:868700000)
Xiaoling 11.3 160 )))
Xiaoling 8.2 161
Xiaoling 11.3 162 (((
Xiaoling 8.6 163 (% style="color:#037691" %)**AT+TXSF **(%%)**:**  Get or Set the spreading factor of TX (7 to 12) (default:12)
Xiaoling 11.3 164 )))
Xiaoling 8.2 165
Xiaoling 11.3 166 (((
Xiaoling 8.6 167 (% style="color:#037691" %)**AT+RXCHS **(%%)**:** Get or Set the transmit frequency of RX (default:869000000)
Xiaoling 11.3 168 )))
Xiaoling 8.2 169
Xiaoling 11.3 170 (((
Xiaoling 8.6 171 (% style="color:#037691" %)**AT+RXSF **(%%)**:**  Get or Set the spreading factor of RX (7 to 12) (default:12)
Xiaoling 11.3 172 )))
Xiaoling 8.2 173
Xiaoling 11.3 174 (((
Xiaoling 9.2 175 (% style="color:#037691" %)**AT+BW **(%%)**:       **Get or Set the bandwidth [0:125khz,1:250khz,2:500khz] (default:0)
Xiaoling 11.3 176 )))
Xiaoling 8.2 177
Xiaoling 11.3 178 (((
Xiaoling 8.7 179 (% style="color:#037691" %)**AT+CR **(%%)**:        **Get or Set the coding rate [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8] (default:1)
Xiaoling 11.3 180 )))
Xiaoling 8.2 181
Xiaoling 11.3 182 (((
Xiaoling 8.6 183 (% style="color:#037691" %)**AT+TDC **(%%)**:**  Get or set the application data transmission interval in ms(default 10 minutes)
Xiaoling 11.3 184 )))
Xiaoling 8.2 185
Xiaoling 11.3 186 (((
Xiaoling 8.8 187 (% style="color:#037691" %)**AT+VER **(%%)**:**  Get firmware version number
Xiaoling 11.3 188 )))
Xiaoling 8.2 189
Xiaoling 11.3 190 (((
Xiaoling 9.2 191 (% style="color:#037691" %)**AT+SEND **(%%)**:   **Set Custom sent hex data
Xiaoling 11.3 192 )))
Xiaoling 8.2 193
Xiaoling 11.3 194 (((
Xiaoling 8.6 195 (% style="color:#037691" %)**AT+GROUPMOD **(%%)**: **Set or Get the grouping mode of the device (default: 0)
Xiaoling 11.3 196 )))
Xiaoling 8.2 197
Xiaoling 11.1 198 (((
Xiaoling 11.3 199 (((
Xiaoling 8.7 200 (% style="color:#037691" %)**AT+GROUPID **(%%)**:      **Set or Get the password for matching between TX group and RX group, which can be composed of numbers or characters (default: 12345678)
Xiaoling 11.1 201 )))
Xiaoling 11.3 202 )))
Xiaoling 8.2 203
Xiaoling 11.3 204 (((
Xiaoling 8.6 205 (% style="color:#037691" %)**AT+TRIG1 **(%%)**:**  Set or Get the DI1 pin interrupt trigger mode (default 0,0)
Xiaoling 11.3 206 )))
Xiaoling 8.2 207
Xiaoling 11.3 208 (((
Xiaoling 8.7 209 (% style="color:#037691" %)**AT+TRIG2 **(%%)**:            **Set or Get the DI2 pin interrupt trigger mode (default 0,0)
Xiaoling 11.3 210 )))
Xiaoling 8.2 211
Xiaoling 11.3 212 (((
Xiaoling 8.7 213 (% style="color:#037691" %)**AT+DI1TODO1 **(%%)**:    **Set or get the mode in which DI1 maps to DO1 (default 0)
Xiaoling 11.3 214 )))
Xiaoling 8.2 215
Xiaoling 11.3 216 (((
Xiaoling 8.7 217 (% style="color:#037691" %)**AT+DI1TORO1 **(%%)**:    **Set or get the mode in which DI1 maps to RO1(default 0)
Xiaoling 11.3 218 )))
Xiaoling 8.2 219
Xiaoling 11.3 220 (((
Xiaoling 8.6 221 (% style="color:#037691" %)**AT+DI2TODO2 **(%%)**:**  Set or get the mode in which DI2 maps to DO2(default 0)
Xiaoling 11.3 222 )))
Xiaoling 8.2 223
Xiaoling 11.3 224 (((
Xiaoling 8.7 225 (% style="color:#037691" %)**AT+DI2TORO2 **(%%)**:    **Set or get the mode in which DI2 maps to RO2(default 0)
Xiaoling 11.3 226 )))
Xiaoling 8.2 227
228
Xiaoling 11.3 229 (((
Xiaoling 19.3 230 (% style="color:blue" %)**Example 1:**
Xiaoling 11.3 231 )))
Xiaoling 8.2 232
Xiaoling 11.3 233 (((
Xiaoling 8.7 234 **AT+SEND=01020304 **will send a payload of 01020304
Xiaoling 11.3 235 )))
Xiaoling 8.2 236
237
Xiaoling 11.3 238 (((
Xiaoling 19.2 239 (% style="color:blue" %)**Example 2: **
Xiaoling 11.3 240 )))
Xiaoling 8.2 241
Xiaoling 11.3 242 (((
Xiaoling 8.8 243 **AT+TRIGx=a    **Trigger directly without triggering time
Xiaoling 11.3 244 )))
Xiaoling 8.2 245
Xiaoling 11.3 246 (((
Xiaoling 8.7 247 **AT+TRIGx=a,b**
Xiaoling 11.3 248 )))
Xiaoling 8.2 249
Xiaoling 11.3 250 (((
Xiaoling 19.3 251 **a=0:** falling edge;
Xiaoling 11.3 252 )))
Xiaoling 8.2 253
Xiaoling 11.3 254 (((
Xiaoling 19.3 255 **a=1: **rising edge;
Xiaoling 11.3 256 )))
Xiaoling 8.2 257
Xiaoling 11.3 258 (((
Xiaoling 19.3 259 **a=2:** falling edge or rising edge;
Xiaoling 11.3 260 )))
Xiaoling 8.2 261
Xiaoling 11.3 262 (((
Xiaoling 19.3 263 **b:**  triggering time in milliseconds.
Xiaoling 11.3 264 )))
Xiaoling 8.2 265
Xiaoling 11.3 266 (((
Xiaoling 19.3 267 **AT+TRIGx=2,50**  Falling edge or rising edge trigger, and the trigger time exceeds 50ms.
Xiaoling 11.3 268 )))
Xiaoling 8.2 269
270
Xiaoling 11.3 271 (((
Xiaoling 19.2 272 (% style="color:blue" %)**Example 3: **
Xiaoling 11.3 273 )))
Xiaoling 8.2 274
Xiaoling 11.3 275 (((
Xiaoling 8.7 276 **AT+DI1TODO1= maps value**
Xiaoling 11.3 277 )))
Xiaoling 8.2 278
Xiaoling 11.3 279 (((
Xiaoling 8.7 280 **AT+DI1TORO1= maps value**
Xiaoling 11.3 281 )))
Xiaoling 8.2 282
Xiaoling 11.3 283 (((
Xiaoling 8.7 284 **AT+DI2TODO2= maps value**
Xiaoling 11.3 285 )))
Xiaoling 8.2 286
Xiaoling 11.3 287 (((
Xiaoling 8.7 288 **AT+DI2TORO2= maps value**
Xiaoling 11.3 289 )))
Xiaoling 8.7 290
Xiaoling 11.3 291 (((
292
293 )))
Xiaoling 8.7 294
Xiaoling 19.3 295 (% border="1" style="background-color:#f7faff; color:black; width:690px" %)
Xiaoling 11.3 296 |=(% style="width: 102px;" %)(((
297 Maps value
298 )))|=(% style="width: 331px;" %)(((
299 DIx to DOx
Xiaoling 19.3 300 )))|=(% style="width: 251px;" %)(((
Xiaoling 11.3 301 DIx to ROx
302 )))
303 |(% style="width:102px" %)(((
304 0
305 )))|(% style="width:331px" %)(((
306 No Action
Xiaoling 19.3 307 )))|(% style="width:251px" %)(((
Xiaoling 11.3 308 No Action
309 )))
310 |(% style="width:102px" %)(((
311 1
312 )))|(% style="width:331px" %)(((
313 If DIx is high, control DOx to output low level, If DIx is low, control DOx to output high level
Xiaoling 19.3 314 )))|(% style="width:251px" %)(((
Xiaoling 11.3 315 (((
Xiaoling 8.2 316 If DIx is high, control ROx to close,
Xiaoling 11.3 317 )))
Xiaoling 8.2 318
Xiaoling 11.3 319 (((
Xiaoling 8.2 320 if DIx is low, control ROx to open
321 )))
Xiaoling 11.3 322 )))
323 |(% style="width:102px" %)(((
324 2
325 )))|(% style="width:331px" %)(((
326 If DIx is high, control DOx to output high level, If DIx is low, control DOx to output low level
Xiaoling 19.3 327 )))|(% style="width:251px" %)(((
Xiaoling 11.3 328 (((
Xiaoling 8.2 329 If DIx is high, control ROx to open,
Xiaoling 11.3 330 )))
Xiaoling 8.2 331
Xiaoling 11.3 332 (((
Xiaoling 8.2 333 if DIx is low, control ROx to close
334 )))
Xiaoling 11.3 335 )))
336 |(% style="width:102px" %)(((
337 3
338 )))|(% style="width:331px" %)(((
339 DOx state flip
Xiaoling 19.3 340 )))|(% style="width:251px" %)(((
Xiaoling 11.3 341 ROx state flip
342 )))
Xiaoling 8.2 343
Xiaoling 11.3 344 (((
Xiaoling 19.3 345
346
Xiaoling 19.2 347 (% style="color:blue" %)**Example 4: **
Xiaoling 11.3 348 )))
Xiaoling 8.2 349
Xiaoling 11.3 350 (((
Xiaoling 8.7 351 **AT+GROUPMOD=0**  Set to point to point mode
Xiaoling 11.3 352 )))
Xiaoling 8.2 353
Xiaoling 11.3 354 (((
Xiaoling 8.7 355 **AT+GROUPMOD=0,aa**  Set the TX group that controls the number of aa (The maximum value of aa is 8)
Xiaoling 11.3 356 )))
Xiaoling 8.2 357
Xiaoling 11.1 358 (((
Xiaoling 8.7 359 **AT+GROUPMOD=1,bb**  Set to the RX group controlled by the TX group, numbered bb(The maximum value of aa is 8)
Xiaoling 11.1 360 )))
Xiaoling 8.2 361
Xiaoling 11.3 362 (((
Xiaoling 8.7 363 **AT+GROUPMOD=0,2**  Set to control the TX group of the two RX groups
Xiaoling 11.3 364 )))
Xiaoling 8.2 365
Xiaoling 11.3 366 (((
Xiaoling 8.7 367 **AT+GROUPMOD=1,1**  Set the RX group numbered 1
Xiaoling 11.3 368 )))
Xiaoling 8.2 369
Xiaoling 11.3 370 (((
Xiaoling 8.7 371 **AT+GROUPMOD=1,2**  Set the RX group numbered 2
Xiaoling 19.2 372 )))
Bei Jinggeng 19.1 373
374
375 === 2.3.1 TRIG command is configured in the transmit LT. (LT1)(Since firmware 1.3) ===
Xiaoling 8.2 376
Xiaoling 19.2 377
Xiaoling 19.4 378 **AT+TRIGx=a          **Trigger transmit directly without triggering time
Xiaoling 8.2 379
Xiaoling 19.3 380 **AT+TRIGx=a,b**  Trigger transmit with triggering time threshold
Bei Jinggeng 19.1 381
Xiaoling 19.4 382 **AT+TRIGx=a,b,c    **Trigger transmit with triggering time threshold, and continue to transmit every xx seconds if DI status no change.
Bei Jinggeng 19.1 383
384
Xiaoling 19.3 385 **a=0:** falling edge;
Bei Jinggeng 19.1 386
Xiaoling 19.3 387 **a=1:** rising edge;
Bei Jinggeng 19.1 388
Xiaoling 19.3 389 **a=2:** falling edge or rising edge;
Bei Jinggeng 19.1 390
Xiaoling 19.3 391 **b:**  triggering time in milliseconds.
Bei Jinggeng 19.1 392
Xiaoling 19.3 393 **c:** transmit interval
Bei Jinggeng 19.1 394
395
Xiaoling 19.3 396 (% style="color:blue" %)**Use Case 1**(%%):  Once the DI1 port status change ( either from low to high or high to low, LT1 sends a trigger to LT-2)
Bei Jinggeng 19.1 397
Xiaoling 19.3 398 **Command:**
Bei Jinggeng 19.1 399
Xiaoling 19.3 400 **AT+TRIG1=2,50**  Falling edge or rising edge trigger, and the trigger time should exceed 50ms.
Bei Jinggeng 19.1 401
402
Xiaoling 19.3 403 (% style="color:blue" %)**Use Case 2:  **(%%)Sync LT2 RO / DO status with LT1 every minute.
Bei Jinggeng 19.1 404
Xiaoling 19.3 405 **Command:**
Bei Jinggeng 19.1 406
Xiaoling 19.3 407 **AT+TRIG2=2,50,60**  Once there is falling edge or rising edge on DI2 of LT1, LT1 will transmit trigger to LT2 and LT2 can sync the status of RO/DO.
Bei Jinggeng 19.1 408
409
410 === 2.3.2 RO/DO is configured in the receiver LT (LT2)(Since firmware 1.3) ===
411
Xiaoling 19.3 412
Bei Jinggeng 19.1 413 AT+DI1TODO1= maps value[,latch time]
414
415 AT+DI1TORO1= maps value[,latch time]
416
417 AT+DI2TODO2= maps value[,latch time]
418
419 AT+DI2TORO2= maps value[,latch time]
420
421
Xiaoling 19.3 422 (% border="1" style="background-color:#f7faff; color:black; width:774px" %)
423 |(% style="width:105px" %) **Maps value**|(% style="width:415px" %)**DIx to DOx**|(% style="width:249px" %)**DIx to ROx**
424 |(% style="width:105px" %)0|(% style="width:415px" %)No Action|(% style="width:249px" %)No Action
425 |(% style="width:105px" %)1|(% style="width:415px" %)If DIx is high, control DOx to output low level, If DIx is low, control DOx to output high level|(% style="width:249px" %)(((
Bei Jinggeng 19.1 426 If DIx is high, control ROx to close,
427
428 if DIx is low, control ROx to open
429 )))
Xiaoling 19.3 430 |(% style="width:105px" %)2|(% style="width:415px" %)If DIx is high, control DOx to output high level, If DIx is low, control DOx to output low level|(% style="width:249px" %)(((
Bei Jinggeng 19.1 431 If DIx is high, control ROx to open,
432
433 if DIx is low, control ROx to close
434 )))
Xiaoling 19.3 435 |(% style="width:105px" %)3|(% style="width:415px" %)DOx state flip|(% style="width:249px" %)ROx state flip
Bei Jinggeng 19.1 436
437 latch time, if latch time is defined, DO or RO will go back to the original status after latch time, if there is a new trigger comes, the LT2 will use the new latch time settings and ignore the old one.
438
439
Xiaoling 19.3 440 (% style="color:blue" %)**Case1**:
Bei Jinggeng 19.1 441
Xiaoling 19.4 442 AT+DI1TODO1=1  ~/~/ LT2 DO1 will follow LT1 DI1 trigger command, if DI1 of LT1 is trigger high, DO1 of LT2 will output low, if DI1 of LT1 is trigger low, DO2 of LT2 will output high.
Bei Jinggeng 19.1 443
444
Xiaoling 19.3 445 (% style="color:blue" %)**Case2**:
Bei Jinggeng 19.1 446
Xiaoling 19.4 447 AT+DI1TODO1=1,60  ~/~/ LT2 DO1 will follow LT1 DI1 trigger command, DO1 will keep the status 60 seconds and then go back to original state.
Bei Jinggeng 19.1 448
449
450 === 2.3.3 Save the RO/DO status during power off(Since firmware 1.3) ===
451
Xiaoling 19.2 452
Bei Jinggeng 19.1 453 Enable/Disbale retain Digital Output/Relay Output after power off / Power On
454
Xiaoling 19.4 455 **AT+DOROSAVE=0**  ~/~/ Disable Retain after power off/on
Bei Jinggeng 19.1 456
Xiaoling 19.4 457 **AT+DOROSAVE=1**  ~/~/ Enable Retain after power off/on
Bei Jinggeng 19.1 458
Xiaoling 19.4 459 **AT+DOROSAVE=2,a,b,c,d**  ~/~/ set DO/RO port to default state after power on.
Bei Jinggeng 19.1 460
Xiaoling 19.4 461 **a: **for DO1
Bei Jinggeng 19.1 462
Xiaoling 19.4 463 **b:** for DO2
Bei Jinggeng 19.1 464
Xiaoling 19.4 465 **c: **for RO1
Bei Jinggeng 19.1 466
Xiaoling 19.4 467 **d:** for RO2.
Bei Jinggeng 19.1 468
469
Xiaoling 19.3 470 **Example:**
Bei Jinggeng 19.1 471
Xiaoling 19.3 472 AT+DOROSAVE=2,0,0,0,1  ~/~/ Set DO1/DO2 to Low, RO1 to open after power on , set RO2 to close after power on.
Bei Jinggeng 19.1 473
Xiaoling 19.3 474
Bei Jinggeng 19.1 475 === 2.3.4 Control Sleep status.(Since firmware 1.3) ===
476
Xiaoling 19.3 477
Bei Jinggeng 19.1 478 DI2 can be used to set LT into sleep mode.
479
Xiaoling 19.4 480 **AT+DI2SLEEP=1**  ~/~/  Enable DI2 as Sleep pin
Bei Jinggeng 19.1 481
Xiaoling 19.4 482 **AT+DI2SLEEP=0**  ~/~/  Disable DI2 as Sleep pin
Bei Jinggeng 19.1 483
484 When DI2 is enabled as sleep pin, a falling trigger (with 500ms pulse) will set LT into sleep mode. A raising trigger will wake up it again.
485
486
Xiaoling 19.3 487 == 2.4 Data Format ==
Xiaoling 8.2 488
Xiaoling 19.2 489
Xiaoling 11.3 490 (((
Xiaoling 8.2 491 8 bytes of GROUPID + 9 bytes of payload + 4 bytes of checksum
Xiaoling 11.3 492 )))
Xiaoling 8.2 493
Xiaoling 11.3 494 (((
Xiaoling 19.2 495 (% style="color:blue" %)**Payload:**
Xiaoling 11.3 496 )))
Xiaoling 8.2 497
Xiaoling 19.3 498 (% border="1" style="background-color:#f7faff; color:black; width:825px" %)
499 |=(% style="width: 102px;" %)(((
Xiaoling 11.3 500 **Size (bytes)**
Xiaoling 19.3 501 )))|=(% style="width: 74px;" %)(((
Xiaoling 11.3 502 1
Xiaoling 19.3 503 )))|=(% style="width: 72px;" %)(((
Xiaoling 11.3 504 1
Xiaoling 19.3 505 )))|=(% style="width: 47px;" %)(((
Xiaoling 11.3 506 1
Xiaoling 19.3 507 )))|=(% style="width: 83px;" %)(((
Xiaoling 11.3 508 1
Xiaoling 19.3 509 )))|=(% style="width: 90px;" %)(((
Xiaoling 11.3 510 1
Xiaoling 19.3 511 )))|=(% style="width: 92px;" %)(((
Xiaoling 11.3 512 1
Xiaoling 19.3 513 )))|=(% style="width: 78px;" %)(((
Xiaoling 11.3 514 1
Xiaoling 19.3 515 )))|=(% style="width: 91px;" %)(((
Xiaoling 11.3 516 1
Xiaoling 19.3 517 )))|=(% style="width: 91px;" %)(((
Xiaoling 11.3 518 1
519 )))
Xiaoling 19.3 520 |(% style="width:102px" %)(((
Xiaoling 11.3 521 **Value**
Xiaoling 19.3 522 )))|(% style="width:74px" %)(((
Xiaoling 11.3 523 address
Xiaoling 19.3 524 )))|(% style="width:72px" %)(((
Xiaoling 11.3 525 request
Xiaoling 19.3 526 )))|(% style="width:47px" %)(((
Xiaoling 11.3 527 ACK
Xiaoling 19.3 528 )))|(% style="width:83px" %)(((
Xiaoling 11.3 529 (((
Xiaoling 8.2 530 DI1&
531 DI1 level
Xiaoling 11.3 532 )))
Xiaoling 19.3 533 )))|(% style="width:90px" %)(((
Xiaoling 11.3 534 DI1TODO1
Xiaoling 19.3 535 )))|(% style="width:92px" %)(((
Xiaoling 11.3 536 DI1TORO1
Xiaoling 19.3 537 )))|(% style="width:78px" %)(((
Xiaoling 11.3 538 (((
Xiaoling 8.2 539 DI2&
Xiaoling 19.3 540 DI2 leve
Xiaoling 11.3 541 )))
Xiaoling 19.3 542 )))|(% style="width:91px" %)(((
Xiaoling 11.3 543 DI2TODO2
Xiaoling 19.3 544 )))|(% style="width:91px" %)(((
Xiaoling 11.3 545 DI2TORO2
546 )))
Xiaoling 8.2 547
Xiaoling 11.3 548 (((
Xiaoling 8.5 549 (% style="color:#037691" %)**The first byte**(%%)**:**  00 is the broadcast address, 01-08 is the RX group number.
Xiaoling 11.3 550 )))
Xiaoling 8.2 551
Xiaoling 11.3 552 (((
Xiaoling 8.5 553 (% style="color:#037691" %)**The second byte**(%%)**:**  send mapping request when not 0, not request when it is 0.
Xiaoling 11.3 554 )))
Xiaoling 8.2 555
Xiaoling 11.3 556 (((
Xiaoling 8.5 557 (% style="color:#037691" %)**The third byte**(%%)**:**  ACK returned to the sender after the mapping is completed.
Xiaoling 11.3 558 )))
Xiaoling 8.2 559
Xiaoling 11.1 560 (((
Xiaoling 11.3 561 (((
Xiaoling 8.5 562 (% style="color:#037691" %)**The fourth byte**(%%)**:**  the high four bits are 1 to represent DI1, and the low four bits are the level of DI1 when the interrupt is triggered.
Xiaoling 11.1 563 )))
Xiaoling 11.3 564 )))
Xiaoling 8.2 565
Xiaoling 11.3 566 (((
Xiaoling 8.6 567 (% style="color:#037691" %)**The Fifth byte**(%%)**:       **DI1TODO1 when the interrupt is triggered, 0 when the interrupt is not triggered.
Xiaoling 11.3 568 )))
Xiaoling 8.2 569
Xiaoling 11.3 570 (((
Xiaoling 8.5 571 (% style="color:#037691" %)**The Sixth byte**(%%)**:**  0 does not trigger interrupt when DI1TORO1 interrupt is triggered.
Xiaoling 11.3 572 )))
Xiaoling 8.2 573
Xiaoling 11.1 574 (((
Xiaoling 11.3 575 (((
Xiaoling 8.5 576 (% style="color:#037691" %)**The seventh byte**(%%)**:**  the high four bits are 2 to represent DI2, and the low four bits are the level of DI2 when the interrupt is triggered.
Xiaoling 11.1 577 )))
Xiaoling 11.3 578 )))
Xiaoling 8.2 579
Xiaoling 11.3 580 (((
Xiaoling 8.6 581 (% style="color:#037691" %)**The 8th byte**(%%)**:          **DI2TODO2 when the interrupt is triggered, 0 when the interrupt is not triggered.
Xiaoling 11.3 582 )))
Xiaoling 8.2 583
Xiaoling 11.3 584 (((
Xiaoling 8.5 585 (% style="color:#037691" %)**The 9th byte**(%%)**:**  DI2TORO2 when an interrupt is triggered, 0 when an interrupt is not triggered.
Xiaoling 11.3 586 )))
Xiaoling 8.2 587
Bei Jinggeng 19.1 588 (((
Edwin Chen 1.1 589
Bei Jinggeng 19.1 590
Xiaoling 19.3 591 (% style="color:blue" %)**Payload:(Since firmware 1.3)The receiver replies to the sent packet**
Bei Jinggeng 19.1 592 )))
593
Xiaoling 19.3 594 (% border="1" style="background-color:#f7faff; color:black; width:822px" %)
595 |=(% style="width: 97px;" %)(((
596 **Size(bytes)**
597 )))|=(% style="width: 71px;" %)(((
Bei Jinggeng 19.1 598 1
Xiaoling 19.3 599 )))|=(% style="width: 70px;" %)(((
Bei Jinggeng 19.1 600 1
Xiaoling 19.3 601 )))|=(% style="width: 48px;" %)(((
Bei Jinggeng 19.1 602 1
Xiaoling 19.3 603 )))|=(% style="width: 85px;" %)(((
Bei Jinggeng 19.1 604 1
Xiaoling 19.3 605 )))|=(% style="width: 90px;" %)(((
Bei Jinggeng 19.1 606 1
Xiaoling 19.3 607 )))|=(% style="width: 88px;" %)(((
Bei Jinggeng 19.1 608 1
Xiaoling 19.3 609 )))|=(% style="width: 86px;" %)(((
Bei Jinggeng 19.1 610 1
Xiaoling 19.3 611 )))|=(% style="width: 92px;" %)(((
Bei Jinggeng 19.1 612 1
Xiaoling 19.3 613 )))|=(% style="width: 92px;" %)(((
Bei Jinggeng 19.1 614 1
615 )))
Xiaoling 19.3 616 |(% style="width:97px" %)(((
Bei Jinggeng 19.1 617 **Value**
Xiaoling 19.3 618 )))|(% style="width:71px" %)(((
Bei Jinggeng 19.1 619 address
620 )))|(% style="width:70px" %)(((
621 request
Xiaoling 19.3 622 )))|(% style="width:48px" %)(((
Bei Jinggeng 19.1 623 ACK
Xiaoling 19.3 624 )))|(% style="width:85px" %)(((
Bei Jinggeng 19.1 625 (((
626 DO1&
627 DO1 level
628 )))
Xiaoling 19.3 629 )))|(% style="width:90px" %)(((
Bei Jinggeng 19.1 630 DI1TODO1
Xiaoling 19.3 631 )))|(% style="width:88px" %)(((
Bei Jinggeng 19.1 632 DI1TORO1
Xiaoling 19.3 633 )))|(% style="width:86px" %)(((
Bei Jinggeng 19.1 634 (((
635 RO2&
636 RO2 level
637 )))
Xiaoling 19.3 638 )))|(% style="width:92px" %)(((
Bei Jinggeng 19.1 639 DI2TODO2
Xiaoling 19.3 640 )))|(% style="width:92px" %)(((
Bei Jinggeng 19.1 641 DI2TORO2
642 )))
643
644 (((
645 (% style="color:#037691" %)**The first byte**(%%)**:**  00 is the broadcast address, 01-08 is the RX group number.
646 )))
647
648 (((
649 (% style="color:#037691" %)**The second byte**(%%)**:**  send mapping request when not 0, not request when it is 0.
650 )))
651
652 (((
653 (% style="color:#037691" %)**The third byte**(%%)**:**  ACK returned to the sender after the mapping is completed.
654 )))
655
656 (((
657 (((
658 (% style="color:#037691" %)**The fourth byte**(%%)**:**  the high four bits are 1 to represent DO1, and the low four bits are the level of DO1 when the interrupt is triggered.
659 )))
660 )))
661
662 (((
663 (% style="color:#037691" %)**The Fifth byte**(%%)**:       **DI1TODO1 when the interrupt is triggered, 0 when the interrupt is not triggered.
664 )))
665
666 (((
667 (% style="color:#037691" %)**The Sixth byte**(%%)**:**  0 does not trigger interrupt when DI1TORO1 interrupt is triggered.
668 )))
669
670 (((
671 (((
672 (% style="color:#037691" %)**The seventh byte**(%%)**:**  the high four bits are 2 to represent RO2, and the low four bits are the level of RO2 when the interrupt is triggered.
673 )))
674 )))
675
676 (((
677 (% style="color:#037691" %)**The 8th byte**(%%)**:          **DI2TODO2 when the interrupt is triggered, 0 when the interrupt is not triggered.
678 )))
679
680 (((
681 (% style="color:#037691" %)**The 9th byte**(%%)**:**  DI2TORO2 when an interrupt is triggered, 0 when an interrupt is not triggered.
682 )))
683
684
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0