awtrix3 icon indicating copy to clipboard operation
awtrix3 copied to clipboard

[BUG] Error when trying to flash my Ulanzi clock: "Failed to initialize."

Open Jonas-Sander opened this issue 3 years ago • 42 comments

Bug report

I'm trying to flash my lanzi TC001 Smart Pixel Uhr 2882 via https://blueforcer.github.io/awtrix-light/#/flasher.
This error occures:

grafik

I'm using a windows pc and tried it with:

  • Edge: Version 117.0.2045.47 (Offizielles Build) (64-Bit)
  • Chrome: Version 117.0.5938.92 (Offizieller Build) (64-Bit)

I already tried to reset my ULANZI clock via "Logs & console" > "Reset device" and by pressing the reset button at the back of the device. Nothing helped.

When I press "Install" the device beeps and turns off for a brief moment but after that it turns back on and nothing changed.

Additional information

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)

To Reproduce

  1. Connect the ULANZI pixel clock via USB to my PC
  2. Try using the flashing tool at https://blueforcer.github.io/awtrix-light/#/flasher (+ check erase device button)

Expected behavior

The device should be flashed.

Screenshots

https://github.com/Blueforcer/awtrix-light/assets/29028262/45ff7e26-b2fd-4c5d-95dc-50ef2e4a85b5

Logs

----------------BOOTING INFO----------------
------ESP SDK Version : v3.3.5-1-g85c43024c
------Dot2d Version : dot2d-0.1.0
------Firmware Version : 1.7.3.385ae1
------SPIFFS File System init succeed.
------Global Device Data init succeed.
------Global Config Data init succeed.
------Global User Data init succeed.
------Global App Switch Data init succeed.
------Global System Data init succeed.
------Dot2d Director init succeed.
------Screen And Canvas init succeed.
------App Manager init succeed.
------Device init succeed.
connect-221663ff.js:485 Initializing Improv Serial
connect-221663ff.js:810  Improv initialization failed. Error: Improv Wi-Fi Serial not detected
    at connect-221663ff.js:485:1200
_initialize @ connect-221663ff.js:810
await in _initialize (asynchron)
firstUpdated @ connect-221663ff.js:810
_$AE @ connect-221663ff.js:1
performUpdate @ connect-221663ff.js:1
scheduleUpdate @ connect-221663ff.js:1
_$E_ @ connect-221663ff.js:1
await in _$E_ (asynchron)
requestUpdate @ connect-221663ff.js:1
o @ connect-221663ff.js:1
de @ connect-221663ff.js:1
ce @ connect-221663ff.js:1
ba @ connect-221663ff.js:512
_a @ connect-221663ff.js:867
await in _a (asynchron)
(anonymous) @ install-button.js:1
connect-221663ff.js:485 Try hard reset.
connect-221663ff.js:485  Error: Couldn't sync to ESP. Try resetting.
    at pa.sync (connect-221663ff.js:485:58250)
    at async pa.initialize (connect-221663ff.js:485:53144)
    at async connect-221663ff.js:485:65392

Jonas-Sander avatar Oct 01 '23 18:10 Jonas-Sander

Okay, I solved by connecting to the Ulanzi clock via the IP address shown on the device, then tapping "About" (the button at the very bottom of the page), selecting update firmware, and choosing "ulanzi_TC001_0.88.bin" that is at the "releases" tab here on GitHub. Since I already added the wifi before updating the clock it connected directly to my wifi after flashing it with the AWTRIX firmware.

Jonas-Sander avatar Oct 02 '23 10:10 Jonas-Sander

This process is not documented though and the original way (the quickstart at https://blueforcer.github.io/awtrix-light/#/quickstart) didn't work for me.

Jonas-Sander avatar Oct 02 '23 10:10 Jonas-Sander

You need to use a high quality cable and probably another USB port. The ulanzi hardware is bad. But glad it works now.

Blueforcer avatar Oct 02 '23 10:10 Blueforcer

You need to use a high quality cable and probably another USB port. The ulanzi hardware is bad. But glad it works now.

I tried it with 2 other USB cables and 2 more USB ports, still didn't work :/

Jonas-Sander avatar Oct 03 '23 13:10 Jonas-Sander

Sorry there is nothing I can do. Some users reported that it works on another PC for any reason. There are also users where serial connection doesn't work at all due a hardware failure. But this belong to less than 1%. For most users the webflasher works as expected

Blueforcer avatar Oct 03 '23 14:10 Blueforcer

No worries, thanks for your help :)

