DirekTronik LT-22222-L Bedienungsanleitung

LT-22222-L LoRa IO Controller User Manual
last modified by Xiaoling
on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
Table of Contents
1.Introduction ........................................................................................................................................................................... 5
1.1 What is LT Series I/O Controller ................................................................................................................................. 5
1.2 Specifications ................................................................................................................................................................ 5
1.3Features .......................................................................................................................................................................... 6
1.4 Applications ................................................................................................................................................................... 6
1.5Hardware Variants ......................................................................................................................................................... 7
2.Power ON Device ............................................................................................................................................................... 7
3.Operation Mode .................................................................................................................................................................. 7
3.1How it works? ................................................................................................................................................................ 7
3.2 Example to join LoRaWAN network ........................................................................................................................... 8
3.3Uplink Payload ............................................................................................................................................................. 10
3.3.1AT+MOD=1, 2ACI+2AVI ...................................................................................................................................... 10
3.3.2 AT+MOD=2, (Double DI Counting) ..................................................................................................................... 11
3.3.3 AT+MOD=3, Single DI Counting + 2 x ACI ....................................................................................................... 12
3.3.4 AT+MOD=4, Single DI Counting + 1 x Voltage Counting ................................................................................ 13
3.3.5 AT+MOD=5, Single DI Counting + 2 x AVI + 1 x ACI ...................................................................................... 14
3.3.6 AT+ADDMOD=6. (Trigger Mode, Optional) ...................................................................................................... 14
3.3.7 Payload Decoder ................................................................................................................................................... 16
3.4 Configure LT via AT or Downlink .............................................................................................................................. 16
3.4.1 Common Commands ............................................................................................................................................ 16
3.4.2 Sensor related commands ................................................................................................................................... 17
3.5 Integrate with Mydevice ............................................................................................................................................. 26
3.6 Interface Detail ............................................................................................................................................................ 30
3.6.1 Digital Input Port: DI1/DI2 /DI3 ( For LT-33222-L, low active ) ........................................................................ 30
3.6.2 Digital Input Port: DI1/DI2 ( For LT-22222-L) .................................................................................................... 31
3.6.3 Digital Output Port: DO1/DO2 /DO3 ................................................................................................................... 32
3.6.4 Analog Input Interface .......................................................................................................................................... 32
3.6.5 Relay Output .......................................................................................................................................................... 33
3.7 LEDs Indicators ........................................................................................................................................................... 34
4. Use AT Command ........................................................................................................................................................... 35
4.1 Access AT Command ................................................................................................................................................ 35
4.2 Common AT Command Sequence ........................................................................................................................... 37
4.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ....................................................................................... 37
4.2.2 Single-channel ABP mode (Use with LG01/LG02) ........................................................................................... 38
4.2.3 Change to Class A ................................................................................................................................................ 39
5. FAQ .................................................................................................................................................................................... 39
5.1 How to upgrade the image? ...................................................................................................................................... 39
5.4 Can I see counting event in Serial? .......................................................................................................................... 43
7. Order Info .......................................................................................................................................................................... 45
8. Packing Info ...................................................................................................................................................................... 45
9. Support .............................................................................................................................................................................. 46
10. Reference ........................................................................................................................................................................ 46
Page 2 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
Table of Contents:
•1.Introduction
•1.1 What is LT Series I/O Controller
•1.2 Specifications
•1.3Features
•1.4 Applications
•1.5Hardware Variants
•2.Power ON Device
Page 3 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
•3.Operation Mode
•3.1How it works?
•3.2 Example to join LoRaWAN network
•3.3Uplink Payload
•3.3.1AT+MOD=1, 2ACI+2AVI
•3.3.2 AT+MOD=2, (Double DI Counting)
•3.3.3 AT+MOD=3, Single DI Counting + 2 x ACI
•3.3.4 AT+MOD=4, Single DI Counting + 1 x Voltage Counting
•3.3.5 AT+MOD=5, Single DI Counting + 2 x AVI + 1 x ACI
•3.3.6 AT+ADDMOD=6. (Trigger Mode, Optional)
•3.3.7 Payload Decoder
•3.4 Configure LT via AT or Downlink
•3.4.1 Common Commands
•3.4.2 Sensor related commands
•3.4.2.1 Set Transmit Interval
•3.4.2.2 Set Work Mode (AT+MOD)
•3.4.2.3 Poll an uplink
•3.4.2.4 Enable Trigger Mode
•3.4.2.5 Poll trigger settings
•3.4.2.6 Enable / Disable DI1/DI2/DI3 as trigger
•3.4.2.7 Trigger1 – Set DI1 or DI3 as trigger
•3.4.2.8 Trigger2 – Set DI2 as trigger
•3.4.2.9 Trigger – Set AC (current) as trigger
•3.4.2.10 Trigger – Set AV (voltage) as trigger
•3.4.2.11 Trigger – Set minimum interval
•3.4.2.12 DO -- Control Digital Output DO1/DO2/DO3
•3.4.2.13 DO -- Control Digital Output DO1/DO2/DO3 with time control
•3.4.2. 14 Relay -- Control Relay Output RO1/RO2
•3.4.2.15 Relay -- Control Relay Output RO1/RO2 with time control
•3.4.2.16 Counting -- Voltage threshold counting
•3.4.2.17 Counting -- Pre-configure the Count Number
•3.4.2.18 Counting -- Clear Counting
•3.4.2.19 Counting -- Change counting mode save time
•3.4.2.20Reset save RO DO state
•3.4.2.21Encrypted payload
•3.4.2.22Get sensor value
•3.4.2.23 Resets the downlink packet count
•3.4.2.24 When the limit bytes are exceeded, upload in batches
•3.4.2.25Copy downlink to uplink
•3.4.2.26 Query version number and frequency band 、TDC
•3.5 Integrate with Mydevice
•3.6 Interface Detail
•3.6.1 Digital Input Port: DI1/DI2 /DI3 ( For LT-33222-L, low active )
•3.6.2 Digital Input Port: DI1/DI2 ( For LT-22222-L)
•3.6.3 Digital Output Port: DO1/DO2 /DO3
•3.6.4 Analog Input Interface
•3.6.5 Relay Output
•3.7 LEDs Indicators
•4. Use AT Command
•4.1 Access AT Command
•4.2 Common AT Command Sequence
•4.2.1 Multi-channel ABP mode (Use with SX1301/LG308)
•4.2.2 Single-channel ABP mode (Use with LG01/LG02)
•4.2.3 Change to Class A
•5. FAQ
•5.1 How to upgrade the image?
•5.2 How to change the LoRa Frequency Bands/Region?
•5.3 How to set up LT to work with Single Channel Gateway such as LG01/LG02?
•5.4 Can I see counting event in Serial?
•5.5 Can i use point to point communication for LT-22222-L?
Page 4 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
•5.6Why does the relay output become the default and open relay after the lt22222 is powered off?
•5.7 Can i set up LT-22222-L as a NC(Normal Close) Relay?
•5.8Can LT22222-L save RO state?
•6. Trouble Shooting
•6.1 Downlink doesn't work, how to solve it?
•6.2 Have trouble to upload image.
•6.3 Why I can't join TTN in US915 /AU915 bands?
•7. Order Info
•8. Packing Info
•9. Support
•10. Reference
1.Introduction
1.1 What is LT Series I/O Controller
The DraginoLT series I/O Modules are Long Range LoRaWAN I/O Controller. It contains different I/O Interfaces
such as:analog current Input, analog voltage input, relay output, digital input and digital output etc. The
LT I/O Modules are designed to simplify the installation of I/O monitoring.
The LT I/O Controllers allows the user to send data and reach extremely long ranges. It provides ultra-long
range spread spectrum communication and high interference immunity whilst minimizing current consumption. It
targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities,
smartphone detection, building automation, and so on.
The LT I/O Controllers is aiming to provide aneasy and low cost installationby using LoRa wireless technology.
The use environment includes:
1) If user's area has LoRaWAN service coverage, they can just install the I/O controller and configure it to connect
the LoRaWAN provider via wireless.
2) User can set up a LoRaWAN gateway locally and configure the controller to connect to the gateway via wireless.
1.2 Specifications
Hardware System:
• STM32L072xxxx MCU
• SX1276/78 Wireless Chip
Page 5 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
• Power Consumption:
• Idle: 4mA@12v
• 20dB Transmit: 34mA@12v
Interface for Model: LT22222-L:
• 2 x Digital dual direction Input (Detect High/Low signal, Max: 50v, or 220v with optional external resistor)
• 2 x Digital Output (NPN output. Max pull up voltage 36V,450mA)
• 2 x Relay Output (5A@250VAC / 30VDC)
• 2 x 0~20mA Analog Input (res:0.01mA)
• 2 x 0~30V Analog Input (res:0.01v)
• Power Input 7~ 24V DC.
LoRa Spec:
• Frequency Range:
• Band 1 (HF): 862 ~ 1020 Mhz
• Band 2 (LF): 410 ~ 528 Mhz
• 168 dB maximum link budget.
• +20 dBm - 100 mW constant RF output vs.
• +14 dBm high efficiency PA.
• Programmable bit rate up to 300 kbps.
• High sensitivity: down to -148 dBm.
• Bullet-proof front end: IIP3 = -12.5 dBm.
• Excellent blocking immunity.
• Low RX current of 10.3 mA, 200 nA register retention.
• Fully integrated synthesizer with a resolution of 61 Hz.
• FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
• Built-in bit synchronizer for clock recovery.
• Preamble detection.
• 127 dB Dynamic Range RSSI.
• Automatic RF Sense and CAD with ultra-fast AFC.
• Packet engine up to 256 bytes with CRC.
1.3Features
• LoRaWAN Class A & Class C protocol
• Optional Customized LoRa Protocol
• Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
• AT Commands to change parameters
• Remote configure parameters via LoRa Downlink
• Firmware upgradable via program port
• Counting
1.4 Applications
• Smart Buildings & Home Automation
• Logistics and Supply Chain Management
• Smart Metering
• Smart Agriculture
• Smart Cities
• Smart Factory
Page 6 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
1.5Hardware Variants
Model Photo Description
LT22222-L • 2 x Digital Input (Bi-direction)
• 2 x Digital Output
• 2 x Relay Output (5A@250VAC / 30VDC)
• 2 x 0~20mA Analog Input (res:0.01mA)
• 2 x 0~30V Analog Input (res:0.01v)
• 1 x Counting Port
2.Power ON Device
The LT controller can be powered by 7 ~ 24V DC power source. Connect VIN to Power Input V+ and GND to power
input V- to power the LT controller.
PWR will on when device is properly powered.
3.Operation Mode
3.1How it works?
The LT is configured as LoRaWAN OTAA Class C mode by default. It has OTAA keys to join network. To connect
a local LoRaWAN network, user just need to input the OTAA keys in the network server and power on the LT. It will
auto join the network via OTAA. For LT-22222-L, the LED will show the Join status: After power on TX LED will fast
blink 5 times, LT-22222-L will enter working mode and start to JOIN LoRaWAN network. TX LED will be on for 5
seconds after joined in network. When there is message from server, the RX LED will be on for 1 second.
Page 7 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
In case user can't set the OTAA keys in the network server and has to use the existing keys from server. User can
use AT Command to set the keys in the devices.
3.2 Example to join LoRaWAN network
This chapter shows an example for how to join the TTN LoRaWAN Network. Below is the network structure, we use
our LG308 as LoRaWAN gateway here.
The LG308 is already set to connect to TTN network. So what we need to do now is only configure register this
device to TTN:
Step 1: Create a device in TTN with the OTAA keys from LT IO controller.
Each LT is shipped with a sticker with the default device EUI as below:
Input these keys in the LoRaWAN Server portal. Below is TTN screen shot:
Add APP EUI in the application.
Page 8 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
Add APP KEY and DEV EUI
Step 2: Power on LT and it will auto join to the TTN network. After join success, it will start to upload message to
TTN and user can see in the panel.
Page 9 / 46 - last modified by Xiaoling on 2023/01/29 11:26

User Manual for LoRaWAN End Nodes - LT-22222-L LoRa IO Controller User Manual
3.3Uplink Payload
There are five working modes + one interrupt mode on LT for different type application:
•MOD1: (default setting): 2 x ACI + 2AVI + DI + DO + RO
•MOD2: Double DI Counting + DO + RO
•MOD3: Single DI Counting + 2 x ACI + DO + RO
•MOD4: Single DI Counting + 1 x Voltage Counting + DO + RO
•MOD5: Single DI Counting + 2 x AVI + 1 x ACI + DO + RO
•ADDMOD6: Trigger Mode, Optional, used together with MOD1 ~ MOD5
3.3.1AT+MOD=1, 2ACI+2AVI
The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by
default.
DIDORO is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
Page 10 / 46 - last modified by Xiaoling on 2023/01/29 11:26
Inhaltsverzeichnis
Andere DirekTronik Controller Handbücher


















