Changes for page LDDS45 - LoRaWAN Distance Detection Sensor User Manual
Last modified by Mengting Qiu on 2025/02/26 15:04
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 9 removed)
Details
- Page properties
-
- Content
-
... ... @@ -50,6 +50,8 @@ 50 50 * IP68 rate for the Sensor Probe 51 51 * 8500mAh Battery for long term use 52 52 53 + 54 + 53 53 == 1.3 Probe Specification == 54 54 55 55 ... ... @@ -70,79 +70,74 @@ 70 70 * IP68 Protection 71 71 * Length: 3.5 meters 72 72 75 + 73 73 == 1.4 Applications == 74 74 75 75 * Smart Agriculture 76 76 80 + 77 77 == 1.5 Pin mapping and power on == 78 78 79 -[[image:1654580482666-473.png]] 83 +[[image:1654580482666-473.png]][[image:1654580428909-307.png]] 80 80 81 81 82 82 83 83 = 2. Configure LSPH01 to connect to LoRaWAN network = 84 84 85 -== 2.1 How it works == 89 +== 2.1 How it works == 86 86 87 -((( 88 88 The LSPH01 is configured as 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 power on the LSPH01. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes. 89 -))) 90 90 91 -((( 92 -In case you can’t set the OTAA keys in the LoRaWAN OTAA server, and you have to use the keys from the server, you can [[use AT Commands >>||anchor="H5.200BUseATCommand"]]to set the keys in the LSPH01. 93 -))) 94 94 94 +In case you can’t set the OTAA keys in the LoRaWAN OTAA server, and you have to use the keys from the server, you can [[use AT Commands >>path:#_Using_the_AT]]to set the keys in the LSPH01. 95 95 96 -== 2.2 Quick guide to connect to LoRaWAN server (OTAA) == 97 97 98 -((( 97 +1. 98 +11. Quick guide to connect to LoRaWAN server (OTAA) 99 + 99 99 Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LG308>>url:http://www.dragino.com/products/lora/item/140-lg308.html]] as a LoRaWAN gateway in this example. 100 -))) 101 101 102 -((( 103 - 104 -))) 105 105 106 -((( 103 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png]] 104 + 105 + 107 107 The LG308 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. 108 -))) 109 109 110 - (((108 + 111 111 **Step 1**: Create a device in TTN with the OTAA keys from LSPH01. 112 -))) 113 113 114 -((( 115 115 Each LSPH01 is shipped with a sticker with the default device EUI as below: 116 -))) 117 117 118 118 119 -[[image:image -20220607135531-1.jpeg]]114 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]] 120 120 121 121 117 + 118 + 119 + 122 122 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: 123 123 124 124 125 125 **Register the device** 126 126 127 -[[image: 1654581442672-605.png]]125 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]] 128 128 129 129 130 - 131 131 **Add APP EUI and DEV EUI** 132 132 133 -[[image:1654581465717-368.png]] 134 134 131 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]] 135 135 136 136 137 137 **Add APP EUI in the application** 138 138 139 -[[image:1654581493871-516.png]] 140 140 137 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]] 141 141 142 142 143 143 **Add APP KEY** 144 144 145 -[[image: 1654581517630-991.png]]142 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image008.png]] 146 146 147 147 148 148 **Step 2**: Power on LSPH01 ... ... @@ -150,24 +150,37 @@ 150 150 151 151 Put a Jumper on JP2 to power on the device. ( The Switch must be in FLASH position). 152 152 153 -[[image:image-20220607135918-2.png]] 154 154 155 155 152 +|((( 153 + 154 +))) 155 + 156 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image009.png]] 157 + 158 + 159 + 160 + 156 156 **Step 3:** The LSPH01 will auto join to the TTN network. After join success, it will start to upload messages to TTN and you can see the messages in the panel. 157 157 158 -[[image:1654581590132-631.png]] 159 159 160 160 161 161 162 - == 2.3 Uplink Payload ==166 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.png]] 163 163 168 + 169 + 170 +1. 171 +11. Uplink Payload 172 + 164 164 LSPH01 will uplink payload via LoRaWAN with below payload format: 165 165 175 + 166 166 Uplink payload includes in total 11 bytes. 177 + 167 167 168 168 Normal uplink payload: 169 169 170 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:510px" %) 171 171 |((( 172 172 **Size** 173 173 ... ... @@ -187,13 +187,14 @@ 187 187 [[Type>>path:#Message_Type]] 188 188 ))) 189 189 190 -[[image: 1654581735133-458.png]]200 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.png]] 191 191 192 192 193 193 194 -=== 2.3.1 Battery Info === 204 +1. 205 +11. 206 +111. Battery Info 195 195 196 - 197 197 Check the battery voltage for LSPH01. 198 198 199 199 Ex1: 0x0B45 = 2885mV ... ... @@ -201,12 +201,13 @@ 201 201 Ex2: 0x0B49 = 2889mV 202 202 203 203 215 +1. 216 +11. 217 +111. DS18B20 Temperature sensor 204 204 205 - ===2.3.2DS18B20Temperaturesensor ===219 +This is optional, user can connect external DS18B20 sensor to the [[+3.3v, 1-wire and GND pin>>path:#DS18B20]] . and this field will report temperature. 206 206 207 -This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature. 208 208 209 - 210 210 **Example**: 211 211 212 212 If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree ... ... @@ -215,35 +215,40 @@ 215 215 216 216 217 217 218 -=== 2.3.3 Soil pH === 230 +1. 231 +11. 232 +111. Soil pH 219 219 220 220 Range: 0 ~~ 14 pH 221 221 222 - **Example:**236 +Example: 223 223 224 - (% style="color:#037691" %)**238 +**0x02B7(H) = 695(D) = 6.95pH** 225 225 226 226 241 +1. 242 +11. 243 +111. Soil Temperature 227 227 228 -=== 2.3.4 Soil Temperature === 229 - 230 230 Get Soil Temperature 231 231 232 232 233 233 **Example**: 234 234 235 -If payload is: **0105H**: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree250 +If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree 236 236 237 -If payload is: **FF3FH**: (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.252 +If payload is: FF3FH : (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. 238 238 239 239 240 240 241 -=== 2.3.5 Interrupt Pin === 256 +1. 257 +11. 258 +111. Interrupt Pin 242 242 243 -This data field shows if this packet is generated by interrupt or not. [[Click here>> ||anchor="H3.2SetInterruptMode"]] for the hardware and software set up.260 +This data field shows if this packet is generated by interrupt or not. [[Click here>>path:#Int_mod]] for the hardware and software set up. 244 244 245 245 246 - **Example:**263 +Example: 247 247 248 248 0x00: Normal uplink packet. 249 249 ... ... @@ -250,41 +250,37 @@ 250 250 0x01: Interrupt Uplink Packet. 251 251 252 252 270 +1. 271 +11. 272 +111. Message Type 253 253 254 -=== 2.3.6 Message Type === 255 - 256 256 For a normal uplink payload, the message type is always 0x01. 257 257 258 258 Valid Message Type: 259 259 260 260 261 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:510px" %) 262 -|**Message Type Code**|**Description**|**Payload** 263 -|0x01|Normal Uplink|[[Normal Uplink Payload>>||anchor="H2.3Uplink Payload"]] 264 -|0x02|Reply configures info|[[Configure Info Payload>>||anchor="H3.4GetFirmwareVersionInfo"]] 265 -|0x03|Reply Calibration Info|[[Calibration Payload>>||anchor="H2.7Calibration"]] 279 +|Message Type Code|Description|Payload 280 +|0x01|Normal Uplink|[[Normal Uplink Payload>>path:#Normal_Uplink]] 281 +|0x02|Reply configures info|[[Configure Info Payload>>path:#Configure_Info_Payload]] 282 +|0x03|Reply Calibration Info|[[Calibration Payload>>path:#Calibration_Payload]] 266 266 284 +1. 285 +11. 286 +111. Decode payload in The Things Network 267 267 268 - 269 -=== 2.3.7 Decode payload in The Things Network === 270 - 271 271 While using TTN network, you can add the payload format to decode the payload. 272 272 273 273 274 -[[image: 1654582541848-906.png]]291 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image011.png]] 275 275 276 -((( 277 277 The payload decoder function for TTN is here: 278 -))) 279 279 280 -((( 281 281 LSPH01 TTN Payload Decoder: [[https:~~/~~/www.dragino.com/downloads/index.pHp?dir=LoRa_End_Node/LSPH01/Decoder/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSNPK01/Decoder/]] 282 -))) 283 283 284 284 298 +1. 299 +11. Uplink Interval 285 285 286 -== 2.4 Uplink Interval == 287 - 288 288 The LSPH01 by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link: 289 289 290 290 [[http:~~/~~/wiki.dragino.com/index.pHp?title=End_Device_AT_Commands_and_Downlink_Commands#Change_Uplink_Interval>>url:http://wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands#Change_Uplink_Interval]] ... ... @@ -390,6 +390,7 @@ 390 390 1111. Avoid the probes to touch oily matter. Which will cause issue in accuracy. 391 391 1111. The probe is IP68 can be put in water. 392 392 406 + 393 393 1. 394 394 11. Calibration 395 395
- 1654581442672-605.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -59.6 KB - Content
- 1654581465717-368.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -62.1 KB - Content
- 1654581493871-516.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -83.1 KB - Content
- 1654581517630-991.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -65.2 KB - Content
- 1654581590132-631.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -42.6 KB - Content
- 1654581735133-458.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -42.6 KB - Content
- 1654582541848-906.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -59.2 KB - Content
- image-20220607135531-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -16.5 KB - Content
- image-20220607135918-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -99.6 KB - Content