Getting Started With Z-Wave
Getting Started With Z-Wave
com/
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html
Instruction
Getting started with Z-Wave?
Document No.:
Version:
Description: INS11469 2
Approved by:
Date CET Initials Name Justification 2010-07-15 13:16:30 CHL Chong Li
of NTJ
on behalf
http://www.wenkuxiazai.com/
This document is the property of Sigma Designs Inc. The data contained herein,
in whole
or in part, may not be duplicated, used or disclosed outside the recipient for
any purpose.
This restriction does not limit the recipient's right to use information
contained in the data if
it is obtained from another source without restriction.
INS11469-2 Getting started with Z-Wave? 2010-07-15
REVISION RECORD
Doc.
Date
By
Pages
affehttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlcted
Rev
1 20100310 CHL All
2 20100708 CHL 4.3.2.3 & 5.2
JFR
Brief description of changes Initial draft Changed names of development mode hex
files
INS11469-2 Getting started with Z-Wave? 2010-07-15
Table of Contents
1
http://www.wenkuxiazai.com/
2
2.1
2.2
3
4
ABBREVIATIONS...................................................................
..............................................................1
INTRODUCTION....................................................................
...............................................................2
Purpose.........................................................................
.....................................................................2
Audience
and
prerequisites...................................................................
.............................................2http://www.wenkuxiazai.com/doc/bbc
a38fdc8d376eeafaa3105.html
WHATS
IN
THE
Z-WAVE
HOME
CONTROL
KIT?............................................................................
3
GETTING
STARTED.........................................................................
...................................................5
4.1
Identifying
your
Z-Wave
modules
and
development
boards..............................................................5
4.2
Download
and
install
the
Z-Wave
Software
Developers
Kit
(SDK)...................................................5
4.3
Programming
Z-Wave
modules
and
create
simple
Z-Wave
network..............................................6
4.3.1
Prepare
Z-Wave
module
programming
environment.................................................................6
4.3.2
Program
Z-Wave
modules
and
install
PC
http://www.wenkuxiazai.com/
tools..........................................................................7
4.3.3
Create
simple
Z-Wave
nehttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmltwork.............
................................................................................
..9 5
5.1
5.2
6
6.1
6.2
7
BUILDING
YOUR
OWN
Z-WAVE
APP.............................................................................
.................10
KEIL?
Software
Development
Tool............................................................................
....................10
400
series
Development
Mode............................................................................
.............................11
DEVELOPMENT
TOOLS...........................................................................
.........................................15
Z-Wave
Programmer
&
Development
Platform........................................................................
........15
Z-Wave
Zniffer.........................................................................
..........................http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa310
5.html...............................16
Z-WAVE
OVERVIEW........................................................................
..................................................17
7.1
Z-Wave
Network
Node
Types...........................................................................
...............................17
http://www.wenkuxiazai.com/
7.1.1
Controller
Nodes...........................................................................
............................................17
7.1.2
Slave
Nodes...........................................................................
..................................................18
7.2
Network
Wide
Inclusion.......................................................................
.............................................20
7.3
Dynamic
Route
Resolution......................................................................
.........................................21
://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html8
SAMPLE
APPS............................................................................
.......................................................22
8.1
Embedded
Sample
Applications....................................................................
..................................22
8.1.1
Binary
Sensor..........................................................................
.................................................22
8.1.2
Development
Controller......................................................................
......................................23
8.1.3
LED
Dimmer..........................................................................
...................................................23
8.1.4
Serial
http://www.wenkuxiazai.com/
API.............................................................................
.....................................................24
8.1.5
MyProduct........http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html...
................................................................................
......................................24
8.2
PC
Sample
Apps............................................................................
..................................................25
8.2.1
Z-Wave
PC
Controller
incl.
ERTT
(Enhanced
Reliability
Test
Tool)........................................25
8.2.2
Z-Wave
UPnP
Bridge..........................................................................
.....................................26
INS11469-2 Getting started with Z-Wave? 2010-07-15 1 ABBREVIATIONS Abbreviation
Explanation
ADR Adaptive Source Routing
API Application Programming Interface
DRR Dynamic Route Resolution
DUT Device Under Test
Listening Routing Slave
GUI Graphical User Interface
NWI Network Wide Inclusion
OTP
One
Time
http://www.wenkuxiazai.com/
Programmhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlable
SIS SUC Id Server
SUC Static Update Controller
SDK Software Developers Kit
&
http://www.wenkuxiazai.com/
Control Kit.
2.1 Purpose
The Z-Wave modules included in the Z-Wave Home Control Kit are not preprogrammed enabling the developer to select which Z-Wave sample application
should be the base for evaluation, testing or other objectives.
The purpose of this document is to provide the reader a step-by-step instruction
on how to get started with the Z-Wave Home Control Kit in terms of programming
the Z-Wave moduhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlles,
creating a simple network and getting familiar with the most commonly used ZWave developer tools.
2.2 Audience and prerequisites
This document is targeted to developers designing and developing Z-Wave enabled
products and also for general interest in learning how a Z-Wave network is being
created, from Z-Wave chip programming to controlling a Z-Wave device.
The reader of this document is expected to have read the introductory Z-Wave
document, Z-Wave Node Type Overview and Network Installation Guide which is
available for download at .
INS11469-2 Getting started with Z-Wave? 2010-07-15 3 WHATS IN THE Z-WAVE HOME
CONTROL KIT?
The Z-Wave Home Control Kit consists of the following packages: Z-WAVE BASE KIT
The Z-Wave Base Kit consists of
development platform modules, power
http://www.wenkuxiazai.com/
supply units, cables etc. that are necessary
to
prhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlogram
the
Z-
Wave modules with a ZWave application. Z-WAVE REGION KIT The Z-Wave Region Kit comes in different
frequency variants and consists of Z-Wave 300 and 400 series based reference
design modules that are RF matched for the specific region.
also contains ZM4101, ZM4102 and ZM3102 modules that are ready for integration
directly into the OEM product.
Qty 10 2 3 2
documentation,
latest
SDK
release,
developers
FAQ,
knhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlown
issues database and much more. Contains: Z-Wave? Protocol Stack Z-Wave? API
function descriptions and
technical documentations Embedded and PC based sample
applications
Development tools,
Z-Wave Programmer,
Z-Wave Zniffer,
Build environments,
http://www.wenkuxiazai.com/
1
1 Product Name ZDP03A, Z-Wave Programmer / Development Platform ZM4125-S, Socket
based module for ZM4101 Flexi Antenna USB Cable Battery pack Power Supply unit
Getting Started with Z-Wave
Z-Wave Brand Kit
All Z-Wave modules included are not programmed and must be programmed ONLY with
the correct frequency settings i.e. US based modules must only be programmed
with US frequency based applications.
* Not included in region kit for Japan.
Gettinghttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html
The Z-Wave Technical Service website is an on-line resource designed to give all
Z-Wave Developers access to the latest Z-Wave SDK, Z-Wave Device & Command Class
development projects, Z-Wave Certification program and much more technical
documentation.
NOTE! Access to this web service is for Z-Wave licensees ONLY and do not share
the login data registered on the Sigma Designs or the Z-Wave Alliance homepage.
How to get access?
Having purchased a Z-Wave Home Control Kit and accepted the Z-Wave Developer's
Kit Agreement, you are entitled to be granted access to the Z-Wave Technical
http://www.wenkuxiazai.com/
Service website. We strive to get the information about new Z-Wave Partners from
our
distributors as quickly as possible, so you will probably already have been
created as a user of the website with your e-mail address as username.
In
case
you
have
yethttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html
login information then please write an email to
not
receive
your
For additional kits and/or Z-Wave modules contact Sigma Designs distribution
partners:
Digi-Key
701 Brooks Avenue South,
Thief River Falls, MN 56701
USA
Fax:
Phone:
1-800-344-4539 or
1-218-681-6674
1-218-681-3380
Email:
Web:
http://www.wenkuxiazai.com/
? ZDP03A, Z-Wave Programmer / Dev. Platform. This board is used to connect
ZM4125-S, ZM4125 or ZM3120. The Z-Wave Programmer PC app will interface
to
the
programming
ohttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlf
software
the
ATmega128
sub-1GHzhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html
http://www.wenkuxiazai.com/
optimal RF performance.
4.2 Download and install the Z-Wave Software Developers Kit (SDK)
NOTE! The Z-Wave SDK runs on a Microsoft Windows environment.
First step is to download your copy of a Z-Wave SDK from the Z-Wave Technical
Service website. Navigate to the SOFTWARE menu and download the latest
release that fits your development platform i.e. 300 or 400 series platform.
Once download is completed, unzip the SDK into your selected folder.
Second step is to install the SDK into your local hard drive. The content that
you have unzipped contains a start here.html file that will display the SDK
contents using an internet browser e.g. Windows Internet Explorer. Open the file
start here.html,
navigate
to
Developers
icon. This action is linked to the setup.exe file located in the folder
and will copy the Z-Wave Developers Software into your local hard drive. For
detailed description of SDK contents, refer to the specific software release
note.
INS11469-2 Getting started with Z-Wave? 2010-07-15
4.3 Programming Z-Wave modules and create a simple Z-Wave network
This chapter will take you through basic steps that prepare your pc environment
for programming the Z-Wave modules and to learn how a simple Z-Wave network is
created by using the tools provided by the Z-Wave SDK and the Z-Wave modules
from the Z-Wave Home Control Kit.
4.3.1 Prepare Z-Wave module programming environment
In order to program a Z-Wave module using the tools and apps from the Z-Wave
http://www.wenkuxiazai.com/
Home Control Kits you must prepare your pc environment by installing USB drivers
and
the
Z-Wave
Programmer
from
above
step
Thishttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html
a.
step
is
http://www.wenkuxiazai.com/
and ZDP03A.
Ctrl D in
http://www.wenkuxiazai.com/
Program and re-confirm when being asked to program the OTP memory. Reset the
module by a single press on the white push-button next to the DC power
plug of ZDP03A and verify LED1 is blinking, which is an indication the Z-Wave
module is programmed with Z-Wave Zniffer firmware. b. Install the Z-Wave Zniffer
PC app - run the setup.exe located in
Wave
Technical
Service
website,
whichever
is
the
revisionhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html.
latest
You
can
verify the SDK Zniffer PC app revision by the software release note of the SDK
in question. c. Connect the Z-Wave Zniffer module to PC - connect a serial cable
on the RS232-1 port of ZDP03A to the PCs COM port or use a RS232 to USB
converter. NOTE! Guidelines in how to install RS232 to USB converter is not
covered by this Getting Started with Z-Wave document.
d. Launch the Z-Wave Zniffer PC app - Click on has been launched, click on the
Capture menu and Port Selection and Auto. Allow the Zniffer PC app
to detect the connected Z-Wave Zniffer. Now select the frequency you are working
on also in the Capture menu. For detailed
instructions in how to use the Z-Wave Zniffer PC app, refer to the Z-Wave
Zniffer User Guide [INS10249].
INS11469-2 Getting started with Z-Wave? 2010-07-15
4.3.2.2 Z-Wave PC controller app & Z-Wave Serial API Static Controller
://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlarPerform same steps as
in 4.3.2.1 Z-Wave Zniffer PC app & Z-Wave Zniffer module,
only this time program another ZM4125 module on another available ZDP03A board
with serialapi_controller_static_ZW040x_xx.hex located in
external NVRAM by click on Erase under External Non-Volatile Memory on
http://www.wenkuxiazai.com/
the Z-Wave Programmer PC app. If you prefer to program the controller module
with a unique Z-Wave home id this is also the time to do so.
USE CAUTION WHEN PROGRAMMING THE Z-WAVE MODULES! MAKE SURE TO ONLY PROGRAM THE
MODULES WITH THE BINARY FILES THAT ARE BUILD WITH THE CORRESPONDING FREQUENCY
SETTING
E.G. AN US IMAGE MUST BE PROGRAMMED INTO A Z-WAVE MODULE
RUNNING US FREQUENCY.
On the PC side you must install the Z-Wave PC controller app located in
Connect the Z-Wave Serial API Static Controller to your PC following the same
steps
as
the
Z-Wave
Zniffer
setup
ZDP03A
board
with
leddimmer_ZW040x_xx_devmode.hex
located
in
http://www.wenkuxiazai.com/
Note that this file includes the naming _devmode. This is the file that must
be programmed into the OTP memory area of the 400 series chip to run development
mode
which
is
exphttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmllained in chapter
5 Building your own Z-Wave app.
When programming is done, remove power from the ZDP03A board.
INS11469-2 Getting started with Z-Wave? 2010-07-15
4.3.3 Create a simple Z-Wave network
This chapter will take you through the basic steps on how to set-up a Z-Wave
network using the PC tools and a Z-Wave module you have prepared from previous
chapters.
1. Launch the Z-Wave Zniffer PC app if not already done according to chapter
4.3.2.1, and start
recording Z-Wave RF frames.
2. Launch the Z-Wave PC Controller app if not already done according to chapter
4.3.2.2 and press
the Add button
Zniffer PC app
frames are being captured continuously with a pre-defined interval. This frame
is named
Transfer
Presentation
and
is
an
indication
from
the
controllerhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html
that it is now
Z-Wave
device
http://www.wenkuxiazai.com/
ready to include a new device into the network.
3. Apply power to the module programmed with the LED Dimmer app from chapter
4.3.2.3 and
verify on the Z-Wave Zniffer frames are being captured.
The expected frame is a Node Information Frame that is being broadcasted.
This frame is the
identity of a Z-Wave app and contains important information about the profile of
the device.
While the Z-Wave PC Controller is in Add mode and a Node Info is received it
verify whether
the device is in default state i.e. node id = 0 and in such case it will start
the inclusion process.
4. Verify the node list has been incremented with a new device on the Z-Wave PC
Controller app
and study the frames captured on the Z-Wave Zniffer.
5.
Now
control
the
newly
included
LED
dimmer
by
clicking
on
the
and verify the LED Dimmer is being switched On/Off respectively and
http://www.wenkuxiazai.com/
PC Controller app:
On this menu you will be listed with all the command classes the device has
advertised support
for. Try play around with the Multilevel Switch Command Class and get a feel of
how to dim
up/down the LED Dimmer and most importantly study the frames captured by the ZWave
Zniffer.
and press 6. To remove the LED Dimmer from the network simply press the
Remove button
three times within 1.5 seconds on the button of the ZM4125-S module of the LED
Dimmer.
Notice the Z-Wave Zniffer and verify the LED Dimmer is now set back to node id
0.
INS11469-2
Getting
started
with
Z-Wave?
2010-07-15
http://www.wenkuxiazai.com/
KEIL
compiler to create the binary HEX file. The Z-Wave SDK includes sample apps
for your reference.
2. If you are creating a controller or enhanced slave application, you must
initialise/erase and program the external EEPROM / Serial FLASH with a unique
home id using the Z-Wave Programmer. This action is only necessary once.
However, if the application is based on SDK 4.5x or SDK 6.0x programming the
home id is optional since the Z-Wave stack will create a random home id
whenever the controller application is set back to default.
3.
The
final
step
is
to
program
the
Z-Wave
module
using
the
Z-Wave
Proghttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlrammer.
5.1 KEIL? Software Development Tool
The KEIL? Software development tool for 8051 micro controllers is a third party
software tool that is required to build your embedded Z-Wave application and is
not supplied with the Z-Wave SDK or Z-Wave Home Control Kit.
Refer to the SDK software release note for details on which revision of the
Assembler,
C compiler, Linker and Librarian you should use to assure seamless integration
with the Z-Wave protocol APIs.
The KEIL? Developers Kits can be purchased either through Sigma Designs or
directly from KEIL? or from one of their local distributors. Visit
for details.
http://www.wenkuxiazai.com/
KEIL Software Inc. KEIL Elektronik GmbH
1501 10th Street, Suite 110 Bretonischer Ring 15
Plano, TX 75074 D-85630 Grasbrunn
USA Germany Toll Free:
Phone:
1107 Fax:
Fax:
1 800-348-8051 Phone:
49 089 45 60 40 0
1 972-http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html31249 089 46 81 62
1 972-312-1159 Sales:
Support:
Sales:
http://www.wenkuxiazai.com/
function #2 configured as patchable is being processed.
INS11469-2 Getting started with Z-Wave? 2010-07-15 The patchable system does
also mean there must be programmed separate images into the RAM area which
contains the patchable functions and into the OTP area containing the state
machine.
In order to do so different source code files must exists; one main application
file and another containing the patched function codes. An example is below two
files from the LED Dimmer sample app:
? LEDdim.c - contains the source codes for the LED Dimmer application state
machine.
? LEDdim_patch.c - contains the patchable source code for the LED Dimmer
app.
When you build your Z-Wave application using the MAKE file system as is there
will be generated a couple of binary files for both the normal OTP mode and
development mode files:
1)
aphttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlplication-
name_ZW040x_xx.hex
2) application-name_ZW040x_xx_devmode.hex
3) application-name_ZW040x_xx_devmode_OTP.hex
4) application-name_ZW040x_xx_devmode_patch.hex
5) application-name_ZW040x_xx_devmode_patch_RAM.hex
6) application-name_ZW040x_xx_devmode_RAM.hex
http://www.wenkuxiazai.com/
Not all files are being programmed into the Z-Wave module; hence caution must be
taken when selecting the files for the specific area.
File no. 1 application-name_ZW040x_xx.hex is the normal file i.e. normal OTP
mode and no development mode. This mode will not search for any patchable
functions.
File no. 2 application-name_ZW040x_xx_devmode.hex is the OTP file in
development mode. The patchable functions existing in this file expects to find
patchable functions in the SRAM area, but in case it is not found it will
execute its own function.
File
no.
application-
namehttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html_ZW040x_xx_devmo
de_patch_RAM.hex is the RAM file in development mode. This file contains the
patchable functions and can be re-written multiple times.
File no. 3, 4 and 6 are not to be programmed into the Z-Wave ASIC.
INS11469-2 Getting started with Z-Wave? 2010-07-15 From previous chapter 4.3.2.3
Z-Wave LED Dimmer, you was instructed to program the ZM4101 with the file named
leddimmer_ZW040x_xx
_devmode.hex.
By default all sample applications provided with the 400 series platform SDK
comes with patchable Z-Wave functions: ApplicationInitHW, ApplicationInitSW,
ApplicationTestPoll, ApplicationPoll, ApplicationCommandHandler,
http://www.wenkuxiazai.com/
ApplicationNodeInformation,
ApplicationSlaveUpdate
or
The 400 series development platform makes it more flexible, comfortable and
convenient for the Z-Wave developer when coding in an OTP environment.
- The functions must be declared reentrant to make the parameters and local
variables allocated on the "Reentrant Stack". Also because of this, static
variables
are
not
allowed
in
functions.://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlar
which resides in RAM.
these
http://www.wenkuxiazai.com/
- The patchable function and corresponding patch function must NOT be empty.
- It is not possible to use IDATA, PDATA and BIT data variables in the patch
part of the program,
INS11469-2 Getting started with Z-Wave? 2010-07-15 6 DEVELOPMENT TOOLS
6.1 Z-Wave Programmer & Development Platform
The ZDP03A is both a development platform and Z-Wave programmer. The ZDP03A can
program
all
generations
of
the
Z-Wave
ASIC
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlthe
and
modules,
external
EEPROM / Serial FLASH in e.g. ZM4125 and configuration of the RF output power of
the ASIC.
http://www.wenkuxiazai.com/
(alternatively connected via the ISP
cable).
? A PC running the Z-Wave Programmer
GUI on Windows XP
? USB Cable
? ISP Cable
? One power supply connected to the
programmer (can also be powered via
USB and connected PC)
tools
such
as
Zniffer,
PC
Controller/ERTT
and
any
embedded
http://www.wenkuxiazai.com/
presenting the frames in a graphical user interface on a PC. The Zniffer allows
you to monitor and record all communication that takes place between the Nodes
in a Z-Wave Network. You can investigate the ID of the Source and Destination
for the
communication, the type of Frame being sent, and the Application Content, i.e.
the specific command, which is being sent.
The Zniffer tool is a passive listener to the Z-Wave Network traffic, and
will only
display the RF communications taking place within direct RF range. Refer to ZWave Zniffer User Guide [INS10249] for additional information about the
Zniffer tool.
Z-Wave
networhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlk
consists of two basic network node types; controller and slave. The controller
node is able create the network and calculate routes based on feedback from
every node it adds to the network. The slave node is generally an input and
output unit which replies to a message when being addressed. Both types exist in
different variants described in below sub-chapters.
A Z-Wave network consists of up to 232 nodes, which can be freely be shared
between controller and slave nodes.
7.1.1 Controller Nodes
A Z-Wave network is established by a controller. The controller that creates a
Z-Wave network is a Primary Controller which has the capability of including and
excluding other Z-Wave nodes. The Primary Controller is also used to include all
http://www.wenkuxiazai.com/
subsequent
nodes in the network including other controller nodes which then becomes
Secondary Controllers. A controller node in default state is always the
Primarhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmly
Controller
until being included into a network in which it will learn its new role.
A Static Controller can be enabled to become a Static Update Controller (SUC),
which adds advanced network management functionalities yet transparent end user
friendly network management functionality to the end user.
A SUC can furthermore be enabled to become a SUC Id Server (SIS), which adds
more flexibility to the installation process. The SIS is by default a Primary
Controller because it is the controller device that assigns the next network
node id to new nodes. Furthermore it enables other controller devices to become
Inclusion Controller enabling these to also being capable of including/excluding
nodes on behalf of the SIS.
The common functionalities for all controller nodes include:
Controller devices
? is by default the Primary Controller
and
by
that
the
ability
to
create
new
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlWave network
? can become Secondary Controllers when being added to a network
? will become Inclusion Controllers when a SIS node is present
? can activate the SUC/SIS role of a Static Controller
? have full network topology awareness
7.1.1.1 Portable Controller
Z-
http://www.wenkuxiazai.com/
The Portable Controller has the ability to discover its own position in the
network, when it needs to communicate with other nodes. An example of a device
using this type could be a remote control unit, e.g. for controlling light or
HVAC systems. Because the
INS11469-2 Getting started with Z-Wave? 2010-07-15 Portable Controller can be
carried around in the network, it is also typically used to include/exclude
nodes and maintaining the Z-Wave network. Portable controllers are typically
battery powered.
7.1.1.2 Installer Controller
The
Installer
Controller
is
essentially
Portable
Controllehttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlr
which
incorporates
extra
functionality
that
can
be
used
to
node,
implement
if
the
target
node
in
fact
is
http://www.wenkuxiazai.com/
The Bridge Controller is essentially a Static Controller node, which has the
additional capability of representing devices from other network types like X10
or TCP/IP as
virtual nodes in a Z-Wave network. This enables control of Z-Wave nodes from
e.g. an X10 controller or vise versa.
7.1.2 Slave Nodes
The slave nodes are devices that do not contain routing tables. The so-called
Routing Slave nodes and Enhanced Routing Slave nodes however can contain a
number of pre-configured routes (assigned to them by a controller).
Any slave node can act as repeater for frames going to other nodes. The only
requirement for being able to act as repeater is that the node is in listening
state. This requires that the node is permanently powered, and in order to limit
battery
consumption,
this
means
that
only
mains-powered
wilhttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmll
act
nodes
as
http://www.wenkuxiazai.com/
and do not generate frames unsolicited. An example of a device using this type
could be a power outlet.
7.1.2.2 Routing Slave
The Routing Slave can host a number of routes for reaching other slaves or
controllers. Such routes are called Return Routes1. Routing Slaves can use
these routes to
communicate
with
either
controllehttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlrs or other
slave nodes. The Routing Slave can either be A/C powered or battery powered. If
the Routing Slave is A/C powered it is used as a repeater in the Z-Wave network,
otherwise it will be disregarded when routes are calculated. The Routing Slave
functionality is used for devices that need to report unsolicited status or
alarms.
An example of a routing slave node could be a Passive Infra Red (PIR) movement
sensor. A wall switch might also be a routing slave and could then be used to
control small lighting scenes, or to establish a kind of virtual 3-way
switching.
A special case of a battery powered routing slave is the Frequently Listening
Routing Slave (FLiRS). This is a routing slave configured to listen for a wakeup
beam in every wake-up interval. This enables other nodes to wake up the FLiRS
node and send a message to it.
One example
of
FLiRS
node
is
as
chime
node
in
wireless
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlsystem
or
doorbell
a
door
http://www.wenkuxiazai.com/
7.1.2.4 Enhanced Slave 232
The Enhanced Slave 232 has the same capabilities as the normal enhanced
slave with extended number of routes it can host to address other controller and
slave
devices. The Routing Slave and Enhanced Slave have a limitation of maximum 5
destination nodes which it can address. The Enhanced Slave 232 can address up to
232 destination nodes. For all three slave types the routes must be assigned by
a controller device.
originally
referring
to
route
going
back
to
chttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlontroller.
the
Seen
from the routing slave, Controller Assigned Route might be a better term.
However, Return Route is the established term in all Z-Wave documentation. 1
INS11469-2 Getting started with Z-Wave? 2010-07-15
7.2 Network Wide Inclusion
With the explorer frame, the Z-Wave technology supports Plug and Play like
network configuration enabling the Z-Wave developer to create very end-user
friendly
applications and end-products.
Network Wide Inclusion (NWI) enables both end-user friendly, Plug and Play like
Z-Wave network installation as well as professional installation scenario where
the inclusion process in terms of time will be reduced significantly. NWI is a
feature
supported by a new frame type named Explorer which enables the Z-Wave protocol
to implement Adaptive Source Routing.
All embedded sample applications provided on SDK releases supporting the
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlexplorer frame, will
initiate Network Wide Inclusion when being applied power and in case not already
http://www.wenkuxiazai.com/
being part of a network.
Other explorer frame capable products are already part of the network and will
help the new device to transfer the message to the controller unit. The only
user-trigger
necessary is at the controller unit where the home owner must set the controller
into a learning state. Once the auto inclusion request has been received by the
controller the new unit will be assigned the home id of the network and an
available node id.
whttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlhich
http://www.wenkuxiazai.com/
be for a Z-Wave enabled Remote Controller
(RC) which is mobile and is never at a static
position.
Through legacy Z-Wave protocol algorithm the RC
will learn static routes that it will use when
communicating with other products in the network.
However there is a small possibility that the static
routes may not be valid no longer when the RC is
relocated.
The explorer frame based RC will ask other explorer
frame based products to help address the target
node. The RC initiates an explorer frame containing
protocol information including a Search Request
command
and
the
application
payload
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlwhen
neighbor nodes receive the Explorer frame from the
RC they will insert the node id into the protocol part
of the frame and forward the message. The source
routing mechanism is now adaptive.
and
http://www.wenkuxiazai.com/
When the Explorer frame reaches its destination
the target node is provided with the required
protocol data to acknowledge the package and
carry out the application command immediately
the app payload was included in the Search
Request.
Dynamic Route Resolution is a self-healing
mechanism that enables the Z-Wave application
and the Z-Wave developer to focus on the
application layer and rely on the Z-Wave
protocol to handle complex network
management.
INS11469-2 Getting started with Z-Wave? 2010-07-15 8 SAMPLE APPS
8.1 Embedded Sample Applications
The
SDK
contains
http://www.wenkuxiazai.com/
sample applications. For details of all applications refer to the SDK software
release note.
8.1.1 Binary Sensor
The Binary Sensor sample applications can result in two different products: AC
operated Binary Sensor and DC operated Binary Sensor. This device is in effect a
motion sensor where the sensor input is the pin also used as a button input on
the device module.
Association.Set
1.
Remote
Controller 2.
command
transmitted
to
the
thttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlarget
associated
device
i.e.
http://www.wenkuxiazai.com/
The Development Controller sample application simulates a simple Z-Wave RF
remote. The application user interface is based on the pushbuttons of the Z-Wave
development platform module.
The Development Controller sample application shows the following features of
the Z-Wave protocol:
?
?
?
?
?
?
?
?
Include
Slave
and
Controller
Nodes
to
the
Z-Wave
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlNetwork Associate a
Node to a local group Switching a Group of Nodes on or off Dimming a Group of
multilevel switches (e.g. LED Dimmers) Assigning a Route to a routing slave
(e.g. a Binary Sensor) Excluding a Node from the Z-Wave Network Resetting the
Development Controller Requesting network updates to a Secondary
Controller from a Static Update Controller
(SUC) in case it is present in the network
? Work as Inclusion Controller when a SUC ID
Server (SIS) is present in the network
http://www.wenkuxiazai.com/
8.1.3 LED Dimmer
The LED Dimmer sample source code is built for a slave library application on a
ZWave module, which uses the LEDs of the Z-Wave development platform to
simulate a light switch with a built in dimmer. The LED Dimmer sample
application is typically the base for simple appliance modules.
The
LED
Dimmer
advertises
support
for
the
following
command
http://www.wenkuxiazai.com/
running on a Linux environment connected to either the Z-Wave module implemented
on board or through a USB dongle as depicted below. The following host based PC
applications are available on the SDK:
? PC based Controller
application to be connected
with a Serial API application
http://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlbased
controller
library.
on
static
http://www.wenkuxiazai.com/
provided with the SDK or it can be modified to fit specific needs. The UART on
the
Z-Wave Module is pre-configured as 115200 baud, no parity, 8 data bits and 1
stop bit.
8.1.5 MyProduct
To help you getting started with your Z-Wave application the SDK includes the
MyProduct project files. MyProduct contains the minimum framework to begin
developing a slave application.
http://www.wenkuxiazai.com/
You
can
use
the
Z-Wave
PC
Controller
application
tohttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.html configure the ZWave Network using Network Wide Inclusion and in addition the PC controller of
SDK 6.0x includes the ERTT application for RF range test. For detailed
description refer to PC based
Controller User Guide [INS10240].
Adding
and
removing
Virtual
Z-Wave
Slave
nodes
(up
to
virthttp://www.wenkuxiazai.com/doc/bbca38fdc8d376eeafaa3105.htmlual slave
nodes)
? Sending Basic SET ON/OFF and GET commands to known Z-Wave nodes.
? Bridging a Z-Wave Switch node to UPnP as an UPnP BinaryLight.
? Bridging an AV Rendered device to a Z-Wave network as a Z-Wave Switch
128
http://www.wenkuxiazai.com/
node.
word
http://www.wenkuxiazai.com/