Author Topic: VeraPlus + Zstick  (Read 1378 times)

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
VeraPlus + Zstick
« on: December 09, 2016, 10:20:56 pm »
How do i set up the VeraPlus to use a Zstick instead of the internal radio?

Thanks.

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4340
  • Karma: +238/-118
Re: VeraPlus + Zstick
« Reply #1 on: December 10, 2016, 07:56:59 am »
Go to the Z-Wave Settings page and change the Port from /dev/ttyS0(the internal radio interface) to whatever device path is assigned to your Z-Stick. The path is typically /dev/ttyUSB0 but it may be different depending on your setup, if other USB devices are plugged in.

You can verify what the path is by SSHing into your Vera and running dmesg | grep -i ttyUSB after plugging in the Z-Stick.

Offline treetop777

  • Full Member
  • ***
  • Posts: 136
  • Karma: +3/-2
Re: VeraPlus + Zstick
« Reply #2 on: December 10, 2016, 01:10:09 pm »
Assuming the zstick has to be pugged into the vera's usb port, what would be the value-added to doing that?   ???

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #3 on: December 10, 2016, 02:23:46 pm »
Go to the Z-Wave Settings page and change the Port from /dev/ttyS0(the internal radio interface) to whatever device path is assigned to your Z-Stick. The path is typically /dev/ttyUSB0 but it may be different depending on your setup, if other USB devices are plugged in.

You can verify what the path is by SSHing into your Vera and running dmesg | grep -i ttyUSB after plugging in the Z-Stick.

Excellent, thank you.  I should be able to figure this out and get it going.

Will it use the same port everytime it is plugged in, or will I need to do this everytime?

Thanks!

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #4 on: December 10, 2016, 02:25:52 pm »
Assuming the zstick has to be pugged into the vera's usb port, what would be the value-added to doing that?   ???

I'll be able to do z-wave inclusions without dorking with the Vera itself and extending power & network just to get vera close to the zwave devices.

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #5 on: December 10, 2016, 05:37:25 pm »
I'm new to Vera and Linux.

I've opened a SSH connection to my Vera.

Whan I run "dmesg | grep -i ttyUSB" I get nothing back.

I'm connected as root user.

Is there a list of common SSH commands and variables?

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4340
  • Karma: +238/-118
Re: VeraPlus + Zstick
« Reply #6 on: December 10, 2016, 06:15:33 pm »
Assuming the zstick has to be pugged into the vera's usb port, what would be the value-added to doing that?   ???
As @Chapin described he will use it for increased portability. Th eportability isn;t only for inclusion. He can also plug his Z-Stick into another controller/computer and be able to instantly control any Z-Wave device on his network without excluding and including to a new controller. Or he could do Over the Air(OtA) firmware updates on Aeon Z-Wave Plus devices. It can also be used should the built-in Z-Wave chip fail or if you need your Vera to use a non-native frequency, such as taking a U.S. Vera to Australia.

Will it use the same port everytime it is plugged in, or will I need to do this everytime?
Yes, it will use the same port every time. A possible exception is if you plug in other USB devices that may change the detected order.

Whan I run "dmesg | grep -i ttyUSB" I get nothing back.
Assuming that there are no typos, it's possible that your stick was not detected or that it was detected as something besides ttyUSB.

Try running just dmesg by itself. That should produce a lot of output that will likely be too much noise for your experience level. Perhaps a better way would be to:
- remove the Z-Stick
- run dmesg and note the last line or two
- plug in the Z-Stick
- run dmesg again and find the previous last lines. Anything that follows those lines are a result of your Z-Stick plug in and should contain the device path.

Quote
Is there a list of common SSH commands and variables?
SSH is a connectivity tool, like telnet. The commands(dmesg and grep) are Linux(BusyBox) and there are lots of resources for those on the net.

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #7 on: December 10, 2016, 06:41:56 pm »
Thanks for all of your help.  This is really useful.  Once I get Zwave working, I'm staying out of SSH!

It seems to see the USB Stick.  These are the lines from dmesg.  It seems to be on "usb 1-1", If I am reading where a device has been unplugged then plugged back in.  I presume that the "device number x" value isn't critical to Vera addressing it.  The same device gets a new number.  See the text below.

