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

How to connect to one specific master

Hi,

I´m using nRF51822 with my own application and I want to connect just to one specific master device (for example smartphone) after this one is bonded:

  1. nRF51822 wakes up and clears all bonded master
  2. start adervertising
  3. bonding to master
  4. disconnect and store master information ...

How can I make sure that there is no other master device (for example master emulator) is connecting to my device when I´m advertising to my first master device. I´ve also tried direct advertising and advertising with whitelist but it doesn´t work.

Thanks Marcel

Parents
  • Hi guys, thanks for your reply and sorry for my late answer.

    Yes Ole, I can reproduce this behavior everytime. Here are the advertisment parameter which are shown in the Master Control Panel: ble_remote (0xC1C55E4C8046)

    • Address: 0xC1C55E4C8046
    • Address Type: Random
    • Advertising Type: Connectable
    • Bonded: False
    • Advertising Data
      • CompleteLocalName: ble_remote
      • Appearance: 0x03C1
      • Flags: BrEdrNotSupported
      • ServiceCompleteUuid16: 0x1812
    • Scan Response Data

    All parameters except the advertisment flags are equal to advertisment with or without whiteliste. So, any ideas?

    Regards Marcel

  • What I´ve realized / tested: I tested advertising with whitelist with a second iPhone and now it works -> when my application was once paired/bonded with iPhone1 I can not connect with iPhone2. But when I use the Master Emulator instead of iPhone2 it doesn´t work --> the Master Emulator can still connect to my module?

Reply Children
No Data
Related