Running demo example with nrf52840-DK and iOS not working properly

Hi there.

I have setup the example for nrf52840 and iOS. I am able to find the device in the iOS app and connect to it, but in the SEGGER debug terminal I am receiving some errors and warnings.

0 0 [iot_thread] [INFO ][DEMO][0] ---------STARTING DEMO---------

The RAM must start at 200044b0, it's size must be 3bb50
1 0 [iot_thread] [INFO ][INIT][0] SDK successfully initialized.
2 27 [iot_thread] [INFO ][DEMO][270] No networks connected for the demo. Waiting for a network connection. 
3 123 [BLE] [INFO ][DEMO][1230] BLE Connected to remote device, connId = 0

4 123 [iot_thread] [INFO ][DEMO][1230] Successfully initialized the demo. Network type for the demo: 2
5 123 [iot_thread] [INFO ][MQTT][1230] MQTT library successfully initialized.
6 123 [iot_thread] [INFO ][DEMO][1230] MQTT demo client identifier is nrf52840 (length 8).
7 129 [BLE] [INFO ][BLE_TXRX][1290] MTU changed, changing transmit length for data transfer service from 244 to 182

8 174 [BLE] [ERROR][BLE_HAL][1740] UNKNOWN BLE EVENT 34.
9 177 [BLE] [ERROR][BLE_HAL][1770] UNKNOWN BLE EVENT 35.
10 737 [BLE] [INFO ][DEMO][7370] BLE disconnected with remote device, connId = 0 

11 737 [BLE] [INFO ][DEMO][7370]  Disconnected from BLE device. Stopping the counter update 

12 872 [BLE] [INFO ][DEMO][8720] BLE Connected to remote device, connId = 0

13 877 [BLE] [INFO ][BLE_TXRX][8770] MTU changed, changing transmit length for data transfer service from 244 to 182

14 922 [BLE] [ERROR][BLE_HAL][9220] UNKNOWN BLE EVENT 34.
15 925 [BLE] [ERROR][BLE_HAL][9250] UNKNOWN BLE EVENT 35.

Anybody who can point me in the right direction?

Cheers.

Hello,

Thank you for sharing logs regarding the issue. Can you please share which release you are using as well as the version of ios ?

Hi there.

I have pulled both repositories yesterday.

For Amazon FreeRTOS:

amazon-freertos % git log -1 --format="%H"
54adbcc61c3b260cc2fea0095e4229156ae0d579

For Amazon FreeRTOS BLE iOS SDK:

amazon-freertos-ble-ios-sdk % git log -1 --format="%H"
ffd6205867afc65c04e3cc88ef7443e8f6855fae

Deployment target is iOS 11.0

Hope this is sufficient info, otherwise please let me know!

Hi,
What pairing method are you using between Mobile device and FreeRTOS ?
By default FreeRTOS is configured to use pairing with numeric comparison, so following logs should be displayed when mobile connects for first time without pairing:

    9 1061 [InputTask] Numeric comparison:963404
    10 1061 [InputTask] Press 'y' to confirm

You need to also press y from terminal to continue with pairing.

Also I see that you are trying to run the GATT server demo. Did you enable custom services flag on device as mentioned in this document:

#define IOT_BLE_ADD_CUSTOM_SERVICES ( 1 )