<
From version < 158.1 >
edited by Dilisi S
on 2024/11/01 05:19
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
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 9 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,23 +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.
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;
328 328  
329 329  **LT22222-L:**
330 330  
331 -* [1] DI2 channel is high input and DI2 LED is ON.
332 -* [0] DI1 channel is low input.
324 +* [1] DI2 channel is high input and DI2 LED is ON;
325 +* [0] DI1 channel is low input;
333 333  
334 334  * [0] DO3 channel output state
335 -** DO3 is float in case no load between DO3 and V+.
328 +** DO3 is float in case no load between DO3 and V+.;
336 336  ** DO3 is high in case there is load between DO3 and V+.
337 337  ** DO3 LED is off in both case
338 338  * [1] DO2 channel output is low and DO2 LED is ON.
339 339  * [0] DO1 channel output state
340 -** DO1 is float in case no load between DO1 and V+.
333 +** DO1 is float in case no load between DO1 and V+.;
341 341  ** DO1 is high in case there is load between DO1 and V+.
342 -** DO1 LED is off in both case.
335 +** DO1 LED is off in both case
343 343  
344 344  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
345 345  
... ... @@ -1353,71 +1353,54 @@
1353 1353  [[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"]]
1354 1354  
1355 1355  
1356 -== 3.5 Integrating with ThingsEye.io ==
1349 +== 3.5 Integrate with Mydevice ==
1357 1357  
1358 -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.
1359 1359  
1360 -=== 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:
1361 1361  
1362 -* Go to your Application and select MQTT under Integrations.
1363 -* In the Connection credentials section, under Username, The Thins Stack displays an auto-generated username. You can use it or provide a new one.
1364 -* 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 +)))
1365 1365  
1366 -[[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:
1367 1367  
1368 -=== 3.5.2 Configuring ThingsEye.io ===
1361 +
1362 +)))
1369 1369  
1370 -* Login to your thingsEye.io account.
1371 -* Under the Integrations center, click Integrations.
1372 -* Click the Add integration button (the button with the + symbol).
1364 +[[image:image-20220719105525-1.png||height="377" width="677"]]
1373 1373  
1374 -[[image:thingseye-io-step-1.png||height="625" width="1000"]]
1375 1375  
1376 1376  
1377 -On the Add integration page configure the following:
1368 +[[image:image-20220719110247-2.png||height="388" width="683"]]
1378 1378  
1379 -Basic settings:
1380 1380  
1381 -* Select The Things Stack Community from the Integration type list.
1382 -* Enter a suitable name for your integration in the Name box or keep the default name.
1383 -* Click the Next button.
1371 +(% style="color:blue" %)**Step 3**(%%): Create an account or log in Mydevices.
1384 1384  
1385 -[[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" %)
1386 1386  
1387 -Uplink Data converter:
1375 +Search under The things network
1388 1388  
1389 -* Click the Create New button if it is not selected by default.
1390 -* Click the JavaScript button.
1391 -* Paste the uplink decoder function into the text area (first, delete the default code). The demo decoder function can be found here.
1392 -* Click the Next button.
1377 +[[image:1653356838789-523.png||height="337" width="740"]]
1393 1393  
1394 -[[image:thingseye-io-step-3.png||height="625" width="1000"]]
1395 1395  
1396 -Downlink Data converter (this is an optional step):
1380 +After added, the sensor data arrive TTN, it will also arrive and show in Mydevices.
1397 1397  
1398 -* Click the Create new button if it is not selected by default.
1399 -* Click the JavaScript button.
1400 -* Paste the downlink decoder function into the text area (first, delete the default code). The demo decoder function can be found here.
1401 -* Click the Next button.
1382 +[[image:image-20220524094909-1.png||height="335" width="729"]]
1402 1402  
1403 -[[image:thingseye-io-step-4.png||height="625" width="1000"]]
1404 1404  
1405 -Connection:
1385 +[[image:image-20220524094909-2.png||height="337" width="729"]]
1406 1406  
1407 -* Choose Region from the Host type.
1408 -* Enter the cluster of your The Things Stack in the Region textbox.
1409 -* 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.
1410 -* Click Check connection to test the connection. If the connection is successful, you can see the message saying Connected.
1411 -* Click the Add button.
1412 1412  
1413 -[[image:thingseye-io-step-5.png||height="625" width="1000"]]
1388 +[[image:image-20220524094909-3.png||height="338" width="727"]]
1414 1414  
1415 1415  
1416 -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" %)
1417 1417  
1418 -[[image:thingseye-io-step-6.png||height="625" width="1000"]]
1419 1419  
1394 +[[image:image-20220524094909-5.png||height="341" width="734"]]
1420 1420  
1396 +
1421 1421  == 3.6 Interface Detail ==
1422 1422  
1423 1423  === 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