Assistance with Bluetooth communication on iOS devices
Assistance with Bluetooth communication on iOS devices
- Subject: Assistance with Bluetooth communication on iOS devices
- From: soan saini <email@hidden>
- Date: Tue, 29 Jan 2019 01:35:11 +0000 (UTC)
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden