Milesight UC300 IoT Controller Cellular User Guide

September 23, 2024
Milesight

Milesight UC300 IoT Controller Cellular

Milesight-UC300-IoT-Controller-Cellular-PRODUCT

Specifications

  • Product Name: UC300 IoT Controller (Cellular)
  • Manufacturer: Xiamen Milesight IoT Co., Ltd.
  • Wireless Communication: 3G/4G
  • Operating Temperature Range: Wide
  • Network Protocols: Multiple supported

FAQs

  • Q: How do I connect UC300 to a sensor?
    • A: You can connect UC300 to a sensor using the appropriate interface such as DI/DO/AI/PT100/RS232/RS485 based on the sensor’s requirements. Refer to the wiring examples in the user manual for detailed instructions.
  • Q: What should I do if the system shows a system error LED indication?
    • A: If the system error LED is static, please check the connections and power supply. If the issue persists, contact Milesight technical support for assistance.
  • Q: Can UC300 operate without network connectivity?
    • A: Yes, UC300 can operate autonomously with predefined trigger conditions and actions even when the network drops.

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 conforms with the essential requirements and other relevant provisions of the CE, FCC, and RoHS.

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
June 30, 2023 V 1.1 1.     Add cellular IMS options;

2.     Support to set initial counting values;

3.     Support to add variables on custom server messages;

4.     Add RS485 transparent communication.

Product Introduction

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 3G/4G networks or SMS. Besides, UC300 supports multiple trigger conditions and actions that work autonomously even when the network drops.

Features

  • Easy to connect with diverse wired sensors through DI/DO/AI/PT100/RS232/RS485 interfaces
  • Support 3G/4G wireless communication
  • Multiple triggering conditions and actions
  • Embedded watchdog for work stability
  • Industrial metal case design with wide operating temperature range
  • Support multiple network protocols to be compatible with IoT platforms
  • Quick and easy management with Milesight IoT Cloud solution

Hardware Introduction

Packing List

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(3\)

If any of the above items is missing or damaged, please contact your sales representative.

Hardware Overview

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(5\)

Wiring Examples

  1. Digital input wiring:
    • Dry Contact:
    • Wet Contact:
  2. Relay output wiring:
  3. 4-20mA wiring:
    • 3-Wire:
    • 2-Wire:
  4. 0-10V wiring:
  5. PT100 wiring:
    • 3-Wire:
    • 2-Wire:
  6. RS232/RS485 wiring:Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(14\)

RS485 Terminal Resistor1:

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

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
ACT Network Status Off Register to a cellular network
Blinks as Requests Send registering network requests
Blinks Twice→Static On Succeed in registering to the network
Blinks Once Succeed to send uplinks
Blinks Twice Fail to send uplinks
Blinks Twice Receive downlinks

Reset Button

  • There is a reset button inside the device.
  • Add resistors to avoid data-corrupting reflections if the RS485 data rate is high or the cable length is long.
Function Description
SYS LED Action
Reset Static Green
Static Green →Rapidly Blinking Release the button and wait.
Off → Static Green The device resets to factory default.

Dimensions (mm)

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(15\)

Hardware Installation

  • SIM Installation
    • Release the screws and cover on the antenna connector, and insert the SIM card into the slot. If you want to take out the SIM card, press it to make it pop out.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(16\)
  • Antenna Installation
    • Rotate the antenna into the antenna connector accordingly.
    • The external antenna should be installed vertically always on a site with a good signal.
  • Device Installation
    • UC300 device can be placed on a desktop or mounted to a wall or a DIN rail.

Wall Mounting

  1. Fix the wall mounting bracket to the device with 2 screws.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(18\)
  2. Drill 4 holes in the wall according to the bracket, then fix the wall plugs into the wall.
  3. Fix the device to the wall plugs with screws. When installation, it’s suggested to fix the two screws on the top first.

DIN Rail Mounting

  1. Fix the mounting clip to the device with 3 screws.
    • You can also try below installation methods:
  2. Hang the device on the DIN rail. The width of the DIN rail is 3.5cm.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(22\)

Operation Guide

Log in to the ToolBox

  1. Download ToolBox software from the Milesight IoT website.
  2. Power on the UC300 device, then connect it to the computer via the type-C port.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(23\)
  3. Open the ToolBox and select type as General, then click password to log in to ToolBox. (Default password: 123456)
  4. After logging in to the ToolBox, you can change device settings.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(25\)

Communication Settings

  • Cellular Settings
    • Cellular settings are used for configuring the transmission parameters in a cellular network. Go to General > Basic to configure basic cellular settings.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(26\)
