This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

After sometime nrfconnect disconnect with error 59(0x3b)

Hi Team,

Im using nrf52840 with nRF5_SDK 17.1,

For my project i will customise the application ble_app_att_mtu_throughput.Also we added pairing bonding security methods with static passkey(for this I Refer glucose example).Everything working fine nrf connect (Android)will receive data but after some time(8secs aprox)it will disconnect and says Error 59(0x3b): UNKNOWN (59).After attempt connect to my nrf52840 via nrfconnect but I can't.

below I attach image.

Any idea??

Parents
  • Hi

    In the nRFConnect app, you can choose to show DEBUG information in the log as well, to get some more information from errors you're seeing. Can you try that?

    It would also be a good idea to try debugging on the nRF52 side as well. Start a debug session and try to connect to see what kind of error the nRF52 is returning. What is your connection interval set to? I've seen error 59 occurring if you're trying to use an unacceptable connection interval. Please try setting both the min. and max. connection interval to ~100ms as that should not be invalid no matter what phone you're using.

    Best regards,

    Simon

Reply
  • Hi

    In the nRFConnect app, you can choose to show DEBUG information in the log as well, to get some more information from errors you're seeing. Can you try that?

    It would also be a good idea to try debugging on the nRF52 side as well. Start a debug session and try to connect to see what kind of error the nRF52 is returning. What is your connection interval set to? I've seen error 59 occurring if you're trying to use an unacceptable connection interval. Please try setting both the min. and max. connection interval to ~100ms as that should not be invalid no matter what phone you're using.

    Best regards,

    Simon

Children
  • Hi Simonr,

    Self fixed ,I set connection interval to default like MIN_CONN_INTERVAL  is MSEC_TO_UNITS(400,UNIT_1_25_MS) 
    and MAX_CONN_INTERVAL is MSEC_TO_UNITS(650, UNIT_1_25_MS) but I have another question how this value tune for my project or default is enough?.

    Regards,

    Stark.

Related