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

UZG-01 unable to flash router firmware #105

Open
habitats-tech opened this issue Sep 3, 2024 · 37 comments
Open

UZG-01 unable to flash router firmware #105

habitats-tech opened this issue Sep 3, 2024 · 37 comments
Labels
question Further information is requested

Comments

@habitats-tech
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

SAOPP commented Sep 4, 2024

Try the following:

  1. reboot the coordinator
  2. disconnect all connections (socket and mqtt)
  3. retry flashing

@habitats-tech
Copy link
Author

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

@cloudbr34k84
Copy link

cloudbr34k84 commented Sep 8, 2024

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
Copy link
Contributor

SAOPP commented Sep 8, 2024

You are talking about esp firmware.

@SAOPP
Copy link
Contributor

SAOPP commented Sep 8, 2024

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

@SAOPP
Copy link
Contributor

SAOPP commented Sep 8, 2024

an older version of Z2M

Btw, wtf this mean ❓

@cloudbr34k84
Copy link

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

@SAOPP
Copy link
Contributor

SAOPP commented Sep 8, 2024

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

Just share ya full screenshot of status page.

@SAOPP
Copy link
Contributor

SAOPP commented Sep 8, 2024

Does the firmware process complete correctly?

@cloudbr34k84
Copy link

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
Copy link
Contributor

SAOPP commented Sep 8, 2024

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

@cloudbr34k84
Copy link

Does the firmware process complete correctly?

yep

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

yep

@SAOPP
Copy link
Contributor

SAOPP commented Sep 8, 2024

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
Copy link

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
Copy link

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
Copy link
Contributor

SAOPP commented Sep 8, 2024

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
Copy link

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
Copy link
Contributor

SAOPP commented Sep 8, 2024

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

@xyzroe
Copy link
Owner

xyzroe commented Sep 8, 2024

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

@SAOPP
Copy link
Contributor

SAOPP commented Sep 8, 2024

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
Copy link

cloudbr34k84 commented Sep 8, 2024

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
Copy link

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

@habitats-tech
Copy link
Author

habitats-tech commented Sep 8, 2024

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
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link

cloudbr34k84 commented Sep 11, 2024 via email

@xyzroe xyzroe added the question Further information is requested label Sep 14, 2024
@dmz006
Copy link

dmz006 commented Feb 27, 2025

I have a UZG-POE 0.5 that I decided to upgrade yesterday; now it's running 20240914 for ESP but when I try to install zigbee I get:
[2405185] | Start Zigbee flashing
[2405189] | ZB flash https://raw.githubusercontent.com/xyzroe/XZG/zb_fws/ti/coordinator/CC1352P7_coordinator_20230507.bin @ 115200
[2408254] | Erase completed!
[2410148] | Error initializing flash process
[2411151] | Erase completed!
[2411302] | Failed to download file, HTTP code: -7

... - repeats a few times

[2438682] | Failed to flash Zigbee
[2438689] <- fe 00 06 00 f1 e7 e5 fe

I have tried multiple images and all are showing the same.

Now since zigbee image is erased it doesn't have any firmware for zigbee and it's not working.

I've tried attaching to local USB, lots of different things; but can't seem to get zigbee firmware loaded.

based on UZG-01 web site I should use 'UZG-01 v0.2+ - Use firmware with a tag "CC1352P7"' - so tried CC1352P7_coordinator_20240710.hex using ZigStar MT:
Opening port socket://192.168.1.19:6638, baud 500000
Reading data from /home/dmz/Downloads/CC1352P7_coordinator_20240710.hex
Firmware file: Intel Hex
Connecting to target...
Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'

with debug log on xzg :
[402516] | ZB enable BSL
[403565] | Now you can flash CC2652!
[403573] <- 06 a8
[408622] | Connected client 2 from 192.168.1.51
[408969] -> 55 55

Is there any way to adjust the speed? zigbee is set to 115200. When trying to flash zigbee in XZG I notice a b=115200 ; but multi tool doesn't seem to have an option.

55 55 on other searches said it was a zigbe chip issue.

Not sure if thats part of the problem; or what i'm doing wrong trying to reflash zigbee Any suggestions welcome.

@habitats-tech
Copy link
Author

The best way to upgrade when UZG refuses to update the image is:

  1. Download the attached zigbee FW image (or download the 20240710 version)

CC1352P7_coordinator_99240915.zip

  1. Use the ZigStarGW-MT tool to update the image. You can update the image over the network. Type the IP address of the UZG followed by port 6638 -> select file (the hex downloaded earlier) -> enable ERASE, WRITE, VERIFY -> Start

Image

@dmz006
Copy link

dmz006 commented Feb 27, 2025

I have tried using the ZigStar GW MT with both network and USB mode and get an ACK/NACK (0x55 0x55) error when trying to write the zigbee firmware.

I have tried in BSL mode, auto bsl, manual (in network mode) and also on USB (ttyeUSB0); all had the same issue:
USB Mode:
Opening port /dev/ttyUSB1, baud 500000
Reading data from /home/dmz/Downloads/CC1352P7_coordinator_99240915.hex
Firmware file: Intel Hex
Connecting to target...
Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'

Opening port socket://192.168.1.19:6638, baud 500000
Reading data from /home/dmz/Downloads/CC1352P7_coordinator_99240915.hex
Firmware file: Intel Hex
Connecting to target...
Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'

I have tried the firmware you shared; but also the 20240710.

All methods are getting the same ACK/NACK error.

Image

@habitats-tech
Copy link
Author

Before you select the firmware, can you try to read the IEEE.

When timeout error this means no communication with the device. The way I solved it in the past was to connect a PC directly to the UZG through a simple switch, bypassing the rest of the network.

I have found the hard way the UZG will not play ball on some networks, but never found the time to find out why.

@habitats-tech
Copy link
Author

It also helps if the computer you are using to connect to the network is connected through wired Ethernet (not WiFi).

@dmz006
Copy link

dmz006 commented Feb 27, 2025

Before you select the firmware, can you try to read the IEEE.

When timeout error this means no communication with the device. The way I solved it in the past was to connect a PC directly to the UZG through a simple switch, bypassing the rest of the network.

I have found the hard way the UZG will not play ball on some networks, but never found the time to find out why.

I get the same "Timeout waiting for ACK/NACK after 'Sync (0x55 0x55)'" when trying to read the IEEE.

I may need to find a windows machine and try the TI firmware tool.

@HASBULATUDALOY
Copy link

Hello everyone. dmz006, I have the same problem as you. Did you manage to solve it?

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

No branches or pull requests

6 participants