Parameters Description
Network Type Select from Auto, 4G Only, 3G Only, and 2G Only. Auto: connect

to the network with the strongest signal automatically. 4G Only: connect to 4G network only. And so on.
IMS| “Enable VoLTE”, “Disable VoLTE” and “MBN” are optional.
PIN Code| Enter a 4-8 characters PIN code to unlock the SIM.
User| Enter the username for cellular dial-up connection provided by local ISP. The max length is 31 characters.
Password| Enter the password for cellular dial-up connection provided by local ISP. The max length is 31 characters.
APN| Enter the Access Point Name for cellular dial-up connection provided by local ISP. The max length is 31 characters.
SMS Center Number| Enter the local SMS center number for storing, forwarding, converting and delivering SMS message. This is required if you need to use SMS control or reporting feature.
SMS Data Coding Scheme| 7  Bit: standard GSM message coding for most common letters and symbols, can contain up to 160 characters.
8 Bit: suit for multimedia messages, can contain up to 140 characters.
UCS-2: send Unicode characters and suit for more languages like Chinese, Korean and Arabic, can contain up to 70 characters.
NTP Server| Enter the NTP Server’s IP address or domain name. After registered to network, the device will sync the device time from this server. Default:
 | www.ntp.org
---|---
Change Password| Change the password to log in to ToolBox and SMS password validation.

Application Settings
Go to Application > Application to configure the settings to send data to corresponding servers. About the MQTT topics, please refer to the UC300 Cellular Communication Protocol.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(27\)

Parameters Description
Application Mode Select from Milesight IoT Cloud, AWS, TCP, UDP, and MQTT.
Reporting Interval (s) The interval of reporting interface data. Default:

1800s, Range: 10-64800s
Note: for Milesight IoT Cloud mode, the reporting interval should be configured on the cloud webpage.
Milesight IoT Cloud
Keep Alive Interval (s)| After connected, the device will send heartbeat packet regularly to keep alive. Default: 200 s, Range: 1-3600 s
AWS
Server Address| Fill in the AWS server domain name which the data sends to.
Keep Alive Interval (s)| After connected, the device will send heartbeat packet regularly to keep alive. Default: 200 s, Range: 1-3600 s
CA File| Import the CA.crt file.
Client Certificate| Import the client certificate.
Client Key| Import the client key.
TCP/UDP

Description| After the TCP/UDP connection established, the device will send one package including the description to identify the device. The max length is 32 characters.
Keep Alive Interval (s)| For TCP connection, the device will send heartbeat packet regularly to keep alive. Default: 60 s, Range: 60-7200 s
Custom Heartbeat Mode| After enabled, the device will send custom heartbeat packets to TCP server.
Custom Content| Customize the heartbeat packet content. The max length is 32 characters.
Heart Interval (s)| The device will send custom heartbeat packet regularly. Default: 30 s, Range: 30-3600 s
Require Response| After the device send custom heartbeat packet, it needs a specific response from server.
Response Content| Customize the server reply content after receiving custom heartbeat packets. The max length is 32 characters.
Server Address| Fill in the TCP/UDP server address (IP/domain name).
Server Port| Fill in the TCP/UDP server port. Range: 1-65535. Note: The server address and port should not exactly the same as the TCP/UDP settings on RS232 page.
Status| Show the connection status between the device and the server.
MQTT
Broker Address| Fill in MQTT broker address to receive data.
Port| Fill in MQTT broker port to receive data.
Client ID| Client ID is the unique identity of the client to the server, it must be unique when all clients are connected to the same server.
Keep Alive Interval (s)| After the client is connected with the server, the client will send heartbeat packet regularly to keep alive. Default: 60 s, Range: 1-65535 s

User Credentials

Enable Enable user credentials.
Username The username used for connecting to the MQTT broker.
Password The password used for connecting to the MQTT broker.

TLS

Enable Enable the TLS encryption in MQTT communication.
Protocol It’s fixed as TLS v1.2.
CA File Import the CA.crt file.
--- ---
Client Certificate Import the client certificate.
Client Key Import the client key.

SMS Settings
UC300 cellular version supports SMS control and SMS reporting. Before that, ensure the device has registered to the cellular network and the SMS Center Number is typed in General > Basic settings. About the SMS control commands and report contents, please refer to the UC300 Cellular Communication Protocol.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(28\)

SMS Control

Parameters| Description
Enable| Enable to allow users to send SMS to control the device.
Control Center Number| The number used to control this device. 2 control numbers can be added at most.
Success Confirmation| After control success, the device will send success reply to the control center number.
Failure Confirmation| After control failure, the device will send failure reply to control center number.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(29\)

