Zigbee gateway (CC2531) does not discover devices

  • Platform information:

    • Hardware: Raspberry PI 4B+/SD card
    • OS: Raspbian GNU/Linux 10 (buster)
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 2.5 (latest)
  • Issue of the topic:
    Zigbee binding does not discover devices
    I’ve istalled OpenHAB from scratch with the installer.
    flased the CC2531 with the official firmware that is shown in the manual (CC2531ZNP-Pro-Secure_Standard.hex)
    Installed the zigbee-binding
    Added the device CC2531, working, green
    In the inbox I click on discover, but nothing happens.
    Tried with 2 Xiaomi devices (human body sensor, temp sensor): reseted devices with holding the button for more than 3 seconds, but cannot see as a discovered device in the inbox.

In the log (zigbee binding set to TRACE mode) i see:

  • device is in pairing mode
  • some network communication

Tried:

  • zigbee connection speed set to lower values
  • another raspberry pi (zero)
  • installed from OpenHABian image

This hardware was working before with domoticz and zigbee2mqtt.
I guess that no extra software has to be installed, eg. it works without mqtt and zigbee2mqtt. It would be very nice if zigbee work without any tricks.

Thanks for any help, I’m a bit stucked.

Logs:

2020-10-09 14:08:48.447 [DEBUG] [bee.discovery.ZigBeeDiscoveryService] - Starting ZigBee scan for zigbee:coordinator_cc2531:e94b058a 2020-10-09 14:08:48.516 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 6 bytes available 2020-10-09 14:08:48.570 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 6 at offset 0 2020-10-09 14:08:48.615 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 6 of 6 at offset 0 2020-10-09 14:08:48.721 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 6 bytes available 2020-10-09 14:08:48.771 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 6 at offset 0 2020-10-09 14:08:48.830 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 6 of 6 at offset 0 2020-10-09 14:08:48.946 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 29 bytes available 2020-10-09 14:08:49.005 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 29 at offset 0 2020-10-09 14:08:49.057 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 29 of 29 at offset 0 2020-10-09 14:09:00.035 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 17 bytes available 2020-10-09 14:09:00.076 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 17 at offset 0 2020-10-09 14:09:00.111 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 17 of 17 at offset 0 2020-10-09 14:09:03.705 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 17 bytes available 2020-10-09 14:09:03.747 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 17 at offset 0 2020-10-09 14:09:03.785 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 17 of 17 at offset 0 2020-10-09 14:09:11.856 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 17 bytes available 2020-10-09 14:09:11.900 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 17 at offset 0 2020-10-09 14:09:11.943 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 17 of 17 at offset 0 2020-10-09 14:09:48.719 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: have 6 bytes available 2020-10-09 14:09:48.757 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: try read 6 at offset 0 2020-10-09 14:09:48.824 [TRACE] [ding.zigbee.handler.ZigBeeSerialPort] - Processing DATA_AVAILABLE event: did read 6 of 6 at offset 0

Please do not use TRACE level logging unless really required. It generates a lot of data that is normally not of use, and the information you provided here really is of no use at all in understanding what issue you may have.

Please use debug logging as per the binding docs, and provide a much longer log.

1 Like

Hi Chris,

Thank you for your reply.
I’ve sent all the logs that are created after the discovery started. What do you mean by a much longer? If I switch to DEBUG level, I only get one line. Are all the logs relevant from the beginning? CC2531 seems to be working.
I thought that in this case it is relevant that there is network communication, that’s why I’ve put those lines here.
Thanks!

If there’s really nothing else, then it seems that the device is not joining the network. I can’t tell why this is without seeing a sniffer log.

Normally a much longer long is better - not just the information around the discovery. This allows some context to see if there are other issues that might impact the discovery.

Thank you.

I’ll look at the previous logs again.
I think sniffing may not be an option, I have to read a bit more but seems that I need another device and/or flash another firmware onto it.

Can you strengthen me, that the standard installation works well no extra components to istall.
I mean zigbee2mqtt is another way to use zigbee elements, and zigbee-binding needs nothing to work.