Assistance with Bluetooth communication on iOS devices
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1548725713; bh=VenF7RdM5zjFL3+mmzoYgMBsfNI+WUnL7TypdrX6WmU=; h=Date:From:To:Subject:References:From:Subject; b=akxLhm3VZykkdcORo8oln6EGB2OYFTYtlF/q4LAjl201jZ+x5sGNv/Cs1Jqtqt4ZIm8mogHjzC9dqxvoI5trrsDGtyo26PyRW06wcWEko9Mp4KdsXuCmI33Hx81OWBnmfc96lCDtDJ317OTWv+3SEwWCd5VOWDpvTVk+NTV6N1WhdA5oDtJ870c1chzQZvWFGOi83mgJuUNbr/93rNfsGoz3FYrVs3uNd+8k67lxqksf++GOw0qwB1cDZJq0ZwlmpfRgzkPC3zH8BHgzaQKsviCDGGYHz5lf4At7lPOV1ARdpnJh5ya4VaEQd84x7RLa86wbe+omnd5M/8S7lYzhEQ== Hi All, Much appreciate if you guys can help or point me in right direction regarding the issue we are facing. We are working on a mobile app which acts like a Gatt Central and tries to connect to Peripherals(Nordic BLE Chip). We are using connection parameters as follows and which are shown in Xcode logs are successfully accepted14:04:22.239753 +1100 BTServer Accepting following parameters: min=228, max=240, lat=0, mul=600, cel=12 But when we try to set encryption on One of the characteristic.iOS App raises Pairing alert when I try to Subscribe to notifications on that characteristic. After user accepts the request everything works fine.I am able to Read/Write on the characteristics. But once I kill the app And reopen it, App doesn’t Seem to connect.We are trying to connect to same device again. After retrieving Peripheral using the identifier which we stored locally. It keeps on giving below messages in Console: 15:15:06.837494 +1100 BTServer Encryption is now disabled for device "08E77D7E-E333-4CE5-A9D3-92B49872EE57" (<private>)15:15:06.838017 +1100 BTServer ReadRemoteVersionInformationCB BM3 STATUS 634, waiting for disconnection event (status=634)15:15:06.838490 +1100 BTServer Failed to connect to device "Public 00:00:00:00:00:00" with result 70815:15:06.838978 +1100 BTServer Next connection parameters are: window - 0x30, interval - 0x1e015:15:06.839699 +1100 BTServer Command Status, orphan event, opcode: 0000041D, status BM3 STATUS 718 (status=65535)15:15:06.839951 +1100 BTServer Starting auto connection for 1 devices15:15:07.707025 +1100 BTServer Already tracking address "<private>" as device "08E77D7E-E333-4CE5-A9D3-92B49872EE57"15:15:08.599120 +1100 BTServer Failed to encrypt connection BM3 STATUS 708. (status=65535)15:15:08.600945 +1100 BTServer encryptionStatusChangedCb handle:0x177072c0 status=708 address=<private> isPairing=015:15:08.602483 +1100 BTServer Handle disconnected: 64, expected 0F (status=634)15:15:08.604195 +1100 BTServer Expected event 15 with hci opcode (0x0000041D) error, reason is BM3 STATUS 63415:15:08.604538 +1100 BTServer LE_ReadRemoteVersionInformationComplete with error BM3 STATUS 634 (status=634)15:15:08.605173 +1100 BTServer ReadRemoteVersionInformationCB BM3 STATUS 634, waiting for disconnection event (status=634)15:15:08.605780 +1100 BTServer Already tracking address "<private>" as device "08E77D7E-E333-4CE5-A9D3-92B49872EE57"15:15:08.606250 +1100 BTServer Encryption is now disabled for device "08E77D7E-E333-4CE5-A9D3-92B49872EE57" (<private>) I think when app gets killed its throwing out Encryption details, as I can see inside logs the device gets added to RemoveFromWhiteList list. I tried opening WireShark to sniff packets, it is failing with messageEncrypted packet decrypted incorrectly (bad MIC) Please let me know If I can provide you with any more details or I should try doing anything else. All Logs are from Device DetailsiOS 10.3.3 (14G60)Model: iPhone 5 (Model A1429) I Havent Enabled any kind of background mode in App.Hardware supports BLE 4.1 version. Soan Saini _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
soan saini