ael-code / daikin-control

Unofficial api documentation and web interface to control "Daikin Emura" air conditioner
GNU General Public License v2.0
295 stars 100 forks source link

Reinstall Firmware #23

Open Andrei1Byte opened 6 years ago

Andrei1Byte commented 6 years ago

Dose anyone knows if is possible to reinstall the Firmware on a Daikin BRP069A42 or do you ever encountered error 251 ?

After connecting the wifi module to the router and updating the Firmware to 3.3.1 if I use the Android app Daikin Online Controller I receive an error "251 An error occurred on the unit".

The output of /common/basic_info ret=OK,type=aircon,reg=eu,ver=3_3_1,err=251,lpw_flag=0,adp_kind=2,led=1

WildRat commented 6 years ago

There is "dkac/system/fwupdate" command, but I don't know parameters. Firmware image can be extracted from apk file of android app.

Andrei1Byte commented 6 years ago

@WildRat Do you know how to extract the Firmware form the android app ? And from where do you know about "dkac/system/fwupdate" ?

WildRat commented 6 years ago

1) Download apk file (for example from here - https://apkpure.com/daikin-online-controller/eu.daikin.remoapp) 2) Open it like ZIP archive (with 7-Zip) 3) In \assets\STMicroWireless\3_3_1\ folder dkacstm-wlan-F-3_3_1.bin - file.

Andrei1Byte commented 6 years ago

@WildRat Thank's.

Now I need to find the parameters for the command, ideas from where to start ?

buxtronix commented 5 years ago

I just upgraded my firmware and captured the upload. Attached is a dump of the HTTP post.

daikin.zip

The client then verifies the checksum (possibly after reboot), not sure what algo it uses:

GET /common/get_progsum?fwsize=489200&fwsize=489200 HTTP/1.1 X-Daikin-uuid: 573xxxxxxxxxxxxxxxxxxxxd76ad5fb Host: 192.168.0.95 Connection: Keep-Alive Accept-Encoding: gzip User-Agent: okhttp/3.9.1

HTTP/1.0 200 OK Content-Length: 17 Content-Type: text/plain

ret=OK,csum=21770

mdima commented 4 years ago

Same issue but posting the same firmware did not help. @AndreiRadac , how did you solve it?

Thanks, Michele

fredrike commented 4 years ago

I am the maintainer of the pydaikin package and I have developed support for BRP069A/Bxx here: https://bitbucket.org/mustang51/pydaikin/branch/BRP072C42#diff

Would need some testers to verify that it is doing the right things..

Basically you need to register an UUID using the endpoint: /common/register_terminal?key={self._key}(where the key is the key printed on the wifi module). And then the header need to contain: X-Daikin-uuid:. Also, make sure to use https.

Andrei1Byte commented 4 years ago

Same issue but posting the same firmware did not help. @AndreiRadac , how did you solve it?

Thanks, Michele

@mdima Hello, I contacted Daikin Support to see if they have a solution, sadly they didn't managed to figure it out, and I requested a replacement for controller. And the new one was ok, I updated the controller via the Android App and I didn't received any errors.

mdima commented 4 years ago

@AndreiRadac Hello, thanks a lot! I will do the same...

Have a good day, Michele