matter chip-tool

zip_mqt
Posts: 3
Joined: Wed Jun 07, 2023 9:49 am

matter chip-tool

Postby zip_mqt » Tue Jun 13, 2023 6:40 am

使用esp32c3 做matter实验
1. matter esp wifi connect <ssid> <password> 连接到路由器,已经成功

2.chip-tool pairing onnetwork 0x11 202021 执行这一步时,出现如下错误

有大佬知道什么原因吗?

Code: Select all

 chip-tool pairing onnetwork 0x11 202021
 CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
 CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_factory.ini
 CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_config.ini
 CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_counters.ini
 CHIP:DL: writing settings to file (/tmp/chip_counters.ini-HjeW98)
 CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
 CHIP:DL: NVS set: chip-counters/reboot-count = 22 (0x16)
 CHIP:DL: Got Ethernet interface: enp2s0
 CHIP:DL: Found the primary Ethernet interface:enp2s0
 CHIP:DL: Got WiFi interface: wlp3s0
 CHIP:DL: Found the primary WiFi interface:wlp3s0
 CHIP:IN: UDP::Init bind&listen port=0
 CHIP:IN: UDP::Init bound to port=53226
 CHIP:IN: UDP::Init bind&listen port=0
 CHIP:IN: UDP::Init bound to port=46862
 CHIP:IN: BLEBase::Init - setting/overriding transport
 CHIP:IN: TransportMgr initialized
 CHIP:FP: Initializing FabricTable from persistent storage
 CHIP:TS: Last Known Good Time: 2023-06-12T17:47:52
 CHIP:FP: Fabric index 0x1 was retrieved from storage. Compressed FabricId 0xF472A24D1991C242, FabricId 0x0000000000000001, NodeId 0x000000000001B669, VendorId 0xFFF1
 CHIP:ZCL: Using ZAP configuration...
 CHIP:CTL: System State Initialized...
 CHIP:CTL: Stopping commissioning discovery over DNS-SD
 CHIP:CTL: Setting attestation nonce to random value
 CHIP:CTL: Setting CSR nonce to random value
 CHIP:DL: CHIP task running
 CHIP:DL: HandlePlatformSpecificBLEEvent 32784
 CHIP:CTL: Stopping commissioning discovery over DNS-SD
 CHIP:CTL: Setting attestation nonce to random value
 CHIP:CTL: Setting CSR nonce to random value
 CHIP:CTL: Generating NOC
 CHIP:FP: Validating NOC chain
 CHIP:FP: NOC chain validation successful
 CHIP:FP: Updated fabric at index: 0x1, Node ID: 0x000000000001B669
 CHIP:TS: Last Known Good Time: 2023-06-12T17:47:52
 CHIP:TS: New proposed Last Known Good Time: 2021-01-01T00:00:00
 CHIP:TS: Retaining current Last Known Good Time
 CHIP:FP: Metadata for Fabric 0x1 persisted to storage.
 CHIP:TS: Committing Last Known Good Time to storage: 2023-06-12T17:47:52
 CHIP:CTL: Joined the fabric at index 1. Fabric ID is 0x0000000000000001 (Compressed Fabric ID: F472A24D1991C242)
 CHIP:DIS: Timeout waiting for mDNS resolution.
 CHIP:CTL: Shutting down the commissioner
 CHIP:CTL: Stopping commissioning discovery over DNS-SD
 CHIP:CTL: Shutting down the controller
 CHIP:IN: Expiring all sessions for fabric 0x1!!
 CHIP:FP: Forgetting fabric 0x1
 CHIP:TS: Pending Last Known Good Time: 2023-06-12T17:47:52
 CHIP:TS: Previous Last Known Good Time: 2023-06-12T17:47:52
 CHIP:TS: Reverted Last Known Good Time to previous value
 CHIP:CTL: Shutting down the commissioner
 CHIP:CTL: Stopping commissioning discovery over DNS-SD
 CHIP:CTL: Shutting down the controller
 CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack
 CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet
 CHIP:BLE: BleConnectionDelegate::CancelConnection is not implemented.
 CHIP:FP: Shutting down FabricTable
 CHIP:TS: Pending Last Known Good Time: 2023-06-12T17:47:52
 CHIP:TS: Previous Last Known Good Time: 2023-06-12T17:47:52
 CHIP:TS: Reverted Last Known Good Time to previous value
 CHIP:DL: writing settings to file (/tmp/chip_counters.ini-FdFSr7)
 CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
 CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0)
 CHIP:DL: Inet Layer shutdown
 CHIP:DL: BLE shutdown
 CHIP:DL: System Layer shutdown
 CHIP:TOO: Run command failure: examples/chip-tool/commands/common/CHIPCommand.cpp:537: CHIP Error 0x00000032: Timeout

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: matter chip-tool

Postby ESP_@In逍遥子 » Wed Jun 14, 2023 6:05 am

运行 chip tool 的电脑,是否也连接到同一个路由器下了呢?

这种配网方式,必须 运行chip tool的电脑和设备连接到同一个路由器下。

zip_mqt
Posts: 3
Joined: Wed Jun 07, 2023 9:49 am

Re: matter chip-tool

Postby zip_mqt » Wed Jun 14, 2023 6:25 am

电脑和espc3 都连接了同一路由器,并且路由器开启了IPv6,只是改路由器不能连接互联网。

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: matter chip-tool

Postby ESP_@In逍遥子 » Wed Jul 19, 2023 6:21 am

请补充下更多有关复现步骤的细节吧

1.设备日志
2.chip-tool 日志
3.电脑开发环境
4.等等

Luxni_
Posts: 28
Joined: Mon Aug 16, 2021 6:20 am

Re: matter chip-tool

Postby Luxni_ » Wed Jul 19, 2023 8:33 am

当你已经完成了配网操作, 如果想再次配网,则需要打开设备的配网窗口,
这个操作貌似叫: multi admin ,github上有写。

Who is online

Users browsing this forum: No registered users and 53 guests