Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Can't connect to Zigbee Gateway #11247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
tvixen opened this issue Apr 14, 2025 · 8 comments
Closed
1 task done

Can't connect to Zigbee Gateway #11247

tvixen opened this issue Apr 14, 2025 · 8 comments
Assignees
Labels
Area: Zigbee Issues and Feature Request about Zigbee

Comments

@tvixen
Copy link

tvixen commented Apr 14, 2025

Board

ESP32C6

Device Description

I have 2 ESP32S3 and 2 ESP32C6,

Hardware Configuration

uint8_t led = RGB_BUILTIN;
uint8_t button = BOOT_PIN;

Version

v3.2.0

IDE Name

Arduino IDE 1.8.19

Operating System

Windows 10

Flash frequency

80Mhz

PSRAM enabled

yes

Upload speed

921600

Description

I use the the Arduino compiler IDE version 1.8.19, and is working very fine with ESP32S3 and all of my code using I2C, SPI, Wifi etc.
But when I use the ESP32C6 in Zigbee mode as end device, it seem to struggle a bit. It compiles fine with the examples in the library and uploads fine til the board. But it dosent seem to connect to my Zigbee gateway.

Any one who can clarify this for me?

Sketch

// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
 * @brief This example demonstrates Zigbee Color Dimmable light bulb.
 *
 * The example demonstrates how to use Zigbee library to create an end device with
 * color dimmable light end point.
 * The light bulb is a Zigbee end device, which is controlled by a Zigbee coordinator.
 *
 * Proper Zigbee mode must be selected in Tools->Zigbee mode
 * and also the correct partition scheme must be selected in Tools->Partition Scheme.
 *
 * Please check the README.md for instructions and more detailed description.
 *
 * Created by Jan Procházka (https://github.com/P-R-O-C-H-Y/)
 */

#ifndef ZIGBEE_MODE_ED
#error "Zigbee end device mode is not selected in Tools->Zigbee mode"
#endif

#include "Zigbee.h"

/* Zigbee color dimmable light configuration */
#define ZIGBEE_RGB_LIGHT_ENDPOINT 10
uint8_t led = RGB_BUILTIN;
uint8_t button = BOOT_PIN;

ZigbeeColorDimmableLight zbColorLight = ZigbeeColorDimmableLight(ZIGBEE_RGB_LIGHT_ENDPOINT);

/********************* RGB LED functions **************************/
void setRGBLight(bool state, uint8_t red, uint8_t green, uint8_t blue, uint8_t level) {
  if (!state) {
    rgbLedWrite(led, 0, 0, 0);
    return;
  }
  float brightness = (float)level / 255;
  rgbLedWrite(led, red * brightness, green * brightness, blue * brightness);
}

// Create a task on identify call to handle the identify function
void identify(uint16_t time) {
  static uint8_t blink = 1;
  log_d("Identify called for %d seconds", time);
  if (time == 0) {
    // If identify time is 0, stop blinking and restore light as it was used for identify
    zbColorLight.restoreLight();
    return;
  }
  rgbLedWrite(led, 255 * blink, 255 * blink, 255 * blink);
  blink = !blink;
}

/********************* Arduino functions **************************/
void setup() {
  Serial.begin(115200);

  // Init RMT and leave light OFF
  rgbLedWrite(led, 0, 0, 0);

  // Init button for factory reset
  pinMode(button, INPUT_PULLUP);

  // Set callback function for light change
  zbColorLight.onLightChange(setRGBLight);

  // Optional: Set callback function for device identify
  zbColorLight.onIdentify(identify);

  // Optional: Set Zigbee device name and model
  zbColorLight.setManufacturerAndModel("Espressif", "ZBColorLightBulb");

  // Add endpoint to Zigbee Core
  Serial.println("Adding ZigbeeLight endpoint to Zigbee Core");
  Zigbee.addEndpoint(&zbColorLight);

  // When all EPs are registered, start Zigbee in End Device mode
  if (!Zigbee.begin()) {
    Serial.println("Zigbee failed to start!");
    Serial.println("Rebooting...");
    ESP.restart();
  }
  Serial.println("Connecting to network");
  while (!Zigbee.connected()) {
    Serial.print(".");
    delay(100);
  }
  Serial.println();
}

void loop() {
  // Checking button for factory reset
  if (digitalRead(button) == LOW) {  // Push button pressed
    // Key debounce handling
    delay(100);
    int startTime = millis();
    while (digitalRead(button) == LOW) {
      delay(50);
      if ((millis() - startTime) > 3000) {
        // If key pressed for more than 3secs, factory reset Zigbee and reboot
        Serial.println("Resetting Zigbee to factory and rebooting in 1s.");
        delay(1000);
        Zigbee.factoryReset();
      }
    }
    // Increase blightness by 50 every time the button is pressed
    zbColorLight.setLightLevel(zbColorLight.getLightLevel() + 50);
  }
  delay(100);
}

Debug Message

No debug info

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@tvixen tvixen added the Status: Awaiting triage Issue is waiting for triage label Apr 14, 2025
@lucasssvaz lucasssvaz added Area: Zigbee Issues and Feature Request about Zigbee and removed Status: Awaiting triage Issue is waiting for triage labels Apr 14, 2025
@lucasssvaz lucasssvaz changed the title A quick question about Arduino IDE Can't connect to Zigbee Gateway Apr 14, 2025
@P-R-O-C-H-Y
Copy link
Member

Hi @tvixen, can you post logs from the ESP (please set Core Debug Level to Verbose) and also some additional informations about your Zigbee network?

@tvixen
Copy link
Author

tvixen commented Apr 15, 2025

I can certainly do that, but I actually just wanted to know if I could continue using Arduino IDE 1.8.19 or if I should switch to IDE 2.0 before it will work with Zigbee?

As I worte, IDE 1.8.19 is working fine with ESP32S3.

@P-R-O-C-H-Y
Copy link
Member

I can certainly do that, but I actually just wanted to know if I could continue using Arduino IDE 1.8.19 or if I should switch to IDE 2.0 before it will work with Zigbee?

As I worte, IDE 1.8.19 is working fine with ESP32S3.

The IDE 1.8.19 is working. I am using that actually.

@tvixen
Copy link
Author

tvixen commented Apr 15, 2025

ok thanks for that. I will provide you the requested info asap.

@tvixen
Copy link
Author

tvixen commented Apr 15, 2025

Heres the log from ESP:
14:24:00.693 -> ESP-ROM:esp32c6-20220919
14:24:00.693 -> Build:Sep 19 2022
14:24:00.693 -> rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
14:24:00.693 -> SPIWP:0xee
14:24:00.693 -> mode:DIO, clock div:2
14:24:00.693 -> load:0x40875720,len:0x1260
14:24:00.693 -> load:0x4086c110,len:0xdc4
14:24:00.693 -> load:0x4086e610,len:0x3018
14:24:00.693 -> entry 0x4086c110
14:24:00.834 -> [ 0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x420081c2
14:24:00.881 -> [ 12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x420081b0
14:24:00.881 -> [ 23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4200819e
14:24:00.881 -> [ 34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4200818c
14:24:00.881 -> [ 46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x420081c2
14:24:00.881 -> [ 57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x420081b0
14:24:00.928 -> [ 68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4200819e
14:24:00.928 -> [ 80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4200818c
14:24:00.928 -> [ 91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x420081c2
14:24:00.928 -> [ 102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x420081b0
14:24:00.974 -> [ 114][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x4200819e
14:24:00.974 -> [ 125][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x4200818c
14:24:00.974 -> [ 136][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
14:24:00.974 -> [ 148][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f280
14:24:01.021 -> [ 159][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f280
14:24:01.021 -> =========== Before Setup Start ===========
14:24:01.021 -> Chip Info:
14:24:01.021 -> ------------------------------------------
14:24:01.021 -> Model : ESP32-C6
14:24:01.021 -> Package : 0
14:24:01.021 -> Revision : 0.01
14:24:01.021 -> Cores : 1
14:24:01.021 -> CPU Frequency : 160 MHz
14:24:01.021 -> XTAL Frequency : 40 MHz
14:24:01.021 -> Features Bitfield : 0x00000052
14:24:01.021 -> Embedded Flash : No
14:24:01.021 -> Embedded PSRAM : No
14:24:01.067 -> 2.4GHz WiFi : Yes
14:24:01.067 -> Classic BT : No
14:24:01.067 -> BT Low Energy : Yes
14:24:01.067 -> IEEE 802.15.4 : Yes
14:24:01.067 -> ------------------------------------------
14:24:01.067 -> INTERNAL Memory Info:
14:24:01.067 -> ------------------------------------------
14:24:01.067 -> Total Size : 445948 B ( 435.5 KB)
14:24:01.067 -> Free Bytes : 405808 B ( 396.3 KB)
14:24:01.067 -> Allocated Bytes : 32596 B ( 31.8 KB)
14:24:01.067 -> Minimum Free Bytes: 405808 B ( 396.3 KB)
14:24:01.067 -> Largest Free Block: 376820 B ( 368.0 KB)
14:24:01.067 -> ------------------------------------------
14:24:01.114 -> Flash Info:
14:24:01.114 -> ------------------------------------------
14:24:01.114 -> Chip Size : 8388608 B (8 MB)
14:24:01.114 -> Block Size : 65536 B ( 64.0 KB)
14:24:01.114 -> Sector Size : 4096 B ( 4.0 KB)
14:24:01.114 -> Page Size : 256 B ( 0.2 KB)
14:24:01.114 -> Bus Speed : 40 MHz
14:24:01.114 -> Bus Mode : QIO
14:24:01.114 -> ------------------------------------------
14:24:01.114 -> Partitions Info:
14:24:01.114 -> ------------------------------------------
14:24:01.114 -> nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
14:24:01.114 -> otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
14:24:01.114 -> app0 : addr: 0x00010000, size: 1280.0 KB, type: APP, subtype: OTA_0
14:24:01.162 -> app1 : addr: 0x00150000, size: 1280.0 KB, type: APP, subtype: OTA_1
14:24:01.162 -> spiffs : addr: 0x00290000, size: 1388.0 KB, type: DATA, subtype: SPIFFS
14:24:01.162 -> zb_storage : addr: 0x003EB000, size: 16.0 KB, type: DATA, subtype: FAT
14:24:01.162 -> zb_fct : addr: 0x003EF000, size: 4.0 KB, type: DATA, subtype: FAT
14:24:01.162 -> coredump : addr: 0x003F0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
14:24:01.207 -> ------------------------------------------
14:24:01.207 -> Software Info:
14:24:01.207 -> ------------------------------------------
14:24:01.207 -> Compile Date/Time : Apr 15 2025 14:22:18
14:24:01.207 -> Compile Host OS : windows
14:24:01.207 -> ESP-IDF Version : v5.4.1-1-g2f7dcd862a-dirty
14:24:01.207 -> Arduino Version : 3.2.0
14:24:01.207 -> ------------------------------------------
14:24:01.207 -> Board Info:
14:24:01.207 -> ------------------------------------------
14:24:01.207 -> Arduino Board : ESP32C6_DEV
14:24:01.207 -> Arduino Variant : esp32c6
14:24:01.207 -> Arduino FQBN : esp32:esp32:esp32c6:JTAGAdapter=default,CDCOnBoot=default,PartitionScheme=zigbee,CPUFreq=160,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=verbose,EraseFlash=all,ZigbeeMode=ed
14:24:01.254 -> ============ Before Setup End ============
14:24:01.346 -> [ 500][V][esp32-hal-uart.c:552] uartBegin(): UART0 baud(115200) Mode(800001c) rxPin(17) txPin(16)
14:24:01.346 -> [ 509][V][esp32-hal-uart.c:650] uartBegin(): UART0 not installed. Starting installation
14:24:01.346 -> [ 517][V][esp32-hal-uart.c:660] uartBegin(): UART0 RX FIFO full threshold set to 120 (value requested: 120 || FIFO Max = 128)
14:24:01.393 -> [ 528][V][esp32-hal-uart.c:677] uartBegin(): Setting UART0 to use XTAL clock
14:24:01.393 -> [ 536][V][esp32-hal-uart.c:732] uartBegin(): UART0 initialization done.
14:24:01.393 -> [ 542][V][esp32-hal-uart.c:783] uartSetRxFIFOFull(): UART0 RX FIFO Full value set to 120 from a requested value of 120
14:24:01.393 -> [ 553][V][esp32-hal-rmt.c:454] rmtInit(): GPIO 8 - TX MODE - MemSize[48] - Freq=10000000Hz
14:24:01.393 -> [ 561][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_TX (10) successfully set to 0x42005ab8
14:24:01.439 -> [ 573][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_RX (11) successfully set to 0x42005ab8
14:24:01.439 -> [ 584][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type RMT_TX (10) with bus 0x4081b0cc
14:24:01.439 -> [ 595][V][esp32-hal-rmt.c:305] _rmtWrite(): GPIO: 8 - Request: 24 RMT Symbols - Blocking - Timeout: -1
14:24:01.439 -> [ 604][V][esp32-hal-rmt.c:306] _rmtWrite(): GPIO: 8 - Currently in Loop Mode: [NO] | Asked to Loop: NO, LoopCancel: NO
14:24:01.439 -> [ 615][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42004876
14:24:01.486 -> [ 626][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
14:24:01.486 -> Adding ZigbeeLight endpoint to Zigbee Core
14:24:01.486 -> [ 636][D][ZigbeeCore.cpp:97] addEndpoint(): Endpoint: 10, Device ID: 0x0102
14:24:01.486 -> [ 647][D][ZigbeeCore.cpp:145] zigbeeInit(): Initialize Zigbee stack
14:24:01.579 -> [ 731][D][ZigbeeCore.cpp:152] zigbeeInit(): Register all Zigbee EPs in list
14:24:01.579 -> [ 739][I][ZigbeeCore.cpp:160] zigbeeInit(): List of registered Zigbee EPs:
14:24:01.579 -> [ 746][I][ZigbeeCore.cpp:162] zigbeeInit(): Device type: Color Dimmable Light Device, Endpoint: 10, Device ID: 0x0102
14:24:01.626 -> [ 760][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
14:24:01.626 -> [ 770][I][ZigbeeCore.cpp:241] esp_zb_app_signal_handler(): Zigbee stack initialized
14:24:01.626 -> [ 778][D][ZigbeeCore.cpp:242] esp_zb_app_signal_handler(): Zigbee channel mask: 0x07fff800
14:24:01.626 -> [ 787][I][ZigbeeCore.cpp:248] esp_zb_app_signal_handler(): Device started up in factory-reset mode
14:24:01.626 -> [ 796][I][ZigbeeCore.cpp:255] esp_zb_app_signal_handler(): Start network steering
14:24:01.672 -> Connecting to network
14:24:01.672 -> .......................[ 3031][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:03.924 -> ................................[ 6269][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:07.151 -> ................................[ 9507][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:10.370 -> .................................[ 12744][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:13.641 -> ................................[ 15982][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:16.860 -> ................................[ 19219][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:20.075 -> .................................[ 22457][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:23.389 -> ................................[ 25695][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:26.561 -> .................................[ 28933][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:29.871 -> ................................[ 32171][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:33.083 -> ................................[ 35409][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:36.255 -> .................................[ 38647][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:39.571 -> ................................[ 41885][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:42.787 -> ................................[ 45123][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:45.961 -> .................................[ 48361][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:49.268 -> ................................[ 51599][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:52.490 -> .................................[ 54837][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:55.753 -> ................................[ 58075][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:24:58.964 -> ................................[ 61312][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:02.180 -> .................................[ 64550][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:05.492 -> ................................[ 67788][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:08.666 -> ................................[ 71026][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:11.884 -> .................................[ 74264][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:15.200 -> ................................[ 77501][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:18.373 -> .................................[ 80739][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:21.677 -> ................................[ 83976][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:24.898 -> ................................[ 87214][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:28.069 -> .................................[ 90452][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:31.384 -> ................................[ 93690][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:34.596 -> ................................[ 96928][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:37.765 -> .................................[100166][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:41.070 -> ................................[103403][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:44.281 -> .................................[106641][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:47.593 -> ................................[109879][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:50.771 -> ................................[113117][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:53.989 -> .................................[116355][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:25:57.293 -> ................................[119593][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:00.460 -> ................................[122831][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:03.673 -> .................................[126069][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:06.979 -> ................................[129307][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:10.196 -> .................................[132545][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:13.469 -> ................................[135783][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:16.687 -> ................................[139021][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:19.901 -> .................................[142259][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:23.166 -> ................................[145496][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:26.386 -> ................................[148734][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:29.606 -> .................................[151972][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:32.871 -> ................................[155210][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:36.094 -> .................................[158448][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:39.402 -> ................................[161686][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:42.574 -> ................................[164924][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:45.790 -> .................................[168162][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:49.098 -> ................................[171400][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:52.269 -> ................................[174638][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:55.481 -> .................................[177876][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:26:58.777 -> ................................[181114][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:02.002 -> .................................[184351][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:05.310 -> ................................[187589][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:08.475 -> ................................[190827][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:11.692 -> .................................[194065][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:15.010 -> ................................[197303][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:18.177 -> ................................[200541][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:21.393 -> .................................[203778][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
14:27:24.703 -> ......................................[207626][I][ZigbeeCore.cpp:308] esp_zb_app_signal_handler(): Joined network successfully (Extended PAN ID: 4b:a0:61:84:42:21:a4:e3, PAN ID: 0x04a6, Channel:20, Short Address: 0x1a00)
14:27:28.481 -> [207644][V][ZigbeeCore.cpp:527] setNVRAMChannelMask(): Channel mask set to 0x00100000
14:27:28.481 ->
14:27:28.481 -> =========== After Setup Start ============
14:27:28.481 -> INTERNAL Memory Info:
14:27:28.526 -> ------------------------------------------
14:27:28.526 -> Total Size : 445948 B ( 435.5 KB)
14:27:28.526 -> Free Bytes : 375840 B ( 367.0 KB)
14:27:28.526 -> Allocated Bytes : 61588 B ( 60.1 KB)
14:27:28.526 -> Minimum Free Bytes: 375840 B ( 367.0 KB)
14:27:28.526 -> Largest Free Block: 344052 B ( 336.0 KB)
14:27:28.526 -> ------------------------------------------
14:27:28.526 -> GPIO Info:
14:27:28.526 -> ------------------------------------------
14:27:28.526 -> GPIO : BUS_TYPE[bus/unit][chan]
14:27:28.526 -> --------------------------------------
14:27:28.526 -> 8 : RMT_TX
14:27:28.526 -> 9 : GPIO
14:27:28.572 -> 16 : UART_TX[0]
14:27:28.572 -> 17 : UART_RX[0]
14:27:28.572 -> ============ After Setup End =============

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Apr 15, 2025

I see in the logs that after many tries it has successfully joined the network:

4:27:24.703 -> 207626][I][ZigbeeCore.cpp:308] esp_zb_app_signal_handler(): Joined network successfully (Extended PAN ID: 4b:a0:61:84:42:21:a4:e3, PAN ID: 0x04a6, Channel:20, Short Address: 0x1a00)

So where is actually the issue? We are running Zigbee devices on ESPs without any problems.

@tvixen
Copy link
Author

tvixen commented Apr 15, 2025

Yes, but my Tuya app says "no new devices found"

Im a supposed to delete the old device in the Tuya app before adding a new function to the Zigbee device?

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Apr 15, 2025

For sure, when flashing new firmware to ESP, remove the device first , flash and add again.
Also set Erase Flash before upload to Enabled in the IDE Tools menu.

But TBH I am not sure if the ESP is supposed to work under Tuya app. I did not see anyone trying that before.
If you can share more details on how is the process and if that works It would be nice.

@espressif espressif locked and limited conversation to collaborators Apr 15, 2025
@P-R-O-C-H-Y P-R-O-C-H-Y converted this issue into discussion #11252 Apr 15, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Area: Zigbee Issues and Feature Request about Zigbee
Projects
None yet
Development

No branches or pull requests

3 participants