Skip to content
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

[ZigBee FW] ncp-uart-hw-v7.4.5.0 is released. Signed version for ZB-GW03 wanted #53

Open
ESP4Ever opened this issue Dec 19, 2024 · 13 comments

Comments

@ESP4Ever
Copy link

ESP4Ever commented Dec 19, 2024

Hi!
I'm using v7.4.3 ZigBee FW from this site on ESPhomeD ZB-GW03 for few months now and experiencing some annoying problems with Tuya devices. According to what I found in WWW, FW 7.4.5 should fix them but there is no signed image available so far

@derzahla
Copy link

derzahla commented Jan 9, 2025

@xsp1989

I am experiencing issues as well, described here: Koenkk/zigbee2mqtt#23224

I have a ZB-GW03 v1.4. with your 7.4.3 fw. Would be great to have some newer builds to try out. Or can you point me to instructions on how to build myself? I dont suppose ZB-GW04 firmware would work for me, or some of the others, would it?

@farmerkz
Copy link

I use several coordinators based on EFR32: ZB-GW03, ZB-GW04, Sonoff E.
Only on ZB-GW03 I use version 7.4.3, on all the others I use version 7.4.5, and on the test coordinator 8.0.2. Unfortunately version 7.4.3 loses to newer versions in stability, besides it has many errors like "network/route error".
@xsp1989, can I know if there is a chance that firmware or version 7.4.5 or 8.0.2 will be compiled for it in the near future?
Thanks!

@derzahla
Copy link

@farmerkz thanks for the reply. Im fairly new to zigbee. Based on things I read last year, I bought the zb-gw03 wifi/eth(I only use wired eth) board as a coordinator and bought two usb dongles that I now realize have zb-gw04 chips. For some reason I dont recall, from what I had read at the time I was under the impression that the zb-gw03 model was the best choice for a coordinator using z2m and that the usb zb-gw04 dongles made good routers but not coordinators.

After setting up zigbee devices throughout my home I realized that everything with a hardwired power source acted as a router itself and saw no need for the usb dongle routers anymore, so here they sit.

Would I be better off using the gw04 dongles over my zb-gw03 tasmota eth-zigbee bridge?

@Mik145
Copy link

Mik145 commented Jan 15, 2025

@xsp1989
It would be great if you made a new firmware. Thank you.

@xsp1989
Copy link
Owner

xsp1989 commented Jan 16, 2025

I have made firmware 7.4.5.0, including signed firmware and unsigned firmware

@ESP4Ever
Copy link
Author

@xsp1989
Thank you so much!

@farmerkz
Copy link

@xsp1989
Excellent, thank you!!!

@farmerkz
Copy link

Successfully updated the firmware, no problems found so far.
@xsp1989
Thanks again :)

@derzahla
Copy link

@xsp1989 Thank you Sir!

@derzahla
Copy link

@farmerkz @xsp1989 this is odd. i keep getting failed: invalid file signature when i try to update with https://github.com/xsp1989/zigbeeFirmware/raw/refs/heads/master/firmware/ZigbeeBridge_SM-011-signed/ncp-uart-sw-7.4.5.0_115200.ota. Ive tried about 20 times now, from tasmota, from safeboot, using the link, uploading the file from my laptop. Ive tried updating safeboot, upgrading to the latest "official" unofficial/tasmota32-zigbeebridge.bin. Holy hell, any idea what I am doing wrong? I kinda remember some similar issues last time I updated the zigbee firmware, but it was quite awhile ago and I dont remember how I got it to work.

@ESP4Ever
Copy link
Author

It is almost one day since FW update I see no z2m restarts nor errors in the log. Thanks again, one headache less)))

@farmerkz
Copy link

@derzahla I make a backup copy of the configuration, reset the configuration and update the firmware from a previously downloaded file, then restore the configuration from the backup copy.

@derzahla
Copy link

derzahla commented Jan 17, 2025

@farmerkz thanks for the tips. I finally got it. For anyone else having trouble - The steps that got it working for me(not sure if they were all necessary - note I was on the latest unofficial/tasmota32-zigbeebridge.bin fw when I began today) were:

  1. backup my config(after reset still apply zigbee fw update)
  2. applied the zigbee2tasmota configuration template:
{"NAME":"ZB-GW03-V1.2","GPIO":[0,0,3552,0,3584,0,0,0,5793,5792,320,544,5536,0,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,608,640,32,0,0,0,0,0],"FLAG":0,"BASE":1}

Still no-go, ncp-uart-sw-7.4.5.0_115200.ota would 'upload' and 'transfer' but then nothing. If flashed from safe-boot it would still fail on signature.

  1. Flashed back to xsp1989's v14.2.0/firmware/tasmota32-ZB-GW03-EN.bin fw. Now when I uploaded ncp-uart-sw-7.4.5.0_115200.ota from the webui, it "uploaded", "transfered" and then rebooted into safeboot to complete the update. SUCCESS!

I could then restore my original config with uses the below template, which as I understand it, simply enables tcp->serial access to the zigbee radio, no zigbee2tasmota stuff.

{"NAME":"Zig_Bridge32","GPIO":[1,1,3552,1,3584,1,1,1,5793,5792,320,544,5536,1,5600,1,0,1,1,5568,0,1,1,1,0,0,0,0,608,640,32,1,1,0,0,1],"FLAG":0,"BASE":1}

Note: If anyone could help elucidate some of the following for me I would greatly appreciate it!

  1. I am still pretty confused about why I needed to change my config template and/or return to xsp1989's v14.2.0/firmware/tasmota32-ZB-GW03-EN.bin fw to get the zigbee radio to flash.

  2. Also do not understand the details of the signature requirements and why I would get 'file signature failed' before. As I understand it, the bootloader requires the signature and none of the firmware updates are touching the bootloader so why the difference?

  3. Furthermore, who has the key needed to sign the updates? Just @xsp1989? If so could @xsp1989 provide a bootloader update that doesnt require signing? That way we could presumably build our own updated firmware instead of having to bother @xsp1989 to do it

Thanks again @xsp1989 for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants