project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.39k stars 1.98k forks source link

Getting stuck on ble comissioning #25707

Open ivishaltejwani opened 1 year ago

ivishaltejwani commented 1 year ago

Reproduction steps

I (32018) NimBLE: GAP procedure initiated: advertise; I (32028) NimBLE: disc_mode=2 I (32038) NimBLE: adv_channel_map=0 own_addr_type=1 adv_filter_policy=0 adv_itvl_min=800 adv_itvl_max=800 I (32048) NimBLE:

this is where it gets stuck , I can see in apple home as matter accessory but cannot add it same with google home it sometimes appear as matter device found but never gets added to the app

no changes in the example code

I have not used homepod or google nest mini to add , are they necessary to add in apple home?

I have tried idf 5.0.1 and idf 4.4.4 same issue with both , esp matter example as well as connectedhomeip example ESP32-D0WD (revision 1) ESP32-D0WD (revision 3)

both of the chips are tested

os- macos

Bug prevalence

always

GitHub hash of the SDK that was being used

latest checkout

Platform

esp32

Platform Version(s)

ESPIDF 5.0.1 ESPIDF 4.4.4

Anything else?

No response

bzbarsky-apple commented 1 year ago

@ivishaltejwani Can you commission using command-line chip-tool? If not, can you please attach, not paste, the logs from both that and the esp32 to this issue? If you can commission using chip-tool, then this sounds like an issue with Apple Home and Google Home that should be reported to them directly.

ivishaltejwani commented 1 year ago

@ivishaltejwani Can you commission using command-line chip-tool? If not, can you please attach, not paste, the logs from both that and the esp32 to this issue? If you can commission using chip-tool, then this sounds like an issue with Apple Home and Google Home that should be reported to them directly. it did comission once but unable to after that have tried alot

on Iphone - i bought homepod mini after that I was able to see it moving but still no sucess in paring

idf 4.4.4 , esp matter example - light -switch

WhatsApp Image 2023-03-17 at 5 30 25 AM

on Iphone it gives this error

WhatsApp Image 2023-03-17 at 5 46 13 AM

WhatsApp Image 2023-03-17 at 5 45 35 AM (1)

on ESP32-D0WD (revision 1) commissioning happens everytime , on chip tool ESP32-D0WD (revision 3) commissioning doesnt work on Iphone same error

able to add in Google home app without the hub too , no problems with google home app

bzbarsky-apple unable to add in apple home app rest everything is working

ESP32-D0WD (revision 3) seems to have problems with commissioning

@shubhamdp can you confirm if you have some profile installed on your iphone and homepod ?

https://github.com/project-chip/connectedhomeip/issues/25581

this solved my issue with apple home , I can successfully add the devices in apple home and google home

Note : all the profiles from https://developer.apple.com/bug-reporting/profiles-and-logs/?platform

are needed for accessories to work , else they show no response on the apple home app , profiles needs to be installed on homepod too

you can close this issue

ivishaltejwani commented 1 year ago

Tested on

ESP32-D0WD (revision 3)

working properly - correcting as previously mentioned, no issues

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.