There is one thing that was annoying though because of this issue: When I had issues with the IP settings (I changed something and couldn't connect to the web interface afterwards) I had troubles resetting the device. The reset button at the back of the device didn't function properly. If you press it nothing happens. I tried pressing, holding, turning the device on and off several times etc. and it didn't work. After a while I got lucky and it somehow went back to the access point mode. I think it was when pressing the reset button while the device is booting up? I tried to reset it again afterwards once and it didn't work. Is there a special way or time when the reset button has to be pressed?

Jonas-Sander avatar Oct 03 '23 20:10 Jonas-Sander

Okay, I solved by connecting to the Ulanzi clock via the IP address shown on the device, then tapping "About" (the button at the very bottom of the page), selecting update firmware, and choosing "ulanzi_TC001_0.88.bin" that is at the "releases" tab here on GitHub. Since I already added the wifi before updating the clock it connected directly to my wifi after flashing it with the AWTRIX firmware.

Can confirm, this also was the way to go for me (y)

pzzz avatar Oct 27 '23 20:10 pzzz

Okay, I solved by connecting to the Ulanzi clock via the IP address shown on the device, then tapping "About" (the button at the very bottom of the page), selecting update firmware, and choosing "ulanzi_TC001_0.88.bin" that is at the "releases" tab here on GitHub. Since I already added the wifi before updating the clock it connected directly to my wifi after flashing it with the AWTRIX firmware.

Worked for me, too. Thanks for sharing!

GitGudin avatar Dec 12 '23 11:12 GitGudin

Thank you, really helped me after trying numerous cables!

coalfield avatar Jan 22 '24 14:01 coalfield

I can confirm that using a better cable helped. When I switched to a very short (about 50cm) Thunderbolt 4 cable I was able to successfully flash the firmware with my Macbook.

wAuner avatar Feb 03 '24 16:02 wAuner

I would like to confirm that changing the cable helped! It's because of the way the clock will connect to your mac, choosing serial connection as the connection method (important to make it work, don't choose bluetooth) was only possible then.

mbnn6 avatar Feb 22 '24 21:02 mbnn6

ulanzi_TC001_0.88.bin

I have the same problem. Can you tell me where I can find the file "ulanzi_TC001_0.88.bin"?

many thanks for the help

SimonKai22 avatar Mar 14 '24 08:03 SimonKai22

https://github.com/Blueforcer/awtrix3/releases

Blueforcer avatar Mar 14 '24 08:03 Blueforcer

Many thanks for the link. If I have managed to install this version on the Ulanzi, what do I have to do afterwards?

SimonKai22 avatar Mar 14 '24 09:03 SimonKai22

Many thanks for the link. If I have managed to install this version on the Ulanzi, what do I have to do afterwards?

What do you mean? I think there must be a reason why you're flashing awtrix. You should read the documentation for further steps

Blueforcer avatar Mar 14 '24 09:03 Blueforcer

oh ok, I think I misunderstood that. Is "ulanzi_TC001_0.88.bin" the same version as the one via the web flasher? Finally, I would like to have Awtrix on the watch so that I can use it via MQTT

SimonKai22 avatar Mar 14 '24 10:03 SimonKai22

That worked! Thank you How do I switch off the temperature and humidity display? Unfortunately I don't understand the instructions

SimonKai22 avatar Mar 14 '24 19:03 SimonKai22

Yep. It worked that way, had the same problems on my mac. Already bought your app, worth the money!

noizee2k avatar Mar 24 '24 13:03 noizee2k

I just want to add that I had the same issue. I even flashed the firmware via commandline esptool, but even though reporting success, it didn't came up again. However I was able to reflash the original firmware and use the about->update method to flash the very same file I tried before and this worked. I feel like there should be a hint to this procedure as alternative to the Online Flasher, as I tested several combinations including 3x USB A to C cables, 3x USB C to C cables, 2x Linux computers, one Windows Laptop and 2 TC001 without success.

TimCommer avatar Apr 01 '24 10:04 TimCommer

I also think this should be highlighted / documented on the flasher site.

Jonas-Sander avatar Apr 01 '24 11:04 Jonas-Sander