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

failed to write on ble lbs in central

hai ,

           i am using nrf52840 sdk 15.2 and  in my application  i have to connect nrf52840 central to peripheral after connection i have write data on ble_lbs_led_status_send  i can able to write from central to peripheral and also getting response but some of the time its connecting but suddenly gets disconnecting before writing , it is not getting inside thelbs_c_evt_handler disconnecting within a second .i need to write data without frequent failures .any idea on this could you please explain on this

Thanks,

sowmiya

  • yes, tried to reconnect and sending data after 2 to 3 retires getting success  and when central to peripheral distance at 5 meters sometimes getting failed when i retried also. on peripheral side gap connection interval is

    #define MIN_CONN_INTERVAL MSEC_TO_UNITS(100, UNIT_1_25_MS) /**< Minimum acceptable connection interval (0.5 seconds). */
    #define MAX_CONN_INTERVAL MSEC_TO_UNITS(200, UNIT_1_25_MS) /**< Maximum acceptable connection interval (1 second). */
    #define SLAVE_LATENCY 3 /**< Slave latency. */
    #define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS)  

  • Have you tuned and verified output power and antenna matching on your hardware? This is something we can help you with, but first we need to review your schematic and layout. You can create a private case to upload your schematic and layout for feedback.

    Best regards,
    Kenneth

Related