Error: SRSP - AF - dataRequest after 6000ms
Bug Report
What happened
I started using Zigbee2Mqtt 3 days ago with 3 Ikea bulbs. When I modify the lights, they frequently gives this error and the light does not respond to the command.
What did you expect to happen
Light to respond to the command and tunr on/off, change color, ...
How to reproduce it (minimal and precise)
Toggle lights on/off or change color or change brigthness.
Debug Info
zigbee2mqtt version: latest dev version (1.7.0+dev (commit #b617239)) CC253X firmware version: CC2652R with zStack3x0 20191106
error 2019-11-09T21:53:41: Publish 'set' 'state' to 'Matthijs_Wolk' failed: 'Error: SRSP - AF - dataRequest after 6000ms' info 2019-11-09T21:53:41: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'state' to 'Matthijs_Wolk' failed: 'Error: SRSP - AF - dataRequest after 6000ms'","meta":{"friendly_name":"Matthijs_Wolk"}}'
I added log files, where you can see that it frequently failes to execute the command. log1.txt log2.txt
Can you provide the log of this error when running zigbee2mqtt with DEBUG=zigbee-herdsman:* npm start?
Here is the new log file. Log.txt
Does it only happen with the IKEA color bulb or also others (e.g. Buitenlamp)?
It also happens to the other light.
Very strange, haven't seen this before.
Can you try removing coordinator_backup.json and reflashing the CC2652R using https://www.zigbee2mqtt.io/information/flashing_via_uniflash.html, after this you have to re-pair your devices.
Reflashed. Still getting the same error.
Could it be the 'complex' setup? I'm using docker on a XPenology VM on ESX 6.5.
I guess that could be.
Either:
- the cc2652r doesnt send a respond (unlikely)
- something bad happens with the serial communication (guess more likely given your setup)
Can you try on e.g. a linux laptop or pi?
I switched to a Ubuntu VM. I fired a lot of commands towards the lights. So far I haven't got the error.
For me it's solved! Big thanks for the help.
I would just like to add that I just got this error. I tried to add a Wemo bulb and got this error. I was unable to do anything at all, nothing would respond. Multiple restarts and removing the wemo from the config did nothing.
I finally got it all to work after reflashing the stick. It seems like the bulb completely corrupted the network. I'm leaving it out of the network for now.
I have the same issue with some innr bulbs For me zigbee2mqtt stops doing anything as soon as they are added to the network. But it doesn't always seem to be the case. Seems to be a bit intermittent.
I'm getting this randomly too. The even worse problem is restarting zigbee2mqtt doesn't clear it. I have to unplug the USB stick and plug is back in to clear it. Even pressing the reset button on it doesn't clear it.
Just got this again. Mine's not VM related, since I don't have any VM anywhere in my loop. The system will also work for several days, and then go into this state. I removed the 1 innr appliance module I have, and it still happens.
I'm going to have to dump this whole platform if there's not a fix for this soon :((
@thardie your stick crashes because it probably cannot handle your network. I would recommend switching to the source routing firmware if you are not already (https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/source_routing). If that still doesn't solve the problem the only thing left to do is upgrading to a more powerful coordinator https://www.zigbee2mqtt.io/information/supported_adapters.html
I'm experiencing the same problem on Texas Instruments LAUNCHXL-CC26X2R1 and 88 devices. The adapter would randomly crash every week or so. You have to unplug and restart Z2M.
My devices are mostly Hue lights, sensors, Samsung Smart Plugs and Xiaomi sensors. I previously ran Conbee II stick. It was really stable but I migrated because I think Z2M is the future. Not sure what I can do here since I already have the most powerful hardware?
I think the stick is just very sensitive to USB timings. I was originally running mine over USB IP. When I switched to direct USB, these problems went away. I suggest trying a different USB controller, hub and cables and see if it's any more stable
@thardie do you have your stick on a Raspberry Pi? Mine is connected directly to Intel NUC. I'm running Docker as well.
Mine is on an openWRT device with an arm cpu. How are you getting the USB device into your docker container?
configuration.yaml:
serial:
port: >-
/dev/serial/by-id/usb-Texas_Instruments_XDS110__03.00.00.13__Embed_with_CMSIS-DAP_L11008CR-if00
docker-compose.yaml:
zigbee2mqtt:
container_name: z2m
volumes:
- /opt/docker/zigbee2mqtt:/app/data
- /opt/zigbee2mqtt/zigbee-herdsman-converters:/app/node_modules/zigbee-herdsman-converters
- /opt/zigbee2mqtt/homeassistant.js:/app/lib/extension/homeassistant.js
devices:
- /dev/serial/by-id/usb-Texas_Instruments_XDS110__03.00.00.13__Embed_with_CMSIS-DAP_L11008CR-if00
environment:
- TZ
image: koenkk/zigbee2mqtt
restart: always
I have multiple USB devices plugged to this Intel NUC. None of them has any issues. What TI stick are you using? Thanks.
I have the same issue now with NUC, might be not enough power for this stick?
@Koenkk @radinsky I had the same issue on my nuc with installed ubuntu 20.04. i found that stick works nicely from time to time and then unplug/plug is required to make it work.
In the log i found this one:
Zigbee2MQTT:debug 2021-12-04 12:59:39: Error: Command 0x60a423fffea3b006/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)
at Timeout._onTimeout (/opt/zigbee2mqtt/node_modules/zigbee-herdsman/src/utils/waitress.ts:64:35)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)
I tried to solve this problem and i found that a lot of people with Nuc/Dell OptiPlex micro/etc platform faced with this problem and i found what is the reason of this behavior.
following the documentation:
USB autosuspend is a feature designed to preserve battery life, its' 18.04 default is "enabled", whether or not the device Ubuntu is being installed on even has a battery.
run the command in terminal cat /sys/module/usbcore/parameters/autosuspend if it will return 1-2 this is the thing why you got the error with the stick. to fix this - disable the autosustend:
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/&usbcore.autosuspend=-1 /' /etc/default/grub
update-grub
systemctl reboot