niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
507 stars 66 forks source link

Request Aqara G2H ota 2.2.7 #176

Open c20h32o5 opened 1 year ago

c20h32o5 commented 1 year ago

Please, make the dump ota 2.2.7 Thnks

niceboygithub commented 1 year ago

G2H is a bad software design. Have dump rootfs does not helping.

It is a electric garbage.

c20h32o5 commented 1 year ago

I dumped the SPI from the working camera via flashrom and uploaded it to the non-working camera. The camera has loaded, but does not want to bind to the aqara app.

niceboygithub commented 1 year ago

You overwrited the factory data.

niceboygithub commented 1 year ago

Did you check Wi-Fi driver enabled by wap_supplicant?

c20h32o5 commented 1 year ago

If you put the factory.ini file on the memory card, then the camera is connected.

c20h32o5 commented 1 year ago

[ 22.924231] ==> rtl8188e_iol_efuse_patch [ 23.664091] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 25.053553] cfg80211: Calling CRDA to update world regulatory domain [ 30.097882] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready ====================start avahi============================\n Successfully called chroot(). Starting with address 169.254.7.126 Routable address already assigned, sleeping. No longer a routable address configured, restarting probe process. [ 48.406420] [Mstar GPIO] gpio(18) to irq(-1) [ 48.429894] [Mstar GPIO] gpio(63) to irq(-1) Callout BIND, address 169.254.7.126 on interface wlan0 client: ip: either "to" is duplicate, or "scope" is garbage [ 54.205856] cfg80211: Calling CRDA to update world regulatory domain [ 54.614206] ==> rtl8188e_iol_efuse_patch

[ 56.400931] cfg80211: Calling CRDA to update world regulatory domain Successfully claimed IP address 169.254.7.126 A routable address has been configured. Callout UNBIND, address 169.254.7.126 on interface wlan0 client: ip: either "to" is duplicate, or "scope" is garbage client: ip: RTNETLINK answers: Cannot assign requested address Script execution failed with return value 2

niceboygithub commented 1 year ago

It shall be hotspot mode. Did you see it by WiFi?

c20h32o5 commented 1 year ago

yes. but aqara app says "binding fail". Firmware from another camera, there is a different mac address and probably a serial number.

niceboygithub commented 1 year ago

you can get the values of properties.

agetprop
c20h32o5 commented 1 year ago

Which of these should you try to change?

[ro.sys.vendor]: [Lumi United Technology Co., Ltd.]

c20h32o5 commented 1 year ago

The camera receives an IP address from the subnet of the router, but after scanning the QR it issues a binding fail. In QR url to aqara website. Perhaps the camera gives certain data when connected.

c20h32o5 commented 1 year ago

20230331 02:10:50.557 NOTICE camera_tmp 2537: [AIOT SEND]: {"id":38816,"_to":1,"method":"/v1.0/lumi/dev/connect/gateway","params":{"model":"lumi.camera.gwag03","bindKey":"lumiETptXo5H9tWm","bssid":"b0:a7:b9:2a:a4:63","firmwareVersion":"2.2.7_0001.0618","chipVersion":"mstar","hwMac":"","ipLan":"","longitude":"","latitude":"","ident":"54ef44100030d643"}} 20230331 02:10:50.862 NOTICE camera_tmp 2402: [AIOT RECV]: {"id":38816,"method":"/v1.0/lumi/dev/connect/gateway","params":{"code":662}} 20230331 02:10:50.862 NOTICE camera_tmp 2407: [AIOT_RPC_COST]: 1ms 20230331 02:10:50.962 ERROR camera_tmp 1999: GetAiotToken code: 662 20230331 02:10:50.962 ERROR camera_tmp 3336: GetAiotToken fail

almirus commented 1 year ago

any news? I have same issue

[   16.516544] cfg80211: Calling CRDA to update world regulatory domain
19700101 03:00:15.956 NOTICE   monitor 351: start process /tmp/out/ha_agent...
19700101 03:00:16.457 NOTICE   monitor 351: start process /tmp/out/proxy_server...
19700101 03:00:16.958 NOTICE   monitor 351: start process /tmp/out/camera...
19700101 03:00:17.458 NOTICE   monitor 351: start process /tmp/out/ha_master...
19700101 03:00:17.959 NOTICE   monitor 351: start process /tmp/out/zigbee_agent...
19700101 03:00:18.460 NOTICE   monitor 351: start process /tmp/out/ha_driven...
19700101 03:00:18.961 NOTICE   monitor 368: [monitor] status = 11
19700101 03:00:18.961 NOTICE   monitor 373: child exited abnormal signal number=11
[   21.804167] ==> rtl8188e_iol_efuse_patch
[   28.664169] ==> rtl8188e_iol_efuse_patch
====================start avahi============================\n
Successfully called chroot().
Starting with address 169.254.7.37
[   35.504168] ==> rtl8188e_iol_efuse_patch
Callout BIND, address 169.254.7.37 on interface wlan0
client: ip: either "to" is duplicate, or "scope" is garbage
[   42.354181] ==> rtl8188e_iol_efuse_patch
Successfully claimed IP address 169.254.7.37
[   49.194168] ==> rtl8188e_iol_efuse_patch
[   56.034168] ==> rtl8188e_iol_efuse_patch
[   62.874169] ==> rtl8188e_iol_efuse_patch
[   69.734168] ==> rtl8188e_iol_efuse_patch
[   76.604168] ==> rtl8188e_iol_efuse_patch
[   83.454180] ==> rtl8188e_iol_efuse_patch
[   90.304166] ==> rtl8188e_iol_efuse_patch
[   97.144213] ==> rtl8188e_iol_efuse_patch
[  103.994168] ==> rtl8188e_iol_efuse_patch
[  110.844168] ==> rtl8188e_iol_efuse_patch
[  117.684168] ==> rtl8188e_iol_efuse_patch
[  124.524169] ==> rtl8188e_iol_efuse_patch
[  131.384168] ==> rtl8188e_iol_efuse_patch
[  138.224181] ==> rtl8188e_iol_efuse_patch
[  145.074168] ==> rtl8188e_iol_efuse_patch
[  151.914168] ==> rtl8188e_iol_efuse_patch
[  158.754305] ==> rtl8188e_iol_efuse_patch
#!/bin/sh[  165.604168] ==> rtl8188e_iol_efuse_patch
almirus commented 1 year ago

do you have 2.2.7_0001.0618 dump?