<
From version < 159.1 >
edited by Bei Jinggeng
on 2024/11/01 14:02
To version < 151.1 >
edited by Dilisi S
on 2024/10/31 22:56
>
Change comment: Uploaded new attachment "tts-mqtt-integration.png", version {1}

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bei
1 +XWiki.pradeeka
Content
... ... @@ -217,7 +217,7 @@
217 217  
218 218  [[image:lt-22222-l-dev-repo-reg-p1.png||height="625" width="1000"]]
219 219  
220 -*
220 +*
221 221  ** Enter the **AppEUI** in the **JoinEUI** field and click **Confirm** button.
222 222  ** Enter the **DevEUI** in the **DevEUI** field.
223 223  ** Enter the **AppKey** in the **AppKey** field.
... ... @@ -229,26 +229,19 @@
229 229  ==== Entering device information manually: ====
230 230  
231 231  * On the **Register end device** page:
232 -** Select the **Enter end device specifies manually** option as the input method.
232 +** Select the **Enter end device specified manually** option.
233 233  ** Select the **Frequency plan** that matches with your device.
234 234  ** Select the **LoRaWAN version**.
235 235  ** Select the **Regional Parameters version**.
236 -** Click **Show advanced activation, LoRaWAN class and cluster settings** link to expand the section.
236 +** Click **Show advanced activation, LoRaWAN class and cluster settings** option.
237 237  ** Select **Over the air activation (OTAA)** option under **Activation mode**
238 238  ** Select **Class C (Continuous)** from the **Additional LoRaWAN class capabilities**.
239 +** Enter **AppEUI** in the **JoinEUI** field and click **Confirm** button.
240 +** Enter **DevEUI** in the **DevEUI** field.
241 +** Enter **AppKey** in the **AppKey** field.
242 +** In the **End device ID** field, enter a unique name within this application for your LT-22222-N.
243 +** Under **After registration**, select the **View registered end device** option.
239 239  
240 -[[image:lt-22222-l-manually-p1.png||height="625" width="1000"]]
241 -
242 -
243 -* Enter **AppEUI** in the **JoinEUI** field and click **Confirm** button.
244 -* Enter **DevEUI** in the **DevEUI** field.
245 -* Enter **AppKey** in the **AppKey** field.
246 -* In the **End device ID** field, enter a unique name within this application for your LT-22222-N.
247 -* Under **After registration**, select the **View registered end device** option.
248 -
249 -[[image:lt-22222-l-manually-p2.png||height="625" width="1000"]]
250 -
251 -
252 252  ==== Joining ====
253 253  
254 254  Click on **Live Data** in the left navigation. Then, power on the device, and it will join The Things Stack Sandbox. You can see the join request, join accept, followed by uplink messages form the device showing in the Live Data panel.
... ... @@ -256,12 +256,12 @@
256 256  [[image:1653298044601-602.png||height="405" width="709"]]
257 257  
258 258  
259 -== 3.3 Uplink Payload formats ==
252 +== 3.3 Uplink Payload ==
260 260  
261 261  
262 -The LT-22222-L has 5 working modes. It also has an interrupt/trigger mode for different type applications that can be used together with all the working modes as an additional feature. The default mode is MOD1 and you can switch between these modes using AT commands.
255 +There are five working modes + one interrupt mode on LT for different type application:
263 263  
264 -* (% style="color:blue" %)**MOD1**(%%): (default mode/factory set): 2 x ACI + 2AVI + DI + DO + RO
257 +* (% style="color:blue" %)**MOD1**(%%): (default setting): 2 x ACI + 2AVI + DI + DO + RO
265 265  
266 266  * (% style="color:blue" %)**MOD2**(%%): Double DI Counting + DO + RO
267 267  
... ... @@ -277,7 +277,7 @@
277 277  
278 278  
279 279  (((
280 -In working mode MOD1, the uplink payload includes a total of 11 bytes. Uplink packets are sent over LoRaWAN FPort=2. By default, one uplink is sent every 10 minutes. (% style="display:none" %)
273 +The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default. (% style="display:none" %)
281 281  
282 282  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
283 283  |(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**
... ... @@ -295,23 +295,23 @@
295 295  )))
296 296  
297 297  (((
298 -(% style="color:#4f81bd" %)*** DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1, for a total of 1 byte ,as shown below
291 +(% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
299 299  
300 300  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
301 -|**bit 7**|**bit 6**|**bit 5**|**bit 4**|**bit 3**|**bit 2**|**bit 1**|**bit 0**
302 -|RO1|RO2|--DI3--|DI2|DI1|--DO3--|DO2|DO1
294 +|**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
295 +|RO1|RO2|DI3|DI2|DI1|DO3|DO2|DO1
303 303  )))
304 304  
305 -* RO is for relay. ROx=1 : closed, ROx=0 always open.
306 -* DI is for digital input. DIx=1: high or floating, DIx=0: low.
307 -* DO is for reverse digital output. DOx=1: output low, DOx=0: high or floating.
298 +* RO is for relay. ROx=1 : close, ROx=0 always open.
299 +* DI is for digital input. DIx=1: high or float, DIx=0: low.
300 +* DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
308 308  
309 -(% style="color:red" %)**Note: DI3 and DO3 bits are not valid for LT-22222-L**
302 +(% style="color:red" %)**Note: DI3 and DO3 bit are not valid for LT-22222-L**
310 310  
311 -For example, if the payload is: [[image:image-20220523175847-2.png]]
304 +For example if payload is: [[image:image-20220523175847-2.png]]
312 312  
313 313  
314 -**The interface values can be calculated as follows:  **
307 +**The value for the interface is:  **
315 315  
316 316  AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V
317 317  
... ... @@ -323,19 +323,23 @@
323 323  
324 324  The last byte 0xAA= 10101010(B) means
325 325  
326 -* [1] RO1 relay channel is closed, and the RO1 LED is ON.
327 -* [0] RO2 relay channel is open, and RO2 LED is OFF.
328 -* [1] DI2 channel is high input and DI2 LED is ON.
329 -* [0] DI1 channel is low input.
319 +* [1] RO1 relay channel is close and the RO1 LED is ON.
320 +* [0] RO2 relay channel is open and RO2 LED is OFF;
321 +
322 +**LT22222-L:**
323 +
324 +* [1] DI2 channel is high input and DI2 LED is ON;
325 +* [0] DI1 channel is low input;
326 +
330 330  * [0] DO3 channel output state
331 -** DO3 is float in case no load between DO3 and V+.
328 +** DO3 is float in case no load between DO3 and V+.;
332 332  ** DO3 is high in case there is load between DO3 and V+.
333 333  ** DO3 LED is off in both case
334 334  * [1] DO2 channel output is low and DO2 LED is ON.
335 335  * [0] DO1 channel output state
336 -** DO1 is float in case no load between DO1 and V+.
333 +** DO1 is float in case no load between DO1 and V+.;
337 337  ** DO1 is high in case there is load between DO1 and V+.
338 -** DO1 LED is off in both case.
335 +** DO1 LED is off in both case
339 339  
340 340  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
341 341  
... ... @@ -1349,71 +1349,54 @@
1349 1349  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173929-8.png?width=1205&height=76&rev=1.1||alt="image-20220823173929-8.png"]]
1350 1350  
1351 1351  
1352 -== 3.5 Integrating with ThingsEye.io ==
1349 +== 3.5 Integrate with Mydevice ==
1353 1353  
1354 -If you are using one of The Things Stack plans, you can integrate ThingsEye.io with your application. Once integrated, ThingsEye.io works as an MQTT client for The Things Stack MQTT broker, allowing it to subscribe to upstream traffic and publish downlink traffic.
1355 1355  
1356 -=== 3.5.1 Configuring The Things Stack Sandbox ===
1352 +Mydevices provides a human friendly interface to show the sensor data, once we have data in TTN, we can use Mydevices to connect to TTN and see the data in Mydevices. Below are the steps:
1357 1357  
1358 -* Go to your Application and select MQTT under Integrations.
1359 -* In the Connection credentials section, under Username, The Thins Stack displays an auto-generated username. You can use it or provide a new one.
1360 -* For the Password, click the Generate new API key button to generate a password. You can see it by clicking on the eye button.
1354 +(((
1355 +(% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the network at this time.
1356 +)))
1361 1361  
1362 -[[image:tts-mqtt-integration.png||height="625" width="1000"]]
1358 +(((
1359 +(% style="color:blue" %)**Step 2**(%%): To configure the Application to forward data to Mydevices you will need to add integration. To add the Mydevices integration, perform the following steps:
1363 1363  
1364 -=== 3.5.2 Configuring ThingsEye.io ===
1361 +
1362 +)))
1365 1365  
1366 -* Login to your thingsEye.io account.
1367 -* Under the Integrations center, click Integrations.
1368 -* Click the Add integration button (the button with the + symbol).
1364 +[[image:image-20220719105525-1.png||height="377" width="677"]]
1369 1369  
1370 -[[image:thingseye-io-step-1.png||height="625" width="1000"]]
1371 1371  
1372 1372  
1373 -On the Add integration page configure the following:
1368 +[[image:image-20220719110247-2.png||height="388" width="683"]]
1374 1374  
1375 -Basic settings:
1376 1376  
1377 -* Select The Things Stack Community from the Integration type list.
1378 -* Enter a suitable name for your integration in the Name box or keep the default name.
1379 -* Click the Next button.
1371 +(% style="color:blue" %)**Step 3**(%%): Create an account or log in Mydevices.
1380 1380  
1381 -[[image:thingseye-io-step-2.png||height="625" width="1000"]]
1373 +(% style="color:blue" %)**Step 4**(%%): Search LT-22222-L(for both LT-22222-L) and add DevEUI.(% style="display:none" %)
1382 1382  
1383 -Uplink Data converter:
1375 +Search under The things network
1384 1384  
1385 -* Click the Create New button if it is not selected by default.
1386 -* Click the JavaScript button.
1387 -* Paste the uplink decoder function into the text area (first, delete the default code). The demo decoder function can be found here.
1388 -* Click the Next button.
1377 +[[image:1653356838789-523.png||height="337" width="740"]]
1389 1389  
1390 -[[image:thingseye-io-step-3.png||height="625" width="1000"]]
1391 1391  
1392 -Downlink Data converter (this is an optional step):
1380 +After added, the sensor data arrive TTN, it will also arrive and show in Mydevices.
1393 1393  
1394 -* Click the Create new button if it is not selected by default.
1395 -* Click the JavaScript button.
1396 -* Paste the downlink decoder function into the text area (first, delete the default code). The demo decoder function can be found here.
1397 -* Click the Next button.
1382 +[[image:image-20220524094909-1.png||height="335" width="729"]]
1398 1398  
1399 -[[image:thingseye-io-step-4.png||height="625" width="1000"]]
1400 1400  
1401 -Connection:
1385 +[[image:image-20220524094909-2.png||height="337" width="729"]]
1402 1402  
1403 -* Choose Region from the Host type.
1404 -* Enter the cluster of your The Things Stack in the Region textbox.
1405 -* Enter the Username and Password in the Credentials section. Use the same username and password you created with the MQTT page of The Things Stack.
1406 -* Click Check connection to test the connection. If the connection is successful, you can see the message saying Connected.
1407 -* Click the Add button.
1408 1408  
1409 -[[image:thingseye-io-step-5.png||height="625" width="1000"]]
1388 +[[image:image-20220524094909-3.png||height="338" width="727"]]
1410 1410  
1411 1411  
1412 -Your integration is added to the integrations list and it will display on the Integrations page.
1391 +[[image:image-20220524094909-4.png||height="339" width="728"]](% style="display:none" %)
1413 1413  
1414 -[[image:thingseye-io-step-6.png||height="625" width="1000"]]
1415 1415  
1394 +[[image:image-20220524094909-5.png||height="341" width="734"]]
1416 1416  
1396 +
1417 1417  == 3.6 Interface Detail ==
1418 1418  
1419 1419  === 3.6.1 Digital Input Port: DI1/DI2 /DI3 ( For LT-33222-L, low active ) ===
lt-22222-l-manually-p1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.pradeeka
Size
... ... @@ -1,1 +1,0 @@
1 -306.6 KB
Content
lt-22222-l-manually-p2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.pradeeka
Size
... ... @@ -1,1 +1,0 @@
1 -279.1 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0