Any idea if my string should be /dev/ttyUSB0?  I tried it and also /dev/ttyUSB1.  Neither works.

Thanks!

[ 1522.592000] usb 1-1: USB disconnect, device number 4
[ 1612.808000] usb 1-1: new full-speed USB device number 5 using xhci-hcd
[ 1612.836000] add_ep parameters, dev_speed 2, is_in 1, isTT 0, ep_type 3, maxp 8, interval 256, burst 0, mult 0, ep 0x8d724500, ep_ctx 0xad108080, sch_ep 0x8f69e300
[ 1612.864000] [DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[ 1612.864000] [DBG] BOFFSET: 0, BREPEAT: 0
[ 1612.864000] add_ep parameters, dev_speed 2, is_in 1, isTT 0, ep_type 2, maxp 32, interval 1, burst 0, mult 0, ep 0x8d2b9480, ep_ctx 0xad1080c0, sch_ep 0x8f69e880
[ 1612.892000] [DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[ 1612.892000] [DBG] BOFFSET: 0, BREPEAT: 0
[ 1612.892000] add_ep parameters, dev_speed 2, is_in 0, isTT 0, ep_type 2, maxp 32, interval 1, burst 0, mult 0, ep 0x8d2b94ac, ep_ctx 0xad1080a0, sch_ep 0x8d2b9100
[ 1612.924000] [DBG] BPKTS: 1, BCSCOUNT: 0, BBM: 1
[ 1612.924000] [DBG] BOFFSET: 0, BREPEAT: 0




Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4340
  • Karma: +238/-118
Re: VeraPlus + Zstick
« Reply #8 on: December 10, 2016, 06:53:14 pm »
The string you should use will actually be displayed in those lines. But, it's not there. The posted results indicate that your Vera's kernel sees a USB device being plugged in, but it doesn't recognize the device. This usually means that there is no appropriate driver for the device.

I vaguely recall some sort of issue with USB drivers missing from an earlier version of UI6 or 7. If you're not running a recent version, you might consider upgrading. Or you might call support for help.

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #9 on: December 10, 2016, 06:59:45 pm »
Thanks.  Will call support.

I'm running the latest version, 1.7.2139.

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #10 on: December 10, 2016, 07:17:17 pm »
This behaved the same on an Edge running the same firmware.

[75149.810000] usb 2-1: new full-speed USB device number 2 using ohci-platform
[75150.040000] usb 2-1: no of_node; not parsing pinctrl DT
[75150.050000] cdc_acm 2-1:1.0: no of_node; not parsing pinctrl DT
[75150.050000] cdc_acm 2-1:1.0: This device cannot do calls on its own. It is no                                           t a modem.
[75150.070000] cdc_acm 2-1:1.0: ttyACM0: USB ACM device

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4340
  • Karma: +238/-118
Re: VeraPlus + Zstick
« Reply #11 on: December 10, 2016, 07:26:20 pm »
Nope, that's different output.

That one says that the USB device is at  /dev/ttyACM0

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #12 on: December 10, 2016, 07:37:00 pm »
Nope, that's different output.

That one says that the USB device is at  /dev/ttyACM0

Wow, there it is right in front of me!

That device, in my Edge, works.  Very cool, this proves my Zstick is good.

Thanks for all of your help, I'll take this up with support.

Offline zolakk

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +2/-2
Re: VeraPlus + Zstick
« Reply #13 on: December 11, 2016, 11:25:10 am »
I never thought about this, but it is a good idea especially since I've been toying with leaving vera for openhab. Does vera transfer the existing network from the internal chip when doing this or are there additional steps for that?

Offline Chapin

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +1/-4
Re: VeraPlus + Zstick
« Reply #14 on: December 11, 2016, 01:54:22 pm »
I want to loop back and say that tech support sorted this out.

It was indeed the driver was missing or corrupt or old.  Tech support installed a new one and I now have the ZStick Devices appearing in Vera now.

This did create to usb devices, /dev/ttyUSB0 and /dev/ttyUSB1

/dev/ttyUSB1 is the one that works for me.