<
From version < 4.8 >
edited by Edwin Chen
on 2024/09/16 09:00
To version < 6.1 >
edited by Edwin Chen
on 2024/09/16 10:17
>
Change comment: Uploaded new attachment "image-20240916101737-1.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -43,6 +43,9 @@
43 43  
44 44  == 1.3  Specification ==
45 45  
46 +**LoRa**:
47 +
48 +
46 46  **WiFi:**
47 47  
48 48  * 802.11b/g/n
... ... @@ -56,15 +56,14 @@
56 56  * Bluetooth V4.2 BR/EDR and Bluetooth LE standard
57 57  * Class-1, Class-2, and Class-3 transmitters.
58 58  * AFH
59 -*
60 60  * CVSD and SBC
61 61  
62 62  **Display:**
63 63  
64 -* TFT Touch SCreen
65 -* Accuracy Tolerance: Typ ±0.2 °C
66 -* Long Term Drift: < 0.03 °C/yr
67 -* Operating Range: -10 ~~ 50 °C  or -40 ~~ 60 °C (depends on battery type, see [[FAQ>>||anchor="H6.5Whyiseedifferentworkingtemperatureforthedevice3F"]])
66 +* 5.0 Inch , 800 x 480
67 +* IPS Capacitive Touch SCreen
68 +* RGB color.
69 +* Display Area: 120.7*75.80 mm
68 68  
69 69  
70 70  
... ... @@ -75,13 +75,12 @@
75 75  
76 76  == 1.5  Storage & Operation Temperature ==
77 77  
80 +* Operation Temperature: -20 ~~ 70°C  (No Dew)
81 +* Storage Temperature: -30 ~~ 70°C  (No Dew)
78 78  
79 --10 ~~ 50 °C  or -40 ~~ 60 °C (depends on battery type, see [[FAQ>>||anchor="H6.5Whyiseedifferentworkingtemperatureforthedevice3F"]])
80 80  
81 -
82 82  == 1.6  Applications ==
83 83  
84 -
85 85  * Smart Buildings & Home Automation
86 86  * Logistics and Supply Chain Management
87 87  * Smart Metering
... ... @@ -90,718 +90,35 @@
90 90  * Smart Factory
91 91  
92 92  
93 -= 2.  Operation Mode =
94 += 2.  Getting Start with Hello World =
94 94  
95 -== 2.1  How it work? ==
96 +== 2.1  About this demo ==
96 96  
98 +In this Getting Start Example, we will show how to desing a simple Display UI and upload it to LTS5. This UI has  a button , when user click the button. The Web UI will jump to a new page.
97 97  
98 -Each PB01 is shipped with a worldwide unique set of LoRaWAN OTAA keys. To use PB01 in a LoRaWAN network, user needs to input the OTAA keys in LoRaWAN network server. After this, if PB01 is under this LoRaWAN network coverage, PB01 can join the LoRaWAN network and start to transmit sensor data. The default period for each uplink is** 20 minutes**.
99 99  
101 +== 2.2  Install Software Running Environment ==
100 100  
101 -== 2.2  How to Activate PB01? ==
103 +=== 2.2.1 Install Arduino IDE tool ===
102 102  
105 +=== 2.2.2 Install SquareLine Studio ===
103 103  
104 -(% style="color:red" %)** 1.  Open enclosure from below position.**
105 105  
106 -[[image:image-20220621093835-1.png]]
108 +== 2.3 Program in SquareLine and convert it to ESP32 software ==
107 107  
108 108  
109 -(% style="color:red" %)** 2.  Insert 2 x AAA LR03 batteries and the node is activated.**
111 +== 2.4 Upload Firmware to ESP32 ==
110 110  
111 -[[image:image-20220621093835-2.png]]
112 112  
114 +== 2.5 Test Result ==
113 113  
114 -(% style="color:red" %)** 3. Under the above conditions, users can also reactivate the node by long pressing the ACT button.**
115 115  
116 -[[image:image-20220621093835-3.png]]
117 += 3. Example Project 1: LoRa Central Display =
117 117  
118 118  
119 -User can check [[LED Status>>||anchor="H2.8LEDIndicator"]] to know the working state of PB01.
120 += 4. Example Project 2: LoRa to LoRaWAN RS485 Alarm =
120 120  
121 121  
122 -== 2.3  Example to join LoRaWAN network ==
123 -
124 -
125 -This section shows an example for how to join the [[TheThingsNetwork>>url:https://www.thethingsnetwork.org/]] LoRaWAN IoT server. Usages with other LoRaWAN IoT servers are of similar procedure.
126 -
127 -(% _mstvisible="1" class="wikigeneratedid" %)
128 -Assume the LPS8v2 is already set to connect to [[TTN V3 network >>url:https://eu1.cloud.thethings.network/]]. We need to add the PB01 device in TTN V3 portal. 
129 -
130 -[[image:image-20240705094824-4.png]]
131 -
132 -(% style="color:blue" %)**Step 1**(%%):  Create a device in TTN V3 with the OTAA keys from PB01.
133 -
134 -Each PB01 is shipped with a sticker with the default DEV EUI as below:
135 -
136 -[[image:image-20230426083617-1.png||height="294" width="633"]]
137 -
138 -
139 -Enter these keys in the LoRaWAN Server portal. Below is TTN V3 screen shot:
140 -
141 -Create application.
142 -
143 -choose to create the device manually.
144 -
145 -Add JoinEUI(AppEUI), DevEUI, AppKey.(% style="display:none" %)
146 -
147 -[[image:image-20240507142116-1.png||height="410" width="1138"]](% style="display:none" %) (%%)
148 -
149 -
150 -[[image:image-20240507142157-2.png||height="559" width="1147"]]
151 -
152 -[[image:image-20240507142401-3.png||height="693" width="1202"]]
153 -
154 -[[image:image-20240507142651-4.png||height="760" width="1190"]]
155 -
156 -**Default mode OTAA**(% style="display:none" %)
157 -
158 -
159 -(% style="color:blue" %)**Step 2**(%%):  Use ACT button to activate PB01 and it will auto join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and user can see in the panel.
160 -
161 -[[image:image-20240507143104-5.png||height="434" width="1398"]]
162 -
163 -
164 -== 2.4  Uplink Payload ==
165 -
166 -
167 -Uplink payloads include two types: Valid Sensor Value and other status / control command.
168 -
169 -* Valid Sensor Value: Use FPORT=2
170 -* Other control command: Use FPORT other than 2.
171 -
172 -=== 2.4.1  Uplink FPORT~=5, Device Status ===
173 -
174 -
175 -Users can  get the Device Status uplink through the downlink command:
176 -
177 -(% style="color:#4472c4" %)**Downlink:  **(%%)**0x2601**
178 -
179 -Uplink the device configures with FPORT=5.
180 -
181 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:370px" %)
182 -|=(% style="width: 60px;background-color:#4F81BD;color:white" %)**Size(bytes)(% style="display:none" %) (%%)**|=(% style="width: 60px;background-color:#4F81BD;color:white" %)**1**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**1**|=(% style="width: 60px;background-color:#4F81BD;color:white" %)**1**|=(% style="width: 30px;background-color:#4F81BD;color:white" %)**2**
183 -|(% style="width:99px" %)Value|(% style="width:62px" %)Sensor Model|(% style="width:80px" %)Firmware Version|(% style="width:82px" %)Frequency Band|(% style="width:85px" %)Sub-band|(% style="width:46px" %)BAT
184 -
185 -[[image:image-20240507152130-12.png||height="469" width="1366"]](% style="display:none" %)
186 -
187 -Example Payload (FPort=5):  [[image:image-20240507152254-13.png||height="26" width="130"]]
188 -
189 -
190 -(% style="color:#4472c4" %)**Sensor Model**(%%): For PB01, this value is 0x35.
191 -
192 -(% style="color:#4472c4" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version.
193 -
194 -(% style="color:#4472c4" %)**Frequency Band**:
195 -
196 -*0x01: EU868
197 -
198 -*0x02: US915
199 -
200 -*0x03: IN865
201 -
202 -*0x04: AU915
203 -
204 -*0x05: KZ865
205 -
206 -*0x06: RU864
207 -
208 -*0x07: AS923
209 -
210 -*0x08: AS923-1
211 -
212 -*0x09: AS923-2
213 -
214 -*0x0a: AS923-3
215 -
216 -
217 -(% style="color:#4472c4" %)**Sub-Band**(%%): value 0x00 ~~ 0x08(only for CN470, AU915,US915. Others are0x00)
218 -
219 -(% style="color:#4472c4" %)**BAT**(%%): shows the battery voltage for PB01.
220 -
221 -(% style="color:#4472c4" %)**Ex1**(%%): 0x0C DE = 3294mV
222 -
223 -
224 -=== 2.4.2  Uplink FPORT~=2, Real time sensor value ===
225 -
226 -
227 -PB01 will send this uplink after Device Status uplink once join LoRaWAN network successfully. And it will periodically send this uplink. Default interval is 20 minutes and [[can be changed>>||anchor="H3.1A0DownlinkCommandSet"]].
228 -
229 -Uplink uses FPORT=2 and every 20 minutes send one uplink by default.
230 -
231 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:460px" %)
232 -|=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
233 -**Size(bytes)**
234 -)))|=(% style="width: 60px;background-color:#4F81BD;color:white" %)2|=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
235 -**1**
236 -)))|=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
237 -**1**
238 -)))|=(% style="width: 90px;background-color:#4F81BD;color:white" %)(((
239 -**2**
240 -)))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)(((
241 -**2**
242 -)))
243 -|(% style="width:97px" %)(((
244 -Value
245 -)))|(% style="width:39px" %)Battery|(% style="width:39px" %)(((
246 -Sound_ACK
247 -
248 -&Sound_key
249 -)))|(% style="width:100px" %)(((
250 -(((
251 -Alarm
252 -)))
253 -)))|(% style="width:77px" %)(((
254 -(((
255 -Temperature
256 -)))
257 -)))|(% style="width:47px" %)(((
258 -Humidity
259 -)))
260 -
261 -Example in TTN.
262 -
263 -[[image:image-20240507150155-11.png||height="549" width="1261"]]
264 -
265 -Example Payload (FPort=2):  (% style="background-color:yellow" %)**0C EA 03 01 01 11 02 A8**
266 -
267 -==== (% style="color:blue" %)**Battery:**(%%) ====
268 -
269 -Check the battery voltage.
270 -
271 -* Ex1: 0x0CEA = 3306mV
272 -* Ex2: 0x0D08 = 3336mV
273 -
274 -==== (% style="color:blue" %)**Sound_ACK & Sound_key:**(%%) ====
275 -
276 -Key sound and ACK sound are enabled by default.
277 -
278 -* Example1: 0x03
279 -
280 - Sound_ACK: (03>>1) & 0x01=1, OPEN.
281 -
282 -**~ ** Sound_key:  03 & 0x01=1, OPEN.
283 -
284 -* Example2: 0x01
285 -
286 - Sound_ACK: (01>>1) & 0x01=0, CLOSE.
287 -
288 -**~ ** Sound_key:  01 & 0x01=1, OPEN.
289 -
290 -
291 -==== (% style="color:blue" %)**Alarm:**(%%) ====
292 -
293 -Key alarm.
294 -
295 -* Ex1: 0x01 & 0x01=1, TRUE.
296 -* Ex2: 0x00 & 0x01=0, FALSE.
297 -
298 -==== (% style="color:blue" %)**Temperature:**(%%) ====
299 -
300 -* Example1:  0x0111/10=27.3℃
301 -* Example2:  (0xFF0D-65536)/10=-24.3℃
302 -
303 -If payload is: FF0D :  (FF0D & 8000 == 1) , temp = (FF0D - 65536)/100 =-24.3℃
304 -
305 -(FF0D & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
306 -
307 -
308 -==== (% style="color:blue" %)**Humidity:**(%%) ====
309 -
310 -* Humidity:    0x02A8/10=68.0%
311 -
312 -=== 2.4.3  Uplink FPORT~=3, Datalog sensor value ===
313 -
314 -
315 -PB01 stores sensor value and user can retrieve these history value via downlink command. The Datalog sensor value are sent via FPORT=3.
316 -
317 -[[image:image-20240510144912-1.png||height="471" width="1178"]](% style="display:none" %)
318 -
319 -
320 -* Each data entry is 11 bytes, to save airtime and battery, PB01 will send max bytes according to the current DR and Frequency bands.(% style="display:none" %)
321 -
322 -For example, in US915 band, the max payload for different DR is:
323 -
324 -1. **DR0**: max is 11 bytes so one entry of data
325 -1. **DR1**: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
326 -1. **DR2**: total payload includes 11 entries of data
327 -1. **DR3**: total payload includes 22 entries of data.
328 -
329 -(% style="color:red" %)**Notice: PB01 will save 178 set of history data, If device doesn't have any data in the polling time. Device will uplink 11 bytes of 0.**
330 -
331 -See more info about the [[Datalog feature>>||anchor="H2.6A0DatalogFeature"]].
332 -
333 -(% style="display:none" %) (%%)
334 -
335 -=== 2.4.4  Decoder in TTN V3 ===
336 -
337 -
338 -In LoRaWAN protocol, the uplink payload is HEX format, user need to add a payload formatter/decoder in LoRaWAN Server to get human friendly string.
339 -
340 -In TTN , add formatter as below:
341 -
342 -[[image:image-20240507162814-16.png||height="778" width="1135"]]
343 -
344 -(((
345 -Please check the decoder from this link:  [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
346 -)))
347 -
348 -(((
349 -
350 -)))
351 -
352 -== 2.5 Show data on Datacake ==
353 -
354 -
355 -(((
356 -Datacake IoT platform provides a human friendly interface to show the sensor data in charts, once we have sensor data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps:
357 -)))
358 -
359 -(((
360 -
361 -)))
362 -
363 -(((
364 -(% style="color:blue" %)**Step 1**(%%):  Be sure that your device is programmed and properly connected to the LoRaWAN network.
365 -)))
366 -
367 -(((
368 -(% style="color:blue" %)**Step 2**(%%):  Configure your Application to forward data to Datacake you will need to add integration. Go to TTN V3 Console ~-~-> Applications ~-~-> Integrations ~-~-> Add Integrations.
369 -)))
370 -
371 -(((
372 -~1. Add Datacake:
373 -)))
374 -
375 -(((
376 -2. Select default key as Access Key:
377 -)))
378 -
379 -(((
380 -3. In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add PB01:
381 -)))
382 -
383 -(((
384 - Please refer to the figure below.
385 -)))
386 -
387 -[[image:image-20240510150924-2.png||height="612" width="1186"]]
388 -
389 -
390 -Log in to DATACAKE, copy the API under the account.
391 -
392 -[[image:image-20240510151944-3.png||height="581" width="1191"]]
393 -
394 -
395 -
396 -[[image:image-20240510152150-4.png||height="697" width="1188"]]
397 -
398 -
399 -[[image:image-20240510152300-5.png||height="298" width="1191"]]
400 -
401 -
402 -[[image:image-20240510152355-6.png||height="782" width="1193"]]
403 -
404 -[[image:image-20240510152542-8.png||height="545" width="739"]]
405 -
406 -[[image:image-20240510152634-9.png||height="748" width="740"]]
407 -
408 -
409 -[[image:image-20240510152809-10.png||height="607" width="732"]]
410 -
411 -[[image:image-20240510153934-14.png||height="460" width="1199"]]
412 -
413 -
414 -[[image:image-20240510153435-12.png||height="428" width="1197"]]
415 -
416 -
417 -Copy and paste the [[TTN decoder>>https://github.com/dragino/dragino-end-node-decoder]] here and save.
418 -
419 -[[image:image-20240510153624-13.png||height="468" width="1195"]]
420 -
421 -
422 -Visual widgets please read the DATACAKE documentation.
423 -
424 -(% style="display:none" %) (%%)
425 -
426 -== 2.6  Datalog Feature ==
427 -
428 -
429 -(% _msthash="315262" _msttexthash="32283004" _mstvisible="1" %)
430 -When user want to retrieve sensor value, he can send a poll command from the IoT platform to ask sensor to send value in the required time slot.
431 -
432 -
433 -=== 2.6.1  Unix TimeStamp ===
434 -
435 -
436 -Unix TimeStamp shows the sampling time of uplink payload. format base on
437 -
438 -[[image:image-20220523001219-11.png||_mstalt="450450" _mstvisible="3" height="97" width="627"]]
439 -
440 -User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/||_mstvisible="3"]] :
441 -
442 -For example: if the Unix Timestamp we got is hex 0x60137afd, we can convert it to Decimal: 1611889405. and then convert to the time: 2021 – Jan ~-~- 29 Friday 03:03:25 (GMT)
443 -
444 -
445 -[[image:1655782409139-256.png]]
446 -
447 -
448 -=== 2.6.2  Poll sensor value ===
449 -
450 -
451 -(((
452 -User can poll sensor value based on timestamps from the server. Below is the downlink command.
453 -)))
454 -
455 -(((
456 -Timestamp start and Timestamp end use Unix TimeStamp format as mentioned above. Devices will reply with all data log during this time period, use the uplink interval.
457 -)))
458 -
459 -(((
460 -For example, downlink command [[image:image-20220621113526-13.png]] (% _mstvisible="3" style="display:none" %)
461 -)))
462 -
463 -(((
464 -Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00's data
465 -)))
466 -
467 -(((
468 -Uplink Internal =5s,means PB01 will send one packet every 5s. range 5~~255s.
469 -)))
470 -
471 -
472 -=== 2.6.3  Datalog Uplink payload ===
473 -
474 -
475 -See [[Uplink FPORT=3, Datalog sensor value>>||anchor="H2.4.3A0UplinkFPORT3D32CDatalogsensorvalue"]]
476 -
477 -(% style="display:none" %) (%%) (% style="display:none" %)
478 -
479 -== 2.7 Button ==
480 -
481 -
482 -* ACT button
483 -
484 -Long press this button PB01 will reset and join network again.
485 -
486 -[[image:image-20240510161626-17.png||height="192" width="224"]]
487 -
488 -* Alarm button
489 -
490 -Press the button PB01 will immediately uplink data, and alarm is "TRUE".
491 -
492 -[[image:image-20240705095149-5.png||height="164" width="162"]](% style="display:none" %)
493 -
494 -
495 -== 2.8 LED Indicator ==
496 -
497 -
498 -(((
499 -The PB01 has a triple color LED which for easy showing different stage.
500 -)))
501 -
502 -Hold the ACT green light to rest, then the green flashing node restarts, the blue flashing once upon request for network access, and the green constant light for 5 seconds after successful network access
503 -
504 -(((
505 -(% style="color:#037691" %)**In a normal working state**:
506 -)))
507 -
508 -* When the node is restarted, hold the ACT (% style="color:green" %)**GREEN**(%%) lights up , then the (% style="color:green" %)**GREEN**(%%) flashing node restarts.The (% style="color:blue" %)**BLUE**(%%) flashing once upon request for network access, and the (% style="color:green" %)**GREEN**(%%) constant light for 5 seconds after successful network access(% style="color:#0000ff" %)**.**
509 -* During OTAA Join:
510 -** **For each Join Request uplink:** the (% style="color:green" %)**GREEN LED** (%%)will blink once.
511 -** **Once Join Successful:** the (% style="color:green" %)**GREEN LED**(%%) will be solid on for 5 seconds.
512 -* After joined, for each uplink, the (% style="color:blue" %)**BLUE LED**(%%) or (% style="color:green" %)**GREEN LED** (%%)will blink once.
513 -* Press the alarm button,The (% style="color:red" %)**RED**(%%) flashes until the node receives the ACK from the platform and the (% style="color:blue" %)**BLUE**(%%) light stays 5s.
514 -
515 -(((
516 -
517 -)))
518 -
519 -== 2.9 Buzzer ==
520 -
521 -
522 -The PB01 has** button sound** and** ACK sound** and users can turn on or off both sounds by using [[AT+SOUND>>||anchor="H3.3A0Setbuttonsoundandbuttonalarm"]].
523 -
524 -* (% style="color:#4f81bd" %)**Button sound**(%%)** **is the music produced by the node after the alarm button is pressed.
525 -
526 - Users can use[[ AT+OPTION>>||anchor="H3.4A0Setbuzzermusic2807E429"]] to set different button sounds.
527 -
528 -* (% style="color:#4f81bd" %)**ACK sound **(%%)is the notification tone that the node receives ACK.
529 -
530 -= 3.  Configure PB01 via AT command or LoRaWAN downlink =
531 -
532 -
533 -Users can configure PB01 via AT Command or LoRaWAN Downlink.
534 -
535 -* AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]].
536 -
537 -* LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
538 -
539 -There are two kinds of commands to configure PB01, they are:
540 -
541 -* (% style="color:#4f81bd" %)**General Commands:**
542 -
543 -These commands are to configure:
544 -
545 -* General system settings like: uplink interval.
546 -
547 -* LoRaWAN protocol & radio-related commands.
548 -
549 -They are the same for all Dragino Devices which supports DLWS-005 LoRaWAN Stack(Note~*~*). These commands can be found on the wiki: [[End Device Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
550 -
551 -
552 -* (% style="color:#4f81bd" %)**Commands special design for PB01**
553 -
554 -These commands are only valid for PB01, as below:
555 -
556 -(% style="display:none" %) (%%)
557 -
558 -== 3.1  Downlink Command Set ==
559 -
560 -
561 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
562 -|=(% style="width: 130px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 151px; background-color: rgb(79, 129, 189); color: white;" %)**Function**|=(% style="width: 92px; background-color: rgb(79, 129, 189); color: white;" %)**Response**|=(% style="width: 206px; background-color: rgb(79, 129, 189); color: white;" %)**Downlink**
563 -|(% style="width:130px" %)AT+TDC=?|(% style="width:151px" %)(((
564 -
565 -
566 -View current TDC time
567 -)))|(% style="width:92px" %)(((
568 -1200000
569 -OK
570 -)))|(% style="width:206px" %)Default 1200000(ms)
571 -|(% style="width:130px" %)AT+TDC=300000|(% style="width:151px" %)Set TDC time|(% style="width:92px" %)OK|(% style="width:206px" %)(((
572 -(((
573 -0X0100012C:
574 -01: fixed command
575 -00012C: 0X00012C=
576 -
577 -300(seconds)
578 -)))
579 -
580 -(((
581 -
582 -)))
583 -)))
584 -|(% style="width:130px" %)ATZ|(% style="width:151px" %)Reset node|(% style="width:92px" %) |(% style="width:206px" %)0x04FF
585 -|(% style="width:130px" %)AT+FDR|(% style="width:151px" %)Restore factory settings|(% style="width:92px" %) |(% style="width:206px" %)0X04FE
586 -|(% style="width:130px" %)AT+CFM=?|(% style="width:151px" %)View the current confirmation mode status|(% style="width:92px" %)(((
587 -0,7,0
588 -
589 -OK
590 -)))|(% style="width:206px" %)Default 0,7,0
591 -|(% style="width:130px" %)AT+CFM=1,7,1|(% style="width:151px" %)(((
592 -Confirmed uplink mode, the maximum number of retries is seven, and uplink fcnt increase by 1 for each retry
593 -)))|(% style="width:92px" %)(((
594 -OK
595 -)))|(% style="width:206px" %)(((
596 -05010701
597 -
598 -05: fixed command
599 -
600 -01:confirmed uplink
601 -
602 -07: retry 7 times
603 -
604 -01: fcnt count plus 1
605 -)))
606 -|(% style="width:130px" %)AT+NJM=?|(% style="width:151px" %)(((
607 -Check the current network connection method
608 -)))|(% style="width:92px" %)(((
609 -1
610 -OK
611 -)))|(% style="width:206px" %)Default 1
612 -|(% style="width:130px" %)AT+NJM=0|(% style="width:151px" %)Change the network connection method to ABP|(% style="width:92px" %)(((
613 -Attention:Take effect after ATZ
614 -OK
615 -)))|(% style="width:206px" %)(((
616 -0X2000: ABP
617 -0x2001: OTAA
618 -20: fixed command
619 -)))
620 -|(% style="width:130px" %)AT+RPL=?|(% style="width:151px" %)View current RPL settings|(% style="width:92px" %)(((
621 -0
622 -OK
623 -)))|(% style="width:206px" %)Default 0
624 -|(% style="width:130px" %)AT+RPL=1|(% style="width:151px" %)set RPL=1    |(% style="width:92px" %)OK|(% style="width:206px" %)(((
625 -0x2101:
626 -21: fixed command
627 -01: for details, check wiki
628 -)))
629 -|(% style="width:130px" %)AT+ADR=?|(% style="width:151px" %)View current ADR status|(% style="width:92px" %)(((
630 -1
631 -OK
632 -)))|(% style="width:206px" %)Default 0
633 -|(% style="width:130px" %)AT+ADR=0|(% style="width:151px" %)Set the ADR state to off|(% style="width:92px" %)OK|(% style="width:206px" %)(((
634 -0x2200: close
635 -0x2201: open
636 -22: fixed command
637 -)))
638 -|(% style="width:130px" %)AT+DR=?|(% style="width:151px" %)View the current DR settings|(% style="width:92px" %)OK|(% style="width:206px" %)
639 -|(% style="width:130px" %)AT+DR=1|(% style="width:151px" %)(((
640 -set DR to 1
641 -It takes effect only when ADR=0
642 -)))|(% style="width:92px" %)OK|(% style="width:206px" %)(((
643 -0X22000101:
644 -00: ADR=0
645 -01: DR=1
646 -01: TXP=1
647 -22: fixed command
648 -)))
649 -|(% style="width:130px" %)AT+TXP=?|(% style="width:151px" %)View the current TXP|(% style="width:92px" %)OK|(% style="width:206px" %)
650 -|(% style="width:130px" %)AT+TXP=1|(% style="width:151px" %)(((
651 -set TXP to 1
652 -It takes effect only when ADR=0
653 -)))|(% style="width:92px" %)OK|(% style="width:206px" %)(((
654 -0X22000101:
655 -00: ADR=0
656 -01: DR=1
657 -01: TXP=1
658 -22: fixed command
659 -)))
660 -|(% style="width:130px" %)AT+RJTDC=10|(% style="width:151px" %)Set RJTDC time interval|(% style="width:92px" %)OK|(% style="width:206px" %)(((
661 -0X26000A:
662 -26: fixed command
663 -000A: 0X000A=10(min)
664 -for details, check wiki
665 -)))
666 -|(% style="width:130px" %) |(% style="width:151px" %)(((
667 -(((
668 -~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_
669 -
670 -Retrieve stored data for a specified period of time
671 -)))
672 -
673 -(((
674 -
675 -)))
676 -)))|(% style="width:92px" %) |(% style="width:206px" %)(((
677 -0X3161DE7C7061DE8A800A:
678 -31: fixed command
679 -61DE7C70:0X61DE7C70=2022/1/12 15:00:00
680 -61DE8A80:0X61DE8A80=2022/1/12 16:00:00
681 -0A: 0X0A=10(second)
682 -View details 2.6.2
683 -)))
684 -|(% style="width:130px" %)AT+DDETECT=?|(% style="width:151px" %)View the current DDETECT setting status and time|(% style="width:92px" %)(((
685 -1,1440,2880
686 -OK
687 -)))|(% style="width:206px" %)Default 1,1440,2880(min)
688 -|(% style="width:130px" %)AT+DDETECT=(((
689 -1,1440,2880
690 -)))|(% style="width:151px" %)(((
691 -Set DDETECT setting status and time
692 -((% style="color:red" %)When the node does not receive the downlink packet within the set time, it will re-enter the network(%%))
693 -)))|(% style="width:92px" %)OK|(% style="width:206px" %)(((
694 -0X320005A0: close
695 -0X320105A0: open
696 -32: fixed command
697 -05A0: 0X05A0=1440(min)
698 -)))
699 -
700 -== 3.2  Set Password ==
701 -
702 -
703 -Feature: Set device password, max 9 digits.
704 -
705 -(% style="color:#4f81bd" %)**AT Command: AT+PWORD**
706 -
707 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
708 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:128px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:89px" %)**Response**
709 -|(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)(((
710 -123456
711 -OK
712 -)))
713 -|(% style="width:155px" %)AT+PWORD=999999|(% style="width:124px" %)Set password|(% style="width:86px" %)OK
714 -
715 -(% style="color:#4f81bd" %)**Downlink Command:**
716 -
717 -No downlink command for this feature.
718 -
719 -
720 -== 3.3  Set button sound and ACK sound ==
721 -
722 -
723 -Feature: Turn on/off button sound and ACK alarm.
724 -
725 -(% style="color:#4f81bd" %)**AT Command: AT+SOUND**
726 -
727 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
728 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:128px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:89px" %)**Response**
729 -|(% style="width:155px" %)(((
730 -AT+SOUND=?
731 -)))|(% style="width:124px" %)Get the current status of button sound and ACK sound|(% style="width:86px" %)(((
732 -1,1
733 -OK
734 -)))
735 -|(% style="width:155px" %)(((
736 -AT+SOUND=0,1
737 -)))|(% style="width:124px" %)Turn off the button sound and turn on ACK sound|(% style="width:86px" %)OK
738 -
739 -(% style="color:#4f81bd" %)**Downlink Command: 0xA1 **
740 -
741 -Format: Command Code (0xA1) followed by 2 bytes mode value.
742 -
743 -The first byte after 0XA1 sets the button sound, and the second byte after 0XA1 sets the ACK sound.** (0: off, 1: on)**
744 -
745 -* **Example: **Downlink Payload: A10001  ~/~/ Set AT+SOUND=0,1  Turn off the button sound and turn on ACK sound.
746 -
747 -== 3.4  Set buzzer music type(0~~4) ==
748 -
749 -
750 -Feature: Set different alarm key response sounds.There are five different types of button music.
751 -
752 -(% style="color:#4f81bd" %)**AT Command: AT+OPTION**
753 -
754 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
755 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:128px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:89px" %)**Response**
756 -|(% style="width:155px" %)(((
757 -AT+OPTION=?
758 -)))|(% style="width:124px" %)(((
759 -Get the buzzer music type
760 -)))|(% style="width:86px" %)(((
761 -3
762 -
763 -OK
764 -)))
765 -|(% style="width:155px" %)AT+OPTION=1|(% style="width:124px" %)Set the buzzer music to type 1|(% style="width:86px" %)OK
766 -
767 -(% style="color:#4f81bd" %)**Downlink Command: 0xA3**
768 -
769 -Format: Command Code (0xA3) followed by 1 byte mode value.
770 -
771 -* **Example: **Downlink Payload: A300  ~/~/ Set AT+OPTION=0  Set the buzzer music to type 0.
772 -
773 -== 3.5  Set Valid Push Time ==
774 -
775 -
776 -Feature: Set the holding time for pressing the alarm button to avoid miscontact. Values range from** 0 ~~1000ms**.
777 -
778 -(% style="color:#4f81bd" %)**AT Command: AT+STIME**
779 -
780 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
781 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:128px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:89px" %)**Response**
782 -|(% style="width:155px" %)(((
783 -AT+STIME=?
784 -)))|(% style="width:124px" %)(((
785 -Get the button sound time
786 -)))|(% style="width:86px" %)(((
787 -0
788 -OK
789 -)))
790 -|(% style="width:155px" %)(((
791 -AT+STIME=1000
792 -)))|(% style="width:124px" %)Set the button sound time to 1000**ms**|(% style="width:86px" %)OK
793 -
794 -(% style="color:#4f81bd" %)**Downlink Command: 0xA2**
795 -
796 -Format: Command Code (0xA2) followed by 2 bytes mode value.
797 -
798 -* **Example: **Downlink Payload: A203E8  ~/~/ Set AT+STIME=1000  
799 -
800 -**~ Explain: **Hold the alarm button for 10 seconds before the node will send the alarm packet.
801 -
802 -
803 -
804 -
805 805  = 6. FAQ =
806 806  
807 807  == 6.1 ==
image-20240916101737-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +156.7 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0