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

GL-C-006P (mini) bricked after OTA update #23128

Open
webns opened this issue Jun 22, 2024 · 24 comments
Open

GL-C-006P (mini) bricked after OTA update #23128

webns opened this issue Jun 22, 2024 · 24 comments
Labels
problem Something isn't working

Comments

@webns
Copy link

webns commented Jun 22, 2024

What happened?

I've updated GL-C-006P (mini) firmware via Z2M OTA update, after that, the controller doesn't respond to any commands (state, brightness, color...). The controller can still be paired/unpaired.

I assume it's the same issue as #22287 but in reverse — the mini controller got firmware for the normal version. I've tried to flash this version — https://github.com/catduckgnaf/zigbee-OTA/blob/3cdcc512f4cc589ab112ecc1ed0adf585fbea005/images/Gledopto/GL-C-006P(MINI)_20451203_20240227.ota but without any success, logs says:

Images currently unavailable for device 'GL-C-006P', hardwareVersion '2', manufacturerName GLEDOPTO, {"fieldControl":0,"manufacturerCode":4687,"imageType":5176,"fileVersion":604057601}'

Current state of the controller:

{
    "color_mode": "xy",
    "linkquality": 160,
    "state": "OFF",
    "update": {
        "installed_version": 604057601,
        "latest_version": 604057601,
        "state": "idle"
    },
    "update_available": false
}

What did you expect to happen?

Mini version of controller doesn't receive updates for normal version

How to reproduce it (minimal and precise)

Update mini version of GL-C-006P via OTA to latest version.

Zigbee2MQTT version

1.38.0 commit: fe048e6

Adapter firmware version

7.4.1 [GA]

Adapter

SLZB-07

Setup

Docker

Debug log

No response

@webns webns added the problem Something isn't working label Jun 22, 2024
@webns
Copy link
Author

webns commented Jun 22, 2024

Disabling OTA updates for GL-C-006P could be a good idea for preventing bricking more devices, at least while problem is being solving

@Koenkk
Copy link
Owner

Koenkk commented Jun 22, 2024

Until it's more clear how to properly update these devices, I've disabled all GL-C-006P OTAs: Koenkk/zigbee-OTA@ae36142

@webns
Copy link
Author

webns commented Jun 22, 2024

Noticed that both updates (normal and mini) had the same "imageType": 5138 but after the update in the normal version it changes to 5176 while the mini version keeps 5138. That's why it's possible to recover a normal controller with mini's firmware.

I've tried to edit imageType in the update for the mini controller but OTA update doesn't start with an error

"error":"Update of '0xa4c138a4688554cd' failed (OTA: Timeout, device did not request any image blocks)"

For now I have no idea how to recover mini version of the controller

@CoolID2
Copy link

CoolID2 commented Jun 22, 2024

I've got the same problem on two of my normal GL-C-006P.
Actually no chance zu bring them up again. The workaround #22287 won't help.

@webns
Copy link
Author

webns commented Jun 23, 2024

Looks like the name of the controller doesn't matter, mini/normal is only a name, the real difference is the hardware they used to build the controller and we can't differentiate one hw from another

@Lukagian
Copy link

I have the same problem. I try to contact gledopto for a working firmware, I hope they will help us to recover the device.

@Andrik45719
Copy link

workaround
https://github.com/Andrik45719/GL-C-006P_mini_fix

@Andrik45719
Copy link

I have the same problem. I try to contact gledopto for a working firmware, I hope they will help us to recover the device.

https://github.com/Koenkk/zigbee-OTA/blob/6384e5e89df73bf4b141485129dccdfe091eedbf/images/Gledopto/GL-C-006P(MINI)_20451203_20240227.ota

@webns
Copy link
Author

webns commented Jun 23, 2024

https://github.com/Koenkk/zigbee-OTA/blob/6384e5e89df73bf4b141485129dccdfe091eedbf/images/Gledopto/GL-C-006P(MINI)_20451203_20240227.ota

