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

Unable to connect to bonded device on Android

Hi, I have a problem with BLE connection. When I bond to the device and then connect, everything works and connection is stable. When I kill the app and try to connect again to the bonded device, I get disconnected from the Android with status code 22(connection terminated by localhost).

Do you know the difference of these scenarios under the Android hood? I can't figure out why does this keep happening when the phone is obviously able to connect to the device after the bonding procedure.

For connection I use the standard code used in the Android examples, there is no magic going on.

Thanks a lot for your help.

Parents
  • Well, we've tried to change the FW on peripheral side but no success, no matter which parameter value we put in the peripheral, I'm still getting connection update with interval 6. I started to wonder whether this couldn't be coming from the phone but it shouldn't make sense since this value isn't supported by the system. Do you think that it's possible that it's coming from the phone?

Reply
  • Well, we've tried to change the FW on peripheral side but no success, no matter which parameter value we put in the peripheral, I'm still getting connection update with interval 6. I started to wonder whether this couldn't be coming from the phone but it shouldn't make sense since this value isn't supported by the system. Do you think that it's possible that it's coming from the phone?

Children
No Data
Related