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

connect without paring

Hi,

My application has 2 service. 1 service requires encryption but the other does not. As per my current implementation (ref from example code), the peer always performs paring procedure when connecting. My question is, is there anyway that I can let the peer connects with my device without paring, and this peer can only see unencrypted service?

Thank you for any help!

Parents
  • @Chd: If you don't request encryption from the peripheral, the pairing request would come from the central only if it receive insufficient authentication error when reading the characteristic that require encryption.

    Which central device did you use ? If you use the phone, you can avoid pairing by not reading the characteristics that require encryption.

    If you are using S120 and use the SDK example, you can simply remove the dm_security_setup_req() in main.c to avoid initiate bonding.

Reply
  • @Chd: If you don't request encryption from the peripheral, the pairing request would come from the central only if it receive insufficient authentication error when reading the characteristic that require encryption.

    Which central device did you use ? If you use the phone, you can avoid pairing by not reading the characteristics that require encryption.

    If you are using S120 and use the SDK example, you can simply remove the dm_security_setup_req() in main.c to avoid initiate bonding.

Children
Related