ControlThink Forums

Share ideas. Get support. Meet new friends.
Welcome to ControlThink Forums Sign in | Join | Help
in Search

Using Multiple ThinkSticks

Last post 04-22-2008 10:02 PM by Chris Walker (CT). 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-09-2008 5:57 AM

    • alfie
    • Top 25 Contributor
    • Joined on 08-17-2006
    • Memphis TN
    • Posts 34

    Using Multiple ThinkSticks

    If I have more than one network in my home, can I have one ThinkStick for each network connected to one PC?  If so, how do I address each one?

  • 04-09-2008 9:38 AM In reply to

    Re: Using Multiple ThinkSticks

    alfie,

    You can have multiple ThinkSticks.  If you're using ThinkEssentials, you'll choose which one you want to connect to when the software opens.  If you're using the Z-Wave PC SDK, you'll connect to them based on the order they are plugged into the USB host.  You can tell which one you're connected to based on the Home ID of the stick...

    Chris

  • 04-19-2008 2:27 AM In reply to

    • alfie
    • Top 25 Contributor
    • Joined on 08-17-2006
    • Memphis TN
    • Posts 34

    Re: Using Multiple ThinkSticks

    Just so that I have this straight.  I'm using the SDK and I have two ThinkSticks used as secondary controllers on a stationary pc.

    First I would Dim oController As ZWaveController and plug in the first ThinkStick and call oController.ReceiveConfiguration (without any parameters) which would transfer the configuration from one of my master controllers to the first ThinkStick.

    Then unplug the first ThinkStick and plug in the second one and repeat the oController.ReceiveConfiguration call which would transfer the configuration from the second master controller to the second ThinkStick

    Then Dim oController0 As ZWaveController and Dim oController1 As ZWaveController and plug in both ThinkSticks and connect to them by calling oController0.Connect(0) for one of the ThinkSticks and then call oController1.Connect(1) for the other ThinkStick.

     Then I can determine which one is which by either looking at the oController0.HomeID and oController1.HomeID property or by enumerating the devices on each since in my application one of the ThinkSticks will be on a network with 23 other ZWave devices and the other will be on a network with 6 other ZWave Devices.

    Is this anywhere close to what I need to do?

     

  • 04-19-2008 8:07 AM In reply to

    Re: Using Multiple ThinkSticks

    alfie,

    That's pretty much it.  Except you don't need to specify an index when you connect--it will just pick up on the first available ThinkStick

    Chris

  • 04-22-2008 9:56 PM In reply to

    • alfie
    • Top 25 Contributor
    • Joined on 08-17-2006
    • Memphis TN
    • Posts 34

    Re: Using Multiple ThinkSticks

    OK, I ordered my second ThinkStick this morning, but something just dawned on me.  I add a ControlThink.ZWave.Devices.LevelChangeEvent handler for each of my ZWave devices.   I'm using all Vizia devices so this works pretty well.  Unless I add a different event handler for each of the devices on each ThinkStick network, how can I tell which network that the device is a member of since ControlThink.ZWave.Devices does not contain the HomeID property?  I will know if it is NodeID 3, for example, but how can I tell which network that NodeID 3 is a member of?  The only easy way I can thnk of is to assign a Name to each of the ZWave devices on my networks and then use my configuration xml file to lookup which network that Name is associated with when the LevelChangedEvent fires.  Or would it be better and faster to simply set the Tag property equal to the HomeID when I create the event handler for each device since I know the HomeID of the controller at that time?

     Also, is there a way to change the "dimming rate" of a Vizia dimmer, either manually or programmatically?

  • 04-22-2008 10:02 PM In reply to

    Re: Using Multiple ThinkSticks

    alfie,

    That sounds like a great use for the Tag property (storing the Home ID when you're using multiple networks).

    If you want to change the dimming rate of a Vizia RF dimmer, I believe you change one of the ConfigurationParameters--although you'll have to ask Leviton which one to change.  Or you can use the scene capability and then specify the dim duration in the scene setup info (or override the dimming duration when you activate that scene).

    Chris

Page 1 of 1 (6 items)