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

Problem with connection

Hi, I created firmware to nRF51822 Development Kit but I have a problem with connection. PCA10004 board is programmed to advertising packets whole the time and measure battery voltage level every hour (APP_TIMER_PRESCALER 8, BATTERY_LEVEL_MEAS_INTERVAL APP_TIMER_TICKS(3600000, APP_TIMER_PRESCALER)) but from time to time I am connecting with it by USB dongle to read values from services. Everything works fine in short period after flash programing, but there is a problem after few hours or when I leave board to next day because I can't connect with it then. From Master Control Panel i am getting this logs:

[14:58:19.8] ConnectToDevice() [14:58:20.4] ---------------------------- [14:58:20.4] Received Connection Parameter Update Request [14:58:20.4] Connected to device [14:58:20.4] Role: 0 [14:58:20.4] PeerAddressType: 1 [14:58:20.4] PeerAddress (MSB): D2C54EA47F0C [14:58:20.4] Connection Interval: 20.0ms [14:58:20.4] Connection Latency: 0 [14:58:20.4] Supervision Timeout: 3000ms [14:58:20.4] Clock Accuracy: (1) [14:58:20.4] ---------------------------- [14:58:20.4] Connected to D2C54EA47F0C [14:58:20.4] Lost connection to device. Reason: BTLE_REMOTE_USER_TERMINATED_CONNECTION [14:58:20.4] ConnectionParameterUpdateResponse sent with ACCEPTED response [14:58:20.4] Connection Parameters Update sent. ConnInterval:40.0ms, SlaveLatency:0, SupervisionTimeout:4000.0ms [14:58:20.4] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A> [14:58:20.4] SERVER: Received Link Loss

I have to make power reset and then everything works fine but after some time the whole situation has repeated. Do you have any idea whan can cause this problem?

Best regards,

P.S. I'm using softdevice 6.0 with SDK 5.1.

Parents
  • Hi Martin,

    To me, it is a bit hard to understand the issue with this information. But I observe that your firmware (the nRF51822 application) is disconnecting as soon as it got connected.

    [14:58:20.4] Connected to D2C54EA47F0C [14:58:20.4] Lost connection to device. Reason: BTLE_REMOTE_USER_TERMINATED_CONNECTION

    From the reason BTLE_REMOTE_USER_TERMINATED_CONNECTION, it is clear that its your firmware that is requesting the S110 SoftDevice to disconnect for some reason. May I suggest you search your source code for the error code 'BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION' and see where it is being used?

    Cheers, Balaji

Reply
  • Hi Martin,

    To me, it is a bit hard to understand the issue with this information. But I observe that your firmware (the nRF51822 application) is disconnecting as soon as it got connected.

    [14:58:20.4] Connected to D2C54EA47F0C [14:58:20.4] Lost connection to device. Reason: BTLE_REMOTE_USER_TERMINATED_CONNECTION

    From the reason BTLE_REMOTE_USER_TERMINATED_CONNECTION, it is clear that its your firmware that is requesting the S110 SoftDevice to disconnect for some reason. May I suggest you search your source code for the error code 'BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION' and see where it is being used?

    Cheers, Balaji

Children
No Data
Related