<
From version < 28.1 >
edited by Edwin Chen
on 2022/05/22 23:29
To version < 47.1 >
edited by Edwin Chen
on 2022/05/23 00:11
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -82,6 +82,249 @@
82 82  |**Pressing ACT for more than 3s**|Active Device|green led will fast blink 5 times, LHT65N will enter working mode and start to JOIN LoRaWAN network. green led will solid turn on for 5 seconds after join in network.
83 83  |**Fast press ACT 5 times**|Deactivate Device|red led will solid on for 5 seconds. This means LHT65N is in Deep Sleep Mode.
84 84  
85 +== Example to join LoRaWAN network ==
86 +
87 +(% class="wikigeneratedid" %)
88 +This section shows an example of how to join the TTN V3 LoRaWAN IoT server. Use with other LoRaWAN IoT servers is of a similar procedure.
89 +
90 +(% class="wikigeneratedid" %)
91 +[[image:image-20220522232442-1.png||height="387" width="648"]]
92 +
93 +Assume the LPS8N is already set to connect to [[TTN V3 network>>url:https://eu1.cloud.thethings.network]], So it provides network coverage for LHT65N. Next we need to add the LHT65N device in TTN V3:
94 +
95 +
96 +=== **Step 1**: Create Device n TTN ===
97 +
98 +Create a device in TTN V3 with the OTAA keys from LHT65N.
99 +
100 +Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below:
101 +
102 +[[image:image-20220522232812-2.png||height="219" width="279"]]
103 +
104 +User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot:
105 +
106 +Add APP EUI in the application.
107 +
108 +[[image:image-20220522232916-3.png]]
109 +
110 +
111 +[[image:image-20220522232932-4.png]]
112 +
113 +
114 +[[image:image-20220522232954-5.png]]
115 +
116 +Note: LHT65N use same payload as LHT65.
117 +
118 +[[image:image-20220522233026-6.png]]
119 +
120 +
121 +Input APP EUI,  APP KEY and DEV EUI:
122 +
123 +[[image:image-20220522233118-7.png]]
124 +
125 +
126 +=== Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds. ===
127 +
128 +Use ACT button to activate LHT65N 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.
129 +
130 +[[image:image-20220522233300-8.png]]
131 +
132 +
133 +== Uplink Payload: ==
134 +
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 +
137 +After each uplink, the (% class="mark" %)BLUE LED(%%) will blink once.
138 +
139 +
140 +(% style="width:572px" %)
141 +|(% style="width:106px" %)**Size(bytes)**|(% style="width:71px" %)**2**|(% style="width:128px" %)**2**|(% style="width:103px" %)**2**|(% style="width:72px" %)**1**|(% style="width:89px" %)**4**
142 +|(% style="width:106px" %)**Value**|(% style="width:71px" %)[[BAT>>path:#Battery]]|(% style="width:128px" %)(((
143 +[[Built-In>>path:#SHT20_Temperature]]
144 +
145 +[[Temperature>>path:#SHT20_Temperature]]
146 +)))|(% style="width:103px" %)(((
147 +[[Built-in>>path:#SHT20_Humidity]]
148 +
149 +[[Humidity>>path:#SHT20_Humidity]]
150 +)))|(% style="width:72px" %)[[Ext>>path:#Extension_Sensor]] #|(% style="width:89px" %)[[Ext value>>path:#Extension_sensor_value]]
151 +
152 +* The First 6 bytes: has fix meanings for every LHT65N.
153 +* The 7th byte (EXT #): defines the external sensor model.
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 +
156 +=== Decoder in TTN V3 ===
157 +
158 +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.
159 +
160 +Below is the position to put the decoder and LHT65N decoder can be download from here:
161 +
162 +[[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0]]
163 +
164 +[[image:image-20220522234118-10.png]]
165 +
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 +
85 85  == LED Indicator ==
86 86  
87 87  The LHT65N has a triple color LED which for easy shows different stage.
image-20220522233026-6.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +48.0 KB
Content
image-20220522233118-7.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +57.6 KB
Content
image-20220522233300-8.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +53.9 KB
Content
image-20220522234038-9.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +38.0 KB
Content
image-20220522234118-10.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +66.7 KB
Content
image-20220522235639-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +43.4 KB
Content
image-20220522235639-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +43.4 KB
Content
image-20220522235639-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +3.7 KB
Content
image-20220522235639-4.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Edwin
Size
... ... @@ -1,0 +1,1 @@
1 +43.4 KB
Content
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
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0