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

Reply
  • 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

Children
  • 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?

  • 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?

  • I've discussed this with some developers, and it seems that under certain circumstances you may see the above mentioned problem (that the whitelist is ignored) more often, so I suspect that might be the case here after all.

    However, if possible, I'd be happy to take a look on your code, and possibly test it on a development kit here, to see if I can see the same issue. If you don't want to share your complete code project here, feel free to create a regular support case.

Related