This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems after switching Project to SDK 5.2.0

Hello, I'm trying to get my nrf51822 project from SDK 5.0.0 running in the latest SDK 5.2.0. To minimize problems with KEIL I used the template project and copied my sources into this. After some problems with pstorage it seems to work. The nrf51822 was advertising and the MasterControlPanel could connect to it. But when Service discovery is started suddenly the Connection is lost. Here is the Log of the MCP: [16:21:14.0] Loading... [16:21:18.1] Ready [16:21:18.3] SERVER: Server has started [16:21:31.0] Device discovery started [16:21:39.5] Device discovery stopped [16:21:41.0] ConnectToDevice() [16:21:41.4] ---------------------------- [16:21:41.4] Connected to device [16:21:41.4] Role: 0 [16:21:41.4] PeerAddressType: 1 [16:21:41.4] PeerAddress (MSB): XXX [16:21:41.4] Connection Interval: 20.0ms [16:21:41.4] Connection Latency: 0 [16:21:41.4] Supervision Timeout: 3000ms [16:21:41.4] Clock Accuracy: (1) [16:21:41.4] ---------------------------- [16:21:41.4] Connected to XXX [16:21:42.7] GetDeviceInfo() [16:21:42.7] Starting a Read Information Request on the whole remote DB [16:21:43.8] Discovering all attribute UUIDs [16:21:43.8] {'UUID': 10240} [16:21:43.8] Received a Service group UUID [16:21:43.8] {'UUID': 10243} [16:21:43.8] Received a Characteristic Group group UUID [16:21:43.8] {'UUID': 10752} [16:21:43.8] Received a Characteristic Group group attribute [16:21:43.8] {'UUID': 10243} [16:21:43.8] Received a Characteristic Group group UUID [16:21:43.8] {'UUID': 10753} [16:21:43.8] Received a Characteristic Group group attribute [16:21:43.8] {'UUID': 10243} [16:21:43.8] Received a Characteristic Group group UUID [16:21:43.8] {'UUID': 10756} [16:21:43.8] Received a Characteristic Group group attribute [16:21:43.8] {'UUID': 10240} [16:21:43.8] Received a Service group UUID [16:21:43.8] {'UUID': 10243} [16:21:43.8] Received a Characteristic Group group UUID [16:21:43.8] {'UUID': 10757} [16:21:43.8] Received a Characteristic Group group attribute [16:21:43.8] {'UUID': 10498} [16:21:43.8] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10240} [16:21:43.9] Received a Service group UUID [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 84821786098091395816798081315L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10498} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 1273244223812056459719957336355L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 324603375444524818178972818657571L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10498} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 649121929102951544962128839233827L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 973640482761378271745284859810083L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 1298159036419804998528440880386339L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 1622677590078231725311596900962595L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 2271714697395085178877908942115107L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 1947196143736658452094752921538851L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] {'UUID': 10243} [16:21:43.9] Received a Characteristic Group group UUID [16:21:43.9] {'UUID': 2596233251053511905661064962691363L} [16:21:43.9] Received a Characteristic Group group attribute [16:21:43.9] Discovering all attribute values [16:21:43.9] Received Read Response, handle: 0x0001, value (0x): 00-18 [16:21:44.0] Received Read Response, handle: 0x0002, value (0x): 0A-03-00-00-2A [16:21:44.0] Received Read Response, handle: 0x0003, value (0x): 52-6F-6C-6C-6F-54-75-62-65 [16:21:44.1] Received Read Response, handle: 0x0004, value (0x): 02-05-00-01-2A [16:21:44.1] Received Read Response, handle: 0x0005, value (0x): 34-12 [16:21:44.2] Received Read Response, handle: 0x0006, value (0x): 02-07-00-04-2A [16:21:44.2] Received Read Response, handle: 0x0007, value (0x): 90-01-20-03-00-00-90-01 [16:21:44.2] Received Read Response, handle: 0x0008, value (0x): 01-18 [16:21:44.3] Received Read Response, handle: 0x0009, value (0x): 20-0A-00-05-2A [16:21:44.4] Received Error Response: READ_NOT_PERMITTED, handle: 0x000A [16:21:54.9] No response received for ReadRequest on handle 0x000B. Disconnecting.. [16:21:54.9] Lost connection to device. Reason: BTLE_LOCAL_HOST_TERMINATED_CONNECTION [16:21:55.0] Service discovery aborted, connection terminated. [16:21:55.0] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A> [16:21:55.0] SERVER: Received Link Loss

Can this be a Problem of the SDK change? Are there any similar problems?

Parents
  • Hi Chris

    You are correct, it is. It seems like the application is stuck somewhere, and is not able to respond. I would recommend you to make sure that the error handler in the top of main doesn't reset, and instead use the debugger to inspect the file name, line number and error code that you most likely get there.

  • I am seeing precisely this problem with our service as well. MCP is unable to perform service discovery without hitting this failure. The application in the firmware is not hitting any errors. I do get a disconnect notification with reason 0x13 (BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION). After MCP fails to connected, it is still possible to connect from our mobile application.

    This is a bit troubling because our CM plans to use the MCP as a test tool, since they can run it on Windows.

Reply
  • I am seeing precisely this problem with our service as well. MCP is unable to perform service discovery without hitting this failure. The application in the firmware is not hitting any errors. I do get a disconnect notification with reason 0x13 (BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION). After MCP fails to connected, it is still possible to connect from our mobile application.

    This is a bit troubling because our CM plans to use the MCP as a test tool, since they can run it on Windows.

Children
No Data
Related