Milesight LoRaWAN WS50 Series User manual

Wall Switch
Featuring LoRaWAN®
WS50x
User Guide

2
Safety Precautions
Milesight will not shoulder responsibility for any losses or damages resulting from not following
the instructions of this operating guide.
The installation and maintenance must be conducted by a qualified service person and
should strictly comply with the electrical safety regulations of the local region.
Ensure the breaker is power out during the installation.
Do not leave any object inside the switch box when installation.
The device must not be modified in any way.
In order to protect the security of the device, please change the device password when first
configuration. The default password is 123456.
In order to realize the best data transmission, ensure the device is within the signal range of
the LoRaWAN®gateway and keep it away from metal objects and obstacles.
Do not overload the maximum capacity to avoid damaging the device.
The device is intended for indoor use only. Do not place the device where the temperature is
below/above the operating range.
Do not place the device close to naked flames, heat source (such as oven or sunlight), cold
source, liquid, and objects with extreme temperature changes.
Use the device in a clean environment only. Dusty or dirty environments may prevent the
proper operation of this device.
The device must never be subjected to physical shocks or strong vibration.
Declaration of Conformity
WS50x is in conformity with the essential requirements and other relevant provisions of the CE,
FCC, and RoHS.
Copyright © 2011-2022 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.

3
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
June 24, 2022
V 1.0
Initial version

4
Contents
1. Product Introduction ......................................................................................................................... 5
1.1 Overview ...................................................................................................................................5
1.2 Features ................................................................................................................................... 5
2. Hardware Introduction ...................................................................................................................... 5
2.1 Packing List ..............................................................................................................................5
2.2 Hardware Overview ................................................................................................................. 6
2.3 Dimensions (mm) ....................................................................................................................6
2.4 Wiring Diagram ........................................................................................................................ 7
3. Installation ......................................................................................................................................... 7
4. Operation Guide .................................................................................................................................8
4.1 NFC Configuration ................................................................................................................... 8
4.2 LoRaWAN Settings .................................................................................................................. 9
4.2.1 Basic Settings ............................................................................................................... 9
4.2.2 Frequency Settings .....................................................................................................10
4.2.3 Multicast Settings .......................................................................................................11
4.3 General Settings .................................................................................................................... 14
4.4 LoRa D2D Settings .................................................................................................................14
4.5 Maintenance .......................................................................................................................... 15
4.5.1 Upgrade ....................................................................................................................... 15
4.5.2 Backup .........................................................................................................................16
4.5.3 Reset to Factory Default .............................................................................................17
5. Device Payload ................................................................................................................................ 18
5.1 Basic Information .................................................................................................................. 18
5.2 Sensor Data ........................................................................................................................... 18
5.3 Downlink Commands ............................................................................................................ 19

5
1. Product Introduction
1.1 Overview
WS50x is a smart LoRaWAN®wall switch for the local and remote control of lights and electrical
appliances. It adopts two standard sizes for most of international wall switch types, which can
replace the traditional wall switches directly. Compliant with Milesight LoRaWAN®gateway and
Milesight IoT Cloud solution, WS50x can be monitored and controlled via web page or mobile
App remotely and triggered by other Milesight sensors. Besides LoRaWAN®, WS50x supports
Milesight LoRa D2D communication protocol, which can set up connection quickly and be
controlled without gateway. WS50x can be widely used for wireless control of indoor lights, fans,
heaters, machines, etc.
1.2 Features
Support local or remote control via a relay with high reliability
Support surge protection, and overload protection to prevent the device from damage
Collect data of current, voltage, power, and electrical consumption
Built-in switch indicator for easy use in dark environment
Up to 15 km communication range
Easy configuration via NFC
Standard LoRaWAN®technology
Compatible with Milesight IoT Cloud
Support Milesight LoRa D2D protocol to enable ultra-low latency control without gateway
Support multicast for control in bulk
2. Hardware Introduction
2.1 Packing List
1 × WS50x Wall
Switch
2 × Mounting Screws
1 x Quick Start Guide
1 x Warranty Card
If any of the above items is missing or damaged, please contact your sales representative.

6
2.2 Hardware Overview
2.3 Dimensions (mm)

7
2.4 Wiring Diagram
3. Installation
1. Ensure the circuit has been shut off and the old switch has been taken off.
2. Open the front panel of WS50x switch.
3. Connect corresponding wires to the WS50x switch.
4. Fix the WS50x switch to the switch box with mounting screws, then fix the front panel back to
the device.

8
4. Operation Guide
4.1 NFC Configuration
WS50x can be configured via an NFC supported mobile phone.
1. Download and install “Milesight ToolBox” App from Google Play or Apple App Store.
2. Enable NFC on the smartphone and open Milesight ToolBox.
3. Attach the smartphone to NFC area of the switch to read device information.
4. Basic information and settings of WS50x switch will be shown on the ToolBox if it’s
recognized successfully. You can read and configure the device by tapping the Read/Write
button on the App. In order to protect the security of devices, password validation is required
when first configuration. The default password is 123456.
Note:
1) Ensure where is the NFC area on your smartphone, and it’s recommended to take off the
phone case.
2) If the smartphone fails to read/write configurations via NFC, keep the phone away and back
to try again.
3) WS50x can also be configured by ToolBox software via a dedicated NFC reader provided by
Milesight IoT.

9
4.2 LoRaWAN Settings
LoRaWAN settings are used to configure the data transmission parameters in the LoRaWAN®
network.
4.2.1 Basic Settings
WS50x supports basic configurations like join type, App EUI, App Key and other information. You
can also keep all settings unchanged 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, the default port is 85.
Join Type
OTAA and ABP modes are both available.
Application Key
Appkey for OTAA mode is default as
5572404C696E6B4C6F52613230313823.
Device Address
DevAddr for ABP mode is default as the 5th to 12th digits of SN.
Network Session
Key
Nwkskey for ABP mode is default as
5572404C696E6B4C6F52613230313823.

10
Application
Session Key
Appskey for ABP mode is default as
5572404C696E6B4C6F52613230313823.
LoRaWAN Version
V1.0.2 and V1.1.0 are available.
Work Mode
This device supports Class C only.
RX2 Data Rate
RX2 data rate to receive downlinks or LoRa D2D commands.
RX2
Frequency/MHz
RX2 frequency to receive downlinks or LoRa D2D commands.
Confirmed Mode
If the device does not receive ACK packet from network server, it will resend
data once.
Rejoin Mode
The device will send a specific number of LinkCheckReq MAC packets to the
network server every 30 mins to validate connectivity; If there is no response,
the device will re-join the network.
ADR Mode
Allow the network server to adjust the data transmission rate of the device.
Spread Factor
If ADR is disabled, the device will send data via this spread factor.
Tx Power
Transmit power of the device.
Note:
1) Please contact sales representative for device EUI list if there are many units.
2) Please contact sales representative if you need random App keys before purchase.
3) Select OTAA mode if you use Milesight IoT Cloud to manage devices.
4) Only OTAA mode supports rejoin mode.
4.2.2 Frequency Settings
Select supported frequency and channels to send uplinks. Make sure the channels match the
LoRaWAN®gateway.
This manual suits for next models
3
Table of contents
Other Milesight Switch manuals



















