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

ICD example not starting Matter. (CON-1411) #1149

Open
tomasmcguinness opened this issue Nov 11, 2024 · 2 comments
Open

ICD example not starting Matter. (CON-1411) #1149

tomasmcguinness opened this issue Nov 11, 2024 · 2 comments

Comments

@tomasmcguinness
Copy link

I have flashed an ESP32-H2 with the ICD example.

I get the following trace:

--- Waiting for the device to reconnect.....................
W (859) esp_matter_core: Attribute 0x00000001 on cluster 0x0000001D already exists. Not creating again.
W (869) esp_matter_core: Attribute 0x00000002 on cluster 0x0000001D already exists. Not creating again.
W (879) esp_matter_core: Attribute 0x00000003 on cluster 0x0000001D already exists. Not creating again.
W (889) esp_matter_core: Attribute 0x0000FFFC on cluster 0x0000001D already exists. Not creating again.
W (899) esp_matter_core: Attribute 0x0000FFFD on cluster 0x0000001D already exists. Not creating again.
I (921) chip[DL]: NVS set: chip-counters/reboot-count = 2 (0x2)
I (924) chip[DL]: Real time clock set to 946684800 (0100/00/01 00:00:00 UTC)
I (926) BLE_INIT: Using main XTAL as clock source
I (927) esp openthread sleep: Enable ieee802154 light sleep, the wake up source is ESP timer
I (940) OPENTHREAD: Host connection mode none
I (941) BLE_INIT: ble controller commit:[217f1bf]
W (950) BLE_INIT: BLE modem sleep is enabled
I (956) BLE_INIT: Modem BLE MAC retention initialization
W (961) BLE_INIT: Enable light sleep, the wake up source is BLE timer
I (959) phy: phy_version: 230,2, 9aae6ea, Jan 15 2024, 11:17:12
I (976) phy: libbtbb version: 944f18e, Jan 15 2024, 11:17:25
I (982) btbb_init: btbb sleep retention initialization
I (988) ieee802154: ieee802154 mac sleep retention initialization
I (992) NimBLE: GAP procedure initiated: stop advertising.

I (1001) NimBLE: Failed to restore IRKs from store; status=8

I (1006) CHIP[DL]: BLE host-controller synced
I (1026) OPENTHREAD: OpenThread attached to netif
I (1029) chip[DL]: OpenThread started: OK
I (1031) chip[DL]: Setting OpenThread device type to SLEEPY END DEVICE
I(1033) OPENTHREAD:[N] Mle-----------: Mode 0x0c -> 0x04 [rx-on:no ftd:no full-net:no]

==

I enabled all the same ICD flags under the generic_switch sample, but that appears to get stuck in the same location, with the Matter stack not starting (i.e. no advertisement for commissioning etc)

I want to make a small battery powered momentary switch.

Can you provide some advice?

@github-actions github-actions bot changed the title ICD example not starting Matter. ICD example not starting Matter. (CON-1411) Nov 11, 2024
@shripad621git
Copy link
Contributor

@tomasmcguinness , For creating a momentary switch, you can call the generic_switch create and add the momentary feature in icd app app_main.cpp in place of on_off_light and verify the switch cluster presence after testing commissioning using chip-tool
Also for the above logs, can you please specify the below details:
i) esp-matter commit id
ii) esp-idf commit id
iii) ecosystem used (chip-tool/Google Home/Apple Home)

@tomasmcguinness
Copy link
Author

Thanks,

I have successfully created a momentary switch with two endpoints and that works well. I just want to make make it run on battery now.

For your questions:
i) 82419a3
ii) c9763f62dd
iii) chip-tool/Apple Home building and compiling on macOS.

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

2 participants