Multi conections BLE

I'm building a project based on the example:
C:\Users\leand\OneDrive\Documentos\TesteBLEDual\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hrs
And I would like to know the steps to create two different BLE connections, so that I find 2 connections in NRF_Connect, one for advertising only and the other allowing connection.
Please help me

Parents
  • Hi,

    Two concurrent advertisers is not straigth-forward in the (older) nRF5 SDK; for that you must manually toggle between the two advertisers. In other words: Start advertising, advertise for some time, stop advertising, start advertising with other parameters and/or other advertising contents, advertise for some time, stop advertising, then repeat. You will also have to handle the difference between being in a connection or not (if you do not want to advertise connectable when in an existing connection) as well as not start automatic advertising on disconnect (in order to remain control of the advertising. - If advertising is attempted started while another advertising is already ongoing, then you will get error and/or assert.)

    In nRF Connect SDK it is easier, as you can have multiple concurrent advertisers using different advertising sets, where for instance with one advertiser which is connectable and one which is not.

    For more information on when to use which SDK, please see nRF Connect SDK and nRF5 SDK statement.

    Regards,
    Terje

Reply
  • Hi,

    Two concurrent advertisers is not straigth-forward in the (older) nRF5 SDK; for that you must manually toggle between the two advertisers. In other words: Start advertising, advertise for some time, stop advertising, start advertising with other parameters and/or other advertising contents, advertise for some time, stop advertising, then repeat. You will also have to handle the difference between being in a connection or not (if you do not want to advertise connectable when in an existing connection) as well as not start automatic advertising on disconnect (in order to remain control of the advertising. - If advertising is attempted started while another advertising is already ongoing, then you will get error and/or assert.)

    In nRF Connect SDK it is easier, as you can have multiple concurrent advertisers using different advertising sets, where for instance with one advertiser which is connectable and one which is not.

    For more information on when to use which SDK, please see nRF Connect SDK and nRF5 SDK statement.

    Regards,
    Terje

Children
Related