RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.73k stars 360 forks source link

After flashing with latest version devices returns to Setup Mode #1611

Closed childledj closed 3 years ago

childledj commented 3 years ago

Detailed steps to reproduce it Device (0D050E) newly flashed via esptool.py with latest fullhaaboot.bin (9.0.4) and after entering web-config and choosing wifi and entering json it not appearing in Homekit Add accessory, but after few minutes device wifi haa-xxxxxx appears again Even if I tryed to flash with older versions (I have proven working 8.1.0), it repeats again and again JSON String {"c":{"l": 13,"b":[{"g":0,"t":5}]},"a":[{"t":1,"i":5,"d": 10,"s":5,"0":{"r":[{"g":12,"v":0}]},"1":{"r":[{"g":12,"v":1}]},"b":[{"g":0}]}]} Used device Sonoff Basic R2 v1.3 HAA version 9.0.4 and previous iOS/iPadOS version 15.1 Logs 0133.976 192.168.1.113-0D050E: ret = 4436

0133.977 192.168.1.113-0D050E: 0133.978 192.168.1.113-0D050E: HTTP/1.1 302 Found 0133.978 192.168.1.113-0D050E: Server: GitHub.com 0133.978 192.168.1.113-0D050E: Date: Fri, 05 Nov 2021 11:44:25 GMT 0133.979 192.168.1.113-0D050E: Content-Type: text/html; charset=utf-8 0133.979 192.168.1.113-0D050E: Vary: X-PJAX, X-PJAX-Container, Accept-Encoding, Accept, X-Requested-With 0133.984 192.168.1.113-0D050E: permissions-policy: interest-cohort=() 0133.987 192.168.1.113-0D050E: Location: https://github.com/RavenSystem/haa/releases/download/9.0.4/otamain.bin.sec 0133.995 192.168.1.113-0D050E: Cache-Control: no-cache 0133.997 192.168.1.113-0D050E: Strict-Transport-Security: max-age=31536000; includeSubdomains; preload 0134.003 192.168.1.113-0D050E: X-Frame-Options: deny 0134.005 192.168.1.113-0D050E: X-Content-Type-Options: nosniff 0134.008 192.168.1.113-0D050E: X-XSS-Protection: 0 0134.010 192.168.1.113-0D050E: Referrer-Policy: no-referrer-when-downgrade 0134.014 192.168.1.113-0D050E: Expect-CT: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors" 0134.022 192.168.1.113-0D050E: Content-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.githubapp.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events translator.github.com wss://alive.github.com .actions.githubusercontent.com wss://.actions.githubusercontent.com online.visualstudio.com/api/v1/locations raw.githubusercontent.com github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/ 0134.156 192.168.1.113-0D050E: Set-Cookie: _gh_sess=7PqVmZ7d%2F1trpG34BiR2smx2AlUfGiTQaasAy03NGN9%2FaJ17T6e%2BoYdSH7dRDc06eUfJLBLhjNNiYTcC5hnpW25wfxvRFKIoDdkjHD4uJ4Z7sJYSBKEuOUMIXv687H%2FuCjgEtL3UT7BrHjiBSxZTuUdm6t%2BasmwTZ%2F9VWIQ3djs4PaVtMUN5PPiqt9Df8oe%2F0LGTIEdJEy6mPrvN1lpNMqBmJEaH7bMeP9eXa%2BajXjyNUpeTO15Qwomyw7%2B5yQa7LCDV1SbnUTmgOK9qy3V5RA%3D%3D--BX3D5o1IBvYI95LN--0lvq02r9DkuAEMBBIvbt8g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax 0134.192 192.168.1.113-0D050E: Set-Cookie: _octo=GH1.1.836253042.1636112700; Path=/; Domain=github.com; Expires=Sat, 05 Nov 2022 11:45:00 GMT; Secure; SameSite=Lax 0134.203 192.168.1.113-0D050E: Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 05 Nov 2022 11:45:00 GMT; HttpOnly; Secure; SameSite=Lax 0134.214 192.168.1.113-0D050E: Content-Length: 140 0134.216 192.168.1.113-0D050E: X-GitHub-Request-Id: F43D:E6C5:37E7572:3AA2A4E:6185193B

0134.221 192.168.1.113-0D050E: 0134.221 192.168.1.113-0D050E: You are being redirected.

0134.233 192.168.1.113-0D050E: 0134.234 192.168.1.113-0D050E: HTTP returns 302

0134.235 192.168.1.113-0D050E: 0134.257 192.168.1.113-0D050E: Forwarding: github.com/RavenSystem/haa/releases/download/9.0.4/otamain.bin.sec 0134.258 192.168.1.113-0D050E: ret = 109

0134.258 192.168.1.113-0D050E: 0134.259 192.168.1.113-0D050E: *** NEW CONNECTION 0135.430 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to github.com port 443..OK 0135.436 192.168.1.113-0D050E: sent OK 0138.436 192.168.1.113-0D050E: ret = 4749

