Milesight EM310-UDL Ultrasonic Distance Sensor 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 disassembled or remodeled in any way.
- The device is not intended to be used as a reference sensor, and Milesight won't should responsibility for any damage which may result from inaccurate readings.
- Do not place the device close to objects with naked flames.
- Do not place the device in where the temperature is below/above the operating range.
- The device must never be subjected to shocks or impacts.
Declaration of Conformity
EM310-UDL is in conformity with the essential requirements and other relevant provisions of the CE, FCC, and RoHS.
CE FC RoHS
Copyright © 2011-2021 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: 4/F, No.63-2 Wanghai Road, 2nd Software Park, Xiamen, China
Revision History
Date | Doc Version | Description |
August 25, 2021 | V 1.0 | Initial version |
Contents
1. Product Introduction
1.1 Overview
EM310-UDL is a LoRaWAN® ultrasonic distance/level sensor mainly used for detection of waste bin and other container's level. With a compact size and wide measure range, EM310-UDL can be installed to any types of waste bins or containers to monitor solid or liquid level. Besides, EM310-UDL equips with 3-axis accelerometer to detect the status of container cover. It is equipped with NFC (Near Field Communication) and can easily be configured by a smartphone.
Sensor data are transmitted in real-time using standard LoRaWAN® protocol. LoRaWAN® enables encrypted radio transmissions over long distance while consuming very little power. The user can obtain sensor data and view the trend of data change through Milesight IoT Cloud or through the user's own Network Server.
1.2 Features
- 3 to 450 cm wide measuring range with short bind zone
- Support temperature compensation for high accuracy
- Up to 15 km communication range
- Easy configuration via NFC
- Standard LoRaWAN® support
- Milesight IoT Cloud compliant
- Low power consumption with 7000mAh replaceable battery
2. Hardware Introduction
2.1 Packing List
- 1 x EM310-UDL Device
- 2 x Mounting Kits
- 2 x Screw Caps
- 1 x Warranty Card
- 1 x Quick Guide
If any of the above items is missing or damaged, please contact your sales representative.
2.2 Hardware Overview
A diagram shows the EM310-UDL sensor with mounting holes and the ultrasonic sensor area. An NFC area is also indicated.
2.3 Dimensions (mm)
Diagrams show the dimensions of the EM310-UDL sensor from different angles.
2.4 Power Button
EM310-UDL can be switched on/off via NFC. Besides, users can use the power button to switch on/off and reset the device manually.
Function | Action | LED Indication |
Switch On | Press and hold the button for more than 3 seconds. | Off → On |
Switch Off | Press and hold the button for more than 3 seconds. | On → Off |
Reset | Press and hold the button for more than 10 seconds. | Quickly Blinks |
Check On/Off Status | Quickly press the power button. | Light On: Device is on Light Off: Device is off |
3. Operation Guide
3.1 NFC Configuration
EM310-UDL can be configured via NFC.
- Download and install “Milesight ToolBox” App from Google Play or App Store.
- Enable NFC on the smartphone and open "Milesight ToolBox" App.
- Attach the smartphone with NFC area to the device to read the basic information. A diagram illustrates this process.
- Basic information and settings of devices will be shown on ToolBox if it's recognized successfully. You can switch on/off the device by tapping the button on the Device Status. In order to protect the security of devices, password validation is required when configuring via unused phone. Default password is 123456.
Status | Setting | Maintenance |
SN | 6713B31056670013 | |
Model | EM310-UDL-868M | |
Device EUI | 24E124713B310566 | |
Firmware Version | V1.0-a4 | |
Hardware Version | V1.0 | |
Device Status | Off |
- Tap "Read" button to check current status and sensor data of device.
- Tap "Write" button to write all your settings to the device.
Note:
- Ensure the location of smartphone NFC area and it's recommended to take off phone case.
- If the smartphone fails to read/write configurations via NFC, keep the phone away and back to try again.
- EM310-UDL can also be configured by dedicated NFC reader provided by Milesight IoT or you can configure it via TTL interface inside the device.
3.2 LoRaWAN Settings
LoRaWAN settings is used for configuring the transmission parameters in LoRaWAN® network.
Basic LoRaWAN Settings:
Go to Device → Setting → LoRaWAN Settings of ToolBox App to configure join type, App EUI, App Key and other information. You can also keep all settings by default.
Parameters | Description |
Device EUI | Unique ID of the device which can also be found on the label. |
App EUI | Default App EUI is 24E124C0002A0001. |
Application Port | The port used for sending and receiving data, default port is 85. |
Join Type | OTAA and ABP mode 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. |
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 mounts of LoRaMAC packets to check connection status every 30 mins; If no reply after specific packets, the device will re-join. Reporting interval > 30 mins: 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. |
Tx Power | Transmit power of device. |
Note:
- Please contact sales for device EUI list if there are many units.
- Please contact sales if you need random App keys before purchase.
- Select OTAA mode if you use Milesight IoT cloud to manage devices.
- Only OTAA mode supports rejoin mode.
LoRaWAN Frequency Settings:
Go to Setting → LoRaWAN Settings of ToolBox App to select supported frequency and select channels to send uplinks. Make sure the channels match the LoRaWAN® gateway.
* Support Frequency: AS923
Channels: 923.2, 923.4, 922.2, 922.4, 922.6
If frequency is one of CN470/AU915/US915, you can enter the index of the channel that you want to enable in the input box, making them separated by commas.
Examples:
- 1, 40: Enabling Channel 1 and Channel 40
- 1-40: Enabling Channel 1 to Channel 40
- 1-40, 60: Enabling Channel 1 to Channel 40 and Channel 60
- All: Enabling all channels
- Null: Indicates that all channels are disabled
3.3 Basic Settings
Go to "Device → Setting → General Settings of ToolBox App to change the reporting interval, etc.
Reporting Interval: 10 min
Tilt & Distance Switch: [Toggle Switch]
Change Password: [Input Field]
Parameters | Description |
Reporting Interval | Reporting interval of transmitting data to network server. Default: 10 mins Range: 1-1080 mins |
Tilt & Distance Switch | When detected the horizontal offset angle of the device is greater than 20°, stop the distance measurement. |
Change Password | Change the password for ToolBox App or software to access this device. |
3.4 Advanced Settings
3.4.1 Calibration Settings
Go to Device → Setting → Calibration Settings of ToolBox App to enable calibration. EM310-UDL supports two calibration types:
- Numerical Calibration: users can define calibration value to correct every distance.
Calibration Settings: [Toggle Switch]
Distance: [Input Field]
Numerical Calibration: Current Value: 2.09 m, Calibration Value: -0.01 m, Final Value: 2.08 m
- Measure Outlier Calibration: users can define either outlier range or value. When the device distance value exceeds the outlier range (or value) comparing to last value, the device will measure the distance again.
Measure Outlier Calibration: [Toggle Switch]
Maximum Range: 4.5 m
Outlier Range /%: 0.1
Outlier Value / m: 0.005
3.4.2 Threshold Settings
Go to Device → Setting → Threshold Settings of ToolBox App to enable the threshold settings and input the distance threshold. EM310-UDL will detect whether the distance reaches the threshold according to collecting interval. If threshold is triggered, it uploads the current data once instantly.
Distance Over / m: [Input Field]
Distance Below / m: [Input Field]
Collecting Interval: 10 min
3.5 Maintenance
3.5.1 Upgrade
- Download firmware from Milesight website to your smartphone.
- Open Toolbox App and click "Browse" to import firmware and upgrade the device.
Note:
- Operation on ToolBox is not supported during a firmware upgrade.
- Only Android version ToolBox supports the upgrade feature.
Status | Setting | Maintenance |
SN | 6713B31056670013 | |
Model | EM310-UDL-868M | |
Firmware Version | V1.0-a4 | |
Hardware Version | V1.0 | |
Manual Upgrade |
3.5.2 Backup
EM310-UDL supports 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 "Template" page on the App and save current settings as a template. You can also edit the template file.
- Select one template file which saved in the smartphone and click "Write", then attach to another device to write configuration.
A screenshot shows the "Template" interface with options to create a new template or select existing ones. A note indicates how to edit or delete templates.
3.5.3 Reset to Factory Default
Please select one of following methods to reset device:
- Via Hardware: Hold on power button (internal) for more than 10s.
- Via ToolBox App: Go to "Device → Maintenance" to click "Reset", then attach smartphone with NFC area to device to complete reset.
4. Installation
- Fix the wall plugs into the wall, then fix the device to the wall plugs with screws.
- Cover the screws with screw caps.
A diagram shows the mounting process with screws and screw caps.
Installation location:
- Ensure the location of device is within the communication range of LoRaWAN® gateway and keep it away from metal objects.
- Device must sit in a horizontal position on top of the object so that it has a clear path to the object.
- Place device in where it is far away from the side-wall more than 30 cm and without internal obstructions that block the ultrasonic signal. If the device has to install on the side wall, please ensure the ultrasonic sensor direction point away from the wall.
Diagrams illustrate correct and incorrect installation positions relative to the object and side walls.
5. Milesight IoT Cloud Management
EM310-UDL 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.
- Ensure Milesight LoRaWAN® gateway is online in Milesight IoT Cloud. For more info about connecting gateway to cloud please refer to gateway's user guide.
- Go to "My Devices" page and click "+New Devices". Fill in the SN of the device and select an associated gateway. A form is shown for adding a new device with fields for SN, Name, Associated Gateway, Device EUI, and Application Key.
- After the device is online in Milesight IoT Cloud, you can check the data via webpage or mobile App and create dashboard for it. A screenshot of the Milesight IoT Cloud dashboard is displayed.
6. Device Payload
All data are based on following format (HEX):
Channel | Type | Data | Channel | Type | Data | Channel | Type | Data |
1 Byte | 1 Byte | N Bytes | 1 Byte | 1 Byte | M Bytes | 1 Byte | 1 Byte | ... |
For decoder examples please find files on https://github.com/Milesight-IoT/SensorDecoders.
6.1 Basic Information
EM310-UDL reports basic information of sensor whenever it joins the network.
Channel | Type | Description |
01 | Protocol Version | 01 ⇒ V1 |
09 | Hardware Version | 01 40 ⇒ V1.4 |
0a | Software Version | 01 14 ⇒ V1.14 |
0b | Power On | Device is on |
0f | Device Type | 00: Class A, 01: Class B, 02: Class C |
16 | Device SN | 16 digits |
Example:
ff0bff ff0101 ff166713b31056670013 ff090100 ff0a0100 ff0f00
Channel | Type | Value | Channel | Type | Value | Channel | Type | Value |
ff | (Power On) | ff | 0b | (Reserved) | 01 | ff | (Protocol Version) | 01 (V1) |
ff | (Device SN) | 16 | 6713b31056670013 | ff | 09 | (Hardware version) | 0100 (V1.0) | |
ff | (Software version) | 0a | ff | 0f | (Device Type) | 00 (Class A) |
6.2 Sensor Data
EM310-UDL reports sensor data according to reporting interval (10 mins by default).
Channel | Type | Description |
01 | 75 (Battery Level) | UINT8, Unit: % |
03 | 82 (Distance) | UINT16, Unit: mm |
04 | 00 (Device Position) | 00: Normal (horizontal offset angle < 20°) 01: Tilt (horizontal offset angle ≥ 20°) |
Example:
01 75 62 03 82 44 08 04 00 00
Channel | Type | Value | Channel | Type | Value |
01 | 75 (Battery) | 62 ⇒ 98% | 03 | 82 (Distance) | 44 08 ⇒ 08 44 = 2116 mm = 2.116 m |