connectedhomeip: [BUG] MacOS Ventura 13.0, CHIP-Tool cannot establish a BLE connection to pair devices into a thread network

Reproduction steps

After update of MacOS to Version V13.0 (Ventura) the chip-tool doesn’t work as expected.

I tried to pair a device into a existing thread-network via ble.

The error is

[1667391311686] [3120:29505] CHIP: [BLE] BLE:Error writing Characteristics in Chip service on the device: [The specified UUID is not allowed for this operation.]
[1667391311686] [3120:29505] CHIP: [IN] Failed to establish BLE connection: ../../../../../opt/nordic/ncs/v2.1.0/modules/lib/matter/examples/chip-tool/third_party/connectedhomeip/src/platform/Darwin/BleConnectionDelegateImpl.mm:260: Ble Error 0x00000407: GATT write characteristic operation failed

Maybe this is similar to #23397 or #23192 (downloading and installing the profile, don’t leads to success).

The pairing procedure works with MacOS V12.x

The whole log of chip-tool:

sudo ./chip-tool pairing ble-thread 0x100 hex:0e080000000000010000000300000f35060004001fffe0020811111111222222220708fdcb9feb8e974a17051000112233445566778899aabbccddeeff030e4f70656e54687265616444656d6f010212340410445f2b5ca6f2a93a55ce570a70efeecb0c0402a0f7f8 20202021 3840
Password:
[1667391310246] [3120:29499] CHIP: [DL] KVS will be written to: file:///tmp/chip_kvs
[1667391310290] [3120:29499] CHIP: [DL] _Init
[1667391310290] [3120:29499] CHIP: [IN] UDP::Init bind&listen port=0
[1667391310290] [3120:29499] CHIP: [IN] UDP::Init bound to port=53245
[1667391310290] [3120:29499] CHIP: [IN] UDP::Init bind&listen port=0
[1667391310290] [3120:29499] CHIP: [IN] UDP::Init bound to port=49626
[1667391310290] [3120:29499] CHIP: [IN] BLEBase::Init - setting/overriding transport
[1667391310290] [3120:29499] CHIP: [IN] TransportMgr initialized
[1667391310290] [3120:29499] CHIP: [FP] Initializing FabricTable from persistent storage
[1667391310290] [3120:29499] CHIP: [TS] Last Known Good Time: [unknown]
[1667391310290] [3120:29499] CHIP: [TS] Setting Last Known Good Time to firmware build time 2022-11-02T11:21:51
[1667391310292] [3120:29499] CHIP: [ZCL] Using ZAP configuration...
[1667391310292] [3120:29499] CHIP: [CTL] System State Initialized...
[1667391310292] [3120:29499] CHIP: [CTL] Stopping commissioning discovery over DNS-SD
[1667391310292] [3120:29499] CHIP: [CTL] Setting attestation nonce to random value
[1667391310292] [3120:29499] CHIP: [CTL] Setting CSR nonce to random value
[1667391310293] [3120:29499] CHIP: [IN] UDP::Init bind&listen port=5550
[1667391310293] [3120:29499] CHIP: [IN] UDP::Init bound to port=5550
[1667391310293] [3120:29499] CHIP: [IN] UDP::Init bind&listen port=5550
[1667391310293] [3120:29499] CHIP: [IN] UDP::Init bound to port=5550
[1667391310293] [3120:29499] CHIP: [IN] TransportMgr initialized
[1667391310293] [3120:29505] CHIP: [DL] _OnPlatformEvent
[1667391310293] [3120:29505] CHIP: [CTL] Stopping commissioning discovery over DNS-SD
[1667391310293] [3120:29505] CHIP: [CTL] Setting attestation nonce to random value
[1667391310293] [3120:29505] CHIP: [CTL] Setting CSR nonce to random value
[1667391310293] [3120:29505] CHIP: [CTL] Couldn't get ExampleOpCredsCAKey from storage: ../../../../../opt/nordic/ncs/v2.1.0/modules/lib/matter/examples/chip-tool/config/PersistentStorage.cpp:85: CHIP Error 0x000000A0: Value not found in the persisted storage
[1667391310294] [3120:29505] CHIP: [CTL] Couldn't get ExampleOpCredsICAKey from storage: ../../../../../opt/nordic/ncs/v2.1.0/modules/lib/matter/examples/chip-tool/config/PersistentStorage.cpp:85: CHIP Error 0x000000A0: Value not found in the persisted storage
[1667391310295] [3120:29505] CHIP: [CTL] Generating RCAC
[1667391310296] [3120:29505] CHIP: [CTL] Generating ICAC
[1667391310296] [3120:29505] CHIP: [CTL] Generating NOC
[1667391310297] [3120:29505] CHIP: [FP] Validating NOC chain
[1667391310298] [3120:29505] CHIP: [FP] NOC chain validation successful
[1667391310298] [3120:29505] CHIP: [FP] Added new fabric at index: 0x1
[1667391310298] [3120:29505] CHIP: [FP] Assigned compressed fabric ID: 0x8FD395E8960753E0, node ID: 0x000000000001B669
[1667391310298] [3120:29505] CHIP: [TS] Last Known Good Time: 2022-11-02T11:21:51
[1667391310298] [3120:29505] CHIP: [TS] New proposed Last Known Good Time: 2021-01-01T00:00:00
[1667391310298] [3120:29505] CHIP: [TS] Retaining current Last Known Good Time
[1667391310298] [3120:29505] CHIP: [FP] Metadata for Fabric 0x1 persisted to storage.
[1667391310299] [3120:29505] CHIP: [TS] Committing Last Known Good Time to storage: 2022-11-02T11:21:51
[1667391310300] [3120:29505] CHIP: [CTL] Joined the fabric at index 1. Compressed fabric ID is: 0x0000000000000000
[1667391310300] [3120:29505] CHIP: [IN] UDP::Init bind&listen port=5550
[1667391310300] [3120:29505] CHIP: [IN] UDP::Init bound to port=5550
[1667391310300] [3120:29505] CHIP: [IN] UDP::Init bind&listen port=5550
[1667391310300] [3120:29505] CHIP: [IN] UDP::Init bound to port=5550
[1667391310300] [3120:29505] CHIP: [IN] TransportMgr initialized
[1667391310306] [3120:29505] CHIP: [BLE] NewConnection
[1667391310306] [3120:29505] CHIP: [BLE] CancelConnection
[1667391310307] [3120:29505] CHIP: [IN] SecureSession[0x600000394000]: Allocated Type:1 LSID:29034
[1667391310307] [3120:29505] CHIP: [SC] Assigned local session key ID 29034
[1667391310307] [3120:29505] CHIP: [SC] Including MRP parameters in PBKDF param request
[1667391310307] [3120:29505] CHIP: [IN] Prepared unauthenticated message 0x30b96e778 to 0x0000000000000000 (0)  of type 0x20 and protocolId (0, 0) on exchange 44894i with MessageCounter:101726586.
[1667391310307] [3120:29505] CHIP: [IN] Sending unauthenticated msg 0x30b96e778 with MessageCounter:101726586 to 0x0000000000000000 at monotonic time: 000000000007D3FB msec
[1667391310307] [3120:29505] CHIP: [IN] Message appended to BLE send queue
[1667391310307] [3120:29505] CHIP: [SC] Sent PBKDF param request
[1667391310307] [3120:29505] CHIP: [CTL] Setting thread operational dataset from parameters
[1667391310307] [3120:29505] CHIP: [CTL] Setting attempt thread scan from parameters
[1667391310307] [3120:29505] CHIP: [CTL] Setting attestation nonce to random value
[1667391310307] [3120:29505] CHIP: [CTL] Setting CSR nonce to random value
[1667391310307] [3120:29505] CHIP: [CTL] Commission called for node ID 0x0000000000000100
[1667391310328] [3120:29505] CHIP: [BLE] CBManagerState: ON
[1667391310745] [3120:29506] CHIP: [BLE] Connecting to device with discriminator: 3840
[1667391311683] [3120:29506] CHIP: [IN] BleConnectionComplete: endPoint 0x10343f0c0
[1667391311684] [3120:29506] CHIP: [BLE] ATT MTU = 247
[1667391311686] [3120:29505] CHIP: [BLE] BLE:Error writing Characteristics in Chip service on the device: [The specified UUID is not allowed for this operation.]
[1667391311686] [3120:29505] CHIP: [IN] Failed to establish BLE connection: ../../../../../opt/nordic/ncs/v2.1.0/modules/lib/matter/examples/chip-tool/third_party/connectedhomeip/src/platform/Darwin/BleConnectionDelegateImpl.mm:260: Ble Error 0x00000407: GATT write characteristic operation failed
[1667391311686] [3120:29505] CHIP: [IN] Clearing BLE pending packets.
[1667391311686] [3120:29505] CHIP: [BLE] Auto-closing end point's BLE connection.
[1667391340309] [3120:29506] CHIP: [SC] PASESession timed out while waiting for a response from the peer. Expected message type was 33
[1667391340309] [3120:29506] CHIP: [IN] SecureSession[0x600000394000]: Released - Type:1 LSID:29034
[1667391340309] [3120:29506] CHIP: [TOO] Secure Pairing Failed
[1667391340310] [3120:29506] CHIP: [DIS] Closing all BLE connections
[1667391340310] [3120:29506] CHIP: [TOO] Pairing Failure: ../../../../../opt/nordic/ncs/v2.1.0/modules/lib/matter/examples/chip-tool/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:245: CHIP Error 0x00000032: Timeout
[1667391340311] [3120:29499] CHIP: [CTL] Shutting down the commissioner
[1667391340311] [3120:29499] CHIP: [CTL] Stopping commissioning discovery over DNS-SD
[1667391340311] [3120:29499] CHIP: [CTL] Shutting down the controller
[1667391340311] [3120:29499] CHIP: [IN] Expiring all sessions for fabric 0x1!!
[1667391340311] [3120:29499] CHIP: [FP] Forgetting fabric 0x1
[1667391340311] [3120:29499] CHIP: [TS] Pending Last Known Good Time: 2022-11-02T11:21:51
[1667391340312] [3120:29499] CHIP: [TS] Previous Last Known Good Time: 2022-11-02T11:21:51
[1667391340312] [3120:29499] CHIP: [TS] Reverted Last Known Good Time to previous value
[1667391340312] [3120:29499] CHIP: [CTL] Shutting down the commissioner
[1667391340312] [3120:29499] CHIP: [CTL] Stopping commissioning discovery over DNS-SD
[1667391340312] [3120:29499] CHIP: [CTL] Shutting down the controller
[1667391340312] [3120:29499] CHIP: [CTL] Shutting down the System State, this will teardown the CHIP Stack
[1667391340320] [3120:29499] CHIP: [DMG] IM WH moving to [Uninitialized]
[1667391340320] [3120:29499] CHIP: [DMG] IM WH moving to [Uninitialized]
[1667391340320] [3120:29499] CHIP: [DMG] IM WH moving to [Uninitialized]
[1667391340320] [3120:29499] CHIP: [DMG] IM WH moving to [Uninitialized]
[1667391340321] [3120:29499] CHIP: [DMG] All ReadHandler-s are clean, clear GlobalDirtySet
[1667391340321] [3120:29499] CHIP: [BLE] CancelConnection
[1667391340323] [3120:29499] CHIP: [DL] Inet Layer shutdown
[1667391340323] [3120:29499] CHIP: [DL] BLE shutdown
[1667391340323] [3120:29499] CHIP: [DL] System Layer shutdown
[1667391340323] [3120:29499] CHIP: [TOO] Run command failure: ../../../../../opt/nordic/ncs/v2.1.0/modules/lib/matter/examples/chip-tool/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:245: CHIP Error 0x00000032: Timeout
bennynestler@MBPvonBenjamin(x86_64) ~/workspaces/matter/chip-tool-110222 % 


### Bug prevalence

always

### GitHub hash of the SDK that was being used

561d23d

### Platform

nrf

### Platform Version(s)

2.1.0

### Anything else?

_No response_

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (13 by maintainers)

Most upvoted comments

OK, there is now a developer profile that will work on Ventura, but only if you are using the latest beta seed. The profile is at https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/EnableBluetoothCentralMatterClientDeveloperMode.mobileconfig

I expect you need an Apple Developer account to get your hands on the beta seed, though…