0138.437 192.168.1.113-0D050E: 0138.438 192.168.1.113-0D050E: HTTP/1.1 302 Found 0138.438 192.168.1.113-0D050E: Server: GitHub.com 0138.438 192.168.1.113-0D050E: Date: Fri, 05 Nov 2021 11:44:31 GMT 0138.439 192.168.1.113-0D050E: Content-Type: text/html; charset=utf-8 0138.439 192.168.1.113-0D050E: Vary: X-PJAX, X-PJAX-Container, Accept-Encoding, Accept, X-Requested-With 0138.444 192.168.1.113-0D050E: permissions-policy: interest-cohort=() 0138.447 192.168.1.113-0D050E: Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0138.496 192.168.1.113-0D050E: Cache-Control: no-cache 0138.498 192.168.1.113-0D050E: Strict-Transport-Security: max-age=31536000; includeSubdomains; preload 0138.504 192.168.1.113-0D050E: X-Frame-Options: deny 0138.506 192.168.1.113-0D050E: X-Content-Type-Options: nosniff 0138.509 192.168.1.113-0D050E: X-XSS-Protection: 0 0138.511 192.168.1.113-0D050E: Referrer-Policy: no-referrer-when-downgrade 0138.515 192.168.1.113-0D050E: Expect-CT: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors" 0138.523 192.168.1.113-0D050E: Content-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.githubapp.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events translator.github.com wss://alive.github.com .actions.githubusercontent.com wss://.actions.githubusercontent.com online.visualstudio.com/api/v1/locations raw.githubusercontent.com github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/ 0138.657 192.168.1.113-0D050E: Content-Length: 654 0138.659 192.168.1.113-0D050E: X-GitHub-Request-Id: 322C:2E75:4B227:4EDF0:6185193F

0138.663 192.168.1.113-0D050E: 0138.664 192.168.1.113-0D050E: You are being redirected.

0138.720 192.168.1.113-0D050E: 0138.722 192.168.1.113-0D050E: HTTP returns 302

0138.722 192.168.1.113-0D050E: 0138.746 192.168.1.113-0D050E: Forwarding: objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0138.784 192.168.1.113-0D050E: ret = 583

0138.784 192.168.1.113-0D050E: 0138.785 192.168.1.113-0D050E: *** NEW CONNECTION 0138.974 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to objects.githubusercontent.com port 443..! Return [-0x1] 0138.975 192.168.1.113-0D050E: ! wolfSSL_send -308 0138.977 192.168.1.113-0D050E: Forwarding: objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0139.024 192.168.1.113-0D050E: ret = 583

0139.024 192.168.1.113-0D050E: 0139.025 192.168.1.113-0D050E: *** NEW CONNECTION

0139.258 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to objects.githubusercontent.com port 443..! Return [-0x1] 0139.259 192.168.1.113-0D050E: ! wolfSSL_send -308 0139.260 192.168.1.113-0D050E: Forwarding: objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0139.307 192.168.1.113-0D050E: ret = 583

0139.308 192.168.1.113-0D050E: 0139.308 192.168.1.113-0D050E: *** NEW CONNECTION 0139.491 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to objects.githubusercontent.com port 443..! Return [-0x1] 0139.492 192.168.1.113-0D050E: ! wolfSSL_send -308 0139.493 192.168.1.113-0D050E: Forwarding: objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0139.540 192.168.1.113-0D050E: ret = 583

0139.541 192.168.1.113-0D050E: 0139.541 192.168.1.113-0D050E: *** NEW CONNECTION 0139.711 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to objects.githubusercontent.com port 443..! Return [-0x1] 0139.712 192.168.1.113-0D050E: ! wolfSSL_send -308 0139.713 192.168.1.113-0D050E: Forwarding: objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0139.760 192.168.1.113-0D050E: ret = 583

0139.761 192.168.1.113-0D050E: 0139.761 192.168.1.113-0D050E: *** NEW CONNECTION 0139.963 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to objects.githubusercontent.com port 443..! Return [-0x1] 0139.964 192.168.1.113-0D050E: ! wolfSSL_send -308 0139.965 192.168.1.113-0D050E: Forwarding: objects.githubusercontent.com/github-production-release-asset-2e65be/166993980/f539d42b-4870-4837-a1c4-db5dc052da96?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211105T114431Z&X-Amz-Expires=300&X-Amz-Signature=486a43ec938372aa8214fb13e594e12fe28302006c553313e317f13faa8a281c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=166993980&response-content-disposition=attachment%3B%20filename%3Dotamain.bin.sec&response-content-type=application%2Foctet-stream 0140.012 192.168.1.113-0D050E: ret = 583

0140.013 192.168.1.113-0D050E: 0140.013 192.168.1.113-0D050E: *** NEW CONNECTION 0140.228 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to objects.githubusercontent.com port 443..! Return [-0x1] 0140.230 192.168.1.113-0D050E: ! wolfSSL_send -308 0140.231 192.168.1.113-0D050E: ! Tries 5 0140.232 192.168.1.113-0D050E: Forwarding: github.com/RavenSystem/haa/releases/latest/download/otamain.bin.sec 0140.238 192.168.1.113-0D050E: ret = 110

0140.239 192.168.1.113-0D050E: 0140.239 192.168.1.113-0D050E: * NEW CONNECTION 0141.421 192.168.1.113-0D050E: DNS..OK Socket..OK Connect..OK SSL..OK set_fd to github.com port 443..OK 0141.427 192.168.1.113-0D050E: sent OK Screen-shots or videos showing issue**

RavenSystem commented 3 years ago

Try again, and continue here: https://github.com/RavenSystem/esp-homekit-devices/discussions/1608