2024年11月23日星期六 下午10:25:46

matter pair设备配对配网流程工作原理(chip-tool chip)

7 个月 前
#31930 引用
matter设备配对流程工作原理





Once the Companion App gives the Thread dataset to the device via BLE, the device should be trying to join the Thread network, and the OTBR should see this and start sending mDNS advertisements for this device to the LAN from which the Companion App should be waiting to see。

Make sure your iOS device is on the same LAN as the OTBR in order to handle mDNS properly.
Other things like make sure HA has a IPv6 address other than FE80:blah:blah and that it too is also on the same LAN.

Since 2024.7 with the ability to send credentials to the phone, the iOS HA Companion App should be working.

Most (if not all) Matter-compliant devices have a Bluetooth chip onboard to ease commissioning. Bluetooth is not used to control but to pair a device after unboxing or after factory resetting. The Home Assistant controller uses the Home Assistant Companion app for commissioning. During commissioning, you need to bring your phone close to the device. The controller then sends your network credentials to your device over Bluetooth. Once that is done, the device communicates over its native interface: Wi-Fi or Thread.

https://www.home-assistant.io/integrations/matter/
0
7 个月 前
#31931 引用
matter配网分为三个阶段

1、设备发现阶段。此时设备发出蓝牙广播,数据是明文,所以敏感数据不能通过蓝牙发送

2、PASE阶段。CD(设备证书认证),NOC(节点信息配置) 都是通过PASE协商出的密钥进行加密

3、CASE阶段。完成CASE后,后续所有的数据交互都是通过CASE协商出的密钥来保证数据安全性的
https://blog.csdn.net/m0_46411607/article/details/131564958

Matter设备种类

Matter设备类型,目前主要是ble-wifi和ble-thread两类,插网线的on-network类设备

* code-wifi                                                                         |
  | * code-thread                                                                       |
  | * ble-wifi                                                                          |
  | * ble-thread                                                                        |
  | * softap    


Matter设备都是经过CSA认证获得签发CD并写入DAC证书的,配网需要用到PAA文件,要给哪个品牌的Matter设备配网就要拿到这个厂家的PAA文件(从csa官方下载更新当前全部厂家的PAA文件)
0
6 个月 前
#33018 引用
Matter Hardware Requirements
带蓝牙的主机(电脑或树莓派)做控制台
Thread Border Router



1x Bluetooth LE dongle (can be embedded inside the PC, like it is on Raspberry Pi)

1x nRF52840 DK or nRF52840 Dongle - For the Radio Co-Processor (RCP) device

1x nRF52840 DK or nRF5340 DK - For the Matter accessory device



The Matter Hub needs a 15.4 Radio Co-Processor (RCP) in order to create and interact with the Thread network.



Raspberry Pi + Nordic OpenThread NCP Dongle
0
6 个月 前
#33019 引用
chip-tool

Matter Controller的具体实现,用它你就可以模拟Controller的所有功能了,如Matter设备发现、配网、消息解析、cluster commands指令发送。

要是手头有Thread NCP Dongle还可以起Thread Border Router服务给Thread Matter产品配网, NCP 随便哪个厂家的都可以,比如Silicon Labs, Nordic

Build the chip-tool as a Matter controller on a Raspberry Pi


为了让Matter产品加入Matter网络,需要一个配网的过程,Matter支持三种类型的配网方式,而低功耗蓝牙则是首选配网方式,所以Matter产品一般都会要求支持低功耗蓝牙功能。
0
6 个月 前
#33020 引用
matter 设备类型

ble-wifi 类(当前最多的产品类型)

Matter Over Wi-Fi Accessory Device Requirements for NCP Mode

配网过程设备发现阶段需要通过ble扫描设备,要求主机必须带蓝牙的原因。

./chip-tool pairing ble-wifi <node_id> <ssid> <password> <pin_code> <discriminator>


指令一下发,就等着让chip-tool自动完成设备发现、蓝牙连接、证书读取校验、WiFi参数下发、走dns-sd二次发现设备

对设备进行配网具有多种途径,这里我们使用 BLE Wi-Fi 的方式进行配网,复制如下指令:

pairing ble-wifi 0x7283 <ssid> <passphrase> 20202021 3840

在上述指令中,0x7283 是随机选取的节点 ID,20202021 是配对码,3840 是鉴别码,粘贴命令到终端,确保电脑与所填 Wi-Fi 在同一网络环境内,在 SSID 填入 Wi-Fi 名称,passphrase 填入密码。

填写完成后的示例如下:

pairing ble-wifi 0x7283 Espressif password 20202021 3840
开始运行,等待一段时间,当监控设备的终端中出现以下日志时,即代表配网成功:

I (347065) app_main: Commissioning complete
I (347065) esp_matter_core: Commissioning Complete



You must get the following Wi-Fi network credentials to commission the Matter device to the Wi-Fi network:

Wi-Fi SSID

Wi-Fi password

The steps required to determine the SSID and password may vary depending on the setup. For instance, you might need to contact your local Wi-Fi network administrator.
0
6 个月 前
#33021 引用
ble-thread 设备配网

主机要有ncp dongle border router。

./chip-tool pairing ble-thread <node_id> hex:<operational_dataset> <pin_code> <discriminator>
0
6 个月 前
#34092 引用
Matter认证过程

不像蓝牙和Wi-Fi,即使你不过认证,也照样可以使用蓝牙和Wi-Fi技术。由于Matter采用了PKI技术,而且它又是一个应用规范,你要使用Matter技术,Matter设备必须通过Matter认证。
0
6 个月 前
#34205 引用
Matter over Ethernet-基于IP matter设备配网

当 Matter设备已经在 IP网络中,但是还没有委托给 Matter 网络时,使用该方式。

查找设备
使用二维码 QR code

https://blog.csdn.net/qq_39217004/article/details/128492262
0