If any of the above items is missing or damaged, please contact your sales representative.
1.1 Overview
WS202 is a PIR sensor based on passive infrared technology to detect a motion or occupancy.
WS202 can detect whether there is movement within the range of 6-8 m. Besides, WS202 equips
with light sensor which can link PIR detection results to trigger scenes. WS202 can be widely us
ed in smart homes, smart offices, schools, warehouses, etc.
Sensor data are transmitted in real-time using the standard LoRaWAN®protocol. LoRaWAN
enables encrypted radio transmissions over long distances while consuming very little power.
The user can get alarm through Milesight IoT Cloud or through the user's own
Application Server.
1.2 Features
Built-in light sensor, combine PIR sensor to achieve triggers
Up to 15 km communication range
Easy configuration via NFC
Standard LoRaWAN®support
Cpmpatible with Milesight IoT Cloud
2. Hardware Introduction
2.1 Packing List
®
Page 6
6
2.2 Hardware Overview
Function
Action
LED Indicator
PIR Detection
PIR is triggered (network unregistered)
Red, blink once
PIR is triggered (network registered)
Green, blink once
Network Status
Send join network requests
Red, blinks once
Joined the network successfully
Green, blinks twice
Reboot
Press and hold the reset button for more than 3s
Slowly blinks
Reset to Factory
Default
Press and hold the reset button for more than 10s
Quickly blinks
2.3 Dimensions (mm)
2.4 LED Patterns
Page 7
7
3. Operation Guide
3.1 NFC Configuration
WS202 can be configured via NFC-enabled smartphone.
1. Pull out the battery insulating sheet to power on the device. The indicator will light up in green for 3
seconds when device turns on.
2. Download and install “Milesight ToolBox” App from Google Play or App Store.
3. Enable NFC on the smartphone and open Milesight ToolBox.
4. Attach the smartphone with NFC area to the device to read device information.
5. Basic information and settings of the device will be shown on ToolBox 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, password validation is required when
configuring via a new smartphone. Default password is 123456.
Note:
1) Check the location of smartphone NFC area and it’s recommended to take off phone case.
2) If the smartphone fails to read/write configurations via NFC, move the phone away and back
to try again.
3) WS202 can also be configured by ToolBox software via dedicated NFC reader provided by
Milesight IoT, you can also configure it via TTL interface inside the device.
3.2 LoRaWAN Settings
LoRaWAN settings are used for configuring the transmission parameters in LoRaWAN®network.
Page 8
8
Basic LoRaWAN Settings:
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 modes are available.
Application Key
Appkey for OTAA mode, default is 5572404C696E6B4C6F52613230313823.
Device Address
DevAddr for ABP mode, default is the 5thto 12thdigits 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 are being sent, the device will re-join.
Reporting interval > 30 mins: device will send specific mounts of LoRaMAC
packets to check connection status at every reporting interval; If no reply after
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.
Page 9
9
specific packets are being sent, the device will re-join.
ADR Mode
Allow network server to adjust data rate of the device.
Tx Power
Transmit power of 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.
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.
If device 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
Page 10
10
Note:
Parameters
Description
Reporting Interval
The interval of reporting PIR, light status and battery level to network
server. Default: 30 mins
Note: WS202 will also report “triggered” status of PIR sensor immediately
when it detect motions.
For -868M model, default frequency is EU868;
For -915M model, default frequency is AU915.
3.3 General Settings
Go to Device->Setting->General Settings of ToolBox App to change the reporting interval, etc.
Page 11
11
Idle Time
Reporting/s
When the PIR sensor does not detect motion for a period of Idle Time ,
device will report “not triggered” status. Default: 120 s
LED Indicator
Enable or disable the light indicating in chapter 2.4.
Note: The indicator of reset button is not allowed to disable.
Low Battery Alarm
Interval
The device will report low battery alarms according to this interval when the
battery remaining capacity is lower than 10%.
Change Password
Change the password for ToolBox App to write this device.
3.4 Threshold Settings
Users can define the Bright or Dark state via detection data of light sensor in threshold settings.
Besides, when the PIR sensor is triggered and light status meets the threshold, WS202 will send
alarms immediately. Otherwise, it will not send data right away.
3.5 Maintenance
3.5.1 Upgrade
1. Download firmware from Milesight website to your smartphone.
2. Open ToolBox App and click “Browse” to import firmware and upgrade the device.
Note:
1) Operation on ToolBox is not supported during upgrade.
2) Only Android version ToolBox supports the upgrade feature.
Page 12
12
3.5.2 Backup
WS202 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.
1. Go to “Template” page on the App and save current settings as a template. You can also edit
the template file.
2. 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 the template. Click the template to edit
the configurations.
Page 13
13
3.5.3 Reset to Factory Default
Please select one of the following methods to reset device:
Via Hardware: Hold on the reset button for more than 10s. After reset complete, the indicator
will blink in green twice, then device will reboot.
Via ToolBox App: Go to Device -> Maintenance to tap “Reset”, then attach smartphone with NFC
area to device to complete reset.
4. Installation
3M Tapes Fix:
Paste 3M tape to the back of the device, then tear the other side and place it on a flat surface.
Screw Fix:
Remove the back cover of the device, screw the wall plugs into the wall and fix the cover with scr
ews on it, then install back the device.
Page 14
14
Note:
Channel1
Type1
Data1
Channel2
Type2
Data2
Channel 3
...
1 Byte
1 Byte
N Bytes
1 Byte
1 Byte
M Bytes
1 Byte
...
Channel
Type
Data Example
Description
ff
01(Protocol Version)
01
V1
08 (Device SN)
61 27 a2 17 41 32
Device SN is
6127a2174132
09 (Hardware Version)
01 40
V1.4
0a (Software Version)
01 14
V1.14
0f (Device Type)
00
Class A
ff 09 01 00 ff 0a 01 02 ff 0f 00
Channel
Type
Value
Channel
Type
Value
ff
09
(Hardware
0100 (V1.0)
ff
0a
(Software Version)
0102
(V1.2)
1. Adjust the installation direction according to detection area requirement.
2. WS202 can be mounted on wall or ceiling. It’s recommended to install at 1.5~2.5m from the
floor.
3. Ensure the detection area not have moving object like waving trees and fans.
4. Ensure the detection area is not blocked by curtains or barriers.
5. Device Payload
All data are based on the following format (HEX):
For decoder examples you can find at https://github.com/Milesight-IoT/SensorDecoders.
5.1 Basic Information
WS202 reports basic information of device every time when it joins the network.
Example:
Page 15
15
5.2 Sensor Data
Version)
Channel
Type
Value
ff
0f
(Device Type)
00
(Class A)
Channel
Type
Description
01
75 (Battery Level)
UINT8, Unit: %
03
00 (PIR Status)
01: PIR is triggered
00: PIR is not triggered
04
00 (Light Status)
01: Bright
00: Dark
01 75 64 03 00 01 04 00 01
Channel
Type
Value
Channel
Type
Value
01
75 (Battery)
64 => 100%
03
00 (PIR
Status)
01=> PIR is
triggered
Channel
Type
Value
04
00 (Light
Status)
01=> Bright
Channel
Type
Data Example
Description
ff
03 (Set Reporting
Interval)
b0 04
b0 04 => 04 b0 = 1200s
WS202 reports sensor data and battery level according to reporting interval (30 mins by default)
or when PIR or light status changes.
Example:
5.3 Downlink Commands
WS202 supports downlink commands to configure the device. Application port is 85 by default.
-END-
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.