Milesight EM320-TILT Tilt Sensor Featuring Lorawan
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.
- In order to protect the security of the device, please change device password when first configuration. The default password is 123456.
- 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.
- The device is not intended to be used as a reference sensor, and Milesight will not should responsible for any damage which may result from inaccurate readings.
- The battery should be removed from the device if it is not to be used for an extended period. Otherwise, the battery might leak and damage the device. Never leave a discharged battery in the battery compartment.
- Make sure all batteries are newest when install, or battery life will be reduced.
- The device must never be subjected to shocks or impacts.
Declaration of Conformity
EM320-TILT is in conformity with the essential requirements and other relevant provisions of the CE, FCC, and RoHS.
Copyright © 2011-2023 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.
GET START
For assistance, please contact
Milesight technical support
Email: iot.support@milesight.com Support portal: support.milesight-iot.com Tel: 86-592-5085280 Fax: 86-592-5023065 Address: Building C09, Software Park III, Xiamen 361024, China
Revision History
Date | Doc Version | Description |
Feb.14, 2023 | V 1.0 | Initial version |
Aug. 15, 2023 | V 1.1 | Add pole mounting plate and installation |
Product Introduction
Overview
EM320-TILT is a LoRaWAN® tilt sensor mainly for angle measurement and asset movement detection. With a compact size and 3-axis accelerometer, EM320-TILT can be installed to the objects easily to measure its X,Y,Z tilt angles. In addition, EM320-TILT supports customizing initial position to detect movement based on angle changes and send threshold alarms. Compliant with Milesight LoRaWAN® gateway and Milesight IoT Cloud solution, users can know the angles and tilt threshold alarms in real-time via browser or mobile app remotely. EM320-TILT can be widely used in tree monitoring, pole lean detection, landslide monitoring, etc.
Features
- Built-in MEMS accelerometer sensor to measure the 3-axis angles of any objects
- Flexible threshold condition settings, suitable for different kinds of applications
- Easy to install, suitable for various types of objects as trees, poles, grounds, etc.
- IP67 waterproof enclosure for outdoor applications
- Anti-theft design on back cover to secure firm and sturdy installation
- Ultra-wide-distance wireless transmission up to line of sight of 15km
- Equipped with NFC for one touch configuration
- Function well with standard LoRaWAN® gateways and network servers
- Compliant with Milesight IoT Cloud
Hardware Introduction
Packing List
If any of the above items is missing or damaged, please contact your sales Representative.
Hardware Overview
When you install EM320-TILT on site, below is the angle number you can expect with the corresponding device gesture.
Dimensions(mm)
Dimensions(mm)
Power Button
The LED indicator and power button are inside the device. Switch on/off and reset can also be
configured via NFC.
Power Button
The LED indicator and power button are inside the device. Switch on/off and reset can also be configured via NFC.
Function | Action | LED Indication |
Turn On | Press and hold the button for more than 3 seconds. | Off → On |
Turn Off | Press and hold the button for more than 3 seconds. | On → Off |
Reset | Press and hold the button for more than 10 seconds. | Blink 3 times. |
Check
On/Off Status |
Quickly press the power button. |
Light On: Device is on. |
Light Off: Device is off. |
Operation Guide
NFC Configuration
EM320-TILT sensor can be monitored and configured via NFC. Please refer the following steps to complete the complete configuration.
- Download and install “Milesight ToolBox” App from Google Play or Apple App Store.
- Enable NFC on the smartphone and launch Milesight ToolBox.
- Attach the smartphone with NFC area to the device to read device information. Basic information and settings of the device will be shown on the ToolBox App if it’s recognized successfully. You can read and configure the device by tapping the Read/Write device on the App. In order to protect the security of the device, please change the password when first configuring. The default password is 123456.
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.
- EM320-TILT sensor can also be configured by dedicated NFC reader, which can be purchased from Milesight IoT.
LoRaWAN Settings
LoRaWAN settings is used for configuring the transmission parameters in the LoRaWAN® network.
Basic LoRaWAN Settings
Go to Device > Settings > 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 is 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. |
LoRaWAN Version | V1.0.2, V1.0.3 are available. |
Work Mode | It’s fixed as Class A. |
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 once. |
Rejoin Mode |
Reporting interval ≤ 35 mins: the device will send a specific number of LinkCheckReq MAC packets to the network server every reporting interval or 2*reporting interval to validate connectivity; If there is no response, the device will re-join the network.
Reporting interval > 35 mins: the device will send a specific number of |
LinkCheckReq MAC packets to the network server every reporting interval to
validate connectivity; If there is no response, the device will re-join the network. |
|
Set the number of
packets sent |
When rejoin mode is enabled, set the number of LinkCheckReq packets sent.
Note: the actual sending number is Set the number of packet sent + 1. |
ADR Mode | Allow network server to adjust data rate of the device. |
Tx Power | Transmit power 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 purchase.
- Select OTAA mode if you use Milesight IoT cloud to manage devices.
- Only OTAA mode supports rejoin mode.
LoRaWAN Frequency Settings
Go to Settings > LoRaWAN Settings to select supported frequency and select channels to send uplinks. Make sure the channels match the LoRaWAN® gateway.
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
Basic Settings
Go to Device > Settings > General Settings to change the reporting interval, etc.
Parameters | Description |
Reporting Interval |
Reporting interval of transmitting current sensor values to network
server. Default: 1080 mins, Range: 1-1080 mins |
Change Password |
Change the password for ToolBox App or software to read/write this
device. |
Threshold Settings
Go to Device > Settings > Threshold Settings to enable the threshold settings and input the angle threshold. You can set a relative initial surface to measure the deviance from an initial one and if the device detects the angle of a certain axis reaches the threshold based on the initial position, it will upload the current data instantly.
Parameters | Description |
Relative Initial Surface |
Click Setting to set current position of device as initial position to measure the deflection angle.
Click Clear to change the initial position back to (0.00°, 0.00°, -90.00°). Note: after writing Setting or Clear configuration, click Read to read the device to check if the initial position changes successfully. |
Over / ° | The maximum/upper limit of angle threshold. |
Below / ° | The minimum/lower limit of angle threshold. |
Alarm Condition |
Acceptable elements are “X”, “Y”, “Z”, “and”, “or” “only”, it takes 2 or 3 axes to complete an expression and the device will only read from left to right. If left blank, it will consider the condition as “or”.
Example: 1) XandYorZ means (X and Y) or Z, that is XandY meets the threshold or Z meets the threshold. 2) XorYandZ means (X or Y) and Z, that is XandZ meets the threshold or YorZ meets the threshold. |
Alarm Reporting
Interval |
After the threshold is triggered, the device will detect if the threshold is
triggered again according to this reporting interval. |
Alarm Reporting Times |
After the threshold is triggered, the device will detect according to Alarm Reporting Interval and if still triggered, the device will send the certain number
of alarms to NS. |
Example:
When X axis is detected to 0° (0° – 1.91° = -1.91° < -1°), it will trigger the threshold and upload a alarm package right away. If it changes back to normal, the device will also upload a data package immediately; if not, it will send alarm package after 1 minute. This process will repeat 2 times.
Maintenance
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 the upgrade.
- Only Android version ToolBox supports the upgrade feature.
Backup
EM320-TILT sensor supports configuration backup for easy and quick device configuration in bulk. Backup is allowed only for devices with the same model and LoRaWAN® 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 that saved in the smartphone and click Write, then attach it to another device to write configuration.
Note: Slide the template item to the left to edit or delete it. Click the template to edit the configurations.
Reset to Factory Default
Please select one of following methods to reset device: Via Hardware: Hold on reset button inside the device more than 10s. Via ToolBox App: Go to Device > Maintenance > Reset to click Reset, then attach smart phone with NFC area to device to complete reset.
Installation
Wall Mounting
- Remove the backplate on the back of the device, screw the wall plugs into the wall and fix the backplate with screws on it, then install back the device. Note that the vent of device should not face upwards when installing.
- Fix the bottom of the device to the cover with a fixing screw.
Pole Mounting
Switch the backplate on the back of the device to the pole mounting plate and fix the plate with a screw, then pass a cable tie through the plate and wrap it with device to the pole.
Installation Location
- Ensure the location of device is within the communication range of LoRaWAN® gateway and keep it away from metal objects.
- Ensure that the device is tightly attached without any gap to the surface to be measured of a certain object, and one of the 3 axes should be paralleled with the measuring axis of the object, otherwise, the result may not be correct.
Device Payload
All data are based on following format (HEX), the Data field should follow little-endian:
Channel1 | Type1 | Data1 | Channel2 | Type2 | Data2 | Channel 3 | … |
1 Byte | 1 Byte | N Bytes | 1 Byte | 1 Byte | M Bytes | 1 Byte | … |
For decoder examples please find files on https://github.com/Milesight-IoT/SensorDecoders.
Basic Information
EM320-TILT sensors report basic information of the sensor whenever joining the network.
Channel | Type | Description |
ff |
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 ff166785c38144050018 ff090110 ff0a0101 ff0f00 | |||||
Channel | Type | Value | Channel | Type | Value |
ff | 0b
(Power On) |
ff
(Reserved) |
ff | 01
(Protocol Version) |
01
(V1.0) |
Channel | Type | Value | Channel | Type | Value |
ff | 16 | 6785c381440 | ff | 09 | 0110 |
(Device SN) | 50018 | (Hardware version) | (V1.1) | ||
Channel | Type | Value | Channel | Type | Value |
ff |
0a (Software
version) |
0101 (V1.1) |
ff |
0f (Device Type) | 00
(Class A) |
Sensor Data
EM320-TILT sensors report sensor data according to reporting interval (1080mins by default).
Item | Channel | Type | Description |
Battery Level | 01 | 75 | UINT8, Unit: % |
Angle |
03 |
d4 |
6 Bytes, INT16
angle_x (2B) + angle_y(2B) + angle_z(2B), Unit:°, Resolution: 0.01° angle_x bit0: 0-normal; 1-trigger angle_y bit0: 0-normal; 1-trigger angle-z bit0: 0-normal; 1-trigger Note: the angles are based on relative initial surface. |
Example
017564 03d498fd 44ff 6b22 | |||||
Channel | Type | Value | Channel | Type | Value |
X: 98 fd => fd 98 | |||||
= (-616-0)/2 * 0.01 | |||||
= -3.08° | |||||
Y: 44 ff => ff 44 | |||||
= (-188-0)/2 * 0.01 | |||||
= -0.94° | |||||
01 |
75
(Battery Level) |
64=>100% |
03 |
d4 (Angle) | Z: 6b 22 => 22 6b
= (8811-1)/2 * 0.01 |
= 44.05° | |||||
X=fd 98 => 1111 1101 | |||||
1001 1000 | |||||
X_bit0: 0 => normal | |||||
Y_bit0: 0 => normal | |||||
Z_bit0: 1 => trigger |
Downlink Commands
EM320-TILT sensors support downlink commands to configure the device. The application port is 85 by default.
Command | Channel | Type | Description |
Reporting Interval |
ff |
03 | 2 Bytes, unit: s |
Reboot | 10 | ff | |
Threshold Alarm |
06 |
9 bytes:
CTRL (1B) + Min (2B) + Max (2B) +Alarm Reporting Interval (2B) + Alarm Reporting Times(2B) CTRL: Bit 2~0: 00- disable 01- below (minimum threshold) 010-over (maximum threshold) 011-within 100-below or over Bit 5~3: 001: X-axis angle 010: Y-axis angle 011: Z-axis angle Bit 6~7: 00 Min./Max. Threshold: INT16/100, Unit: ° |
|
Initial Position |
62 |
ff-set current position as initial position
fe-set the initial position to (0.00°, 0.00°, -90.00°) |
|
Alarm Condition |
63 |
8 bytes, hex string of ASCII expression; if ASCII expression takes less than 8 bytes, add 0 in the end to meet the size.
Note: before setting the condition, ensure the corresponding axis threshold is enabled, or this condition will not work. |
Example
- Set the reporting interval as 20 minutes.
ff03b004Channel Type Value ff 03 (Set Reporting Interval) b0 04=>04 b0=1200s =20 minutes - Set the X-axis threshold between 10° and 20°, it will detect the threshold every 1 minute, and send an alarm 3 times at most.
ff060ce803d0073c000300 Channel Type Value ff
06 (Set Threshold)
0c => 00 001 100 = when X-axis angle is below or over, e803 => 03e8=1000/100 = 10.00° d007 => 07d0= 2000/100 = 20.00°
3c00 => 60 s = 1 min 0300 => 00 03 = 3 times
- Reboot the device.
ff10ff Channel Type Value ff 10 (Reboot) ff (Reserved) - Set the alarm condition to be X and Y or Z, before setting ensure X, Y, and Z thresholds are enabled.
ff635826597c5a000000 Channel Type Value ff 63 (Set Alarm Condition) 5826597c5a000000 = X&Y|Z - Set current position as the initial position.
ff62ff Channel Type Value ff 62 (Set Initial Position) ff = set current position as initial position
FAQS
Q: What should I do if any hardware item is missing or damaged?
A: Contact your sales representative for assistance in case of missing or damaged hardware items.
Documents / Resources
![]() |
Milesight EM320-TILT Tilt Sensor Featuring Lorawan [pdf] User Guide EM320-TILT Tilt Sensor Featuring Lorawan, EM320-TILT, Tilt Sensor Featuring Lorawan, Sensor Featuring Lorawan, Featuring Lorawan |