Closed kean-apple closed 2 years ago
I was able to pair via manual code finally..I noticed the above behavior seems to happen after removing M5 board (which causes the M5 to reset) and then trying to pair via pin code with iOS chiptool
@kean-apple I'm not quite sure what "removing m5 board" means... What are the specific steps to reproduce this?
@bzbarsky-apple - by remove I meant unpair via iOS chiptool
steps:
Note: seen this with QR code as well so its not specific to pin/QR code, the above are just the usual steps in the smoke test
@kean-apple Ah, OK. I am guessing what happens here is:
We really need to have our SetupCodePairer/AutoCommissioner combo fall back to other transports if the first one it tries can't be used to establish a PASE session....
@cecille @sagar-apple @msandstedt
As a workaround, we could have the factory reset on the m5stack advertise as not commissionable before it actually does the reset, I guess... But I'm not sure it's worth doing that.
Yeah that would just be band-aid. Plus the spec doesn't really say what should happen here and so we should bake in something in our example apps.
Unable to pair M5 all clusters app via pin code with iOS chip tool
In step 2: Seeing timeout failures with pin code: Error Domain=CHIPErrorDomain Code=9 "Transaction timed out." UserInfo={NSLocalizedDescription=Transaction timed out
Only activity seen on the M5 board logs when entering manual pin code - 3 retries: I (650936) ROUTE_HOOK: Received RIO I (650936) ROUTE_HOOK: prefix FDE4:B950:2EE9:: lifetime 1800
With the M5 in the same state, I was able to scan in the QR code and pair the M5 board successfully
Seen: 5 out of 5
Logs on chiptool:
``` CFPrefsSearchListSource<0x283f76200> (Domain: com.apple.keyboard.preferences, Container: (null)) 2022-03-28 09:28:36.967776-0700 localhost CHIPTool[608]: (CHIP) [com.zigbee.chip:all] ð¢ [1648484916967] [608:19924] CHIP: [EM] Retransmitting MessageCounter:3977131908 on exchange 22553i Send Cnt 1 2022-03-28 09:28:36.968002-0700 localhost CHIPTool[608]: (CHIP) [com.zigbee.chip:all] ðµ [1648484916967] [608:19924] CHIP: [IN] Sending unauthenticated msg 0x11a04e068 with MessageCounter:3977131908 to 0x0000000000000000 at monotonic time: 0000017FD15B9EE7 msec 2022-03-28 09:28:38.969502-0700 localhost CHIPTool[608]: (CHIP) [com.zigbee.chip:all] ð¢ [1648484918969] [608:19824] CHIP: [EM] Retransmitting MessageCounter:3977131908 on exchange 22553i Send Cnt 2 2022-03-28 09:28:38.969774-0700 localhost CHIPTool[608]: (CHIP) [com.zigbee.chip:all] ðµ [1648484918969] [608:19824] CHIP: [IN] Sending unauthenticated msg 0x11a04e068 with MessageCounter:3977131908 to 0x0000000000000000 at monotonic time: 0000017FD15BA6B9 msec 2022-03-28 09:28:40.971276-0700 localhost CHIPTool[608]: (CHIP) [com.zigbee.chip:all] ð´ [1648484920971] [608:19924] CHIP: [EM] Failed to Send CHIP MessageCounter:3977131908 on exchange 22553i sendCount: 3 max retries: 3 2022-03-28 09:29:14.603417-0700 localhost CHIPTool[608]: (UIKitCore) [com.apple.UIKit:MultitouchAnalytics] Analytics: Reporting foreground time: 60.001 sec 2022-03-28 09:29:14.603731-0700 localhost CHIPTool[608]: (CoreAnalytics) [com.apple.CoreAnalytics.event:send] com.apple.app-profile {"appForegroundActiveDuration":60.001276041666664,"bundleID":"com.chip.CHIPTool-Kean"} 2022-03-28 09:29:16.818913-0700 localhost CHIPTool[608]: (AssistantServices) [com.apple.siri:Client] _AFInternalPreferencesDidChangeCallback Internal Preferences Changed! 2022-03-28 09:29:16.819145-0700 localhost CHIPTool[608]: (AssistantServices) [com.apple.siri:Client] -[AFPreferences _internalPreferencesDidChangeExternally] 0x281f06af0