This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

number of connected peripherals of multilink central

Hi. I'm using nRF51822 and SDK10.0.0, S130 for Central BLE.

I want multilink as Central. As I know nRF51822 supports Max. 8 peripherals at the same time.

I can connect only 3 peripherals now. Is there any source code for tha Max number of peripherals? How can I connect 8 peripherals?

I need your help.

  • Hi,

    The multilink central example in SDK 10 should support 8 connections out of the box. What happens when you try to connect more peripherals? Have you changed the MAX_PEER_COUNT define in the example?

    EDIT: Softdevice S130 v1.0.0 only support up to 3 connections in central mode.

    Best regards,

    Jørgen

  • Thank you very much for your reply. After 3 connection, Scan started again. And I can see Advertising data what I want to connect to. After then I can see Start connection as below.

    const ble_gap_evt_adv_report_t *p_adv_report = &p_gap_evt->params.adv_report;
    err_code = sd_ble_gap_connect(&p_adv_report->peer_addr,
    						  &m_scan_params,
    						  &m_connection_param);
    if (err_code == NRF_SUCCESS)
    {
    	err_code = bsp_indication_set(BSP_INDICATE_IDLE);
    	APP_ERROR_CHECK(err_code);
    }
    

    After that, there is no event for connection. Is there any other definition for number of Peripherals?

    I need your help.

  • Do you get any error codes? I see that I get NRF_ERROR_NO_MEM if connect more than 3 peripherals with the SDK 10 Multilink central application. To resolve this, you have to change the memory settings for your project. Have you considered migrating to SDK 11/12? Thw multilink central example in these SDK's are improved over the version in SDK 10.

  • Thank you for your reply. Sure, I've considered SDK12. But I started with SDK10 and I'm just about to finish this development. I'll change SDK for next development, not now. So I want to know how to solve it with SDK10 ASAP. How do I change my project for the memory setting? Can you tell me How? and What? I need your help more.

  • Hi again, from the release notes of S130 v1.0.0, it is specified that it support "Up to 4 simultaneous active connections: up to 3 in the Central role, along with up to 1 in the Peripheral role". This means that you have to migrate to S130 v2.0.x to get up to 8 connections. A migration document is provided along with the softdevice download. I'm not sure why this is not specified in the documentation of the SDK 10 multilink example, and I'm sorry that I could not provide you this answer earlier.

Related