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

Multi-peripheral, bonding and whitelisting

Hi,

I need a way to have a concurrent connection (multi-peripheral), with whitelisting and bonding. Is there any example of this?

I found an example for multi-peripherals, but this is not for concurrent connections. I also found the HID-Mouse example which uses whitelisting and bonding, but it's only supporting single links (because it uses the advertising module).

I some sort of managed to include those two together, but then sometimes the softdevice asserts. So I was wondering if there are any other examples of doing this?

  • Gueston said:
    Debug mode is on in the sdk_config.h and also in the compiler flag. So it's very strange to me that it doesn't point to where the error is appearing?

     Can you please show me what this looks like? Some screenshots may reveal some misunderstandings.

    What SDK version are you using?

    Is there some way for me to reproduce what you are seeing on a DK? Can you send a zipped project folder? If so, please try to unzip it into an unmodified SDK an make sure it compiles before sending it. 

  • SSee the log screenshot above. As you can see it just reports end of error.

    II use nRF5_SDK_16.0.0_98a08e2

    I sent you a private message with a link with the projectfile. 

    To reproduce this, first connect with the nordic app. Then disconnect. As you will see it disconnects just fine. Then reconnect, and bond. Now disconnect, and you should see this error.

  • Can you please try to compile your project in an unmodified SDK16?

    I put the project folder so that the makefile is seven steps inside the SDK root folder. However, there were still quite a few folders it couldn't find:

    And later there are a lot (!) of warnings. However, it compiles in the end, but when I run the application, the log says:

    So it is obviously not the same thing you see in your log.

    I could start fixing these things, but then I may not get the same behavior as you in the end either way. It also opens for that you have changed some logging behavior in the error handlers. 

    Please try to compile this in an unmodified SDK, and see what it behaves like. Fix the errors that we already discussed, and let me know how it works.

    FYI:

    To compile, I just use the "make" command in the folder containing the makefile:

    <project_name>\pca10040\s132\armgcc

  • I did test it in an unmodified SDK. But I copied the project folder but forgot to clean, after the clean I got the same log as you. But after fixing the warnings (most of them where just comment warnings), I get the same log again as earlier.

    You are absolutely right that we first should get the same log message before you can do anything. Hope you get the same as me now...

    So again what I test is:

    Connect with app. Disconnect (works fine)

    Connect with app -> Bond -> Disconnect (I get either the message 

    I uploaded the new project in the same link as before.

  • I cleaned the project using make clean first (which deletes the _build folder). So that wasn't the issue.

    You are using pca10040\s132\armgcc, right?

    BR,

    Edvin

Related