Package org.openhab.binding.zwave.internal.protocol

Examples of org.openhab.binding.zwave.internal.protocol.ZWaveNode.resetResendCount()


    if(node.isDead()) {
      node.setAlive();
      logger.debug("NODE {}: Node has risen from the DEAD. Set stage to {}.", nodeId, node.getNodeStage());     
    }
   
    node.resetResendCount();
    node.incrementReceiveCount();
   
    int commandClassCode = incomingMessage.getMessagePayloadByte(3);
    CommandClass commandClass = CommandClass.getCommandClass(commandClassCode);
View Full Code Here


    case NODE_INFO_RECEIVED:
      logger.debug("NODE {}: Application update request, node information received.", nodeId);     
      int length = incomingMessage.getMessagePayloadByte(2);
      ZWaveNode node = zController.getNode(nodeId);
     
      node.resetResendCount();

      if(node.getNodeStage() == NodeStage.DONE) {
        // If this node supports associations, then assume this should be handled through that mechanism
        if(node.getCommandClass(CommandClass.ASSOCIATION) == null) {
          // If we receive an Application Update Request and the node is already
View Full Code Here

      if(node.isDead()) {
        node.setAlive();
        logger.debug("NODE {}: Node has risen from the DEAD. Set stage to {}.", node.getNodeId(), node.getNodeStage());     
      }
      else {
        node.resetResendCount();
        // in case we received a ping response and the node is alive, we
        // proceed with the next node stage for this node.
        if (node.getNodeStage() == NodeStage.PING) {
          node.advanceNodeStage(NodeStage.DETAILS);
        }
View Full Code Here

      // We now have the oldest node that we've heard from - ping it!
      if (oldestNode != null) {
        logger.debug("NODE {}: Sending periodic PING.", oldestNode.getNodeId());

        // Reset the resend count - also resets the lastUpdate timer
        oldestNode.resetResendCount();

        ZWaveNoOperationCommandClass zwaveCommandClass = (ZWaveNoOperationCommandClass) oldestNode
            .getCommandClass(CommandClass.NO_OPERATION);
        if (zwaveCommandClass != null)
          zController.sendData(zwaveCommandClass.getNoOperationMessage());
View Full Code Here

          // This will also set the state back to DONE in
          // resetResendCount if the node
          // has already completed initialisation.
          // node.setNodeStage(NodeStage.PING);

          node.resetResendCount();
        } else {
          logger.debug("NODE {}: {} node - already healing.", node.getNodeId(), statusEvent.getState());
        }
        break;
      case Alive:
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.