Milesight EM310-UDL Ultrasonic Distance Sensor
User Manual
Safety Precautions
To protect the product and ensure safe operation, please comply with this user manual. Milesight is not responsible for any issues arising from improper use or failure to follow the manual's instructions.
- Do not disassemble or modify the product.
- Do not place the product in environments with unsuitable temperature or humidity, or near heat sources, cold sources, or open flames.
- Do not subject the product to external impact or vibration.
- This product cannot be used as a measuring tool.
Product Compliance Statement
The EM310-UDL series complies with the essential requirements and other relevant provisions of CE, FCC, and RoHS.
Copyright © 2011-2021 Milesight. All rights reserved.
Contact Information
For assistance, please contact Milesight Technical Support:
- Email: contact@milesight.com
- Phone: 0592-5023060
- Fax: 0592-5023065
- Address: 4th Floor, Building 2, No. 63 Wanghai Road, Software Park Phase II, Xiamen
Document Revision Record
Date | Version | Description |
---|---|---|
2021.9.6 | V1.0 | First Edition |
Table of Contents
1. Product Introduction
1.1 Product Overview
The EM310-UDL is a powerful ultrasonic distance sensor featuring a dual-probe design. It utilizes ultrasonic waves to accurately measure the distance between the sensor and a target in a non-contact manner. The product also includes a MEMS three-axis accelerometer to monitor device orientation. Based on LoRa® communication technology, the EM310-UDL supports LoRaWAN® network communication, offering long-range communication and low power consumption. Additionally, it is equipped with a 7000 mAh lithium battery, providing several years of continuous use. The EM310-UDL can be integrated with Milesight's LoRaWAN® gateways and Milesight IoT Cloud platform for remote monitoring and smart联动.
1.2 Product Highlights
- Non-contact detection: Measures distance without touching the object.
- Device attitude perception: Built-in three-axis accelerometer monitors device tilt.
- Wide range: 3-450 cm detection range, suitable for various measurement scenarios.
- Small blind zone: Only 3 cm blind zone, ideal for close-range measurements.
- High accuracy: Features temperature compensation for precise measurements.
- High protection level: IP67 dustproof and waterproof, ensuring stable outdoor operation.
- Long communication distance: Up to 15 km communication range in open areas.
- Easy to use: Supports quick configuration via mobile NFC.
- Good compatibility: Compatible with standard LoRaWAN® gateways and third-party network servers, supporting self-networking.
- Integrated management: Seamlessly integrates with Milesight LoRaWAN® gateways and Milesight IoT Cloud platform without additional configuration.
2. Product Structure Introduction
2.1 Packing List
The package includes:
- 1 x EM310-UDL
- 2 x Screw Kits
- 2 x Screw Covers
- 1 x Warranty Card
- 1 x Quick Installation Guide
If any items are damaged or missing, please contact your distributor or sales representative immediately.
2.2 Overview
The sensor features mounting holes, ultrasonic probes, and an NFC sensing area.
2.3 Product Dimensions
Dimensions are provided in millimeters (mm).
2.4 Power Button and Indicator Light
Normally, the device can be powered on/off and configured using NFC. In emergencies, the device can be manually powered on/off or reset to factory settings by opening the cover and using the internal power button.
Function | Operation | Indicator Status |
---|---|---|
Power On | Long press the power button for over 3 seconds. | Off → On |
Power Off | Long press the power button for over 3 seconds. | On → Off |
Factory Reset | Long press the power button for over 10 seconds. | Fast flashing |
Confirm Device Status | Quickly press the power button once. | Light On: Device is powered on. Light Off: Device is powered off. |
3. Product Configuration
3.1 NFC Configuration
The EM310-UDL supports configuration via NFC using a mobile phone.
Configuration Preparation:
- Mobile phone with NFC support.
- Milesight ToolBox App: Downloadable from the Milesight IoT website or the App Store.
Configuration Steps:
- Enable NFC on your phone and open the Milesight ToolBox App.
- Tap your phone's NFC area on the sensor's NFC sensing area for a few seconds to retrieve basic device information.
- Configure the device settings in the App and then tap the NFC sensing area again to apply the configuration. The first time you configure the device with your phone, you will need to enter the default password: 123456.
Note:
- The NFC area varies depending on the Android phone model; generally, it's around the rear camera. Consult your phone's manual or customer support for specifics.
- If NFC reading/writing fails, try moving your phone away from the device briefly before tapping again.
- The EM310-UDL can also be configured using a Milesight dedicated NFC reader connected to a computer. Contact Milesight for purchase. Additionally, configuration can be done via the built-in TTL serial port.
3.2 LoRaWAN Basic Configuration
Before connecting the EM310-UDL to a LoRaWAN® network, configure the network communication parameters as follows:
- Open the ToolBox App and navigate to 'Settings > LoRaWAN Settings'. Configure the network access type, Class type, and enter the App EUI and Application Key required for network access. These parameters should match the settings on your network server.
Parameter | Value | Description |
---|---|---|
Device EUI | 24E124127A277731 | Unique identifier for the LoRaWAN® device, found on the product label. |
App EUI | 24E124C0002A0001 | App EUI for the device, default is 24E124C0002A0001. |
Port | 85 | Port for sending/receiving LoRaWAN® data, default is 85. |
Join Mode | OTAA | Join mode: OTAA or ABP. |
Application Key | ********************************** | Application Key for OTAA join, default is 5572404C696E6B4C6F52613230313823. |
Device Address | (ABP only) | Device Address for ABP join, default is the device's serial number (5-12 digits). |
Network Session Key | (ABP only) | Network Session Key for ABP join, default is 5572404C696E6B4C6F52613230313823. |
Application Session Key | (ABP only) | Application Session Key for ABP join, default is 5572404C696E6B4C6F52613230313823. |
Data Rate | SF10-DR2 | When ADR is disabled, the device transmits data at this rate. Lower SF (Spreading Factor) means faster transmission, suitable for short distances, and vice versa. |
Confirm Package Mode | [Checkbox] | If enabled, the device will retransmit data up to 3 times if no ACK is received from the server after sending data. |
Rejoin Mode | [Checkbox] | If Uplink Interval ≤ 30 minutes: The device sends a link check signal every 30 minutes. If no response is received after a certain number of attempts, it will rejoin the network. If Uplink Interval > 30 minutes: The device sends a link check signal with data packets based on the uplink interval. If no response is received after a certain number of attempts, it will rejoin the network. |
Adaptive Data Rate (ADR) | [Checkbox] | When enabled, the network server can adjust the device's data rate and power consumption. Recommended for stationary devices. |
Output Power | TXPower0-19.15 dBm | Output power of the device when transmitting data. |
Note:
- If purchasing a large quantity of devices, contact Milesight for a device EUI list.
- Contact Milesight for random App Keys before purchase.
- Use OTAA join mode when managing devices with Milesight IoT Cloud.
- Rejoin Mode is only supported for OTAA join mode.
2. In the ToolBox App, go to 'Settings > LoRaWAN Settings' to configure the LoRa® frequency band used for data transmission. This should generally match the frequency band used by your LoRaWAN® gateway.
Configuration Example:
Status | Setting | Frequency/MHz |
---|---|---|
Supported Frequency | CN470 | |
Enable Channel | 1 | |
8-15 | 470.3-473.3 | |
16-31 | 473.5-476.5 | |
32-47 | 476.7-479.7 | |
48-63 | 479.9-482.9 | |
64-79 | 483.1-486.1 | |
80-95 | 486.3-489.3 |
Channel Configuration:
- 1, 40: Enable Channels 1 and 40
- 1-40: Enable Channels 1-40
- 1-40, 60: Enable Channels 1-40 and 60
- All: Enable all channels
- Empty: Disable all channels
3.3 Common Settings
Open the ToolBox App and navigate to 'Settings > Common Settings' to configure parameters such as the uplink interval.
Uplink Interval: Set the interval for reporting sensor data. Default is 10 minutes. Configurable from 1 to 1080 minutes.
Tilt and Distance Linkage Switch: When enabled, if the device's tilt angle exceeds 20°, the distance sensor will be turned off.
Change Password: Change the password for configuring the device via ToolBox App.
Parameter | Description |
---|---|
Uplink Interval | The interval for reporting sensor data. Default is 10 minutes. Configurable from 1 to 1080 minutes. |
Tilt and Distance Linkage Switch | When enabled, if the device's tilt angle exceeds 20°, the distance sensor will be turned off. |
Change Password | Change the password for configuring the device via ToolBox App. |
3.4 Advanced Settings
3.4.1 Calibration Settings
Open the ToolBox App and navigate to 'Settings > Calibration Settings' to enable calibration. The EM310-UDL supports two calibration methods:
1. Numerical Calibration
Correct each measurement by setting a calibration value.
Calibration Settings:
- Distance:
- Numerical Calibration:
- Current Value: 2.1 m
- Calibration Value: 0.1 m
- Final Value: 2.2 m
2. Abnormal Measurement Calibration
Set abnormal values or ranges. If the current measurement, after calculation, exceeds the abnormal value or range, the device will re-measure.
- Abnormal Value: |Current Measurement - Previous Measurement|, settable from 0 to 450m.
- Abnormal Value Range: |Current Measurement - Previous Measurement| / Maximum Range * 100%, settable from 0.1% to 100%.
Measurement Abnormality Calibration | |
---|---|
Maximum Range: 450 m | |
Abnormal Value Range/% | 0.1 |
Abnormal Value/m | 0.45 |
3.4.2 Threshold Settings
Open the ToolBox App and navigate to 'Settings > Threshold Settings' to enable threshold alarms. When the measured value meets the set threshold, the EM310-UDL will immediately report the value.
Note: The device measures distance periodically based on the data acquisition interval. Threshold alarms are reported only once when triggered. The device measures distance periodically based on the data acquisition interval, and the threshold alarm is reported only once when triggered.
Threshold Settings:
- When the value meets the set threshold, the device will immediately report the value.
- Distance:
- Value Greater Than/m: [Input Field]
- Value Less Than/m: [Input Field]
- Data Acquisition Interval: 10 minutes
3.5 Maintenance
3.5.1 Firmware Upgrade
Step 1: Download the firmware to your mobile phone.
Step 2: Open the ToolBox App, tap 'Browse' to import the firmware, and start the upgrade.
3.5.2 Backup
The ToolBox App supports backing up and restoring EM310-UDL configurations, enabling quick batch configuration. Backup and restore are only applicable to devices with identical models and frequency bands.
- Open the App, go to the 'Template' menu, and save the current configuration as a new template.
- Select the saved template, tap 'Write', and then tap your phone to the device's NFC area to write the configuration.
Note: On the 'Template' page, select the corresponding template entry, swipe left to edit the template name or delete the template. Tap the template entry to view and edit the specific template content.
SN | Model | Firmware Version | Hardware Version | Status | Settings | Maintenance |
---|---|---|---|---|---|---|
6713831056670013 | EM310-UDL-868M | V1.0-a4 | V1.0 | |||
Browse | ||||||
Restore Factory Defaults | Reset |
Note: The EM310-UDL only supports firmware upgrades via the Android version of the Milesight ToolBox App. Do not perform any other operations on the App or device during the upgrade process.
3.5.3 Reset
You can reset the device using the following methods:
- Hardware Reset: Long press the power button for over 10 seconds until the indicator light flashes, then release.
- ToolBox App Reset: Navigate to 'Device > Maintenance' in the App, tap 'Reset', and then tap your phone to the device's NFC area to write the configuration.
SN | Model | Firmware Version | Hardware Version | Status | Settings | Maintenance |
---|---|---|---|---|---|---|
6713B31056670013 | EM310-UDL-868M | V1.0-a4 | V1.0 | |||
Browse | ||||||
Restore Factory Defaults | Reset |
4. Product Installation
Installation Steps:
- Insert the expansion bolts into the mounting position and secure the sensor using the screws.
- Attach the screw covers to the screws.
Installation Suggestions:
- Install the device within the LoRaWAN® gateway's coverage range and away from metal objects.
- Ensure the distance between the probe and the target is within the maximum range and greater than the blind zone.
- Mount the device vertically to the target surface. Ensure there are no obstructions between the probe and the target. If wall-mounting, maintain a distance of at least 30 cm from the side wall, or ensure the probe direction faces away from the side wall.
5. Data Communication Protocol
Up/downlink data for the EM310-UDL is in hexadecimal format. Sensor data is processed with the low byte first, followed by the high byte.
Basic Up/Downlink Command Format:
Channel No. | Type | Data | Channel No. | Type | Data |
---|---|---|---|---|---|
1 Byte | 1 Byte | N Bytes | 1 Byte | 1 Byte | M Bytes |
5.1 Device Information
Device information is reported once upon joining the network or after a reboot.
Channel No. | Type | Description |
---|---|---|
01 (Protocol Version) | 01 | Protocol Version V1 |
09 (Hardware Version) | 0140 | Hardware Version V1.4 |
0a (Firmware Version) | 0114 | Firmware Version V1.14 |
0b (Power On) | ff | Device Power On |
0f (Node Type) | 00: Class A, 01: Class B, 02: Class C | |
16 (Device SN) | 16-bit Device Serial Number |
Example:
ff0bffff0101ff166713b31056670013ff090100ff0a0100ff0f00
5.2 Sensor Data
- Periodic Uplink: Sensor data is reported periodically based on the uplink interval.
- Threshold Uplink: When the measured value meets the set threshold, it is reported immediately, similar to periodic uplinks.
Channel No. | Type | Description |
---|---|---|
01 | 75 (Battery Level) | 1 Byte, unit: % |
03 | 82 (Distance) | 2 Bytes, unit: mm |
04 | 00 (Device Status) | 00: Normal (Tilt angle < 20°) 01: Tilted (Tilt angle ≥ 20°) |
Example:
01756103826c00040000
Channel No. | Type | Data | Channel No. | Type | Data |
---|---|---|---|---|---|
01 | 75 | 61=>97 (Battery Level 97%) | 03 | 82 | 6c 00=>00 6c=108 (Distance 108mm=0.108m) |
04 | 00 | 00 (Device Status Normal) |
5.3 Downlink Commands
The EM310-UDL supports device configuration via downlink commands.
Channel No. | Type | Description |
---|---|---|
ff | 03 (Set Uplink Interval) | 2 Bytes, unit: s |
Example: Set uplink interval to 20 minutes.
Channel No. | Type | Data |
---|---|---|
ff | 03 (Set Uplink Interval) | b0 04 => 04 b0 = 1200s (Uplink interval set to 20 minutes) |
Note: For data parser examples, refer to: https://github.com/Milesight-IoT/SensorDecoders.