It can't be installed because imageType of the firmware is 5138, while broken mini's imageType is 5176

@Lukagian
Copy link

workaround https://github.com/Andrik45719/GL-C-006P_mini_fix

With this workaround now I can control the device. But it is recognized as GL-C-008P.
Screenshot 2024-06-23 alle 20 16 29

@Andrik45719
Copy link

Andrik45719 commented Jun 23, 2024

To flash FW header is patched to cheat z2m
002P to 5176
1E F1 EE 0B00 01 38 00 00 00 4F 12 38_14 01 30
006P mini to 5145
1E F1 EE 0B 00 01 38 00 00 00 4F 12 19_14 01 30

@webns
Copy link
Author

webns commented Jun 23, 2024

To flash FW header is patched to cheat z2m 002P to 5176 006p mini to 5145

Have you patched only header? I was trying to patch OTA update but my controller doesn't accept patched file with error thats says image is not correct

@Andrik45719
Copy link

To flash FW header is patched to cheat z2m 002P to 5176 006p mini to 5145

Have you patched only header? I was trying to patch OTA update but my controller doesn't accept patched file with error thats says image is not correct

https://github.com/Andrik45719/GL-C-006P_mini_fix/blob/main/GL-C-006P_mini_fix.7z

'GL.ota_002' is patched GL-C-002P_V20551203_20240125.ota
'GL.ota_mini_patched' is patched GL-C-006P(MINI)_20451203_20240227.ota

@webns
Copy link
Author

webns commented Jun 23, 2024

With this workaround now I can control the device. But it is recognized as GL-C-008P.

There is a list of different versions of the controller at the end of the OTA update
image

Maybe the same firmware can work on different controllers

@Andrik45719
Copy link

workaround https://github.com/Andrik45719/GL-C-006P_mini_fix

With this workaround now I can control the device. But it is recognized as GL-C-008P. Screenshot 2024-06-23 alle 20 16 29

You have to update two times
1st one to GL-C-002P/008P/007P
2nd to GL-C-006P mini

@Andrik45719
Copy link

With this workaround now I can control the device. But it is recognized as GL-C-008P.

There is a list of different versions of the controller at the end of the OTA update image

Maybe the same firmware can work on different controllers

The problem is to detect right modification of hardware.

@webns
Copy link
Author

webns commented Jun 23, 2024

You have to update two times
1st one to GL-C-002P/008P/007P
2nd to GL-C-006P mini

That's interesting way, will try later, thanks for your research and helpful information

One thing I'm sure about is that OTA updates should be disabled for any controllers 😅

@Lukagian
Copy link

After a restart of z2m the device was recognized as GL-C-006P. For me the fix worked great. Thank you very very much @Andrik45719

@Reinhard-M
Copy link

My device was also bricked. With the patch and step by step description from @Andrik45719 it's fixed, thanks a lot for this 😊

@webns
Copy link
Author

webns commented Jun 24, 2024

Patch from @Andrik45719 worked for my controller too, thank you 👍

@robertoclg
Copy link

The fix worked great for my two devices. Thank you very very much @Andrik45719

@crazych1
Copy link

Maybe not in the subject, but suddenly who knows if it is possible to make the GL-C-006P_mini controller work at full capacity in neutral light mode? 12 volts per channel? In white or yellow light mode, the channel operates at 12 volts, but as soon as the neutral light is turned on, both channels operate at 10 volts. Maybe there's a way to fix it?

@CoolID2
Copy link

CoolID2 commented Jul 2, 2024

Hi,
I have the normal GL-C-006P. Unfortunately also bricked by z2m. Now I have installed the patch from Andrik45719.

  • z2m rebooted
  • device relearned
  • It is also recognized as GL-C-006P
    But it cannot be controlled. It can only be switched off via z2m after relearning.

What am I doing wrong?
Or does this firmware only work with the 006P mini?

@Klikini
Copy link

Klikini commented Jul 2, 2024

@CoolID2 this issue (and fix) is only for the mini. Since you have the normal version, take a look at this one: #21988 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants