connectedhomeip
connectedhomeip copied to clipboard
[1.2] All-cluster-app pairing with chip tool
Reproduction steps
We have a version of all-cluster-app , which is built from an sdk that contains the matter toolchian built from the build.gn present here https://github.com/project-chip/connectedhomeip/blob/v1.2.0.1 /BUILD.gn. We took the following source and header files of the all-cluster-app example and the other useful example folders as necessary, such as examle/tracing example/platform/linux, example/persistend and example/provider, we brought with us then the folder generated by zap tools and the callback-stub.cpp and PluginApplicationCallbacks.h files too .
we have the following error: when we try to pair, the commission command fails because we have the following error: Failed to read BasicCommissioningInfo: src/app/ClusterStateCache.cpp:270: CHIP Error 0x000000CA: Interaction Model Error [1706866858.595449][125120:125122] CHIP:CTL: Failed to read RegulatoryConfig: src/app/ClusterStateCache.cpp:270: CHIP Error 0x000000CA: Interaction Model Error [1706866858.595452][125120:125122] CHIP:CTL: Failed to read LocationCapability: src/app/ClusterStateCache.cpp:270: CHIP Error 0x000000CA: Interaction Model Error
We noticed that the attributes that cause us errors are declared as extrernal
I will attach also the txt file log , with the run of the chip-tool and all-cluster-app.
all-cluster.app.log.md chip-tool-log.txt
this is our tree directory: . ├── include │ ├── all-cluster-app │ │ ├── air-quality-instance.h │ │ ├── AllClustersCommandDelegate.h │ │ ├── AppOptions.h │ │ ├── binding-handler.h │ │ ├── CHIPProjectAppConfig.h │ │ ├── dishwasher-mode.h │ │ ├── laundry-washer-controls-delegate-impl.h │ │ ├── laundry-washer-mode.h │ │ ├── LockEndpoint.h │ │ ├── LockManager.h │ │ ├── main-common.h │ │ ├── operational-state-delegate-impl.h │ │ ├── resource-monitoring-delegates.h │ │ ├── rvc-modes.h │ │ ├── static-supported-modes-manager.h │ │ ├── static-supported-temperature-levels.h │ │ ├── SystemProjectConfig.h │ │ ├── tcc-mode.h │ │ ├── TestHarnessDACProvider.h │ │ ├── tv-callbacks.h │ │ ├── WindowCoveringManager.h │ │ └── zap-generated │ │ ├── access.h │ │ ├── CHIPClusters.h │ │ ├── endpoint_config.h │ │ ├── gen_config.h │ │ └── PluginApplicationCallbacks.h │ └── inipp │ └── inipp │ └── inipp.h └── src ├── all-cluster-app │ ├── all-cluster-common │ │ ├── air-quality-instance.cpp │ │ ├── binding-handler.cpp │ │ ├── bridged-actions-stub.cpp │ │ ├── concentration-measurement-instances.cpp │ │ ├── dishwasher-alarm-stub.cpp │ │ ├── dishwasher-mode.cpp │ │ ├── fan-stub.cpp │ │ ├── laundry-washer-controls-delegate-impl.cpp │ │ ├── laundry-washer-mode.cpp │ │ ├── operational-state-delegate-impl.cpp │ │ ├── resource-monitoring-delegates.cpp │ │ ├── rvc-modes.cpp │ │ ├── smco-stub.cpp │ │ ├── static-supported-modes-manager.cpp │ │ ├── static-supported-temperature-levels.cpp │ │ └── tcc-mode.cpp │ ├── AllClustersCommandDelegate.cpp │ ├── app │ │ └── icd │ │ ├── ICDManagementServer.cpp │ │ ├── ICDManager.cpp │ │ ├── ICDMonitoringTable.cpp │ │ └── ICDNotifier.cpp │ ├── app-common │ │ └── app-common │ │ └── zap-generated │ │ ├── attributes │ │ │ ├── Accessors.cpp │ │ │ └── Accessors.h │ │ ├── attribute-size.h │ │ ├── attribute-type.h │ │ ├── callback.h │ │ ├── cluster-enums-check.h │ │ ├── cluster-enums.h │ │ ├── cluster-objects.cpp │ │ ├── cluster-objects.h │ │ ├── enums.h │ │ ├── ids │ │ │ ├── Attributes.h │ │ │ ├── Clusters.h │ │ │ ├── Commands.h │ │ │ └── Events.h │ │ ├── print-cluster.h │ │ └── tests │ │ └── simulated-cluster-objects.h │ ├── AppOptions.cpp │ ├── app-platform │ │ ├── ContentApp.cpp │ │ └── ContentAppPlatform.cpp │ ├── clusters │ │ ├── access-control-server │ │ │ └── access-control-server.cpp │ │ ├── account-login-server │ │ │ ├── account-login-delegate.h │ │ │ ├── account-login-server.cpp │ │ │ └── account-login-server.h │ │ ├── administrator-commissioning-server │ │ │ └── administrator-commissioning-server.cpp │ │ ├── air-quality-server │ │ │ ├── air-quality-server.cpp │ │ │ └── air-quality-server.h │ │ ├── application-basic-server │ │ │ ├── application-basic-delegate.h │ │ │ ├── application-basic-server.cpp │ │ │ └── application-basic-server.h │ │ ├── application-launcher-server │ │ │ ├── application-launcher-delegate.h │ │ │ ├── application-launcher-server.cpp │ │ │ └── application-launcher-server.h │ │ ├── audio-output-server │ │ │ ├── audio-output-delegate.h │ │ │ ├── audio-output-server.cpp │ │ │ └── audio-output-server.h │ │ ├── barrier-control-server │ │ │ ├── barrier-control-server.cpp │ │ │ └── barrier-control-server.h │ │ ├── basic-information │ │ │ ├── basic-information.cpp │ │ │ └── basic-information.h │ │ ├── bindings │ │ │ ├── BindingManager.cpp │ │ │ ├── BindingManager.h │ │ │ ├── bindings.cpp │ │ │ ├── bindings.h │ │ │ ├── PendingNotificationMap.cpp │ │ │ └── PendingNotificationMap.h │ │ ├── bridged-device-basic-information-server │ │ │ └── bridged-device-basic-information-server.cpp │ │ ├── channel-server │ │ │ ├── channel-delegate.h │ │ │ ├── channel-server.cpp │ │ │ └── channel-server.h │ │ ├── color-control-server │ │ │ ├── color-control-server.cpp │ │ │ └── color-control-server.h │ │ ├── concentration-measurement-server │ │ │ ├── concentration-measurement-cluster-objects.h │ │ │ └── concentration-measurement-server.h │ │ ├── content-launch-server │ │ │ ├── content-launch-delegate.h │ │ │ ├── content-launch-server.cpp │ │ │ └── content-launch-server.h │ │ ├── descriptor │ │ │ └── descriptor.cpp │ │ ├── diagnostic-logs-server │ │ │ ├── diagnostic-logs-server.cpp │ │ │ └── diagnostic-logs-server.h │ │ ├── dishwasher-alarm-server │ │ │ ├── dishwasher-alarm-delegate.h │ │ │ ├── dishwasher-alarm-server.cpp │ │ │ └── dishwasher-alarm-server.h │ │ ├── door-lock-server │ │ │ ├── door-lock-server-callback.cpp │ │ │ ├── door-lock-server.cpp │ │ │ └── door-lock-server.h │ │ ├── ethernet-network-diagnostics-server │ │ │ └── ethernet-network-diagnostics-server.cpp │ │ ├── fan-control-server │ │ │ ├── fan-control-delegate.h │ │ │ ├── fan-control-server.cpp │ │ │ └── fan-control-server.h │ │ ├── fault-injection-server │ │ │ └── fault-injection-server.cpp │ │ ├── fixed-label-server │ │ │ └── fixed-label-server.cpp │ │ ├── general-commissioning-server │ │ │ ├── general-commissioning-server.cpp │ │ │ └── general-commissioning-server.h │ │ ├── general-diagnostics-server │ │ │ ├── general-diagnostics-server.cpp │ │ │ ├── general-diagnostics-server.h │ │ │ ├── GenericFaultTestEventTriggerDelegate.cpp │ │ │ └── GenericFaultTestEventTriggerDelegate.h │ │ ├── group-key-mgmt-server │ │ │ └── group-key-mgmt-server.cpp │ │ ├── groups-server │ │ │ ├── groups-server.cpp │ │ │ └── groups-server.h │ │ ├── ias-zone-client │ │ │ └── README.md │ │ ├── ias-zone-server │ │ │ └── README.md │ │ ├── icd-management-server │ │ │ ├── icd-management-server.cpp │ │ │ └── icd-management-server.h │ │ ├── identify-server │ │ │ ├── identify-server.cpp │ │ │ └── identify-server.h │ │ ├── keypad-input-server │ │ │ ├── keypad-input-delegate.h │ │ │ ├── keypad-input-server.cpp │ │ │ └── keypad-input-server.h │ │ ├── laundry-washer-controls-server │ │ │ ├── laundry-washer-controls-delegate.h │ │ │ ├── laundry-washer-controls-server.cpp │ │ │ └── laundry-washer-controls-server.h │ │ ├── level-control │ │ │ ├── level-control.cpp │ │ │ └── level-control.h │ │ ├── localization-configuration-server │ │ │ └── localization-configuration-server.cpp │ │ ├── low-power-server │ │ │ ├── low-power-delegate.h │ │ │ ├── low-power-server.cpp │ │ │ └── low-power-server.h │ │ ├── media-input-server │ │ │ ├── media-input-delegate.h │ │ │ ├── media-input-server.cpp │ │ │ └── media-input-server.h │ │ ├── media-playback-server │ │ │ ├── media-playback-delegate.h │ │ │ ├── media-playback-server.cpp │ │ │ └── media-playback-server.h │ │ ├── mode-base-server │ │ │ ├── mode-base-cluster-objects.cpp │ │ │ ├── mode-base-cluster-objects.h │ │ │ ├── mode-base-server.cpp │ │ │ ├── mode-base-server.h │ │ │ └── README.md │ │ ├── mode-select-server │ │ │ ├── mode-select-server.cpp │ │ │ └── supported-modes-manager.h │ │ ├── network-commissioning │ │ │ ├── network-commissioning.cpp │ │ │ └── network-commissioning.h │ │ ├── occupancy-sensor-server │ │ │ ├── occupancy-hal.h │ │ │ ├── occupancy-sensor-server.cpp │ │ │ └── occupancy-sensor-server.h │ │ ├── on-off-server │ │ │ ├── on-off-server.cpp │ │ │ └── on-off-server.h │ │ ├── operational-credentials-server │ │ │ └── operational-credentials-server.cpp │ │ ├── operational-state-server │ │ │ ├── operational-state-cluster-objects.h │ │ │ ├── operational-state-server.cpp │ │ │ └── operational-state-server.h │ │ ├── ota-provider │ │ │ ├── DefaultOTAProviderUserConsent.h │ │ │ ├── ota-provider.cpp │ │ │ ├── ota-provider-delegate.h │ │ │ ├── ota-provider.h │ │ │ └── OTAProviderUserConsentDelegate.h │ │ ├── ota-requestor │ │ │ ├── BDXDownloader.cpp │ │ │ ├── BDXDownloader.h │ │ │ ├── DefaultOTARequestor.cpp │ │ │ ├── DefaultOTARequestorDriver.cpp │ │ │ ├── DefaultOTARequestorDriver.h │ │ │ ├── DefaultOTARequestor.h │ │ │ ├── DefaultOTARequestorStorage.cpp │ │ │ ├── DefaultOTARequestorStorage.h │ │ │ ├── DefaultOTARequestorUserConsent.h │ │ │ ├── ExtendedOTARequestorDriver.cpp │ │ │ ├── ExtendedOTARequestorDriver.h │ │ │ ├── OTADownloader.h │ │ │ ├── OTARequestorDriver.h │ │ │ ├── OTARequestorInterface.h │ │ │ ├── ota-requestor-server.cpp │ │ │ ├── ota-requestor-server.h │ │ │ ├── OTARequestorStorage.h │ │ │ ├── OTARequestorUserConsentDelegate.h │ │ │ ├── OTATestEventTriggerDelegate.cpp │ │ │ ├── OTATestEventTriggerDelegate.h │ │ │ └── README.md │ │ ├── power-source-configuration-server │ │ │ └── power-source-configuration-server.cpp │ │ ├── power-source-server │ │ │ ├── power-source-server.cpp │ │ │ └── power-source-server.h │ │ ├── pump-configuration-and-control-client │ │ │ └── pump-configuration-and-control-client.cpp │ │ ├── pump-configuration-and-control-server │ │ │ └── pump-configuration-and-control-server.cpp │ │ ├── refrigerator-alarm-server │ │ │ ├── refrigerator-alarm-server.cpp │ │ │ └── refrigerator-alarm-server.h │ │ ├── resource-monitoring-server │ │ │ ├── README.md │ │ │ ├── replacement-product-list-manager.h │ │ │ ├── resource-monitoring-cluster-objects.cpp │ │ │ ├── resource-monitoring-cluster-objects.h │ │ │ ├── resource-monitoring-server.cpp │ │ │ └── resource-monitoring-server.h │ │ ├── sample-mei-server │ │ │ ├── sample-mei-server.cpp │ │ │ └── sample-mei-server.h │ │ ├── scenes-server │ │ │ ├── BUILD.gn │ │ │ ├── ExtensionFieldSets.h │ │ │ ├── ExtensionFieldSetsImpl.cpp │ │ │ ├── ExtensionFieldSetsImpl.h │ │ │ ├── scenes-server.cpp │ │ │ ├── scenes-server.h │ │ │ ├── SceneTable.h │ │ │ ├── SceneTableImpl.cpp │ │ │ └── SceneTableImpl.h │ │ ├── smoke-co-alarm-server │ │ │ ├── smoke-co-alarm-server.cpp │ │ │ ├── smoke-co-alarm-server.h │ │ │ ├── SmokeCOTestEventTriggerDelegate.cpp │ │ │ └── SmokeCOTestEventTriggerDelegate.h │ │ ├── software-diagnostics-server │ │ │ ├── software-diagnostics-server.cpp │ │ │ └── software-diagnostics-server.h │ │ ├── switch-server │ │ │ ├── switch-server.cpp │ │ │ └── switch-server.h │ │ ├── target-navigator-server │ │ │ ├── target-navigator-delegate.h │ │ │ ├── target-navigator-server.cpp │ │ │ └── target-navigator-server.h │ │ ├── temperature-control-server │ │ │ ├── supported-temperature-levels-manager.h │ │ │ └── temperature-control-server.cpp │ │ ├── test-cluster-server │ │ │ └── test-cluster-server.cpp │ │ ├── thermostat-client │ │ │ └── thermostat-client.cpp │ │ ├── thermostat-server │ │ │ └── thermostat-server.cpp │ │ ├── thermostat-user-interface-configuration-server │ │ │ └── thermostat-user-interface-configuration-server.cpp │ │ ├── thread-network-diagnostics-server │ │ │ └── thread-network-diagnostics-server.cpp │ │ ├── time-format-localization-server │ │ │ └── time-format-localization-server.cpp │ │ ├── time-synchronization-server │ │ │ ├── DefaultTimeSyncDelegate.cpp │ │ │ ├── DefaultTimeSyncDelegate.h │ │ │ ├── TimeSyncDataProvider.cpp │ │ │ ├── TimeSyncDataProvider.h │ │ │ ├── time-synchronization-delegate.h │ │ │ ├── time-synchronization-server.cpp │ │ │ └── time-synchronization-server.h │ │ ├── user-label-server │ │ │ └── user-label-server.cpp │ │ ├── wake-on-lan-server │ │ │ ├── wake-on-lan-delegate.h │ │ │ ├── wake-on-lan-server.cpp │ │ │ └── wake-on-lan-server.h │ │ ├── wifi-network-diagnostics-server │ │ │ └── wifi-network-diagnostics-server.cpp │ │ └── window-covering-server │ │ ├── window-covering-delegate.h │ │ ├── window-covering-server.cpp │ │ └── window-covering-server.h │ ├── fuzzing-main.cpp │ ├── lock-app-common │ │ ├── LockEndpoint.cpp │ │ ├── LockManager.cpp │ │ └── ZCLDoorLockCallbacks.cpp │ ├── main-common.cpp │ ├── main.cpp │ ├── TestHarnessDACProvider.cpp │ ├── tv-callbacks.cpp │ ├── util │ │ ├── attribute-size-util.cpp │ │ ├── attribute-storage.cpp │ │ ├── attribute-table.cpp │ │ ├── binding-table.cpp │ │ ├── DataModelHandler.cpp │ │ ├── ember-compatibility-functions.cpp │ │ ├── generic-callback-stubs.cpp │ │ ├── message.cpp │ │ ├── privilege-storage.cpp │ │ └── util.cpp │ ├── WindowCoveringManager.cpp │ └── zap-generated │ ├── access.h │ ├── callback-stub.cpp │ ├── CHIPClusters.h │ ├── endpoint_config.h │ ├── gen_config.h │ ├── IMClusterCommandHandler.cpp │ └── PluginApplicationCallbacks.h ├── app │ └── icd ├── lib │ └── support │ └── logging │ ├── BinaryLogging.cpp │ └── TextOnlyLogging.cpp ├── main.cpp ├── persistent ├── platform_linux │ ├── AppMain.cpp │ ├── AppMain.h │ ├── CommissionableInit.cpp │ ├── CommissionableInit.h │ ├── CommissioneeShellCommands.cpp │ ├── CommissioneeShellCommands.h │ ├── CommissionerMain.cpp │ ├── CommissionerMain.h │ ├── CommonRpc.h │ ├── ControllerShellCommands.cpp │ ├── ControllerShellCommands.h │ ├── DeviceInfoProviderImpl.cpp │ ├── DeviceInfoProviderImpl.h │ ├── LinuxCommissionableDataProvider.cpp │ ├── LinuxCommissionableDataProvider.h │ ├── NamedPipeCommands.cpp │ ├── NamedPipeCommands.h │ ├── Options.cpp │ ├── Options.h │ └── testing │ ├── CustomCSRResponse.cpp │ ├── CustomCSRResponse.h │ ├── CustomCSRResponseOperationalKeyStore.cpp │ └── CustomCSRResponseOperationalKeyStore.h ├── provider │ ├── DeviceInfoProviderImpl.cpp │ └── DeviceInfoProviderImpl.h └── tracing ├── decoder │ ├── bdx │ │ ├── Decoder.cpp │ │ └── Decoder.h │ ├── echo │ │ ├── Decoder.cpp │ │ └── Decoder.h │ ├── interaction_model │ │ ├── Decoder.cpp │ │ ├── DecoderCustomLog.cpp │ │ ├── DecoderCustomLog.h │ │ └── Decoder.h │ ├── logging │ │ ├── Log.cpp │ │ ├── Log.h │ │ ├── ToCertificateString.cpp │ │ └── ToCertificateString.h │ ├── secure_channel │ │ ├── Decoder.cpp │ │ └── Decoder.h │ ├── TraceDecoderProtocols.cpp │ ├── TraceDecoderProtocols.h │ └── udc │ ├── Decoder.cpp │ └── Decoder.h ├── main.cpp ├── TraceDecoderArgumentParser.cpp ├── TraceDecoderArgumentParser.h ├── TraceDecoder.cpp ├── TraceDecoder.h ├── TraceDecoderOptions.h ├── TraceHandlers.cpp ├── TraceHandlers.h ├── TracingCommandLineArgument.cpp └── TracingCommandLineArgument.h
Bug prevalence
everytime
GitHub hash of the SDK that was being used
https://github.com/project-chip/connectedhomeip/commit/0b9dfec117994815c56fe673c48be9352656dcb2
Platform
other
Platform Version(s)
1.2
Type
Core SDK Memory Issue
Anything else?
No response
In your GeneralCommissioningAttrAccess::ReadIfSupported
, what error is being returned from the call into the configuration manager for these attributes? Chances are, your configuration manager is not set up correctly.
Apparently, this function is never called.
Is GeneralCommissioningAttrAccess::Read
being called? Is MatterGeneralCommissioningPluginServerInitCallback
being called?
Both are not called.
OK, then MatterGeneralCommissioningPluginServerInitCallback
not being called is your problem; you are not properly initializing the General Commissioning cluster.
What does your PluginApplicationCallbacks.h
look like, and specifically, is MatterGeneralCommissioningPluginServerInitCallback
included in the definition of MATTER_PLUGINS_INIT
?
Also, your file listing above seems to list PluginApplicationCallbacks.h
twice, so it's possible the "wrong" one is being used?
Hi , this is PluginApplicationCallback.h :
#pragma once void MatterAccessControlPluginServerInitCallback(); void MatterActionsPluginServerInitCallback(); void MatterActivatedCarbonFilterMonitoringPluginServerInitCallback(); void MatterAdministratorCommissioningPluginServerInitCallback(); void MatterAirQualityPluginServerInitCallback(); void MatterBallastConfigurationPluginServerInitCallback(); void MatterBarrierControlPluginServerInitCallback(); void MatterBasicInformationPluginServerInitCallback(); void MatterBinaryInputBasicPluginServerInitCallback(); void MatterBindingPluginServerInitCallback(); void MatterBooleanStatePluginServerInitCallback(); void MatterCarbonDioxideConcentrationMeasurementPluginServerInitCallback(); void MatterCarbonMonoxideConcentrationMeasurementPluginServerInitCallback(); void MatterColorControlPluginServerInitCallback(); void MatterDescriptorPluginServerInitCallback(); void MatterDiagnosticLogsPluginServerInitCallback(); void MatterDishwasherAlarmPluginServerInitCallback(); void MatterDishwasherModePluginServerInitCallback(); void MatterElectricalMeasurementPluginServerInitCallback(); void MatterEthernetNetworkDiagnosticsPluginServerInitCallback(); void MatterFanControlPluginServerInitCallback(); void MatterFaultInjectionPluginServerInitCallback(); void MatterFixedLabelPluginServerInitCallback(); void MatterFlowMeasurementPluginServerInitCallback(); void MatterFormaldehydeConcentrationMeasurementPluginServerInitCallback(); void MatterGeneralCommissioningPluginServerInitCallback(); void MatterGeneralDiagnosticsPluginServerInitCallback(); void MatterGroupKeyManagementPluginServerInitCallback(); void MatterGroupsPluginServerInitCallback(); void MatterHepaFilterMonitoringPluginServerInitCallback(); void MatterIcdManagementPluginServerInitCallback(); void MatterIdentifyPluginServerInitCallback(); void MatterIlluminanceMeasurementPluginServerInitCallback(); void MatterLaundryWasherControlsPluginServerInitCallback(); void MatterLaundryWasherModePluginServerInitCallback(); void MatterLevelControlPluginServerInitCallback(); void MatterLocalizationConfigurationPluginServerInitCallback(); void MatterLowPowerPluginServerInitCallback(); void MatterModeSelectPluginServerInitCallback(); void MatterNetworkCommissioningPluginServerInitCallback(); void MatterNitrogenDioxideConcentrationMeasurementPluginServerInitCallback(); void MatterOccupancySensingPluginServerInitCallback(); void MatterOnOffPluginServerInitCallback(); void MatterOnOffSwitchConfigurationPluginServerInitCallback(); void MatterOperationalCredentialsPluginServerInitCallback(); void MatterOperationalStatePluginServerInitCallback(); void MatterOtaSoftwareUpdateRequestorPluginServerInitCallback(); void MatterOzoneConcentrationMeasurementPluginServerInitCallback(); void MatterPm10ConcentrationMeasurementPluginServerInitCallback(); void MatterPm1ConcentrationMeasurementPluginServerInitCallback(); void MatterPm25ConcentrationMeasurementPluginServerInitCallback(); void MatterPowerSourcePluginServerInitCallback(); void MatterPowerSourceConfigurationPluginServerInitCallback(); void MatterPressureMeasurementPluginServerInitCallback(); void MatterPumpConfigurationAndControlPluginServerInitCallback(); void MatterRadonConcentrationMeasurementPluginServerInitCallback(); void MatterRefrigeratorAlarmPluginServerInitCallback(); void MatterRefrigeratorAndTemperatureControlledCabinetModePluginServerInitCallback(); void MatterRelativeHumidityMeasurementPluginServerInitCallback(); void MatterRvcCleanModePluginServerInitCallback(); void MatterRvcOperationalStatePluginServerInitCallback(); void MatterRvcRunModePluginServerInitCallback(); void MatterScenesPluginServerInitCallback(); void MatterSmokeCoAlarmPluginServerInitCallback(); void MatterSoftwareDiagnosticsPluginServerInitCallback(); void MatterSwitchPluginServerInitCallback(); void MatterTemperatureControlPluginServerInitCallback(); void MatterTemperatureMeasurementPluginServerInitCallback(); void MatterThermostatPluginServerInitCallback(); void MatterThermostatUserInterfaceConfigurationPluginServerInitCallback(); void MatterThreadNetworkDiagnosticsPluginServerInitCallback(); void MatterTimeFormatLocalizationPluginServerInitCallback(); void MatterTimeSynchronizationPluginServerInitCallback(); void MatterTotalVolatileOrganicCompoundsConcentrationMeasurementPluginServerInitCallback(); void MatterUnitLocalizationPluginServerInitCallback(); void MatterUnitTestingPluginServerInitCallback(); void MatterUserLabelPluginServerInitCallback(); void MatterWakeOnLanPluginServerInitCallback(); void MatterWiFiNetworkDiagnosticsPluginServerInitCallback(); void MatterWindowCoveringPluginServerInitCallback();
#define MATTER_PLUGINS_INIT
MatterAccessControlPluginServerInitCallback();
MatterActionsPluginServerInitCallback();
MatterActivatedCarbonFilterMonitoringPluginServerInitCallback();
MatterAdministratorCommissioningPluginServerInitCallback();
MatterAirQualityPluginServerInitCallback();
MatterBallastConfigurationPluginServerInitCallback();
MatterBarrierControlPluginServerInitCallback();
MatterBasicInformationPluginServerInitCallback();
MatterBinaryInputBasicPluginServerInitCallback();
MatterBindingPluginServerInitCallback();
MatterBooleanStatePluginServerInitCallback();
MatterCarbonDioxideConcentrationMeasurementPluginServerInitCallback();
MatterCarbonMonoxideConcentrationMeasurementPluginServerInitCallback();
MatterColorControlPluginServerInitCallback();
MatterDescriptorPluginServerInitCallback();
MatterDiagnosticLogsPluginServerInitCallback();
MatterDishwasherAlarmPluginServerInitCallback();
MatterDishwasherModePluginServerInitCallback();
MatterElectricalMeasurementPluginServerInitCallback();
MatterEthernetNetworkDiagnosticsPluginServerInitCallback();
MatterFanControlPluginServerInitCallback();
MatterFaultInjectionPluginServerInitCallback();
MatterFixedLabelPluginServerInitCallback();
MatterFlowMeasurementPluginServerInitCallback();
MatterFormaldehydeConcentrationMeasurementPluginServerInitCallback();
MatterGeneralCommissioningPluginServerInitCallback();
MatterGeneralDiagnosticsPluginServerInitCallback();
MatterGroupKeyManagementPluginServerInitCallback();
MatterGroupsPluginServerInitCallback();
MatterHepaFilterMonitoringPluginServerInitCallback();
MatterIcdManagementPluginServerInitCallback();
MatterIdentifyPluginServerInitCallback();
MatterIlluminanceMeasurementPluginServerInitCallback();
MatterLaundryWasherControlsPluginServerInitCallback();
MatterLaundryWasherModePluginServerInitCallback();
MatterLevelControlPluginServerInitCallback();
MatterLocalizationConfigurationPluginServerInitCallback();
MatterLowPowerPluginServerInitCallback();
MatterModeSelectPluginServerInitCallback();
MatterNetworkCommissioningPluginServerInitCallback();
MatterNitrogenDioxideConcentrationMeasurementPluginServerInitCallback();
MatterOccupancySensingPluginServerInitCallback();
MatterOnOffPluginServerInitCallback();
MatterOnOffSwitchConfigurationPluginServerInitCallback();
MatterOperationalCredentialsPluginServerInitCallback();
MatterOperationalStatePluginServerInitCallback();
MatterOtaSoftwareUpdateRequestorPluginServerInitCallback();
MatterOzoneConcentrationMeasurementPluginServerInitCallback();
MatterPm10ConcentrationMeasurementPluginServerInitCallback();
MatterPm1ConcentrationMeasurementPluginServerInitCallback();
MatterPm25ConcentrationMeasurementPluginServerInitCallback();
MatterPowerSourcePluginServerInitCallback();
MatterPowerSourceConfigurationPluginServerInitCallback();
MatterPressureMeasurementPluginServerInitCallback();
MatterPumpConfigurationAndControlPluginServerInitCallback();
MatterRadonConcentrationMeasurementPluginServerInitCallback();
MatterRefrigeratorAlarmPluginServerInitCallback();
MatterRefrigeratorAndTemperatureControlledCabinetModePluginServerInitCallback();
MatterRelativeHumidityMeasurementPluginServerInitCallback();
MatterRvcCleanModePluginServerInitCallback();
MatterRvcOperationalStatePluginServerInitCallback();
MatterRvcRunModePluginServerInitCallback();
MatterScenesPluginServerInitCallback();
MatterSmokeCoAlarmPluginServerInitCallback();
MatterSoftwareDiagnosticsPluginServerInitCallback();
MatterSwitchPluginServerInitCallback();
MatterTemperatureControlPluginServerInitCallback();
MatterTemperatureMeasurementPluginServerInitCallback();
MatterThermostatPluginServerInitCallback();
MatterThermostatUserInterfaceConfigurationPluginServerInitCallback();
MatterThreadNetworkDiagnosticsPluginServerInitCallback();
MatterTimeFormatLocalizationPluginServerInitCallback();
MatterTimeSynchronizationPluginServerInitCallback();
MatterTotalVolatileOrganicCompoundsConcentrationMeasurementPluginServerInitCallback();
MatterUnitLocalizationPluginServerInitCallback();
MatterUnitTestingPluginServerInitCallback();
MatterUserLabelPluginServerInitCallback();
MatterWakeOnLanPluginServerInitCallback();
MatterWiFiNetworkDiagnosticsPluginServerInitCallback();
MatterWindowCoveringPluginServerInitCallback();
OK, in that case is emberAfInit
being called?
Yes this is the output: the first line is a debug line added in util.cpp to see the called of the function
########EmberInit
[1708331657.606841][11690:11690] CHIP:DMG: Failed to read stored attribute (0, 0x0000_0028, 0x0000_0005: matter/app/src/Linux/KeyValueStoreManagerImpl.cpp:53: CHIP Error 0x000000A0: Value not found in the persisted storage
[1708331657.606853][11690:11690] CHIP:DMG: Failed to read stored attribute (0, 0x0000_0028, 0x0000_0010: matter/app/src/Linux/KeyValueStoreManagerImpl.cpp:53: CHIP Error 0x000000A0: Value not found in the persisted storage
[1708331657.606862][11690:11690] CHIP:DMG: Failed to read stored attribute (0, 0x0000_002B, 0x0000_0000: matter/app/src/Linux/KeyValueStoreManagerImpl.cpp:53: CHIP Error 0x000000A0: Value not found in the persisted storage
[1708331657.606871][11690:11690] CHIP:DMG: Failed to read stored attribute (0, 0x0000_002C, 0x0000_0000: matter/app/src/Linux/KeyValueStoreManagerImpl.cpp:53: CHIP Error 0x000000A0: Value not found in the persisted storage
[1708331657.606880][11690:11690] CHIP:DMG: Failed to read stored attribute (0, 0x0000_002C, 0x0000_0001: matter/app/src/Linux/KeyValueStoreManagerImpl.cpp:53: CHIP Error 0x000000A0: Value not found in the persisted storage
[1708331657.606889][11690:11690] CHIP:DMG: Failed to read stored attribute (0, 0x0000_002D, 0x0000_0000: matter/app/src/Linux/KeyValueStoreManagerImpl.cpp:53: CHIP Error 0x000000A0: Value not found in the persisted storage
Just an update: I've missed MATTER_PLUGINS_INIT flag definition used in EmberAfInit(), Now I added it including #include <app/PluginApplicationCallbacks.h>, so now void MatterGeneralCommissioningPluginServerInitCallback() function is called but it crashes with this error:
[1708343305.098015][96225:96225] CHIP:DMG: AccessControlCluster: initializing [1708343305.098017][96225:96225] CHIP:ZCL: Initiating Admin Commissioning cluster. [1708343305.098020][96225:96225] CHIP:-: ==== DEBUG ====: MatterGeneralCommissioningPluginServerInitCallback() works [1708343305.098022][96225:96225] CHIP:DMG: Endpoint 0, Cluster 0x0000_0030 update version to 130c54bc [1708343305.098029][96225:96225] CHIP:ZCL: GeneralDiagnostics: OnDeviceReboot [1708343305.098031][96225:96225] CHIP:DMG: Endpoint 0, Cluster 0x0000_0033 update version to e219381d [1708343305.098046][96225:96225] CHIP:EVL: LogEvent event number: 0x0000000000020000 priority: 2, endpoint id: 0x0 cluster id: 0x0000_0033 event id: 0x3 Epoch timestamp: 0x0000018DC132238A [1708343305.098059][96225:96225] CHIP:ZCL: ScenesServer::Instance().Init() error: /home/user/matterclient/platform/matter/app/src/all-cluster-app/clusters/scenes-server/SceneTableImpl.cpp:582: CHIP Error 0x00000003: Incorrect state
Thread 1 "matter" received signal SIGSEGV, Segmentation fault.
0x00000000003fbbb9 in chip::TimeSyncDataProvider::Load (this=
I've done some step forward: now I tried to pair app with chip-tool it stops at Commissioning step 14
[1708510958.104938][72731:72731] CHIP:ZCL: OpCreds: Got FailSafeTimerExpired [1708510958.104942][72731:72731] CHIP:ZCL: OpCreds: Proceeding to FailSafeCleanup on fail-safe expiry!
Thread 1 "matter" received signal SIGSEGV, Segmentation fault.
chip::FabricInfo::Reset (this=0x4e37d8 chip::Server::sServer+4136)
at ../../src/credentials/FabricTable.h:205
205 chip::Platform::Delete(mOperationalKey);
(gdb) backtrace
#0 chip::FabricInfo::Reset() (this=0x4e37d8 chip::Server::sServer+4136)
at ../../src/credentials/FabricTable.h:205
#1 0x000000000048a8ea in chip::FabricTable::RevertPendingOpCertsExceptRoot()
(this=0x4e2e58 chip::Server::sServer+1704) at ../../src/credentials/FabricTable.cpp:2034
#2 0x0000000000488531 in chip::FabricTable::RevertPendingFabricData()
(this=0x4e2e58 chip::Server::sServer+1704) at ../../src/credentials/FabricTable.cpp:2013
#3 0x000000000036ad6e in (anonymous namespace)::FailSafeCleanup(chip::DeviceLayer::ChipDeviceEvent const*)
(event=0x7fffffffdf00)
at /home/monteiro/platform/matter/app/src/all-cluster-app/clusters/operational-credentials-server/operational-credentials-server.cpp:298
#4 (anonymous namespace)::OnPlatformEventHandler(chip::DeviceLayer::ChipDeviceEvent const*, long)
(event=0x7fffffffdf00, arg=
Now I added it including #include <app/PluginApplicationCallbacks.h>
Um... Is that not included in src/app/util/util.cpp
already? I am not sure what you changed here and why you had to.
It's hard to say anything intelligent about your situation if there are random code modifications that I don't know about....
Hi no , there aren't random ,code , for the include yes it was in util but it was commented , we leave the comment . Now the problem is that wrote before in the fabriTable index: AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_003E e=0 p=a [1708591585.373035][3806:3806] CHIP:DMG: AccessControl: implicit admin (PASE) [1708591585.373041][3806:3806] CHIP:DMG: Received command for Endpoint=0 Cluster=0x0000_003E Command=0x0000_0004 [1708591585.373050][3806:3806] CHIP:ZCL: OpCreds: Received a CSRRequest command [1708591585.373056][3806:3806] CHIP:ZCL: OpCreds: Finding fabric with fabricIndex 0x0 [1708591585.373095][3806:3806] CHIP:EM: <<< [E:14879r S:37109 M:234243256 (Ack:53757721)] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [UDP:[fe80::56ff:e11a:6794:b7c8%wlo1]:37420] --- Type 0000:10 (SecureChannel:StandaloneAck) [1708591585.373128][3806:3806] CHIP:EM: Flushed pending ack for MessageCounter:53757721 on exchange 14879r [1708591585.373139][3806:3806] CHIP:ZCL: OpCreds: AllocatePendingOperationalKey returned src/credentials/FabricTable.cpp:1569: CHIP Error 0x00000071: Invalid Fabric Index [1708591585.373147][3806:3806] CHIP:DMG: Endpoint=0 Cluster=0x0000_003E Command=0x0000_0004 status 0x01 (FAILURE) (no additional context) [1708591585.373158][3806:3806] CHIP:DMG: Command handler moving to [ Preparing] [1708591585.373166][3806:3806] CHIP:DMG: Command handler moving to [AddingComm] [1708591585.373174][3806:3806] CHIP:DMG: Command handler moving to [AddedComma] [1708591585.373181][3806:3806] CHIP:ZCL: OpCreds: Failed CSRRequest request with IM error 0x01 (err = src/credentials/FabricTable.cpp:1569: CHIP Error 0x00000071: Invalid Fabric Index) [1708591585.373196][3806:3806] CHIP:DMG: Decreasing reference count for CommandHandler, remaining 0 [1708591585.373226][3806:3806] CHIP:EM: <<< [E:14879r S:37109 M:234243257 (Ack:53757721)] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [UDP:[fe80::56ff:e11a:6794:b7c8%wlo1]:37420] --- Type 0001:09 (IM:InvokeCommandResponse) [1708591585.373263][3806:3806] CHIP:DMG: Command handler moving to [CommandSen] [1708591585.373271][3806:3806] CHIP:DMG: Command handler moving to [AwaitingDe] [1708591585.373299][3806:3806] CHIP:EM: >>> [E:14878r S:37109 M:53757722 (Ack:234243255)] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0000:10 (SecureChannel:StandaloneAck) [1708591585.373305][3806:3806] CHIP:EM: Found matching exchange: 14878r, Delegate: (nil) [1708591585.373313][3806:3806] CHIP:EM: Rxd Ack; Removing MessageCounter:234243255 from Retrans Table on exchange 14878r [1708591585.373692][3806:3806] CHIP:EM: >>> [E:14880r S:37109 M:53757723] (S) Msg RX from 0:FFFFFFFB00000000 [0000] --- Type 0001:08 (IM:InvokeCommandRequest) [1708591585.373702][3806:3806] CHIP:EM: Handling via exchange: 14880r, Delegate: 0x6989c8 [1708591585.373716][3806:3806] CHIP:DMG: InvokeRequestMessage = [1708591585.373721][3806:3806] CHIP:DMG: { [1708591585.373724][3806:3806] CHIP:DMG: suppressResponse = false, [1708591585.373728][3806:3806] CHIP:DMG: timedRequest = false, [1708591585.373733][3806:3806] CHIP:DMG: InvokeRequests = [1708591585.373740][3806:3806] CHIP:DMG: [ [1708591585.373746][3806:3806] CHIP:DMG: CommandDataIB = [1708591585.373753][3806:3806] CHIP:DMG: { [1708591585.373759][3806:3806] CHIP:DMG: CommandPathIB = [1708591585.373766][3806:3806] CHIP:DMG: { [1708591585.373773][3806:3806] CHIP:DMG: EndpointId = 0x0, [1708591585.373780][3806:3806] CHIP:DMG: ClusterId = 0x30, [1708591585.373787][3806:3806] CHIP:DMG: CommandId = 0x0, [1708591585.373794][3806:3806] CHIP:DMG: }, [1708591585.373803][3806:3806] CHIP:DMG: [1708591585.373811][3806:3806] CHIP:DMG: CommandFields = [1708591585.373819][3806:3806] CHIP:DMG: { [1708591585.373828][3806:3806] CHIP:DMG: 0x0 = 0, [1708591585.373835][3806:3806] CHIP:DMG: 0x1 = 0, [1708591585.373842][3806:3806] CHIP:DMG: }, [1708591585.373848][3806:3806] CHIP:DMG: }, [1708591585.373857][3806:3806] CHIP:DMG: [1708591585.373862][3806:3806] CHIP:DMG: ], [1708591585.373871][3806:3806] CHIP:DMG: [1708591585.373875][3806:3806] CHIP:DMG: InteractionModelRevision = 11 [1708591585.373879][3806:3806] CHIP:DMG: }, [1708591585.373893][3806:3806] CHIP:DMG: AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0030 e=0 p=a [1708591585.373898][3806:3806] CHIP:DMG: AccessControl: implicit admin (PASE) [1708591585.373903][3806:3806] CHIP:DMG: Received command for Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0000 [1708591585.373909][3806:3806] CHIP:FS: GeneralCommissioning: Received ArmFailSafe (0s) [1708591585.373914][3806:3806] CHIP:FS: Fail-safe timer expired [1708591585.373920][3806:3806] CHIP:DMG: Command handler moving to [ Preparing] [1708591585.373925][3806:3806] CHIP:DMG: Command handler moving to [AddingComm] [1708591585.373930][3806:3806] CHIP:DMG: Command handler moving to [AddedComma] [1708591585.373939][3806:3806] CHIP:DMG: Decreasing reference count for CommandHandler, remaining 0 [1708591585.373963][3806:3806] CHIP:EM: <<< [E:14880r S:37109 M:234243258 (Ack:53757723)] (S) Msg TX to 0:FFFFFFFB00000000 [0000] [UDP:[fe80::56ff:e11a:6794:b7c8%wlo1]:37420] --- Type 0001:09 (IM:InvokeCommandResponse) [1708591585.373991][3806:3806] CHIP:DMG: Command handler moving to [CommandSen] [1708591585.373996][3806:3806] CHIP:DMG: Command handler moving to [AwaitingDe] [1708591585.374001][3806:3806] CHIP:DL: HandlePlatformSpecificBLEEvent 32782 [1708591585.374007][3806:3806] CHIP:SVR: Failsafe timer expired [1708591585.374012][3806:3806] CHIP:IN: SecureSession[0x6c5700]: MarkForEviction Type:1 LSID:37109 [1708591585.374018][3806:3806] CHIP:SC: SecureSession[0x6c5700, LSID:37109]: State change 'kActive' --> 'kPendingEviction' [1708591585.374035][3806:3806] CHIP:IN: SecureSession[0x6c5700]: Released - Type:1 LSID:37109 [1708591585.374045][3806:3806] CHIP:SVR: Commissioning failed (attempt 1): src/app/server/CommissioningWindowManager.cpp:78: CHIP Error 0x00000032: Timeout [1708591585.374065][3806:3806] CHIP:IN: SecureSession[0x6c5700]: Allocated Type:1 LSID:37111 [1708591585.374073][3806:3806] CHIP:SC: Assigned local session key ID 37111 [1708591585.374079][3806:3806] CHIP:SC: Waiting for PBKDF param request [1708591585.374087][3806:3806] CHIP:DIS: Updating services using commissioning mode 1 [1708591585.374837][3806:3806] CHIP:DIS: CHIP minimal mDNS started advertising. [1708591585.375870][3806:3806] CHIP:DL: Using wifi MAC for hostname [1708591585.375894][3806:3806] CHIP:DIS: Advertise commission parameter vendorID=65521 productID=32769 discriminator=3840/15 cm=1 [1708591585.375909][3806:3806] CHIP:DIS: Responding with _matterc._udp.local [1708591585.375914][3806:3806] CHIP:DIS: Responding with 35BF258DEAE26540._matterc._udp.local [1708591585.375919][3806:3806] CHIP:DIS: Responding with E8D8D1F6EA600000.local [1708591585.375924][3806:3806] CHIP:DIS: Responding with E8D8D1F6EA600000.local [1708591585.375931][3806:3806] CHIP:DIS: Responding with _V65521._sub._matterc._udp.local [1708591585.375939][3806:3806] CHIP:DIS: Responding with _T65535._sub._matterc._udp.local [1708591585.375946][3806:3806] CHIP:DIS: Responding with _S15._sub._matterc._udp.local [1708591585.375954][3806:3806] CHIP:DIS: Responding with _L3840._sub._matterc._udp.local [1708591585.375961][3806:3806] CHIP:DIS: Responding with _CM._sub._matterc._udp.local [1708591585.375970][3806:3806] CHIP:DIS: Responding with 35BF258DEAE26540._matterc._udp.local [1708591585.375974][3806:3806] CHIP:DIS: CHIP minimal mDNS configured as 'Commissionable node device'; instance name: 35BF258DEAE26540. [1708591585.377194][3806:3806] CHIP:DIS: mDNS service published: _matterc._udp [1708591585.377202][3806:3806] CHIP:ZCL: OpCreds: Got FailSafeTimerExpired [1708591585.377207][3806:3806] CHIP:ZCL: OpCreds: Proceeding to FailSafeCleanup on fail-safe expiry!
[1708591585.373909][3806:3806] CHIP:FS: GeneralCommissioning: Received ArmFailSafe (0s)
Well, that's the commissioner expiring the fail-safe. I strongly suggest attaching, not pasting, logs from both the commissioner and the commissionee here. That might be enough information to figure out why it did that.