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

Current Build not working due to issue in ESP-Matter Lib #23

Closed
weidingerc opened this issue Mar 27, 2023 · 10 comments
Closed

Current Build not working due to issue in ESP-Matter Lib #23

weidingerc opened this issue Mar 27, 2023 · 10 comments

Comments

@weidingerc
Copy link

weidingerc commented Mar 27, 2023

Due to this issue espressif/esp-matter#217 , which already has been fixed, the Matter device with an ESP32 cannot connect to an iPhone with Apple Home on some routers. I used the Demo Example Code named "Light", unfortunately with the above described bug.

Could you recompile this lib to fix this bug?
Would be awesome :-)

@Yacubane
Copy link
Owner

I'm working on it ;)

@Yacubane
Copy link
Owner

Yacubane commented Mar 29, 2023

If anyone needs it right now, I'm sending build via Google Drive: https://drive.google.com/drive/folders/1sKJHu-eRWWtuSjzGn-l8Wf4U2QkKAREE?usp=sharing

I need to rethink structure of this repository, as compiled files are too large. Most probably I will merge this and https://github.com/jakubdybczak/esp32-arduino-matter-builder repository, and repository will not have compiled files. Compiled files will be only as attached files in Github releases. From the other hand this approach is not really good for platformio developers, where it's easier to type repository url and in this case git-lfs is also an option.

@weidingerc
Copy link
Author

Thanks for the quick answer! Unfortunately when I now try the light example, it still cannot connect and the Phone shows that it cannot add the device :-(

it seems it still cannot connect to my network (I was also making sure be be in the 2.4GHz WLAN before setup). I'll have to try with another router. But currently my home setup is then probably not supported then.

D (68352) chip[DMG]: Received command for Endpoint=0 Cluster=0x0000_0031 Command=0x0000_0006
I (68358) chip[NP]: ESP NetworkCommissioningDelegate: SSID: WLAN-W Extended
I (68368) chip[DL]: WiFi station mode change: Enabled -> Disabled
I (68390) chip[DL]: Changing ESP WiFi mode: STA -> STA+AP
I (68395) chip[DL]: WiFi station mode change: Disabled -> Enabled
D (68395) chip[DMG]: Decreasing reference count for CommandHandler, remaining 1
I (68399) chip[DL]: Attempting to connect WiFi station interface
I (68405) chip[DL]: WiFi station state change: NotConnected -> Connecting
I (68409) chip[DL]: Done driving station state, nothing else to do...
I (68417) chip[DL]: Attempting to connect WiFi station interface
E (68421) wifi:sta is connecting, return error
E (68427) chip[DL]: esp_wifi_connect() failed: ESP_ERR_WIFI_CONN
I (68433) chip[DL]: Attempting to connect WiFi station interface
E (68437) wifi:sta is connecting, return error
E (68442) chip[DL]: esp_wifi_connect() failed: ESP_ERR_WIFI_CONN
I (68446) chip[DL]: WIFI_EVENT_AP_START
I (68450) chip[DL]: WiFi AP state change: NotActive -> Active
I (68456) chip[DL]: Changing ESP WiFi mode: STA+AP -> STA
I (68465) chip[DL]: WiFi AP state change: Active -> Deactivating
E (68469) chip[DL]: Failed to get configured network when updating network status: Error ESP32:0x0500300F
I (68475) chip[DL]: WIFI_EVENT_AP_STOP
I (68479) chip[DL]: WiFi AP state change: Deactivating -> NotActive
I (70349) chip[DL]: WIFI_EVENT_STA_CONNECTED
I (70349) chip[DL]: WiFi station state change: Connecting -> Connecting_Succeeded
I (70351) chip[DL]: WiFi station state change: Connecting_Succeeded -> Connected
I (70357) chip[DL]: WiFi station interface connected

@diysmartmatter
Copy link

If anyone needs it right now, I'm sending build via Google Drive: https://drive.google.com/drive/folders/1sKJHu-eRWWtuSjzGn-l8Wf4U2QkKAREE?usp=sharing

Thank you very much! The new build on the Google Drive worked fine.

@diysmartmatter
Copy link

it still cannot connect and the Phone shows that it cannot add the device :-(

You may try to update Apple Home from "Home Settings" menu at the top right corner to activate Matter. It seems that the update is not automatic as it may cause incompatibility among shared users and computers.

@weidingerc
Copy link
Author

I already updated to the new “Home” architecture on iOS. So I guess it is another problem
Are you trying to add the esp32 matter device also with an iOS device?

@diysmartmatter
Copy link

I am running the light example on my iPhone with iOS 16.4. I also have a HomePod mini (16.4) working as a home hub.

matterlightM.mov

@weidingerc
Copy link
Author

weidingerc commented Mar 30, 2023

Thanks for the reply
Strange
I have an AppleTV4K and two HomePod minis
Maybe I should deactivate the AppleTV as home hub

@weidingerc
Copy link
Author

Could you write, which esp32 model you use? I saw an Amazon that there are multiple versions. Maybe I bought the wrong one?

@weidingerc
Copy link
Author

Yay, I got it working by adding it my iPad. But I honestly have no idea why it only worked on this device. Now I can start coding :-)
Thanks for the help and compilation

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

3 participants