Posts

Post marked as solved
5 Replies
The HAP java folks seem to have sorted the problem. Between iOS12 and iOS13, the homekit developers appear to have changed the pairing behavior. Originally HAP java would update the bonjour registration to mark the bridge as no longer discoverable just before it send back its response to the final pairing message. Now in iOS13 homekit drops the connection when it sees that update; by defering the change to registration until later the pairing completes.
Post marked as solved
5 Replies
Some progress (in case it helps anyone else) - quamotion publishes a tool set for windows that includes a syslog monitor: http://docs.quamotion.mobi/docs/imobiledevice/tools/idevicesyslog/From the syslog I get log entries showing pairing progressing, and a message on my own log that pairing succeeds. My code re-registers the accessory in bonjour (state change to not discoverable which I believe is required) which is seen in the log and works fine as best I can tell.A few seconds later HomeKit drops the connection and I see this in the log:Nov 6 09:48:54 ...-iPhone homed(CoreUtils)[145] <Error>: ### Error: CID 0x431A0003, Peer xBridge._hap._tcp.local.%9, -6723/0xFFFFE5BD kCanceledErrNov 6 09:48:54 ...-iPhone homed(CoreHAP)[145] <Error>: -[HAPAccessoryServerIP _handlePairSetupCompletionWithData:]_block_invoke ### Unable to send Pair Setup request, received response object: (null), MIME type: Unknown, error: Error Domain=HMErrorDomain Code=54 "Failed with OSStatus code -6723 (kCanceledErr)"I've found a few references to this error and homekit but they're quite old. It sure looks like a purposeful cancel by homekit but I can't tell why.
Post marked as solved
5 Replies
Weird that a long conversation would disappear...I've installed and tested with iOS13.2, seems it's still broken. Still no response to the ticket that I've opened.Is there anyone that knows how to retrieve a runtime log from HomeKit running on an iPhone? I've tried crawling through a syslog after enabling the homekit profile - while it appears to contain lists of the connected devices there's nothing that shows why it would drop a connection after completing the pairing sequence (esp when it's exactly the same sequence it has accepted in the past).
Post marked as solved
5 Replies
Anything from the apple team? I've tried with the HAP java implementation and it has the same problem.I would track it down myself but I can find nothing on the phone related to what HomeKit is doing - it accepts then disconnects without any indication of the reason.I do have a problem open in the apple system for this but there has been no response.