project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.46k stars 1.99k forks source link

thread device pairing Tip on ios: The home network must include a Thread border router #34620

Open Wuou opened 3 months ago

Wuou commented 3 months ago

Reproduction steps

When using the MatterSupport and Matter frameworks on iOS to pair with a Thread device, always receive the message: "The home network must include a Thread border router." What configuration do I need to do?

I am able to pair with Matter over Wi-Fi devices successfully, why can't I do the same with Thread devices?

Bug prevalence

Always come up

GitHub hash of the SDK that was being used

Matter.framework

Platform

darwin

Platform Version(s)

No response

Type

Platform Issue

Anything else?

No response

aajain-com commented 2 months ago

@Wuou are you trying to add the accessory to Apple Home or to another ecosystem? Please file an Apple Feedback Assistant ticket and attach the complete diagnostic logs and share the feedback ticket number here so I can follow up.

Wuou commented 2 months ago

@Wuou are you trying to add the accessory to Apple Home or to another ecosystem? Please file an Apple Feedback Assistant ticket and attach the complete diagnostic logs and share the feedback ticket number here so I can follow up.

Thank you for your reply.

  1. We have developed our own app, using MatterSupport and Matter.framework for provisioning Matter devices. This is not Apple Home.
  2. We have a Thread border router (using a Raspberry Pi) and a Thread Thermostat device.
  3. Provisioning of Wi-Fi devices works normally, but when pairing a Thread device, we consistently receive the message "The home network must include a Thread border router."
  4. We have already ensured that the mobile device is using the Raspberry Pi's network. So, how should we configure the Thread device so that pairing can be successful? image
Wuou commented 2 months ago

@Wuou are you trying to add the accessory to Apple Home or to another ecosystem? Please file an Apple Feedback Assistant ticket and attach the complete diagnostic logs and share the feedback ticket number here so I can follow up.

I obtained network information from the thread network selection method in MatterExtension:

override func selectThreadNetwork(from threadScanResults: [MatterAddDeviceExtensionRequestHandler.ThreadScanResult]) async throws -> MatterAddDeviceExtensionRequestHandler.ThreadNetworkAssociation

I found only this network: [networkName: MyHome, extendedPANID: 1744289600-2862571479831496853]. So, is it because the iPhone cannot recognize the Raspberry Pi's network?

JoeyYang2010 commented 2 months ago

@Wuou I am developing my own app too, I have problems when pairing a wifi sensor, "MatterAddDeviceExtensionRequestHandler" will not invoked, can you help me with that, thanks a lot.