xyzroe / XZG

Unifies the best innovations from previous Zigbee gateway projects into a single, comprehensive solution
https://xzg.xyzroe.cc/
GNU General Public License v3.0
99 stars 21 forks source link

UZG-01 unable to flash router firmware #105

Open habitats-tech opened 1 week ago

habitats-tech commented 1 week ago

I have several UZG-01 and I am unable to flash Zigbee firmware using the UI and Ethernet communication. Flashing the coordinator firmware is not an issue using ZigStarGW-MT. However, trying to flash router firmware seems to corrupt the device. Take the example below:

image

Trying to flash router firmware using the UI the update hangs on 66%.

image

image

Which leaves UZG-01 with corrupt firmware.

image

Using ZigStarGW-MT also corrupts the firmware.

image

image

The result is again corrupt firmware.

image

Does anyone have a solution to this problem.

habitats-tech commented 1 week ago

I have attempted to erase NVRAM, but issue persists. Although it states cannot communicate over the serial port it can still be flashed using the ZigStarGW-MT flasher.

image

habitats-tech commented 1 week ago

configHW.json

{ "board": "UZG-01", "addr": 0, "pwrPin": 5, "mdcPin": 23, "mdiPin": 18, "phyType": 0, "clkMode": 3, "btnPin": 35, "btnPlr": 1, "uartSelPin": 33, "uartSelPlr": 1, "ledModePin": 12, "ledModePlr": 1, "ledPwrPin": 14, "ledPwrPlr": 1, "zbTxPin": 4, "zbRxPin": 36, "zbRstPin": 16, "zbBslPin": 32 }

SAOPP commented 1 week ago

Try the following:

  1. reboot the coordinator
  2. disconnect all connections (socket and mqtt)
  3. retry flashing
habitats-tech commented 1 week ago

All my actions were performed on a device which had no connections to anything except Ethernet.

cloudbr34k84 commented 1 week ago

Im trying to flash a previous Z-Stack_3.x.0_coordinator fimware because the latest one is causing all sorts of iossues Im using the new interface, and it says it flashed and reboots, but it still says 20240710 when i chose 20240316

image image

SAOPP commented 1 week ago

You are talking about esp firmware.

SAOPP commented 1 week ago

Zigbee firmware is located on the status page under the heading called Zigbee.

SAOPP commented 1 week ago

an older version of Z2M

Btw, wtf this mean :question:

cloudbr34k84 commented 1 week ago

just realised this is a router issue post. ill delete and add a new issues

SAOPP commented 1 week ago

just realised this is a router issue post. ill delete and add a new issues

Just share ya full screenshot of status page.

SAOPP commented 1 week ago

Does the firmware process complete correctly?

cloudbr34k84 commented 1 week ago

just realised this is a router issue post. ill delete and add a new issues

Just share ya full screenshot of status page.

image

SAOPP commented 1 week ago

So u tried to flash 20240316 - it's correct?

cloudbr34k84 commented 1 week ago

Does the firmware process complete correctly?

yep

So u tried to flash 20240316 - it's correct?

yep

SAOPP commented 1 week ago

Have u tried opening the coordinator's web interface in incognito mode or from another browser?

Try a couple of simple steps, clear the cache of the current page (you never know), try again, reboot the coordinator and immediately start the firmware process again.

cloudbr34k84 commented 1 week ago

Have u tried opening the coordinator's web interface in incognito mode or from another browser?

Try a couple of simple steps, clear the cache of the current page (you never know), try again, reboot the coordinator and immediately start the firmware process again.

video of the whole process, unless im doing something wrong. have cleared cache, will try your steps https://github.com/user-attachments/assets/e8e4f37d-430d-41e3-8b77-5d7153492314

cloudbr34k84 commented 1 week ago

Ok opened web UI in incognito cleared cache restarted device immediately tried OTA firmware update: to 20240316 Im now getting "No response; check if IP or USB mode changed." Serial settings: says Network Mode

SAOPP commented 1 week ago

video of the whole process, unless im doing something wrong. have cleared cache, will try your steps https://github.com/user-attachments/assets/e8e4f37d-430d-41e3-8b77-5d7153492314

Did the process complete automatically or did you click the page refresh button?

cloudbr34k84 commented 1 week ago

video of the whole process, unless im doing something wrong. have cleared cache, will try your steps https://github.com/user-attachments/assets/e8e4f37d-430d-41e3-8b77-5d7153492314

Did the process complete automatically or did you click the page refresh button?

i let it complete

SAOPP commented 1 week ago

Looks like HG devices overdeep, @mercenaruss @xyzroe any comments?

xyzroe commented 1 week ago

I have no ideas. Maybe someone else could check the same situation?

SAOPP commented 1 week ago

i let it complete

As one of the options, I can suggest using the web installer, and flashing the device again, and then try flashing the zigbee chip again...

cloudbr34k84 commented 1 week ago

i let it complete

As one of the options, I can suggest using the web installer, and flashing the device again, and then try flashing the zigbee chip again...

one step ahead of yeah, the only issue is the older UI doenst show when the update is done?

cloudbr34k84 commented 1 week ago

well i was finally able to to use the multi tool to install the previous FW. image

habitats-tech commented 1 week ago

The only reliable way to flash coordinator firmware is using the ZigStarGW-MT tool.

Can anyone point me to the most recent router firmware release for UZG-01 to try flash it using the ZigStarGW-MT tool.

Using the webUI is a waste of time as it does not work.

cloudbr34k84 commented 1 week ago

The only reliable way to flash coordinator firmware is using the ZigStarGW-MT tool.

Can anyone point me to the most recent router firmware release for UZG-01 to try flash it using the ZigStarGW-MT tool.

Using the webUI is a waste of time as it does not work.

Then why is it there..

habitats-tech commented 1 week ago

I have no idea why it works for some people. For me it has never worked, unlike SLZB which works flawlessly every time.

I am not here to debate why not. I am here to resolve an issue.

Can ANYONE point me to the latest router firmware for UZG-01 (it has to be router firmware not coordinator firmware).

habitats-tech commented 1 week ago

For anyone reading this. Whenever you flash Zigbee firmware, you should always reboot the device (not just Zigbee) to get the most current status of the device. It works every time.

habitats-tech commented 4 days ago

So I think I know what the issues updating FW through the webUI are.

My primary network sits behind upstream and downstream proxies and other security features. When I try to update the UZG-01 FW on this network it always fails while SLZB devices have no such issues.

Setting up an open network so far have been able to update UZG-01 FW successfully through the webUI.

cloudbr34k84 commented 4 days ago

So I was successful on updating the firmware as well via the UI, but I was on apple MacBook running chrome.. I don't have any proxies so who knows

On Wed, 11 Sept 2024, 3:07 pm Habitats Tech, @.***> wrote:

So I think I know what the issues updating FW through the webUI are.

My primary network sits behind upstream and downstream proxies and other security features. When I try to update the UZG-01 FW on this network it always fails while SLZB devices have no such issues.

Setting up an open network so far have been able to update UZG-01 FW successfully through the webUI.

— Reply to this email directly, view it on GitHub https://github.com/xyzroe/XZG/issues/105#issuecomment-2342633215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOB2WBAPBFPWQMGTLEYH77DZV7FYJAVCNFSM6AAAAABNSH7AWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBSGYZTGMRRGU . You are receiving this because you commented.Message ID: @.***>