espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
154 stars 26 forks source link

Example project esp_zigbee_ota is not working (TZ-641) #249

Closed makkssim closed 7 months ago

makkssim commented 7 months ago

Answers checklist.

IDF version.

v5.2

esp-zigbee-lib version.

1.1.1

esp-zboss-lib version.

1.1.1

Espressif SoC revision.

ESP32-c6

What is the expected behavior?

I expected to run the example project and get a result similar to that described in the attached readme file. In particular, that between two devices firmware as client and server, a connection will be established and a file will be transferred.

What is the actual behavior?

The connection is not established, the file is not transferred. Screenshot of the client log: image Screenshot of the server log: image Other projects using zigbee such as esp_zigbee_HA_sample and esp_zigbee_customized_devices work fine on these devices.

Steps to reproduce.

  1. Git clone (https://github.com/espressif/esp-zigbee-sdk) repository
  2. Open folder as a project
  3. Run

More Information.

No response

kelin6 commented 7 months ago

@makkssim Based on the server log you provided, it indicates that the server device has not been factory reset. This is likely because the device may have run other Zigbee examples, causing other network parameters to exist.

Therefore, please erase both the server and client devices. You can use the following commands to erase the devices before downloading the code:

idf.py -p <port>  erase-flash flash monitor

For more details, you can refer to ota_server/README

makkssim commented 7 months ago

Did as you said. Nothing has changed. I am attaching a screenshot from cmd. image

djorr5 commented 7 months ago

You forgot the "flash" and "monitor" after erase-flash

On Mon, 19 Feb 2024, 3:21 am makkssim, @.***> wrote:

Did as you said. Nothing has changed. I am attaching a screenshot from cmd. image.png (view on web) https://github.com/espressif/esp-zigbee-sdk/assets/70913058/12fa2135-1e3a-48ff-b6e3-e998cbdc69f9

— Reply to this email directly, view it on GitHub https://github.com/espressif/esp-zigbee-sdk/issues/249#issuecomment-1951375579, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLYS3M6WP5GS2SNWEHT5L3YUITAFAVCNFSM6AAAAABDNQDZD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGM3TKNJXHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

makkssim commented 7 months ago

Okay, now it's working. I don't understand why it doesn't work if I run it through vs code?

djorr5 commented 7 months ago

VS has a habit of caching commands.

On Mon, 19 Feb 2024, 7:22 pm makkssim, @.***> wrote:

Okay, now it's working. I don't understand why it doesn't work if I run it through vs code?

— Reply to this email directly, view it on GitHub https://github.com/espressif/esp-zigbee-sdk/issues/249#issuecomment-1951924021, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLYS3LC46OSHPL54ODWBDLYUMDUDAVCNFSM6AAAAABDNQDZD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRHEZDIMBSGE . You are receiving this because you commented.Message ID: @.***>

makkssim commented 7 months ago

thanks for the help