USB Z-Wave stick on Virtualbox not working

I’m trying to migrate from Docker to HassOS in a VM. I can’t get my Z-Wave network working. I have enabled all 4 serial ports in the VirtualBox settings as well as USB.

Hardware:

  • Aoetec Z-Stick
  • Intel NUC
  • 4p USB hub

Software

  • Host OS: Ubuntu 16.04
  • VirtualBox

hw info shows 4 serial ports

/dev/ttyS0
/dev/ttyS1
/dev/ttyS2
/dev/ttyS3

and 2 USB ports

/dev/bus/usb/001/001
/dev/bus/usb/001/002

I have tried all combinations of the above in the config. Example:

zwave:
  usb_path: /dev/ttyS0

lsusb from ssh within vb returns:

Bus 001 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 80ee:0021

lsusb on the host machine returns:

Bus 002 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0951:16b7 Kingston Technology 
Bus 001 Device 003: ID 046d:c24c Logitech, Inc. G400s Optical Mouse
Bus 001 Device 006: ID 1a86:e024 QinHeng Electronics 
Bus 001 Device 004: ID 0658:0200 Sigma Designs, Inc. 
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Now I’m stuck on what to try next.

Additional info: The docker version is still running right now, I thought maybe that was the conflict but even stopping that doesn’t change the outcome.

The OZW Log when using any of the serial ports above:

2020-09-12 10:55:03.438 Always, OpenZwave Version 1.4.3469 Starting Up
2020-09-12 10:55:05.393 Info, Setting Up Provided Network Key for Secure Communications
2020-09-12 10:55:05.401 Warning, Failed - Network Key Not Set
2020-09-12 10:55:05.401 Info, mgr,     Added driver for controller /dev/ttyS2
2020-09-12 10:55:05.411 Info,   Opening controller /dev/ttyS2
2020-09-12 10:55:05.411 Info, Trying to open serial port /dev/ttyS2 (attempt 1)
2020-09-12 10:55:05.419 Info, Serial port /dev/ttyS2 opened (attempt 1)
2020-09-12 10:55:05.419 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-09-12 10:55:05.419 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-09-12 10:55:05.419 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-09-12 10:55:05.419 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-09-12 10:55:05.419 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-09-12 10:55:05.419 Detail,
2020-09-12 10:55:05.419 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-09-12 10:55:06.420 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-09-12 10:55:06.423 Detail, contrlr, Removing current message
2020-09-12 10:55:06.423 Detail, contrlr, Notification: Notification - TimeOut
2020-09-12 10:55:06.425 Detail,
2020-09-12 10:55:06.425 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-09-12 10:55:07.426 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-09-12 10:55:07.426 Detail, contrlr, Removing current message
2020-09-12 10:55:07.426 Detail, contrlr, Notification: Notification - TimeOut
2020-09-12 10:55:07.426 Detail,
2020-09-12 10:55:07.426 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-09-12 10:55:08.427 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-09-12 10:55:08.427 Detail, contrlr, Removing current message
2020-09-12 10:55:08.427 Detail, contrlr, Notification: Notification - TimeOut
2020-09-12 10:55:08.427 Detail,
2020-09-12 10:55:08.427 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-09-12 10:55:09.429 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-09-12 10:55:09.429 Detail, contrlr, Removing current message
2020-09-12 10:55:09.429 Detail, contrlr, Notification: Notification - TimeOut
2020-09-12 10:55:09.429 Detail,
2020-09-12 10:55:09.429 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-09-12 10:55:10.430 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-09-12 10:55:10.433 Detail, contrlr, Removing current message
2020-09-12 10:55:10.433 Detail, contrlr, Notification: Notification - TimeOut

You have to forward the host usb device to the VM if I am correct. Hope this page can help you:

1 Like