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

How many CENTRAL_LINK_COUNT in ble_app_hrs_rscs_relay can do so far

Hi Man, How many CENTRAL_LINK_COUNT in ble_app_hrs_rscs_relay can do so far? I just increase the CENTRAL_LINK_COUNT form 2 to 5 then nRF52 Reset itself all the time.

Vincent

  • FormerMember
    0 FormerMember

    The S132 v.2.0.1 can handle up to eight connections simultaneously/concurrently, where maximum one of them is a peripheral link. The more connections the device should handle, the more RAM is required by the softdevice. The migration document that comes with the softdevice download explains how to find out how much RAM the softdevice will require for a given configuration (S132 v.2.0.1):

    image description

    image description

  • Hi, I read the s13x_nrf5x_2.0.0_migration_document and S132_SDS_v2.0 and I use nRf52 with ble_app_hrs_rscs_relay in nRF5_SDK_11.0.0_89a8197.

    I have few question

    1. How much RAM size is for one of CENTRAL_LINK_COUNT or one of PERIPHERAL_LINK_COUNT. finally I will use 8 CENTRAL_LINK_COUNT and 1 PERIPHERAL_LINK_COUNT. So what is precise RAM size for this. or I dont need to cal that and just follow sdk define like below

    // Enable BLE stack. //err_code = softdevice_enable(&ble_enable_params); //APP_ERROR_CHECK(err_code); err_code = sd_ble_enable(&ble_enable_params, (uint32_t*)APP_RAM_BASE_CENTRAL_LINKS_7_PERIPH_LINKS_1_SEC_COUNT_0_MID_BW); APP_ERROR_CHECK(err_code);

    2.Second is in sd132 2.0 version I can not define 8 CENTRAL_LINK_COUNT and 1 PERIPHERAL_LINK_COUNT. Is that right? Because I try this define but MCU is not running.

    3.Third is what is the ram define APP_RAM_BASE_CENTRAL_LINKS_7_PERIPH_LINKS_1_SEC_COUNT_0_MID_BW

    "SEC_COUNT_0" and "MID_BW" means.

    Thanks

  • FormerMember
    0 FormerMember in reply to FormerMember
    1. If you set a breakpoint after sd_ble_enable(..) inside softdevice_enable(..) and run the chip in debug mode, you should be able to see the amount of RAM that your application require. Does it not work for you? What Happens when you do that?
    2. The reason that 8 central links and 1 peripheral link setup fails, is most likely because the maximum number of concurrent connections is 8.
    3. MID_BW means means "mid bandwidth" configuration, see this chapter in the softdevice specification. This message sequence chart shows how to configure the bandwidth. Unfortunately, I'm not sure what sec_count_0 means..
  • Hi Kristin, I did not do that and sorry about that. I do that now and modify #define CENTRAL_LINK_COUNT 7 #define PERIPHERAL_LINK_COUNT 1

    Make sure MCU under maximum 8 connect and enter debug mode via Keil also got a RAM start address. Now MCU does work, happy and fine. Thank you very much and appreciate yours kindness. even I ask a lot of questions.

    have a nice day.

Related