我学习了你的 Matter开发环境搭建:Linux/ESP32/Thread设备快速上手 这篇文章
想要请教一下,我在ubuntu系统中使用./out/debug/chip-lighting-app 创建一个虚拟照明设备,在同一台设备上用chip-tool工具测试配网控制都是成功的,但是我尝试了很多手机app,例如涂鸦、苹果的home app等,发现安卓手机上的app配网失败,ubuntu的虚拟设备没有收到任何消息,苹果的home app配网时,ubuntu的虚拟设备收到消息,并且有日志,但是在配网最后阶段还是失败了。如下是ubuntu上的log
[1774921699.742] [1610702:1610702] [DMG] Read request on unknown cluster - no data version available
[1774921699.742] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0046 e=0 p=v r=r
[1774921699.742] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.742] [1610702:1610702] [DMG] Failed to read attribute: UNSUPPORTED_CLUSTER(195)
[1774921699.742] [1610702:1610702] [DMG] Fail to retrieve data, roll back and encode status on clusterId: 0x0000_0046, attributeId: 0x0000_0002err = src/app/data-model-provider/ActionReturnStatus.cpp:104: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER)
[1774921699.742] [1610702:1610702] [DMG] RE:Run Cluster 46, Attribute 1 is dirty
[1774921699.742] [1610702:1610702] [DMG] Read request on unknown cluster - no data version available
[1774921699.742] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0046 e=0 p=v r=r
[1774921699.742] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.743] [1610702:1610702] [DMG] Failed to read attribute: UNSUPPORTED_CLUSTER(195)
[1774921699.743] [1610702:1610702] [DMG] Fail to retrieve data, roll back and encode status on clusterId: 0x0000_0046, attributeId: 0x0000_0001err = src/app/data-model-provider/ActionReturnStatus.cpp:104: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER)
[1774921699.743] [1610702:1610702] [DMG] RE:Run Cluster 46, Attribute 0 is dirty
[1774921699.743] [1610702:1610702] [DMG] Read request on unknown cluster - no data version available
[1774921699.743] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0046 e=0 p=v r=r
[1774921699.743] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.743] [1610702:1610702] [DMG] Failed to read attribute: UNSUPPORTED_CLUSTER(195)
[1774921699.743] [1610702:1610702] [DMG] Fail to retrieve data, roll back and encode status on clusterId: 0x0000_0046, attributeId: 0x0000_0000err = src/app/data-model-provider/ActionReturnStatus.cpp:104: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER)
[1774921699.743] [1610702:1610702] [DMG] RE:Run Cluster 46, Attribute 7 is dirty
[1774921699.743] [1610702:1610702] [DMG] Read request on unknown cluster - no data version available
[1774921699.743] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0046 e=0 p=v r=r
[1774921699.743] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.743] [1610702:1610702] [DMG] Failed to read attribute: UNSUPPORTED_CLUSTER(195)
[1774921699.743] [1610702:1610702] [DMG] Fail to retrieve data, roll back and encode status on clusterId: 0x0000_0046, attributeId: 0x0000_0007err = src/app/data-model-provider/ActionReturnStatus.cpp:104: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER)
[1774921699.743] [1610702:1610702] [DMG] RE:Run Cluster 46, Attribute 6 is dirty
[1774921699.743] [1610702:1610702] [DMG] Read request on unknown cluster - no data version available
[1774921699.743] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0046 e=0 p=v r=r
[1774921699.743] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.743] [1610702:1610702] [DMG] Failed to read attribute: UNSUPPORTED_CLUSTER(195)
[1774921699.743] [1610702:1610702] [DMG] Fail to retrieve data, roll back and encode status on clusterId: 0x0000_0046, attributeId: 0x0000_0006err = src/app/data-model-provider/ActionReturnStatus.cpp:104: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER)
[1774921699.743] [1610702:1610702] [DMG] RE:Run Cluster 30, Attribute 4 is dirty
[1774921699.743] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0030 e=0 p=v r=r
[1774921699.743] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.743] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0030 e=0 p=v r=r
[1774921699.743] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.743] [1610702:1610702] [DMG] Reading attribute: Cluster=0x0000_0030 Endpoint=0x0 AttributeId=0x0000_0004 (expanded=0)
[1774921699.743] [1610702:1610702] [DMG] Sending report (payload has 150 bytes)...
[1774921699.743] [1610702:1610702] [EM] <<< [E:18883r S:64105 M:224381343] (S) Msg TX from 0000000000000000 to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:05 (IM:ReportData) (B:180)
[1774921699.743] [1610702:1610702] [DMG] OnReportConfirm: NumReports = 0
[1774921699.743] [1610702:1610702] [DMG] ReportsInFlight = 0 with readHandler 0, RE has no more messages
[1774921699.743] [1610702:1610702] [DMG] IM RH moving to [AwaitingDestruction]
[1774921699.743] [1610702:1610702] [DMG] All ReadHandler-s are clean, clear GlobalDirtySet
[1774921699.800] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921699.802] [1610702:1610703] [DL] C1 WriteHandlerCallback received 70 bytes
[1774921699.802] [1610702:1610703] [BLE] Write request received: conn=0x7fc224039ce0
[1774921699.802] [1610702:1610702] [EM] >>> [E:18884r S:64105 M:265556223] (S) Msg RX from 0:FFFFFFFB00000000 [0000] to 0000000000000000 --- Type 0001:08 (IM:InvokeCommandRequest) (B:65)
[1774921699.802] [1610702:1610702] [EM] Handling via exchange: 18884r, Delegate: 0x55d4b0212968
[1774921699.802] [1610702:1610702] [DMG] InvokeRequestMessage =
[1774921699.802] [1610702:1610702] [DMG] {
[1774921699.802] [1610702:1610702] [DMG] suppressResponse = false,
[1774921699.802] [1610702:1610702] [DMG] timedRequest = false,
[1774921699.802] [1610702:1610702] [DMG] InvokeRequests =
[1774921699.802] [1610702:1610702] [DMG] [
[1774921699.802] [1610702:1610702] [DMG] CommandDataIB =
[1774921699.802] [1610702:1610702] [DMG] {
[1774921699.802] [1610702:1610702] [DMG] CommandPathIB =
[1774921699.802] [1610702:1610702] [DMG] {
[1774921699.802] [1610702:1610702] [DMG] EndpointId = 0x0,
[1774921699.802] [1610702:1610702] [DMG] ClusterId = 0x30,
[1774921699.802] [1610702:1610702] [DMG] CommandId = 0x0,
[1774921699.802] [1610702:1610702] [DMG] },
[1774921699.802] [1610702:1610702] [DMG]
[1774921699.802] [1610702:1610702] [DMG] CommandFields =
[1774921699.802] [1610702:1610702] [DMG] {
[1774921699.802] [1610702:1610702] [DMG] 0x0 = 60 (unsigned),
[1774921699.802] [1610702:1610702] [DMG] 0x1 = 4 (unsigned),
[1774921699.802] [1610702:1610702] [DMG] },
[1774921699.802] [1610702:1610702] [DMG] },
[1774921699.802] [1610702:1610702] [DMG]
[1774921699.802] [1610702:1610702] [DMG] ],
[1774921699.802] [1610702:1610702] [DMG]
[1774921699.802] [1610702:1610702] [DMG] InteractionModelRevision = 11
[1774921699.802] [1610702:1610702] [DMG] },
[1774921699.802] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0030 e=0 p=a r=i
[1774921699.802] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.802] [1610702:1610702] [DMG] Received command for Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0000
[1774921699.802] [1610702:1610702] [FS] GeneralCommissioning: Received ArmFailSafe (60s)
[1774921699.802] [1610702:1610702] [DMG] Command handler moving to [NewRespons]
[1774921699.802] [1610702:1610702] [DMG] Command handler moving to [ Preparing]
[1774921699.802] [1610702:1610702] [DMG] Command handler moving to [AddingComm]
[1774921699.802] [1610702:1610702] [DMG] Command handler moving to [AddedComma]
[1774921699.802] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 1
[1774921699.802] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 0
[1774921699.802] [1610702:1610702] [DMG] Command handler moving to [AwaitingDe]
[1774921699.802] [1610702:1610702] [EM] <<< [E:18884r S:64105 M:224381344] (S) Msg TX from 0000000000000000 to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:09 (IM:InvokeCommandResponse) (B:66)
[1774921699.802] [1610702:1610702] [DMG] Command response sender moving to [AllInvokeR]
[1774921699.921] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921699.922] [1610702:1610703] [DL] C1 WriteHandlerCallback received 75 bytes
[1774921699.922] [1610702:1610703] [BLE] Write request received: conn=0x7fc224039ce0
[1774921699.922] [1610702:1610702] [EM] >>> [E:18885r S:64105 M:265556224] (S) Msg RX from 0:FFFFFFFB00000000 [0000] to 0000000000000000 --- Type 0001:08 (IM:InvokeCommandRequest) (B:70)
[1774921699.922] [1610702:1610702] [EM] Handling via exchange: 18885r, Delegate: 0x55d4b0212968
[1774921699.923] [1610702:1610702] [DMG] InvokeRequestMessage =
[1774921699.923] [1610702:1610702] [DMG] {
[1774921699.923] [1610702:1610702] [DMG] suppressResponse = false,
[1774921699.923] [1610702:1610702] [DMG] timedRequest = false,
[1774921699.923] [1610702:1610702] [DMG] InvokeRequests =
[1774921699.923] [1610702:1610702] [DMG] [
[1774921699.923] [1610702:1610702] [DMG] CommandDataIB =
[1774921699.923] [1610702:1610702] [DMG] {
[1774921699.923] [1610702:1610702] [DMG] CommandPathIB =
[1774921699.923] [1610702:1610702] [DMG] {
[1774921699.923] [1610702:1610702] [DMG] EndpointId = 0x0,
[1774921699.923] [1610702:1610702] [DMG] ClusterId = 0x30,
[1774921699.923] [1610702:1610702] [DMG] CommandId = 0x2,
[1774921699.923] [1610702:1610702] [DMG] },
[1774921699.923] [1610702:1610702] [DMG]
[1774921699.923] [1610702:1610702] [DMG] CommandFields =
[1774921699.923] [1610702:1610702] [DMG] {
[1774921699.923] [1610702:1610702] [DMG] 0x0 = 0 (unsigned),
[1774921699.923] [1610702:1610702] [DMG] 0x1 = "CN" (2 chars),
[1774921699.923] [1610702:1610702] [DMG] 0x2 = 5 (unsigned),
[1774921699.923] [1610702:1610702] [DMG] },
[1774921699.923] [1610702:1610702] [DMG] },
[1774921699.923] [1610702:1610702] [DMG]
[1774921699.923] [1610702:1610702] [DMG] ],
[1774921699.923] [1610702:1610702] [DMG]
[1774921699.923] [1610702:1610702] [DMG] InteractionModelRevision = 11
[1774921699.923] [1610702:1610702] [DMG] },
[1774921699.923] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_0030 e=0 p=a r=i
[1774921699.923] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.923] [1610702:1610702] [DMG] Received command for Endpoint=0 Cluster=0x0000_0030 Command=0x0000_0002
[1774921699.926] [1610702:1610702] [DL] Wrote settings to /tmp/chip_config.ini
[1774921699.926] [1610702:1610702] [DL] NVS set: chip-config/regulatory-location = 0 (0x0)
[1774921699.928] [1610702:1610702] [DL] Wrote settings to /tmp/chip_config.ini
[1774921699.928] [1610702:1610702] [DL] NVS set: chip-config/country-code = "CN"
[1774921699.928] [1610702:1610702] [DMG] Command handler moving to [NewRespons]
[1774921699.928] [1610702:1610702] [DMG] Command handler moving to [ Preparing]
[1774921699.928] [1610702:1610702] [DMG] Command handler moving to [AddingComm]
[1774921699.928] [1610702:1610702] [DMG] Command handler moving to [AddedComma]
[1774921699.928] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 1
[1774921699.928] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 0
[1774921699.928] [1610702:1610702] [DMG] Command handler moving to [AwaitingDe]
[1774921699.928] [1610702:1610702] [EM] <<< [E:18885r S:64105 M:224381345] (S) Msg TX from 0000000000000000 to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:09 (IM:InvokeCommandResponse) (B:66)
[1774921699.929] [1610702:1610702] [DMG] Command response sender moving to [AllInvokeR]
[1774921699.981] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921699.982] [1610702:1610703] [DL] C1 WriteHandlerCallback received 67 bytes
[1774921699.982] [1610702:1610703] [BLE] Write request received: conn=0x7fc224039ce0
[1774921699.982] [1610702:1610702] [EM] >>> [E:18886r S:64105 M:265556225] (S) Msg RX from 0:FFFFFFFB00000000 [0000] to 0000000000000000 --- Type 0001:08 (IM:InvokeCommandRequest) (B:62)
[1774921699.982] [1610702:1610702] [EM] Handling via exchange: 18886r, Delegate: 0x55d4b0212968
[1774921699.982] [1610702:1610702] [DMG] InvokeRequestMessage =
[1774921699.983] [1610702:1610702] [DMG] {
[1774921699.983] [1610702:1610702] [DMG] suppressResponse = false,
[1774921699.983] [1610702:1610702] [DMG] timedRequest = false,
[1774921699.983] [1610702:1610702] [DMG] InvokeRequests =
[1774921699.983] [1610702:1610702] [DMG] [
[1774921699.983] [1610702:1610702] [DMG] CommandDataIB =
[1774921699.983] [1610702:1610702] [DMG] {
[1774921699.983] [1610702:1610702] [DMG] CommandPathIB =
[1774921699.983] [1610702:1610702] [DMG] {
[1774921699.983] [1610702:1610702] [DMG] EndpointId = 0x0,
[1774921699.983] [1610702:1610702] [DMG] ClusterId = 0x3e,
[1774921699.983] [1610702:1610702] [DMG] CommandId = 0x2,
[1774921699.983] [1610702:1610702] [DMG] },
[1774921699.983] [1610702:1610702] [DMG]
[1774921699.983] [1610702:1610702] [DMG] CommandFields =
[1774921699.983] [1610702:1610702] [DMG] {
[1774921699.983] [1610702:1610702] [DMG] 0x0 = 2 (unsigned),
[1774921699.983] [1610702:1610702] [DMG] },
[1774921699.983] [1610702:1610702] [DMG] },
[1774921699.983] [1610702:1610702] [DMG]
[1774921699.983] [1610702:1610702] [DMG] ],
[1774921699.983] [1610702:1610702] [DMG]
[1774921699.983] [1610702:1610702] [DMG] InteractionModelRevision = 11
[1774921699.983] [1610702:1610702] [DMG] },
[1774921699.983] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_003E e=0 p=a r=i
[1774921699.983] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921699.983] [1610702:1610702] [DMG] Received command for Endpoint=0 Cluster=0x0000_003E Command=0x0000_0002
[1774921699.983] [1610702:1610702] [ZCL] OpCreds: Certificate Chain request received for PAI
[1774921699.983] [1610702:1610702] [DMG] Command handler moving to [NewRespons]
[1774921699.983] [1610702:1610702] [DMG] Command handler moving to [ Preparing]
[1774921699.983] [1610702:1610702] [DMG] Command handler moving to [AddingComm]
[1774921699.983] [1610702:1610702] [DMG] Command handler moving to [AddedComma]
[1774921699.983] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 1
[1774921699.983] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 0
[1774921699.983] [1610702:1610702] [DMG] Command handler moving to [AwaitingDe]
[1774921699.983] [1610702:1610702] [EM] <<< [E:18886r S:64105 M:224381346] (S) Msg TX from 0000000000000000 to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:09 (IM:InvokeCommandResponse) (B:527)
[1774921699.984] [1610702:1610702] [DMG] Command response sender moving to [AllInvokeR]
[1774921700.041] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921700.101] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921700.161] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921700.162] [1610702:1610703] [DL] C1 WriteHandlerCallback received 67 bytes
[1774921700.162] [1610702:1610703] [BLE] Write request received: conn=0x7fc224039ce0
[1774921700.163] [1610702:1610702] [EM] >>> [E:18887r S:64105 M:265556226] (S) Msg RX from 0:FFFFFFFB00000000 [0000] to 0000000000000000 --- Type 0001:08 (IM:InvokeCommandRequest) (B:62)
[1774921700.163] [1610702:1610702] [EM] Handling via exchange: 18887r, Delegate: 0x55d4b0212968
[1774921700.163] [1610702:1610702] [DMG] InvokeRequestMessage =
[1774921700.163] [1610702:1610702] [DMG] {
[1774921700.163] [1610702:1610702] [DMG] suppressResponse = false,
[1774921700.163] [1610702:1610702] [DMG] timedRequest = false,
[1774921700.163] [1610702:1610702] [DMG] InvokeRequests =
[1774921700.163] [1610702:1610702] [DMG] [
[1774921700.163] [1610702:1610702] [DMG] CommandDataIB =
[1774921700.163] [1610702:1610702] [DMG] {
[1774921700.163] [1610702:1610702] [DMG] CommandPathIB =
[1774921700.163] [1610702:1610702] [DMG] {
[1774921700.163] [1610702:1610702] [DMG] EndpointId = 0x0,
[1774921700.163] [1610702:1610702] [DMG] ClusterId = 0x3e,
[1774921700.163] [1610702:1610702] [DMG] CommandId = 0x2,
[1774921700.163] [1610702:1610702] [DMG] },
[1774921700.163] [1610702:1610702] [DMG]
[1774921700.163] [1610702:1610702] [DMG] CommandFields =
[1774921700.163] [1610702:1610702] [DMG] {
[1774921700.163] [1610702:1610702] [DMG] 0x0 = 1 (unsigned),
[1774921700.163] [1610702:1610702] [DMG] },
[1774921700.163] [1610702:1610702] [DMG] },
[1774921700.163] [1610702:1610702] [DMG]
[1774921700.163] [1610702:1610702] [DMG] ],
[1774921700.163] [1610702:1610702] [DMG]
[1774921700.163] [1610702:1610702] [DMG] InteractionModelRevision = 11
[1774921700.163] [1610702:1610702] [DMG] },
[1774921700.163] [1610702:1610702] [DMG] AccessControl: checking f=0 a=p s=0xFFFFFFFB00000000 t= c=0x0000_003E e=0 p=a r=i
[1774921700.163] [1610702:1610702] [DMG] AccessControl: implicit admin (PASE)
[1774921700.163] [1610702:1610702] [DMG] Received command for Endpoint=0 Cluster=0x0000_003E Command=0x0000_0002
[1774921700.163] [1610702:1610702] [ZCL] OpCreds: Certificate Chain request received for DAC
[1774921700.163] [1610702:1610702] [DMG] Command handler moving to [NewRespons]
[1774921700.163] [1610702:1610702] [DMG] Command handler moving to [ Preparing]
[1774921700.163] [1610702:1610702] [DMG] Command handler moving to [AddingComm]
[1774921700.163] [1610702:1610702] [DMG] Command handler moving to [AddedComma]
[1774921700.163] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 1
[1774921700.163] [1610702:1610702] [DMG] Decreasing reference count for CommandHandlerImpl, remaining 0
[1774921700.163] [1610702:1610702] [DMG] Command handler moving to [AwaitingDe]
[1774921700.163] [1610702:1610702] [EM] <<< [E:18887r S:64105 M:224381347] (S) Msg TX from 0000000000000000 to 0:FFFFFFFB00000000 [0000] [BLE] --- Type 0001:09 (IM:InvokeCommandResponse) (B:555)
[1774921700.164] [1610702:1610702] [DMG] Command response sender moving to [AllInvokeR]
[1774921700.221] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921700.311] [1610702:1610703] [DL] Indication confirmation: conn=0x7fc224039ce0
[1774921700.432] [1610702:1610703] [DL] INFO: socket disconnected in WriteHandlerCallback
[1774921700.432] [1610702:1610703] [DL] INFO: socket disconnected in NotifyHandlerCallback
[1774921700.435] [1610702:1610703] [DL] BLE connection closed: conn=0x7fc224039ce0
[1774921700.435] [1610702:1610702] [IN] Clearing BLE pending packets.
[1774921700.435] [1610702:1610702] [DL] Freeing BLE connection: conn=0x7fc224039ce0
有这个日志错误,home app上显示与配件配对失败,请问下可以帮我看看是什么原因吗?