Endless "Out of frame flow!" warnings setting up Z-Wave integration

While migrating my custom installed Home Assistant from Raspbian Stretch on a Raspberry Pi 3 to Hassio on a Raspberry Pi 4 I have difficulties setting up Z-Wave on the hassio installation.

The Z-Wave integration is with endless WARNING: Out of frame flow! (0xc0). Sending NAK. warnings.

2020-05-13 15:12:36.760 Always, OpenZwave Version 1.4.3469 Starting Up
2020-05-13 15:13:46.279 Info, Setting Up Provided Network Key for Secure Communications
2020-05-13 15:13:46.280 Info, mgr,     Added driver for controller /dev/ttyACM0
2020-05-13 15:13:46.280 Info,   Opening controller /dev/ttyACM0
2020-05-13 15:13:46.280 Info, Trying to open serial port /dev/ttyACM0 (attempt 1)
2020-05-13 15:13:46.283 Info, Serial port /dev/ttyACM0 opened (attempt 1)
2020-05-13 15:13:46.284 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-05-13 15:13:46.284 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-05-13 15:13:46.284 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-05-13 15:13:46.285 Detail, contrlr, Queuing (Command) FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-05-13 15:13:46.285 Detail, contrlr, Queuing (Command) FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-05-13 15:13:46.285 Detail,
2020-05-13 15:13:46.285 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x15) - FUNC_ID_ZW_GET_VERSION: 0x01, 0x03, 0x00, 0x15, 0xe9
2020-05-13 15:13:46.369 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:47.369 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:47.369 Detail, contrlr, Removing current message
2020-05-13 15:13:47.369 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:47.370 Detail,
2020-05-13 15:13:47.370 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x20) - FUNC_ID_ZW_MEMORY_GET_ID: 0x01, 0x03, 0x00, 0x20, 0xdc
2020-05-13 15:13:48.279 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:48.280 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:49.280 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:49.280 Detail, contrlr, Removing current message
2020-05-13 15:13:49.280 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:49.280 Detail,
2020-05-13 15:13:49.281 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x05) - FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES: 0x01, 0x03, 0x00, 0x05, 0xf9
2020-05-13 15:13:49.319 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:49.320 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:50.315 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:51.316 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:51.316 Detail, contrlr, Removing current message
2020-05-13 15:13:51.316 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:51.316 Detail,
2020-05-13 15:13:51.316 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x07) - FUNC_ID_SERIAL_API_GET_CAPABILITIES: 0x01, 0x03, 0x00, 0x07, 0xfb
2020-05-13 15:13:51.319 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:51.321 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:52.319 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:52.320 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:53.078 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:54.079 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:54.079 Detail, contrlr, Removing current message
2020-05-13 15:13:54.079 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:54.079 Detail,
2020-05-13 15:13:54.079 Info, contrlr, Sending (Command) message (Callback ID=0x00, Expected Reply=0x56) - FUNC_ID_ZW_GET_SUC_NODE_ID: 0x01, 0x03, 0x00, 0x56, 0xaa
2020-05-13 15:13:54.132 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:55.133 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2020-05-13 15:13:55.133 Detail, contrlr, Removing current message
2020-05-13 15:13:55.133 Detail, contrlr, Notification: Notification - TimeOut
2020-05-13 15:13:55.186 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:56.264 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
2020-05-13 15:13:57.318 Warning, WARNING: Out of frame flow! (0xc0).  Sending NAK.
...repeat ad nauseam. 

The Z-Wave integration has been added through the “Integrations” configuration in the UI. No changes have been made to the config files.

This is on a 2MB Raspberry Pi 4 with an Aeotech Z-Stick Gen 5. hassio version 0.109.6.

Can anyone assist with this issue?

Usually this is because you installed Raspbian first, then the alternative installer, and left ModemManager installed and running.

This is a fresh installation done by flashing a SD card with the hassos_rpi4-3.13.img.gz image. Raspbian was installed on a different computer.

Are you also using an unpowered USB 2.0 hub inbetween the Aotec and RPi? Alerts | Home Assistant Alerts

1 Like

I was not aware of this issue. Connecting the Z-Stick via an USB hub has the same result so that does not solve this issue.

Double checked this one. ModemManger is not installed on the hassio server, so this is not the problem.

Did you install any other zwave addons?
This issue can occur if something else is attempting to use the stick at the same time, ie: ozwcp

No other Z-Wave addons. The installed addons are:

  • File editor
  • TellStick
  • Terminal & SSH
  • deCONZ

Are you sure the USB hub you used is USB 2.0?
If that doesn’t work you’ll need a new Z-stick or go back to the Pi3.

Yes. I reckon my best option is to use a Raspberry Pi 3.

At this point in time, it would seem that way.

The only other thing I could think of would be an inadequate power supply.

Original Raspberry PI USB-C so that is not the issue.

I can confirm that this issue is due to Aeotech Z-Sticks and Raspberry PI 4s not being compatible.
I switched to a Raspberry Pi 3 and then all was hunky dory with the same configuration.

This appeared to be a red herring

Z-Wave worked on the Rpi 3 on first install, but after rebooting the Rpi 3 the same problem as with the Rpi 4 occurred there as well.

The Z-Stick works on my Home Assistant installation on Raspbian, so the Z-Stick seems to be OK.

Any ideas?

You have something installed that’s also attempting to access the stick at the same time.

Not likely. These are clean installs of hassio, installed from the official images.

So this image?
https://github.com/home-assistant/operating-system/releases/download/3.13/hassos_rpi3-3.13.img.gz

Used that when trying to get this to work on a Rpi3 and https://github.com/home-assistant/operating-system/releases/download/3.13/hassos_rpi4-3.13.img.gz for the first attempt to get it to work with a Rpi 4. Same results with both.

The only thing left would be something potentially wrong with the stick itself then.

There a tool you can use with windows and plug the stick into a windows machine to backup the devices, it’s been mentioned a few times on the forum. Maybe it has some kind of diagnostics suite that could be ran on the stick :man_shrugging: