Changes for page LHT52 - LoRaWAN Temperature & Humidity Sensor User Manual
Last modified by Mengting Qiu on 2024/04/30 14:27
Change comment:
Uploaded new attachment "image-20220523001219-11.png", version {1}
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 7 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -132,7 +132,7 @@ 132 132 133 133 == Uplink Payload: == 134 134 135 -The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and(% class="mark" %) 135 +The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and(% class="mark" %) every 20 minutes(%%) send one uplink by default. 136 136 137 137 After each uplink, the (% class="mark" %)BLUE LED(%%) will blink once. 138 138 ... ... @@ -153,7 +153,6 @@ 153 153 * The 7th byte (EXT #): defines the external sensor model. 154 154 * The 8^^th^^ ~~ 11^^th^^ byte: the value for external sensor value. The definition is based on external sensor type. (If EXT=0, there won’t be these four bytes.) 155 155 156 - 157 157 === Decoder in TTN V3 === 158 158 159 159 When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N decoder in TTNv3 for friendly reading. ... ... @@ -160,10 +160,172 @@ 160 160 161 161 Below is the position to put the decoder and LHT65N decoder can be download from here: 162 162 162 +[[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0]] 163 163 164 164 [[image:image-20220522234118-10.png]] 165 165 166 166 167 +=== BAT-Battery Info === 168 + 169 +These two bytes of BAT include the battery state and the actually voltage 170 + 171 +(% style="width:646px" %) 172 +|Bit(bit)|(% style="width:272px" %)[15:14]|(% style="width:214px" %)[13:0] 173 +|Value|(% style="width:272px" %)((( 174 +BAT Status 175 + 176 +00(b): Ultra Low ( BAT <= 2.50v) 177 + 178 +01(b): Low (2.50v <=BAT <= 2.55v) 179 + 180 +10(b): OK (2.55v <= BAT <=2.65v) 181 + 182 +11(b): Good (BAT >= 2.65v) 183 +)))|(% style="width:214px" %)Actually BAT voltage 184 + 185 +[[image:image-20220522235639-1.png]] 186 + 187 +Check the battery voltage for LHT65N. 188 + 189 +* BAT status=(0Xcba4>>14)&0xFF=11(B),very good 190 +* Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 191 + 192 +=== Built-in Temperature === 193 + 194 +[[image:image-20220522235639-2.png]] 195 + 196 +* Temperature: 0x0ABB/100=27.47℃ 197 + 198 +[[image:image-20220522235639-3.png]] 199 + 200 +* Temperature: (0xF5C6-65536)/100=-26.18℃ 201 + 202 +=== Built-in Humidity === 203 + 204 +[[image:image-20220522235639-4.png]] 205 + 206 +* Humidity: 0x025C/10=60.4% 207 + 208 +=== Ext # === 209 + 210 +Bytes for External Sensor: 211 + 212 +(% style="width:624px" %) 213 +|(% style="width:139px" %)**EXT # Value**|(% style="width:484px" %)**External Sensor Type** 214 +|(% style="width:139px" %)0x01|(% style="width:484px" %)Sensor E3, Temperature Sensor 215 +|(% style="width:139px" %)0x09|(% style="width:484px" %)Sensor E3, Temperature Sensor, Datalog Mod 216 + 217 +=== Ext value === 218 + 219 +==== Ext~=1, E3 Temperature Sensor ==== 220 + 221 +[[image:image-20220522235639-5.png]] 222 + 223 + 224 +* DS18B20 temp=0x0ADD/100=27.81℃ 225 + 226 +The last 2 bytes of data are meaningless 227 + 228 + 229 + 230 +[[image:image-20220522235639-6.png]] 231 + 232 +* External temperature= (0xF54F-65536)/100=-27.37℃ 233 + 234 +The last 2 bytes of data are meaningless 235 + 236 + 237 +If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃ 238 + 239 + 240 +==== Ext~=9, E3 sensor with Unix Timestamp ==== 241 + 242 +Timestamp mode is designed for LHT65N with E3 probe, it will send the uplink payload with Unix timestamp. With the limitation of 11 bytes (max distance of AU915/US915/AS923 band), the time stamp mode will be lack of BAT voltage field, instead, it shows the battery status. The payload is as below: 243 + 244 + 245 +(% style="width:697px" %) 246 +|(% style="width:96px" %)**Size(bytes)**|(% style="width:164px" %)**2**|(% style="width:104px" %)**2**|(% style="width:106px" %)**2**|(% style="width:108px" %)**1**|(% style="width:116px" %)**4** 247 +|(% style="width:96px" %)**Value**|(% style="width:164px" %)[[External temperature>>path:#DS18b20_value]]|(% style="width:104px" %)((( 248 +[[Built-In>>path:#SHT20_Temperature]] 249 + 250 +[[Temperature>>path:#SHT20_Temperature]] 251 +)))|(% style="width:106px" %)((( 252 +[[BAT Status &>>path:#BAT_Humidity]] 253 + 254 +[[Built-in>>path:#BAT_Humidity]] 255 + 256 +[[Humidity>>path:#BAT_Humidity]] 257 +)))|(% style="width:108px" %)[[Status & Ext>>path:#Status_EXT]]|(% style="width:116px" %)((( 258 +[[Unix>>path:#Unix_Time_Stamp]] 259 + 260 +[[Time Stamp>>path:#Unix_Time_Stamp]] 261 +))) 262 + 263 +* **Battery status & **[[(% class="wikiinternallink" %)**Built-in Humidity**>>path:#SHT20_Humidity]] 264 + 265 +(% style="width:587px" %) 266 +|Bit(bit)|(% style="width:280px" %)[15:14]|(% style="width:136px" %)[11:0] 267 +|Value|(% style="width:280px" %)((( 268 +BAT Status 269 + 270 +00(b): Ultra Low ( BAT <= 2.50v) 271 + 272 +01(b): Low (2.50v <=BAT <= 2.55v) 273 + 274 +10(b): OK (2.55v <= BAT <=2.65v) 275 + 276 +11(b): Good (BAT >= 2.65v) 277 +)))|(% style="width:136px" %)((( 278 +[[Built-in Humidity>>path:#SHT20_Humidity]] 279 + 280 + 281 +))) 282 + 283 +* **Status & Ext Byte** 284 + 285 +(% style="width:732px" %) 286 +|(% style="width:128px" %)**Bits**|(% style="width:102px" %)**7**|(% style="width:145px" %)**6**|(% style="width:117px" %)**5**|(% style="width:147px" %)**4**|(% style="width:90px" %)**[3:0]** 287 +|(% style="width:128px" %)**Status & Ext**|(% style="width:102px" %)Not Defined|(% style="width:145px" %)Poll Message Flag|(% style="width:117px" %)Sync time OK|(% style="width:147px" %)Unix Time Request|(% style="width:90px" %)((( 288 +Ext: 289 + 290 +0b(1001) 291 +))) 292 + 293 +* Poll Message Flag: 1: This message is a poll message reply, 0: means this is a normal uplink. 294 +* Sync time OK: 1: Set time ok,0: N/A. After time SYNC request is sent, LHT65N will set this bit to 0 until got the time stamp from the application server. 295 +* Unix Time Request:1: Request server downlink Unix time, 0 : N/A. In this mode, LHT65N will set this bit to 1 every 10 days to request a time SYNC. (AT+SYNCMOD to set this) 296 + 297 + 298 +== Show data on Datacake == 299 + 300 +Datacake IoT platform provides a human-friendly interface to show the sensor data, 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: 301 + 302 + 303 +**Step 1**: Be sure that your device is programmed and properly connected to the LoRaWAN network. 304 + 305 +**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. 306 + 307 + 308 +Add Datacake: 309 + 310 +[[image:image-20220523000825-7.png||height="262" width="583"]] 311 + 312 + 313 +Select default key as Access Key: 314 + 315 +[[image:image-20220523000825-8.png||height="453" width="406"]] 316 + 317 + 318 +In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device. 319 + 320 +[[image:image-20220523000825-9.png||height="366" width="392"]] 321 + 322 + 323 + 324 +[[image:image-20220523000825-10.png||height="432" width="762"]] 325 + 326 + 327 + 167 167 == LED Indicator == 168 168 169 169 The LHT65N has a triple color LED which for easy shows different stage.
- image-20220522235639-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +11.3 KB - Content
- image-20220522235639-6.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +3.7 KB - Content
- image-20220523000825-10.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +59.3 KB - Content
- image-20220523000825-7.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +126.2 KB - Content
- image-20220523000825-8.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +27.1 KB - Content
- image-20220523000825-9.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +60.7 KB - Content
- image-20220523001219-11.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +18.8 KB - Content