Previous Topic

Next Topic

Book Contents

Book Index

Z-Wave Network Controller

Overview

The ZWaveNetworkController interface extends the com.prosyst.mbs.services.hdm.deviceclasses.NetworkControllerExt HDM device classes. A service of this class will be registered in OSGi for every available Z-Wave controller in the system.

Supported Modes

The Z-Wave Network Controller supports the following states:

Name

Description

MODE_ADDING

Invoke NetworkController.setMode(byte) with this value to instruct the controller to allow adding of nodes to the network. The controller will stay in this mode until one device is added to the network. Then it will go to normal mode.

MODE_REMOVING

Invoke NetworkController.setMode(byte) with this value to instruct the controller to allow removing of nodes from the network. The controller will stay in this mode until one device is removed from the network. Then it will go in normal mode.

MODE_REPLACING

The controller cannot be set to this state explicitly. Invoke replaceFailedNode(int, boolean) to instruct the controller to start replacing of nodes in the network. The controller will stay in this mode until one device is replaced by a new one in the network. Then it will go in normal mode.

MODE_CONTROLLER_SHIFT

Invoke NetworkController.setMode(byte) with this value to instruct the controller to allow adding of controller to the network. The controller will stay in this mode until a controller is added to the network. Then it will go in normal mode. The added controller should take the primary role.

MODE_LEARN

Invoke NetworkController.setMode(byte) with this value to instruct the controller to enter learn mode. In learn mode the controller is supposed to be added in other network. It will be reset and all current network information will be lost. Controller will adopt the home ID of the adding controller.

MODE_NETWORK_MAINTENANCE

Invoke NetworkController.setMode(byte) with this value to instruct the controller to enter network maintenance. In this mode teh controller starts a procedure of full network maintenance/rediscovery of all devices. The network maintenance is used to re-build the routing table in the primary controller. This helps to rediscover devices that has been moved or to reduce communication latency due to routing through invalid routes. The use of network maintenance should be kept to a minimum as it may create extensive traffic in the network. While in state of network maintenance the controller is not accessible for anything else.

MODE_NORMAL

Invoke NetworkController.setMode(byte) with this value to instruct the controller to cancel adding or removing of nodes to/from the network.

MODE_PROCESSING_CONTROL_EVENT

While the controller is in this mode all operations of the ZWaveNetworkController are impossible and will throw HomeDeviceException.

For more information refer to: Java API