Tech Talks Z Wave Software Structure
Tech Talks Z Wave Software Structure
Reference Code
2020
Introduction
2
The Language of Z-Wave
*https://www.silabs.com/wireless/z-wave/specification
3
Examples of the different command classes
§ Application
§ Binary Switch Set
§ Door Lock
§ Thermostat Setpoint
§ Encapsulation
§ Supervision
§ Security S2
§ Management
§ Version
§ Battery
§ Network
§ Remove
§ Node Provisioning
*https://www.silabs.com/wireless/z-wave/specification
4
End Device Design and the Application Framework
Command Class Module
Application Framework
Product
Sample - Binary Switch
Specific
Application - Multilevel Switch
Code
- Central Scene
Command - Door Lock
Class - User Code
Utility Modules - Notification
Toolbox -…
Transport
Layer
Utility Toolbox
- OTA Handler Transport Layer
- GPIO & Key Driver - Transmission Handler
Z-Wave Protocol
- Event and Job Scheduler - Security Handler
- Battery Module - Supervision CC
- Application Timer Module - Multichannel CC
Z-Wave Module/SoC -… -…
5
The Sample Applications
Wall Switch
6
End Device Design from Sample Applicaitons
Application
Framework
Z-Wave Protocol
Z-Wave Module/SoC
7
Application Configuration
8
Config_app.h
§ Device Role
§ Device Type
9
Config_app.h continued
§ Manufacturer Information
§ Association Information
10
Config_rf.h
§ Config_rf.h
§ RF Power
11
Main Source File
§ RF Frequency
§ Command Class List
12
Configuration Checklist
§ Role Type
§ Device Type
§ Manufacturer Information Application
§ Association Groups Framework
§ TX Power
Workflow
§ Command class list
§ RF region
13
Important Functions and Framework Flow
14
Application State Manager- On/Off Switch
§ STATE_APP_STARTUP Reset
§ Init state
§ STATE_APP_IDLE
§ The ‘looping’ state, if no other states Init
§ STATE_APP_LEARN_MODE
§ Inclusion, SmartStart, etc. Hold S1
for 10s Press S1
§ STATE_APP_TRANSMIT_DATA Factory Idle Learn Mode
§ Usually used for sending data (e.g.
Reset
notifications) Press S0
§ STATE_APP_RESET
§ “DeviceResetLocally” Transmit Data
Hold S1
for 10s
15
Events: Learn Mode State
16
Events: Idle State
17
Switching States: Idle State
18
Power Manager and Energy Modes
§ lock the chip from entering sleep mode EM4 Shutoff MCU shut down. No RAM retention.
Wake up by Reset or Interrupt.
19
Z-Wave 700 Components
W I R E L E S S S TA R T E R K I T ZGM130S – SiP MODULE EFR32ZG14 – MODEM SoC
One kit for both end device and End-devices & gateways Gateways only
gateway development LGA64 9x9 mm SiP QFN32 5x5 mm SoC
Development Kit
21
Documentation Online
§ Simplicity Studio:
§ https://www.silabs.com/products/developme
nt-tools/software/simplicity-studio
§ ITU 9959:
§ file:///C:/Users/cahernan/Downloads/T-REC-
G.9959-201202-S!!PDF-E.pdf
§ Demos
§ Preconfigured Sample Apps
§ Sample Applications
§ SDK Documentation