LoRaWAN® Controller UC50x Series 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. Make sure electronic components do not drop out of the enclosure while opening.
—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.
Contents 1. Product Introduction ......................................................................................................................... 5 1.1 Overview ...................................................................................................................................5 1.2 Features ................................................................................................................................... 5 2. Hardware Introduction .....................................
1. Product Introduction 1.1 Overview UC50x series is a LoRaWAN® controller used for data acquisition from multiple sensors. It contains different I/O interfaces such as analog inputs, digital inputs, digital outputs, serial ports and so on, which simplify the deployment and replacement of LoRaWAN® networks. UC50x series can be easily and quickly configured by NFC or wired USB port.
2.2 Hardware Overview UC501 UC502 Data Interface 1: Pin Description 1 5V/9V/12V OUT (Switchable) 2 3.3V OUT 3 GND 4 Analog Input 1 5 Analog Input 2 612 5-24V DC IN Data Interface 2: Pin Description 1 5V/9V/12V OUT (Switchable) 2 3.3V OUT 3 GND 4 GPIO1 5 GPIO2 6 7 RS232/RS485 (Switchable) 8 1 2 Reserved Pin RS232 RS485 6 TXD A 7 RXD B When both DC external power and batteries are connected, external power will be the preferred power supply option.
2.3 Internal Interfaces DIP Switch: Interface DIP Switch Power Output 12V: 1 on 2 off 3 off 9V: 1 off 2 on 3 off 5V: 1 off 2 off 3 on Analog Input 4-20mA ADC: 1 off 2 on 3 on 0-10V ADC: 1 on 2 off 3 off RS485 Add 120 Ω resistor between A and B: 1 on 2 off 3 off Add 1k Ω pull-up resistor on A: 1 off 2 on 3 off Add 1k Ω pull-down resistor on B: 1 of 2 off 3 on Note: 1) Analog inputs are set to 4-20mA by default, power outputs are set to 12V by default.
2.4 Dimensions (mm) 3. Hardware Switch When using the analog input or power output of UC50x series, please follow the steps to switch the working mode of hardware interface: 1. Remove the screw caps and take off the roof cover. 2. Change DIP switches that are related analog inputs and power outputs as shown in Section 2.3. 3. Put back the roof cover and screw the screws. Note: turn off the device before changing DIP switches. 4. Operation Guide 4.
4.1.1 NFC Configuration 1. Download and install “Milesight ToolBox” App from Google Play or Apple App Store. 2. Enable NFC on the smart phone and launch Milesight ToolBox. 3. Attach the smart phone with NFC area to the device to read device information. 4. Basic information and settings of the device will be shown on ToolBox App if it’s recognized successfully. You can read and configure the device by tapping the Read/Write device on the App.
4. After logging in the ToolBox, you can click “Power On” or “Power Off” to turn on/off device and change other settings. 4.2 LoRaWAN Settings Go to “LoRaWAN -> Basic” of ToolBox software or “Setting -> LoRaWAN Settings” for ToolBox App 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 which can also be found on the label. Default App EUI is 24E124C0002A0001. The port used for sending and receiving data, default port is 85. Note: RS232 data will be transmitted via another port. UC501: Class A and Class C are available; UC502: Class A. OTAA and ABP mode are available. Application Key Appkey for OTAA mode, default is 5572404C696E6B4C6F52613230313823.
Reporting interval > 30 mins: the device will send specific mounts of LoRaMAC packets every to check connection status every reporting interval; If no reply after specific packets, the device will re-join. ADR Mode Allow network server to adjust datarate of the device. Note: 1) Please contact sales for device EUI list if there are many units. 2) Please contact sales if you need random App keys before purchase. 3) Select OTAA mode if you use Milesight IoT cloud to manage devices.
Output Change Password power continuously. Change the password for ToolBox APP or software to read/write this device. 4.3.1 RS485 Settings 1. Connect RS485 device to RS485 port on interface 2. If you need UC50x to power the RS485 device, please connect the power cable of RS485 device to 5V/9V/12V power output on interface 2. 2. Go to “General -> Serial” of ToolBox software or “Setting -> Serial Setting” to enable RS485 and configure serial port settings.
Stop Bit 1 bit/2 bit are available. Parity None, Odd and Oven are available. Execution Interval The execution interval between each Modbus command. The maximum response time that the UC50x waits for the reply to the Max Resp Time 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 Set the maximum retry times after device fails to read data from RS485 terminal devices.
4. For ToolBox software, click “Fetch” to check if UC50x can read correct data from terminal devices. You can also click “Fetch” on the top of list to fetch all channel data. Note: Please do not click “Fetch” frequently since response time to reply is differ for every terminal device. For ToolBox App, a. Tap every Modbus channel, click “Collect” and attach smart phone to device to make device collect data. b. Click “Fetch” and attach smart phone to make APP read the data.
device, connect the power cable of RS232 device to 5V/9V/12V power output on interface 1. 2. Go to “General -> Serial” of ToolBox software or “Setting -> Serial Setting” to enable RS232 and configure serial port settings. Serial port settings should the same as RS232 terminal devices. Parameters Description Enable 5V/9V/12V power output of interface 2 to supply power to RS232 Interface 2(Pin 1) 5V/9V/12V terminal devices continuously. Only UC501 supports this feature.
3. Select GPIO type according to your requirements. Digital Input: detect high or low status of devices; Digital Output: Send voltage signal to trigger devices; Counter: pulse counter. Digital Input: Select initial status of digital input. If pull up is selected, falling edge will be triggered; if pull down is selected, rising edge will be triggered. After selection, click “Fetch” to check current status of digital input.
Pulse Counter: Parameters Description Digital Input Initial status of counter. Pull Down: Increase 1 when detecting rising edge Pull Up/None: Increase 1 when detecting falling edge Digital Filter It’s recommended to enable when pulse period is greater than 250 us. Keep last value when power off Start/Stop Refresh Clear Keep the counted values when the device powers off. Make the device start/stop counting. Note: UC50x will send non-changable counting values if you do not click “Start”.
3. Select analog input type according to analog device type. Note: Ensure DIP switches has changed before changing “Analog Input Signal Type” to 0-10V. 4. Enable “Interface 1 (Pin 1) 5V/9V/12V” and configure “Power Output Time Before Collect”, UC50x will power the analog devices for a period of time before collecting data. Note: When you use power output to power analog devices, it only supplies power when reporting interval is coming.
For ToolBox App, a. Click “Collect” and attach smart phone to device to make device collect data. b. Click “Fetch” and attach smart phone to make APP read the data. 4.4 Maintenance 4.4.1 Upgrade ToolBox Software: 1. Download firmware from www.milesight-iot.com to your PC. 2. Go to “Maintenance -> Upgrade” of ToolBox software, 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. ToolBox App: 1.
Note: 1) Operation on ToolBox is not supported during the upgrade. 2) Only Android version ToolBox supports the upgrade feature. 4.4.2 Backup UC50x 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. Please select one of following methods to backup device: ToolBox Software: 1. Go to “Maintenance -> Backup and Reset”, click “Export” to save current configuration as json format backup file. 2.
2. Select one template file which saved in the smart phone and click “Write”, then attach to another device to write configuration. 4.4.3 Reset to Factory Default Please select one of following methods to reset device: Via Hardware: Open the case of UC50x and hold on power button more than 10s. Via ToolBox Software: Go to “Maintenance -> Backup and Reset” to click “Reset”.
Via ToolBox App: Go to “Device -> Maintenance” to click “Reset”, then attach smart phone with NFC area to UC50x to complete reset. 5. Installation UC50x series support wall mounting or pole mounting. Before installation, make sure you have the mounting bracket, wall or pole mounting kits and other required tools. Wall Mounting: 1. Fix the wall plugs into the wall, then fix the mounting bracket to the wall plugs with screws. 2.
turning it clockwise. 2. Put the device on the mounting bracket, then fix the bottom of the device to the bracket with a fixing screw. 6. Milesight IoT Cloud Management UC50x series can be managed by Milesight IoT Cloud platform. Milesight IoT cloud is a comprehensive platform that provides multiple services including device remote management and data visualization with the easiest operation procedures. Please register a Milesight IoT Cloud account before operating following steps. 1.
3. For UC501, click and go to “Basic Settings” to change class type the same as device settings. 4. After UC50x is online in Milesight IoT Cloud, click and go to “Interface Settings” to select used interfaces and customize the name, sign and formulas. Note: Modbus channel settings should be the same as the configuration in ToolBox. 7. Device Payload UC50x Series use the standard Milesight IoT payload format based on IPSO.