Last modified by Mengting Qiu on 2025/07/01 15:58
From version 3.1
edited by Edwin Chen
on 2023/04/16 13:09
on 2023/04/16 13:09
Change comment:
There is no comment for this version
To version 11.1
edited by Edwin Chen
on 2023/04/16 17:51
on 2023/04/16 17:51
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -17,7 +17,7 @@ 17 17 18 18 The Dragino S31x-LB is a (% style="color:blue" %)**LoRaWAN Temperature and Humidity Sensor**(%%) for Internet of Things solution. It is used to measure the (% style="color:blue" %)**surrounding environment temperature and relative air humidity precisely**(%%), and then upload to IoT server via LoRaWAN wireless protocol. 19 19 20 -The temperature & humidity sensor used in S31x-LB is SHT31, which is fully calibrated, linearized, and temperature compensated digital output from Sensirion, it provides a strong reliability and long-term stability. The SHT31 is fixed in a **waterproof anti-condensation casing 20 +The temperature & humidity sensor used in S31x-LB is SHT31, which is fully calibrated, linearized, and temperature compensated digital output from Sensirion, it provides a strong reliability and long-term stability. The SHT31 is fixed in a (% style="color:blue" %)**waterproof anti-condensation casing**(%%) for long term use. 21 21 22 22 The LoRa wireless technology used in S31x-LB allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. 23 23 ... ... @@ -36,9 +36,9 @@ 36 36 37 37 * LoRaWAN 1.0.3 Class A 38 38 * Ultra-low power consumption 39 -* 1 ~~ 3ExternalTemperatureProbesr39 +* External 3 meters SHT31 probe (For S31-LB) 40 40 * Measure range -55°C ~~ 125°C 41 -* Temperature alarm 41 +* Temperature & Humidity alarm 42 42 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865 43 43 * Support Bluetooth v5.1 and LoRaWAN remote configure 44 44 * Support wireless OTA update firmware ... ... @@ -56,10 +56,18 @@ 56 56 57 57 (% style="color:#037691" %)**Temperature Sensor:** 58 58 59 -* Dallas DS18B20 60 -* Range: -55 to + 125°C 61 -* Accuracy ±0.5°C (max ±2.0 °C). 59 +* Range: -40 to + 80°C 60 +* Accuracy: ±0.2 @ 0-90 °C 61 +* Resolution: 0.1°C 62 +* Long Term Shift: <0.03 °C/yr 62 62 64 +(% style="color:#037691" %)**Humidity Sensor: ** 65 + 66 +* Range: 0 ~~ 99.9% RH 67 +* Accuracy: ± 2%RH ( 0 ~~ 100%RH) 68 +* Resolution: 0.01% RH 69 +* Long Term Shift: <0.25 %RH/yr 70 + 63 63 (% style="color:#037691" %)**LoRa Spec:** 64 64 65 65 * Frequency Range, Band 1 (HF): 862 ~~ 1020 Mhz ... ... @@ -91,7 +91,7 @@ 91 91 == 1.5 Button & LEDs == 92 92 93 93 94 -[[image:1675071855856-879.png]] 102 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]] 95 95 96 96 97 97 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) ... ... @@ -105,7 +105,7 @@ 105 105 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 106 106 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network. 107 107 ))) 108 -|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means D2x-LBis in Deep Sleep Mode.116 +|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means device is in Deep Sleep Mode. 109 109 110 110 == 1.6 BLE connection == 111 111 ... ... @@ -127,30 +127,19 @@ 127 127 128 128 (% border="1" cellspacing="10" style="background-color:#f7faff; width:510px" %) 129 129 |=(% style="width: 102px;" %)Model|=(% style="width: 190px;" %)Photo|=(% style="width: 297px;" %)Probe Info 130 -|(% style="width:102px" %)** D20-LB**|(% style="width:190px" %) |(% style="width:297px" %)(((131 -1 x DS28B20Probe138 +|(% style="width:102px" %)**S31-LB**|(% style="width:190px" %) |(% style="width:297px" %)((( 139 +1 x SHT31 Probe 132 132 133 133 Cable Length : 2 meters 134 134 135 135 136 136 ))) 137 -|(% style="width:102px" %)** D22-LB**|(% style="width:190px" %) |(% style="width:297px" %)(((138 - 2xDS28B20Probes145 +|(% style="width:102px" %)**S31B-LB**|(% style="width:190px" %) |(% style="width:297px" %)((( 146 +1 x SHT31 Probe 139 139 140 -Cable lengths total 1.5meters per probe 141 - 142 -Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K21G-210811.pdf]] 148 +Installed in device. 143 143 ))) 144 -|(% style="width:102px" %)((( 145 - **D23-LB** 146 -)))|(% style="width:190px" %) |(% style="width:297px" %)((( 147 -3 x DS28B20 Probes 148 148 149 -Cable lengths total 1.5meters per probe 150 - 151 -Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K31G-210811.pdf]] 152 -))) 153 - 154 154 (% style="display:none" %) 155 155 156 156 ... ... @@ -158,21 +158,21 @@ 158 158 == 1.8 Mechanical == 159 159 160 160 161 -[[image:1675143884058-338.png]] 158 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143884058-338.png]] 162 162 163 163 164 -[[image:1675143899218-599.png]] 161 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143899218-599.png]] 165 165 166 166 167 -[[image:1675143909447-639.png]] 164 +[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143909447-639.png]] 168 168 169 169 170 -= 2. Configure D2x-LB to connect to LoRaWAN network =167 += 2. Configure S31x-LB to connect to LoRaWAN network = 171 171 172 172 == 2.1 How it works == 173 173 174 174 175 -The D2x-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate theD2x-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.172 +The S31x-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the S31x-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes. 176 176 177 177 178 178 == 2.2 Quick guide to connect to LoRaWAN server (OTAA) == ... ... @@ -187,9 +187,9 @@ 187 187 The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server. 188 188 189 189 190 -(% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from D2x-LB.187 +(% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from S31x-LB. 191 191 192 -Each D2x-LB is shipped with a sticker with the default device EUI as below:189 +Each S31x-LB is shipped with a sticker with the default device EUI as below: 193 193 194 194 [[image:image-20230131134744-2.jpeg]] 195 195 ... ... @@ -218,11 +218,12 @@ 218 218 219 219 [[image:1675144157838-392.png]] 220 220 221 -(% style="color:blue" %)**Step 2:**(%%) Activate on D2x-LB 222 222 219 +(% style="color:blue" %)**Step 2:**(%%) Activate on S31x-LB 223 223 224 -Press the button for 5 seconds to activate the D2x-LB. 225 225 222 +Press the button for 5 seconds to activate the S31x-LB. 223 + 226 226 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 227 227 228 228 After join success, it will start to upload messages to TTN and you can see the messages in the panel. ... ... @@ -233,7 +233,7 @@ 233 233 === 2.3.1 Device Status, FPORT~=5 === 234 234 235 235 236 -Users can use the downlink command(**0x26 01**) to ask D2x-LB to send device configure detail, include device configure status.D2x-LB will uplink a payload via FPort=5 to server.234 +Users can use the downlink command(**0x26 01**) to ask S31x-LB to send device configure detail, include device configure status. S31x-LB will uplink a payload via FPort=5 to server. 237 237 238 238 The Payload format is as below. 239 239 ... ... @@ -248,7 +248,7 @@ 248 248 [[image:image-20230415153147-2.png||height="220" width="1120"]] 249 249 250 250 251 -(% style="color:#037691" %)**Sensor Model**(%%): For D2x-LB, this value is 0x19249 +(% style="color:#037691" %)**Sensor Model**(%%): For S31x-LB, this value is 0x0A 252 252 253 253 (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version 254 254 ... ... @@ -304,52 +304,23 @@ 304 304 === 2.3.2 Sensor Data. FPORT~=2 === 305 305 306 306 307 -D 2x-LBwilluplinkbelow payloadvia FPORT=2after Joined LoRaWAN Network.305 +Sensor Data is uplink via FPORT=2 308 308 309 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:500px" %) 310 -|=(% style="width: 62.5px;" %)((( 311 -**Size (bytes)** 312 -)))|=(% style="width: 60px;" %)2|=(% style="width: 120px;" %)2|=(% style="width: 60px;" %)2|=(% style="width: 65px;" %)1|=(% style="width: 65px;" %)**2**|=(% style="width: 65px;" %)2 313 -|(% style="width:65px" %)**Value**|((( 314 -[[Battery>>||anchor="HBattery:"]] 315 -)))|(% style="width:91px" %)((( 316 -[[Temp_ Red or Temp _White>>||anchor="HTemperatureREDorTemperatureWhite:"]] 317 -)))|(% style="width:61px" %)((( 318 -ignore 319 -)))|(% style="width:91px" %)((( 320 -[[Alarm Flag>>||anchor="HAlarmFlag26MOD:"]] 321 -)))|(% style="width:99px" %)((( 322 -[[Temp_White>>||anchor="HTemperatureWhite:"]] 323 -)))|(% style="width:97px" %)((( 324 -[[Temp_Black>>||anchor="HTemperatureBlack:"]] 325 - 326 - 307 +|=((( 308 +**Size(bytes)** 309 +)))|=2|=4|=1|=**2**|=2 310 +|**Value**|((( 311 +[[Battery>>path:#HBattery:]] 312 +)))|((( 313 +[[Unix TimeStamp>>path:#H2.4.1UnixTimeStamp]] 314 +)))|((( 315 +[[Alarm Flag>>path:#HAlarmFlag26MOD:]] 316 +)))|((( 317 +[[Temperature>>path:#HTemperature:]] 318 +)))|((( 319 +[[Humidity>>path:#HHumidity:]] 327 327 ))) 328 328 329 -**Payload per each model.** 330 - 331 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-D20-D22-D23%20LoRaWAN%20Temperature%20Sensor%20User%20Manual/WebHome/image-20220916152530-2.png?rev=1.1||alt="image-20220916152530-2.png" height="240" width="901"]] 332 - 333 - 334 -[[image:image-20230415154139-3.png||height="215" width="1179"]] 335 - 336 - 337 -==== (% style="color:#4472c4" %)**Decode corresponding probe color:**(%%) ==== 338 - 339 -**D20:** 340 - 341 -Red <~-~-> C1 342 - 343 -**D22:** 344 - 345 -White <~-~-> C1 Red <~-~-> C2 346 - 347 -**D23:** 348 - 349 -White <~-~->C1 Red <~-~-> C2 Black <~-~-> C3 350 - 351 - 352 - 353 353 ==== (% style="color:#4472c4" %)**Battery:**(%%) ==== 354 354 355 355 Sensor Battery Level. ... ... @@ -360,10 +360,8 @@ 360 360 361 361 362 362 363 -==== (% style="color:#4472c4" %)**Temperature RED or Temperature White:**(%%) ====332 +==== (% style="color:#4472c4" %)**Temperature:**(%%) ==== 364 364 365 -**This point to the Red probe in D20-LB or the probe of D22-LB/D23-LB White** 366 - 367 367 **Example**: 368 368 369 369 If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree ... ... @@ -373,39 +373,12 @@ 373 373 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 374 374 375 375 343 +==== (% style="color:#4472c4" %)**Humidity:**(%%) ==== 376 376 377 -==== (% style="color:#4472c4" %)**Temperature White:**(%%) ==== 378 378 346 +Read:0x(0197)=412 Value: 412 / 10=41.2, So 41.2% 379 379 380 -**This point to the Red probe in D22-LB/D23-LB** 381 381 382 - 383 -**Example**: 384 - 385 -If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree 386 - 387 -If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 388 - 389 -(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 390 - 391 - 392 - 393 -==== (% style="color:#4472c4" %)**Temperature Black:**(%%) ==== 394 - 395 - 396 -**This point to the BLACK probe in D23-LB** 397 - 398 - 399 -**Example**: 400 - 401 -If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree 402 - 403 -If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 404 - 405 -(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 406 - 407 - 408 - 409 409 ==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ==== 410 410 411 411 ... ... @@ -415,36 +415,33 @@ 415 415 416 416 If payload & 0x01 = 0x00 **~-~->** This is a normal uplink message, no alarm 417 417 358 +If payload >> 2 = 0x00 **~-~->** means MOD=1, This is a sampling uplink message 418 418 360 +If payload >> 2 = 0x31 **~-~->** means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#HPolltheAlarmsettings:]] for detail. 419 419 420 -==== ==== 421 421 422 - 423 423 == 2.4 Payload Decoder file == 424 424 365 +In TTN, use can add a custom payload so it shows friendly reading 425 425 426 -((( 427 -In TTN, use can add a custom payload so it shows friendly. 428 -))) 367 +In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from: 429 429 430 -((( 431 -In the page **Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder** to add the decoder from: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]] 432 -))) 369 +[[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B >>https://github.com/dragino/dragino-end-node-decoder/tree/main/LSN50v2-S31%26S31B]] 433 433 434 434 435 435 == 2.5 Datalog Feature == 436 436 437 437 438 -Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, D2x-LB will store the reading for future retrieving purposes.375 +Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, S31x-LB will store the reading for future retrieving purposes. 439 439 440 440 441 441 === 2.5.1 Ways to get datalog via LoRaWAN === 442 442 443 443 444 -Set [[PNACKMD=1>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H4.13AutoSendNone-ACKmessages]], D2x-LB will wait for ACK for every uplink, when there is no LoRaWAN network,D2x-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.381 +Set [[PNACKMD=1>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H4.13AutoSendNone-ACKmessages]], S31x-LB will wait for ACK for every uplink, when there is no LoRaWAN network,S31x-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery. 445 445 446 -* a) D2x-LB will do an ACK check for data records sending to make sure every data arrive server.447 -* b) D2x-LB will send data in **CONFIRMED Mode** when PNACKMD=1, butD2x-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink ifD2x-LB gets a ACK,D2x-LB will consider there is a network connection and resend all NONE-ACKMessage.383 +* a) S31x-LB will do an ACK check for data records sending to make sure every data arrive server. 384 +* b) S31x-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but S31x-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if S31x-LB gets a ACK, S31x-LB will consider there is a network connection and resend all NONE-ACK messages. 448 448 449 449 Below is the typical case for the auto-update datalog feature (Set PNACKMD=1) 450 450 ... ... @@ -453,7 +453,7 @@ 453 453 === 2.5.2 Unix TimeStamp === 454 454 455 455 456 -L HT65Nuses Unix TimeStamp format based on393 +S31x-LB uses Unix TimeStamp format based on 457 457 458 458 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-11.png?width=627&height=97&rev=1.1||alt="image-20220523001219-11.png" height="97" width="627"]] 459 459 ... ... @@ -469,17 +469,17 @@ 469 469 === 2.5.3 Set Device Time === 470 470 471 471 472 -User need to set SYNCMOD=1 to enable sync time via MAC command. 409 +User need to set **SYNCMOD=1** to enable sync time via MAC command. 473 473 474 -Once D2x-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time toD2x-LB. IfD2x-LB fails to get the time from the server,D2x-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).411 +Once S31x-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to S31x-LB. If S31x-LB fails to get the time from the server, S31x-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days). 475 475 476 476 **Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1.** 477 477 478 478 479 -=== 2.5.4 Datalog Uplink payload (FPORT~=3)===416 +=== 2.5.4 Datalog Uplink payload (FPORT~=3) === 480 480 481 481 482 -The Datalog poll replyuplink will use below payload format.419 +The Datalog uplinks will use below payload format. 483 483 484 484 **Retrieval data payload:** 485 485 ... ... @@ -527,7 +527,7 @@ 527 527 528 528 Stop time: 60066DA7= time 21/1/19 05:27:03 529 529 530 -**L HT65Nwill uplink this payload.**467 +**S31x-LB will uplink this payload.** 531 531 532 532 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-13.png?width=727&height=421&rev=1.1||alt="image-20220523001219-13.png" height="421" width="727"]] 533 533 ... ... @@ -553,7 +553,7 @@ 553 553 == 2.6 Temperature Alarm Feature == 554 554 555 555 556 - D2x-LB work flow with Alarm feature.493 +S31x-LB work flow with Alarm feature. 557 557 558 558 559 559 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-D20-D22-D23%20LoRaWAN%20Temperature%20Sensor%20User%20Manual/WebHome/image-20220623090437-1.png?rev=1.1||alt="image-20220623090437-1.png"]] ... ... @@ -563,7 +563,7 @@ 563 563 == 2.7 Frequency Plans == 564 564 565 565 566 -The D2x-LB uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets.503 +The S31x-LB uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets. 567 567 568 568 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]] 569 569 ... ... @@ -573,19 +573,18 @@ 573 573 574 574 **Firmware download link:** 575 575 576 -[[https:~~/~~/www.dropbox.com/sh/ gf1glloczbzz19h/AABbuYI4WY6VdAmpXo6o1V2Ka?dl=0>>url:https://www.dropbox.com/sh/gf1glloczbzz19h/AABbuYI4WY6VdAmpXo6o1V2Ka?dl=0]]513 +[[https:~~/~~/www.dropbox.com/sh/kwqv57tp6pejias/AAAopYMATh1GM6fZ-VRCLrpDa?dl=0>>https://www.dropbox.com/sh/kwqv57tp6pejias/AAAopYMATh1GM6fZ-VRCLrpDa?dl=0]] 577 577 578 578 516 += 3. Configure S31x-LB = 579 579 580 -= 3. Configure D2x-LB = 581 - 582 582 == 3.1 Configure Methods: == 583 583 584 584 585 - D2x-LB supports below configure method:521 +S31x-LB supports below configure method: 586 586 587 587 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]]. 588 -* AT Command via UART Connection : See [[ FAQ>>||anchor="H7.FAQ"]].524 +* 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]]. 589 589 * LoRaWAN Downlink. Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section. 590 590 591 591 == 3.2 General Commands == ... ... @@ -601,10 +601,10 @@ 601 601 [[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/]] 602 602 603 603 604 -== 3.3 Commands special design for D2x-LB ==540 +== 3.3 Commands special design for S31x-LB == 605 605 606 606 607 -These commands only valid for D2x-LB, as below:543 +These commands only valid for S31x-LB, as below: 608 608 609 609 610 610 === 3.3.1 Set Transmit Interval Time === ... ... @@ -645,69 +645,64 @@ 645 645 Sensor will upload Device Status via FPORT=5. See payload section for detail. 646 646 647 647 648 -=== 3.3.3 Set Alarm Thre dhold ===584 +=== 3.3.3 Set Temperature Alarm Threshold: === 649 649 586 +* **AT Command:** 650 650 651 - (% style="color:#4472c4" %)**1. Set forAllProbes:**588 +**AT+SHTEMP=min,max** 652 652 653 -(% style="color:#037691" %)**AT+18ALARM=min,max** 590 +* When min=0, and max≠0, Alarm higher than max 591 +* When min≠0, and max=0, Alarm lower than min 592 +* When min≠0 and max≠0, Alarm higher than max or lower than min 654 654 655 -* When min=0, and max≠0, Alarm trigger when higher than max 656 -* When min≠0, and max=0, Alarm trigger when lower than min 657 -* When min≠0 and max≠0, Alarm trigger when higher than max or lower than min 594 +Example: 658 658 659 - **Example:**596 + AT+SHTEMP=0,30 ~/~/ Alarm when temperature higher than 30. 660 660 661 - AT+18ALARM=-10,30 ~/~/ Alarmwhen< -10 or higher than30.598 +* **Downlink Payload:** 662 662 600 +**0x(0C 01 00 1E)** ~/~/Set AT+SHTEMP=0,30 663 663 664 -* % style="color:#037691"%)**DownlinkPayload:**602 +**(note: 3^^rd^^ byte= 0x00 for low limit(not set), 4^^th^^ byte = 0x1E for high limit: 30)** 665 665 666 -0x(0B F6 1E) ~/~/ Same as AT+18ALARM=-10,30 667 667 668 - (note: 0x1E= 30,0xF6means:0xF6-0x100=-10)605 +=== 3.3.4 Set Humidity Alarm Threshold: === 669 669 607 +* **AT Command:** 670 670 671 - (% style="color:#4472c4" %)**2.Set for Separate Probe:**609 +**AT+SHHUM=min,max** 672 672 673 -(% style="color:#037691" %)**AT+18ALARM=min,max,index** 611 +* When min=0, and max≠0, Alarm higher than max 612 +* When min≠0, and max=0, Alarm lower than min 613 +* When min≠0 and max≠0, Alarm higher than max or lower than min 674 674 675 - Index:615 +Example: 676 676 677 -* 1: Temperature_Red 678 -* 2: Temperature_White 679 -* 3: Temperature_Black 617 + AT+SHHUM=70,0 ~/~/ Alarm when humidity lower than 70%. 680 680 681 -** Example:**619 +* **Downlink Payload:** 682 682 683 - AT+18ALARM=-10,30,1Alarm whentemperature_red< -10or higher than 30.621 +**0x(0C 02 46 00)** ~/~/Set AT+SHTHUM=70,0 684 684 623 +**(note: 3^^rd^^ byte= 0x46 for low limit (70%), 4^^th^^ byte = 0x00 for high limit (not set))** 685 685 686 -* (% style="color:#037691" %)**Downlink Payload:** 687 687 688 - 0x(0BF61E 01) ~/~/SameasAT+18ALARM=-10,30,1626 +=== 3.3.5 Set Alarm Interval: === 689 689 690 -(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10) 691 - 692 - 693 -=== 3.3.4 Set Alarm Interval === 694 - 695 - 696 696 The shortest time of two Alarm packet. (unit: min) 697 697 698 -* (% style="color:#037691" %)**AT Command:**630 +* **AT Command:** 699 699 700 -AT+ATDC=30 ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes. 632 +**AT+ATDC=30** ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes. 701 701 634 +* **Downlink Payload:** 702 702 703 -* %style="color:#037691"%)**DownlinkPayload:**636 +**0x(0D 00 1E)** **~-~--> ** Set AT+ATDC=0x 00 1E = 30 minutes 704 704 705 -0x(0D 00 1E) **~-~-->** Set AT+ATDC=0x 00 1E = 30 minutes 706 706 639 +=== 3.3.6 Get Alarm settings (什么FPORT?) === 707 707 708 -=== 3.3.5 Get Alarm settings (什么FPORT?) === 709 709 710 - 711 711 Send a LoRaWAN downlink to ask device send Alarm settings. 712 712 713 713 * (% style="color:#037691" %)**Downlink Payload: **(%%)0x0E 01 ... ... @@ -721,9 +721,11 @@ 721 721 722 722 * Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message. 723 723 724 -=== 3.3.6 Set Interrupt Mode === 725 725 726 726 657 +=== 3.3.7 Set Interrupt Mode === 658 + 659 + 727 727 Feature, Set Interrupt mode for GPIO_EXIT. 728 728 729 729 (% style="color:blue" %)**AT Command: AT+INTMOD** ... ... @@ -752,10 +752,11 @@ 752 752 * Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode 753 753 * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger 754 754 688 + 755 755 = 4. Battery & Power Consumption = 756 756 757 757 758 - D2x-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.692 +S31x-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace. 759 759 760 760 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] . 761 761 ... ... @@ -771,7 +771,7 @@ 771 771 == 6.1 How to use AT Command via UART to access device? == 772 772 773 773 774 -See: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H 1.LoRaSTv4baseHardware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]708 +See: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]] 775 775 776 776 777 777 == 6.2 How to update firmware via UART port? == ... ... @@ -789,7 +789,7 @@ 789 789 = 7. Order Info = 790 790 791 791 792 -Part Number: (% style="color:blue" %)** D20-LB-XX /D22-LB-XX / D23-LB-XX**726 +Part Number: (% style="color:blue" %)**S31-LB-XX / S31x-LB-XX** 793 793 794 794 (% style="color:red" %)**XX**(%%): The default frequency band 795 795 ... ... @@ -814,7 +814,7 @@ 814 814 815 815 (% style="color:#037691" %)**Package Includes**: 816 816 817 -* D2x-LB LoRaWAN Temperature Sensor751 +* S31x-LB LoRaWAN Temperature & Humidity Sensor 818 818 819 819 (% style="color:#037691" %)**Dimension and weight**: 820 820