SMS Report

Parameters| Description
Enable| Enable to allow the device to report device DI/DO status via SMS.
Any Change Report| When any of the DI/DO interfaces’ status changes, the device will send the current status via SMS.
Regular Report Interval| Report the time, signal, network type, and data interface status/values of the device regularly via SMS. Default: 720 mins, Range: 1-1440 mins.
SMS Messaging Protocol| Select the SMS messaging protocol. It’s General by default. General: send SMS as general string format. UCP: send SMS as hex format, you can decode it referring to UC300 Communication Protocol document.
Number| Reports SMS to these phone numbers. 6 numbers can be added at most.

Data Interface Settings

Digital Input/Pulse Counter
UC300 supports 4 digital inputs and every input can work as either a digital input mode to detect high/low levels or a pulse counter to record counting values. When working as digital input, UC300 will upload the data according to the reporting interval or when the status changes.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(30\)

Parameters Description
Enable Enable digital input to detect status and upload the data.

Digital Input
Fetch| Click to get the current input status.
Counter
Digital Filter| It’s recommended to enable when the pulse period is greater than 250 us.
Start/Stop| Click to start/stop counting. Note that UC300 will send non- changeable counting values if you do not click Start.
Refresh| Refresh to get the latest counter values.
Clear| Count the value from 0.
Modify the| Set the initial counting value.
count values|
---|---

Digital Output
UC300 supports 2 digital outputs to control the devices.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(31\)

Parameters Description
Enable Enable the digital output to control the device and upload the changed

status.
When Power is Restored, DO| After the device power is restored, the DO status will return to normally closed or normally open according to this parameter.
Fetch| Click to get the current output status.
Switch| Click to change the DO status.

RS485

UC300 has one RS485 port to support Modbus RTU or transparent 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
    ---|---
    Enable| Allow the device to collect RS485 data and upload the data.
    Stop Bit| 1 bit/2 bit is available.
    Data Bit| 8-bit is available.
    Parity| None, Odd and Oven are available.
    Baud Rate| 1200/2400/4800/9600/14400/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 the device fails to read data from RS485 terminal devices.
    Transparent Communication| If transparent communication is enabled, the device will work as a bridge to transmit messages between the server and RS485 terminal devices transparently.
    Transparent mode| Select transparent mode when Transparent Communication is enabled. Active Transparent Communication: the RS485 device can react according to server commands only when the server sends any type of command to it. Two-way Transparent Communication: not only can the server send any type of command to the RS485 device, but also RS485 device supports transmitting the data to the server actively.
     | Note: When Two-way Transparent Communication is enabled, Modbus channels cannot be used, and the corresponding IF-THEN command will not work.
    ---|---
  3. Click to add Modbus channels, then save configurations.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(34\)
    Parameters| Description
    ---|---
    Channel ID| Select the channel ID you want to configure from 16 channels.
    Name| Customize the name to identify every Modbus channel.
    Slave ID| Set the Modbus slave ID of the terminal device.
    Address| The starting address for reading.
    Quantity| Set read how many digits from the starting address. It can be set as 1~4.
    Type| Select the data type of Modbus channels.
    Byte Order| Set the Modbus data reading order if you configure the type as Input register or holding register. This will affect the uplink order and for details refer to U C 3 0 0 C e l u l a r C o m m u n i c a t i o n P r o t o c o l .
    INT32/Float: ABCD, CDBA, BADC, DCBA
    INT16: AB, BA
    Sign| The tick indicates that the value has a plus or minus sign.
    Fetch| After click, UC300 will send Modbus read command to test if it can read correct values.
    Example: the device will send command as below settings: 01 03 00 00 00 01 84 0AMilesight-UC300-IoT-Controller-Cellular-FIG-1 \(35\)
  4. Click Fetch to check if UC300 can read correct data from terminal devices.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(36\)
    • Note: Do not click Fetch frequently since the response time to reply is differ for every terminal device.

RS232

UC300 has one RS232 interface for transparent communication. Usually it will use different tunnels from other data interfaces to communicate with server.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(37\)

Parameters Description
Baud Rate 1200/2400/4800/9600/14400/19200/38400/57600/115200 are available.
Data Bit 8-bit is available.
Stop Bit 1 bit/2 bit is available.
Parity None, Odd and Oven 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 it to the server.
Serial Frame Interval (ms)| The interval that the device sends out real serial data stored in the buffer area to public network. The range is 10-65535 milliseconds.
 | Note: data will be sent out when the real serial data size reaches the preset packet size, even though it’s within the serial frame interval.
