canonical / matter-docs

https://canonical-matter.readthedocs-hosted.com/en/latest/
0 stars 2 forks source link

Cannot use WSL as PC client for chip-tool #38

Open SecondSkoll opened 3 weeks ago

SecondSkoll commented 3 weeks ago

Following the Build your first Matter device with a Raspberry Pi instructions, using a PC using WSL Ubuntu 24.04 results in the following output:

skoll@DESKTOP-2LFVG39:~$ chip-tool pairing onnetwork 110 1234
[1724053097.785816][4552:4552] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /home/skoll/snap/chip-tool/common/chip_tool_kvs
[1724053097.786139][4552:4552] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_kvs
[1724053097.786153][4552:4552] CHIP:DL: ChipLinuxStorage::Init: Attempt to re-initialize with KVS config file: /tmp/chip_kvs
[1724053097.787493][4552:4552] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_factory.ini
[1724053097.787536][4552:4552] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_config.ini
[1724053097.787559][4552:4552] CHIP:DL: ChipLinuxStorage::Init: Using KVS config file: /tmp/chip_counters.ini
[1724053097.787640][4552:4552] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-TjKyH6)
[1724053097.787760][4552:4552] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1724053097.787780][4552:4552] CHIP:DL: NVS set: chip-counters/reboot-count = 19 (0x13)
[1724053097.787872][4552:4552] CHIP:DL: Got Ethernet interface: eth0
[1724053097.787915][4552:4552] CHIP:DL: Found the primary Ethernet interface:eth0
[1724053097.787961][4552:4552] CHIP:DL: Failed to get WiFi interface
[1724053097.787972][4552:4552] CHIP:DL: Failed to reset WiFi statistic counts
[1724053097.787982][4552:4552] CHIP:IN: UDP::Init bind&listen port=0
[1724053097.788004][4552:4552] CHIP:IN: UDP::Init bound to port=57860
[1724053097.788007][4552:4552] CHIP:IN: UDP::Init bind&listen port=0
[1724053097.788037][4552:4552] CHIP:IN: UDP::Init bound to port=34832
[1724053097.788047][4552:4552] CHIP:IN: BLEBase::Init - setting/overriding transport
[1724053097.788049][4552:4552] CHIP:IN: TransportMgr initialized
[1724053097.788057][4552:4552] CHIP:FP: Initializing FabricTable from persistent storage
[1724053097.788094][4552:4552] CHIP:TS: Last Known Good Time: 2023-10-14T01:16:48
[1724053097.788390][4552:4552] CHIP:FP: Fabric index 0x1 was retrieved from storage. Compressed FabricId 0xA478E426CEE3105D, FabricId 0x0000000000000001, NodeId 0x000000000001B669, VendorId 0xFFF1
[1724053097.788716][4552:4552] CHIP:ZCL: Using ZAP configuration...
[1724053097.788885][4552:4552] CHIP:CTL: System State Initialized...
[1724053097.788936][4552:4552] CHIP:CTL: Setting attestation nonce to random value
[1724053097.788954][4552:4552] CHIP:CTL: Setting CSR nonce to random value
[1724053097.788966][4552:4552] CHIP:IN: UDP::Init bind&listen port=5550
[1724053097.788985][4552:4552] CHIP:IN: UDP::Init bound to port=5550
[1724053097.788998][4552:4552] CHIP:IN: UDP::Init bind&listen port=5550
[1724053097.789024][4552:4552] CHIP:IN: UDP::Init bound to port=5550
[1724053097.789037][4552:4552] CHIP:IN: TransportMgr initialized
[1724053097.789120][4552:4580] CHIP:DL: CHIP task running
[1724053097.789147][4552:4580] CHIP:DL: HandlePlatformSpecificBLEEvent 32786
[1724053097.789212][4552:4580] CHIP:CTL: Setting attestation nonce to random value
[1724053097.789243][4552:4580] CHIP:CTL: Setting CSR nonce to random value
[1724053097.789420][4552:4580] CHIP:CTL: Generating NOC
[1724053097.789625][4552:4580] CHIP:FP: Validating NOC chain
[1724053097.789966][4552:4580] CHIP:FP: NOC chain validation successful
[1724053097.790006][4552:4580] CHIP:FP: Updated fabric at index: 0x1, Node ID: 0x000000000001B669
[1724053097.790018][4552:4580] CHIP:TS: Last Known Good Time: 2023-10-14T01:16:48
[1724053097.790021][4552:4580] CHIP:TS: New proposed Last Known Good Time: 2021-01-01T00:00:00
[1724053097.790022][4552:4580] CHIP:TS: Retaining current Last Known Good Time
[1724053097.790384][4552:4580] CHIP:FP: Metadata for Fabric 0x1 persisted to storage.
[1724053097.790685][4552:4580] CHIP:TS: Committing Last Known Good Time to storage: 2023-10-14T01:16:48
[1724053097.791012][4552:4580] CHIP:CTL: Joined the fabric at index 1. Fabric ID is 0x0000000000000001 (Compressed Fabric ID: A478E426CEE3105D)
[1724053097.791032][4552:4580] CHIP:IN: UDP::Init bind&listen port=5550
[1724053097.791043][4552:4580] CHIP:IN: UDP::Init bound to port=5550
[1724053097.791055][4552:4580] CHIP:IN: UDP::Init bind&listen port=5550
[1724053097.791072][4552:4580] CHIP:IN: UDP::Init bound to port=5550
[1724053097.791083][4552:4580] CHIP:IN: TransportMgr initialized
[1724053128.824323][4552:4580] CHIP:DIS: Timeout waiting for mDNS resolution.
[1724053217.844573][4552:4552] CHIP:CTL: Shutting down the commissioner
[1724053217.844628][4552:4552] CHIP:CTL: Shutting down the controller
[1724053217.844651][4552:4552] CHIP:IN: Expiring all sessions for fabric 0x1!!
[1724053217.844665][4552:4552] CHIP:FP: Forgetting fabric 0x1
[1724053217.844678][4552:4552] CHIP:TS: Pending Last Known Good Time: 2023-10-14T01:16:48
[1724053217.844734][4552:4552] CHIP:TS: Previous Last Known Good Time: 2023-10-14T01:16:48
[1724053217.844755][4552:4552] CHIP:TS: Reverted Last Known Good Time to previous value
[1724053217.844768][4552:4552] CHIP:CTL: Shutting down the commissioner
[1724053217.844796][4552:4552] CHIP:CTL: Shutting down the controller
[1724053217.844813][4552:4552] CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack
[1724053217.844848][4552:4552] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet
[1724053217.844878][4552:4552] CHIP:FP: Shutting down FabricTable
[1724053217.844898][4552:4552] CHIP:TS: Pending Last Known Good Time: 2023-10-14T01:16:48
[1724053217.844925][4552:4552] CHIP:TS: Previous Last Known Good Time: 2023-10-14T01:16:48
[1724053217.844937][4552:4552] CHIP:TS: Reverted Last Known Good Time to previous value
[1724053217.845020][4552:4552] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-84KPEq)
[1724053217.845176][4552:4552] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1724053217.845200][4552:4552] CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0)
[1724053217.845213][4552:4552] CHIP:DL: Inet Layer shutdown
[1724053217.845215][4552:4552] CHIP:DL: BLE shutdown
[1724053217.845289][4552:4552] CHIP:DL: System Layer shutdown
[1724053217.845397][4552:4552] CHIP:TOO: Run command failure: ../examples/chip-tool/commands/common/CHIPCommand.cpp:617: CHIP Error 0x00000032: Timeout

It does not provide any output in the device running matter-pi-gpio-commander. We may just need to note that WSL is not supported in the documentation.