Milesight UC300 IoT Controller 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 wirings.
- Make sure electronic components do not drop out of the enclosure while opening.
- The device must never be subjected to shocks or impacts.
Declaration of Conformity
UC300 is in conformity with the essential requirements and other relevant provisions of the CE, FCC, and RoHS.
FCC Statement: Any Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment. This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) This device must accept any interference received, including interference that may cause undesired operation.
Note: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
- Reorient or relocate the receiving antenna.
- Increase the separation between the equipment and receiver.
- Connect the equipment into an outlet on a circuit different from that to which the receiver is connected.
- Consult the dealer or an experienced radio/TV technician for help.
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 and Contact Information
Copyright © 2011-2022 Milesight. All rights reserved. All information in this guide is protected by copyright law. Whereby, no organization or individual shall copy or reproduce the whole or part of this user guide by any means without written authorization from Xiamen Milesight IoT Co., Ltd.
For assistance, please contact:
- Milesight technical support:
- Email: iot.support@milesight.com
- Tel: 86-592-5085280
- Fax: 86-592-5023065
- Address: Building C09, Software Park III, Xiamen 361024, China
Revision History
Date | Doc Version | Description |
---|---|---|
Mar. 17, 2022 | V 1.0 | Initial version |
1. Product Introduction
1.1 Overview
UC300 is an IoT controller used for remote control and data acquisition from multiple sensors. It contains different I/O interfaces such as analog inputs, digital inputs, relay outputs, serial ports and so on, which support remote device data transmission and control via LoRaWAN®. Besides, UC300 supports multiple trigger conditions and actions which works autonomously even when the network drops.
1.2 Features
- Easy to connect with diverse wired sensors through DI/DO/AI/PT100/RS232/RS485 interfaces
- Support LoRaWAN® wireless communication
- Multiple triggering conditions and actions
- Embedded watchdog for work stability
- Industrial metal case design with wide operating temperature range
- Compliant with standard LoRaWAN® gateways and network servers
- Quick and easy management with Milesight IoT Cloud solution
2. Hardware Introduction
2.1 Packing List
The package includes:
- 1 × UC300 Device
- 1 × LoRaWAN® Antenna
- 1 × Power Adapter
- 5 × Terminal Blocks
- 1 × DIN Rail Mounting Clip
- 4 × Wall Mounting Kits
- 4 × Fixing Screws
- 1 × Quick Start Guide
- 1 × Warranty Card
If any of the above items is missing or damaged, please contact your sales representative.
2.2 Hardware Overview
The UC300 device features various interfaces and indicators:
- Ports: DC Power Interface, Type-C Console Port, Antenna Connector, PT100, 0-10V, 4-20mA, RS485, RS232.
- Indicators: LED Indicator for system status.
- Buttons: Reset Button (internal).
- Interfaces: Digital Inputs (DI), Digital Outputs (DO).
2.3 Application Wiring
The device supports various wiring configurations for different interfaces:
- Power Supply: Connect to Load.
- Digital Outputs (DO_1, DO_2): Configured with COM, NC (Normally Closed), NO (Normally Open) terminals.
- Digital Inputs (DI_1, DI_2, DI_3, DI_4): Support Wet Contact and Dry Contact configurations, with V+ and V- connections.
- Serial Ports: RS232 (TX, RX, GND) and RS485 (A, B, GND) connections.
- Analog Inputs: 4-20mA (Supply+, Signal-, Signal+) and 0-10V (V+, V-) connections.
- PT100 Inputs: 3-Wire PT100 (GND/A, B) and 2-Wire PT100 (GND/A, B) connections.
RS485 Terminal Resistor:
DIP Switch | Description |
---|---|
1 on 2 off 3 off | Add 120 Ω resistor between A and B |
1 off 2 on 3 off | Add pull-down resistor on B |
1 off 2 off 3 on | Add pull-up resistor on A |
2.4 LED Indicators
LED | Indication | Status | Description |
---|---|---|---|
SYS | System Status | Static On | System works |
Slowly Blinks | Fail to acquire data from data interfaces | ||
Static On | System error | ||
Off | Not join/register to network | ||
ACT | Network Status | Blinks as Requests | Send join network requests |
Blinks Twice | Succeed to join to network | ||
Static On | Succeed to send uplinks | ||
Blinks Twice | Fail to send uplinks | ||
Blinks Twice | Receive downlinks |
2.5 Reset Button
There is a reset button inside the device.
Function | SYS LED | Action |
---|---|---|
Reset | Static Green | Press and hold the reset button for more than 10 seconds. |
Static Green → Rapidly Blinking | Release the button and wait. | |
Off → Static Green | The device resets to factory default. |
2.6 Dimensions (mm)
The device dimensions are approximately 101.8mm (Height) x 70mm (Width) x 22mm (Depth). Mounting holes are also indicated.
3. Hardware Installation
3.1 Antenna Installation
Installation Instructions:
- Rotate the antenna into the antenna connector accordingly.
- The external antenna should be installed vertically always on a site with a good signal.
Note:
- The external antenna should be installed vertically always on a site with a good signal.
- Keep away from metal objects and power lines which may affect the signal.
Antenna Specifications
Milesight provides a 108 mm LoRaWAN antenna for UC300. Specifications are:
Electrical Properties
- Frequency Range: 902~928 MHz
- Impedance: 50 Ω Nominal
- VSWR: 2.2:1 Max.
- Return Loss: 8.5 dB Min.
- Radiation: Omni-directional
- Gain(Peak): 1 dBi
- Polarization: Linear
- Admitted Power: 1W
- Connector: SMA Plug Standard
Physical Characteristics
- Operating Temperature: -10°C ~ 60°C
- Storage Temperature: -10°C ~ 70°C
3.2 Device Installation
UC300 device can be placed on a desktop or mounted to a wall or a DIN rail.
3.2.1 Wall Mounting
- Fix the wall mounting bracket to the device with 2 screws.
- Drill 4 holes on the wall according to the bracket, then fix the wall plugs into the wall.
- Fix the device to the wall plugs with screws. When installation, it's suggested to fix the two screws on the top at first.
3.2.2 DIN Rail Mounting
- Fix the mounting clip to the device with 3 screws.
- Hang the device to the DIN rail. The width of DIN rail is 3.5cm.
4. Operation Guide
4.1 Log in the ToolBox
- Download ToolBox software from Milesight IoT website.
- Power on the UC300 device, then connect it to computer via type-C port.
- Open the ToolBox and select type as “General”, then click password to log in ToolBox. (Default password: 123456)
The ToolBox settings window allows configuration of Type (e.g., Serial port, General), Serial port, Login password, Baud rate, Data bits, Parity bits, and Stop bits.
4. After logging in the ToolBox, you can change device settings.
4.2 LoRaWAN Settings
LoRaWAN settings is used for configuring the transmission parameters in LoRaWAN® network and is only applied to UC300 LoRaWAN® version.
Status Screen: Displays Model (UC300-470M), Serial Number, Device EUI, Firmware Version, Hardware Version, Join Status (e.g., Activate), RSSI/SNR, Channel Mask, Uplink/Downlink Frame-counters, and Device Time.
Basic LoRaWAN Settings: Go to "LoRaWAN Settings -> Basic" to configure join type (OTAA/ABP), App EUI, App Key, Class Type (e.g., Class C), RX2 Date Rate, RX2 Frequency, Spread Factor, Confirmed Mode, Rejoin Mode, and ADR Mode. Default settings can often be used.
Parameters and Descriptions:
Parameters | Description |
---|---|
Device EUI | Unique ID of the device on the label. |
App EUI | Default App EUI is 24E124C0002A0001. |
Application Port | The port used for sending and receiving data (RS232 data excluded), default port is 85. |
Working Mode | Fixed as Class C. |
Join Type | 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. |
Network Session Key | Nwkskey for ABP mode, default is 5572404C696E6B4C6F52613230313823. |
Application Session Key | Appskey for ABP mode, default is 5572404C696E6B4C6F52613230313823. |
RX2 Data Rate | RX2 data rate to receive downlinks. |
RX2 Frequency | RX2 frequency to receive downlinks. Unit: Hz |
Spread Factor | If ADR is disabled, the device will send data via this spread factor. |
Confirmed Mode | If the device does not receive ACK packet from network server, it will resend data 3 times at most. |
Rejoin Mode | Reporting interval ≤ 30 mins: device will send specific amounts of LoRaMAC packets to check connection status every 30 mins; If not receiving response after specific packets, the device will re-join. Reporting interval > 30 mins: device will send specific amounts of LoRaMAC packets every to check connection status every reporting interval; If not receiving response after specific packets, the device will re-join. |
ADR Mode | Allow network server to adjust datarate of the device. |
Note:
- Please contact sales for device EUI list if there are many units.
- Please contact sales if you need random App keys before purchasing.
- Select OTAA mode if you use Milesight IoT Cloud to manage devices.
- Only OTAA mode supports rejoin mode.
4.3 Data Interface Settings
4.3.1 Basic Settings
Configure basic device settings:
- Device ID: Shows the SN of the device.
- Reporting Interval (min): Reporting interval of transmitting data to network server. Default: 20mins. Note: RS232 transmission will not follow the reporting interval.
- LoRa D2D: Enable/disable LoRa D2D feature. See details on chapter 4.5.
- D2D Key: Security key for D2D communication.
- Change Password: Change the password to log in ToolBox.
4.3.2 Digital Input/Pulse Settings
UC300 supports 4 digital inputs. Each input can work as either digital input mode to detect high/low level or pulse counter to record counting values. When working as digital input, UC300 will upload the data according to reporting interval or when status changes.
- Interface Name: DI_1, DI_2, etc.
- Enable: Check to enable the input.
- Interface Type: Select 'Digital Input' or 'Counter'.
- Status: Displays current input status. A 'Fetch' button is available to get the current status.
- Digital Filter: Recommended to enable when pulse period is greater than 250 us.
- Counter Values: Displays the current count. 'Refresh' to get latest values, 'Start' to start/stop counting, 'Clear' to reset to 0.
Note: The counting value will lose if UC300 loses the power.
4.3.3 Digital Output Settings
UC300 supports 2 digital outputs to control the devices.
- Interface Name: DO_1, DO_2.
- Enable: Enable the digital output to control the device and upload changed status.
- When Power is Restored, DO: Option to return to Previous Working State or Turn to Normally Closed/Open.
- Status: Displays current output status. 'Fetch' to get status, 'Switch' to change status.
4.3.4 RS485 Settings
UC300 has one RS485 port for Modbus RTU device connection.
- Connect RS485 device to RS485 port.
- Go to "General -> RS485" to enable RS485 and configure serial port settings. Serial port settings should be the same as the RS485 terminal devices.
Configuration parameters include:
- Enable: Allow the device to collect RS485 data and upload the data.
- Stop Bit: 1 bit/2 bit are available.
- Data Bit: 8 bit is available.
- Parity: None, Odd and Even are available.
- Baud Rate: 1200/2400/4800/9600/19200/38400/57600/115200 are available.
- Execution Interval (ms): The execution interval between each Modbus channel command.
- Max Resp Time (ms): The maximum response time that the UC300 waits for the reply to the command. If it does not get a response after the max response time, it is determined that the command has timed out.
- Max Retry Time (ms): Set the maximum retry times after device fails to read data from RS485 terminal devices.
- Modbus RS485 bridge LoRaWAN: If this mode is enabled, the device will transmit Modbus RTU commands from 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. The Channel Settings interface allows configuring Channel ID, Name, Slave ID, Address, Quantity, Type, Byte Order, Sign, and Value. A 'Fetch' button is available to test data reading.
Note: Do not click “Fetch” frequently since response time to reply is different for every terminal device.
4.3.5 RS232 Settings
UC300 has one RS232 interface for transparent communication. It usually uses different tunnels from other data interfaces to communicate with the server.
Configuration parameters include:
- Enable: Enable RS232 communication.
- Baud Rate: 1200/2400/4800/9600/19200/38400/57600/115200 are available.
- Stop Bit: 1 bit/2 bit are available.
- Data Bit: 8 bit is available.
- Parity: None, Odd and Even are available.
- Packet Length (byte): When the device receives RS232 data up to this length, it will fragment it as a single packet and send to network server.
- Serial Frame Interval (ms): The interval that the device sends out real serial data stored in the buffer area to the public network. The range is 10-65535 milliseconds. Data will be sent out when real serial data size reaches the preset packet size, even though it's within the serial frame interval.
- Port: Send or receive RS232 data from this port; this port should be different from the Application port. Range: 2-84, 86-223.
4.3.6 Analog/PT100 Settings
UC300 has two 4-20mA analog inputs, two 0-10V analog inputs, and two PT100 inputs for analog device connection. After wiring, you can click “Fetch” to check if the value is correct.
- 4-20mA_1: Configure Osh (Offset Scale High), Osl (Offset Scale Low), Unit (mA), and Status.
- 0-10V_1: Configure Osh, Osl, Unit (V), and Status.
- PT100_1: Configure Unit (°C) and Status.
PT100 Note:
- The temperature unit in the reporting package is fixed as °C.
- Please modify the command IF condition threshold settings if you change the temperature unit.
4.4 IF-THEN Command
UC300 supports configuring locally IF-THEN commands to perform actions automatically, even without network connection. One device can be added with up to 16 commands.
1. Go to "Command" page, click “Edit” to add commands.
IF Condition Types:
- Digital Input: Based on DI status (e.g., DI 2 or DI 3 goes active, rising edge-triggered). Can specify if it's 'continued for' a duration. 'Set lockout time' prevents rapid re-triggering.
- Counter: When pulse counter reaches a specific value or any threshold.
- Channel/4-20mA/0-10V/PT100: Based on analog value thresholds, can be 'continued for' a duration. 'Set lockout time' applies.
- Received a message: Triggered when UC300 receives a specific message from the server.
- The Device Restarts: Triggered upon device reboot.
- Received a D2D control command: Triggered by a D2D command. This works with UC300 LoRaWAN® version and D2D feature enabled.
THEN Action Types:
- Send a custom message: Send a custom message to the server.
- Output Trigger: Control Digital Outputs (DO) to be normally open/closed or change status. Can set 'Delay Time' and 'Duration'.
- Restart the Device: Reboot the device.
- Send a D2D control command: Send a D2D control command to another device. Works with D2D feature enabled.
- Send a Modbus command via RS485 interface: Send a Modbus command to RS485 terminal devices. Works with D2D feature enabled.
Example configurations show how to trigger actions based on Digital Input status or received D2D commands.
4.5 Milesight D2D Settings
Milesight D2D protocol is developed by Milesight for transmission among Milesight devices without a gateway. When D2D is enabled, UC300 can act as a D2D controller to send commands or as a D2D agent to receive commands.
- Go to "General -> Basic" page, enable Milesight D2D feature, and define a unique D2D key (same as controller/agent devices).
- Go to "LoRaWAN Settings -> Basic" to configure RX2 datarate and RX2 frequency, which will be used for D2D commands when UC300 acts as a D2D controller.
- Go to "Command" page to set corresponding operations. When DI triggers, UC300 can send control commands to a D2D agent device. The command should be a 2-byte hexadecimal number.
When UC300 receives a D2D command, it can act as a D2D agent to trigger the DO or send Modbus commands to RS485 terminal devices.
4.6 Maintenance
4.6.1 Upgrade
UC300 supports firmware upgrade locally via ToolBox software.
- Download firmware from www.milesight-iot.com to your PC.
- 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.
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.2 Backup
UC300 devices support configuration backup for easy and quick device configuration in bulk. Backup is allowed only for devices with the same model and LoRa frequency band.
- Go to "Maintenance -> Backup and Reset", click “Export” to save current configuration as a JSON format backup file.
- Click "Browse" to select a backup file, then click “Import” to import the configurations.
4.6.3 Reset to Factory Default
Please select one of the following methods to reset the device:
- Via Hardware: Open the case of UC300, hold the reset button for more than 10 seconds until the SYS LED blinks.
- Via ToolBox Software: Go to "Maintenance -> Backup and Reset" to click “Reset”.
5. Device Payload
For UC300 LoRaWAN® version, please refer to the UC300 LoRaWAN Communication Protocol for decoders of Milesight IoT products. Click here for more information.
-END-