---|---
Protocol| TCP or UDP is protocol.
Keep Alive Interval

(s)

| For TCP connection, the device will send heartbeat packet regularly to keep alive. Default: 60s, Range: 60-7200 s
Reconnect Interval

(s)

| After connection failure, the device will reconnect to the TCP server after the preset interval. Default:10 s, Range: 10-60 s.
Register String| After TCP/UDP connection established, the device will send the register string to identify the device. The max length is 32 characters.
Server Address| Fill in the TCP or UDP server address (IP/domain name).
Server Port| Fill in the TCP or UDP server port. Range: 1-65535.
Note: The server address and port should not exactly the same as the TCP/UDP settings on Application Mode settings.
Status| Show the connection status between the device and the TCP server.

Analog Input/PT100

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.

PT100 Note:

  1. The temperature unit in the reporting package is fixed at °C.
  2. Please modify the command IF condition threshold settings if you change the temperature unit.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(38\)Milesight-UC300-IoT-Controller-Cellular-FIG-1
\(39\)

IF-THEN Command

UC300 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, click Edit to add commands.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(40\)Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(41\)
  2. Set an IF condition based on the terminal device data or UC300 device status. Users can add at most 2 conditions in one command.
    Condition| Description
    ---|---
    Time| Set the time condition. The device time will be synced once after joining/registering to network, you can also sync the time manually on Status.
    Digital Input| When UC300 device detects the DI as a specific status. Is continued for: the DI changed status should last for some time. Set lockout time: after the lockout time, UC300 will detect if DI status matches the condition. 0 means this IF condition will only be detected once.
    Counter| When pulse counter reaches a specific value. This only works when DI works as counter mode.
    Channel/4-20m A/0-10V/PT100| When the value reaches any threshold. Is continued for: the analog value should last for some time.
    Set lockout time: after the lockout time, UC300 device will detect if analog value matches the condition. 0 means this IF condition will only be detected once.
    Note: if this Modbus channel quantity is more than 1, this condition will only judge the first value.
    Received a server message| When the device receive a specific message from server.
    The Device Restarts| When he device restarts.
    The signal strength is weak| When cellular signal is lower than 10 asu.
  3. Set THEN action according to your request. Users can add at most 3 actions in one command.
    Action| Description
    ---|---
    Send a server message| Send a custom message to the server. Users can add variables to the message. Example: PT100=$T1 The message will replace the “$T1” as real temperature value. Corresponding variable names are shown as below:
     | Data Interface| Variable Name|
     | DI 1/2/3/4| $DI1, $DI2, $DI3, $DI4
    Counter 1/2/3/4| $C1, $C2, $C3, $C4
    DO 1/2| $DO1, $DO2
    4-20mA 1/2| $A1, $A2
    0-10V 1/2| $V1, $V2
    PT100 1/2| $T1, $T2
    RS485 Channel

1/2…16

|

$R01, $R02, $R03,………. $R15, $R16

Output Trigger| DO can be set to normally open/normally closed/change status. Delay Time: this action will trigger after a specific time;  Duration: the output status will last for a specific time, 0 means permanent.
Restart the Device| Reboot the device.
Send a device status message via SMS| Send a status message, this should ensure the SMS Report feature is enabled.
4. After setting all commands, click Save.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(42\)

Maintenance

Upgrade
UC300 supports upgrades locally via ToolBox software.

  1. Download firmware from www.milesight.com to your PC.
  2. Go to Maintenance > Upgrade, click Browse to import firmware and upgrade the device.
    • Note: Any operation on ToolBox is not allowed during upgrading, otherwise the upgrading will be interrupted, or even the device will break down.Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(43\)

Backup
UC300 devices support configuration backup for easy and quick device configuration in bulk. Backup is allowed only for devices with the same model.

  1. Go to Maintenance > Backup and Reset, and click Export to save the current configuration as JSON format backup file.
  2. Click Browse to select the backup file, then click Import to import the configurations.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(44\)

Reset to Factory Default
Please select one of the following methods to reset the device:

  • Via Hardware: Open the case of UC300, and hold on to the reset button for more than 10 until the SYS LED blinks.
  • Via ToolBox Software: Go to Maintenance > Backup and Reset to click Reset.

Milesight-UC300-IoT-Controller-Cellular-FIG-1 \(45\) Device Payload

Please refer to the UC300 Cellular Communication Protocol; for decoders of Milesight IoT products please click here.

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals