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

unexpected connection termination!

hi nordic team,

i am creating a custom profile with one characteristic, where it will read data from sensor and send it to the usb dongle for every 200ms.

i created a timer with 200ms, the timeout_handler will send obtained data

my problem, it is working properly for 1s only, after 1s there is link loss, in one case it is giving BTLE_CONNECTION_TIMEOUT, in some case BTLE_LOCAL_HOST_TERMINATED_CONNECTION, these two are the reasons, i did debugging, where i got the error_num :- 4, line_num:- 340, file_name:- app_timer.c

i am using softdevice v6.0.0 and SDK v5.1.0

could you explain me what would be the problem?

Parents
  • hi ole morten,

    thanks for your reply

    i am not using the scheduler, in that case even i change the SCHED_QUEUE_SIZE, how it effects my code!

    still i tried with that even the problem is there, i think there is problem in the timer, it stops after every 1 to 2 secs

  • thanks for your reply,

    i am sure that i am not using the scheduler, in app_timer_init func i gave the last parameter as false only.

    now, it not going to the assert_handler, but it is hanging somewhere and i am getting this error BTLE_LOCAL_HOST_TERMINATED_CONNECTION when i am trying to do anything from the MCPanel side like write, it is disconnecting at that point

    while downloading the sdkv5.1.0 it showing "Please notice: nRF51 SDK v5.x.0 has tailored for, thus supports only the following devices:- nRF51822 QFAAGC- nRF51422 QFAADA" and "PCA10001 v2.1.0 and 2.2.0", but my device is nRF51822 QFAACO, and PACA1001 V2.0.0

    is this may be the reason? but all other codes you provided are working properly like ble_app_hrs

Reply
  • thanks for your reply,

    i am sure that i am not using the scheduler, in app_timer_init func i gave the last parameter as false only.

    now, it not going to the assert_handler, but it is hanging somewhere and i am getting this error BTLE_LOCAL_HOST_TERMINATED_CONNECTION when i am trying to do anything from the MCPanel side like write, it is disconnecting at that point

    while downloading the sdkv5.1.0 it showing "Please notice: nRF51 SDK v5.x.0 has tailored for, thus supports only the following devices:- nRF51822 QFAAGC- nRF51422 QFAADA" and "PCA10001 v2.1.0 and 2.2.0", but my device is nRF51822 QFAACO, and PACA1001 V2.0.0

    is this may be the reason? but all other codes you provided are working properly like ble_app_hrs

Children
No Data
Related