IoT Controller Featuring LoRaWAN® UC100 User Guide
Safety Precautions Milesight will not shoulder responsibility for any loss or damage resulting from not following the instructions of this operating guide. The device must not be remodeled in any way. Do not place the device close to objects with naked flames. Do not place the device where the temperature is below/above the operating range. Power off the device when installing or wiring. Make sure electronic components do not drop out of the enclosure while opening.
FCC Radiation Exposure Statement: This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment. This equipment should be installed and operated with minimum distance 20cm between the radiator& your body. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. Copyright © 2011-2022 Milesight. All rights reserved. All information in this guide is protected by copyright law.
Contents 1. Product Introduction ......................................................................................................................... 5 1.1 Overview ...................................................................................................................................5 1.2 Features ................................................................................................................................... 5 2. Hardware Introduction .....................................
1. Product Introduction 1.1 Overview UC100 is an IoT controller used for remote control and data acquisition from Modbus RS485 devices via LoRaWAN® networks. It can read up to 16 Modbus RTU devices and support Modbus transparent transmission between server and RS485 devices as a Modbus to LoRaWAN® converter. Besides, UC100 supports multiple trigger conditions and actions which can work autonomously even when the network drops. 1.
2.2 Hardware Overview 2.3 LED Patterns and Reset Button The reset button is inside the device. Device Status LED Status System is functioning properly Static On Reboot: hold the reset button inside the device for more than 3 seconds Static On → Slowly Blinks Reset to factory default: hold the reset button inside the device for more than 10 seconds Static On → Quickly Blinks Fail to acquire data from data interfaces Slowly Blinks Device upgrade or system error Static On 2.4 Dimensions (mm) 3.
2. Screw the cover on the mounting positions and install back the device. 4. Operation Guide 4.1 Log in the ToolBox 1. Download ToolBox software from Milesight IoT website. 2. Power on the UC100 device, then connect it to computer via the type-C port. 3. Open the ToolBox and select type as “General”, then click password to log in ToolBox.
4. After logging in the ToolBox, you can change device settings. 4.2 LoRaWAN Settings Go to “LoRaWAN Settings -> Basic” to configure join type, App EUI, App Key and other information. You can also keep all settings by default.
Parameters Device EUI App EUI Application Port Working Mode Join Type Description Unique ID of the device on the label. Default App EUI is 24E124C0002A0001. The port is used for sending and receiving data, the default port is 85. Fixed as Class C. OTAA and ABP modes are available. Application Key Appkey for OTAA mode, default is 5572404C696E6B4C6F52613230313823. Device Address DevAddr for ABP mode, default is the 5th to 12th digits of SN.
Reporting interval ≤ 30 mins: the device will send a specific number of LinkCheckReq MAC packets to the network server every 30 mins to validate connectivity; If there is no response, the device will re-join the network. Rejoin Mode Reporting interval > 30 mins: the device will send a specific number of LinkCheckReq MAC packets to the network server every reporting interval to validate connectivity; If there is no response, the device will re-join the network.
4.3.2 RS485 Settings UC100 has one RS485 port for Modbus RTU device connection. 1. Connect RS485 device to RS485 port. 2. Go to “General -> RS485” to enable RS485 and configure serial port settings. Serial port settings should be the same as the RS485 terminal devices. Parameters Description Stop Bit 1 bit/2 bit are available. Data Bit 8 bit is available. Parity Baud Rate Execution Interval (ms) Max Resp Time (ms) Max Retry Time (ms) None, Odd and Oven are available.
If this mode is enabled, the device will transmit Modbus RTU commands Modbus RS485 bridge LoRaWAN from the network server to RS485 terminal devices transparently and send Modbus reply originally back to the network server. Port: Select from 2-84, 86-223. 3. Click to add Modbus channels, then save configurations. Parameters Channel ID Name Description Select the channel ID you want to configure from 16 channels. Customize the name to identify every Modbus channel.
4.4 IF-THEN Command UC100 supports configuring locally IF-THEN commands to do some actions automatically even without a network connection. One device can be added 16 commands at most. 1. Go to “Command” page, and click “Edit” to add commands. 2. Set an IF condition based on the terminal device data or UC100 device status.
triggered. Is continued for: the updated value should last for some time that is longer than a sole reporting interval. Set lockout time: after the lockout time, UC100 will check if the latest RS485 response matches the condition still. 0 means this IF condition will only be detected once. Received a D2D control This only works with the LoRa D2D feature enabled. See details on chapter 4.5. command 3. Set THEN action according to your request. You can add at most 3 actions in one command.
2. Go to “LoRaWAN Settings -> Basic” to configure the RX2 datarate and RX2 frequency. When UC100 works as LoRa D2D controller, it will send commands as RX2 settings. 3. Go to “Command” page to set corresponding operations. When the RS485 channel triggers, UC100 can work as LoRa D2D controller to send a control command to control the LoRa D2D agent device. The command should be a 2-byte hexadecimal number.
When UC100 receives a LoRa D2D command, it can work as a LoRa D2D agent to reboot the device or send Modbus command to RS485 terminal devices.
4.6 Maintenance 4.6.1 Upgrade UC100 supports upgrade firmware locally via ToolBox software. 1. Download firmware from www.milesight-iot.com to your PC. 2. Go to “Maintenance -> Upgrade”, click “Browse” to import firmware and upgrade the device. You can also click “Up to Date” to search for the latest firmware of the device and upgrade. Note: Any operation on ToolBox is not allowed during upgrading, otherwise the upgrading will be interrupted, or even the device will break down. 4.6.
4.6.3 Reset to Factory Default Please select one of following methods to reset device: Via Hardware: Open the case of UC100, and hold the reset button for more than 10s until the LED blinks. Via ToolBox Software: Go to “Maintenance -> Backup and Reset” to click “Reset”. 5. Device Payload All data are based on the following format (HEX): Channel1 Type1 Data1 Channel2 Type2 Data2 Channel 3 ... 1 Byte 1 Byte N Bytes 1 Byte 1 Byte M Bytes 1 Byte ...
5.1 Device Information UC100 reports basic device information of device every time joining the network. Channel Type Data Size/Byte 01 (Protocol Version) 1 01 => V1 09 (Hardware Version) 2 01 20 => V1.2 0a (Software Version) 2 01 01 => V1.
09 0a 0b 15 (Modbus collecting exception) ff 16 bits Input_int32_with lower 16 bits Hold_int32_with upper 16 bits Hold_int32_with lower 16 bits Channel ID of failed Modbus collection. 1 Note: Channel ID can be configured in ToolBox. Channel ID Description 00 RS485 (Modbus Master) Channel 1 01 RS485 (Modbus Master) Channel 2 02 RS485 (Modbus Master) Channel 3 ... ...
DCBA 536876288 (0x20001500) 00 15 00 20 (ABCD) Holding/Input Register (INT32 with upper 16 bits) / 21 (0x15) 15 00 00 00 Holding/Input Register (INT32 with lower 16 bits) / 32 (0x20) 20 00 00 00 If UC100 fails to connect the Modbus data, it will send an error message. ff 15 00 Channel Type ff Value 15 (Poll Failed) 00 => Channel 1 5.3 Downlink Command UC100 supports downlink commands to configure the device. The application port is 85 by default.