Trident IoT Z-Wave SDK
Loading...
Searching...
No Matches
Sensor PIR sample application

Sensor PIR

The Z-Wave certified Sensor PIR application shows a presence/movement detector implementation for controlling other devices and for sending notifications.

Configuration

Role Type Reporting Sleeping End device (RSS)
Supporting Device Type Data reporting
Device Type Notification sensor
Generic Type Sensor Notification
Specific Type Notification Sensor
Requested security keys S2_UNAUTHENTICATED, and S2_AUTHENTICATED

Sensor PIR transmits the following notification types/events:

  • Home Security
    • Motion detection (unknown location)

Sensor PIR supports the "push mode" only of Notification CC.

Supported Command Classes

Sensor PIR implements mandatory and some optional command classes. The table below lists the supported Command Classes, their version, and their required Security class, if any.

Command Class Version Required Security Class
Association 2 Highest granted Security Class
Association Group Info 3 Highest granted Security Class
Battery 1 Highest granted Security Class
Device Reset Locally 1 Highest granted Security Class
Firmware Update Meta Data 5 Highest granted Security Class
Indicator 3 Highest granted Security Class
Manufacturer Specific 2 Highest Granted Security Class
Multi-Channel Association 3 Highest granted Security Class
Notification 8 Highest granted Security Class
Powerlevel 1 Highest granted Security Class
Security 2 1 None
Supervision 1 None
Transport Service 2 None
Version 3 Highest granted Security Class
Wake Up 2 Highest granted Security Class
Z-Wave Plus Info 2 None

Basic Command Class mapping

Basic Command Class is not mapped to any of the supported command classes

Association Group configuration

Application Association Group configuration

IDNameNode CountDescription
1LifelineX

Supports the following command classes:

  • Device Reset Locally: triggered upon reset.
  • Battery: triggered upon low battery.
  • Notification: triggered upon a movement detection (simulated by button BTN2). After a while, a cancel notification will be issued.
  • Indicator Report: Triggered when LED1 changes state.
2Basic SetYUpon a movement detection (simulated by button BTN2), nodes associated in this group will first receive a Basic Set with 0xFF (turn on) and after a while receive a Basic Set with 0x00 (turn off).

X: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 1. Y: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 0.

Usage on Linux platform - zwave_soc_sensor_pir

Application uses single character commands read from standard input.

Character Description
1 Send battery report
2 Activate sensor
3 Deactivate sensor

User Interface on the DKNCZ20 board

Buttons

ButtonActionDescription
BTN0PressResets the chip.
BTN1PressToggles learn mode.
Hold (5sec)Resets the application to factory settings.
BTN2PressActivates PIR.
Hold (5sec)Sends a battery report.

LEDs

LEDBehaviorDescription
GreenFlashingLearn mode is active.
OffLearn mode is inactive.