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

Firmware upgrade process documented #13

Open
kasparsd opened this issue Nov 4, 2024 · 0 comments
Open

Firmware upgrade process documented #13

kasparsd opened this issue Nov 4, 2024 · 0 comments

Comments

@kasparsd
Copy link

kasparsd commented Nov 4, 2024

I've been able to capture the HTTP traffic to the unit during a firmware update which I have documented here cmroche/greeclimate#111 and in a blog post.

In essence, the app sends the following pack payload encrypted with the device key (not the hardcoded global key):

{"t":"upgrade","url":"http://eu.grih.gree.com/wifiModule/image/10141/145680","mac":"UNIT_MACID"}

It is important to note that the firmware URLs include a FileMd5 HTTP header which appears to be used for validating the integrity of the downloaded file (based on the strings extracted from the binaries). Therefore, using a custom update server would require adding this header.

My unit currently fails to apply the latest official 3.77 update so I'm unable to verify this upgrade process. However, I was able to send a custom update payload to the unit and get the confirmation message {"t":"ret","r":200,"mac":"UNIT_MACID"} back.

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

1 participant