Changes for page LT-22222-L -- LoRa I/O Controller User Manual
Last modified by Saxer Lin on 2025/04/15 17:24
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -27,7 +27,7 @@ 27 27 **This manual is also applicable to the LT-33222-L.** 28 28 {{/info}} 29 29 30 -The Dragino (% style="color:blue" %)**LT-22222-L I/O Controller**(%%) is an advanced LoRaWAN device designed to provide seamless wireless long-range connectivity with various I/O options, including analog current and voltage inputs, digital inputs and outputs, and relay outputs. 30 +The Dragino (% style="color:blue" %)**LT-22222-L I/O Controller**(%%) is an advanced LoRaWAN end device designed to provide seamless wireless long-range connectivity with various I/O options, including analog current and voltage inputs, digital inputs and outputs, and relay outputs. 31 31 32 32 The LT-22222-L I/O Controller simplifies and enhances I/O monitoring and controlling. It is ideal for professional applications in wireless sensor networks, including irrigation systems, smart metering, smart cities, building automation, and more. These controllers are designed for easy, cost-effective deployment using LoRa wireless technology. 33 33 ))) ... ... @@ -40,7 +40,7 @@ 40 40 ((( 41 41 You can connect the LT-22222-L I/O Controller to a LoRaWAN network service provider in several ways: 42 42 43 -* If there is public LoRaWAN network coverage in the area where you plan to install the device (e.g., The Things Network), you can select a network and register the LT-22222-L I/O controller with it. 43 +* If there is public LoRaWAN network coverage in the area where you plan to install the device (e.g., The Things Stack Community Network), you can select a network and register the LT-22222-L I/O controller with it. 44 44 * If there is no public LoRaWAN coverage in your area, you can set up a LoRaWAN gateway, or multiple gateways, and connect them to a LoRaWAN network server to create adequate coverage. Then, register the LT-22222-L I/O controller with this network. 45 45 * Setup your own private LoRaWAN network. 46 46 ... ... @@ -50,11 +50,14 @@ 50 50 ))) 51 51 52 52 ((( 53 -[[image:1653295757274-912.png]] 54 - 55 55 54 + 55 +The network diagram below shows how the LT-22222-L is connected to a typical LoRaWAN network. 56 56 ))) 57 57 58 +(% class="wikigeneratedid" %) 59 +[[image:lorawan-nw.jpg||height="354" width="900"]] 60 + 58 58 == 1.2 Specifications == 59 59 60 60 (% style="color:#037691" %)**Hardware System:** ... ... @@ -120,7 +120,7 @@ 120 120 (% style="width:524px" %) 121 121 |(% style="width:94px" %)**Model**|(% style="width:98px" %)**Photo**|(% style="width:329px" %)**Description** 122 122 |(% style="width:94px" %)**LT33222-L**|(% style="width:98px" %)((( 123 - [[image:/xwiki/bin/downloadrev/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/WebHome/image-20230424115112-1.png?rev=1.1&width=58&height=106||alt="image-20230424115112-1.png"height="106" width="58"]]126 + 124 124 )))|(% style="width:329px" %)((( 125 125 * 2 x Digital Input (Bi-direction) 126 126 * 2 x Digital Output ... ... @@ -130,8 +130,6 @@ 130 130 * 1 x Counting Port 131 131 ))) 132 132 133 - 134 - 135 135 == 2. Assembling the device == 136 136 137 137 == 2.1 Connecting the antenna == ... ... @@ -172,14 +172,12 @@ 172 172 |(% style="width:296px" %)DO2|(% style="width:334px" %)Digital Output 2 173 173 |(% style="width:296px" %)DO1|(% style="width:334px" %)Digital Output 1 174 174 175 -== 2.3 Powering thedevice ==176 +== 2.3 Connecting LT-22222-L to a Power Source == 176 176 177 -The LT-22222-L I/O Controller can be powered by a **7–24V DC** power source. Connect your power supply’s positive wire to the VIN and the negative wire to the GND screw terminals. The power indicator **(PWR) LED** will turn on when the device is properly powered. 178 +The LT-22222-L I/O Controller can be powered by a **7–24V DC** power source. Connect your power supply’s **positive wire** to the **VIN** and the **negative wire** to the **GND** screw terminals. The power indicator **(PWR) LED** will turn on when the device is properly powered. 178 178 179 -Once powered, the **TX LED** will **fast-blink 5 times** which means the LT-22222-L will enter the **work mode** and start to **join** The Things Stack. The **TX LED** will be on for **5 seconds** after joining the network. When there is a **downlink** message from the server, the **RX LED** will be on for **1 second**. When the device is sending an uplink message to the server, the **TX LED** will be on for **1 second**. See also LED status. 180 - 181 181 {{warning}} 182 -We recommend that you power on the LT-22222-L after configuring its registration information with a LoRaWAN network server. Otherwise, the device will continuously send join-request messages to attempt to join a LoRaWAN network but will fail. 181 +**We recommend that you power on the LT-22222-L after configuring its registration information with a LoRaWAN network server. Otherwise, the device will continuously send join-request messages to attempt to join a LoRaWAN network but will fail.** 183 183 {{/warning}} 184 184 185 185 ... ... @@ -186,37 +186,49 @@ 186 186 [[image:1653297104069-180.png]] 187 187 188 188 189 -= 3. Registering with a LoRaWAN Network Server = 188 += 3. Registering LT-22222-L with a LoRaWAN Network Server = 190 190 191 - By default, the LT-22222-Lisconfigured to operate in LoRaWAN ClassC mode. ItsupportsOTAA (Over-the-Air Activation),themostsecuremethodforactivating a devicewith a LoRaWANnetworkserver.TheLT-22222-Lcomeswithdeviceregistrationinformation that allowsyou to registeritwith a LoRaWANnetwork,enabling the deviceto performOTAA activation with thenetworkserverupon initialpower-upand after any subsequent reboots.190 +The LT-22222-L supports both OTAA (Over-the-Air Activation) and ABP (Activation By Personalization) methods to activate with a LoRaWAN Network Server. However, OTAA is the most secure method for activating a device with a LoRaWAN Network Server. OTAA regenerates session keys upon initial registration and regenerates new session keys after any subsequent reboots. By default, the LT-22222-L is configured to operate in LoRaWAN Class C mode. 192 192 193 -After powering on, the **TX LED** will **fast-blink 5 times** which means the LT-22222-L will enter the **work mode** and start to **join** the LoRaWAN network. The **TX LED** will be on for **5 seconds** after joining the network. When there is a **downlink** message from the server, the **RX LED** will be on for **1 second**. When the device is sending an uplink message to the server, the **TX LED** will be on for **1 second**. See also LED status. 194 194 195 -In case you can't set the root key and other identifiers in the network server and must use them from the server, you can use [[AT Commands>>||anchor="H4.UseATCommand"]] to configure them on the device. 196 - 197 -The network diagram below shows how the LT-22222-L is connected to a typical LoRaWAN network. 198 - 199 -[[image:image-20220523172350-1.png||height="266" width="864"]] 200 - 201 201 === 3.2.1 Prerequisites === 202 202 203 - Makesureyou have thedevice registration information such as DevEUI, AppEUI, and AppKeywith you. The registration information can be found on a sticker that can be found inside the package. Please keep the **registration information** sticker in a safe place for future reference.195 +The LT-22222-L comes with device registration information such as DevEUI, AppEUI, and AppKey that allows you to register it with a LoRaWAN network. These registration information can be found on a sticker that can be found inside the package. Please keep the **registration information** sticker in a safe place for future reference. 204 204 205 205 [[image:image-20230425173427-2.png||height="246" width="530"]] 206 206 199 +{{info}} 200 +In case you can't set the root key and other identifiers in the network server and must use them from the server, you can use [[AT Commands>>||anchor="H4.UseATCommand"]] to configure them on the device. 201 +{{/info}} 202 + 207 207 The following subsections explain how to register the LT-22222-L with different LoRaWAN network server providers. 208 208 209 -=== 3.2.2 The Things Stack Sandbox (TTSS)===205 +=== 3.2.2 The Things Stack === 210 210 207 +This section guides you through how to register your LT-22222-L with The Things Stack Sandbox. 208 + 209 +{{info}} 211 211 The Things Stack Sandbox was formally called The Things Stack Community Edition. 211 +{{/info}} 212 212 213 -* Log in to your [[The Things Stack Sandbox>>https://eu1.cloud.thethings.network]] account. 214 -* Create an application with The Things Stack if you do not have one yet. 215 -* Go to your application page and click on the **End devices** in the left menu. 213 + 214 +The network diagram below illustrates the connection between the LT-22222-L and The Things Stack, as well as how the data can be integrated with the ThingsEye IoT platform. 215 + 216 +[[image:dragino-ttn-te.jpg]] 217 + 218 + 219 + 220 +==== 3.2.2.1 Setting up ==== 221 + 222 +* Sign up for a free account with [[The Things Stack Sandbox>>https://eu1.cloud.thethings.network]] if you do not have one yet. 223 +* Log in to your The Things Stack Sandbox account. 224 +* Create an **application** with The Things Stack if you do not have one yet (E.g., dragino-docs). 225 +* Go to your application's page and click on the **End devices** in the left menu. 216 216 * On the End devices page, click on **+ Register end device**. Two registration options are available: 217 217 218 -==== 3.2.2.1 Using the LoRaWAN Device Repository ==== 219 219 229 +==== 3.2.2.2 Using the LoRaWAN Device Repository ==== 230 + 220 220 * On the **Register end device** page: 221 221 ** Select the option **Select the end device in the LoRaWAN Device Repository **under **Input method**. 222 222 ** Select the **End device brand**, **Model**, **Hardware version**, **Firmware version**, and **Profile (Region)** from the respective dropdown lists. ... ... @@ -241,7 +241,7 @@ 241 241 242 242 ==== ==== 243 243 244 -==== 3.2.2. 2Adding device manually ====255 +==== 3.2.2.3 Adding device manually ==== 245 245 246 246 * On the **Register end device** page: 247 247 ** Select the option **Enter end device specifies manually** under **Input method**. ... ... @@ -256,7 +256,7 @@ 256 256 257 257 258 258 * Register end device page continued... 259 -** Enter the **AppEUI** in the **JoinEUI** field and click the **Confirm** button. If The Things Stack accepts the JoinEUI you provided, it will display the message 'This end device can be registered on the network' 270 +** Enter the **AppEUI** in the **JoinEUI** field and click the **Confirm** button. If The Things Stack accepts the JoinEUI you provided, it will display the message '//**This end device can be registered on the network**//' 260 260 ** In the **DevEUI** field, enter the **DevEUI**. 261 261 ** In the **AppKey** field, enter the **AppKey**. 262 262 ** In the **End device ID** field, enter a unique name for your LT-22222-N within this application. ... ... @@ -272,18 +272,21 @@ 272 272 [[image:lt-22222-device-overview.png||height="625" width="1000"]] 273 273 274 274 275 -==== 3.2.2. 3Joining ====286 +==== 3.2.2.4 Joining ==== 276 276 277 277 On the Device overview page, click on **Live data** tab. The Live data panel for your device will display. 278 278 279 -Now power on your LT-22222-L. Itwill beginjoiningThe Things Stack. In the **Live data** panel, you can see the **join-request** and **join-accept** messages exchanged between the device and the network server.Once successfully joined, the device will send its first **uplink data message** to the application it belongs to (in this example, **dragino-docs**).290 +Now power on your LT-22222-L. The **TX LED** will **fast-blink 5 times** which means the LT-22222-L will enter the **work mode** and start to **join** The Things Stack network server. The **TX LED** will be on for **5 seconds** after joining the network. In the **Live data** panel, you can see the **join-request** and **join-accept** messages exchanged between the device and the network server. 280 280 281 281 282 282 [[image:lt-22222-join-network.png||height="625" width="1000"]] 283 283 284 284 285 - Bydefault,you will receive an uplinkdata messagefrom the device every 10 minutes.296 +==== 3.2.2.5 Uplinks ==== 286 286 298 + 299 +After successfully joining, the device will send its first **uplink data message** to the application it belongs to (in this example, **dragino-docs**). When the LT-22222-L sends an uplink message to the server, the **TX LED** turns on for **1 second**. By default, you will receive an uplink data message from the device every 10 minutes. 300 + 287 287 Click on one of a **Forward uplink data messages **to see its payload content. The payload content is encapsulated within the decode_payload {} JSON object. 288 288 289 289 [[image:lt-22222-ul-payload-decoded.png]] ... ... @@ -298,6 +298,11 @@ 298 298 [[image:lt-22222-ul-payload-fmt.png||height="686" width="1000"]] 299 299 300 300 315 +==== 3.2.2.6 Downlinks ==== 316 + 317 +When the LT-22222-L receives a downlink message from the server, the **RX LED** turns on for **1 second**. 318 + 319 + 301 301 == 3.3 Working Modes and Uplink Payload formats == 302 302 303 303 ... ... @@ -1691,7 +1691,34 @@ 1691 1691 ))) 1692 1692 1693 1693 1713 +(% style="color:#037691" %)**AT Command** 1694 1694 1715 +(% border="2" style="width:500px" %) 1716 +|(% style="width:124px" %)**Command**|(% style="width:374px" %)AT+COUTIME=<time> 1717 +|(% style="width:124px" %)**Response**|(% style="width:374px" %) 1718 +|(% style="width:124px" %)**Parameters**|(% style="width:374px" %)time : seconds (0 to 16777215) 1719 +|(% style="width:124px" %)**Example**|(% style="width:374px" %)((( 1720 +AT+COUTIME=60 1721 + 1722 +Sets the device to save its counting results to the memory every 60 seconds. 1723 +))) 1724 + 1725 +(% style="color:#037691" %)**Downlink Payload** 1726 + 1727 +(% border="2" style="width:500px" %) 1728 +|(% style="width:123px" %)**Payload**|(% style="width:375px" %)<prefix><time> 1729 +|(% style="width:123px" %)**Parameters**|(% style="width:375px" %)((( 1730 +prefix : A7 1731 + 1732 +time : seconds, 3 bytes in hexadecimal 1733 +))) 1734 +|(% style="width:123px" %)**Example**|(% style="width:375px" %)((( 1735 +A7 **00 00 3C** 1736 + 1737 +Sets the device to save its counting results to the memory every 60 seconds. 1738 +))) 1739 + 1740 + 1695 1695 ==== 3.4.2.20 Reset save RO DO state ==== 1696 1696 1697 1697 This feature allows you to reset the saved relay output (RO) and digital output (DO) states when the device joins the network. By configuring this setting, you can control whether the device should retain or reset the relay states after a reset and rejoin to the network. ... ... @@ -1708,7 +1708,49 @@ 1708 1708 (% style="color:blue" %)**0x AD aa ** (%%)~/~/ same as AT+RODORET =aa 1709 1709 1710 1710 1757 +(% border="2" style="width:500px" %) 1758 +|(% style="width:127px" %)**Command**|(% style="width:371px" %)AT+RODORESET=<state> 1759 +|(% style="width:127px" %)**Response**|(% style="width:371px" %) 1760 +|(% style="width:127px" %)**Parameters**|(% style="width:371px" %)((( 1761 +state : 1711 1711 1763 +0 : RODO will close when the device joins the network. (default) 1764 + 1765 +1: After the device is reset, the previously saved RODO state (limited to MOD2 to MOD5) is read, and it will not change when the device reconnects to the network. 1766 +))) 1767 +|(% style="width:127px" %)**Example**|(% style="width:371px" %)((( 1768 +(% style="color:blue" %)**AT+RODORESET=1 ** 1769 + 1770 +RODO will close when the device joins the network. (default) 1771 + 1772 +(% style="color:blue" %)**AT+RODORESET=0 ** 1773 + 1774 +After the device is reset, the previously saved RODO state (limited to MOD2 to MOD5) is read, and it will not change when the device reconnects to the network. 1775 +))) 1776 + 1777 + 1778 +(% border="2" style="width:500px" %) 1779 +|(% style="width:127px" %)**Payload**|(% style="width:371px" %)<prefix><state> 1780 +|(% style="width:127px" %)**Parameters**|(% style="width:371px" %)((( 1781 +prefix : AD 1782 + 1783 +state : 1784 + 1785 +0 : RODO will close when the device joins the network. (default), represents as 1 byte in hexadecimal. 1786 + 1787 +1: After the device is reset, the previously saved RODO state (limited to MOD2 to MOD5) is read, and it will not change when the device reconnects to the network. - represents as 1 byte in hexadecimal 1788 +))) 1789 +|(% style="width:127px" %)**Example**|(% style="width:371px" %)((( 1790 +AD **01** 1791 + 1792 +RODO will close when the device joins the network. (default) 1793 + 1794 +AD **00** 1795 + 1796 +After the device is reset, the previously saved RODO state (limited to MOD2 to MOD5) is read, and it will not change when the device reconnects to the network. 1797 +))) 1798 + 1799 + 1712 1712 ==== 3.4.2.21 Encrypted payload ==== 1713 1713 1714 1714 This feature allows you to configure whether the device should upload data in an encrypted format or in plaintext. By default, the device encrypts the payload before uploading. You can toggle this setting to either upload encrypted data or transmit it without encryption.